@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root{
  --bg:#fcfaf8;
  --bg-elevated:#ffffff;
  --surface:#ffffff;
  --surface-2:#f7f3f0;
  --surface-3:#f1ebe7;
  --text:#181412;
  --text-soft:#2a2320;
  --muted:#6c625d;
  --line:#e7ddd6;
  --line-strong:#d9ccc3;

  --accent:#bf4b5d;
  --accent-2:#a93e4f;
  --accent-soft:#f7dde2;
  --accent-warm:#fff3f5;

  --chip:#ffffff;
  --chip-strong:#f7f1ed;
  --success:#2f7b5e;

  --shadow-xs:0 4px 10px rgba(24,20,18,.04);
  --shadow-soft:0 10px 24px rgba(24,20,18,.06);
  --shadow:0 18px 46px rgba(24,20,18,.09);
  --shadow-strong:0 28px 72px rgba(24,20,18,.12);

  --radius-xl:30px;
  --radius-lg:24px;
  --radius-md:18px;
  --radius-sm:14px;
  --radius-xs:12px;
  --pill:999px;

  --max:1180px;
  --max-narrow:820px;

  --header-height:78px;
  --tap:46px;

  --fs-hero:clamp(2.35rem, 5vw, 4.7rem);
  --fs-title:clamp(1.95rem, 4vw, 3.25rem);
  --fs-h2:clamp(1.45rem, 2.5vw, 2rem);
  --fs-body:1.02rem;

  --transition:180ms ease;
}

html[data-theme="dark"]{
  --bg:#171413;
  --bg-elevated:#1d1918;
  --surface:#211c1a;
  --surface-2:#292220;
  --surface-3:#322927;
  --text:#f7f2ef;
  --text-soft:#efe8e3;
  --muted:#c2b7b0;
  --line:#3a312e;
  --line-strong:#4a3e39;

  --accent:#d15f72;
  --accent-2:#e17485;
  --accent-soft:#41242a;
  --accent-warm:#2a1e21;

  --chip:#231e1c;
  --chip-strong:#2c2523;
  --success:#77d1aa;

  --shadow-xs:0 4px 10px rgba(0,0,0,.18);
  --shadow-soft:0 10px 28px rgba(0,0,0,.22);
  --shadow:0 18px 46px rgba(0,0,0,.28);
  --shadow-strong:0 30px 80px rgba(0,0,0,.34);
}

*,
*::before,
*::after{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:"Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:var(--fs-body);
  line-height:1.7;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(191,75,93,.06), transparent 28%),
    radial-gradient(circle at right top, rgba(191,75,93,.045), transparent 24%),
    var(--bg);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

html[data-theme="dark"] body{
  background:
    radial-gradient(circle at top left, rgba(209,95,114,.10), transparent 26%),
    radial-gradient(circle at right top, rgba(209,95,114,.08), transparent 22%),
    var(--bg);
}

a{
  color:inherit;
  text-decoration:none;
}

img,
svg{
  display:block;
  max-width:100%;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  border:0;
}

::selection{
  background:color-mix(in srgb, var(--accent) 22%, transparent);
}

:focus-visible{
  outline:3px solid color-mix(in srgb, var(--accent) 26%, transparent);
  outline-offset:3px;
}

.container{
  width:min(calc(100% - 32px), var(--max));
  margin:0 auto;
}

.narrow{
  width:min(calc(100% - 32px), var(--max-narrow));
  margin:0 auto;
}

.container-narrow{
  width:min(calc(100% - 32px), 1120px);
  margin:0 auto;
}

.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:-9999px;
  top:auto;
}

.skip-link:focus{
  left:16px;
  top:14px;
  z-index:100;
  padding:12px 16px;
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow-soft);
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  background:color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter:blur(16px) saturate(1.15);
  -webkit-backdrop-filter:blur(16px) saturate(1.15);
  border-bottom:1px solid color-mix(in srgb, var(--line) 86%, transparent);
}

