/*
Theme Name: Egy Docs
Theme URI: https://egy-docs.com
Author: Egy Docs
Description: Editorial theme for Egy Docs: productions, filming in Egypt, guides and the Aerial Archive. English and French. Requires the Egy Docs Core plugin.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: egydocs
*/

:root {
  --bg: #FBF8F3;
  --ink: #1A1817;
  --ink-2: #2E2A26;
  --muted: #46413B;
  --muted-2: #5C564F;
  --line: rgba(26, 24, 23, .15);
  --line-strong: rgba(26, 24, 23, .3);
  --cream: #F0EADF;
  --sand: #D9CBAE;
  --sand-ink: #3A342A;
  --dark: #1F1C19;
  --dark-2: #23201D;
  --on-dark: #F3EEE6;
  --on-dark-2: #D3CCC1;
  --on-dark-3: #BDB4A6;
  --accent: #B8461B;
  --accent-dark: #9E3A15;
  --accent-on-dark: #E07A50;
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --caps: 'Josefin Sans', 'Futura', 'Avenir Next', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1320px;
  --gutter: 32px;
  --s-xl: 112px;
  --s-lg: 96px;
  --s-md: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--bg); }
main:focus { outline: none; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--s-xl); padding-bottom: var(--s-xl); }
.section-md { padding-top: var(--s-lg); padding-bottom: var(--s-lg); }
.section-tight { padding-top: 24px; padding-bottom: var(--s-lg); }
.section, .section-md, .section-tight { display: flex; flex-direction: column; gap: 40px; }
.measure { max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.measure-lg { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.center { text-align: center; }
.cream-band { background: var(--cream); }
.dark-band { background: var(--dark); color: var(--on-dark); }
.dark-band a:hover { color: var(--accent-on-dark); }

/* ---------- Type ---------- */
.label, .label-sm { font-family: var(--caps); text-transform: uppercase; }
.label { font-size: 14px; letter-spacing: .3em; color: var(--accent); }
.label-sm { font-size: 13px; letter-spacing: .2em; color: var(--muted-2); font-weight: 400; }
.dark-band .label, .label.on-dark { color: var(--accent-on-dark); }
.display { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -.005em; }
.h1 { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; }
.h2 { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: clamp(34px, 4vw, 52px); line-height: 1.06; }
.h3 { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; }
.h4 { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-weight: 500; font-size: 24px; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 720px; }
.lead.on-dark { color: var(--on-dark-2); }
.lead-sm { font-size: 17px; color: var(--muted); }
.dark-band .lead-sm, .dark-band p { color: var(--on-dark-2); }
.muted { color: var(--muted-2); }
.muted-strong { color: var(--muted); }
.small { font-size: 14px; }
.statement { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; }

.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 760px; }
.prose-lg { font-size: 18px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; margin-top: 1.8em; }
.prose h3 { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-weight: 500; font-size: 23px; line-height: 1.3; margin-top: 1.6em; }
.prose h4 { font-family: var(--caps); text-transform: uppercase; letter-spacing: .14em; font-size: 15px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--accent); font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-style: italic; font-size: 22px; line-height: 1.5; }
.prose img { margin: 1.6em 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .wp-caption-text { font-size: 14px; color: var(--muted-2); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-top: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 15px 26px; font-family: var(--caps); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; border: 1px solid transparent; cursor: pointer; background: none; transition: background-color .15s, color .15s, border-color .15s; }
.btn-sm { padding: 11px 18px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: #fff; color: var(--dark); }
.btn-outline-light { border-color: var(--on-dark); color: var(--on-dark); }
.btn-outline-light:hover { background: var(--on-dark); color: var(--dark) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row:empty { display: none; }
.link-caps { font-family: var(--caps); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 2px; }
.link-arrow { color: var(--accent); }
.back-link { color: var(--on-dark-3); font-family: var(--caps); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px 40px; padding-top: 14px; padding-bottom: 14px; }
.brand { margin-right: auto; flex: none; }
.brand img { height: 46px; width: auto; }
.nav-panel { display: flex; align-items: center; gap: 12px 40px; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 30px; font-family: var(--caps); font-size: 17px; letter-spacing: .03em; }
.main-nav a { display: block; text-decoration: none; padding: 10px 2px; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 18px; font-family: var(--caps); }
.lang-switch { font-size: 15px; white-space: nowrap; }
.lang-switch a { text-decoration: none; color: var(--muted-2); padding: 8px 2px; }
.lang-switch a.is-current { color: var(--ink); font-weight: 600; }
.lang-switch .sep { color: var(--muted-2); margin: 0 4px; }
.header-tools .btn { font-size: 15px; letter-spacing: .08em; border-width: 1.5px; }
.lightbox-open { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: none; padding: 10px 16px; font-family: var(--caps); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.lightbox-open:hover { background: var(--ink); color: var(--bg); }
.saved-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); padding: 10px 16px; font-family: var(--caps); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.saved-link:hover, .saved-link:focus-visible { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--ink); padding: 10px 14px; font-family: var(--caps); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100vh - 75px); overflow: auto; }
  .nav-panel.is-open { display: flex; }
  .main-nav .menu { flex-direction: column; gap: 0; font-size: 22px; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header-tools { justify-content: space-between; flex-wrap: wrap; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-top: 48px; padding-bottom: 48px; font-size: 14px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 40px; width: auto; align-self: flex-start; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; text-align: right; align-items: flex-end; }
.footer-menu, .social { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted-2); }
.footer-menu li + li::before, .social li + li::before { content: "·"; margin: 0 8px; }
@media (max-width: 640px) { .footer-contact { text-align: left; align-items: flex-start; } }

/* ---------- Placeholders ---------- */
.placeholder { width: 100%; height: 100%; min-height: 200px; background: #E4DDD0; color: var(--muted-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; font-size: 15px; }
.placeholder.dark { background: var(--dark-2); color: #C9BFA9; }
.placeholder .label { color: inherit; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 24px; }
.hero-text .lead { max-width: 520px; }
.hero-media { flex: 1.3 1 520px; aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--dark-2); }
.hero-media > img, .hero-media .bg-video { width: 100%; height: 100%; object-fit: cover; }
.hero-media .embed { position: absolute; inset: 0; padding: 0; height: 100%; }
@media (max-width: 640px) { .hero { padding-top: 40px; padding-bottom: 56px; } .hero-media { flex-basis: 100%; } }

/* ---------- Facts ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-n { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 40px; line-height: 1.1; }
.fact-t { font-size: 14px; color: var(--muted-2); }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; justify-content: space-between; }
.section-head > div:first-child { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Films ---------- */
.film-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: 24px; }
.film-card { display: flex; flex-wrap: wrap; text-decoration: none; background: var(--cream); color: var(--ink); }
.film-card.is-flip { flex-direction: row-reverse; }
.film-card.is-dark { background: var(--dark); color: var(--on-dark); }
.film-card.is-sand { background: var(--sand); }
.film-card-img { flex: 0 0 240px; width: 240px; height: 360px; object-fit: cover; min-height: 0; }
.film-card-text { flex: 1 1 240px; padding: 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.film-card.is-dark .label-sm { color: var(--on-dark-3); }
.film-card.is-dark .film-line { color: var(--on-dark-2); }
.film-card.is-sand .label-sm { color: #4A4235; }
.film-card.is-sand .film-line { color: var(--sand-ink); }
.film-card:hover { color: inherit; }
.film-card:hover .film-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.film-title { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 30px; line-height: 1.15; }
.film-title-lg { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 34px; line-height: 1.15; }
.film-line { font-size: 15px; color: var(--muted); }
@media (max-width: 560px) { .film-card-img { flex-basis: 100%; width: 100%; height: auto; aspect-ratio: 2 / 3; } }
.film-band { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: center; justify-content: space-between; text-decoration: none; border: 1.5px solid var(--ink); padding: 36px 32px; }
.film-band:hover { color: inherit; background: #fff; }
.film-band-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 10px; }
.film-band-award, .award-line { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-style: italic; font-size: 22px; line-height: 1.35; flex: 0 1 260px; }
.award-line { color: var(--on-dark); flex: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--caps); font-size: 15px; letter-spacing: .06em; }
.chip { cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); padding: 10px 18px; text-decoration: none; line-height: 1.2; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 32px; }
.poster-grid.small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.poster-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.poster-card[hidden] { display: none; }
.poster-card:hover { color: inherit; }
.poster-card:hover .poster-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.poster-img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.poster-img.placeholder { background: var(--cream); }
.poster-award { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-style: italic; font-size: 22px; color: var(--ink); }
.poster-title { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 26px; line-height: 1.2; }

/* Film page */
.film-hero { background: var(--dark); color: var(--on-dark); }
.film-hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; padding-top: 56px; padding-bottom: 88px; }
.film-hero-poster { flex: 0 0 340px; width: 340px; height: 510px; object-fit: cover; }
.film-hero-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 20px; }
.display-film { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; color: var(--on-dark); }
@media (max-width: 760px) { .film-hero-poster { flex-basis: 100%; width: 100%; max-width: 340px; height: auto; aspect-ratio: 2 / 3; } .film-hero-inner { padding-top: 32px; padding-bottom: 56px; gap: 32px; } }
.film-about { flex-direction: row !important; flex-wrap: wrap; gap: 64px !important; }
.film-synopsis { flex: 1.5 1 520px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.film-credits { flex: 1 1 340px; }
.trailer { margin-top: 24px; }
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--dark-2); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.stills figure { margin: 0; }
.stills img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Details list */
.details { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); font-size: 15px; border-bottom: 1px solid var(--line-strong); }
.details dt { border-top: 1px solid var(--line-strong); padding: 14px 16px 14px 0; font-family: var(--caps); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.details dd { border-top: 1px solid var(--line-strong); margin: 0; padding: 14px 0; }
.section > .details, .section-md > .details { max-width: 860px; }

/* ---------- Archive teaser / map ---------- */
.archive-teaser > .wrap { display: flex; flex-direction: column; gap: 48px; padding-top: var(--s-xl); padding-bottom: var(--s-xl); }
.archive-teaser .h2 { color: var(--on-dark); }
.map-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.map-fig { flex: 1.4 1 520px; margin: 0; }
.map-list { flex: 1 1 320px; margin: 0; padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; color: #E6E0D6; }
.map-list a { text-decoration: none; }
.egypt-map { width: 100%; }
.egypt-map .land { fill: rgba(26, 24, 23, .04); stroke: rgba(26, 24, 23, .35); stroke-width: 1; }
.egypt-map .nile { fill: none; stroke: #6E98B0; stroke-width: 1.3; }
.egypt-map .dot circle { fill: var(--accent); transition: r .15s; }
.egypt-map .dot text { font-family: var(--sans); font-size: 8.5px; font-weight: 600; fill: #fff; text-anchor: middle; pointer-events: none; }
.egypt-map .dot:hover circle, .egypt-map .dot:focus circle, .egypt-map .dot.is-current circle { fill: var(--ink); }
.egypt-map.is-dark .land { fill: rgba(243, 238, 230, .04); stroke: rgba(243, 238, 230, .4); }
.egypt-map.is-dark .dot circle { fill: var(--accent-on-dark); }
.egypt-map.is-dark .dot text { fill: var(--dark); }
.egypt-map.is-dark .dot:hover circle, .egypt-map.is-dark .dot:focus circle { fill: var(--on-dark); }
@media (max-width: 640px) { .map-fig { flex-basis: 100%; } }

/* ---------- Grids of short items ---------- */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 32px; }
.rule-item { display: flex; flex-direction: column; gap: 10px; border-top: 1.5px solid var(--ink); padding-top: 18px; }
.rule-item p { font-size: 15px; color: var(--muted); }
.rule-grid.on-dark .rule-item { border-color: var(--on-dark); }
.rule-grid.on-dark .rule-item p { color: var(--on-dark-2); }
.dark-band .h2, .dark-band .h3, .dark-band .h4 { color: var(--on-dark); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step-n { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 56px; line-height: 1; color: var(--accent); }
.steps p { font-size: 15px; color: var(--muted); }

/* Guides */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.guide-card { text-decoration: none; padding: 32px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; background: var(--cream); }
.guide-card.is-sand { background: var(--sand); }
.guide-card.is-sand .label-sm { color: #4A4235; }
.guide-card.is-dark { background: var(--dark); color: var(--on-dark); }
.guide-card.is-dark .label-sm { color: var(--on-dark-3); }
.guide-card:hover { color: inherit; }
.guide-card:hover .guide-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.guide-card-title { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 24px; line-height: 1.3; }
.guide-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-strong); }
.guide-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line-strong); text-decoration: none; font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
.guide-list a span[aria-hidden] { font-family: var(--sans); color: var(--accent); }

/* Guide article */
.guide-head { display: flex; flex-direction: column; gap: 16px; padding-top: 56px; padding-bottom: 40px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.guide-title { max-width: 900px; }
.guide-hero { margin: 0 auto 56px; }
.guide-hero img { width: 100%; max-height: 640px; object-fit: cover; }
.guide-body { display: flex; flex-wrap: wrap; gap: 64px; padding-bottom: var(--s-lg); max-width: 1000px; }
.guide-body .prose { flex: 1 1 560px; min-width: 0; }
.guide-aside { flex: 0 1 260px; }
.aside-box { position: sticky; top: 110px; background: var(--cream); padding: 28px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--muted); }
.aside-box .h4 { color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--caps); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Feature (picture + text, dark) */
.feature { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: var(--s-lg); padding-bottom: var(--s-lg); }
.feature-media { flex: 1 1 480px; aspect-ratio: 4 / 3; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; }
.feature-text strong { color: var(--on-dark); font-weight: 600; }

/* Text + media */
.text-section { flex-direction: row !important; flex-wrap: wrap; gap: 64px !important; align-items: center; }
.text-section .text-col { flex: 1.2 1 480px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.text-section:not(.has-media) .text-col { max-width: 860px; }
.text-section .media-col { flex: 1 1 380px; aspect-ratio: 4 / 5; max-height: 640px; }
.text-section .media-col img { width: 100%; height: 100%; object-fit: cover; }
.text-section.media-left { flex-direction: row-reverse !important; }

/* Profile */
.profile { flex-direction: row !important; flex-wrap: wrap; gap: 64px !important; align-items: flex-start; }
.profile-img { flex: 0 1 380px; aspect-ratio: 4 / 5; }
.profile-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 14px; }

/* Columns, lists */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.column { display: flex; flex-direction: column; gap: 14px; }
.plain-list { list-style: none; margin: 0; padding: 0; font-size: 18px; display: flex; flex-direction: column; gap: 6px; }
.list-band { border-bottom: 1px solid var(--line); }
.list-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding-top: 28px; padding-bottom: 28px; }
.inline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 22px; }
.inline-list li + li::before { content: "·"; margin: 0 14px; color: var(--muted-2); }

