/* ============ APICAL SHARED STYLES ============ */
:root{
  --yellow:#F7B934;
  /* --yellow-deep is a *decorative* gold (fills, borders, accent-color). It is only
     2.09:1 on white, so it must never be used for text. Use --yellow-text instead. */
  --yellow-deep:#E8A823;
  --yellow-text:#8F6200;   /* 5.36:1 on white, 4.90:1 on --yellow-soft */
  --yellow-soft:#FFF4D8;
  --navy:#0F1A3C;
  --navy-2:#1A2855;
  --navy-soft:#F4F5FA;
  --white:#FFFFFF;
  --off:#FAFAFA;
  --text:#2B2F45;
  --muted:#5F6380;         /* was #7C8099 — 3.89:1 on white, failed AA. Now 5.86:1 */
  --line:#EAEAEF;
  --success:#14794A;       /* was #2BB673 — 2.61:1 on white, failed AA. Now 5.44:1 */
  --danger:#C42B3A;        /* was #E54D5B — 3.79:1 on white, failed AA. Now 5.59:1 */
  --ease:cubic-bezier(.22,.61,.36,1);
  --spring:cubic-bezier(.34,1.56,.64,1);
  --radius:16px;
  --radius-lg:24px;
  --white-rgb:255,255,255;
  --navy-rgb:15,26,60;
  --yellow-rgb:247,185,52;
  --font-display:'Playfair Display',serif;
  --font-body:'Poppins',sans-serif;
  /* Buttons, nav and form controls. Defaults to the body face; the admin can give
     the interface its own typeface without touching running text. */
  --font-ui:'Poppins',sans-serif;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{
  scroll-behavior:smooth;
  /* The off-canvas drawer sits at translateX(100%), which extended the document's
     scrollable width past the viewport on narrow screens. body{overflow-x:hidden}
     does not clip a fixed-position element, and overflow-x:hidden here would create
     a scroll container that breaks position:sticky — overflow-x:clip does neither. */
  overflow-x:clip;
}
body{
  font-family:var(--font-body);
  background:var(--white);color:var(--text);
  overflow-x:hidden;-webkit-font-smoothing:antialiased;
  font-size:15px;line-height:1.6;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
.container{max-width:1240px;margin:0 auto;padding:0 24px}

/* ============ A11Y PRIMITIVES ============ */
/* Visually hidden but available to screen readers. */
.sr-only{
  position:absolute!important;width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}
.skip-link{
  position:absolute;left:12px;top:-100px;z-index:999;
  padding:12px 20px;border-radius:0 0 12px 12px;
  background:var(--navy);color:var(--white);
  font-weight:600;font-size:.9rem;text-decoration:none;
  transition:top .2s var(--ease);
}
.skip-link:focus{top:0}
/* A single, consistent, visible focus ring for every interactive element.
   :focus-visible keeps it off for mouse users. */
a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--navy);
  outline-offset:2px;
  border-radius:4px;
}
.foot a:focus-visible,.nav .btn:focus-visible,.hero-ctas a:focus-visible,
.popular a:focus-visible,.cta-inner a:focus-visible{outline-color:var(--yellow)}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:13px 26px;border-radius:999px;
  background:var(--yellow);color:var(--navy);
  font-weight:600;font-size:.9rem;
  text-decoration:none;border:none;cursor:pointer;
  transition:transform .3s var(--spring),box-shadow .3s,background .3s,color .3s;
  box-shadow:0 10px 24px -8px rgba(var(--yellow-rgb),.5);
  font-family:inherit;
}
.btn:hover{background:var(--navy);color:var(--white);transform:translateY(-3px);box-shadow:0 14px 30px -8px rgba(var(--navy-rgb),.35)}
.btn .arr{display:inline-block;transition:transform .3s}
.btn:hover .arr{transform:translateX(4px)}
.btn.sm{padding:10px 20px;font-size:.82rem}
.btn.lg{padding:15px 30px;font-size:.95rem}
.btn.ghost{background:transparent;color:var(--navy);border:1.5px solid var(--line);box-shadow:none}
.btn.ghost:hover{background:var(--navy);color:var(--white);border-color:var(--navy)}
.btn.navy{background:var(--navy);color:var(--white);box-shadow:0 10px 24px -8px rgba(var(--navy-rgb),.4)}
.btn.navy:hover{background:var(--yellow);color:var(--navy)}
.btn.block{width:100%;justify-content:center}