.header-row{
  min-height:var(--header-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  font-weight:800;
  letter-spacing:-.04em;
}

.brand img{
  width:42px;
  height:42px;
  border-radius:12px;
}

.brand .label{
  display:flex;
  flex-direction:column;
  line-height:1;
  min-width:0;
}

.brand .label span{
  font-family:"Outfit","Plus Jakarta Sans",sans-serif;
  font-size:1.08rem;
}

.brand small{
  margin-top:5px;
  color:var(--muted);
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.01em;
}

.nav-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.nav-links a{
  min-height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  border-radius:var(--pill);
  color:var(--text-soft);
  font-size:.94rem;
  font-weight:700;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"]{
  color:var(--text);
  background:var(--surface);
  box-shadow:var(--shadow-xs);
}

.icon-btn,
.menu-btn,
.lang-switch a{
  min-width:var(--tap);
  min-height:var(--tap);
  padding:0 14px;
  border:1px solid var(--line);
  background:color-mix(in srgb, var(--surface) 92%, transparent);
  color:var(--text);
  border-radius:var(--pill);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-weight:800;
  box-shadow:var(--shadow-xs);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.icon-btn{
  padding:0;
}

.icon-btn:hover,
.menu-btn:hover,
.lang-switch a:hover{
  transform:translateY(-1px);
  border-color:var(--line-strong);
  box-shadow:var(--shadow-soft);
}

.menu-btn{
  display:none;
}

.lang-switch{
  display:flex;
  gap:8px;
}

.lang-switch a.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
  box-shadow:0 14px 30px rgba(191,75,93,.22);
}

.mobile-panel{
  display:none;
  padding:0 0 14px;
}

.mobile-panel.open{
  display:block;
}

.mobile-panel .mobile-panel-box{
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
}

.mobile-panel nav{
  display:grid;
  gap:6px;
}

.mobile-panel a{
  min-height:46px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  border-radius:var(--radius-sm);
  font-weight:700;
  color:var(--text-soft);
}

.mobile-panel a:hover,
.mobile-panel a[aria-current="page"]{
  background:var(--surface-2);
  color:var(--text);
}

/* Hero */
.hero{
  padding:46px 0 24px;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.12fr) minmax(300px, .88fr);
  gap:26px;
  align-items:center;
}

.eyebrow,
.post-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 14px;
  border:1px solid var(--line);
  background:color-mix(in srgb, var(--surface) 90%, transparent);
  border-radius:var(--pill);
  color:var(--text-soft);
  font-weight:800;
  font-size:.84rem;
  box-shadow:var(--shadow-xs);
}

.hero h1,
.entry-title,
.section-head h1,
.section-head h2,
.card h3,
.empty-state h2,
.taxonomy-copy strong{
  font-family:"Outfit","Plus Jakarta Sans",sans-serif;
}

.hero h1,
.entry-title{
  margin:16px 0 14px;
  letter-spacing:-.065em;
  line-height:.96;
  font-weight:800;
}

.hero h1{
  font-size:var(--fs-hero);
  max-width:12ch;
}

.hero p{
  margin:0;
  max-width:62ch;
  font-size:1.06rem;
  color:var(--muted);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.button,
.official-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:52px;
  padding:0 18px;
  border-radius:16px;
  font-weight:800;
  border:1px solid transparent;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.button:hover,
.official-link:hover{
  transform:translateY(-1px);
}

.button.solid,
.official-link{
  background:linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, white 8%), var(--accent));
  color:#fff;
  box-shadow:0 16px 34px rgba(191,75,93,.20);
}

.button.solid:hover,
.official-link:hover{
  background:linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 88%, white 12%), var(--accent-2));
}

.button.secondary,
.secondary-official-link{
  background:var(--surface);
  color:var(--text);
  border-color:var(--line);
  box-shadow:var(--shadow-xs);
}

.button.secondary:hover,
.secondary-official-link:hover{
  border-color:var(--line-strong);
  background:var(--surface-2);
}

.hero-side{
  position:relative;
  padding:26px;
  border:1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, white 4%), var(--surface));
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.hero-side-highlight::after{
  content:"";
  position:absolute;
  right:-56px;
  bottom:-72px;
  width:190px;
  height:190px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(191,75,93,.14), transparent 68%);
  pointer-events:none;
}

.hero-side p{
  position:relative;
  z-index:1;
  font-size:1rem;
  color:var(--text-soft);
}

.meta-line{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 0;
}

