/* Finzy Swimming Guides — article + hub styles */

.article-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px 2rem 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.article-main {
    min-width: 0;
    order: 1;
}
.toc-sidebar {
    display: none;
    order: 2;
}
@media (min-width: 960px) {
    .article-page {
        display: grid;
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 48px;
        align-items: start;
    }
    .toc-sidebar {
        display: block;
        order: unset;
        position: sticky;
        top: 90px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
    .article-main { order: unset; }
}
@media (max-width: 600px) {
    .article-page { padding: 120px 1.2rem 80px; }
}
.toc-label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: #9aafc4; margin-bottom: 1rem;
}
.toc-nav {
    list-style: none; border-left: 2px solid #e4edf5; padding-left: 0; margin: 0;
}
.toc-nav li { margin: 0; padding: 0; }
.toc-nav a {
    display: block; padding: 7px 0 7px 18px;
    font-size: 0.82rem; line-height: 1.4; color: #9aafc4;
    text-decoration: none; transition: color 0.2s;
    border-left: 2px solid transparent; margin-left: -2px;
}
.toc-nav a:hover { color: var(--ocean); }
.toc-nav a.active { color: var(--ocean); font-weight: 600; border-left-color: var(--ocean); }

.breadcrumb,
.toc-sidebar nav {
    position: static;
    width: auto;
    background: none;
    border: none;
    backdrop-filter: none;
    z-index: auto;
    top: auto;
    left: auto;
}
.breadcrumb {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 0.8rem; color: #7a8fa8; margin-bottom: 2.5rem;
}
.breadcrumb a { color: #7a8fa8; text-decoration: none; }
.breadcrumb a:hover { color: var(--ocean); }
.breadcrumb svg {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    flex-shrink: 0;
    display: block;
    stroke: #aab8c8;
    stroke-width: 2;
    fill: none;
    overflow: visible;
}

.article-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--ocean);
    background: rgba(14,77,143,0.08); padding: 5px 14px;
    border-radius: 100px; margin-bottom: 1.4rem;
}

.article-hero { margin-bottom: 1.6rem; }
.article-figure {
    margin: 0 0 2.4rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--chalk);
    border: 1.5px solid rgba(14,77,143,0.08);
}
.article-figure img {
    display: block;
    width: 100%;
    height: auto;
}
.article-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800; line-height: 1.15; letter-spacing: -0.03em;
    color: var(--ink); margin-bottom: 1.2rem;
}
.article-hero h1 em { font-style: italic; color: var(--ocean); }
.article-meta {
    display: flex; align-items: center; gap: 1.4rem;
    font-size: 0.85rem; color: #7a8fa8; flex-wrap: wrap;
}
.article-meta-item { display: flex; align-items: center; gap: 5px; }
.article-meta-item svg {
    width: 14px; height: 14px; stroke: #aab8c8; stroke-width: 2;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.article-lead {
    font-size: 1.18rem; line-height: 1.8; color: #3a4a63;
    border-left: 4px solid var(--ocean);
    padding: 0.2rem 0 0.2rem 1.4rem;
    margin-bottom: 2.4rem;
}

.takeaways {
    background: var(--chalk);
    border: 1.5px solid rgba(14,77,143,0.1);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 2.8rem;
}
.takeaways h2 {
    font-family: var(--font-display);
    font-size: 0.82rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ocean);
    margin: 0 0 0.9rem !important;
}
.takeaways ol {
    margin: 0;
    padding-left: 1.2rem;
}
.takeaways li {
    font-size: 0.97rem;
    line-height: 1.65;
    color: #2e3f56;
    margin-bottom: 0.45rem;
}
.takeaways li:last-child { margin-bottom: 0; }

.article-body { color: #2e3f56; }
.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin: 3rem 0 1rem;
    letter-spacing: -0.02em;
}
.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
    margin: 2rem 0 0.7rem;
    letter-spacing: -0.02em;
}
.article-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--ocean); font-weight: 500; }
.article-body ul, .article-body ol {
    margin: 0 0 1.5rem 1.3rem;
    font-size: 1.05rem;
    line-height: 1.8;
}
.article-body li { margin-bottom: 0.45rem; }