/* ============ SECTION HEADING ============ */
.sh{text-align:center;margin-bottom:44px}
.sh .kicker{font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;color:var(--yellow-text);font-weight:600;margin-bottom:10px}
.sh h2{font-family:var(--font-display);font-size:clamp(1.9rem,3.6vw,2.8rem);font-weight:700;color:var(--navy);line-height:1.15;margin-bottom:14px}
.sh h2 .accent{color:var(--yellow-text);font-style:italic}
.sh p{max-width:640px;margin:0 auto;color:var(--muted);font-size:.95rem}
.sh.left{text-align:left}
.sh.left p{margin-left:0}

/* ============ NAV ============ */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  padding:18px 0;
  background:rgba(var(--white-rgb),.96);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  transition:padding .3s var(--ease),box-shadow .3s;
  border-bottom:1px solid transparent;
}
.nav.scrolled{padding:12px 0;box-shadow:0 4px 20px -10px rgba(var(--navy-rgb),.15);border-bottom-color:var(--line)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.logo{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--navy);text-decoration:none;font-size:1.3rem}
.logo-mark{
  width:38px;height:38px;border-radius:50%;
  background:var(--navy);
  display:grid;place-items:center;color:var(--yellow);
  font-family:var(--font-display);font-style:italic;font-size:1.3rem;
  transition:transform .5s var(--spring);
  flex-shrink:0;
}
.logo:hover .logo-mark{transform:rotate(-12deg) scale(1.08)}
.logo-name{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em}
.logo-name span{color:var(--yellow-text);font-style:italic}

.nav-links{display:flex;gap:4px;align-items:center}
.nav-links a{
  color:var(--text);text-decoration:none;padding:9px 16px;border-radius:999px;
  font-size:.9rem;font-weight:500;transition:all .25s var(--ease);
}
.nav-links a:hover{background:var(--yellow-soft);color:var(--navy)}
.nav-links a.active{background:var(--yellow);color:var(--navy)}

.nav-right{display:flex;gap:10px;align-items:center}
.icon-btn{
  width:40px;height:40px;border-radius:50%;
  background:var(--yellow-soft);color:var(--navy);
  border:none;cursor:pointer;display:grid;place-items:center;
  position:relative;transition:background .25s,transform .25s var(--spring);
}
.icon-btn:hover{background:var(--yellow);transform:translateY(-2px)}
.icon-btn .badge{
  position:absolute;top:-4px;right:-4px;
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:var(--navy);color:var(--yellow);
  font-size:.68rem;font-weight:700;display:grid;place-items:center;
  border:2px solid var(--white);
}
.lang{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 14px;background:var(--yellow-soft);color:var(--navy);
  border-radius:999px;font-size:.82rem;font-weight:500;cursor:pointer;border:none;
  font-family:inherit;
}
.lang:hover{background:var(--yellow)}
.mobile-toggle{display:none;background:var(--navy);color:var(--yellow);border:none;width:40px;height:40px;border-radius:50%;cursor:pointer;font-size:1.2rem}

/* Mobile drawer */
.drawer{
  position:fixed;top:0;right:0;bottom:0;width:320px;max-width:85vw;
  background:var(--white);z-index:100;padding:30px 24px;
  transform:translateX(100%);transition:transform .4s var(--ease),visibility 0s linear .4s;
  box-shadow:-20px 0 40px -15px rgba(var(--navy-rgb),.2);overflow-y:auto;
  /* visibility:hidden does three jobs the transform alone did not: it takes the
     closed drawer out of the tab order, out of the accessibility tree, and out of
     the document's scrollable overflow (it was pushing scrollWidth ~100px past the
     viewport on narrow screens). */
  visibility:hidden;
}
.drawer.open{transform:translateX(0);visibility:visible;transition:transform .4s var(--ease),visibility 0s}
.drawer-backdrop{
  position:fixed;inset:0;background:rgba(var(--navy-rgb),.5);z-index:99;
  opacity:0;pointer-events:none;transition:opacity .4s;
}
.drawer-backdrop.open{opacity:1;pointer-events:auto}
.drawer-close{position:absolute;top:20px;right:20px;background:var(--navy-soft);border:none;width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:1.2rem}
.drawer-links{list-style:none;margin-top:60px;display:flex;flex-direction:column;gap:6px}
.drawer-links a{
  display:block;padding:14px 18px;border-radius:14px;text-decoration:none;color:var(--navy);
  font-weight:500;font-family:var(--font-display);font-size:1.15rem;
  transition:all .25s;
}
.drawer-links a:hover,.drawer-links a.active{background:var(--yellow-soft);color:var(--navy)}
.drawer-links a.active{background:var(--yellow)}
.drawer-foot{margin-top:30px;padding-top:20px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:12px}

