.masthead--atlas-v2 .masthead__main{gap:18px}.atlas-nav-group{display:flex;align-items:center}.atlas-nav-primary{font-size:.88rem;font-weight:750;color:#20232b;text-decoration:none;padding:14px 2px 14px 8px;white-space:nowrap}.atlas-nav-primary:hover{color:#b90817}.masthead--atlas-v2 .atlas-nav-expand{min-width:32px;padding:8px 6px;justify-content:center}.atlas-menu{grid-template-columns:1fr 260px;gap:0;max-height:min(620px,calc(100vh - 140px));padding:1.5rem;background:#fff;border-top:4px solid #b90817;border-radius:0 0 14px 14px}.atlas-menu__heading{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1.4rem;border-bottom:1px solid #ddd;padding:0 0 1rem;margin-bottom:1rem}.atlas-menu__heading>strong{font-size:1.3rem;color:#b90817}.atlas-menu__heading p{margin:0;font-size:.85rem;line-height:1.6;flex:1;min-width:220px}.atlas-menu__heading>a{font-weight:750;white-space:nowrap;font-size:.85rem}.atlas-menu__links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.8rem;padding:.25rem 1.5rem .5rem 0}.atlas-menu__links h2{font-family:inherit;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;line-height:1.5;color:#665e59;margin:0 0 .7rem}.atlas-menu__links ul{padding:0;margin:0;list-style:none}.atlas-menu__links li+li{margin-top:.35rem}.atlas-menu__links a{display:block;text-decoration:none;color:#252832;padding:.65rem .7rem;border-radius:8px;line-height:1.5}.atlas-menu__links a:hover,.atlas-menu__links a:focus-visible{background:#fff0f1}.atlas-menu__links strong{font-size:.94rem;display:block;line-height:1.4}.atlas-menu__links small{display:block;font-size:.76rem;color:#59616a;margin-top:.3rem;line-height:1.5}.atlas-menu__feature{border-left:1px solid #ddd;padding-left:1.5rem;text-decoration:none;color:#252832;display:block}.atlas-menu__feature img{width:100%;height:145px;object-fit:cover;object-position:50% 25%;border-radius:8px;margin-bottom:.75rem}.atlas-menu__feature strong,.atlas-menu__feature small,.atlas-menu__feature span{display:block;line-height:1.5}.atlas-menu__feature strong{font-size:.96rem}.atlas-menu__feature small{font-size:.76rem;margin:.5rem 0;color:#59616a}.atlas-menu__feature span{font-size:.8rem;font-weight:750;color:#b90817}.atlas-menu:not(:has(.atlas-menu__feature)){grid-template-columns:1fr}.atlas-nav-primary:focus-visible,.atlas-nav-expand:focus-visible,.atlas-menu__links a:focus-visible{outline:2px solid #b90817;outline-offset:2px}.destination-catalogue summary{padding:1rem;background:#f5f2ee;border:1px solid #ddd;border-radius:8px;font-weight:700;cursor:pointer}.destination-catalogue .official-place-grid{margin-top:1rem}.history-page-contents{padding:1.2rem 0}.history-page-contents details{padding:1rem 1.25rem;border:1px solid #ddd;background:#f6f4f1;border-radius:10px}.history-page-contents summary{font-weight:750;cursor:pointer}.history-page-contents nav{display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;margin-top:.9rem}.history-page-contents a{font-size:.86rem;line-height:1.6;text-decoration:none}.history-topic-chapters section{scroll-margin-top:1.5rem}.history-hub-group{margin:1.5rem auto;padding:0;max-width:1180px;border:1px solid #ddd;border-radius:12px;overflow:hidden}.history-hub-group>summary{padding:1.2rem 1.5rem;cursor:pointer;background:#f6f4f1;font-size:1.2rem;font-weight:750;line-height:1.5}.history-hub-group>.section-block{padding-top:2rem}.history-hub-group .container{max-width:100%;box-sizing:border-box}.history-topic-chapters h2,.history-topic-hero h1{line-height:1.25}.history-hub-group[open]>summary{border-bottom:1px solid #ddd}
@media(max-width:1020px){.masthead--atlas-v2 .primary-nav{padding:10px;top:100%;left:0;right:0;max-height:calc(100dvh - 160px);overscroll-behavior:contain}.atlas-nav-group{display:grid;grid-template-columns:1fr 48px;border-bottom:1px solid #ddd;flex-shrink:0}.atlas-nav-primary{padding:1rem;font-size:1rem}.masthead--atlas-v2 .atlas-nav-expand{width:48px;border:0}.atlas-menu{grid-column:1/-1;position:static;grid-template-columns:1fr 220px;padding:1rem;margin:0 0 1rem;border-radius:8px;max-height:none;overflow:visible}.atlas-menu__heading p{min-width:0;flex-basis:100%}}
@media(max-width:700px){.atlas-menu{display:block}.atlas-menu[hidden]{display:none}.atlas-menu__links{grid-template-columns:1fr;padding:0;gap:1rem}.atlas-menu__feature{border-left:0;border-top:1px solid #ddd;padding:1rem 0 0;margin-top:1rem}.atlas-menu__feature img{max-width:280px;height:150px}.atlas-menu__heading{display:block}.atlas-menu__heading p{margin:.5rem 0}.history-page-contents nav{display:grid;gap:.5rem}.history-hub-group{margin:1rem;border-radius:8px}.history-hub-group>summary{font-size:1.05rem}.atlas-menu__links a{padding:.6rem .2rem}}
.atlas-reading__contents{display:block}.atlas-reading__contents>summary{font-weight:750;cursor:pointer;line-height:1.5}.atlas-reading__contents>nav{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}.atlas-reading__contents:not([open])>nav{display:none}.history-hero-caption{font-size:.85rem;line-height:1.7;color:#59616a;padding-block:1rem}.history-topic-story>section{scroll-margin-top:2rem}
.history-archive-map{margin-block:2rem;padding:1rem;background:#fff;border:1px solid #d6d1cb;border-radius:10px;text-align:center}.history-archive-map img{display:block;margin:0 auto;width:100%;max-width:800px;height:auto;max-height:900px;object-fit:contain}.history-archive-map figcaption{max-width:850px;margin:1rem auto 0;text-align:left;font-size:.85rem;line-height:1.7;color:#59616a}
.history-reading-visual--small img{width:auto;max-width:100%;max-height:none}.history-archive-map>a:focus-visible{outline:3px solid #b90817;outline-offset:4px}.history-archive-map{scroll-margin-top:2rem}
@media(max-width:760px){.masthead--atlas-v2 .primary-nav{max-height:calc(100dvh - 205px)}.atlas-reading__contents>nav{display:grid;grid-template-columns:1fr}.history-page-contents>details{padding:.9rem}}
.athlete-directory-batch,.ataturk-reading-collection{margin:1.25rem 0;border:1px solid #dfd9d3;border-radius:12px;background:#fff;overflow:hidden}
.athlete-directory-batch>summary,.ataturk-reading-collection>summary{padding:1.25rem 1.4rem;cursor:pointer;font-weight:750;font-size:1.075rem;line-height:1.6;color:#282329;background:#f7f3ef;overflow-wrap:anywhere}
.athlete-directory-batch>summary:focus-visible,.ataturk-reading-collection>summary:focus-visible{outline:3px solid #b90817;outline-offset:-4px}
.athlete-directory-batch>div,.ataturk-reading-collection>div{padding:1.5rem}
.athlete-card__brief{display:block!important;margin-top:.65rem;font-size:.85rem;font-weight:500!important}
@media(max-width:650px){.athlete-directory-batch>div,.ataturk-reading-collection>div{padding:.8rem}.athlete-directory-batch>summary,.ataturk-reading-collection>summary{padding:1rem}}
.history-topic-hero.history-topic-hero--portrait{min-height:min(660px,78vh)}
.history-topic-hero--portrait .history-topic-hero__media{left:50%}
.history-topic-hero--portrait .history-topic-hero__media img{object-fit:contain;object-position:35% center}
.history-topic-hero--portrait .history-topic-hero__media span{background:linear-gradient(90deg,rgba(49,3,7,.85),rgba(49,3,7,.08) 45%),linear-gradient(0deg,rgba(49,3,7,.45),transparent 55%)}
.history-topic-hero--portrait .history-topic-hero__content{padding-block:64px 60px}
.history-topic-hero--portrait .history-topic-hero__back{margin-bottom:32px}
.history-topic-hero--portrait h1{max-width:64%;font-size:clamp(3.25rem,6vw,6rem);line-height:1.17}
.history-topic-hero--portrait .history-topic-hero__content>p:not(.kicker){max-width:54%}
@media(max-width:760px){.history-topic-hero.history-topic-hero--portrait{display:flex;flex-direction:column;min-height:0}.history-topic-hero--portrait .history-topic-hero__content{order:1;padding-block:28px}.history-topic-hero--portrait .history-topic-hero__back{margin-bottom:24px}.history-topic-hero--portrait h1,.history-topic-hero--portrait .history-topic-hero__content>p:not(.kicker){max-width:100%}.history-topic-hero--portrait h1{font-size:clamp(2.5rem,10vw,3.25rem);line-height:1.18}.history-topic-hero--portrait .history-topic-hero__media{position:relative;inset:auto;order:2;width:100%;height:380px}.history-topic-hero--portrait .history-topic-hero__media img{object-position:center}.history-topic-hero--portrait .history-topic-hero__media span{display:none}.history-topic-hero--portrait .history-topic-hero__credit{position:static;order:3;max-width:100%;padding:1rem;text-align:center}}
.atlas-explore-jumps{display:flex;flex-wrap:wrap;gap:.75rem;padding-top:1.5rem;padding-bottom:.5rem}.atlas-explore-jumps a{display:inline-flex;align-items:center;min-height:44px;padding:.7rem 1rem;border:1px solid #d7cece;border-radius:999px;background:#fff;color:#83121a;text-decoration:none;font-weight:650;line-height:1.5}.atlas-explore-jumps a:first-child{background:#b90817;color:#fff;border-color:#b90817}.atlas-explore-jumps a:focus-visible,.atlas-explore-panel>summary:focus-visible{outline:3px solid #e30a17;outline-offset:4px}.atlas-explore-panel{border:1px solid #dfd5d5;border-radius:14px;background:#fff;padding:1.25rem 1.5rem}.atlas-explore-panel>summary{cursor:pointer;font-size:1.25rem;font-weight:750;line-height:1.45;padding:.25rem 0}.atlas-explore-panel>summary small{display:block;font-size:.85rem;font-weight:500;line-height:1.6;color:#66575a;margin-top:.35rem}.atlas-explore-panel[open]>.section-heading{margin-top:1.75rem}.atlas-explore-panel .atlas-gallery,.atlas-explore-panel .atlas-video-grid{margin-top:1rem}.atlas-explore-jumps~[data-atlas-directory]{scroll-margin-top:1.5rem}@media(max-width:760px){.atlas-explore-jumps{gap:.5rem}.atlas-explore-jumps a{font-size:.85rem;padding:.65rem .8rem}.atlas-explore-panel{padding:1rem}.atlas-explore-panel>summary{font-size:1.1rem}}
.atlas-hero{padding-block:3.5rem}.atlas-hero h1{font-size:clamp(2.3rem,4.4vw,4.6rem);line-height:1.15;max-width:800px}.atlas-hero__grid{gap:3rem}.atlas-explore-jumps+[data-atlas-directory]{padding-top:2.5rem}@media(max-width:760px){.atlas-hero{padding-block:2rem}.atlas-hero h1{font-size:2.35rem;line-height:1.17}.atlas-hero__grid{gap:1.5rem}}
.heritage-card__guide{display:block;line-height:1.6;font-weight:700;color:#95101b;margin:1rem 0}.heritage-card__rights{margin-top:1rem;border-top:1px solid #e6dede;padding-top:.75rem;font-size:.8rem;line-height:1.7}.heritage-card__rights summary{cursor:pointer;font-weight:600}.heritage-card__rights p{margin:.65rem 0;font-size:.8rem;line-height:1.7}.heritage-card__rights a{overflow-wrap:anywhere}
@media(max-width:760px){.atlas-hero .atlas-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.atlas-hero .atlas-stats>div{min-width:0;padding:.85rem}.atlas-hero .atlas-stats dt{font-size:.6rem;line-height:1.5}.atlas-hero .atlas-stats dd{font-size:2.2rem;line-height:1.2;margin-top:.5rem}.atlas-hero__grid>div>p:not(.kicker){font-size:1rem;line-height:1.75}}
/* A permanent history entry point, independent of the rotating home banner. */
.history-timeline-help{max-width:780px;font-size:.9rem;line-height:1.7;margin:0 0 1.5rem}.history-timeline-batch{margin-top:1.25rem;border:1px solid #d8cdca;border-radius:10px;overflow:hidden;background:#fff;color:#351d1b}.history-timeline-batch[hidden]{display:none}.history-timeline-batch>summary{padding:1.1rem 1.3rem;cursor:pointer;min-height:64px;font-weight:750;line-height:1.5;background:#fff6f3;overflow-wrap:anywhere}.history-timeline-batch>summary>small{display:block;font-size:.83rem;font-weight:500;line-height:1.65;margin-top:.35rem;color:#76544d}.history-timeline-batch>summary:focus-visible{outline:3px solid #b90817;outline-offset:-4px}.history-timeline-batch[open]>summary{border-bottom:1px solid #e4d7d2}.history-timeline-batch>.history-timeline{padding:1.5rem 1.25rem 1.5rem 54px}.history-timeline-batch>.history-timeline::before{inset-block:1.5rem;inset-inline-start:24px}@media(max-width:760px){.history-timeline-batch>summary{padding:1rem}.history-timeline-batch>.history-timeline{padding:1rem .7rem 1rem 35px}.history-timeline-batch>.history-timeline::before{inset-inline-start:17px}.history-timeline-batch .history-timeline__body{padding:1.4rem}.history-timeline-batch .history-timeline__body h3{font-size:1.8rem;line-height:1.2}}
@media(max-width:760px){.home-factbar dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.home-factbar dl>div{padding:1rem}.home-factbar dd{font-size:2rem;line-height:1.15}.home-factbar dt{font-size:.65rem;line-height:1.45}}
.home-chronicles{padding:clamp(2rem,4vw,3.5rem) 0;background:#fff8f7;border-bottom:1px solid #ecd8d5}
.home-chronicles__grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.home-chronicles__intro{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:1.25rem;align-items:center}
.home-chronicles__intro h2{font-size:clamp(1.65rem,2.5vw,2.4rem);line-height:1.2;margin:.65rem 0 1rem;letter-spacing:-.02em}
.home-chronicles__intro p:not(.kicker){font-size:.96rem;line-height:1.65;margin:0 0 1.1rem}
.home-chronicles__intro figure{margin:0;min-width:0}
.home-chronicles__intro img{width:100%;height:190px;object-fit:contain;background:#eee7e3;border-radius:3px}
.home-chronicles__intro figcaption{font-size:.64rem;line-height:1.4;color:#65504d;margin-top:.45rem}
.home-chronicles__paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.home-chronicles__paths a{display:flex;justify-content:space-between;align-items:center;gap:.55rem;padding:.85rem .95rem;min-height:82px;border:1px solid #e5cfca;border-radius:5px;background:white;color:#381713;text-decoration:none}
.home-chronicles__paths strong{display:block;font-size:.96rem;line-height:1.3}
.home-chronicles__paths small{display:block;margin-top:.35rem;color:#785550;font-size:.73rem;line-height:1.4}
.home-chronicles__paths a:hover{border-color:#d91a28;background:#fff2ef}
.home-chronicles a:focus-visible{outline:3px solid #d91a28;outline-offset:3px}
@media(max-width:900px){.home-chronicles__grid{grid-template-columns:1fr}.home-chronicles__intro{grid-template-columns:minmax(0,1fr) 118px}.home-chronicles__intro img{height:175px}}
@media(max-width:480px){.home-chronicles__intro{grid-template-columns:minmax(0,1fr) 90px;gap:.8rem}.home-chronicles__intro img{height:132px}.home-chronicles__intro h2{font-size:1.55rem;line-height:1.23}.home-chronicles__intro .kicker{font-size:.59rem;letter-spacing:.13em}.home-chronicles__paths a{padding:.8rem;min-height:88px}.home-chronicles__paths strong{font-size:.88rem}.home-chronicles__intro figcaption{font-size:.59rem}}
/* Historical maps keep their full legends and colours; dates never cover evidence. */
.history-timeline__media.history-timeline__media--map { display:grid; grid-template-rows:minmax(0,1fr) auto; background:#fff; }
.history-timeline__media.history-timeline__media--map img { object-fit:contain; filter:none; transform:none; padding:1rem; }
.history-timeline__media.history-timeline__media--map::after { display:none; }
.history-timeline__media.history-timeline__media--map > span { position:static; inset:auto; padding:.75rem 1rem; color:var(--ink); background:#fff; }
/* Long Turkish titles and native video frames must fit narrow reading columns. */
.history-topic-hero :is(h1,h2) { overflow-wrap:anywhere; hyphens:auto; }
.library-videos article > div { flex:1 1 0%; min-width:0; }
.supporting-video { min-width:0; max-width:100%; }
.library-videos .video-player__screen { min-height:0; }

/* Native primary-section links when scripting is disabled; no inline style or JS is required. */
.atlas-nav-fallback { display:none; }
.masthead--atlas-v2:has(.atlas-nav-fallback) :is(.nav-toggle,.atlas-nav-expand) { display:none; }
@media(max-width:1020px) {
    .masthead--atlas-v2 .atlas-nav-fallback { display:block; padding-block:1rem; }
    .atlas-nav-fallback p { margin:0 0 .6rem; font-size:.85rem; line-height:1.6; }
    .atlas-nav-fallback ul { display:flex; flex-wrap:wrap; gap:.5rem; list-style:none; margin:0; padding:0; }
    .atlas-nav-fallback a { display:inline-flex; align-items:center; min-height:44px; padding:.6rem .9rem; border:1px solid #d7cece; border-radius:8px; text-decoration:none; font-weight:700; line-height:1.5; }
    .atlas-nav-fallback a:focus-visible { outline:3px solid #b90817; outline-offset:3px; }
}
/* A chapter-sized reading route, not a fixed overlay or a replacement for the full text. */
.history-page-contents > details { scroll-margin-top:1.5rem; }
.history-contents-return { display:inline-flex; align-items:center; min-height:44px; margin-top:.6rem; font-size:.85rem; line-height:1.6; }
.history-contents-return:focus-visible { outline:3px solid #b90817; outline-offset:3px; }

/* Compact text-only chronicle covers: retain every word and let the article begin sooner. */
.history-topic-hero.history-topic-hero--text h1 { font-size:clamp(2.2rem,5.2vw,5.5rem); line-height:1.2; max-width:24ch; }
.history-topic-hero.history-topic-hero--text .history-topic-hero__content { padding-block:52px; }
@media(max-width:760px) {
    .history-topic-hero.history-topic-hero--text h1 { font-size:clamp(2rem,8.8vw,3rem); line-height:1.2; max-width:22ch; }
    .history-topic-hero.history-topic-hero--text .history-topic-hero__content { padding-block:28px 32px; }
    .history-topic-hero.history-topic-hero--text .history-topic-hero__back { margin-bottom:24px; }
    .history-topic-hero.history-topic-hero--text .history-topic-hero__content > p:not(.kicker) { font-size:1rem; line-height:1.75; }
}

/* Compact landscape-photo chronicle covers, with credits in their own readable flow. */
.history-topic-hero:not(.history-topic-hero--text):not(.history-topic-hero--portrait) { display:block; min-height:0; }
.history-topic-hero:not(.history-topic-hero--text):not(.history-topic-hero--portrait) h1 { font-size:clamp(2.2rem,5.2vw,5.5rem); line-height:1.2; max-width:24ch; }
.history-topic-hero:not(.history-topic-hero--text):not(.history-topic-hero--portrait) .history-topic-hero__content { padding-block:52px; }
.history-topic-hero:not(.history-topic-hero--text):not(.history-topic-hero--portrait) .history-topic-hero__back { margin-bottom:32px; }
.history-topic-hero:not(.history-topic-hero--text):not(.history-topic-hero--portrait) .history-topic-hero__credit { position:relative; display:block; inset:auto; max-width:min(1180px,calc(100% - 40px)); margin:0 auto; padding-bottom:20px; font-size:.72rem; line-height:1.6; text-align:start; }
@media(max-width:760px) {
    .history-topic-hero:not(.history-topic-hero--text):not(.history-topic-hero--portrait) h1 { font-size:clamp(2rem,8.8vw,3rem); line-height:1.2; max-width:22ch; }
    .history-topic-hero:not(.history-topic-hero--text):not(.history-topic-hero--portrait) .history-topic-hero__content { padding-block:28px 32px; }
    .history-topic-hero:not(.history-topic-hero--text):not(.history-topic-hero--portrait) .history-topic-hero__back { margin-bottom:24px; }
    .history-topic-hero:not(.history-topic-hero--text):not(.history-topic-hero--portrait) .history-topic-hero__content > p:not(.kicker) { font-size:1rem; line-height:1.75; }
}

/* Shared section titles must not inherit the narrow eyebrow-label column. */
.section-heading { gap:clamp(1rem,2.5vw,1.75rem); margin-bottom:clamp(1.25rem,3vw,2rem); }
.section-heading > * { min-width:0; }
.section-heading h2 { max-width:32ch; font-size:clamp(1.75rem,3.25vw,2.75rem); line-height:1.24; overflow-wrap:anywhere; }
.section-heading > h2:only-child { grid-column:1 / -1; max-width:none; }
.section-heading:has(> h2:first-child) { grid-template-columns:minmax(0,1fr) auto; }
.section-heading:has(> h2:only-child) { grid-template-columns:minmax(0,1fr); }
.section-heading:has(> div:first-child h2) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.section-heading > a { justify-self:end; align-self:center; max-width:100%; overflow-wrap:anywhere; }

/* Compact shared page rhythm without changing article/sidebar or container grids. */
.section-block { padding-block:clamp(2.5rem,5vw,4.5rem); }
.page-hero { padding-block:clamp(2.5rem,5vw,4.5rem); }
.page-hero h1 { font-size:clamp(2.25rem,5vw,4.5rem); line-height:1.2; overflow-wrap:anywhere; }
.page-hero--search h1 { max-width:none; font-size:clamp(2rem,4.5vw,3.5rem); }
.page-hero--search .search-form { width:100%; max-width:880px; margin-top:1.5rem; }
.page-hero--search + .section-block .section-heading:first-child h2 { font-family:var(--sans); font-size:clamp(1.25rem,2.5vw,1.6rem); letter-spacing:0; color:var(--muted); }
.page-hero--search + .section-block .section-heading:not(:first-child) { margin-top:2rem; }
.page-hero--search + .section-block .reading-grid { grid-template-columns:minmax(0,1fr); gap:1rem; margin-bottom:2rem; }
.page-hero--search + .section-block .reading-card { display:grid; grid-template-columns:minmax(180px,.32fr) minmax(0,1fr); }
.page-hero--search + .section-block .reading-card > img { height:100%; max-height:260px; aspect-ratio:auto; object-fit:contain; background:var(--paper-deep); }
.page-hero--search + .section-block .reading-card > div { padding:clamp(1rem,2vw,1.5rem); }
.page-hero--search + .section-block .reading-card > div:only-child { grid-column:1 / -1; }
.page-hero--search + .section-block .reading-card h3 { margin:.5rem 0; }
.page-hero--search + .section-block .reading-card p { margin-bottom:1rem; }

@media(max-width:760px) {
    .section-heading,
    .section-heading:has(> h2:first-child),
    .section-heading:has(> div:first-child h2) { grid-template-columns:minmax(0,1fr); gap:.75rem; }
    .section-heading > a { justify-self:start; }
    .section-heading h2 { max-width:100%; }
    .page-hero--search + .section-block .reading-card { grid-template-columns:minmax(0,1fr); }
    .page-hero--search + .section-block .reading-card > img { height:auto; max-height:220px; aspect-ratio:16 / 9; }
}

/* Complete six-card homepage editions, with shared image and reading rhythm. */
.home-library-discovery .library-grid,
.home-latest-guides .article-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(1rem,2vw,1.5rem); align-items:stretch; }
.home-library-discovery .library-card > a { display:flex; flex-direction:column; }
.home-library-discovery .library-card img { height:auto; aspect-ratio:16 / 10; flex-shrink:0; }
.home-library-discovery .library-card__body { display:flex; flex:1; flex-direction:column; padding:1.25rem; }
.home-library-discovery .library-card__body > span { margin-top:auto; padding-top:.75rem; }
.home-latest-guides .article-card { border-radius:14px; overflow:hidden; }
.home-latest-guides .article-card__body { padding:1.25rem; }
.home-latest-guides .article-card h3 { line-height:1.32; overflow-wrap:anywhere; }
@media(max-width:1050px) {
    .home-library-discovery .library-grid,
    .home-latest-guides .article-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
    .home-library-discovery .library-grid,
    .home-latest-guides .article-grid { grid-template-columns:minmax(0,1fr); }
}

/* A grouped, keyboard-friendly Atlas footer; the approved credit strip stays intact. */
.site-footer--atlas { padding:clamp(2rem,4vw,3.5rem) 0 1.5rem; border-top:3px solid var(--red); background:linear-gradient(140deg,#430810,#280609); }
.site-footer--atlas .footer-brandbar { display:flex; justify-content:space-between; align-items:center; gap:2rem; padding-bottom:2rem; }
.site-footer--atlas .footer-brand { max-width:460px; min-width:0; }
.site-footer--atlas .wordmark--footer { width:260px; max-width:100%; }
.site-footer--atlas .footer-brand p { max-width:44ch; margin:.75rem 0 0; color:#eed9dc; font-size:.95rem; line-height:1.7; }
.site-footer--atlas .footer-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.75rem; }
.site-footer--atlas .footer-actions a { display:inline-flex; align-items:center; justify-content:center; gap:.65rem; min-height:48px; padding:.75rem 1rem; border:1px solid #aa686f; border-radius:8px; color:#fff; font-size:.85rem; font-weight:750; line-height:1.5; text-decoration:none; }
.site-footer--atlas .footer-actions .footer-atlas-link { color:#430810; background:#fff4f4; border-color:#fff4f4; }
.site-footer--atlas .footer-actions .video-channel-link { margin:0; background:rgba(255,255,255,.04); }
.site-footer--atlas .footer-actions svg { flex:none; width:22px; height:22px; }
.site-footer--atlas .footer-actions a:hover { border-color:#fff; text-decoration:underline; text-underline-offset:4px; }
.site-footer--atlas .footer-navigation { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.75rem; padding:2rem 0; border-block:1px solid #75434a; }
.site-footer--atlas .footer-navigation nav { min-width:0; }
.site-footer--atlas .footer-navigation h2 { margin:0 0 .8rem; color:#fff; font:700 1.1rem/1.4 var(--sans); letter-spacing:0; text-transform:none; }
.site-footer--atlas .footer-navigation h2::before { content:""; display:block; width:28px; height:3px; margin-bottom:.75rem; background:#f15766; }
.site-footer--atlas .footer-navigation ul { list-style:none; margin:0; padding:0; }
.site-footer--atlas .footer-navigation :is(a,button) { display:flex; align-items:center; gap:.5rem; width:fit-content; max-width:100%; min-height:44px; padding:.5rem 0; color:#eed9dc; font:500 .9rem/1.5 var(--sans); text-align:start; text-decoration:none; overflow-wrap:anywhere; }
.site-footer--atlas .footer-navigation :is(a,button):hover { color:#fff; text-decoration:underline; text-underline-offset:4px; }
.site-footer--atlas .footer-navigation .an-footer-link img { flex:none; width:44px; height:26px; object-fit:contain; }
.site-footer--atlas .footer-publisher { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; padding-top:1.5rem; }
.site-footer--atlas .footer-publisher p { max-width:84ch; margin:0; color:#dcc0c5; font-size:.8rem; line-height:1.75; }
.site-footer--atlas .footer-publisher p + p { margin-top:.4rem; }
.site-footer--atlas .footer-publisher a { color:#fff3f4; text-underline-offset:3px; }
.site-footer--atlas .footer-to-top { display:inline-flex; flex:none; align-items:center; justify-content:center; gap:.6rem; min-height:44px; padding:.65rem .9rem; border:1px solid #89535b; border-radius:8px; font-size:.8rem; line-height:1.5; text-decoration:none; }
.site-footer--atlas .footer-to-top:hover { border-color:#fff; }
.site-footer--atlas :is(a,button):focus-visible { outline:3px solid #fff4f4; outline-offset:4px; border-radius:3px; }
.site-footer--atlas .footer-bottom { margin-top:1.5rem; padding-top:1.25rem; border-top-color:#75434a; color:#dcc0c5; }
.site-footer--atlas .footer-bottom > p { max-width:54ch; line-height:1.7; }
@media(max-width:1020px) {
    .site-footer--atlas .footer-brandbar { align-items:flex-start; flex-direction:column; gap:1.5rem; }
    .site-footer--atlas .footer-actions { justify-content:flex-start; }
    .site-footer--atlas .footer-navigation { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.75rem 1.25rem; }
}
@media(max-width:760px) {
    .site-footer--atlas .footer-navigation h2 { font-size:1rem; }
    .site-footer--atlas .footer-navigation :is(a,button) { font-size:.85rem; }
    .site-footer--atlas .footer-publisher { align-items:flex-start; flex-direction:column; gap:1rem; }
    .site-footer--atlas .footer-bottom { gap:1rem; }
}
@media(max-width:360px) {
    .site-footer--atlas .footer-navigation { grid-template-columns:minmax(0,1fr); }
}

/* White Atlas disclosure headers need dark text; dark video cards stay light. */
.atlas-video-section .atlas-explore-panel > summary,
.atlas-video-section .atlas-explore-panel > .section-heading { color:var(--ink,#22090b); }
.atlas-video-section .atlas-explore-panel > .section-heading > .kicker { color:var(--red-dark,#a80812); }
.atlas-video-section .atlas-explore-panel > .section-heading > div > p { color:var(--muted,#6b4a4d); }

/* Six primary sections must fit above the existing mobile-menu breakpoint. */
@media(min-width:1021px) and (max-width:1220px) {
    .masthead--atlas-v2 .masthead__main { gap:12px; }
    .masthead--atlas-v2 .wordmark { width:210px; }
    .masthead--atlas-v2 .primary-nav { gap:4px; }
    .masthead--atlas-v2 .atlas-nav-primary { padding-inline-start:4px; }
    .masthead--atlas-v2 .header-search input { width:140px; }
}

/* Menu photo attribution stays adjacent to, never inside, the feature link. */
.atlas-menu__feature-block { min-width:0; border-left:1px solid #ddd; padding-left:1.5rem; }
.atlas-menu__feature-block .atlas-menu__feature { border-left:0; padding-left:0; }
.atlas-menu__feature-credit { margin:.7rem 0 0; color:#59616a; font-size:.73rem; line-height:1.6; overflow-wrap:anywhere; }
.atlas-menu__feature-credit > span { display:block; }
.atlas-menu__feature-credit > a { display:inline-flex; align-items:center; min-height:44px; margin-right:.8rem; }
.atlas-menu__feature-credit a { color:#7e1630; text-decoration:underline; text-underline-offset:2px; }
.atlas-menu__feature-credit a:focus-visible { outline:3px solid #7e1630; outline-offset:2px; }
@media(max-width:700px) {
    .atlas-menu__feature-block { border-left:0; border-top:1px solid #ddd; padding:1rem 0 0; margin-top:1rem; }
    .atlas-menu__feature-block .atlas-menu__feature { border-top:0; padding:0; margin:0; }
}

/* Keep the direct section action inside the mobile navigation scrollport, even
   after a visitor scrolls to the feature image credit at the panel's end. */
@media(max-width:700px) {
    .masthead--atlas-v2 .primary-nav { scroll-padding-block-start:11rem; }
    .masthead--atlas-v2 .primary-nav .atlas-menu__heading {
        position:sticky;
        top:0;
        z-index:2;
        background:#fff;
        padding-block:.75rem 1rem;
        box-shadow:0 1px 0 #ddd;
    }
    .masthead--atlas-v2 .primary-nav .atlas-menu__heading > a {
        display:inline-flex;
        align-items:center;
        min-height:44px;
        padding-inline:.5rem;
        margin-inline-start:-.5rem;
    }
    .masthead--atlas-v2 .primary-nav .atlas-menu__heading > a:focus-visible {
        outline:3px solid #b90817;
        outline-offset:2px;
    }
}
