/*
Theme Name: History Chronicle
Theme URI: https://historybugs.com/
Author: History Bugs
Author URI: https://historybugs.com/
Description: A professional, archive-inspired WordPress theme built for History Bugs. Ledger-style layouts, an ornamental emblem mark, built-in cookie-consent manager with configurable categories, and dedicated templates for an Author page and a Disclaimer page. Designed exclusively for this site — not adapted from an existing template.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: history-chronicle
Tags: blog, custom-menu, custom-logo, featured-images, translation-ready, one-column, two-columns, footer-widgets, threaded-comments

This theme, like WordPress, is licensed under the GPL.
Use it to make something great, and give back if you can.
*/

/* =========================================================
   0. DESIGN TOKENS
   A manuscript / archive palette: parchment + ink, with
   brass and burgundy as the two accents. No terracotta,
   no pure black — everything is warmed slightly.
   ========================================================= */
:root{
  --hb-parchment:      #EFE6D3;
  --hb-parchment-soft: #F8F3E7;
  --hb-parchment-deep: #E4D8BC;
  --hb-ink:            #211C16;
  --hb-ink-soft:       #4A4034;
  --hb-ink-faint:      #7A6F5E;
  --hb-brass:          #B8863B;
  --hb-brass-deep:     #8C6526;
  --hb-burgundy:       #6E2A2A;
  --hb-burgundy-deep:  #521E1E;
  --hb-verdigris:      #5C7A6B;
  --hb-line:           rgba(33, 28, 22, 0.16);
  --hb-line-soft:      rgba(33, 28, 22, 0.09);
  --hb-shadow:         0 1px 0 rgba(33,28,22,0.06);

  --hb-font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --hb-font-body:    "Literata", "Iowan Old Style", Georgia, serif;
  --hb-font-mark:    "Fraunces", Georgia, serif;

  --hb-max: 1180px;
  --hb-max-narrow: 760px;
  --hb-radius: 2px;
}

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::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{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body{
  margin: 0;
  background: var(--hb-parchment);
  color: var(--hb-ink);
  font-family: var(--hb-font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--hb-burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover{ color: var(--hb-brass-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--hb-brass-deep);
  outline-offset: 2px;
}
h1,h2,h3,h4{
  font-family: var(--hb-font-display);
  font-weight: 600;
  color: var(--hb-ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.002em;
}
p{ margin: 0 0 1.2em; }
ul,ol{ padding-left: 1.3em; }
.container{ max-width: var(--hb-max); margin: 0 auto; padding: 0 28px; }
.container--narrow{ max-width: var(--hb-max-narrow); }
.visually-hidden{
  position: absolute !important; 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: 12px; top: -60px; background: var(--hb-ink); color: var(--hb-parchment);
  padding: 10px 16px; z-index: 200; transition: top .15s ease;
}
.skip-link:focus{ top: 12px; }

/* =========================================================
   2. ORNAMENT (emblem + dividers) — reused sparingly
   ========================================================= */
.hb-emblem{ display: inline-flex; align-items: center; gap: 10px; }
.hb-emblem svg{ width: 34px; height: 34px; flex-shrink: 0; }
.hb-emblem-word{
  font-family: var(--hb-font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--hb-ink);
  line-height: 1;
}
.hb-emblem-word small{
  display: block;
  font-family: var(--hb-font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--hb-ink-faint);
  margin-top: 3px;
}
.hb-divider{
  display: flex; align-items: center; gap: 14px; margin: 2.6em 0;
}
.hb-divider::before, .hb-divider::after{
  content: ""; flex: 1; height: 1px; background: var(--hb-line);
}
.hb-divider svg{ width: 16px; height: 16px; color: var(--hb-brass); flex-shrink: 0; }

/* =========================================================
   3. SITE HEADER
   ========================================================= */
.site-header{
  background: var(--hb-parchment-soft);
  border-bottom: 1px solid var(--hb-line);
}
.site-header__bar{
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
}
.custom-logo-link img{ max-height: 46px; width: auto; }
.site-nav{ display: none; }
.site-nav ul{
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a{
  color: var(--hb-ink-soft);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
}
.site-nav a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: var(--hb-brass); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after{ transform: scaleX(1); }
.site-nav .current-menu-item > a{ color: var(--hb-burgundy); }

.header-actions{ display: flex; align-items: center; gap: 18px; }
.header-search-toggle, .menu-toggle{
  background: none; border: 1px solid var(--hb-line); border-radius: var(--hb-radius);
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--hb-ink);
}
.header-search-toggle svg, .menu-toggle svg{ width: 18px; height: 18px; }
.menu-toggle{ display: inline-flex; }

@media (min-width: 900px){
  .site-nav{ display: block; }
  .menu-toggle{ display: none; }
}

.header-search{
  display: none; border-top: 1px solid var(--hb-line); background: var(--hb-parchment);
}
.header-search.is-open{ display: block; }
.header-search form{ display: flex; padding: 16px 0; gap: 10px; }
.header-search input[type="search"]{
  flex: 1; border: 1px solid var(--hb-line); background: #fff; padding: 10px 14px;
  font-family: var(--hb-font-body); font-size: 15px; color: var(--hb-ink); border-radius: var(--hb-radius);
}
.header-search button{
  border: 1px solid var(--hb-ink); background: var(--hb-ink); color: var(--hb-parchment-soft);
  padding: 0 18px; cursor: pointer; border-radius: var(--hb-radius); font-family: var(--hb-font-body);
}

.mobile-nav{
  display: none; border-top: 1px solid var(--hb-line); background: var(--hb-parchment-soft);
}
.mobile-nav.is-open{ display: block; }
.mobile-nav ul{ list-style: none; margin: 0; padding: 10px 0; }
.mobile-nav a{
  display: block; padding: 12px 0; border-bottom: 1px solid var(--hb-line-soft);
  color: var(--hb-ink-soft); text-decoration: none; font-size: 16px;
}
@media (min-width: 900px){ .mobile-nav{ display: none !important; } }

/* =========================================================
   4. HERO
   ========================================================= */
.hero{
  position: relative;
  background: var(--hb-ink);
  color: var(--hb-parchment-soft);
  overflow: hidden;
}
.hero__inner{
  position: relative; z-index: 2;
  padding: 84px 28px 92px;
  max-width: var(--hb-max); margin: 0 auto;
  text-align: center;
}
.hero__kicker{
  font-family: var(--hb-font-body); font-style: italic; font-size: 15px;
  color: var(--hb-parchment-deep); opacity: 0.85; margin-bottom: 18px;
}
.hero__title{
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  color: var(--hb-parchment-soft);
  margin-bottom: 20px;
  max-width: 16ch; margin-left: auto; margin-right: auto;
}
.hero__deck{
  font-size: 18px; color: var(--hb-parchment-deep); max-width: 52ch; margin: 0 auto 34px;
}
.hero__ornament{ color: var(--hb-brass); margin: 0 auto 30px; width: 60px; }
.hero__cta{ display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .btn{ }
.hero-etch{
  position: absolute; inset: 0; z-index: 1; opacity: 0.14; pointer-events: none;
}

/* Buttons */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--hb-font-body); font-size: 15px; letter-spacing: 0.02em;
  padding: 13px 26px; border-radius: var(--hb-radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--brass{ background: var(--hb-brass); color: var(--hb-ink); }
.btn--brass:hover{ background: var(--hb-brass-deep); color: #fff; }
.btn--outline{ border-color: rgba(248,243,231,0.5); color: var(--hb-parchment-soft); }
.btn--outline:hover{ border-color: var(--hb-parchment-soft); background: rgba(248,243,231,0.08); }
.btn--ink{ background: var(--hb-ink); color: var(--hb-parchment-soft); }
.btn--ink:hover{ background: var(--hb-ink-soft); }

/* =========================================================
   5. FEATURED STRIP (latest entry)
   ========================================================= */
.featured{
  padding: 60px 0 10px;
}
.featured__label{
  font-style: italic; color: var(--hb-ink-faint); font-size: 14px; margin-bottom: 18px;
}
.featured__card{
  display: grid; grid-template-columns: 1fr; gap: 26px;
  border: 1px solid var(--hb-line);
  background: var(--hb-parchment-soft);
}
@media (min-width: 780px){
  .featured__card{ grid-template-columns: 1.05fr 1fr; align-items: stretch; }
}
.featured__media{ overflow: hidden; background: var(--hb-parchment-deep); }
.featured__media img{ width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.featured__body{ padding: 34px 34px 34px 0; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 779px){ .featured__body{ padding: 8px 26px 30px; } }
.featured__meta{ font-size: 13.5px; color: var(--hb-ink-faint); margin-bottom: 10px; }
.featured__meta a{ color: var(--hb-ink-faint); text-decoration: none; }
.featured__title{ font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.featured__title a{ color: var(--hb-ink); text-decoration: none; }
.featured__excerpt{ color: var(--hb-ink-soft); }
.featured__readmore{ font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--hb-brass); padding-bottom: 2px; align-self: flex-start; }

/* =========================================================
   6. LEDGER — category index & post list (no card grid)
   ========================================================= */
.ledger{ padding: 54px 0 70px; }
.ledger__head{ display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 8px; flex-wrap: wrap; }
.ledger__title{ font-size: clamp(1.6rem, 2.4vw, 2rem); }
.ledger__sub{ color: var(--hb-ink-faint); font-style: italic; font-size: 14.5px; }

.ledger-list{ list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hb-line); }
.ledger-row{
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--hb-line);
}
.ledger-row__mark{ color: var(--hb-brass); width: 24px; height: 24px; }
.ledger-row__title{ font-family: var(--hb-font-display); font-size: 18px; }
.ledger-row__title a{ color: var(--hb-ink); text-decoration: none; }
.ledger-row__title a:hover{ color: var(--hb-burgundy); }
.ledger-row__count{ color: var(--hb-ink-faint); font-size: 13.5px; white-space: nowrap; }

/* Post list (archives, search) */
.post-list{ list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hb-line); }
.post-row{
  display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--hb-line);
}
.post-row__thumb{ background: var(--hb-parchment-deep); aspect-ratio: 4/3; overflow: hidden; }
.post-row__thumb img{ width: 100%; height: 100%; object-fit: cover; }
.post-row__meta{ font-size: 13px; color: var(--hb-ink-faint); margin-bottom: 6px; }
.post-row__title{ font-size: 19px; margin-bottom: 8px; }
.post-row__title a{ color: var(--hb-ink); text-decoration: none; }
.post-row__excerpt{ color: var(--hb-ink-soft); font-size: 15.5px; margin: 0; }
@media (max-width: 560px){ .post-row{ grid-template-columns: 1fr; } .post-row__thumb{ aspect-ratio: 16/9; } }

/* =========================================================
   7. SINGLE POST / PAGE
   ========================================================= */
.entry{ padding: 56px 0 80px; }
.entry__header{ max-width: var(--hb-max-narrow); margin: 0 auto 34px; text-align: center; }
.entry__meta{ font-size: 13.5px; color: var(--hb-ink-faint); margin-bottom: 16px; }
.entry__meta a{ color: var(--hb-ink-faint); text-decoration: none; }
.entry__title{ font-size: clamp(2rem, 4vw, 2.9rem); }
.entry__lede{ font-size: 18px; color: var(--hb-ink-soft); font-style: italic; margin-top: 14px; }
.entry__thumb{ max-width: var(--hb-max); margin: 0 auto 40px; }
.entry__thumb img{ width: 100%; }
.entry__content{ max-width: var(--hb-max-narrow); margin: 0 auto; font-size: 18px; }
.entry__content p{ margin-bottom: 1.3em; }
.entry__content h2{ font-size: 1.6rem; margin-top: 1.7em; }
.entry__content h3{ font-size: 1.3rem; margin-top: 1.5em; }
.entry__content blockquote{
  margin: 2em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--hb-brass);
  font-family: var(--hb-font-display); font-style: italic; font-size: 1.25em; color: var(--hb-ink-soft);
}
.entry__content img{ margin: 1.6em 0; }
.entry__content figcaption{ font-size: 14px; color: var(--hb-ink-faint); text-align: center; margin-top: 8px; }
.entry__content a{ text-decoration-color: var(--hb-brass); }
.entry__tags{ max-width: var(--hb-max-narrow); margin: 2.4em auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.entry__tags a{
  font-size: 13px; color: var(--hb-ink-soft); border: 1px solid var(--hb-line); padding: 5px 12px;
  text-decoration: none; border-radius: 999px;
}

/* Page templates: Author / Disclaimer */
.page-hero{ background: var(--hb-parchment-deep); border-bottom: 1px solid var(--hb-line); padding: 64px 0; text-align: center; }
.page-hero__title{ font-size: clamp(2rem, 4vw, 2.7rem); }
.page-hero__sub{ color: var(--hb-ink-soft); font-style: italic; max-width: 52ch; margin: 14px auto 0; }

.author-page{ padding: 60px 0 80px; }
.author-card{
  display: grid; grid-template-columns: 1fr; gap: 34px; max-width: var(--hb-max-narrow); margin: 0 auto 50px;
  align-items: center;
}
@media (min-width: 640px){ .author-card{ grid-template-columns: 200px 1fr; text-align: left; } }
.author-card{ text-align: center; }
.author-card__portrait{
  width: 180px; height: 180px; border-radius: 50%; overflow: hidden; margin: 0 auto;
  border: 3px solid var(--hb-brass); background: var(--hb-parchment-deep);
}
.author-card__portrait img{ width: 100%; height: 100%; object-fit: cover; }
.author-card__name{ font-size: 1.6rem; margin-bottom: 6px; }
.author-card__role{ color: var(--hb-brass-deep); font-style: italic; margin-bottom: 14px; font-size: 15px; }
.author-card__bio{ color: var(--hb-ink-soft); }

.timeline{ max-width: var(--hb-max-narrow); margin: 0 auto; list-style: none; padding: 0; border-top: 1px solid var(--hb-line); }
.timeline li{ display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--hb-line); }
.timeline .timeline__year{ font-family: var(--hb-font-display); color: var(--hb-brass-deep); font-size: 15px; }
.timeline .timeline__text{ color: var(--hb-ink-soft); }

/* Optional milestone list authors can add via a Custom HTML block:
   <ul class="hb-milestones"><li data-year="2019">…</li></ul> */
ul.hb-milestones{ max-width: var(--hb-max-narrow); margin: 40px auto 0; list-style: none; padding: 0; border-top: 1px solid var(--hb-line); }
ul.hb-milestones li{ position: relative; padding: 16px 0 16px 96px; border-bottom: 1px solid var(--hb-line); color: var(--hb-ink-soft); min-height: 1em; }
ul.hb-milestones li::before{
  content: attr(data-year); position: absolute; left: 0; top: 16px;
  font-family: var(--hb-font-display); color: var(--hb-brass-deep); font-size: 15px;
}

.disclaimer-page{ padding: 56px 0 90px; }
.disclaimer-page .entry__content{ font-size: 17px; }
.disclaimer-page .entry__content h2{ font-size: 1.35rem; }

/* =========================================================
   8. SIDEBAR / WIDGETS
   ========================================================= */
.widget{ margin-bottom: 44px; }
.widget-title{ font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hb-line); }
.widget ul{ list-style: none; margin: 0; padding: 0; }
.widget li{ padding: 8px 0; border-bottom: 1px solid var(--hb-line-soft); font-size: 14.5px; }
.widget a{ color: var(--hb-ink-soft); text-decoration: none; }
.widget a:hover{ color: var(--hb-burgundy); }

/* =========================================================
   9. SOCIAL ICONS
   ========================================================= */
.social-icons{ display: flex; align-items: center; gap: 12px; }
.social-icons a{
  width: 36px; height: 36px; border: 1px solid var(--hb-line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--hb-ink-soft); text-decoration: none; transition: all .15s ease;
}
.social-icons a:hover{ background: var(--hb-brass); border-color: var(--hb-brass); color: var(--hb-ink); }
.social-icons svg{ width: 16px; height: 16px; }
.site-header .social-icons{ display: none; }
@media (min-width: 1080px){ .site-header .social-icons{ display: flex; } }
.site-footer .social-icons a{ border-color: rgba(248,243,231,0.25); color: var(--hb-parchment-deep); }
.site-footer .social-icons a:hover{ background: var(--hb-brass); border-color: var(--hb-brass); color: var(--hb-ink); }

/* =========================================================
   10. FOOTER
   ========================================================= */
.site-footer{ background: var(--hb-ink); color: var(--hb-parchment-deep); padding-top: 64px; }
.site-footer a{ color: var(--hb-parchment-deep); }
.site-footer a:hover{ color: var(--hb-brass); }
.footer-grid{ display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(248,243,231,0.12); }
@media (min-width: 780px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .hb-emblem-word{ color: var(--hb-parchment-soft); }
.footer-brand .hb-emblem-word small{ color: var(--hb-parchment-deep); opacity: 0.75; }
.footer-brand p{ color: var(--hb-parchment-deep); opacity: 0.85; max-width: 40ch; margin: 16px 0 22px; font-size: 15px; }
.footer-col h3{ font-family: var(--hb-font-body); font-style: italic; font-weight: 400; font-size: 14px; letter-spacing: 0.03em; color: var(--hb-parchment-deep); opacity: 0.75; margin-bottom: 16px; }
.footer-col ul{ list-style: none; margin: 0; padding: 0; }
.footer-col li{ margin-bottom: 10px; font-size: 14.5px; }
.footer-col a{ text-decoration: none; }
.footer-bottom{ display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 26px 0; font-size: 13.5px; color: var(--hb-parchment-deep); opacity: 0.75; }
.footer-bottom__links{ display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom__links a{ text-decoration: none; opacity: 0.9; }
.footer-bottom__links button.linklike{
  background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; opacity: 0.9;
}

/* =========================================================
   11. 404
   ========================================================= */
.error404-hero{ padding: 110px 0; text-align: center; }
.error404-hero .hb-emblem{ justify-content: center; margin-bottom: 28px; }
.error404-hero h1{ font-size: clamp(2.2rem, 5vw, 3.2rem); }

/* =========================================================
   12. COMMENTS
   ========================================================= */
.comments-area{ max-width: var(--hb-max-narrow); margin: 60px auto 0; }
.comments-title{ font-size: 1.4rem; margin-bottom: 26px; }
.comment-list{ list-style: none; margin: 0; padding: 0; }
.comment-body{ padding: 22px 0; border-top: 1px solid var(--hb-line); }
.comment-author{ font-family: var(--hb-font-display); font-size: 15px; }
.comment-metadata{ font-size: 12.5px; color: var(--hb-ink-faint); margin-bottom: 8px; }
.comment-form input, .comment-form textarea{
  width: 100%; border: 1px solid var(--hb-line); padding: 11px 14px; font-family: var(--hb-font-body);
  border-radius: var(--hb-radius); margin-bottom: 14px; background: #fff;
}
.comment-form textarea{ min-height: 130px; }
.comment-form .form-submit input{ width: auto; background: var(--hb-ink); color: var(--hb-parchment-soft); cursor: pointer; border-color: var(--hb-ink); }

/* =========================================================
   13. COOKIE CONSENT — banner + preferences modal
   ========================================================= */
.hb-cookie-banner{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--hb-parchment-soft);
  border-top: 3px solid var(--hb-brass);
  box-shadow: 0 -6px 24px rgba(33,28,22,0.18);
  padding: 22px 0;
  transform: translateY(120%);
  transition: transform .35s ease;
}
.hb-cookie-banner.is-visible{ transform: translateY(0); }
.hb-cookie-banner__inner{
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; justify-content: space-between;
}
.hb-cookie-banner__text{ flex: 1 1 380px; font-size: 14.5px; color: var(--hb-ink-soft); }
.hb-cookie-banner__text strong{ color: var(--hb-ink); font-family: var(--hb-font-display); font-weight: 600; }
.hb-cookie-banner__actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.hb-cookie-banner__actions .btn{ padding: 11px 18px; font-size: 14px; }

.hb-modal{
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.hb-modal.is-open{ display: flex; }
.hb-modal__overlay{ position: absolute; inset: 0; background: rgba(33,28,22,0.55); }
.hb-modal__panel{
  position: relative; background: var(--hb-parchment-soft); max-width: 560px; width: 100%;
  max-height: 84vh; overflow-y: auto; border: 1px solid var(--hb-line); box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  padding: 34px;
}
.hb-modal__close{
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--hb-line); background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.hb-modal__close svg{ width: 15px; height: 15px; }
.hb-modal h2{ font-size: 1.4rem; margin-bottom: 8px; padding-right: 30px; }
.hb-modal__intro{ color: var(--hb-ink-soft); font-size: 14.5px; margin-bottom: 24px; }
.cookie-category{ border-top: 1px solid var(--hb-line); padding: 18px 0; }
.cookie-category:last-of-type{ border-bottom: 1px solid var(--hb-line); }
.cookie-category__row{ display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.cookie-category__name{ font-family: var(--hb-font-display); font-size: 16px; }
.cookie-category__desc{ font-size: 13.5px; color: var(--hb-ink-faint); margin: 0; }
.cookie-category__locked{ font-size: 12px; color: var(--hb-brass-deep); font-style: italic; }

/* toggle switch */
.hb-switch{ position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.hb-switch input{ opacity: 0; width: 0; height: 0; }
.hb-switch__track{
  position: absolute; inset: 0; background: var(--hb-line); border-radius: 999px; cursor: pointer; transition: background-color .15s ease;
}
.hb-switch__track::before{
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%;
  transition: transform .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.hb-switch input:checked + .hb-switch__track{ background: var(--hb-verdigris); }
.hb-switch input:checked + .hb-switch__track::before{ transform: translateX(18px); }
.hb-switch input:disabled + .hb-switch__track{ background: var(--hb-brass); cursor: not-allowed; opacity: 0.7; }

.hb-modal__footer{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hb-modal__footer .btn{ padding: 11px 18px; font-size: 14px; }

/* Pagination */
.hb-pagination{ margin-top: 40px; }
.hb-pagination .nav-links{ display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.hb-pagination a, .hb-pagination span{
  display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--hb-line);
  color: var(--hb-ink-soft); text-decoration: none; font-size: 14px; border-radius: var(--hb-radius);
}
.hb-pagination a:hover{ border-color: var(--hb-brass); color: var(--hb-ink); }
.hb-pagination .current{ background: var(--hb-ink); color: var(--hb-parchment-soft); border-color: var(--hb-ink); }
.hb-pagination .page-numbers.dots{ border: none; }

/* =========================================================
   14. UTILITIES
   ========================================================= */
.mt-0{ margin-top: 0; }
.mb-0{ margin-bottom: 0; }