.chip,
.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:0 12px;
  border-radius:var(--pill);
  background:var(--chip);
  border:1px solid var(--line);
  color:var(--text-soft);
  font-size:.84rem;
  font-weight:800;
  box-shadow:var(--shadow-xs);
}

/* Generic layout */
.section{
  padding:28px 0 46px;
}

.section-head{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
}

.section-head h1,
.section-head h2{
  margin:0;
  font-size:var(--fs-title);
  letter-spacing:-.06em;
  line-height:.98;
  font-weight:800;
}

.section-head h2{
  font-size:var(--fs-h2);
}

.section-head p{
  margin:0;
  max-width:68ch;
  color:var(--muted);
  font-size:1.03rem;
  line-height:1.78;
}

/* Cards */
.cards-grid,
.home-cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
  content-visibility:auto;
  contain-intrinsic-size:800px;
}

.card{
  display:flex;
  flex-direction:column;
  min-height:100%;
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, white 2%), var(--surface));
  border:1px solid var(--line);
  border-radius:26px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.card:hover{
  transform:translateY(-4px);
  border-color:color-mix(in srgb, var(--accent) 24%, var(--line));
  box-shadow:var(--shadow);
}

.card-media{
  display:block;
  padding:0;
  background:transparent;
}

.card-picture{
  display:block;
  border-radius:22px 22px 0 0;
  overflow:hidden;
  background:transparent;
}

.card-picture img{
  width:100%;
  height:auto;
  max-height:320px;
  object-fit:contain;
  background:transparent;
}

.card-body{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:20px 20px 22px;
}

.card-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.card-eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:var(--pill);
  background:var(--accent-soft);
  color:var(--accent);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.02em;
}

.card h3{
  margin:0;
  font-size:1.24rem;
  line-height:1.1;
  letter-spacing:-.04em;
  font-weight:800;
}

.card h3 a{
  color:var(--text);
  transition:color var(--transition);
}

.card h3 a:hover{
  color:var(--accent);
}

.card p{
  margin:0;
  color:var(--muted);
  font-size:.98rem;
  line-height:1.72;
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:2px;
}

.card .tag{
  background:var(--chip-strong);
  border-color:color-mix(in srgb, var(--line) 90%, white 10%);
  font-weight:700;
}

.card-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:auto;
  color:var(--accent);
  font-weight:800;
  transition:color var(--transition), transform var(--transition);
}

.card-link:hover{
  color:var(--accent-2);
}

.card-link.button.solid{
  width:100%;
  min-height:48px;
  margin-top:8px;
  border-radius:14px;
  color:#fff;
}

/* Page / post */
.page-wrap{
  padding:36px 0 52px;
}

.page-hero{
  margin-bottom:10px;
}

.crumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px;
  color:var(--muted);
  font-size:.92rem;
}

.crumbs a{
  color:var(--muted);
  transition:color var(--transition);
}

.crumbs a:hover{
  color:var(--accent);
}

.crumbs span.sep{
  opacity:.55;
}

.post-shell{
  max-width:960px;
  margin:0 auto;
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, white 2%), var(--surface));
  border:1px solid var(--line);
  border-radius:34px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.post-header{
  padding:38px 36px 8px;
}

.post-header-inner{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 320px;
  gap:30px;
  align-items:center;
}

.post-tags{
  margin-top:22px;
  display:none !important;
}

.entry-title{
  font-size:clamp(2.25rem, 5vw, 4rem);
}

.entry-summary{
  margin:0;
  max-width:64ch;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.76;
}

.post-cta-wrap{
  width:min(100%, 320px);
  margin:8px auto 0;
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  justify-content:center;
  justify-self:center;
  align-self:center;
  text-align:center;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:var(--shadow-soft);
}

.post-cta-wrap .official-link,
.post-cta-wrap .secondary-official-link{
  width:100%;
  min-height:56px;
  justify-content:center;
  text-align:center;
  font-size:1rem;
}

.post-cta-wrap .official-link,
.mobile-post-cta .official-link,
.card-link.button.solid{
  color:#fff !important;
}

.post-cta-wrap .secondary-official-link,
.mobile-post-cta .secondary-official-link{
  color:var(--text) !important;
}

.post-cta-note{
  display:none;
}

.mobile-post-cta{
  display:none;
}

