@layer atlas-legacy {

/* The returning-character casebook */

/* Different credited parts, grouped by the performer's episode count */

/* v4.1 fan companion */

/* v4.0 discovery, atlas and village dossier refinements */
.back-to-top { display: inline-block; margin-bottom: 16px; text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { font-size: max(.68rem, 11px); }

/* Version 3 navigation and discovery surfaces */
.global-breadcrumb { margin: 0 auto; max-width: 1440px; padding-inline: 44px; }
main:has(.breadcrumbs:not(.global-breadcrumb)) .global-breadcrumb { display: none; }
.footer-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; margin: 2rem 0; }
.footer-groups section { display: grid; align-content: start; gap: .45rem; }
.footer-groups h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 820px) {
  .footer-groups { grid-template-columns: 1fr; }
}

/* Decorative card sequence numbers removed for a quieter, content-first layout. */

/* Decorative card ordinals are deliberately suppressed; factual counts and
   series/episode references remain visible in their own labelled components. */
.eyebrow {
  font-family: var(--atlas-body-font);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow { color: var(--atlas-oxblood); font-size: 0.68rem; font-weight: 700; margin: 0 0 20px; }
.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-family: var(--atlas-body-font);
  font-size: 0.72rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.breadcrumbs { align-items: center; color: var(--atlas-muted); display: flex; flex-wrap: wrap; font-family: var(--atlas-body-font); font-size: 0.6rem; gap: 8px; padding: 28px 0; text-transform: uppercase; }
.breadcrumbs a { font-weight: 800; text-decoration: none; }

@media (max-width: 1050px) {
  .global-breadcrumb { padding-inline: 24px; }
}

@media print {
  .no-print { display: none !important; }
}

/* Reference desk: atlas, statistics, books and personal watchlist */
.reference-page { margin: 0 auto; max-width: 1352px; padding: 0 28px; }
.explore-hero { border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; min-height: 620px; padding: 90px 0; }
.explore-hero h1 { font-size: clamp(4.8rem, 9vw, 9rem); max-width: 1100px; }
.explore-hero > p:last-child { align-self: flex-end; color: var(--atlas-muted); font-size: 1.05rem; line-height: 1.75; margin: 0; max-width: 680px; }
.physical-shelf { border-bottom: 1px solid var(--line); padding: 76px 0 18px; }
.physical-shelf > header { align-items: end; display: grid; gap: 36px; grid-template-columns: 1.15fr 0.85fr; margin-bottom: 30px; }
.physical-shelf > header h2 { font-size: clamp(3rem, 6vw, 6.2rem); font-weight: 400; letter-spacing: -0.05em; line-height: 0.94; margin: 8px 0; }
.physical-shelf > header > p { color: var(--atlas-muted); line-height: 1.7; }
.physical-shelf > div { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.physical-shelf article { background: var(--atlas-white); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 390px; padding: 27px; }
.physical-shelf article > small { color: var(--oxblood); font: 900 0.6rem var(--atlas-body-font); letter-spacing: 0.07em; text-transform: uppercase; }
.physical-shelf h3 { font-size: 2rem; font-weight: 400; line-height: 1.05; margin: 44px 0 16px; }
.physical-shelf article > p { color: var(--atlas-muted); font-size: 0.83rem; line-height: 1.7; }
.physical-shelf footer { align-items: flex-start; background: none; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; margin-top: auto; padding: 17px 0 0; }
.physical-shelf footer span { color: var(--atlas-muted); font: 800 0.55rem var(--atlas-body-font); text-transform: uppercase; }
.physical-shelf footer a { font: 900 0.68rem var(--atlas-body-font); margin-top: 5px; text-decoration: none; text-transform: uppercase; }
.physical-shelf > aside { align-items: center; background: var(--paper-deep); display: flex; gap: 20px; justify-content: space-between; margin-top: 12px; padding: 23px 27px; }
.physical-shelf > aside p { margin: 0; }

@media (max-width: 1050px) {
  .physical-shelf > div { grid-template-columns: repeat(2, 1fr); }
  .physical-shelf > header { align-items: start; grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .reference-page { padding-inline: 16px; }
  .explore-hero { min-height: auto; padding: 75px 0; }
  .explore-hero h1 { font-size: 4rem; }
  .explore-hero > p:last-child { align-self: flex-start; }
  .physical-shelf > div { grid-template-columns: 1fr; }
  .physical-shelf > aside { align-items: flex-start; flex-direction: column; }
}

/* Released-series archive */
.county-map { background: var(--atlas-footer); border: 1px solid var(--atlas-divider); margin: 70px 0; padding: 28px; }
.county-map svg { display: block; height: auto; max-height: 780px; width: 100%; }

@media (max-width: 680px) {
  .county-map { margin-inline: -16px; padding: 10px; }
}
/* Release 6.1: ten-pass fan discovery and usability review */

/* Release 7.0: editorial hierarchy, rights-holder clarity and measured commerce */
footer .back-to-top{grid-column:1}.footer-groups{grid-column:3;margin:0}.footer-groups a{font-size:.76rem}
@media(max-width:900px){.footer-groups{grid-column:1/-1;grid-row:1}.back-to-top{grid-column:2!important;text-align:right}}
@media(max-width:680px){.footer-groups{grid-template-columns:repeat(2,1fr);width:100%}}

/* Release 8.146: rights-holder image permissions brief */
.permissions-brief{padding-bottom:72px}

/* Release 8.3: one hundred spoiler-safe episode observation cards */

.operator-details{align-items:center;border-block:1px solid var(--line);display:grid;gap:16px;grid-column:1/3;grid-template-columns:150px 1fr;padding:22px 0}.operator-logo-link{align-items:center;background:var(--atlas-white);border:1px solid var(--line);display:flex;justify-content:center;margin:0;padding:7px}.operator-details .operator-logo-link img{display:block;height:auto;width:100%}.operator-details>div{display:grid;gap:5px}.operator-details small{color:var(--atlas-muted);font:700 .62rem var(--atlas-body-font);text-transform:uppercase}.operator-details strong{font-size:1.15rem}.operator-details address{color:var(--atlas-muted);display:grid;font:normal .72rem/1.55 var(--atlas-body-font)}.operator-details nav{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:4px}.operator-details nav a{color:var(--oxblood);font:800 .64rem var(--atlas-body-font);text-transform:uppercase}@media(max-width:900px){.operator-details{grid-column:1/-1}}@media(max-width:520px){.operator-details{align-items:start;grid-template-columns:110px 1fr}.operator-details strong{font-size:1rem}.operator-details nav{align-items:start;flex-direction:column;gap:5px}}

/* Release 8.13: denser shared rhythm after full-page visual review */.breadcrumbs{padding:18px 0}
.explore-hero{min-height:auto;padding:48px 0}.explore-hero h1{font-size:clamp(3.8rem,7vw,7rem);margin-bottom:22px}footer .back-to-top{grid-column:1}.footer-groups{grid-column:1/-1;grid-row:auto;margin:0}.operator-details{grid-column:1;padding:18px 0}.footer-groups a{font-size:.76rem}
@media(max-width:900px){.explore-hero{padding:40px 0}.footer-groups{grid-row:auto}}
@media(max-width:680px){.explore-hero{padding:34px 0}.explore-hero h1{font-size:3.35rem}.footer-groups,footer .back-to-top,.operator-details{grid-column:1}.operator-details{grid-template-columns:110px 1fr}}

/* Release 8.15: clearer routes, international entry and restrained display scale */
.explore-hero h1{font-size:clamp(3.25rem,6vw,6.25rem);line-height:.91}
.footer-legal{align-items:end;border-top:1px solid var(--line);display:grid;gap:24px;grid-column:2;grid-template-columns:1fr auto;padding-top:18px}.footer-legal p{color:var(--atlas-muted);font:normal .65rem/1.6 var(--atlas-body-font);margin:0;max-width:660px}
@media(max-width:900px){.footer-legal{grid-column:1/-1}}
@media(max-width:680px){.explore-hero h1{font-size:clamp(2.65rem,13vw,3.7rem)}.footer-legal{gap:10px;grid-column:1;grid-template-columns:1fr}}

/* Readability and consistent editorial rhythm */
.reference-page p+p{margin-top:1em}
.breadcrumbs{font-size:14px}
.eyebrow{font-size:14px}
.footer-groups a{font-size:14px}
.reference-page li{font-size:1rem}
.reference-page small{font-size:14px}

/* Release 8.17: Series 26 announcement and press ledger */

/* Release 8.21: clearer information architecture and searchable reference desk */
.eyebrow{font-size:max(.75rem,12px)}
@media(max-width:680px){.global-breadcrumb{padding-inline:16px}}

/* Release 8.18: expanded German edition */

/* Release 8.19: audiobook listening desk */

/* Release 8.20: sourced Midsomer trivia drawers */

/* Release 8.51: evidence-only performer records */

/* Round 5B: compact, responsive filming evidence near the episode lead. */

/* Round 5D: accessible episode reference tables */

}
