@layer atlas-legacy {

/* The returning-character casebook */

/* Different credited parts, grouped by the performer's episode count */

/* v4.1 fan companion */
.page-contents { align-items: center; background: var(--atlas-white); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 45px; padding: 15px 18px; position: sticky; top: 0; z-index: 8; }
.page-contents strong { font-size: .7rem; text-transform: uppercase; }
.page-contents a { color: var(--ink); font-size: .75rem; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .page-contents { position: static; }
}

/* v4.0 discovery, atlas and village dossier refinements */
.back-to-top { display: inline-block; margin-bottom: 16px; text-decoration: underline; text-underline-offset: 4px; }

/* 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. */
.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; }

.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; }

@media (max-width: 1050px) {
  .global-breadcrumb { padding-inline: 24px; }
}

@media (max-width: 680px) {
  .guide-page { padding-inline: 16px; }
  .guide-hero { min-height: auto; padding: 75px 0; }
  .guide-hero h1 { font-size: 4rem; }
  .guide-hero > p:last-child { align-self: flex-start; }
}

@media print {
  .no-print { display: none !important; }
}

/* Reference desk: atlas, statistics, books and personal watchlist */

/* 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}
.guide-hero{min-height:auto;padding:48px 0}.guide-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){.guide-hero{padding:40px 0}.footer-groups{grid-row:auto}}
@media(max-width:680px){.guide-hero{padding:34px 0}.guide-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 */
.guide-hero h1{font-size:clamp(3.25rem,6vw,6.25rem);line-height:.91}
.page-contents{background:var(--paper-deep);border-block:1px solid var(--line);display:flex;flex-wrap:wrap;gap:0;margin:0 0 34px;padding:0}.page-contents strong,.page-contents a{font:800 .65rem var(--atlas-body-font);letter-spacing:.04em;padding:13px 16px;text-transform:uppercase}.page-contents strong{background:var(--atlas-footer);color:var(--atlas-body)}.page-contents a{border-right:1px solid var(--line);color:var(--oxblood);text-decoration:none}.page-contents a:hover{background:var(--cream)}
.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)}.page-contents{display:grid;grid-template-columns:1fr 1fr;margin-bottom:24px}.page-contents strong{grid-column:1/-1}.page-contents a{border-bottom:1px solid var(--line);padding:12px}.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 */
.page-contents strong,.page-contents a{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 */
.keyword-table-scroll{overflow-x:auto;max-width:100%;margin:20px 0;scrollbar-gutter:stable}.keyword-table-scroll:focus-visible{outline:3px solid var(--ink,var(--atlas-heading));outline-offset:4px}.keyword-table{border-collapse:collapse;width:100%;text-align:left;font-size:.95rem}.keyword-table th,.keyword-table td{border-bottom:1px solid var(--atlas-footer);padding:14px 12px;vertical-align:top}.keyword-table th{font-weight:700}.keyword-table ul{margin:0;padding-left:18px}.keyword-table li+li{margin-top:6px}@media(max-width:680px){.keyword-table{min-width:560px;font-size:.9rem}.keyword-table th,.keyword-table td{padding:10px}}

}