.entry-figure{
  margin:0;
  padding:12px 36px 18px;
  background:transparent;
  border:0 !important;
  box-shadow:none !important;
}

.entry-picture{
  display:block;
  overflow:hidden;
  border-radius:26px;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

.entry-picture img{
  width:100%;
  height:auto;
  max-height:860px;
  object-fit:contain;
  margin:0 auto;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

.entry-figure figcaption{
  margin-top:14px;
  color:var(--muted);
  font-size:.94rem;
}

.post-body{
  padding:18px 36px 50px;
}

.notice{
  margin:0 0 24px;
  padding:15px 16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--surface-2);
  font-weight:600;
  color:var(--text-soft);
}

.notice.ended{
  background:#fff1ef;
  border-color:#f2c7c2;
  color:#7e2d36;
}

html[data-theme="dark"] .notice.ended{
  background:#40272a;
  border-color:#714147;
  color:#ffd0ca;
}

.post-meta-grid{
  display:none;
}

.key{
  padding:16px 18px;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:18px;
}

.key strong{
  display:block;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
}

.key span{
  display:block;
  margin-top:8px;
  font-weight:800;
  line-height:1.4;
}

.post-section{
  padding:58px 0;
  border-top:1px solid color-mix(in srgb, var(--line) 84%, transparent);
}

.post-section:first-of-type{
  padding-top:10px;
  border-top:0;
}

.post-section h2{
  margin:0 0 18px;
  font-size:clamp(1.38rem, 2.4vw, 1.86rem);
  letter-spacing:-.05em;
  line-height:1.05;
  font-weight:800;
}

.post-section p,
.post-section li{
  color:var(--text-soft);
  font-size:1.04rem;
  line-height:1.82;
}

.post-section p{
  margin:0;
}

.post-body .post-section p + p{
  margin-top:12px;
}

.post-section ul,
.post-section ol{
  margin:8px 0 0;
  padding-left:20px;
}

.post-section li{
  padding-left:4px;
}

.post-section li + li{
  margin-top:10px;
}

.post-body a,
.post-section a,
.list-item span a{
  color:var(--accent);
  font-weight:800;
  transition:color var(--transition), border-color var(--transition);
}

.post-body a:hover,
.post-section a:hover,
.list-item span a:hover{
  color:var(--accent-2);
}

/* FAQ */
.faq-list{
  display:grid;
  gap:14px;
}

.faq-list details{
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  padding:16px 18px;
  box-shadow:var(--shadow-xs);
}

.faq-list summary{
  cursor:pointer;
  list-style:none;
  font-weight:800;
  color:var(--text);
}

.faq-list summary::-webkit-details-marker{
  display:none;
}

.faq-list details p{
  margin-top:12px !important;
}

/* Listings / compact lists */
.list-compact,
.guide-list{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  content-visibility:auto;
  contain-intrinsic-size:800px;
}

.list-item,
.guide-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--surface);
  color:var(--text);
  box-shadow:var(--shadow-xs);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.list-item:hover,
.guide-card:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb, var(--accent) 22%, var(--line));
  box-shadow:var(--shadow-soft);
}

.list-item strong,
.guide-card strong{
  display:block;
  font-size:1.04rem;
  line-height:1.36;
  letter-spacing:-.02em;
}

.list-item span{
  display:block;
  color:var(--muted);
  margin-top:3px;
}

.post-data .list-item:has(span:empty){
  display:none;
}

.guide-card span{
  color:var(--accent);
  font-weight:800;
}

.empty-state{
  padding:30px 22px;
  border:1px dashed var(--line-strong);
  border-radius:24px;
  background:var(--surface);
  color:var(--muted);
}

.empty-state h2{
  margin:0 0 10px;
  color:var(--text);
  font-size:1.35rem;
  letter-spacing:-.03em;
}

/* Taxonomy */
.taxonomy-item{
  display:block;
  padding:18px 20px;
  border-radius:24px;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow-xs);
}

.taxonomy-mark{
  display:none !important;
}

.taxonomy-copy{
  display:block;
}

.taxonomy-copy strong{
  display:block;
  font-size:1.05rem;
  line-height:1.18;
  letter-spacing:-.02em;
  font-weight:800;
}

.taxonomy-copy span{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:.95rem;
}

/* Home */
.home-intro,
.listing-intro{
  padding-top:34px;
  padding-bottom:14px;
}

