@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; }
.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; }
.watch-region-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.watch-region-grid article { padding: 1.7rem; border: 1px solid rgb(var(--atlas-heading-rgb) / .18); background: var(--atlas-parchment); }
.watch-region-grid article > span { color: var(--atlas-oxblood); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.watch-region-grid a { font-weight: 800; }
.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) {
  .watch-region-grid,.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. */
.place-county {
  font-family: var(--atlas-body-font);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.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); }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(2.45rem, 5vw, 5rem); font-weight: 400; letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 0; max-width: 780px; }
.section-heading > p { color: var(--atlas-muted); font-size: 0.9rem; line-height: 1.65; margin: 0; max-width: 350px; }
.place-county { color: var(--oxblood); font-size: 0.58rem; font-weight: 800; margin-bottom: 4px; }

.map-section {
  margin: 0 auto;
  max-width: 1352px;
  padding: 118px 28px 10px;
}
.text-link { font-family: var(--atlas-body-font); font-size: 0.68rem; font-weight: 900; margin-top: 18px; text-decoration: none; text-transform: uppercase; }
.text-link span { color: var(--atlas-oxblood); }

.map-section { padding-top: 130px; }
.map-workspace { background: var(--atlas-footer); display: grid; grid-template-columns: 230px minmax(380px, 1fr) 330px; min-height: 600px; }
.location-rail { border-right: 1px solid rgb(var(--atlas-white-rgb) / 0.15); max-height: 600px; overflow-y: auto; }
.location-rail button { background: transparent; border: 0; border-bottom: 1px solid rgb(var(--atlas-white-rgb) / 0.12); color: var(--atlas-body); cursor: pointer; display: grid; grid-template-columns: 34px 1fr; padding: 19px 15px; text-align: left; width: 100%; }
.location-rail button > span { color: var(--atlas-oxblood); font-size: 0.7rem; grid-row: 1 / span 2; }
.location-rail button strong { font-size: 0.86rem; font-weight: 400; }
.location-rail button small { color: var(--atlas-muted); font-family: var(--atlas-body-font); font-size: 0.55rem; margin-top: 4px; text-transform: uppercase; }
.location-rail button:hover,
.location-rail button.is-active { background: var(--atlas-footer); }
.map-frame { min-height: 520px; position: relative; }
.map-frame iframe { border: 0; height: 100%; min-height: 520px; width: 100%; }
.map-credit { background: rgb(var(--atlas-footer-rgb) / 0.92); bottom: 12px; color: var(--atlas-body); font-family: var(--atlas-body-font); font-size: 0.55rem; left: 12px; padding: 8px 10px; position: absolute; text-decoration: none; }
.location-dossier { color: var(--atlas-body); padding: 38px 30px; }
.location-dossier h3 { font-size: 2.4rem; font-weight: 400; line-height: 1; margin: 10px 0 20px; }
.location-dossier > p:not(.place-county),
.location-dossier > div p { color: var(--atlas-body); font-size: 0.82rem; line-height: 1.65; }
.location-dossier > div { border-block: 1px solid rgb(var(--atlas-white-rgb) / 0.15); margin: 24px 0; padding: 18px 0; }
.location-dossier > div span,
.location-dossier h4 { color: var(--atlas-oxblood); font-family: var(--atlas-body-font); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; }
.location-dossier h4 { margin: 0 0 12px; }
.location-dossier ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.location-dossier li a { color: var(--atlas-body); font-size: 0.78rem; }
.location-dossier .text-link { color: var(--atlas-body); display: inline-block; }
.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; }
.location-booking-section { border-bottom: 1px solid var(--line); display: grid; gap: 70px; grid-template-columns: 0.7fr 1.3fr; padding: 90px 0; }

