@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, .atlas-card header p { 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. */
.atlas-card > header > span:first-child { display: none; }

/* 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; }
.actor-portrait { margin: 0; min-width: 0; }
.actor-portrait > img,
.actor-portrait-placeholder { aspect-ratio: 4 / 5; background: var(--atlas-footer); display: block; height: auto; object-fit: cover; object-position: center top; width: 100%; }
.actor-portrait-placeholder { align-items: center; background: linear-gradient(145deg, var(--atlas-footer), var(--atlas-divider)); color: var(--oxblood); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.actor-portrait-placeholder > span { border: 1px solid var(--gold); border-radius: 50%; display: grid; font-family: var(--atlas-body-font); font-size: 1.2rem; font-weight: 900; height: 74px; letter-spacing: 0.08em; place-items: center; width: 74px; }
.actor-portrait-placeholder small { font-family: var(--atlas-body-font); font-size: 0.5rem; font-weight: 900; letter-spacing: 0.08em; margin-top: 20px; text-transform: uppercase; }
.actor-portrait figcaption { color: var(--atlas-muted); font-family: var(--atlas-body-font); font-size: 0.49rem; line-height: 1.5; min-height: 38px; padding: 9px 2px 0; }
.actor-portrait figcaption a { color: var(--oxblood); }
.actor-portrait-compact > img,
.actor-portrait-compact .actor-portrait-placeholder { aspect-ratio: 16 / 10; }
.actor-portrait-compact figcaption { min-height: 46px; }

@media (max-width: 1050px) {
  .global-breadcrumb { padding-inline: 24px; }
}

@media (max-width: 680px) {
  .actor-portrait-compact > img,
  .actor-portrait-compact .actor-portrait-placeholder { aspect-ratio: 4 / 3; }
}

@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; }
.reference-hero {
  border-bottom: 1px solid var(--line);
  min-height: 600px;
  padding: 80px 0 70px;
}
.reference-hero h1 { font-size: clamp(4.4rem, 8.5vw, 8.4rem); margin-bottom: 34px; }
.reference-hero > div > p:last-child { color: var(--atlas-body); font-size: 1.02rem; line-height: 1.75; margin: 0; max-width: 640px; }
.reference-hero figure { margin: 0; min-height: 430px; overflow: hidden; }
.reference-hero figure img { display: block; height: 100%; object-fit: cover; width: 100%; }
.atlas-card header { font-family: var(--atlas-body-font); }
.atlas-card { background: rgb(var(--atlas-parchment-rgb) / 0.65); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 520px; padding: 28px; }
.atlas-card:hover { background: var(--cream); }
.atlas-card > h2 a { color: inherit; text-decoration: none; }
.atlas-card header { align-items: center; display: flex; justify-content: space-between; }
.atlas-card header > span { color: var(--atlas-oxblood); font-family: var(--atlas-body-font); font-size: 1.55rem; }
.atlas-card header p { color: var(--atlas-muted); font-size: 0.55rem; margin: 0; text-transform: uppercase; }
.atlas-card > h2 { font-size: 2.35rem; font-weight: 400; line-height: 1; margin: 52px 0 17px; }
.atlas-card > p { color: var(--atlas-muted); font-size: 0.84rem; line-height: 1.65; }
.guest-profile-sections { display: grid; grid-template-columns: 1fr 1fr; }
.guest-profile-sections > article { border: 1px solid var(--line); margin: -1px 0 0 -1px; min-height: 430px; padding: 48px; }
.guest-profile-sections h2 { font-size: 2.6rem; font-weight: 400; line-height: 1.05; }
.guest-profile-sections article > p:not(.eyebrow) { color: var(--atlas-muted); line-height: 1.8; }
.guest-profile-sections article > a { font-family: var(--atlas-body-font); font-size: .62rem; font-weight: 900; text-transform: uppercase; }

@media (max-width: 1050px) {
  .reference-hero figure { max-height: 420px; }
}

@media (max-width: 680px) {
  .reference-page { padding-inline: 16px; }
  .reference-hero { min-height: auto; padding: 65px 0; }
  .reference-hero h1 { font-size: 4rem; }
  .reference-hero figure { min-height: 280px; }
  .atlas-card { min-height: 470px; }
  .guest-profile-sections { grid-template-columns: 1fr; }
  .guest-profile-sections > article { min-height: auto; padding: 34px 28px; }
}

/* 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}
.reference-hero{min-height:auto;padding:48px 0}.reference-hero h1{font-size:clamp(3.8rem,7vw,7rem);margin-bottom:22px}.reference-hero figure{min-height:340px}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}.reference-hero img{object-position:center}
@media(max-width:900px){.reference-hero{padding:40px 0}.footer-groups{grid-row:auto}}
@media(max-width:680px){.reference-hero{padding:34px 0}.reference-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 */
.reference-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){.reference-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 */.cast-appearance-ledger article>span{color:var(--oxblood);font:800 .68rem var(--atlas-body-font);letter-spacing:.05em;text-transform:uppercase}.cast-appearance-ledger{border-top:1px solid var(--line);display:grid;gap:44px;grid-template-columns:minmax(240px,.65fr) minmax(0,1.35fr);padding:58px 0 78px}.cast-appearance-ledger>header h2{font-size:clamp(2.8rem,5vw,4.7rem);font-weight:400;line-height:.98}.cast-appearance-ledger>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.cast-appearance-ledger article{border-bottom:1px solid var(--line);display:flex;flex-direction:column;min-height:220px;padding:24px}.cast-appearance-ledger article:nth-child(odd){border-right:1px solid var(--line)}.cast-appearance-ledger h3{font-size:1.8rem;font-weight:400;margin:26px 0 8px}.cast-appearance-ledger p{color:var(--atlas-muted);margin:0 0 22px}.cast-appearance-ledger article>a{font-weight:800;margin-top:auto}
@media(max-width:900px){.cast-appearance-ledger{grid-template-columns:1fr}}
@media(max-width:680px){.cast-appearance-ledger>div{grid-template-columns:1fr}.cast-appearance-ledger article:nth-child(odd){border-right:0}.cast-appearance-ledger{gap:22px;padding-block:44px}}

/* Round 5B: compact, responsive filming evidence near the episode lead. */

/* Round 5D: accessible episode reference tables */

}