.home-intro .container,
.listing-intro .container{
  display:block;
}

.home-intro h1,
.listing-intro h1{
  margin:0 0 14px;
  max-width:18ch;
  font-size:clamp(2.25rem, 4.8vw, 3.6rem);
  line-height:.98;
  letter-spacing:-.055em;
  font-weight:800;
  color:var(--text);
}

.home-lede,
.listing-intro .home-lede{
  max-width:70ch;
  margin:0;
  color:var(--muted);
  font-size:1rem;
  line-height:1.78;
}

.home-directory{
  padding-top:10px;
}

.home-toolbar{
  display:grid;
  grid-template-columns:minmax(180px, 240px) 1fr;
  gap:12px;
  align-items:end;
  margin:20px 0 26px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, white 2%), var(--surface));
  box-shadow:var(--shadow-xs);
}

.filter-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.filter-field label{
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-soft);
}

.filter-field select,
.filter-field input{
  width:100%;
  height:50px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--bg-elevated);
  color:var(--text);
  outline:none;
  transition:border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.filter-field select:focus,
.filter-field input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(191,75,93,.12);
}

.results-meta{
  margin:0 0 14px;
  color:var(--text-soft);
  font-size:.96rem;
}

.pagination{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:28px;
}

.page-btn{
  min-width:44px;
  height:44px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  box-shadow:var(--shadow-xs);
  transition:
    transform var(--transition),
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}

.page-btn:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:var(--accent);
  color:var(--accent);
}

.page-btn.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
  box-shadow:0 14px 28px rgba(191,75,93,.18);
}

.page-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

/* Footer */
.site-footer{
  margin-top:16px;
  padding:30px 0 40px;
  border-top:1px solid color-mix(in srgb, var(--line) 88%, transparent);
}

.footer-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr .85fr;
  gap:24px;
  align-items:start;
}

.footer-brand{
  display:inline-flex;
}

.footer-copy{
  margin:12px 0 0;
  max-width:56ch;
  color:var(--muted);
  font-size:.96rem;
}

.footer-links{
  display:grid;
  gap:10px;
  align-content:start;
}

.footer-links a{
  color:var(--muted);
  transition:color var(--transition);
}

.footer-links a:hover{
  color:var(--text);
}

/* Performance niceties */
.cards-grid,
.list-compact,
.guide-list{
  will-change:auto;
}

/* Dark mode specific refinements */
html[data-theme="dark"] .site-header{
  background:rgba(23,20,19,.82);
}

html[data-theme="dark"] .post-shell,
html[data-theme="dark"] .card,
html[data-theme="dark"] .hero-side,
html[data-theme="dark"] .post-cta-wrap,
html[data-theme="dark"] .faq-list details,
html[data-theme="dark"] .list-item,
html[data-theme="dark"] .guide-card,
html[data-theme="dark"] .key,
html[data-theme="dark"] .taxonomy-item,
html[data-theme="dark"] .home-toolbar,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .filter-field select,
html[data-theme="dark"] .filter-field input,
html[data-theme="dark"] .page-btn{
  background:var(--surface);
  border-color:var(--line);
}

html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .secondary-official-link{
  background:var(--surface-2);
  color:var(--text);
  border-color:var(--line);
}

html[data-theme="dark"] .chip,
html[data-theme="dark"] .tag{
  background:var(--chip);
  color:var(--text);
  border-color:var(--line);
}

html[data-theme="dark"] .card-eyebrow{
  background:rgba(209,95,114,.16);
  color:#ffc0ca;
}

html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .home-lede,
html[data-theme="dark"] .entry-summary,
html[data-theme="dark"] .post-section p,
html[data-theme="dark"] .post-section li,
html[data-theme="dark"] .crumbs,
html[data-theme="dark"] .results-meta,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .footer-copy,
html[data-theme="dark"] .taxonomy-copy span,
html[data-theme="dark"] .list-item span{
  color:var(--muted);
}

html[data-theme="dark"] .card h3 a,
html[data-theme="dark"] .section-head h1,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .entry-title{
  color:var(--text);
}

html[data-theme="dark"] .entry-figure figcaption{
  color:#bdb0a8;
}