/* ============ PAGE HEAD ============ */
.page-head{
  padding:130px 0 70px;
  background:linear-gradient(135deg,var(--yellow-soft) 0%,var(--white) 100%);
  position:relative;overflow:hidden;
  text-align:center;
  border-bottom:1px solid var(--line);
}
.page-head::before{
  content:"";position:absolute;top:-80px;right:-80px;
  width:400px;height:400px;border-radius:50%;
  background:radial-gradient(circle,rgba(var(--yellow-rgb),.25) 0%,transparent 70%);
  pointer-events:none;
}
.page-head::after{
  content:"";position:absolute;bottom:-100px;left:-100px;
  width:400px;height:400px;border-radius:50%;
  background:radial-gradient(circle,rgba(var(--navy-rgb),.05) 0%,transparent 70%);
  pointer-events:none;
}
.page-head-inner{position:relative;z-index:2;max-width:720px;margin:0 auto}
.page-head .kicker{font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;color:var(--yellow-text);font-weight:600;margin-bottom:14px}
.page-head h1{
  font-family:var(--font-display);
  font-size:clamp(2.2rem,5vw,3.8rem);
  line-height:1.1;font-weight:700;color:var(--navy);margin-bottom:14px;
}
.page-head h1 .accent{color:var(--yellow-text);font-style:italic}
.page-head p{color:var(--muted);font-size:1rem;max-width:560px;margin:0 auto 20px}

.breadcrumb{
  display:inline-flex;align-items:center;gap:8px;padding:8px 16px;
  background:var(--white);border-radius:999px;
  font-size:.82rem;color:var(--muted);border:1px solid var(--line);
}
.breadcrumb a{color:var(--navy);text-decoration:none;font-weight:500}
.breadcrumb a:hover{color:var(--yellow-text)}
.breadcrumb .sep{color:var(--yellow-text)}
.breadcrumb .cur{color:var(--yellow-text);font-weight:600}

/* ============ FORMS ============ */
.field{margin-bottom:18px}
.field label{display:block;font-size:.82rem;font-weight:600;color:var(--navy);margin-bottom:6px;letter-spacing:.02em}
.field input,.field select,.field textarea{
  width:100%;padding:13px 16px;
  border:1.5px solid var(--line);border-radius:12px;
  background:var(--white);color:var(--text);
  font-family:inherit;font-size:.92rem;
  transition:border-color .25s,background .25s,box-shadow .25s;
  outline:none;
}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--yellow);
  box-shadow:0 0 0 4px var(--yellow-soft);
}
.field textarea{resize:vertical;min-height:120px}
.field .hint{font-size:.75rem;color:var(--muted);margin-top:6px}
.field .err{font-size:.78rem;color:var(--danger);margin-top:6px;display:none}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:var(--danger)}
.field.invalid .err{display:block}

.check{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:.88rem;color:var(--text)}
.check input{width:18px;height:18px;margin-top:2px;accent-color:var(--yellow-text);flex-shrink:0}
.check a{color:var(--yellow-text);text-decoration:underline}

.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:560px){.field-row{grid-template-columns:1fr}}

/* ============ CARDS (tour-card shared) ============ */
/* Card is a non-interactive <article>; the title link is "stretched" over the whole
   card so the entire surface is clickable without nesting controls inside a link. */
