/* File: /assets/css/style.css
   =========================================================================
   HOLIDAY PLANNING

   Sea, sun and sand, which is what people are actually shopping for.

   The frame is a deep sea teal - the colour of water with some depth to
   it rather than a swimming-pool blue. The page sits on warm sand. The
   one accent is a sun gold, and it is used where it will be seen: every
   button, every section rule, every active state.

   The combination is deliberately the oldest one in travel because it
   works. Warm ground and cool frame keep it from turning into a syrupy
   sunset gradient, and the gold does the smiling.

   A note on the trade made here. Across the sister sites the accent hues
   run from coral through brass and sage to seafoam, cyan and amethyst,
   and the coolest, emptiest part of that wheel is blue. Blue measures
   better as a "distinct from the siblings" choice and looks wrong on a
   holiday site, so this one takes the collision instead: the gold is in
   the same family as the Writing Guides brass, and the teal is in the
   same family as the Pregnancy Advice frame. That is the right way round
   - a reader looking for a holiday should feel one.

   ACCESSIBILITY. Every pairing this stylesheet renders was measured
   against WCAG 2.1 AA. All nineteen pass; the tightest is 4.56:1. Two
   consequences before editing:

     - Buttons print --primary on the gold, never white. White on this
       gold is 1.90:1 and completely unreadable; the sea teal is 6.47:1.
     - Gold as TEXT on a light ground uses --accent-dark. The accent
       itself is 1.90:1 on white and must never carry type.

   FONTS. Fraunces and Public Sans, matching the Google Fonts link in
   /includes/head-common.php.
   ========================================================================= */

:root{
  /* -- core palette ---------------------------------------------------- */
  --primary:#113A43;        /* deep sea teal - header, footer, headings   */
  --primary-tint:#375A61;   /* hover on dark surfaces                     */
  --secondary:#36606A;      /* shallow sea - breadcrumb, supporting text  */

  --accent:#F6AF20;         /* sun gold - buttons, rules, active states   */
  --accent-dark:#916713;    /* gold as TEXT on light - 5.06:1 on white    */
  --accent-light:#F9CC70;   /* gold as TEXT on sea teal - 8.13:1          */

  --text:#132228;
  --bg:#FAF5ED;             /* warm sand                                  */
  --card:#FFFFFF;
  --cream:#FAF5ED;
  --footer:#0C2A30;         /* deeper water, a step below primary         */
  --muted-on-dark:#8EA1A5;  /* body copy on sea teal - 4.56:1             */

  --hairline:rgba(17,58,67,.14);
  --hairline-strong:rgba(17,58,67,.28);

  /* -- type ------------------------------------------------------------ */
  --serif:"Fraunces", Georgia, "Times New Roman", serif;
  --sans:"Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --display:var(--serif);   /* alias, so stray references still resolve   */

  --logo-mask:url(/assets/images/hplogo.png);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4{font-family:var(--serif);margin:0;color:var(--primary);line-height:1.2;}

.eyebrow{
  font-family:var(--sans);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent-dark);
}

.wrap{max-width:1240px;margin:0 auto;padding:0 24px;}
.visually-hidden,.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