.pullquote {
    background: var(--chalk);
    border-radius: 16px;
    padding: 28px 32px;
    margin: 2.5rem 0;
    position: relative;
    border-left: 4px solid var(--ocean);
}
.pullquote p {
    font-size: 1.12rem;
    font-style: italic;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.7;
    margin: 0;
}
.pullquote cite {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 600;
    color: var(--ocean);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.callout {
    border-radius: 14px;
    padding: 22px 26px;
    margin: 2rem 0;
    display: flex;
    gap: 16px;
}
.callout-icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.callout-icon svg {
    width: 20px; height: 20px;
    stroke-width: 2; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}
.callout-body { flex: 1; }
.callout-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}
.callout-body p { font-size: 0.97rem; line-height: 1.7; margin: 0; }

.callout-tip { background: var(--pale-mint); border: 1px solid rgba(52,193,134,0.25); }
.callout-tip .callout-icon { background: rgba(52,193,134,0.15); }
.callout-tip .callout-icon svg { stroke: var(--mint); }
.callout-tip .callout-label { color: var(--mint); }

.callout-avoid { background: var(--pale-coral); border: 1px solid rgba(232,99,74,0.2); }
.callout-avoid .callout-icon { background: rgba(232,99,74,0.15); }
.callout-avoid .callout-icon svg { stroke: var(--coral); }
.callout-avoid .callout-label { color: var(--coral); }

.callout-insight { background: rgba(14,77,143,0.05); border: 1px solid rgba(14,77,143,0.15); }
.callout-insight .callout-icon { background: rgba(14,77,143,0.1); }
.callout-insight .callout-icon svg { stroke: var(--ocean); }
.callout-insight .callout-label { color: var(--ocean); }

.article-divider {
    border: none;
    height: 1px;
    background: rgba(14,77,143,0.12);
    margin: 3rem 0;
}

.table-wrap {
    overflow-x: auto;
    margin: 1.6rem 0 2rem;
    border: 1.5px solid rgba(14,77,143,0.12);
    border-radius: 14px;
}
.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 520px;
}
.guide-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ocean);
    background: var(--chalk);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(14,77,143,0.1);
}
.guide-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(14,77,143,0.08);
    vertical-align: top;
    line-height: 1.55;
    color: #2e3f56;
}
.guide-table tr:last-child td { border-bottom: none; }
.guide-table .good { color: #1a8a5c; font-weight: 600; }
.guide-table .bad { color: var(--coral); font-weight: 600; }

.chart-block {
    margin: 2rem 0 2.4rem;
    padding: 22px 22px 12px;
    background: var(--chalk);
    border-radius: 16px;
    border: 1.5px solid rgba(14,77,143,0.08);
}
.chart-block svg { width: 100%; height: auto; display: block; }
.chart-caption {
    font-size: 0.78rem;
    color: #7a8fa8;
    margin: 10px 2px 6px;
    line-height: 1.5;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 1.6rem 0 2rem;
}
@media (max-width: 640px) {
    .stat-grid { grid-template-columns: 1fr; }
}
.stat-card {
    background: var(--white);
    border: 1.5px solid rgba(14,77,143,0.12);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
}
.stat-card .num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ocean);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.stat-card .lbl {
    font-size: 0.8rem;
    color: #6a7f96;
    margin-top: 6px;
    line-height: 1.4;
}

.checklist { list-style: none; margin: 1.2rem 0 1.8rem; padding: 0; }
.checklist li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(14,77,143,0.08);
    font-size: 0.98rem;
    line-height: 1.6;
}
.checklist li:last-child { border-bottom: none; }
.check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: var(--pale-mint);
    color: var(--mint);
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
    font-weight: 700;
    font-size: 0.75rem;
}

.example-card {
    border: 1.5px solid rgba(14,77,143,0.12);
    border-radius: 14px;
    padding: 22px 24px;
    margin: 1.6rem 0 2rem;
    background: #fff;
}
.example-card .kicker {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--ocean); margin-bottom: 0.5rem;
}
.example-card h3 { margin-top: 0; }
.example-card p:last-child { margin-bottom: 0; }