.tour-card{
  background:var(--white);border-radius:var(--radius-lg);overflow:hidden;
  border:1px solid var(--line);position:relative;
  transition:transform .4s var(--spring),box-shadow .4s;
  display:flex;flex-direction:column;color:inherit;
}
.tour-card:hover{transform:translateY(-8px);box-shadow:0 24px 50px -15px rgba(var(--navy-rgb),.2)}
.tc-title{margin:0 0 6px}
.tc-stretch{text-decoration:none;color:inherit}
.tc-stretch::after{content:"";position:absolute;inset:0;z-index:1}
.tour-card:focus-within{box-shadow:0 24px 50px -15px rgba(var(--navy-rgb),.2)}
.tc-stretch:focus-visible{outline:none}
.tour-card:focus-within{outline:3px solid var(--navy);outline-offset:2px}
.tc-img{height:200px;position:relative;overflow:hidden}
.tc-img img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.tour-card:hover .tc-img img{transform:scale(1.12)}
.tc-badge{
  position:absolute;top:12px;left:12px;
  background:var(--yellow);color:var(--navy);
  padding:5px 12px;border-radius:999px;
  font-size:.7rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
}
.tc-wish{
  position:absolute;top:12px;right:12px;z-index:2;
  width:36px;height:36px;border-radius:50%;
  background:var(--white);color:var(--navy);border:none;cursor:pointer;
  display:grid;place-items:center;
  transition:all .25s var(--spring);
  box-shadow:0 4px 12px -4px rgba(0,0,0,.15);
}
.tc-wish:hover{background:var(--yellow);transform:scale(1.1)}
.tc-wish.active{background:var(--danger);color:var(--white)}
.tc-body{padding:20px;flex:1;display:flex;flex-direction:column;position:static}
.tc-body h3,.tc-body h4{font-family:var(--font-display);font-size:1.2rem;font-weight:700;color:var(--navy);margin-bottom:6px}
.tc-loc{color:var(--muted);font-size:.82rem;display:flex;align-items:center;gap:5px;margin-bottom:12px}
.tc-meta{display:flex;gap:12px;font-size:.78rem;color:var(--muted);margin-bottom:14px;flex-wrap:wrap}
.tc-meta span{display:inline-flex;align-items:center;gap:4px}
.tc-rating{color:var(--yellow-text);font-weight:600}
.tc-foot{display:flex;justify-content:space-between;align-items:center;padding-top:14px;border-top:1px solid var(--line);margin-top:auto}
.tc-price{font-weight:700;color:var(--navy);font-size:1.05rem;font-family:var(--font-display)}
.tc-price small{color:var(--muted);font-weight:400;font-size:.72rem;display:block;font-family:var(--font-body)}
.tc-link{background:var(--yellow);color:var(--navy);border-radius:999px;padding:7px 16px;font-size:.78rem;font-weight:600;text-decoration:none;transition:all .25s}
.tc-link:hover{background:var(--navy);color:var(--yellow)}

/* ============ NEWSLETTER BAND ============ */
.newsletter{padding:60px 0 80px;background:var(--yellow-soft)}
.newsletter-inner{
  background:var(--navy);border-radius:28px;padding:50px;
  display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center;
  position:relative;overflow:hidden;
}
.newsletter-inner::before{
  content:"✉";position:absolute;top:-40px;right:-20px;
  font-size:14rem;color:var(--yellow);opacity:.08;line-height:1;
}
.newsletter h3{font-family:var(--font-display);font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;color:var(--white);margin-bottom:8px;position:relative;z-index:2}
.newsletter h3 .y{color:var(--yellow);font-style:italic}
.newsletter p{color:rgba(var(--white-rgb),.7);position:relative;z-index:2}
.newsletter form{
  display:flex;gap:10px;background:var(--white);padding:8px;border-radius:999px;
  position:relative;z-index:2;
  /* Was a flat min-width:440px, which forced ~150px of horizontal overflow on
     phones because a 1fr grid track cannot shrink below its content's min-width. */
  min-width:min(440px, 100%);
}
/* A bare <input> has an intrinsic min-width of ~20 characters, which is what was
   actually forcing the newsletter band ~440px wide regardless of the viewport. */
.newsletter input{flex:1;min-width:0;border:none;padding:10px 20px;font-family:inherit;font-size:.92rem;background:transparent;color:var(--navy);border-radius:999px}
.newsletter input:focus-visible{outline:3px solid var(--navy);outline-offset:1px}
.newsletter button{background:var(--yellow);color:var(--navy);border:none;padding:10px 24px;border-radius:999px;font-weight:600;cursor:pointer;font-family:inherit;font-size:.88rem;transition:all .3s var(--spring)}
.newsletter button:hover{background:var(--navy);color:var(--yellow)}