.skip-link{position:absolute;left:-999px;top:0;background:var(--primary);color:#fff;padding:10px 16px;z-index:200;}
.skip-link:focus{left:12px;top:12px;}

:focus-visible{outline:3px solid var(--primary);outline-offset:2px;border-radius:3px;}

/* ===================== HEADER ===================== */
/* The header is the dark, not the accent. Green at this saturation across
   a full-width bar reads as a supplement advert; held back to the
   underline and the buttons it reads as fresh produce. */
header.site-header{
  background:var(--primary);
  border-bottom:3px solid var(--accent);
  position:sticky;top:0;z-index:100;
}
.header-inner{
  display:flex;align-items:center;gap:28px;
  padding:10px 24px;max-width:1240px;margin:0 auto;
}
.logo-link{flex:0 0 auto;}
.logo-link img{height:auto;width:310px;border-radius:3px;}

nav.primary-nav{flex:1 1 auto;}
.nav-list{display:flex;align-items:center;justify-content:space-between;width:100%;}
.nav-list > li{position:relative;}
.nav-list > li > a,
.nav-list > li > button.nav-toggle{
  display:flex;align-items:center;gap:5px;
  font-family:var(--sans);
  font-weight:700;font-size:.86rem;letter-spacing:.03em;
  color:#fff;
  padding:10px 6px;
  background:none;border:none;cursor:pointer;
  position:relative;
}
/* Underline slides in from the left. The 2px bar is --primary, which sits
   at 8.45:1 on the marigold, so the affordance never relies on colour
   alone. */
.nav-list > li > a::after,
.nav-list > li > button.nav-toggle::after{
  content:"";position:absolute;left:6px;right:6px;bottom:4px;height:2px;
  background:var(--accent);
  transform:scaleX(0);transform-origin:left;
  transition:transform .18s ease;
}
.nav-list > li > a:hover::after,
.nav-list > li:hover > button.nav-toggle::after{transform:scaleX(1);}
.nav-list > li > a.is-active,
.nav-list > li > button.nav-toggle.is-active{color:var(--accent-light);}
.nav-list > li > a.is-active::after,
.nav-list > li > button.nav-toggle.is-active::after{transform:scaleX(1);}
.caret{font-size:.6rem;margin-top:2px;}

/* The dropdown sits flush against the button, with no margin gap. A gap
   belongs to neither element, so crossing it makes li:hover go false and
   the menu closes before the pointer arrives. There is no JavaScript here,
   so :hover carries the whole interaction. */
.dropdown{
  display:none;position:absolute;top:100%;left:50%;
  transform:translateX(-50%);
  min-width:230px;
  background:var(--primary);
  border-top:3px solid var(--accent);
  box-shadow:0 12px 24px rgba(12,42,48,.30);
  padding:10px 0;z-index:50;
}
.nav-list > li:hover .dropdown,
.nav-list > li:focus-within .dropdown{display:block;}
.dropdown a{
  display:block;padding:9px 20px;font-size:.85rem;
  color:var(--cream);border-left:3px solid transparent;
}
.dropdown a:hover{background:var(--primary-tint);border-left-color:var(--accent);color:#fff;}

.dropdown-wide{min-width:560px;columns:3;column-gap:0;left:auto;right:0;transform:none;}
.dropdown-wide li{break-inside:avoid;}

.header-actions{display:flex;align-items:center;gap:14px;flex:0 0 auto;}
.icon-btn{
  width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);font-size:.9rem;
}
.icon-btn:hover{background:var(--accent);color:var(--primary);border-color:var(--accent);}

.header-search{
  display:flex;align-items:center;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);
  border-radius:20px;padding:4px 4px 4px 16px;min-width:310px;
}
.header-search input{
  border:none;background:none;outline:none;
  font-family:var(--sans);font-size:.84rem;color:#fff;width:100%;
}
.header-search input::placeholder{color:var(--muted-on-dark);}
.header-search button{
  flex:0 0 auto;width:32px;height:32px;border-radius:50%;border:none;
  background:var(--accent);color:var(--primary);
  display:flex;align-items:center;justify-content:center;
  font-size:.8rem;cursor:pointer;
}
.header-search button:hover{background:var(--accent-light);}

.nav-toggle-mobile{display:none;}

