/* ===========================================================
   TOTALLY MARRAKECH — design tokens
   Palette drawn from the brand mark: aubergine arch, terracotta
   red, marigold sun, zellige teal, warm sand.
   =========================================================== */
:root{
  --plum-950: #2A0E1D;
  --plum-900: #3B1526;
  --plum-800: #4E1E33;
  --red-600:  #C2372B;
  --red-700:  #A32B21;
  --gold-500: #D98A2B;
  --gold-400: #E7A94F;
  --teal-600: #12878C;
  --teal-700: #0E6E72;
  --sand-50:  #FBF6EC;
  --sand-100: #F6EEDD;
  --sand-200: #EDE0C6;
  --ink-900:  #2A1A14;
  --ink-700:  #4B372E;
  --ink-500:  #75625A;
  --white:    #FFFFFF;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-card: 0 12px 30px -14px rgba(42,14,29,0.35);
  --shadow-pop: 0 20px 45px -16px rgba(42,14,29,0.45);
  --wrap: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--sand-50);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
/* Force every UI element onto the site's own font stack — table, form and
   button elements do NOT inherit font-family by default in most browsers'
   base stylesheets, which is what causes a stray "Courier/Times" look. */
table, th, td, input, button, select, textarea, code, pre, kbd, samp{
  font-family:var(--font-body);
}
img{ max-width:100%; display:block; }
a{ color:var(--red-700); text-decoration-thickness:1.5px; text-underline-offset:3px; }
a:hover{ color:var(--gold-500); }
h1,h2,h3,h4{ font-family:var(--font-display); color:var(--plum-900); line-height:1.15; margin:0 0 .5em; font-weight:600; }
h1{ font-size:clamp(2.2rem,4.5vw,3.4rem); font-weight:700; }
h2{ font-size:clamp(1.6rem,3vw,2.3rem); }
h3{ font-size:1.3rem; }
p{ margin:0 0 1.1em; }
ul,ol{ padding-left:1.2em; }
.wrap{ max-width:var(--wrap); margin-inline:auto; padding-inline:24px; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--plum-900); color:#fff; padding:10px 16px; z-index:200; }
.skip-link:focus{ left:8px; top:8px; }