/* Broadcasters & testimonials */
.logos-section { gap: 56px !important; }
.name-strip { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.6; }
.logo-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 36px 52px; align-items: center; }
.logo-strip li { display: flex; align-items: center; }
.logo-strip img { height: auto; width: auto; max-height: 52px; max-width: 150px; opacity: .85; }
.logo-strip .is-tall img { max-height: 72px; }
.logo-strip .is-square img { max-height: 64px; }
.broadcast-on .is-tall img { max-height: 64px; }
.broadcast-on .is-square img { max-height: 52px; }
.logo-strip .logo-name { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 24px; line-height: 1.1; opacity: .85; }
.plans { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 600px) {
  .logo-strip { gap: 26px 34px; }
  .logo-strip img { max-height: 40px; max-width: 120px; }
  .logo-strip .logo-name { font-size: 19px; }
}
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-style: italic; font-size: clamp(21px, 2vw, 26px); line-height: 1.45; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--line-strong); }
.price-card { padding: 32px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line-strong); }
.price-card:last-child { border-right: 0; }
.price-card.is-highlight { background: var(--dark); color: var(--on-dark); }
.price-card.is-highlight .label-sm { color: var(--on-dark-3); }
.price { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 32px; line-height: 1.15; }
.price-card p:last-child { font-size: 15px; color: var(--muted); }
.price-card.is-highlight p:last-child { color: var(--on-dark-2); }
@media (max-width: 760px) { .price-card { border-right: 0; border-bottom: 1px solid var(--line-strong); } }