/* ============ FOOTER ============ */
.foot{padding:70px 0 24px;background:var(--navy);color:rgba(var(--white-rgb),.75);position:relative}
.foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr;gap:40px;margin-bottom:50px}
.foot-lead .logo{margin-bottom:16px}
.foot-lead .logo .logo-name,.foot-lead .logo{color:var(--white)}
.foot-lead p{font-size:.88rem;max-width:320px;margin-bottom:16px}
.foot-contact{display:flex;flex-direction:column;gap:8px;font-size:.85rem}
.foot-contact span{display:flex;gap:10px;align-items:center}
.foot-contact .i{width:30px;height:30px;border-radius:50%;background:var(--yellow);color:var(--navy);display:grid;place-items:center;flex-shrink:0;font-size:.8rem}
.foot-col h5,.foot-col .foot-head{font-family:var(--font-display);color:var(--white);font-weight:700;font-size:1.1rem;margin-bottom:16px;line-height:1.3}
.foot-col h5 .y,.foot-col .foot-head .y{color:var(--yellow);font-style:italic}
.foot-contact a{color:inherit;text-decoration:none}
.foot-contact a:hover{color:var(--yellow);text-decoration:underline}
.foot-col ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.foot-col a{color:rgba(var(--white-rgb),.7);text-decoration:none;font-size:.88rem;transition:all .25s}
.foot-col a:hover{color:var(--yellow);padding-left:6px}
.foot-news input{width:100%;padding:12px 16px;border-radius:999px;border:1px solid rgba(var(--white-rgb),.35);background:rgba(var(--white-rgb),.06);color:var(--white);font-family:inherit;font-size:.85rem;margin-bottom:10px}
.foot-news input:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.foot-news input::placeholder{color:rgba(var(--white-rgb),.72)}
.foot-news button{width:100%;padding:12px;background:var(--yellow);color:var(--navy);border:none;border-radius:999px;font-family:inherit;font-weight:600;cursor:pointer;font-size:.88rem;transition:all .3s var(--spring)}
.foot-news button:hover{background:var(--white);transform:translateY(-2px)}
.foot-social{display:flex;gap:8px;margin-top:16px}
.foot-social a{
  width:36px;height:36px;border-radius:50%;background:rgba(var(--white-rgb),.08);
  color:var(--white);display:grid;place-items:center;text-decoration:none;
  transition:all .3s var(--spring);font-size:.85rem;border:1px solid rgba(var(--white-rgb),.15);
}
.foot-social a:hover{background:var(--yellow);color:var(--navy);border-color:var(--yellow);transform:translateY(-3px)}
/* .5 alpha computed to 5.09:1 on navy; .62 lifts it to ~7:1 */
.foot-bot{padding-top:24px;border-top:1px solid rgba(var(--white-rgb),.12);display:flex;justify-content:space-between;align-items:center;font-size:.82rem;color:rgba(var(--white-rgb),.62);flex-wrap:wrap;gap:12px}

/* ============ TOAST ============ */
.toast{
  position:fixed;bottom:30px;right:30px;z-index:200;
  background:var(--navy);color:var(--white);
  padding:14px 22px;border-radius:14px;
  box-shadow:0 20px 40px -10px rgba(var(--navy-rgb),.4);
  display:flex;align-items:center;gap:10px;
  transform:translateY(20px);opacity:0;pointer-events:none;
  transition:all .4s var(--spring);font-size:.9rem;
  max-width:360px;
}
.toast.show{transform:translateY(0);opacity:1;pointer-events:auto}
.toast.success{background:var(--success)}
.toast.err{background:var(--danger)}
.toast .i{width:22px;height:22px;border-radius:50%;background:var(--yellow);color:var(--navy);display:grid;place-items:center;font-size:.8rem;font-weight:700;flex-shrink:0}

/* ============ REVEAL ============ */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.reveal.in{opacity:1;transform:translateY(0)}
.reveal.d1{transition-delay:.08s}
.reveal.d2{transition-delay:.16s}
.reveal.d3{transition-delay:.24s}
.reveal.d4{transition-delay:.32s}

/* ============ UTILITY ============ */
.text-y{color:var(--yellow-text)}
.text-navy{color:var(--navy)}
.text-muted{color:var(--muted)}
.text-center{text-align:center}
.mt-0{margin-top:0}
.mt-2{margin-top:18px}
.mt-4{margin-top:32px}
.flex{display:flex}
.flex-gap{gap:12px}
.flex-wrap{flex-wrap:wrap}
.align-center{align-items:center}
.justify-between{justify-content:space-between}

