:root {
  color-scheme: light;
  --ink: #1b2b44;
  --blue: #235197;
  --blue-dark: #183d75;
  --red: #a93638;
  --surface: #f5f7f7;
  --white: #fff;
  --soft: #e8eef1;
  --muted: #526278;
  --line: #cbd5dc;
  --display: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 1rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
button { font: inherit; }
a { color: var(--blue); text-decoration-thickness: .075em; text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
::selection { background: #d7e5f8; color: var(--ink); }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 100; padding: .6rem 1rem; background: var(--white); border: 2px solid var(--red); color: var(--ink); }
.skip-link:focus { top: .75rem; }

.site-header { background: #12192b; }
.site-header :focus-visible { outline-color: #f0a0a3; }
.header-inner { max-width: 1220px; margin: auto; padding: .85rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; flex-direction: column; flex: none; color: var(--ink); text-decoration: none; line-height: 1; }
.brand img { display: block; align-self: center; width: 270px; height: auto; aspect-ratio: 512 / 220; object-fit: contain; }
.brand-tagline { margin-top: .2rem; color: #dbe5f7; font-size: .62rem; font-weight: 800; letter-spacing: .19em; text-align: center; text-transform: uppercase; }
.brand:hover .brand-tagline, .brand:focus-visible .brand-tagline { color: var(--white); }
.desktop-nav { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: clamp(.6rem, 1.5vw, 1.1rem); }
.desktop-nav a, .mobile-nav a { color: #edf3ff; font-size: .87rem; font-weight: 700; text-decoration: none; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .1rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--white); border-color: #eb898d; }
.nav-group { position: relative; }
.nav-group__heading { display: flex; align-items: center; gap: .1rem; color: #edf3ff; font-size: .87rem; font-weight: 700; }
.nav-disclosure summary { display: grid; place-items: center; min-width: 44px; min-height: 44px; cursor: pointer; font-size: 0; list-style: none; }
.nav-disclosure summary::-webkit-details-marker { display: none; }
.nav-disclosure summary::after { content: "▾"; font-size: 1rem; }
.nav-disclosure[open] summary::after { content: "▴"; }
.nav-panel { position: absolute; top: calc(100% + .25rem); left: 0; z-index: 30; display: grid; min-width: 235px; padding: .4rem; background: #12192b; border: 1px solid #8291ac; box-shadow: 0 15px 35px #1b2b4433; }
.nav-group:last-child .nav-panel { left: auto; right: 0; }
.desktop-nav .nav-panel a { min-height: 44px; padding: .55rem .7rem; white-space: normal; }
.desktop-nav .nav-panel a:hover, .desktop-nav .nav-panel a[aria-current="page"] { background: #26334c; }
.mobile-nav { display: none; }

.dynatex-testmuster { max-width: 1080px; }
.dynatex-testmuster [hidden] { display: none !important; }
.testmuster-lead { font-size: clamp(1.16rem, 1.8vw, 1.35rem) !important; }
.testmuster-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 2rem 0; }
.testmuster-stats p { min-width: 0; margin: 0; padding: 1rem 1.2rem; background: var(--white); border-top: 3px solid var(--red); font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
.testmuster-stats strong { display: block; font: 700 2.1rem/1.1 var(--display); }
.testmuster-stats span { color: var(--muted); font-size: .82rem; }
.testmuster-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; align-items: end; padding: 1rem; background: var(--soft); }
.testmuster-filters label { display: grid; gap: .25rem; color: var(--ink); font-size: .82rem; font-weight: 750; }
.testmuster-filters input, .testmuster-filters select, .testmuster-filters button { width: 100%; min-width: 0; min-height: 44px; padding: .45rem .6rem; border: 1px solid #8291ac; border-radius: 0; background: var(--white); color: var(--ink); font: inherit; }
.testmuster-filters button { width: auto; cursor: pointer; font-weight: 700; }
.testmuster-results { align-self: center; grid-column: span 4; font-weight: 700; }
.testmuster-help { color: var(--muted); font-size: .9rem !important; }
.dynatex-testmuster .testmuster-section h2 { margin: 3rem 0 1rem; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.testmuster-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.testmuster-item { margin: 0; border-bottom: 1px solid var(--line); background: var(--white); }
.testmuster-item, .testmuster-item summary { overflow-wrap: anywhere; }
.testmuster-item details { padding: 0 .9rem; }
.testmuster-item summary { min-height: 56px; padding: .65rem 1.4rem .65rem .2rem; cursor: pointer; }
.testmuster-item summary::marker { color: var(--red); }
.testmuster-item__title { display: inline; font-weight: 750; }
.testmuster-item__meta, .testmuster-item__score { display: block; padding-left: 1.15rem; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.testmuster-item__score { color: var(--ink); }
.testmuster-item details > p, .testmuster-evidence { margin: .5rem 0 1rem 1.15rem; font-size: .9rem; }
.testmuster-item details > p:last-child { padding-bottom: .7rem; }
.testmuster-evidence img { display: block; max-width: min(100%, 680px); margin: .7rem 0 1.3rem; border: 1px solid var(--line); }
.testmuster-evidence img:not([src]), .testmuster-item img:not([src]) { display: none; }
.testmuster-proof { display: inline-block; min-height: 44px; padding: .35rem 0; }
.testmuster-research { max-width: 900px; margin-top: 3rem; padding: .7rem 1.2rem; background: var(--soft); }
.testmuster-research summary { min-height: 44px; padding: .4rem 0; color: var(--blue); cursor: pointer; font-weight: 700; }
.testmuster-research p { font-size: .9rem; }
.testmuster-ancillary { max-width: 900px; margin-top: 3rem; padding: .7rem 1.2rem; background: var(--white); border: 1px solid var(--line); }
.testmuster-ancillary summary { min-height: 44px; padding: .4rem 0; color: var(--blue); cursor: pointer; font-weight: 700; }
.dynatex-testmuster .testmuster-ancillary h3 { margin: 1.5rem 0 .4rem; font-size: 1.25rem; }
.testmuster-ancillary li { margin: 0 0 .7rem; }
.testmuster-ancillary__issues { color: var(--muted); font-size: .88rem; }

.main-content { min-height: 60vh; padding: clamp(2.5rem, 5.3vw, 5.5rem) 1.5rem 7rem; }
.page-content { max-width: 1120px; margin: auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem; max-width: 1120px; margin: 0 auto 1.5rem; color: var(--muted); font-size: .79rem; line-height: 1.5; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before, .breadcrumbs > a + span::before, .breadcrumbs > a + a::before { content: "/"; margin-right: .35rem; color: var(--red); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

.dynatex-page > * + * { margin-top: 1.4rem; }
.dynatex-page h1, .dynatex-page h2, .dynatex-page h3, .error-page h1 { color: var(--ink); font-family: var(--display); font-weight: 700; line-height: 1.13; letter-spacing: -.045em; }
.dynatex-page h1 { max-width: 920px; margin: .2rem 0 1.5rem; font-size: clamp(2.6rem, 6.1vw, 5.6rem); text-wrap: balance; hyphens: auto; overflow-wrap: anywhere; }
.dynatex-page h2 { margin-top: 4.5rem; font-size: clamp(2rem, 3.9vw, 3.25rem); text-wrap: balance; }
.dynatex-page h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.dynatex-page p, .dynatex-page li { font-size: 1.055rem; }
.dynatex-page > p:not(.dynatex-kicker) { max-width: 73ch; }
.dynatex-page p { overflow-wrap: break-word; }
.dynatex-kicker, .dynatex-year, .dynatex-card-label, .kicker { color: var(--red); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem !important; font-weight: 850; line-height: 1.5; }
.dynatex-kicker { margin-bottom: .45rem; }
.dynatex-source, .dynatex-page .dynatex-source { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.dynatex-source a { overflow-wrap: anywhere; }
.dynatex-note { max-width: 900px; padding: clamp(1.5rem, 3vw, 2.3rem); background: var(--soft); border-left: 4px solid var(--red); }
.dynatex-note > :first-child { margin-top: 0; }
.dynatex-note > :last-child { margin-bottom: 0; }
.dynatex-note h2, .dynatex-note h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.dynatex-home .dynatex-note h2 { margin-bottom: 1em; text-wrap: initial; }

/* The photo follows the introduction in reading order and stays close to its original size. */
.dynatex-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 450px); column-gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.dynatex-home > .dynatex-kicker, .dynatex-home > h1, .dynatex-home > h1 + p { grid-column: 1; }
.dynatex-home > h1 { margin-top: .4rem; margin-bottom: .5rem; }
.dynatex-home > h1 + p { max-width: 54ch; margin-top: 1rem; font-size: clamp(1.16rem, 1.5vw, 1.35rem); line-height: 1.63; }
.dynatex-hero-photo { grid-column: 2; grid-row: 1 / span 3; max-width: 450px; margin: .5rem 0 0; padding: .7rem; background: var(--white); border: 1px solid var(--line); box-shadow: 10px 10px 0 var(--soft); }
.dynatex-hero-photo img { display: block; width: 100%; }
.dynatex-hero-photo figcaption { margin: .85rem .25rem .2rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.dynatex-home > .dynatex-cards, .dynatex-home > .dynatex-note { grid-column: 1 / -1; }
.dynatex-home > .dynatex-cards { margin-top: clamp(3.5rem, 7vw, 6rem); }
.dynatex-home > .dynatex-note { margin-top: 3rem; }
.dynatex-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.dynatex-card, .dynatex-archive-item, .dynatex-media-feature, .dynatex-link-card, .dynatex-evidence-card { min-width: 0; background: var(--white); border: 1px solid var(--line); }
.dynatex-card { display: flex; flex-direction: column; padding: clamp(1.3rem, 2.3vw, 2rem); border-top: 3px solid var(--blue); }
.dynatex-card > :first-child, .dynatex-archive-item > :first-child { margin-top: 0; }
.dynatex-card > :last-child, .dynatex-archive-item > :last-child { margin-bottom: 0; }
.dynatex-home .dynatex-card h2 { margin: 1rem 0; font-size: clamp(1.35rem, 2vw, 1.75rem); text-wrap: initial; }
.dynatex-card p { font-size: .95rem; }
.dynatex-card p:last-child { margin-top: auto; padding-top: .7rem; font-weight: 750; }

/* Each date, story and source remains one semantic section. */
.dynatex-timeline { max-width: 1040px; border-top: 2px solid var(--ink); }
.dynatex-timeline section { display: grid; grid-template-columns: minmax(145px, 190px) minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 4rem); padding: 2.35rem 0; border-bottom: 1px solid var(--line); }
.dynatex-timeline section > .dynatex-year { grid-column: 1; grid-row: 1 / span 6; margin: .25rem 0 0; }
.dynatex-timeline section > :not(.dynatex-year) { grid-column: 2; }
.dynatex-timeline h3 { margin: 0 0 .7rem; }
.dynatex-timeline p { max-width: 73ch; margin: 0 0 1rem; }
.dynatex-timeline .dynatex-source, .dynatex-evidence-card { max-width: 74ch; margin-bottom: 0; padding: 1rem 1.2rem; background: var(--white); border-left: 3px solid var(--red); }
.dynatex-timeline .dynatex-source a { font-weight: 650; }
.dynatex-timeline details { margin: .2rem 0 1rem; padding: .3rem 1rem; background: var(--white); border: 1px solid var(--line); }
.dynatex-timeline details summary { min-height: 44px; padding: .55rem 0; color: var(--blue); font-weight: 700; line-height: 1.45; cursor: pointer; }
.dynatex-timeline details[open] summary { margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.dynatex-story > h2:not(#zeitleiste) { padding-top: 2.5rem; border-top: 2px solid var(--ink); }
.dynatex-prices { width: 100%; max-width: 680px; margin: .3rem 0 1.2rem; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.dynatex-prices caption { margin-bottom: .5rem; color: var(--muted); font-size: .83rem; font-weight: 700; text-align: left; }
.dynatex-prices th, .dynatex-prices td { padding: .65rem .7rem .65rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dynatex-prices th { color: var(--ink); font-size: .82rem; }
.dynatex-prices th:last-child, .dynatex-prices td:last-child { padding-right: 0; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.dynatex-archive-list { display: grid; gap: 1.1rem; margin-top: 2.4rem; }
.dynatex-archive-item { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2.2rem); }
.dynatex-archive-item h2 { margin: .5rem 0 1rem; font-size: clamp(1.65rem, 2.7vw, 2.4rem); }
.dynatex-archive-item h3 { margin: .5rem 0; }
.dynatex-archive-item p { font-size: .98rem; }
.dynatex-archive-item .dynatex-source { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.dynatex-archive-item:nth-child(4n + 1) { border-top: 3px solid var(--blue); }
.dynatex-archive-item:nth-child(4n + 2) { border-top: 3px solid var(--red); }
.dynatex-archive-item:nth-child(4n + 3) { border-top: 3px solid var(--ink); }
.dynatex-archive-item:nth-child(4n) { border-top: 3px solid var(--muted); }
.dynatex-link-card { max-width: 830px; padding: 1.3rem 1.6rem; border-left: 3px solid var(--blue); }
.dynatex-link-card h2, .dynatex-link-card h3 { margin: 0 0 .6rem; font-size: 1.6rem; }
.dynatex-link-card p:last-child { margin-bottom: 0; }

.dynatex-memory { max-width: 890px; padding: 1.7rem 0 1.9rem clamp(1.2rem, 3vw, 2.4rem); border-left: 3px solid var(--red); }
.dynatex-memory h2, .dynatex-memory h3 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.dynatex-memory p:last-child { margin-bottom: 0; }
.dynatex-quote { max-width: 70ch; margin: 2rem 0; padding: 1rem 0 1rem 1.35rem; border-left: 3px solid var(--red); font: 1.4rem/1.4 var(--display); }
.dynatex-media-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: start; gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.3rem, 2.3vw, 2rem); }
.dynatex-media-feature h2 { margin-top: 0; font-size: clamp(1.55rem, 2.5vw, 2.35rem); }
.dynatex-media-feature figure { margin: 0; }
.dynatex-media-feature figcaption, .dynatex-archive-photo figcaption { margin-top: .75rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }

/* Local artwork is a visual invitation; the external video loads only after a click. */
.dynatex-media-card { width: min(100%, 820px); min-width: 0; margin: 1.5rem 0; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.dynatex-media-card--red { border-top-color: var(--red); }
.dynatex-media-card__link { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); min-width: 0; color: var(--ink); text-decoration: none; }
.dynatex-media-card__link:hover { color: var(--ink); }
.dynatex-media-card__link:hover .dynatex-media-card__cta { text-decoration: underline; text-decoration-thickness: .1em; }
.dynatex-media-card__art { position: relative; display: grid; place-items: center; min-width: 0; min-height: 190px; padding: 1.1rem; overflow: hidden; background: #12192b; }
.dynatex-media-card__art img { display: block; width: 100%; max-height: 190px; object-fit: contain; }
.dynatex-media-card__play { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; padding-left: .2rem; border-radius: 50%; background: var(--white); color: var(--blue); box-shadow: 0 5px 18px #0007; font-size: 1.25rem; line-height: 1; }
.dynatex-media-card__copy { display: flex; flex-direction: column; min-width: 0; gap: .55rem; padding: clamp(1.15rem, 2.8vw, 1.8rem); overflow-wrap: anywhere; }
.dynatex-media-card__eyebrow { color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.dynatex-media-card__title { font: 700 clamp(1.45rem, 2.5vw, 2.1rem)/1.16 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.dynatex-media-card__meta { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.dynatex-media-card__cta { margin-top: auto; padding-top: .55rem; color: var(--blue); font-size: .9rem; font-weight: 800; line-height: 1.4; }
.dynatex-media-card figcaption { padding: .7rem 1.15rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.5; }
.dynatex-media-entry { min-width: 0; }
.dynatex-media-entry .dynatex-media-card { width: 100%; margin: 0; }
.dynatex-media-entry > p { margin: 0; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-top: 0; font-size: .95rem; }

.dynatex-archive-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.25rem; max-width: 1120px; margin: 2.5rem 0; }
.dynatex-restoration { width: min(100%, 760px); margin: 2rem 0 2.5rem; padding: .85rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.dynatex-restoration img { display: block; width: 100%; height: auto; }
.dynatex-restoration figcaption { margin: .75rem .2rem .1rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.dynatex-archive-photo { max-width: 430px; margin: 2rem 0; padding: .8rem; background: var(--white); border: 1px solid var(--line); }
.dynatex-archive-photos .dynatex-archive-photo { max-width: none; height: 100%; margin: 0; }
.dynatex-archive-photo img { display: block; width: auto; max-height: 300px; margin-inline: auto; object-fit: contain; }
.dynatex-archive-logo { max-width: 248px; margin: 1.5rem 0 2rem; }
.dynatex-archive-logo img { display: block; width: 100%; max-width: 248px; }

.dynatex-comparison { max-width: 900px; }
.dynatex-comparison > h2 { margin-bottom: .7rem; }
.dynatex-comparison__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.dynatex-comparison__pair figure { min-width: 0; margin: 0; padding: .8rem; background: var(--white); border: 1px solid var(--line); }
.dynatex-comparison__pair img { display: block; width: 100%; aspect-ratio: 339 / 232; object-fit: contain; }
.dynatex-comparison__pair figcaption { margin-top: .65rem; color: var(--muted); font-size: .83rem; }
.dynatex-comparison__stage { position: relative; width: min(100%, 760px); aspect-ratio: 339 / 232; margin-top: 1.4rem; overflow: hidden; background: var(--ink); border: 1px solid var(--line); --reveal: 50%; }
.dynatex-comparison__stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; }
.dynatex-comparison__overlay { clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.dynatex-comparison__stage::after { content: ""; position: absolute; left: var(--reveal); top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: var(--white); box-shadow: 0 0 0 1px var(--ink); pointer-events: none; }
.dynatex-comparison__controls { display: flex; align-items: end; gap: .5rem; width: min(100%, 760px); margin-top: .8rem; }
.dynatex-comparison__controls label { display: grid; flex: 1; min-width: 0; gap: .25rem; font-weight: 700; }
.dynatex-comparison__controls input { width: 100%; min-height: 44px; accent-color: var(--blue); cursor: ew-resize; }
.dynatex-comparison__controls output { flex: none; padding-bottom: .35rem; font-variant-numeric: tabular-nums; text-align: right; }
.dynatex-comparison__hint { max-width: 760px; margin-top: .55rem; color: var(--muted); font-size: .88rem !important; }
.dynatex-comparison__sources { margin-top: .7rem; }
.dynatex-comparison__sources summary { width: fit-content; padding: .45rem .2rem; color: var(--blue); font-weight: 700; cursor: pointer; }
.dynatex-comparison__sources .dynatex-comparison__pair { margin-top: .8rem; }
.dynatex-historic-contact dl { display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr; gap: .35rem 1rem; margin: 1rem 0; }
.dynatex-historic-contact dt { font-weight: 700; }
.dynatex-historic-contact dd { margin: 0; }
.dynatex-ad-facsimile { margin: 1.4rem 0 0; }
.dynatex-ad-facsimile img { display: block; width: 100%; max-width: 900px; height: auto; }
.dynatex-ad-facsimile figcaption { max-width: 900px; margin-top: .65rem; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.dynatex-price-finds .dynatex-cards { max-width: 780px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dynatex-price-finds .dynatex-card { border-top-color: var(--red); }
.dynatex-year-nav, .dynatex-chapter-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1.8rem; }
.dynatex-year-nav a, .dynatex-chapter-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .8rem; background: var(--white); border: 1px solid var(--line); color: var(--blue); font-size: .92rem; font-weight: 700; text-decoration: none; }
.dynatex-year-nav a:hover, .dynatex-chapter-nav a:hover { background: var(--soft); text-decoration: underline; }
.ad-year-anchor, .dynatex-timeline [id], .dynatex-page h2[id] { scroll-margin-top: 1.5rem; }
.ad-year-anchor { display: block; height: 0; }

.ad-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 2rem 1.4rem; margin-block: 3rem; }
.ad-card { min-width: 0; max-width: 100%; margin: 0; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); }
.ad-open { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 160px; margin: 0; padding: .65rem; border: 0; background: var(--surface); cursor: zoom-in; }
.ad-open:hover { background: var(--soft); }
.ad-open img { display: block; width: auto; max-width: 100%; max-height: 600px; margin: auto; object-fit: contain; }
.ad-card figcaption { margin-top: 1rem; color: var(--muted); font-size: .87rem; line-height: 1.55; }
.ad-number { display: block; margin-bottom: .25rem; color: var(--red); font-size: .73rem; font-weight: 800; letter-spacing: .08em; }
.ad-card figcaption a { display: inline-block; margin-left: .2rem; font-weight: 700; }
.gallery-dialog { width: min(98vw, 1250px); max-height: 96dvh; padding: 1rem; overflow: auto; border: 1px solid var(--line); background: var(--white); color: var(--ink); box-shadow: 0 20px 70px #0008; }
.gallery-dialog::backdrop { background: #07172cdb; }
.gallery-dialog form { text-align: right; }
.gallery-close, .gallery-controls button { min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--blue); border-radius: 2px; background: var(--white); color: var(--blue); cursor: pointer; }
.gallery-close:hover, .gallery-controls button:hover { background: var(--soft); }
.gallery-viewport { max-height: max(150px, calc(96dvh - 300px)); min-height: 150px; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.gallery-viewport figure { margin: .4rem auto; text-align: center; }
.gallery-viewport img { display: block; max-height: max(120px, calc(96dvh - 350px)); width: auto; margin: auto; object-fit: contain; }
.gallery-viewport.is-zoomed figure { width: max-content; margin-inline: 0; }
.gallery-viewport.is-zoomed img { max-width: none; max-height: none; }
.gallery-dialog figcaption { color: var(--muted); font-size: .85rem; }
.gallery-original { display: block; width: max-content; max-width: 100%; margin: .2rem auto .8rem; font-size: .85rem; font-weight: 700; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: .7rem; }
.gallery-position { min-width: 5rem; font-size: .85rem; text-align: center; }
.gallery-zoom-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.gallery-zoom-controls button { min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--blue); background: var(--white); color: var(--blue); font-weight: 700; cursor: pointer; }
.gallery-zoom-controls button:disabled { opacity: .5; cursor: default; }
.gallery-zoom-status { min-width: 3.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.gallery-help { margin: .55rem 0 0; color: var(--muted); font-size: .8rem; text-align: center; }

.dynatex-legal { max-width: 800px; }
.dynatex-legal h1 { font-size: clamp(2.4rem, 5.4vw, 4.7rem); hyphens: auto; overflow-wrap: break-word; }
.dynatex-legal h2 { margin-top: 2.6rem; font-size: clamp(1.55rem, 2.7vw, 2.15rem); }
.dynatex-legal a { overflow-wrap: anywhere; }
.error-page { max-width: 700px; margin: auto; }
.error-page h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.site-footer { background: var(--ink); color: #f3f7fb; }
.footer-inner { max-width: 1220px; margin: auto; padding: 2rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer p { max-width: 55ch; margin: 0; font-size: .82rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: #f3f7fb; }

@media (min-width: 840px) {
  .dynatex-archive-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dynatex-archive-item { grid-column: span 2; }
  .dynatex-archive-item:nth-child(1), .dynatex-archive-item:nth-child(2), .dynatex-link-card { grid-column: span 3; }
  .dynatex-media-entry { grid-column: span 3; }
}
@media (max-width: 900px) {
  .testmuster-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .testmuster-results { grid-column: span 2; }
  .dynatex-home { grid-template-columns: minmax(0, 1fr) minmax(245px, 310px); column-gap: 2rem; }
  .dynatex-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dynatex-archive-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; color: var(--white); }
  .mobile-nav summary { min-width: 52px; min-height: 44px; padding: .5rem .65rem; border: 1px solid #8291ac; color: #edf3ff; cursor: pointer; font-size: .9rem; font-weight: 700; text-align: center; }
  .mobile-nav summary:hover, .mobile-nav[open] summary { background: #26334c; }
  .mobile-nav nav { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 20; display: grid; gap: .2rem; width: min(83vw, 330px); max-height: min(75vh, 650px); overflow-y: auto; overscroll-behavior: contain; padding: .65rem; background: #12192b; border: 1px solid #8291ac; box-shadow: 0 15px 35px #1b2b4433; }
  .mobile-nav a { display: block; min-height: 44px; padding: .55rem .7rem; }
  .mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--white); background: #26334c; border-left: 3px solid #eb898d; }
  .mobile-nav__group { padding: .55rem .7rem .15rem; color: #f0a0a3; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
}
@media (max-width: 760px) {
  .testmuster-stats { grid-template-columns: minmax(0, 1fr); }
  .testmuster-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testmuster-results { grid-column: span 1; }
  .header-inner { align-items: center; }
  .brand img { width: 225px; }
  .dynatex-home { grid-template-columns: 1fr; }
  .dynatex-home > .dynatex-kicker, .dynatex-home > h1, .dynatex-home > h1 + p, .dynatex-home > .dynatex-hero-photo, .dynatex-home > .dynatex-cards, .dynatex-home > .dynatex-note { grid-column: 1; }
  .dynatex-hero-photo { grid-row: auto; margin-top: 2rem; }
  .dynatex-home > .dynatex-cards { margin-top: 3.8rem; }
  .dynatex-timeline section { grid-template-columns: minmax(0, 1fr); gap: .3rem; padding: 1.9rem 0; }
  .dynatex-timeline section > .dynatex-year, .dynatex-timeline section > :not(.dynatex-year) { grid-column: 1; grid-row: auto; }
  .dynatex-timeline section > .dynatex-year { margin-bottom: .55rem; }
  .dynatex-media-feature { grid-template-columns: minmax(0, 1fr); }
  .dynatex-media-card__link { grid-template-columns: 1fr; }
  .dynatex-media-card__art { min-height: 170px; }
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; gap: .5rem .75rem; padding-inline: clamp(1rem, 4vw, 1.5rem); }
  .brand { min-width: 0; max-width: 100%; }
  .mobile-nav { margin-left: auto; }
  .main-content { padding: 2.4rem 1.2rem 4.5rem; }
  .dynatex-page h1 { font-size: clamp(2.35rem, 10vw, 3.6rem); }
  .dynatex-page h2 { margin-top: 3.4rem; }
  .dynatex-page h2, .dynatex-page h3 { overflow-wrap: anywhere; hyphens: auto; }
  .dynatex-prices { table-layout: fixed; }
  .dynatex-prices th, .dynatex-prices td { overflow-wrap: anywhere; }
  .dynatex-prices th:last-child, .dynatex-prices td:last-child { white-space: normal; }
  .dynatex-cards, .dynatex-archive-photos, .ad-gallery { grid-template-columns: 1fr; }
  .dynatex-archive-photo img { max-height: none; }
  .ad-gallery { gap: 1.3rem; }
  .gallery-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: 0; padding: .6rem; }
  .gallery-viewport { max-height: max(150px, calc(100dvh - 290px)); }
  .gallery-viewport img { max-height: max(120px, calc(100dvh - 340px)); }
  .gallery-controls { gap: .3rem; }
  .gallery-controls button { padding: .35rem .5rem; font-size: .84rem; }
  .gallery-position { min-width: 4.4rem; font-size: .8rem; }
  .dynatex-comparison__pair, .dynatex-price-finds .dynatex-cards { grid-template-columns: 1fr; }
  .dynatex-historic-contact dl { grid-template-columns: 1fr; }
  .footer-inner { display: block; }
  .site-footer nav { margin-top: 1rem; }
}
@media (max-width: 440px) {
  .testmuster-filters { grid-template-columns: minmax(0, 1fr); }
  .testmuster-results { grid-column: 1; }
  .gallery-controls { flex-wrap: wrap; }
  .gallery-position { order: -1; flex-basis: 100%; }
  .gallery-controls button { flex: 1 1 8rem; min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 370px) {
  .brand img { width: 190px; }
  .brand-tagline { max-width: 100%; font-size: .55rem; letter-spacing: .12em; overflow-wrap: anywhere; }
  .main-content { padding-inline: 1rem; }
  .ad-card { padding: .7rem; }
  .gallery-dialog figcaption { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