/* CTA */
.cta { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between; }
.cta > .h1 { max-width: 700px; }
.cta-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-band { border: 1.5px solid var(--ink); padding: 40px; }
.cta-band > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }

/* Forms */
.form-section { flex-direction: row !important; flex-wrap: wrap; gap: 48px 64px !important; align-items: flex-start; }
.form-intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.form-intro + .ed-form-wrap { flex: 1.6 1 520px; }
.contact-lines { display: flex; flex-direction: column; gap: 6px; font-size: 17px; }
.ed-form-wrap { min-width: 0; }
.ed-form { display: flex; flex-direction: column; gap: 24px; }
.ed-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ed-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.ed-f.is-wide { grid-column: 1 / -1; }
.ed-f label, .ed-f legend { font-family: var(--caps); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); padding: 0; }
.ed-f input, .ed-f select, .ed-f textarea, .f-field select, .archive-search input[type=search] { width: 100%; border: 1px solid var(--line-strong); background: #fff; padding: 12px 14px; font-size: 16px; border-radius: 0; }
.ed-f input:focus, .ed-f select:focus, .ed-f textarea:focus { border-color: var(--ink); outline: 2px solid var(--accent); outline-offset: 0; }
.ed-f textarea { resize: vertical; min-height: 130px; }
.ed-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 6px; }
.ed-checks label { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.ed-checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.ed-form .btn { align-self: flex-start; }
.ed-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ed-form-msg { padding: 14px 18px; margin-bottom: 20px; font-size: 16px; }
.ed-form-msg.is-ok { background: #E7EFE3; color: #24481B; }
.ed-form-msg.is-err { background: #F8E3DA; color: #7A2A0C; }
.dark-band .ed-f label, .dark-band .ed-f legend { color: var(--on-dark-3); }

/* ---------- Aerial Archive ---------- */
.archive-head { display: flex; flex-direction: column; gap: 20px; padding-top: 56px; padding-bottom: 40px; }
.note-pill { align-self: flex-start; font-family: var(--caps); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 6px 12px; }
.archive-search { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.search-row { display: flex; gap: 0; max-width: 820px; }
.search-row input[type=search] { flex: 1; font-size: 18px; padding: 16px 18px; border-right: 0; }
.popular { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 15px; color: var(--muted-2); align-items: baseline; }
.popular a { color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding-top: 20px; border-top: 1px solid var(--line); }
.f-field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 150px; max-width: 220px; }
.f-field > span { font-family: var(--caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.f-field select { padding: 10px 12px; font-size: 15px; }
.f-field.inline { flex-direction: row; align-items: center; gap: 10px; max-width: none; flex: none; }
.f-check { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; padding-bottom: 10px; }
.f-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.archive-map { flex-direction: row !important; flex-wrap: wrap; gap: 48px !important; align-items: flex-start; }
.archive-map .map-fig { flex: 1.4 1 520px; display: flex; flex-direction: column; gap: 10px; }
.loc-list-wrap { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; }
.loc-group-name { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 20px; margin-bottom: 4px; }
.loc-group.is-current .loc-group-name { color: var(--accent); }
.loc-list { list-style: none; margin: 0; padding: 0; }
.loc-list a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 17px; }
.loc-list .count { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }
.clip-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.clip-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--dark-2); overflow: hidden; }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.clip-thumb:hover img { transform: scale(1.03); }
.clip-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--caps); font-size: 12px; letter-spacing: .3em; color: rgba(243, 238, 230, .45); text-transform: uppercase; }
.clip-badges { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.clip-badges span { background: rgba(26, 24, 23, .75); color: #fff; font-size: 12px; padding: 2px 7px; font-variant-numeric: tabular-nums; }
.clip-meta { display: flex; flex-direction: column; gap: 2px; padding-right: 44px; }
.clip-title { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 19px; line-height: 1.3; text-decoration: none; }
.clip-id { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.lb-toggle { cursor: pointer; }
.clip-foot { position: relative; }
.clip-card .lb-toggle { position: absolute; right: 0; top: 0; width: 36px; height: 36px; border: 1px solid var(--line-strong); background: var(--bg); display: flex; align-items: center; justify-content: center; }
.clip-card .lb-toggle:hover { border-color: var(--ink); }
.lb-toggle[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.clip-card .lb-toggle .i-tick { display: none; }
.clip-card .lb-toggle[aria-pressed="true"] .i-plus { display: none; }
.clip-card .lb-toggle[aria-pressed="true"] .i-tick { display: block; }
.empty { font-size: 17px; color: var(--muted-2); padding: 32px 0; }
.loc-head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.loc-head > div { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
.loc-stats { display: flex; gap: 40px; margin: 0; }
.loc-stats dt { font-family: var(--caps); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.loc-stats dd { margin: 0; font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 34px; }
.loc-hero { margin: 16px 0 0; }
.loc-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.loc-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.chip-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-links a { display: inline-block; border: 1px solid var(--line-strong); padding: 10px 16px; text-decoration: none; }
.chip-links a:hover { border-color: var(--ink); }

/* Clip page */
.clip-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; margin-top: 8px; }
.clip-main { flex: 1.8 1 560px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.player { position: relative; background: var(--dark-2); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-ph { aspect-ratio: 16 / 9; background: var(--dark-2) center / cover no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(243, 238, 230, .55); }
.wm { font-family: var(--caps); font-size: clamp(18px, 3vw, 32px); letter-spacing: .4em; text-transform: uppercase; }
.wm-sub { font-size: 14px; letter-spacing: .1em; }
.clip-h { font-size: clamp(28px, 3vw, 40px); margin-top: 8px; }
.details-2 { max-width: 720px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; font-size: 14px; background: var(--cream); padding: 6px 12px; text-decoration: none; }
.licence-box { flex: 1 1 320px; position: sticky; top: 100px; border: 1.5px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.licence-box fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.licence-box legend { margin-bottom: 8px; }
.radio-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.radio-row input { accent-color: var(--accent); width: 18px; height: 18px; }
.radio-row span:nth-child(2) { flex: 1; }
.price-sm { font-variant-numeric: tabular-nums; color: var(--muted-2); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--ink); padding-top: 14px; font-family: var(--caps); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; }
.total strong { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-weight: 400; font-size: 26px; text-transform: none; letter-spacing: 0; }
@media (max-width: 900px) { .licence-box { position: static; } }

/* Lightbox panel */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(26, 24, 23, .5); display: flex; justify-content: flex-end; }
.lightbox[hidden] { display: none; }
.lightbox-panel { width: min(560px, 100%); height: 100%; overflow: auto; background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.lightbox-head { display: flex; justify-content: space-between; align-items: center; }
.lightbox-head h2 { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 32px; }
.lightbox-close { background: none; border: 0; font-size: 34px; line-height: 1; cursor: pointer; padding: 4px 10px; }
.lightbox-list { list-style: none; margin: 0; padding: 0; }
.lightbox-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.lightbox-list button { background: none; border: 0; color: var(--muted-2); cursor: pointer; text-decoration: underline; font-size: 14px; }
.lightbox-form h3 { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 24px; margin-bottom: 16px; }
body.lightbox-is-open { overflow: hidden; }

/* FAQ */
.faq details { border-top: 1px solid var(--line-strong); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 22px; list-style: none; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .prose { margin-top: 12px; }

/* Plain pages, 404 */
.page-head { display: flex; flex-direction: column; gap: 18px; padding-top: 72px; padding-bottom: 40px; }
.page-404 { padding-bottom: var(--s-xl); }
.pagination, .nav-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; font-family: var(--caps); }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line-strong); text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--bg); }
.video-fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; --s-xl: 72px; --s-lg: 64px; }
  .brand img { height: 38px; }
  .section, .section-md, .section-tight { gap: 32px; }
  .film-card-text { padding: 24px; }
  .cta-band { padding: 28px 20px; }
  .guide-card { padding: 24px; }
  .details { grid-template-columns: 1fr; }
  .details dt { padding-bottom: 0; border-bottom: 0; }
  .details dd { border-top: 0; padding-top: 4px; }
  .search-row input[type=search] { font-size: 16px; }
  .f-field { max-width: none; flex-basis: calc(50% - 9px); min-width: 0; }
  .loc-stats { gap: 24px; }
  .guide-body { gap: 40px; }
  .hero-text, .hero-media, .map-fig, .map-list, .film-synopsis, .film-credits, .text-section .text-col, .text-section .media-col, .form-intro, .form-intro + .ed-form-wrap, .feature-media, .feature-text, .profile-text, .clip-main, .licence-box, .archive-map .map-fig, .loc-list-wrap, .guide-body .prose, .film-band-text { flex-basis: 100%; }
}
@media print {
  .site-header, .site-footer, .lightbox, .btn, .licence-box { display: none !important; }
}
.guides-section.is-continuation { padding-top: 0; margin-top: calc(var(--s-xl) * -1 + 8px); }
.licence-box .f-field { flex: none; max-width: none; }
.film-credits:only-child { flex: 0 1 760px; }

/* Subscribers */
.licence-box.is-subscriber { border-color: var(--accent); }
.licence-box .quota { font-size: 15px; color: var(--muted); }
.licence-box .quota strong { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 26px; color: var(--ink); }
.account-link { font-family: var(--caps); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 8px 2px; }
.account-box { max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.account-box form p { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.account-box form label { font-family: var(--caps); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.account-box form .login-remember label { flex-direction: row; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 15px; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.account-box input[type=text], .account-box input[type=password] { border: 1px solid var(--line-strong); background: #fff; padding: 12px 14px; font-size: 16px; }
.account-box .button-primary { align-self: flex-start; background: var(--accent); color: #fff; border: 0; padding: 15px 26px; font-family: var(--caps); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.account-box .button-primary:hover { background: var(--accent-dark); }
.account-details { max-width: 720px; }
.licence-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 16px; }
.licence-table th { text-align: left; font-family: var(--caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 400; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-strong); }
.licence-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 640px) { .licence-table thead { display: none; } .licence-table td { display: block; border: 0; padding: 2px 0; } .licence-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); } }

/* Prices and 4K on request */
.price-note { margin: -16px 0 0; font-size: 15px; max-width: 72ch; }
.licence-box .price-terms { margin-top: -8px; }
.licence-box .k4-box { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.licence-box .k4-box p { margin: 0; }
.tag-4k { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line-strong); font-size: 11px; letter-spacing: .08em; vertical-align: 1px; }

/* Cookie notice */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto; background: var(--bg); border: 1.5px solid var(--ink); padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; box-shadow: 0 8px 30px rgba(26, 24, 23, .12); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.5; }
.cookie-bar p a { color: inherit; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 18px; font-size: 12px; }

/* WhatsApp button on phones */
.wa-float { display: none; }
@media (max-width: 760px) {
  .wa-float { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: 16px; z-index: 55; background: #1F7A4D; color: #fff; padding: 12px 16px 12px 14px; border-radius: 999px; text-decoration: none; font-family: var(--caps); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
  .has-cookie-bar .wa-float { display: none; }
}

/* Film cards on phones: small poster beside the text, so the homepage stays short */
@media (max-width: 600px) {
  .film-card, .film-card.is-flip { flex-wrap: nowrap; flex-direction: row; }
  .film-card-img { flex: 0 0 112px; width: 112px; height: auto; aspect-ratio: 2 / 3; align-self: flex-start; object-fit: cover; }
  .film-card-text { flex: 1 1 auto; padding: 18px 18px 20px; gap: 8px; }
  .film-card .film-title { font-size: 21px; }
  .film-card-text .film-line { font-size: 14px; }
}

/* Map pins without numbers */
.egypt-map .dot circle.halo { fill: var(--accent); opacity: .25; }
.egypt-map.is-dark .dot circle.halo { fill: var(--accent-on-dark); opacity: .3; }
.map-list { list-style: none; padding-left: 0; }

/* Film page: broadcast on */
.broadcast-on { display: flex; flex-direction: column; gap: 10px; }
.broadcast-on ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.broadcast-on img { max-height: 40px; max-width: 140px; width: auto; height: auto; filter: invert(1) brightness(1.6); opacity: .9; }
.broadcast-on li { color: var(--on-dark); font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 20px; }

/* 1.8: landscape pictures beside text, guides picture grid, more clips, form check */
.text-section .media-col.is-landscape { flex: 1.3 1 460px; aspect-ratio: 3 / 2; max-height: none; align-self: center; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 32px; }
.guide-tile { display: flex; flex-direction: column; gap: 16px; }
.guide-tile-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream); }
.guide-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.guide-tile:hover .guide-tile-img img { transform: scale(1.03); }
.guide-tile-ph { display: grid; place-items: center; height: 100%; font-family: var(--caps); letter-spacing: .3em; font-size: 13px; color: var(--muted-2); }
.guide-tile-body { display: flex; flex-direction: column; gap: 8px; }
.guide-tile-title { margin: 0; font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 23px; line-height: 1.3; }
.guide-tile-title a { text-decoration: none; }
.guide-tile-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; color: inherit; }
.guide-tile-ex { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.more-clips { border-top: 1px solid var(--line); padding-top: 40px; }
.loc-blurb { max-width: 720px; font-size: 15.5px; margin-top: 8px; }
.load-more[aria-busy="true"] { opacity: .6; pointer-events: none; }
.cf-turnstile { margin: 8px 0 20px; }
@media (prefers-reduced-motion: reduce) { .guide-tile-img img { transition: none; } }

/* ---------- 1.9: client account, checkout, documents ---------- */
.chip { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 500; line-height: 1.5; background: var(--cream); color: var(--muted); white-space: nowrap; }
.chip-ok { background: #E3EEDF; color: #24572E; }
.chip-warn { background: #F6EBD3; color: #7A4F00; }
.chip-bad { background: #F7E1DA; color: #8E2B10; }
.chip-dark { background: var(--dark); color: var(--on-dark); }
.portal { display: flex; flex-direction: column; gap: 40px; padding-bottom: 40px; }
.portal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.portal-head .display-sm { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin: 10px 0 0; }
.portal-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; border-bottom: 1px solid var(--line); font-family: var(--caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.portal-nav a { text-decoration: none; padding: 0 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.portal-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.portal-nav .portal-out { margin-left: auto; color: var(--muted-2); }
.plan-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-strip > div { padding: 24px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.plan-strip > div:first-child { border-left: 0; padding-left: 0; }
.plan-strip strong { font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 30px; line-height: 1.1; }
.plan-strip strong small { font-size: 18px; color: var(--muted-2); }
.plan-strip span:not(.label-sm) { font-size: 14px; color: var(--muted); }
.meter { display: block; height: 4px; background: var(--cream); margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--accent); }
.portal-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.portal-main { flex: 999 1 600px; min-width: 0; }
.portal-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 24px; }
.portal-card { border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.portal-card.tinted { background: var(--cream); border-color: transparent; }
.portal-card .h4, .portal-card h3 { margin: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2, .sec-head h3 { margin: 0; }
.table-scroll { overflow-x: auto; }
.portal-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.portal-table th { text-align: left; font-family: var(--caps); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); padding: 0 12px 10px 0; }
.portal-table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.portal-table tr:last-child td { border-bottom: 1px solid var(--line); }
.portal-table .r { text-align: right; padding-right: 0; }
.portal-table td .muted.small, .portal-table td > .small { display: block; }
.tclip { display: flex; align-items: center; gap: 14px; }
.tclip img { width: 88px; height: 50px; object-fit: cover; flex: none; }
.tclip a { text-decoration: none; font-weight: 500; }
.k4-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.k4-row .muted.small { display: block; }
.approvals { border-color: var(--accent); }
.approval-list { list-style: none; margin: 0; padding: 0; }
.approval-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.approval-list .muted.small { display: block; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.project-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.project-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 150px 76px; gap: 4px; }
.project-thumbs > :first-child { grid-column: span 2; }
.project-thumbs img, .project-thumbs span { width: 100%; height: 100%; object-fit: cover; background: var(--cream); display: block; }
.project-card h3 { margin: 0; }
.project-card:hover h3 { color: var(--accent); }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.f-grid .f-wide { grid-column: 1 / -1; }
.inline-form .btn, .invite-form .btn { align-self: flex-start; }
.invite-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.invite-form .f-field { flex: 2 1 240px; }
.invite-form .muted.small { flex-basis: 100%; margin: 0; }
.guest-form { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.details-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 24px; }
.details-4 dt { margin: 0; } .details-4 dd { margin: 2px 0 0; }
.doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.doc-list li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.dl-form, .save-form { display: flex; flex-direction: column; gap: 12px; }
.save-row { display: flex; gap: 8px; }
.save-row select { flex: 1; min-width: 0; }
.checkout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.checkout-clip { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.checkout-thumb { aspect-ratio: 16 / 9; background: var(--dark-2) center / cover no-repeat; display: grid; place-items: center; }
.checkout-thumb span { color: rgba(255,255,255,.6); font-family: var(--caps); letter-spacing: .4em; font-size: 20px; }
.checkout-form { flex: 1 1 420px; border: 1px solid var(--line); background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.checkout-form h2 { margin: 0; }
.use-cards { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.use-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); cursor: pointer; text-decoration: none; }
.use-card span { flex: 1; display: flex; flex-direction: column; }
.use-card small { font-size: 13px; color: var(--muted); }
.use-card em { font-style: normal; font-family: var(--serif); font-variation-settings: "opsz" 12; font-weight: 500; font-size: 22px; }
.use-card.is-link em { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.use-card:has(input:checked) { border: 2px solid var(--accent); background: #FBF4EF; }
.use-card input { margin-top: 5px; accent-color: var(--accent); }
.checkout-actions { display: flex; flex-direction: column; gap: 10px; }
.checkout-promises { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.checkout .hp { position: absolute; left: -9999px; }
.order-card { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: 24px; }
.order-card > img { flex: 1 1 320px; max-width: 480px; height: auto; }
.order-card > div { flex: 1 1 360px; }
.message-page { max-width: 760px; }
.check-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 24px 0; }
.check-form .f-field { flex: 1 1 260px; }
.check-result { padding: 20px 24px; margin-top: 12px; }
.check-result.is-ok { background: #E3EEDF; } .check-result.is-bad { background: #F7E1DA; }
@media (max-width: 760px) {
  .plan-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .plan-strip > div { padding-left: 16px; }
  .checkout-form { padding: 22px; }
}

.app-page { padding-top: 56px; padding-bottom: 96px; }
.app-page .app-title { margin: 0 0 40px; }
.app-page a.btn-accent, .app-page a.btn-accent:hover { color: #fff; }
.app-page > p:empty { display: none; }
.portal-table td a { text-decoration-thickness: 1px; }
.tclip a { color: var(--ink); }
.tclip a:hover { color: var(--accent); }
.project-thumbs img { margin: 0; }
.checkout-form input[type=text], .checkout-form input[type=email], .portal input[type=text], .portal input[type=email], .portal input[type=date], .portal input[type=number], .portal select { width: 100%; box-sizing: border-box; min-height: 46px; }
.checkout .f-field, .portal .f-field, .check-form .f-field, .licence-box .dl-form .f-field, .save-form .f-field { max-width: none; }
.checkout .f-field input, .portal .f-field input, .check-form input, .dl-form input[type=text], .save-form select, .portal select { border: 1px solid var(--line-strong); background: #fff; padding: 10px 12px; font-size: 15px; border-radius: 0; }
.invite-form .f-field { flex: 2 1 240px; }
.invite-form .f-field:nth-of-type(2) { flex: 1 1 160px; }

.f-field[hidden], .dl-new[hidden], .btn[hidden] { display: none !important; }
.guest-form .f-field { flex: none; }
.details-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; background: var(--accent); color: #fff; font-family: var(--sans); font-size: 11px; letter-spacing: 0; border-radius: 10px; }
.notice-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: center; padding: 16px 20px; background: #FBF4EF; border-left: 3px solid var(--accent); }
.notice-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.notice-strip a { color: var(--ink); }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.notice-list li.is-new strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.notice-list .muted.small { display: block; margin-top: 2px; }
.notice-list a { color: var(--ink); }
@media (max-width: 560px) { .notice-list li { grid-template-columns: 1fr; gap: 6px; } }

/* Signed-in client bar on archive pages */
.client-bar { background: var(--ink); color: #fff; font-size: 14px; }
.client-bar.is-off { background: #7a2e12; }
.client-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-top: 10px; padding-bottom: 10px; }
.client-bar-co { font-family: var(--caps); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.client-bar-hint { color: rgba(255,255,255,.7); }
.client-bar-link { margin-left: auto; color: #fff; font-family: var(--caps); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
.client-bar-link:hover, .client-bar-link:focus-visible { border-color: #fff; }
.clip-licensed { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-family: var(--caps); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; }
.file-missing p { margin: 0 0 10px; }
.inline-form { display: inline; margin: 0; }
@media (max-width: 720px) { .client-bar-hint { display: none; } .client-bar-link { margin-left: 0; } }

/* Saved clips toast */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 18px; padding: 14px 18px; background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(26,24,23,.25); font-size: 15px; max-width: calc(100vw - 48px); }
.toast a { color: #fff; font-family: var(--caps); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.toast button { background: none; border: 0; color: rgba(255,255,255,.85); font: inherit; text-decoration: underline; cursor: pointer; padding: 4px; }
/* My archive home */
.home-search { display: flex; flex-direction: column; gap: 12px; }
.search-row { display: flex; max-width: 860px; }
.search-row input { flex: 1; min-width: 0; min-height: 56px; padding: 0 18px; border: 1px solid var(--ink); border-right: 0; background: #fff; font: inherit; font-size: 16px; }
.search-row .btn { min-height: 56px; }
.home-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 14px; }
.home-row { display: flex; flex-direction: column; gap: 18px; }
.home-row .sec-head p { margin: 4px 0 0; }
.portal-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card-actions { display: flex; flex-direction: column; gap: 8px; }
.card-actions p { margin: 0; }
.card-actions .dl-form { display: flex; flex-direction: column; gap: 8px; }
.card-actions select, .card-actions input[type=text] { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 14px; }
.portal-cols.even > * { flex: 1 1 320px; }
.home-start p { margin: 0; }
@media (max-width: 600px) { .search-row { flex-direction: column; } .search-row input { border-right: 1px solid var(--ink); } }
@media (max-width: 720px) {
  .portal-table { display: block; position: relative; overflow-x: auto; min-width: 0; -webkit-overflow-scrolling: touch; }
  .portal-nav { position: relative; }
  .portal-nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 22px; scrollbar-width: none; }
  .portal-nav::-webkit-scrollbar { display: none; }
  .portal-head .btn-row { width: 100%; }
  .portal-head .btn-row .btn { flex: 1 1 auto; padding: 12px 14px; font-size: 13px; }
}