/* ============ RESPONSIVE GLOBAL ============ */
@media (max-width:1024px){
  .nav-links{display:none}
  .mobile-toggle{display:flex;align-items:center;justify-content:center}
  .nav-right .btn,.nav-right .lang{display:none}
  .foot-grid{grid-template-columns:1fr 1fr}
  .newsletter-inner{grid-template-columns:1fr;gap:24px}
  /* min-width:auto is a grid item's *automatic minimum size* — it resolves to the
     form's min-content (~440px) and so never actually released the overflow. 0 does. */
  .newsletter form{min-width:0;width:100%}
}
@media (max-width:600px){
  .foot-grid{grid-template-columns:1fr}
  .foot{padding:50px 0 20px}
  .foot-bot{flex-direction:column;text-align:center}
  .page-head{padding:110px 0 50px}
}

/* ============ GRID OVERFLOW GUARD ============
   A grid/flex item defaults to min-width:auto, so it refuses to shrink below its
   content's minimum. On phones that pushed the cart, tour-detail tab strip and
   newsletter band 100–150px past the viewport. min-width:0 lets the tracks shrink;
   the children that genuinely need to scroll (the tab strip) already say so. */
.cart-grid > *,
.tours-layout > *,
.bk-layout > *,
.dash-grid > *,
.d-layout > *,
.newsletter-inner > *,
.contact-grid > *,
.story-grid > *,
.about-grid > *,
.hotels-grid > *{min-width:0}

/* ============ SHARED COMPONENTS ============
   These were previously duplicated verbatim inside several pages' <style> blocks
   (blog.html + blog-post.html, index.html + about.html). Defined once here so they
   are cached with the stylesheet instead of re-shipped with every document. */
@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}100%{opacity:1;transform:translateY(0)}}
@keyframes spinBadge{to{transform:rotate(360deg)}}

.post-card{
  background:var(--white);border-radius:20px;overflow:hidden;border:1px solid var(--line);
  transition:transform .4s var(--spring),box-shadow .4s;
  text-decoration:none;color:inherit;display:flex;flex-direction:column;position:relative;
}
.post-card:hover{transform:translateY(-6px);box-shadow:0 24px 50px -20px rgba(var(--navy-rgb),.2)}
.post-img{height:220px;position:relative;overflow:hidden}
.post-img img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.post-card:hover .post-img img{transform:scale(1.08)}
.post-cat{position:absolute;top:12px;left:12px;background:var(--white);color:var(--navy);padding:5px 12px;border-radius:999px;font-size:.7rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.post-body{padding:22px;flex:1;display:flex;flex-direction:column}
.post-body h3{font-family:var(--font-display);font-size:1.25rem;font-weight:700;color:var(--navy);margin-bottom:10px;line-height:1.3}
.post-body p{color:var(--muted);font-size:.9rem;margin-bottom:18px;flex:1;line-height:1.6}

/* ============ REDUCED MOTION ============
   Honour the OS-level "reduce motion" setting: no parallax reveals, no infinite
   spins/pulses, no carousel cross-fades. Nothing is hidden — it just arrives. */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
    scroll-behavior:auto!important;
  }
  html{scroll-behavior:auto}
  .reveal{opacity:1!important;transform:none!important}
  .nav{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--white)}
}

/* ===== Offline pages =====
   A page switched off in the admin keeps its nav and footer but swaps its content
   for a notice. The original markup stays in the DOM (hidden) so the page's own
   scripts still find the elements they expect and never throw. */
body.page-offline main > *:not(.offline-note){display:none !important}
.offline-note{padding:90px 0 110px;text-align:center}
.offline-note h1{font-family:var(--font-display);font-size:clamp(1.8rem,4vw,2.6rem);color:var(--navy);margin-bottom:14px}
.offline-note p{color:var(--muted);max-width:520px;margin:0 auto 26px;line-height:1.7}

/* ===== UI typeface =====
   Controls used to inherit from <body>. Routing them through --font-ui lets the
   admin set the interface face separately from running text. */
button,input,select,textarea,.btn,.nav-links a,.drawer-links a{font-family:var(--font-ui)}