html[data-theme="dark"] .page-btn:hover:not(:disabled){
  color:#fff;
}

html[data-theme="dark"] .guide-card span,
html[data-theme="dark"] .card-link,
html[data-theme="dark"] .list-item span a,
html[data-theme="dark"] .post-body a,
html[data-theme="dark"] .post-section a{
  color:#ffb9c4;
}

html[data-theme="dark"] .guide-card:hover,
html[data-theme="dark"] .list-item:hover,
html[data-theme="dark"] .card:hover{
  border-color:rgba(209,95,114,.26);
}

/* Responsive */
@media (max-width:980px){
  .hero-grid,
  .footer-grid,
  .post-header-inner{
    grid-template-columns:1fr;
  }

  .cards-grid,
  .home-cards{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .list-compact,
  .guide-list{
    grid-template-columns:1fr;
  }

  .post-cta-wrap{
    width:100%;
    max-width:100%;
  }
}

@media (max-width:760px){
  .container,
  .narrow,
  .container-narrow{
    width:min(calc(100% - 24px), var(--max));
  }

  .menu-btn{
    display:inline-flex;
  }

  .nav-links{
    display:none;
  }

  .brand img{
    width:36px;
    height:36px;
  }

  .brand small{
    display:none;
  }

  .site-header{
    backdrop-filter:blur(10px) saturate(1.1);
    -webkit-backdrop-filter:blur(10px) saturate(1.1);
  }

  .hero{
    padding:24px 0 16px;
  }

  .hero h1{
    max-width:100%;
    font-size:clamp(2.1rem, 11vw, 3.35rem);
  }

  .hero p{
    font-size:1rem;
    line-height:1.74;
  }

  .hero-actions{
    gap:10px;
  }

  .button,
  .official-link{
    width:100%;
    min-height:50px;
    border-radius:15px;
  }

  .hero-side{
    padding:20px;
    border-radius:24px;
  }

  .hero-side-highlight::after{
    display:none;
  }

  .section{
    padding:22px 0 36px;
  }

  .section-head{
    margin-bottom:22px;
  }

  .section-head h1{
    font-size:clamp(1.95rem, 9vw, 3rem);
    margin-bottom:0;
  }

  .section-head h2{
    font-size:clamp(1.4rem, 6vw, 1.9rem);
  }

  .section-head p{
    font-size:.98rem;
    line-height:1.72;
  }

  .cards-grid,
  .home-cards{
    grid-template-columns:1fr;
    gap:18px;
  }

  .card{
    border-radius:22px;
  }

  .card-body{
    padding:18px;
  }

  .card h3{
    font-size:1.18rem;
  }

  .page-wrap{
    padding:24px 0 38px;
  }

  .post-shell{
    border-radius:26px;
  }

  .post-header{
    padding:24px 18px 8px;
  }

  .entry-title{
    font-size:clamp(2rem, 9.5vw, 3rem);
    line-height:1;
  }

  .entry-summary{
    font-size:1rem;
    line-height:1.72;
  }

  .post-tags{
    display:none !important;
  }

  .post-cta-wrap{
    display:none;
  }

  .mobile-post-cta{
    display:block;
    margin:16px 0 10px;
  }

  .mobile-post-cta .post-cta-wrap{
    display:flex;
    width:min(100%, 360px);
    max-width:100%;
    margin:0 auto;
  }

  .entry-figure{
    padding:8px 18px 12px;
  }

  .entry-picture{
    border-radius:20px;
  }

  .entry-picture img{
    max-height:none;
  }

  .post-body{
    padding:12px 18px 34px;
  }

  .post-section{
    padding:42px 0;
  }

  .post-section:first-of-type{
    padding-top:8px;
  }

  .post-section p,
  .post-section li{
    font-size:1rem;
    line-height:1.76;
  }

  .post-meta-grid{
    grid-template-columns:1fr;
  }

  .home-intro,
  .listing-intro{
    padding-top:22px;
    padding-bottom:10px;
  }

  .home-intro h1,
  .listing-intro h1{
    max-width:100%;
    font-size:clamp(2rem, 10vw, 3rem);
    margin-bottom:10px;
  }

  .home-toolbar{
    grid-template-columns:1fr;
    gap:12px;
    padding:15px;
    border-radius:20px;
    margin:18px 0 22px;
  }

  .filter-field label{
    font-size:.78rem;
  }

  .filter-field select,
  .filter-field input{
    height:50px;
    padding:0 14px;
    border-radius:14px;
    font-size:16px;
  }

  .taxonomy-item{
    padding:16px 18px;
    border-radius:20px;
  }

  .list-item,
  .guide-card{
    padding:16px 18px;
    border-radius:20px;
  }

  .faq-list details{
    padding:15px 16px;
    border-radius:16px;
  }

  .site-footer{
    padding:22px 0 32px;
  }

  .footer-grid{
    grid-template-columns:1fr;
    gap:18px;
  }
}

@media (max-width:520px){
  .header-row{
    gap:10px;
    min-height:70px;
  }

  .brand .label span{
    font-size:1rem;
  }

  .lang-switch{
    gap:6px;
  }

  .lang-switch a{
    min-width:42px;
    min-height:42px;
    padding:0 12px;
  }

  .eyebrow,
  .post-kicker,
  .chip,
  .tag{
    font-size:.8rem;
  }

  .card-link.button.solid{
    min-height:46px;
  }

  .page-btn{
    min-width:42px;
    height:42px;
    border-radius:12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
  }
}

/* --- Mobile header and listing spacing refinements --- */
.card-topline,
.card-eyebrow{
  display:none !important;
}

.listing-intro{
  padding-bottom:8px;
}

.listing-intro .home-lede{
  margin-bottom:10px;
}

.home-directory{
  padding-top:4px;
}

.home-toolbar{
  margin:12px 0 24px;
}

.section,
.home-cards,
.cards-grid,
.list-grid,
.guides-grid,
.taxonomy-grid{
  scroll-margin-top:96px;
}

@media (max-width:760px){
  .site-header .container,
  .site-header .container-narrow,
  .site-header .narrow{
    width:min(calc(100% - 16px), var(--max));
  }

  .site-header{
    overflow-x:clip;
  }

  .header-row{
    min-height:64px;
    gap:8px;
    flex-wrap:nowrap;
  }

  .brand{
    flex:1 1 auto;
    min-width:0;
    gap:10px;
  }

  .brand img{
    width:34px;
    height:34px;
    border-radius:10px;
    flex:0 0 auto;
  }

  .brand .label{
    min-width:0;
  }

  .brand .label span{
    font-size:.98rem;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .nav-wrap{
    flex:0 0 auto;
    gap:6px;
  }

  .lang-switch{
    gap:5px;
    flex-wrap:nowrap;
  }

  .icon-btn,
  .menu-btn,
  .lang-switch a{
    min-width:42px;
    min-height:42px;
    padding:0 12px;
    font-size:.95rem;
    border-radius:999px;
    flex:0 0 auto;
  }

  .menu-btn{
    max-width:92px;
    white-space:nowrap;
  }

  .listing-intro{
    padding-top:18px;
    padding-bottom:6px;
  }

  .listing-intro h1{
    margin-bottom:8px;
  }

  .listing-intro .home-lede{
    margin-bottom:8px;
    line-height:1.65;
  }

  .home-directory{
    padding-top:0;
  }

  .home-toolbar{
    margin:10px 0 20px;
  }
}

@media (max-width:520px){
  .header-row{
    min-height:60px;
    gap:6px;
  }

  .brand{
    gap:8px;
  }

  .brand img{
    width:32px;
    height:32px;
  }

  .brand .label span{
    font-size:.95rem;
  }

  .nav-wrap{
    gap:5px;
  }

  .lang-switch{
    gap:4px;
  }

  .icon-btn,
  .menu-btn,
  .lang-switch a{
    min-width:40px;
    min-height:40px;
    padding:0 10px;
    font-size:.92rem;
  }

  .menu-btn{
    padding:0 12px;
    font-size:.9rem;
  }

  .listing-intro h1{
    margin-bottom:8px;
    font-size:clamp(1.9rem, 9.5vw, 2.8rem);
  }

  .listing-intro .home-lede{
    margin-bottom:6px;
    font-size:.98rem;
  }

  .home-toolbar{
    margin:8px 0 18px;
    padding:14px;
  }
}
@media (max-width: 820px){
  .crumbs{display:none;}
  .site-footer{display:none;}
}