.faq-list { margin: 1.4rem 0 2rem; }
.faq-item {
    border: 1.5px solid rgba(14,77,143,0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 16px 18px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-family: var(--font-body);
}
.faq-q:hover { color: var(--ocean); }
.faq-q-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--chalk);
    color: var(--ocean);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
}
.faq-item.open .faq-q-icon { background: var(--ocean); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a-inner {
    padding: 0 18px 16px;
    font-size: 0.95rem;
    color: #4a5a73;
    line-height: 1.75;
}

.related {
    margin-top: 3.5rem;
}
.related h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 640px) {
    .related-grid { grid-template-columns: 1fr; }
}
.related a {
    display: block;
    text-decoration: none;
    border: 1.5px solid rgba(14,77,143,0.12);
    border-radius: 14px;
    padding: 16px 18px;
    color: inherit;
    transition: border-color 0.2s;
}
.related a:hover { border-color: var(--ocean); }
.related a span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ocean);
    margin-bottom: 6px;
}
.related a strong {
    display: block;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.4;
}

.article-cta {
    background: var(--ink);
    border-radius: 20px;
    padding: 40px 44px;
    text-align: center;
    margin-top: 3.2rem;
    color: white;
}
.article-cta h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.article-cta p {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 1.6rem;
    max-width: 480px;
    margin-left: auto; margin-right: auto;
}
.cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.article-cta .store-badge {
    background: none;
    padding: 0;
    border: 0;
    border-radius: 0;
}

@media (max-width: 600px) {
    .article-cta { padding: 28px 24px; }
    .pullquote { padding: 22px; }
}

/* Hub */
.guides-hero {
    padding: 160px 2rem 28px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.guides-toc {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 1.5rem 40px;
    text-align: center;
    border-top: 1px solid rgba(14,77,143,0.08);
}
.guides-toc-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9aafc4;
    margin: 0 0 14px;
}
.guides-toc ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.guides-toc a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(14,77,143,0.14);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.guides-toc a:hover,
.guides-toc a:focus-visible {
    border-color: var(--ocean);
    color: var(--ocean);
    background: rgba(14,77,143,0.06);
}
.guides-toc a:focus-visible {
    outline: 2px solid var(--ocean);
    outline-offset: 2px;
}
.guides-eyebrow {
    display: inline-flex;
    font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--ocean); margin-bottom: 1.4rem;
    background: rgba(14,165,233,0.08);
    padding: 6px 16px;
    border-radius: 100px;
}
.guides-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800; line-height: 1.15; letter-spacing: -0.03em;
    color: var(--ink); margin-bottom: 1.2rem;
}
.guides-hero h1 em { font-style: italic; color: var(--ocean); }
.guides-hero-sub {
    font-size: 1.12rem; color: #4a5a73; line-height: 1.7;
    max-width: 580px; margin: 0 auto;
}
.guides-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 100px;
}
.guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 700px) {
    .guides-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}
@media (min-width: 960px) {
    .guides-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.guide-card {
    background: var(--white);
    border: 1.5px solid rgba(14,77,143,0.1);
    border-radius: 18px;
    padding: 0 0 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.guide-card:hover {
    border-color: var(--ocean);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(10,22,40,0.08);
}
.guide-card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    object-position: center;
    background: var(--chalk);
}
.guide-card-thumb-placeholder {
    background: linear-gradient(135deg, rgba(14,77,143,0.14), rgba(232,99,74,0.10));
}
.guide-card-tag {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--ocean);
    background: rgba(14,77,143,0.08);
    padding: 4px 11px; border-radius: 100px; width: fit-content;
    margin: 6px 22px 0;
}
.guide-card h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0 22px;
}
.guide-card p {
    font-size: 0.92rem;
    color: #5a6e85;
    line-height: 1.65;
    margin: 0 22px;
    flex: 1;
}
.guide-card-meta {
    font-size: 0.78rem;
    color: #9aafc4;
    margin: 0 22px;
}
.guides-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9aafc4;
    margin: 2.4rem 0 1rem;
    scroll-margin-top: 88px;
}
.guides-section > .guides-kicker:first-child {
    margin-top: 0;
}