/* ---------- buttons & tags ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font-family:var(--font-body); font-weight:600; font-size:.98rem;
  padding:.85em 1.5em; border-radius:100px; text-decoration:none;
  border:2px solid transparent; transition:transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn--primary{ background:var(--red-600); color:#fff; }
.btn--primary:hover{ background:var(--red-700); color:#fff; }
.btn--ghost{ border-color:rgba(255,255,255,.6); color:#fff; }
.btn--ghost:hover{ background:rgba(255,255,255,.12); color:#fff; }
.btn--outline{ border-color:var(--plum-900); color:var(--plum-900); }
.btn--outline:hover{ background:var(--plum-900); color:#fff; }
.eyebrow{
  font-family:var(--font-script); font-size:1.5rem; color:var(--gold-500);
  display:inline-block; margin-bottom:.1em; line-height:1;
}
.pill{
  display:inline-block; font-size:.78rem; font-weight:600; letter-spacing:.03em;
  text-transform:uppercase; background:var(--teal-600); color:#fff;
  padding:.3em .8em; border-radius:100px;
}

/* ---------- header ---------- */
.site-header{ background:var(--plum-900); position:sticky; top:0; z-index:100; box-shadow:0 2px 12px rgba(0,0,0,.15); }
.site-header__row{ display:flex; align-items:center; justify-content:space-between; padding-block:12px; gap:16px; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand__mark{ width:44px; height:44px; object-fit:contain; }
.brand__text{ display:flex; flex-direction:column; line-height:1; }
.brand__totally{ font-family:var(--font-script); color:var(--gold-400); font-size:1.15rem; }
.brand__marrakech{ font-family:var(--font-display); color:#fff; font-weight:700; font-size:1.25rem; letter-spacing:.01em; }
.primary-nav ul{ list-style:none; display:flex; gap:2px; margin:0; padding:0; flex-wrap:wrap; }
.primary-nav a{
  display:block; color:#F1E4D6; text-decoration:none; font-weight:500; font-size:.95rem;
  padding:.6em .85em; border-radius:100px; transition:background .15s ease, color .15s ease;
}
.primary-nav a:hover{ background:rgba(255,255,255,.1); color:#fff; }
.primary-nav a.is-active{ background:var(--red-600); color:#fff; }
.primary-nav a.lang-switch{ font-weight:700; border:1px solid rgba(255,255,255,.35); padding:.5em .75em; }

/* ---------- search ---------- */
.search-toggle{ background:none; border:0; color:#F1E4D6; width:38px; height:38px; display:flex; align-items:center; justify-content:center; cursor:pointer; border-radius:50%; }
.search-toggle:hover{ background:rgba(255,255,255,.1); color:#fff; }
.search-panel{ background:var(--plum-950); border-top:1px solid rgba(255,255,255,.1); }
.search-panel[hidden]{ display:none; }
.search-panel .wrap{ padding-block:14px; position:relative; }
.search-input{
  width:100%; font-family:var(--font-body); font-size:1rem; padding:.85em 1.1em;
  border-radius:100px; border:2px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08); color:#fff;
}
.search-input::placeholder{ color:#C9B7A8; }
.search-input:focus{ outline:none; border-color:var(--gold-500); background:rgba(255,255,255,.12); }
.search-results{
  position:absolute; left:24px; right:24px; top:100%; margin-top:6px; background:#fff; border-radius:var(--radius-md);
  box-shadow:var(--shadow-pop); max-height:70vh; overflow-y:auto; z-index:50;
}
.search-results:empty{ display:none; }
.search-results a{
  display:block; padding:12px 18px; text-decoration:none; color:var(--ink-900); border-bottom:1px solid var(--sand-200);
}
.search-results a:last-child{ border-bottom:none; }
.search-results a:hover, .search-results a.is-selected{ background:var(--sand-100); }
.search-results .sr-title{ font-weight:600; color:var(--plum-900); display:block; font-size:.96rem; }
.search-results .sr-desc{ font-size:.82rem; color:var(--ink-500); display:block; margin-top:2px; }
.search-results .sr-empty{ padding:16px 18px; color:var(--ink-500); font-size:.9rem; }

/* ---------- travel tools (Expedia Group widgets) ---------- */
.travel-tools__grid{ display:flex; gap:24px; flex-wrap:wrap; justify-content:center; align-items:flex-start; }
.travel-tools__col{ flex:1 1 375px; max-width:575px; min-width:320px; }
.travel-tools__col h3{ text-align:center; font-size:1rem; margin-bottom:.6em; color:var(--plum-900); }
.eg-widget{ margin-inline:auto; }

/* ---------- partner picks (Wise / Amazon) ---------- */
.partner-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.partner-card{
  display:flex; align-items:center; gap:16px; background:#fff; border-radius:var(--radius-md);
  padding:20px 22px; text-decoration:none; color:var(--ink-900); box-shadow:var(--shadow-card);
  transition:transform .15s ease, box-shadow .15s ease;
}
.partner-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-pop); }
.partner-card__icon{
  flex:none; width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; background:var(--sand-100);
}
.partner-card strong{ display:block; color:var(--plum-900); font-family:var(--font-display); font-size:1.05rem; margin-bottom:2px; }
.partner-card span{ font-size:.88rem; color:var(--ink-500); }
.partner-disclosure{ font-size:.8rem; color:var(--ink-500); text-align:center; margin:1.4em auto 0; max-width:70ch; }
.partner-disclosure a{ color:var(--ink-500); text-decoration-thickness:1px; }

/* ---------- footer trust/disclaimer band ---------- */
.trust-band{
  background:rgba(0,0,0,.15); border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08);
  padding:20px 0;
}
.trust-band__inner{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; }
.trust-band p{ margin:0; font-size:.85rem; color:#D9C9BA; flex:1 1 260px; }
.trust-band__links{ display:flex; flex-wrap:wrap; gap:10px 18px; list-style:none; padding:0; margin:0; }
.trust-band__links a{ color:#F1E4D6; font-size:.85rem; font-weight:600; text-decoration:none; }
.trust-band__links a:hover{ color:#fff; text-decoration:underline; }

/* ---------- cookie consent banner ---------- */
.cookie-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:300; background:var(--plum-950);
  border-top:1px solid rgba(255,255,255,.15); box-shadow:0 -8px 24px rgba(0,0,0,.3);
}
.cookie-banner[hidden]{ display:none; }
.cookie-banner__inner{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 24px; padding-block:16px;
}
.cookie-banner p{ margin:0; font-size:.88rem; color:#E9DCCF; flex:1 1 340px; }
.cookie-banner p a{ color:#fff; }
.cookie-banner__actions{ display:flex; gap:10px; flex:none; }
.cookie-banner__actions .btn{ padding:.6em 1.2em; font-size:.9rem; }

@media (max-width:720px){
  .partner-grid{ grid-template-columns:1fr; }
  .trust-band__inner{ flex-direction:column; align-items:flex-start; }
}

/* ---------- interactive map ---------- */
.map-layout{ display:grid; grid-template-columns:280px 1fr; gap:24px; align-items:start; }
.map-filters{
  background:#fff; border-radius:var(--radius-md); box-shadow:var(--shadow-card); padding:20px; position:sticky; top:90px;
}
.map-filters h2{ font-size:.95rem; text-transform:uppercase; letter-spacing:.03em; margin-bottom:.9em; color:var(--plum-900); }
.map-filters__group{ display:flex; flex-direction:column; gap:10px; margin-bottom:1.1em; }
.map-filters__group label{
  display:flex; align-items:center; gap:10px; font-size:.92rem; cursor:pointer; user-select:none;
}
.map-filters__swatch{ width:13px; height:13px; border-radius:50%; flex:none; display:inline-block; }
.map-filters__reset{ width:100%; margin-top:.4em; }
#mapSearchInput{
  width:100%; font-family:var(--font-body); font-size:.92rem; padding:.65em .9em; border-radius:100px;
  border:1.5px solid var(--sand-200); margin-bottom:1.1em;
}
#mapSearchInput:focus{ outline:none; border-color:var(--gold-500); }
.map-container{ height:600px; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-card); }
.map-popup h3{ margin:0 0 .3em; font-size:1rem; font-family:var(--font-display); color:var(--plum-900); }
.map-popup p{ margin:0 0 .6em; font-size:.86rem; color:var(--ink-700); }
.map-popup a{ font-size:.85rem; font-weight:600; }
.map-note{ font-size:.85rem; color:var(--ink-500); margin-top:1em; }
@media (max-width:860px){
  .map-layout{ grid-template-columns:1fr; }
  .map-filters{ position:static; }
  .map-container{ height:480px; }
}
.nav-toggle{ display:none; background:none; border:0; width:40px; height:34px; flex-direction:column; justify-content:center; gap:6px; cursor:pointer; }
.nav-toggle span{ height:2px; background:#fff; border-radius:2px; }

/* ---------- hero ---------- */
.hero{
  position:relative; overflow:hidden; color:#fff;
  background:radial-gradient(120% 160% at 15% 0%, var(--plum-800) 0%, var(--plum-900) 45%, var(--plum-950) 100%);
  padding:76px 0 96px;
}
.hero::after{
  content:""; position:absolute; inset:0; opacity:.16; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23E7A94F' stroke-width='1.2'%3E%3Cpath d='M60 6 L84 30 L60 54 L36 30 Z M60 66 L84 90 L60 114 L36 90 Z M6 30 L30 6 L54 30 L30 54 Z M66 30 L90 6 L114 30 L90 54 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner{ position:relative; display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
.hero__eyebrow{ font-family:var(--font-script); color:var(--gold-400); font-size:1.6rem; }
.hero h1{ color:#fff; }
.hero p.lede{ font-size:1.15rem; color:#E9DCCF; max-width:46ch; }
.hero__cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:1.6em; }
.hero__art{
  aspect-ratio:4/3; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-pop);
  background:linear-gradient(160deg,var(--gold-500),var(--red-600) 60%,var(--teal-700));
  display:flex; align-items:center; justify-content:center;
}
.hero__art img{ width:100%; height:100%; object-fit:cover; }
.hero__stats{ display:flex; gap:28px; margin-top:2.2em; flex-wrap:wrap; }
.hero__stats div{ min-width:100px; }
.hero__stats strong{ display:block; font-family:var(--font-display); font-size:1.6rem; color:var(--gold-400); }
.hero__stats span{ font-size:.85rem; color:#D9C9BA; }

/* page header (non-home) */
.page-hero{
  background:linear-gradient(160deg,var(--plum-800),var(--plum-950));
  color:#fff; padding:56px 0 68px; position:relative; overflow:hidden;
}
.page-hero::after{
  content:""; position:absolute; inset:0; opacity:.14; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%2312878C' stroke-width='1.2'%3E%3Cpath d='M60 6 L84 30 L60 54 L36 30 Z M60 66 L84 90 L60 114 L36 90 Z M6 30 L30 6 L54 30 L30 54 Z M66 30 L90 6 L114 30 L90 54 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .wrap{ position:relative; }
.page-hero h1{ color:#fff; max-width:22ch; }
.page-hero p.lede{ color:#E9DCCF; max-width:60ch; font-size:1.08rem; }
.breadcrumbs{ font-size:.85rem; color:#CBB9AA; margin-bottom:1em; }
.breadcrumbs a{ color:#E9DCCF; }
.breadcrumbs a:hover{ color:#fff; }

/* ---------- sections ---------- */
.section{ padding:64px 0; }
.section--tight{ padding:40px 0; }
.section--sand{ background:var(--sand-100); }
.section--plum{ background:var(--plum-900); color:#fff; }
.section--plum h2{ color:#fff; }
.section-head{ max-width:64ch; margin-bottom:2.2em; }
.section-head h2{ margin-bottom:.3em; }

/* ---------- card grids ---------- */
.grid{ display:grid; gap:26px; }
.grid--3{ grid-template-columns:repeat(3,1fr); }
.grid--4{ grid-template-columns:repeat(4,1fr); }
.grid--2{ grid-template-columns:repeat(2,1fr); }

.card{
  background:#fff; border-radius:var(--radius-md); overflow:hidden;
  box-shadow:var(--shadow-card); display:flex; flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-pop); }
.card__media{ aspect-ratio:4/3; background:linear-gradient(135deg,var(--teal-600),var(--plum-800)); position:relative; }
.card__media--gold{ background:linear-gradient(135deg,var(--gold-500),var(--red-700)); }
.card__media--teal{ background:linear-gradient(135deg,var(--teal-600),var(--plum-900)); }
.card__media--red{ background:linear-gradient(135deg,var(--red-600),var(--plum-900)); }
.card__body{ padding:20px 22px 24px; flex:1; display:flex; flex-direction:column; }
.card__body h3{ margin-bottom:.35em; }
.card__body p{ color:var(--ink-700); font-size:.96rem; margin-bottom:1em; }
.card__link{ margin-top:auto; font-weight:600; font-size:.92rem; text-decoration:none; }

.tile-link{
  display:block; padding:22px; border-radius:var(--radius-md); background:var(--sand-100);
  text-decoration:none; color:var(--ink-900); border:1px solid var(--sand-200);
  transition:background .15s ease, border-color .15s ease;
}
.tile-link:hover{ background:#fff; border-color:var(--gold-500); }
.tile-link h3{ margin-bottom:.25em; font-size:1.1rem; color:var(--plum-900); }
.tile-link p{ font-size:.9rem; color:var(--ink-500); margin:0; }

/* ---------- info / practical list ---------- */
.info-list{ list-style:none; padding:0; margin:0; display:grid; gap:14px; }
.info-list li{
  display:flex; gap:14px; align-items:flex-start; background:#fff; border-radius:var(--radius-sm);
  padding:16px 18px; box-shadow:var(--shadow-card);
}
.info-list .ico{
  flex:none; width:38px; height:38px; border-radius:50%; background:var(--gold-500); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700;
}

/* ---------- divider ---------- */
.zellige-divider{
  height:34px; margin:0; background-repeat:repeat-x; background-size:34px 34px; opacity:.5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cg fill='none' stroke='%23C2372B' stroke-width='1.4'%3E%3Cpath d='M17 2 L26 9 L17 16 L8 9 Z M17 18 L26 25 L17 32 L8 25 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- quote / callout ---------- */
.callout{
  background:var(--sand-100); border-left:4px solid var(--gold-500); border-radius:var(--radius-sm);
  padding:20px 24px; margin:1.6em 0;
}
.callout p:last-child{ margin-bottom:0; }
.callout--teal{ border-color:var(--teal-600); }

/* ---------- newsletter / cta band ---------- */
.cta-band{
  background:linear-gradient(120deg,var(--red-600),var(--gold-500));
  color:#fff; border-radius:var(--radius-lg); padding:44px; display:flex; align-items:center;
  justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-band h2{ color:#fff; margin-bottom:.2em; }
.cta-band p{ margin:0; color:#FFF3E6; }

/* ---------- prose / article pages ---------- */
.prose{ max-width:74ch; }
.prose h2{ margin-top:1.6em; }
.prose h3{ margin-top:1.3em; }
.prose img{ border-radius:var(--radius-md); margin:1.4em 0; }
.article-meta{ color:var(--ink-500); font-size:.9rem; margin-bottom:2em; }
.toc{ background:var(--sand-100); border-radius:var(--radius-md); padding:20px 24px; margin:1.6em 0; }
.toc h2{ font-size:1rem; text-transform:uppercase; letter-spacing:.04em; margin-bottom:.6em; }
.toc ul{ margin:0; padding-left:1.1em; }

/* ---------- blog list ---------- */
.post-row{
  display:grid; grid-template-columns:220px 1fr; gap:22px; padding:20px 0; border-bottom:1px solid var(--sand-200);
  align-items:start;
}
.post-row__media{ aspect-ratio:4/3; border-radius:var(--radius-sm); background:linear-gradient(135deg,var(--teal-600),var(--plum-900)); }
.post-row time{ font-size:.82rem; color:var(--ink-500); }

/* ---------- footer ---------- */
.site-footer{ background:var(--plum-950); color:#E9DCCF; padding:56px 0 0; margin-top:60px; }
.site-footer__grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:32px; padding-bottom:40px; }
.site-footer__brand{ display:flex; gap:14px; }
.site-footer__brand img{ width:40px; height:40px; }
.site-footer__tagline{ font-size:.92rem; color:#C9B7A8; }
.site-footer h2{ color:#fff; font-family:var(--font-body); font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; margin-bottom:1em; }
.site-footer__nav ul{ list-style:none; padding:0; margin:0; display:grid; gap:.6em; }
.site-footer__nav a{ color:#D9C9BA; text-decoration:none; font-size:.92rem; }
.site-footer__nav a:hover{ color:#fff; }
.site-footer__newsletter p{ font-size:.88rem; color:#C9B7A8; }
.site-footer__bottom{ border-top:1px solid rgba(255,255,255,.08); padding:18px 0; font-size:.82rem; color:#9C8B7E; }

/* ---------- responsive ---------- */
@media (max-width:920px){
  .hero__inner{ grid-template-columns:1fr; }
  .hero__art{ order:-1; }
  .grid--4{ grid-template-columns:repeat(2,1fr); }
  .grid--3{ grid-template-columns:repeat(2,1fr); }
  .site-footer__grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:720px){
  .nav-toggle{ display:flex; }
  .primary-nav{
    position:absolute; top:100%; left:0; right:0; background:var(--plum-900);
    max-height:0; overflow:hidden; transition:max-height .25s ease;
  }
  .primary-nav.is-open{ max-height:600px; }
  .primary-nav ul{ flex-direction:column; padding:10px 24px 20px; gap:2px; }
  .primary-nav a{ padding:.75em .5em; }
  .grid--3,.grid--2{ grid-template-columns:1fr; }
  .post-row{ grid-template-columns:1fr; }
  .site-footer__grid{ grid-template-columns:1fr; }
  .cta-band{ flex-direction:column; text-align:center; }
}


/* ---------- Owner P0: page HERO + native navigation rail (75/25) ---------- */
.hero-top-layout{
  display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,1fr);gap:28px;align-items:start;
  padding-top:10px;padding-bottom:10px;
}
.hero-top-main{min-width:0}
.hero-top-main .hero-media{padding:0}
.hero-top-main .hero-media__frame{max-width:none;margin:0;padding:0;aspect-ratio:8/3;overflow:hidden;border-radius:var(--radius-lg)}
.hero-top-side{min-width:0}
.hero-explore-card{background:#fff;border:1px solid var(--sand-200);border-radius:var(--radius-md);padding:20px 22px;box-shadow:var(--shadow-card)}
.hero-explore-card h2{font-family:var(--font-body);font-size:.82rem;letter-spacing:.06em;text-transform:uppercase;color:var(--red-700);margin:0 0 10px}
.hero-explore-card ul{list-style:none;margin:0;padding:0}
.hero-explore-card li{border-bottom:1px solid var(--sand-200)}
.hero-explore-card li:last-child{border-bottom:0}
.hero-explore-card a{display:block;padding:9px 0;color:var(--plum-900);font-weight:600;text-decoration:none;font-size:.92rem}
.hero-explore-card a:hover,.hero-explore-card a:focus-visible{color:var(--red-600)}
@media (max-width:940px){
  .hero-top-layout{grid-template-columns:1fr;gap:16px}
}
@media (max-width:720px){
  .hero-top-layout.wrap{max-width:none;padding-inline:0}
  .hero-top-side{padding-inline:24px}
}

/* ---------- hero media (page-level 8:3 image, boxed, added post-launch) ---------- */
.hero-media{ padding:10px 0; }
.hero-media__frame{ max-width:var(--wrap); margin-inline:auto; padding-inline:24px; }
.hero-media__img{
  display:block; width:100%; height:100%; aspect-ratio:8/3; object-fit:cover;
  border-radius:0;
}
@media (max-width:720px){
  .hero-media__frame{ padding-inline:0; border-radius:0; }
  .hero-media__img{ border-radius:0; }
}

/* ---------- in-content 4:5 photo ---------- */
.content-photo{
  float:right; width:38%; max-width:320px; height:auto; aspect-ratio:4/5; object-fit:cover;
  border-radius:var(--radius-md); margin:0 0 1.2em 1.6em;
}
@media (max-width:720px){
  .content-photo{ float:none; width:100%; max-width:none; margin:0 0 1.4em; }
}
.page-byline{ clear:none; font-size:.82rem; color:#8A7A6C; margin:-0.6em 0 1.4em; }

/* ---------- footer network cross-links ---------- */
.footer-network{ padding-top:0; padding-bottom:18px; }
.footer-network p{ font-size:.85rem; color:#CBB9AA; margin:0; }
.footer-network a{ color:#fff; }
.footer-network a:hover{ text-decoration:none; }

/* ---------- prose tables (added post-launch) ---------- */
.prose table{ width:100%; border-collapse:collapse; margin:1.4em 0; font-size:.95rem; }
.prose th, .prose td{ text-align:left; padding:.6em .8em; border-bottom:1px solid #E7DCCF; }
.prose th{ font-weight:700; border-bottom:2px solid #C9A876; }
@media (max-width:600px){
  .prose table{ font-size:.85rem; }
  .prose th, .prose td{ padding:.5em; }
}

/* ---------- TATS deterministic page media resolver v2 ---------- */
.hero-media.tats-media-pending{display:none}
.tats-media-portrait{width:100%;aspect-ratio:4/5;margin:0 0 16px;overflow:hidden;border-radius:var(--radius-md);box-shadow:var(--shadow-card);background:transparent}
.tats-media-portrait img{display:block;width:100%;height:100%;aspect-ratio:4/5;object-fit:cover;object-position:center}
@media (max-width:940px){
  .tats-media-portrait{width:min(100%,420px);margin:0 auto 16px}
}