.guide-page { margin: 0 auto; max-width: 1352px; padding: 0 28px; }
.guide-hero { align-items: end; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; min-height: 610px; padding: 80px 0; width: 100%; }
.guide-hero h1 { align-self: flex-start; font-size: clamp(4.6rem, 9vw, 9rem); max-width: 1050px; }
.guide-hero > p:last-child { align-self: flex-end; color: var(--atlas-muted); font-size: 1.06rem; line-height: 1.75; margin: 0; max-width: 720px; }
.guide-hero-compact { min-height: 690px; }
.guide-lead-image { margin: 0 0 35px; }
.guide-lead-image img { display: block; height: clamp(360px, 46vw, 640px); object-fit: cover; width: 100%; }
.guide-lead-image figcaption { color: var(--atlas-muted); font-family: var(--atlas-body-font); font-size: 0.56rem; letter-spacing: 0.06em; padding-top: 10px; text-align: right; text-transform: uppercase; }
.editorial-note { align-items: start; background: var(--paper-deep); border-left: 4px solid var(--gold); display: grid; gap: 12px; grid-template-columns: 250px 1fr; margin: 80px 0; padding: 30px; }
.editorial-note strong { color: var(--oxblood); font-family: var(--atlas-body-font); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.editorial-note p { color: var(--atlas-muted); line-height: 1.65; margin: 0; }
.location-region { margin: 100px 0; }
.location-region > header { align-items: end; display: grid; grid-template-columns: 1fr auto; margin-bottom: 25px; }
.location-region > header h2 { font-size: clamp(3.3rem, 7vw, 7rem); font-weight: 400; letter-spacing: -0.055em; line-height: 0.9; margin: 0; }
.location-region > header > span { font-family: var(--atlas-body-font); font-size: 0.62rem; text-transform: uppercase; }
.location-directory { border-top: 1px solid var(--line); }
.location-directory > a { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 30px; grid-template-columns: 1fr 150px; padding: 28px 6px; text-decoration: none; }
.location-directory > a:hover { background: var(--cream); }
.location-directory h3 { font-size: 1.8rem; font-weight: 400; margin-bottom: 8px; }
.location-directory p { color: var(--atlas-muted); font-size: 0.8rem; line-height: 1.6; margin: 0; max-width: 800px; }
.location-directory strong { color: var(--oxblood); font-family: var(--atlas-body-font); font-size: 0.6rem; justify-self: end; text-transform: uppercase; }

@media (max-width: 1050px) {
  .global-breadcrumb { padding-inline: 24px; }
  .location-booking-section { gap: 42px; grid-template-columns: 1fr; }
  .map-workspace { grid-template-columns: 190px 1fr; }
  .location-dossier { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .section-heading h2 { font-size: 3rem; }
  .map-section { padding: 82px 16px 0; }
  .map-workspace { grid-template-columns: 1fr; }
  .location-rail { border-right: 0; display: flex; max-height: none; overflow-x: auto; }
  .location-rail button { border-bottom: 0; border-right: 1px solid rgb(var(--atlas-white-rgb) / 0.12); flex: 0 0 180px; }
  .map-frame,
  .map-frame iframe { min-height: 390px; }
  .location-booking-section { gap: 34px; padding: 65px 0; }
  .guide-page { padding-inline: 16px; }
  .guide-hero,
  .guide-hero-compact { min-height: auto; padding: 75px 0; }
  .guide-hero h1 { font-size: 4rem; }
  .guide-hero > p:last-child { align-self: flex-start; }
  .guide-lead-image img { height: 300px; }
  .guide-lead-image figcaption { text-align: left; }
  .editorial-note { grid-template-columns: 1fr; }
  .location-region > header { align-items: start; grid-template-columns: 1fr; }
  .location-region > header > span { margin-top: 14px; }
  .location-directory > a { align-items: start; grid-template-columns: 1fr; }
  .location-directory strong { justify-self: start; }
}

@media print {
  .no-print { display: none !important; }
}

/* Reference desk: atlas, statistics, books and personal watchlist */
.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; }

@media (max-width: 680px) {
  .atlas-card { min-height: 470px; }
}

/* 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}.map-section{padding-top:64px}
.guide-hero,.guide-hero-compact{min-height:auto;padding:48px 0}.guide-hero h1{font-size:clamp(3.8rem,7vw,7rem);margin-bottom:22px}.location-region{margin:60px 0}.location-booking-section{padding-block:54px}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){.guide-hero,.guide-hero-compact{padding:40px 0}.footer-groups{grid-row:auto}}
@media(max-width:680px){.map-section{padding-top:40px}.guide-hero,.guide-hero-compact{padding:34px 0}.guide-hero h1{font-size:3.35rem}.location-region{margin:44px 0}.location-booking-section{padding-block:40px}.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 */
.guide-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){.guide-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 */
.breadcrumbs{font-size:14px}
.footer-groups a{font-size:14px}

/* Release 8.17: Series 26 announcement and press ledger */

/* Release 8.21: clearer information architecture and searchable reference desk */
@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 */

}