/* ===================== BREADCRUMB ===================== */
.breadcrumb-bar{background:var(--secondary);color:#fff;}
.breadcrumb-bar .wrap{
  padding:9px 24px;display:flex;align-items:center;gap:8px;
  font-size:.78rem;letter-spacing:.02em;
}
.breadcrumb-bar a{opacity:.9;}
.breadcrumb-bar a:hover{opacity:1;text-decoration:underline;}
.breadcrumb-bar .sep{opacity:.55;}
.breadcrumb-bar .current{color:var(--accent-light);font-weight:600;}

/* ===================== LAYOUT ===================== */
main{padding:36px 0 8px;}
.layout{display:grid;grid-template-columns:1fr 320px;gap:40px;align-items:start;}
.primary-content{min-width:0;}

/* ===================== HERO ===================== */
.hero-card{
  position:relative;background:var(--primary);
  border-radius:10px;overflow:hidden;
  aspect-ratio:16/9;max-height:560px;margin-bottom:44px;
  box-shadow:0 14px 30px rgba(17,58,67,.20);
}
.hero-media{position:absolute;inset:0;z-index:1;}
.hero-media img{width:100%;height:100%;object-fit:cover;display:block;}
.hero-media-fallback{
  width:100%;height:100%;
  background:linear-gradient(135deg,var(--primary-tint),var(--primary));
  display:flex;align-items:center;justify-content:center;color:rgba(249,204,112,.55);
}
.hero-media-fallback i{font-size:4rem;}
.hero-scrim{
  position:absolute;inset:0;z-index:2;
  background:linear-gradient(180deg, rgba(12,42,48,.05) 0%, rgba(12,42,48,.45) 45%, rgba(10,27,34,.94) 100%);
}
.hero-copy{
  position:relative;z-index:3;height:100%;
  padding:40px 48px;color:var(--cream);
  display:flex;flex-direction:column;justify-content:flex-end;gap:12px;max-width:640px;
}
.hero-copy .eyebrow{color:var(--accent-light);}
.hero-copy h1{color:#fff;font-size:2.15rem;line-height:1.15;font-weight:600;text-shadow:0 2px 12px rgba(0,0,0,.35);}
.hero-copy p{color:#DDE9EB;font-size:.98rem;max-width:52ch;margin:0;}
.hero-meta{display:flex;gap:14px;font-size:.78rem;color:var(--accent-light);letter-spacing:.02em;}
.hero-cta{
  margin-top:6px;display:inline-flex;align-items:center;gap:8px;
  color:var(--accent-light);font-weight:700;font-size:.88rem;width:fit-content;
  border-bottom:2px solid var(--accent);padding-bottom:3px;
}
.hero-cta:hover{color:#fff;border-color:#fff;}

/* ===================== SECTION HEAD ===================== */
.section-head{
  display:flex;align-items:baseline;justify-content:space-between;
  margin-bottom:20px;border-bottom:2px solid var(--hairline);padding-bottom:10px;
}
.section-head h2{font-size:1.5rem;}
.section-head a.view-all{font-size:.8rem;font-weight:700;color:var(--secondary);letter-spacing:.02em;}
.section-head a.view-all:hover{color:var(--accent-dark);}

/* ===================== CATEGORY PAGE ===================== */
.category-hero{margin-bottom:24px;}
.category-hero h1{font-size:2.1rem;margin:6px 0 12px;line-height:1.15;}
.category-hero p{font-size:.98rem;color:var(--secondary);max-width:70ch;margin:0 0 16px;}
.category-meta{display:flex;gap:20px;font-size:.82rem;color:var(--secondary);font-weight:600;}
.category-meta i{color:var(--accent-dark);margin-right:6px;}

.era-filter{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:40px;}
.era-pill{
  padding:9px 18px;border-radius:30px;font-size:.85rem;font-weight:600;
  background:var(--card);border:1px solid var(--hairline);color:var(--primary);
}
.era-pill:hover{border-color:var(--accent);}
.era-pill.is-active{background:var(--primary);border-color:var(--primary);color:#fff;}

.sort-form{display:flex;align-items:center;gap:8px;font-size:.78rem;color:var(--secondary);align-self:center;}
.sort-form label{font-weight:600;}
.sort-form select{
  padding:7px 30px 7px 12px;border-radius:6px;border:1px solid var(--hairline);
  background:var(--card);color:var(--primary);font-family:var(--sans);font-size:.82rem;font-weight:600;
  cursor:pointer;-webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23113A43' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 8px center;background-size:14px;
}
.sort-form select:focus{outline:none;border-color:var(--accent);}
.article-grid.category-grid{margin-bottom:8px;grid-template-columns:repeat(3,1fr);}

.pagination{
  display:flex;align-items:center;justify-content:center;gap:8px;
  margin-top:12px;padding-top:28px;border-top:1px solid var(--hairline);
}
.page-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 16px;border-radius:6px;font-size:.85rem;font-weight:600;
  color:var(--primary);border:1px solid var(--hairline);background:var(--card);
}
.page-btn:hover{border-color:var(--accent);}
.page-btn.is-disabled{opacity:.4;pointer-events:none;}
.page-num{
  width:36px;height:36px;display:flex;align-items:center;justify-content:center;
  border-radius:6px;font-size:.85rem;font-weight:600;color:var(--primary);
}
.page-num:hover{background:var(--card);}
/* Marine on the marigold, not white. White here is 1.62:1. */
.page-num.is-active{background:var(--accent);color:var(--primary);}

/* ===================== ERAS ===================== */
/* Two columns by default, so the cards stay readable at any count.
   Odd counts of five or more leave a single orphan card on the final row,
   which reads as a mistake rather than a choice - so at exactly 5, 7 or 9
   the whole set collapses onto one row instead.

   :nth-child(N):last-child matches only when the Nth child is also the
   last, i.e. when there are exactly N of them. :has() applies that count
   to the grid container. Browsers without :has() keep the two-column
   default, which is a reasonable place to land. */
.eras{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;margin-bottom:46px;
}
.eras:has(> :nth-child(5):last-child){grid-template-columns:repeat(5, minmax(0,1fr));}
.eras:has(> :nth-child(7):last-child){grid-template-columns:repeat(7, minmax(0,1fr));}
.eras:has(> :nth-child(9):last-child){grid-template-columns:repeat(9, minmax(0,1fr));}
.era-card{
  background:var(--card);border:1px solid var(--hairline);border-radius:8px;
  padding:18px 14px;text-align:center;transition:transform .15s ease, box-shadow .15s ease;
}
.era-card:hover{transform:translateY(-3px);box-shadow:0 10px 20px rgba(17,58,67,.12);border-color:var(--accent);}
.era-card .era-icon{
  width:44px;height:44px;margin:0 auto 10px;border-radius:50%;
  background:var(--bg);border:1px solid var(--hairline);
  display:flex;align-items:center;justify-content:center;color:var(--accent-dark);
}
.era-card:hover .era-icon{background:var(--accent);border-color:var(--accent);color:var(--primary);}
.era-card .era-icon i{font-size:1.2rem;}
.era-card .era-range{display:block;font-size:.68rem;color:var(--secondary);letter-spacing:.06em;text-transform:uppercase;margin-bottom:3px;}
.era-card h3{font-size:.95rem;color:var(--primary);}

/* ===================== ARTICLE GRID ===================== */
.article-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-bottom:46px;}
.article-card{
  background:var(--card);border:1px solid var(--hairline);border-radius:8px;overflow:hidden;
  display:flex;flex-direction:column;transition:box-shadow .15s ease, transform .15s ease;
}
.article-card:hover{box-shadow:0 12px 22px rgba(17,58,67,.14);transform:translateY(-2px);}
.article-thumb{
  width:100%;aspect-ratio:16/9;
  background:linear-gradient(135deg,var(--primary-tint),var(--primary));
  display:flex;align-items:center;justify-content:center;color:rgba(249,204,112,.55);
  overflow:hidden;
}
.article-thumb i{font-size:1.8rem;}
.article-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.article-body{padding:18px 20px 20px;}
.article-tag{font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-dark);}
.article-card h3{font-size:1.08rem;margin:8px 0 8px;line-height:1.3;}
.article-card h3 a:hover{color:var(--accent-dark);}
.article-card p{font-size:.86rem;color:var(--secondary);margin:0 0 12px;}
.article-foot{display:flex;justify-content:space-between;font-size:.72rem;color:var(--secondary);border-top:1px solid var(--hairline);padding-top:10px;}

/* ===================== ARTICLE PAGE ===================== */
.back-to-category{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.85rem;font-weight:700;color:var(--secondary);margin-bottom:24px;
}
.back-to-category:hover{color:var(--accent-dark);}

.article-hero-image{
  width:100%;aspect-ratio:16/9;border-radius:10px;overflow:hidden;margin-bottom:28px;
  background:linear-gradient(135deg,var(--primary-tint),var(--primary));
  display:flex;align-items:center;justify-content:center;color:rgba(249,204,112,.55);
}
.article-hero-image img{width:100%;height:100%;object-fit:cover;display:block;}
.article-hero-image i{font-size:3rem;}

.article-page-header{margin-bottom:8px;}
/* The hero image sits between the title and the byline, so its spacing is
   tighter than it was as a standalone block above the article. */
.article-page-header .article-hero-image{margin:18px 0 24px;}
.article-page-header h1{font-size:2rem;line-height:1.2;margin:10px 0 16px;}
.article-page-meta{
  display:flex;gap:18px;flex-wrap:wrap;font-size:.82rem;color:var(--secondary);
  border-bottom:2px solid var(--hairline);padding-bottom:22px;margin-bottom:28px;
}
.article-page-meta span{display:flex;align-items:center;gap:6px;}
.article-page-meta i{color:var(--accent-dark);}

.article-content{font-size:1.02rem;line-height:1.75;color:var(--text);}
.article-content p{margin:0 0 20px;}
.article-content h2{font-family:var(--serif);color:var(--primary);font-size:1.5rem;margin:36px 0 16px;}
.article-content h3{font-family:var(--serif);color:var(--primary);font-size:1.25rem;margin:28px 0 12px;}
.article-content a{color:var(--accent-dark);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px;}
.article-content a:hover{color:var(--primary);text-decoration-color:var(--primary);}
.article-content blockquote{
  border-left:4px solid var(--accent);margin:24px 0;padding:2px 0 2px 20px;
  font-family:var(--serif);font-style:italic;font-size:1.15rem;color:var(--primary);
}
.article-content img{width:100%;border-radius:8px;margin:8px 0 24px;}
.article-content ul,.article-content ol{margin:0 0 20px;padding-left:24px;}
.article-content ul{list-style:disc;}
.article-content ol{list-style:decimal;}
.article-content li{margin-bottom:8px;}
.article-content strong{font-weight:700;color:var(--primary);}

.related-articles{margin-top:48px;padding-top:8px;}

/* ===================== CHIPS ===================== */
.places-section{margin-bottom:46px;}
.place-chips{display:flex;flex-wrap:wrap;gap:10px;}
.place-chips a{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--card);border:1px solid var(--hairline);
  padding:9px 16px;border-radius:30px;font-size:.85rem;font-weight:600;color:var(--primary);
}
.place-chips a:hover{background:var(--primary);color:#fff;border-color:var(--primary);}
.place-chips a .dot{width:6px;height:6px;border-radius:50%;background:var(--accent);}
.place-chips a:hover .dot{background:var(--accent-light);}

/* ===================== PROFILE CARDS ===================== */
.people-section{margin-bottom:10px;}
.people-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.person-card{
  background:var(--card);border:1px solid var(--hairline);border-radius:8px;
  padding:20px;display:flex;gap:14px;align-items:flex-start;
}
.person-avatar{
  flex:0 0 auto;width:52px;height:52px;border-radius:50%;
  background:var(--accent-light);color:var(--primary);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-weight:600;border:2px solid var(--accent);
}
.person-card h3{font-size:.98rem;margin-bottom:3px;}
.person-card .role{font-size:.72rem;color:var(--secondary);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;display:block;}
.person-card p{font-size:.82rem;color:var(--secondary);margin:0;}

/* ===================== SIDEBAR ===================== */
aside.sidebar{display:flex;flex-direction:column;gap:34px;}
.widget h2{font-size:1.02rem;margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid var(--hairline);}

.ad-slot{
  width:100%;max-width:300px;height:250px;margin:0 auto 14px;
  background:repeating-linear-gradient(45deg,#F4EEE3,#F4EEE3 10px,#E9E0D0 10px,#E9E0D0 20px);
  border:1px dashed var(--secondary);border-radius:6px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--secondary);
}
.ad-slot span.label{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700;}
.ad-slot span.dims{font-size:.72rem;}
.ad-slot-live{background:none;border:none;padding:0;overflow:hidden;}
.ad-slot-live img{width:100%;height:100%;object-fit:cover;display:block;}

.side-list li{border-bottom:1px solid var(--hairline);padding:11px 0;}
.side-list li:first-child{padding-top:0;}
.side-list li:last-child{border-bottom:none;padding-bottom:0;}
.side-list a{font-size:.87rem;font-weight:600;color:var(--primary);line-height:1.35;}
.side-list a:hover{color:var(--accent-dark);}
.side-list .meta{display:block;font-size:.72rem;color:var(--secondary);margin-top:3px;font-weight:400;}

.popular-list li{display:flex;gap:12px;align-items:flex-start;}
.rank{
  flex:0 0 auto;width:24px;height:24px;border-radius:50%;
  background:var(--primary);color:var(--accent-light);
  font-family:var(--serif);font-size:.78rem;font-weight:600;
  display:flex;align-items:center;justify-content:center;
}

.cat-list li{padding:0;border:none;}
.cat-list a{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 0;border-bottom:1px solid var(--hairline);
  font-size:.87rem;font-weight:600;color:var(--primary);
}
.cat-list li:last-child a{border-bottom:none;}
.cat-list .count{
  font-size:.72rem;font-weight:700;color:var(--secondary);
  background:var(--bg);border:1px solid var(--hairline);border-radius:20px;padding:2px 9px;
}
.cat-list a:hover .count{background:var(--accent);color:var(--primary);border-color:var(--accent);}

/* ===================== NEWSLETTER BAND ===================== */
.newsletter-band{
  background:var(--primary);
  background-image:radial-gradient(circle at 15% 20%, rgba(246,175,32,.20), transparent 55%);
  color:#fff;margin-top:56px;
}
.newsletter-inner{
  max-width:1240px;margin:0 auto;padding:52px 24px;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:40px;
}
.newsletter-copy{max-width:460px;flex:1 1 360px;}
.newsletter-copy .eyebrow{color:var(--accent-light);}
.newsletter-copy h2{color:#fff;font-size:1.65rem;margin:6px 0 8px;}
.newsletter-copy p{color:var(--muted-on-dark);font-size:.92rem;margin:0;}
.newsletter-form{display:flex;flex-direction:column;gap:10px;flex:1 1 500px;max-width:580px;}
.newsletter-fields{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;}
.newsletter-form input{
  flex:1 1 200px;min-width:0;padding:13px 16px;border-radius:4px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);color:#fff;font-family:var(--sans);font-size:.88rem;
}
.newsletter-form input::placeholder{color:var(--muted-on-dark);}
.newsletter-form input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(246,175,32,.28);}
.newsletter-form button{
  flex:0 0 auto;padding:13px 24px;border-radius:4px;border:none;
  background:var(--accent);color:var(--primary);
  font-weight:800;font-size:.86rem;letter-spacing:.02em;cursor:pointer;white-space:nowrap;
}
.newsletter-form button:hover{background:var(--accent-light);}
.newsletter-form small{display:block;color:var(--muted-on-dark);font-size:.72rem;}
.newsletter-errors{color:#FFD1D1;font-size:.8rem;margin:0;}

/* ===================== FOOTER ===================== */
footer.site-footer{background:var(--footer);color:var(--muted-on-dark);border-top:4px solid var(--accent);}
/* Brand block, then one equal column per footer category.
   The original template sized this for four categories plus a long list
   of areas, which is why the last column was 1.75fr. With five categories
   of six sub-categories each that made the final column sprawl, and put
   six children into a five-column grid so the last one wrapped.
   If you change footer_max_columns, change the repeat() count to match. */
.footer-main{
  max-width:1240px;margin:0 auto;padding:52px 24px 36px;
  display:grid;
  grid-template-columns:1.5fr repeat(5, minmax(0,1fr));
  gap:28px 20px;
}
.footer-brand img{height:46px;margin-bottom:14px;border-radius:3px;}
.footer-logo-mark{
  display:block;width:230px;aspect-ratio:1653/213;margin-bottom:14px;
  background-color:var(--accent);
  -webkit-mask-image:var(--logo-mask);mask-image:var(--logo-mask);
  -webkit-mask-size:contain;mask-size:contain;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:left center;mask-position:left center;
  -webkit-mask-mode:alpha;mask-mode:alpha;
}
.footer-brand p{font-size:.83rem;line-height:1.65;color:var(--muted-on-dark);margin:0 0 16px;}
footer h3{font-family:var(--sans);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-light);margin-bottom:16px;}
footer .footer-links li{margin-bottom:10px;}
footer .footer-links a{font-size:.85rem;color:var(--muted-on-dark);}
footer .footer-links a:hover{color:#fff;text-decoration:underline;}
/* footer.php still tags the final column .footer-areas, which in the
   original carried a three-column list of ~21 area links. Six links do
   not need three sub-columns, so it matches every other column. */
.footer-areas .footer-links{columns:1;}
.footer-areas .footer-links li{margin-bottom:10px;}
.footer-areas .footer-links a{font-size:.85rem;}

/* Section headings carry a green rule, which is where the accent earns
   its place: fresh, food-related, and only a few pixels of it. */
.section-head{border-bottom-color:var(--accent);}

.footer-bottom{border-top:1px solid rgba(255,255,255,.12);}
.footer-bottom .wrap{
  max-width:1240px;margin:0 auto;padding:18px 24px;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;
  font-size:.76rem;color:var(--muted-on-dark);
}
.footer-bottom .legal-links{display:flex;gap:18px;flex-wrap:wrap;}
.footer-bottom a:hover{color:#fff;text-decoration:underline;}

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 22px;border-radius:6px;border:1px solid transparent;
  font-family:var(--sans);font-weight:700;font-size:.86rem;cursor:pointer;
}
.btn-primary{background:var(--primary);color:#fff;}
.btn-primary:hover{background:var(--primary-tint);}
.btn-accent{background:var(--accent);color:var(--primary);}
.btn-accent:hover{background:var(--accent-light);}
.btn-secondary{background:var(--card);color:var(--primary);border-color:var(--hairline-strong);}
.btn-secondary:hover{border-color:var(--accent);}
.btn-danger{background:#B91C1C;color:#fff;}
.btn-sm{padding:7px 14px;font-size:.8rem;border-radius:5px;}
.btn-sm:hover{border-color:var(--accent);color:var(--accent-dark);}

/* ===================== FORMS & UTILITY PAGES ===================== */
.form-grid{display:grid;gap:18px;max-width:640px;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.form-group{display:flex;flex-direction:column;gap:6px;}
.form-group label{font-size:.82rem;font-weight:700;color:var(--primary);}
.form-group input,.form-group textarea,.form-group select{
  padding:11px 14px;border-radius:6px;border:1px solid var(--hairline-strong);
  background:var(--card);font-family:var(--sans);font-size:.92rem;color:var(--text);
}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{
  outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(246,175,32,.25);
}
.form-group .hint{font-size:.76rem;color:var(--secondary);}
.form-actions{display:flex;gap:12px;align-items:center;margin-top:6px;}
.captcha-row{display:flex;align-items:center;gap:14px;}
.contact-errors,.alert-error{
  background:#FEE2E2;border:1px solid #F5B5B5;color:#8A1616;
  padding:12px 16px;border-radius:6px;font-size:.86rem;margin-bottom:20px;
}
.alert-success{
  background:#DCF7E7;border:1px solid #A6DFC0;color:#0B5B2E;
  padding:12px 16px;border-radius:6px;font-size:.86rem;margin-bottom:20px;
}
.confirmation-box{
  background:var(--card);border:1px solid var(--hairline);border-left:4px solid var(--accent);
  border-radius:0 8px 8px 0;padding:24px 26px;margin-bottom:28px;
}
.confirmation-box h1{font-size:1.6rem;margin-bottom:10px;}
.confirmation-box p{color:var(--secondary);margin:0 0 12px;font-size:.94rem;}
.unsub-btn{margin-top:8px;}

.sitemap-section{margin-bottom:44px;}
.sitemap-jump{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:36px;}
.sitemap-jump a{
  padding:8px 16px;border-radius:30px;font-size:.82rem;font-weight:600;
  background:var(--card);border:1px solid var(--hairline);color:var(--primary);
}
.sitemap-jump a:hover{border-color:var(--accent);background:var(--accent);color:var(--primary);}
.sitemap-group{margin-bottom:26px;}
.sitemap-group h3{font-size:1rem;margin-bottom:10px;}
.sitemap-links{columns:2;column-gap:32px;}
.sitemap-links li{break-inside:avoid;margin-bottom:8px;}
.sitemap-links a{font-size:.88rem;color:var(--primary);}
.sitemap-links a:hover{color:var(--accent-dark);text-decoration:underline;}
.sitemap-pages{display:flex;flex-wrap:wrap;gap:18px;}

/* ===================== RESPONSIVE ===================== */
@media (max-width:1080px){
  .layout{grid-template-columns:1fr;}
  aside.sidebar{flex-direction:row;flex-wrap:wrap;}
  aside.sidebar .widget{flex:1 1 260px;}
  .footer-main{grid-template-columns:repeat(3, minmax(0,1fr));}
  .article-grid.category-grid{grid-template-columns:repeat(2,1fr);}
  .eras,
  .eras:has(> :nth-child(5):last-child),
  .eras:has(> :nth-child(7):last-child),
  .eras:has(> :nth-child(9):last-child){grid-template-columns:repeat(3, minmax(0,1fr));}
}
@media (max-width:900px){
  .logo-link img{height:44px;}
  .nav-list{display:none;}
  .nav-toggle-mobile{display:flex;}
  .header-inner{justify-content:space-between;gap:14px;}
  .header-search{min-width:0;flex:1 1 auto;}
  .hero-card{aspect-ratio:4/3;max-height:none;}
  .hero-copy{padding:28px 24px;}
  .hero-copy h1{font-size:1.6rem;}
  .article-grid,.article-grid.category-grid{grid-template-columns:1fr;}
  .people-grid{grid-template-columns:1fr;}
  .footer-main{grid-template-columns:repeat(2, minmax(0,1fr));}
  .form-row{grid-template-columns:1fr;}
  .sitemap-links{columns:1;}
}
@media (max-width:560px){
  .header-search{display:none;}
  .eras,
  .eras:has(> :nth-child(5):last-child),
  .eras:has(> :nth-child(7):last-child),
  .eras:has(> :nth-child(9):last-child){grid-template-columns:repeat(2, minmax(0,1fr));}
  .footer-main{grid-template-columns:1fr;}
  .newsletter-fields{flex-wrap:wrap;}
  .newsletter-form button{width:100%;justify-content:center;}
  .article-page-header h1{font-size:1.55rem;}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none !important;scroll-behavior:auto !important;}
  .article-card:hover,.era-card:hover{transform:none;}
}