/*
Theme Name: Business Classy
Theme URI: https://businessclassy.com
Author: Business Classy
Description: Editorial personal-finance & credit-cards theme — monochrome, Salud-inspired design with a high-contrast serif, a modern grotesque body, an ultra-condensed display face, and a unified credit-card corner radius.
Version: 1.1.6
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: business-classy
*/

/* ============================================================
   Business Classy — design system
   Aesthetic adapted from the "Salud" editorial reference:
   warm light-grey canvas, near-black cards, white pills,
   high-contrast serif display + modern grotesque body +
   ultra-condensed heavy display. Unified card radius.
   ============================================================ */

:root {
  /* palette */
  --bg:        #f5f5f5;   /* light canvas */
  --bg-soft:   #ececec;   /* image-placeholder panel */
  --card:      #ffffff;   /* white card surface */
  --ink:       #252525;   /* primary "black" */
  --muted:     #6b685f;   /* secondary text */
  --dark:      #252525;   /* dark surface (banners) */
  --black:     #252525;   /* dark accent (footer, buttons) */
  --cream:     #ffffff;   /* off-white text on dark */
  --cream-dim: #b6b3a9;   /* muted text on dark */
  --line:      rgba(37,37,37,.14);
  --line-soft: rgba(37,37,37,.08);
  --gold:      #d8a23a;   /* restrained accent for stars/ratings */

  /* shape — credit-card radius, applied everywhere */
  --radius:    26px;
  --radius-lg: 34px;
  --radius-sm: 16px;
  --pill:      999px;

  /* type */
  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --cond:  "Anton", "Arial Narrow", sans-serif;

  --maxw: 1560px;          /* wide — header, footer, hero & closing banners */
  --maxw-narrow: 1140px;   /* narrower — every other content block */

  /* reader text-size multiplier (article page) */
  --rt-scale: 1;
}

/* dark ("black") variant — article reader mode, not persisted */
html.theme-dark {
  --bg:        #141311;
  --bg-soft:   #1d1c19;
  --card:      #222120;
  --ink:       #f1efe9;
  --muted:     #9d9a91;
  --dark:      #000000;
  --black:     #000000;
  --cream:     #f4f2ec;
  --cream-dim: #b6b3a9;
  --line:      rgba(244,242,236,.16);
  --line-soft: rgba(244,242,236,.08);
}
html.theme-dark body,
body { transition: background-color .3s ease, color .3s ease; }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 28px; }
/* full-width exceptions: header, footer, hero & closing banners */
.site-header .wrap,
.site-footer .wrap,
.hero .wrap,
.wrap:has(.statement) { max-width: var(--maxw); }

/* ---------- typography helpers ---------- */
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 38px;
}
.section-head > div { display: flex; flex-direction: column; align-items: center; }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 6px 0 0;
}
.section-title em { font-style: normal; }
.section-sub { color: var(--muted); max-width: 52ch; margin: 12px 0 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--pill);
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.link-arrow:hover { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(5px); }
/* keep the in-card "Find out more" hugging left, not stretched full width */
.cc-card .link-arrow { align-self: flex-start; }

/* circular arrow button */
.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--black);
  color: var(--cream);
  border: none;
  flex: none;
  transition: transform .25s ease, background .25s ease;
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { transform: scale(1.06); background: #000; }
.iconbtn.sm { width: 42px; height: 42px; }
.iconbtn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }

/* pill button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }
.btn-dark { background: var(--black); color: var(--cream); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: rgba(244,242,236,.35); color: var(--cream); }
.btn-ghost.on-light { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(244,242,236,.1); }

/* date / tag pill */
.pill-tag {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--ink);
  border-radius: var(--pill);
  padding: 7px 15px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pill-tag.dark { background: var(--black); color: var(--cream); }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 78px;
}
.brand {
  font-family: var(--cond);
  font-size: 25px;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
}
.brand sup { font-size: .42em; font-family: var(--sans); font-weight: 700; margin-top: .2em; }
.nav { display: flex; gap: 38px; justify-content: center; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--ink); transition: right .3s ease;
}
.nav a:hover::after, .nav a.active::after { right: 0; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.menu-toggle { display: none; }

/* ===========================================================
   Hero
   =========================================================== */
.hero { padding: 18px 0 10px; }

/* centered serif tagline + topic pills */
.hero-head {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 26px; padding: 104px 0 108px;
}
.hero-head .eyebrow { color: var(--muted); }
.hero-display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.12; letter-spacing: -.01em;
  margin: 0; max-width: none;
}
.hero-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
/* force PERSONAL FINANCE + BANKING onto a second line */
.hero-topics .pill-break { flex-basis: 100%; height: 0; margin: 0; padding: 0; }
.hero-pill {
  background: #fff; color: var(--ink); border-radius: var(--pill);
  padding: 9px 18px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.hero-pill:hover { background: var(--dark); color: var(--cream); transform: translateY(-2px); }
.hero-mission {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); max-width: 50ch; margin: 0; line-height: 1.5;
}

.hero-card {
  background: var(--dark);
  color: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 520px;
}
/* the card sits below the fold and peeks up — a hint to scroll (no hover lift) */
.hero-peek { transition: none; }
.hero-text { padding: 56px 52px; display: flex; flex-direction: column; }
.hero-text .eyebrow { color: var(--cream-dim); }
.hero-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0;
}
.hero-text h2 em { font-style: normal; }
.hero-text p { color: var(--cream-dim); font-size: 18px; max-width: 42ch; margin: 22px 0 0; }
.hero-cta { display: flex; gap: 14px; margin-top: auto; padding-top: 36px; flex-wrap: wrap; }
.hero-media { position: relative; background: var(--black); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img.hero-card-float {
  position: absolute;
  left: -56px; bottom: 44px;
  width: 244px;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  transform: rotate(-7deg);
}

/* ===========================================================
   Generic section spacing
   =========================================================== */
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

/* ---------- Topics grid ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.topic-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 112px;
  transition: background .25s ease, transform .25s ease;
}
.topic-card:hover { background: var(--dark); color: var(--cream); transform: translateY(-3px); }
.topic-card:hover .topic-arrow { background: var(--cream); color: var(--ink); }
.topic-card h3 { font-family: var(--serif); font-weight: 420; font-size: 22px; margin: 0; line-height: 1.1; letter-spacing: -.02em; }
.topic-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--line);
  transition: background .25s ease, color .25s ease, border-color .25s;
}
.topic-card:hover .topic-arrow { border-color: transparent; }
.topic-arrow svg { width: 16px; height: 16px; }

/* ---------- Main Guide (featured + list) ---------- */
.mg-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 28px; align-items: stretch; }

/* Left: big full-bleed featured card with overlaid text */
.mg-feature {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); min-height: 480px;
  color: var(--cream); display: flex; align-items: flex-end;
}
.mg-feature-art { position: absolute; inset: 0; }
.mg-feature-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mg-feature:hover .mg-feature-art img { transform: scale(1.04); }
.mg-feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,8,8,.88) 0%, rgba(8,8,8,.45) 40%, rgba(8,8,8,0) 72%);
}
.mg-feature-body { position: relative; z-index: 2; padding: 40px; max-width: 560px; }
.mg-cat {
  display: inline-block;
  background: #fff; color: var(--ink);
  border-radius: var(--pill);
  padding: 5px 13px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.mg-feature h3 {
  font-family: var(--serif); font-weight: 420;
  font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.01em;
  margin: 12px 0 0; max-width: 22ch;
}
.mg-feature .mg-meta { display: block; color: rgba(244,242,236,.82); font-size: 13px; margin-top: 16px; }
.mg-arrow {
  position: absolute; z-index: 2; right: 34px; bottom: 30px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(244,242,236,.45); color: var(--cream);
  display: grid; place-items: center; transition: background .25s ease, color .25s ease;
}
.mg-arrow svg { width: 18px; height: 18px; }
.mg-feature:hover .mg-arrow { background: var(--cream); color: var(--ink); }

/* Right: vertical list of stories */
.mg-list { display: flex; flex-direction: column; }
.mg-item {
  display: grid; grid-template-columns: 1fr 132px; gap: 22px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.mg-list .mg-item:first-child { padding-top: 4px; }
.mg-item .mg-cat { border: 1px solid var(--line-soft); }
.mg-item h4 {
  font-family: var(--serif); font-weight: 440; font-size: 19px; line-height: 1.2;
  letter-spacing: -.01em; margin: 9px 0 0;
}
.mg-item:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.mg-item .mg-meta { display: block; color: var(--muted); font-size: 13px; margin-top: 10px; }
.mg-thumb { width: 132px; aspect-ratio: 1.586 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.mg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mg-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; }
.mg-foot .gc-nav { display: flex; gap: 10px; }
.mg-foot .iconbtn { background: transparent; border: 1.5px solid var(--line); color: var(--ink); width: 46px; height: 46px; }
.mg-foot .iconbtn:hover { background: var(--dark); color: var(--cream); border-color: transparent; }
.gc-prev svg { transform: rotate(180deg); }

/* ---------- More news / reviews / guides ---------- */
.more-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.more-tab {
  background: none; border: none; padding: 0 2px 14px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--muted); position: relative;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s ease;
}
.more-tab:hover { color: var(--ink); }
.more-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.more-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 24px; }
.more-card { display: flex; flex-direction: column; }
.more-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1.586 / 1; background: var(--bg-soft); }
.more-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.more-card:hover .more-media img { transform: scale(1.04); }
.more-cat {
  display: inline-block; align-self: flex-start;
  margin: 16px 0 8px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  padding: 5px 13px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.more-card h3 { font-family: var(--serif); font-weight: 440; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.more-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.more-card .more-meta { color: var(--muted); font-size: 13px; margin-top: 12px; }
.more-foot { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- Top Credit Cards rail ---------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.cc-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.cc-badge {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--cream);
  border-radius: var(--pill); padding: 5px 12px; margin-bottom: 16px;
}
.cc-badge.alt { background: var(--gold); color: #2a1d00; }
.cc-art {
  aspect-ratio: 1.586 / 1;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.cc-art img { width: 100%; height: 100%; object-fit: contain; }
.cc-card h4 { font-family: var(--serif); font-weight: 440; font-size: 19px; margin: 0 0 8px; line-height: 1.15; letter-spacing: -.01em; }
.cc-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.cc-stars span { color: var(--muted); font-family: var(--sans); font-size: 12px; letter-spacing: 0; margin-left: 6px; }
.cc-offer { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.cc-offer strong { color: var(--ink); font-weight: 600; }
.cc-card .link-arrow { margin-top: auto; }

/* ---------- Awards band ---------- */
.awards {
  background: var(--dark);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.awards h2 { font-family: var(--serif); font-weight: 380; font-size: clamp(30px,3.4vw,46px); margin: 14px 0 0; letter-spacing: -.02em; line-height: 1.04; }
.awards h2 em { font-style: italic; }
.awards p { color: var(--cream-dim); max-width: 52ch; margin: 16px 0 28px; }
.awards-badge { width: 188px; height: 188px; border-radius: 50%; flex: none; }
.awards-badge img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Feature trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
  transition: transform .25s ease;
}
.feat-card:hover { transform: translateY(-4px); }
.feat-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--dark); color: var(--cream); display: grid; place-items: center; }
.feat-ico svg { width: 22px; height: 22px; }
.feat-card h4 { font-family: var(--serif); font-weight: 440; font-size: 22px; margin: 0; letter-spacing: -.01em; }
.feat-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.feat-card .link-arrow { margin-top: auto; }

/* ---------- Recent Stories (quiet list, full block width) ---------- */
.stories-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.story-row {
  display: grid; grid-template-columns: 1fr 132px; gap: 22px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.stories-list .story-row:nth-child(-n+2) { padding-top: 0; }
.story-row .story-cat {
  display: inline-block; margin: 0 0 10px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  padding: 5px 13px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.story-row h3 { font-family: var(--serif); font-weight: 440; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.story-row:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.story-row .story-meta { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
.story-thumb { width: 132px; aspect-ratio: 1.586 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stories-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; }
.stories-foot .gc-nav { display: flex; gap: 10px; }
.stories-foot .iconbtn { background: transparent; border: 1.5px solid var(--line); color: var(--ink); width: 46px; height: 46px; }
.stories-foot .iconbtn:hover { background: var(--dark); color: var(--cream); border-color: transparent; }

/* Story card grid — used on the blog index and the related-stories block on articles */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 24px; }
.story { display: flex; flex-direction: column; }
.story-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1.586 / 1; position: relative; background: var(--bg-soft); }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story:hover .story-media img { transform: scale(1.04); }
.story-media .pill-tag { position: absolute; left: 14px; bottom: 14px; z-index: 3; }
.story .story-cat { margin: 16px 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.story h3 { font-family: var(--serif); font-weight: 420; font-size: 21px; line-height: 1.18; letter-spacing: -.01em; margin: 0; }
.story:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Guides icon grid ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex; align-items: center; gap: 18px;
  transition: background .25s, color .25s, transform .25s;
}
.guide-item:hover { background: var(--dark); color: var(--cream); transform: translateY(-3px); }
.guide-item:hover .gi-ico { background: var(--cream); color: var(--ink); }
.gi-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--dark); color: var(--cream); display: grid; place-items: center; flex: none; transition: background .25s, color .25s; }
.gi-ico svg { width: 24px; height: 24px; }
.guide-item span { font-weight: 500; font-size: 16px; }

/* ---------- Authors ---------- */
.authors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.author-card { background: var(--card); border-radius: var(--radius); padding: 32px; }
.author-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--dark); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; flex: none;
}
.author-card .name { font-weight: 600; font-size: 17px; }
.author-card .role { color: var(--muted); font-size: 13px; }
.author-card p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.5; }

/* ---------- Testimonials ---------- */
.testi-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.testi-rail::-webkit-scrollbar { height: 8px; }
.testi-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.testi {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px;
}
.testi .cc-stars { margin: 0; }
.testi p { font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.4; margin: 0; letter-spacing: -.01em; }
.testi .who { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: auto; }

/* ---------- Closing statement ---------- */
.statement {
  background: var(--dark);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 80px 64px;
}
.statement .eyebrow { color: var(--cream-dim); }
.statement p {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0;
  max-width: none;
}
.statement em { font-style: italic; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: var(--black); color: var(--cream); margin-top: 40px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding: 70px 0 50px;
}
.footer-brand .brand { font-size: 34px; }
.footer-brand p { color: var(--cream-dim); max-width: 34ch; margin: 18px 0 24px; font-size: 15px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(244,242,236,.22);
  display: grid; place-items: center;
  transition: background .25s, color .25s;
}
.socials a:hover { background: var(--cream); color: var(--black); }
.socials svg { width: 17px; height: 17px; }
.fcol h5 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); margin: 0 0 18px; font-weight: 600; }
.fcol a { display: block; color: var(--cream); opacity: .82; font-size: 14.5px; padding: 6px 0; transition: opacity .2s; }
.fcol a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(244,242,236,.14);
  padding: 26px 0 40px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--cream-dim);
}
.footer-disclaimer { padding: 26px 0; color: var(--cream-dim); font-size: 12px; line-height: 1.7; max-width: 80ch; opacity: .7; }
.footer-bottom .legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--cream); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1000px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-media { min-height: 280px; }
  .hero-card-float { display: none; }
  .mg-grid { grid-template-columns: 1fr; }
  .more-cards { grid-template-columns: repeat(2, 1fr); }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .trio, .stories-grid, .guides-grid, .authors-grid { grid-template-columns: 1fr 1fr; }
  .awards { grid-template-columns: 1fr; text-align: left; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  section { padding: 46px 0; }
  .hero-text { padding: 34px 24px; }
  .hero h1 { font-size: 33px; overflow-wrap: break-word; }
  .hero p { font-size: 16px; }
  .topics-grid, .trio, .stories-list, .stories-grid, .guides-grid, .authors-grid, .more-cards { grid-template-columns: 1fr; }
  .stories-list .story-row:nth-child(-n+2) { padding-top: 20px; }
  .stories-list .story-row:first-child { padding-top: 0; }
  .mg-item { grid-template-columns: 1fr 84px; }
  .awards { padding: 36px; }
  .awards-badge { width: 140px; height: 140px; }
  .statement { padding: 48px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

/* ===========================================================
   Article page
   =========================================================== */
.article-top { padding: 46px 0 10px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { opacity: .5; }

.article-head { max-width: none; }
.article-head .article-cat { color: var(--muted); }
.article-title {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(34px, 5vw, 62px); line-height: 1.04; letter-spacing: -.025em;
  margin: 16px 0 0;
}
.article-lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--muted); margin: 24px 0 0; max-width: 60ch; }

.byline { display: flex; align-items: center; gap: 16px; margin: 32px 0 0; }
.byline .avatar { width: 52px; height: 52px; font-size: 18px; }
.byline .b-name { font-weight: 600; font-size: 15px; }
.byline .b-meta { color: var(--muted); font-size: 13px; }

/* reader tools — text size + dark mode (between lead and byline) */
.reader-tools {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 28px 0 0; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rt-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rt-group { display: inline-flex; align-items: center; gap: 8px; }
.rt-sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }
.rt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; min-width: 44px; padding: 0 16px; border-radius: var(--pill);
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  font-family: var(--sans); font-weight: 600; cursor: pointer; line-height: 1;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.rt-btn:hover { background: var(--card); border-color: rgba(120,116,105,.5); }
.rt-btn .a-sm { font-size: 13px; }
.rt-btn .a-lg { font-size: 18px; }
.rt-btn sup { font-size: .7em; font-weight: 700; }
.rt-btn svg { width: 17px; height: 17px; }
html.theme-dark .rt-theme { background: var(--cream); color: #141311; border-color: var(--cream); }

/* one-line meta row: reader controls on the left, author pinned to the right */
.article-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px 30px; flex-wrap: wrap;
  margin: 28px 0 0; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.article-meta-row .reader-tools { margin: 0; padding: 0; border: 0; }
.article-meta-row .byline { margin: 0 0 0 auto; flex-direction: row-reverse; text-align: right; gap: 14px; }
.article-meta-row .byline .avatar { width: 46px; height: 46px; font-size: 16px; }
@media (max-width: 560px) {
  .article-meta-row { gap: 16px; }
  .article-meta-row .byline { margin-left: 0; flex-direction: row; text-align: left; }
}

.article-cover { margin: 38px 0 8px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* body */
.article-body { padding: 30px 0 20px; }
.prose { max-width: 768px; margin: 0 auto; }
.prose > p { font-size: calc(18px * var(--rt-scale)); line-height: 1.72; margin: 0 0 24px; }
.prose > p:first-child { font-size: calc(20px * var(--rt-scale)); }
.prose h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08; letter-spacing: -.02em; margin: 56px 0 20px;
}
.prose h3 { font-family: var(--serif); font-weight: 460; font-size: calc(23px * var(--rt-scale)); margin: 30px 0 10px; letter-spacing: -.01em; }
.prose strong { font-weight: 600; }
.prose a:not(.btn):not(.link-arrow) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul { margin: 0 0 24px; padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: 14px; font-size: calc(17px * var(--rt-scale)); line-height: 1.6; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }

/* numbered card module */
.card-block {
  background: var(--card); border-radius: var(--radius); padding: 34px;
  margin: 26px 0; display: grid; grid-template-columns: 168px 1fr; gap: 30px; align-items: start;
}
.cb-media { display: flex; flex-direction: column; gap: 14px; }
.cb-art { border-radius: 12px; aspect-ratio: 1.586 / 1; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; }
.cb-art img { width: 90%; }
.cb-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.cb-stars span { color: var(--muted); font-family: var(--sans); font-size: 12px; letter-spacing: 0; margin-left: 6px; }
.cb-num { font-family: var(--cond); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cb-body h3 { font-family: var(--serif); font-weight: 460; font-size: 26px; margin: 6px 0 0; letter-spacing: -.01em; }
.cb-body > p { font-size: calc(16px * var(--rt-scale)); line-height: 1.62; color: var(--ink); margin: 14px 0 0; }
.cb-points { list-style: none; margin: 18px 0 0; padding: 0; }
.cb-points li { font-size: calc(15px * var(--rt-scale)); line-height: 1.55; margin-bottom: 10px; color: var(--muted); }
.cb-points li strong { color: var(--ink); font-weight: 600; }
.cb-offer { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 600; }

/* callout */
.callout {
  background: var(--dark); color: var(--cream); border-radius: var(--radius);
  padding: 32px 34px; margin: 34px 0;
}
.callout .eyebrow { color: var(--cream-dim); }
.callout h3 { font-family: var(--serif); font-weight: 380; font-size: 26px; margin: 12px 0 12px; color: var(--cream); }
.callout p { color: var(--cream-dim); margin: 0; }
.callout ul { margin: 14px 0 0; padding: 0; list-style: none; }
.callout ul li { position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--cream-dim); }
.callout ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--cream); }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; }
.tag { background: var(--card); border-radius: var(--pill); padding: 9px 18px; font-size: 13px; font-weight: 500; }
.tag:hover { background: var(--dark); color: var(--cream); }

/* comments */
.comments { max-width: 768px; margin: 0 auto; }
.comment-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; color: var(--muted); margin-top: 22px; cursor: text;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.comment-box:focus-within, .comment-box:hover { border-color: rgba(23,21,15,.3); }
.comment-box input { flex: 1; border: none; background: transparent; font: inherit; color: var(--ink); outline: none; }
.comment-box input::placeholder { color: var(--muted); }

@media (max-width: 680px) {
  .card-block { grid-template-columns: 1fr; gap: 22px; padding: 26px; }
  .cb-media { flex-direction: row; align-items: center; }
  .cb-art { width: 130px; flex: none; }
  .article-cover { aspect-ratio: 16 / 9; }
}

/* ===========================================================
   Best Cards / Awards winners page
   =========================================================== */
.awards-top { padding: 40px 0 6px; }
.awards-hero {
  background: var(--dark); color: var(--cream); border-radius: var(--radius-lg);
  padding: 54px 56px; margin-top: 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center;
}
.awards-hero .eyebrow { color: var(--cream-dim); }
.awards-hero h1 {
  font-family: var(--serif); font-weight: 380; font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04; letter-spacing: -.025em; margin: 16px 0 0;
}
.awards-hero .lead { color: var(--cream-dim); font-size: 18px; max-width: 56ch; margin: 20px 0 0; }
.awards-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; font-size: 13px; color: var(--cream-dim); }
.awards-meta b { color: var(--cream); font-weight: 600; }
.awards-meta .fact { display: inline-flex; align-items: center; gap: 7px; background: rgba(244,242,236,.1); border-radius: var(--pill); padding: 5px 13px; color: var(--cream); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.awards-meta .fact svg { width: 13px; height: 13px; }
.awards-hero .awards-badge { width: 168px; height: 168px; flex: none; }
.awards-hero .awards-badge img { width: 100%; height: 100%; object-fit: contain; }

.winners-list { padding: 30px 0 10px; }
.winner {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 22px; border: 1px solid var(--line-soft);
}
.winner-ribbon {
  background: var(--dark); color: var(--cream);
  padding: 12px 30px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; display: flex; align-items: center; gap: 11px;
}
.winner-ribbon svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.winner-ribbon .rank { color: var(--gold); }
.winner-body { padding: 30px 30px 8px; }

.winner-head { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.winner-id { display: flex; gap: 22px; align-items: center; }
.winner-art { width: 132px; border-radius: 11px; aspect-ratio: 1.586/1; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; flex: none; }
.winner-art img { width: 90%; }
.winner-name { font-family: var(--serif); font-weight: 460; font-size: 25px; letter-spacing: -.01em; margin: 0; line-height: 1.1; }
.winner-rating { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.winner-rating .stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.winner-rating .score { font-weight: 600; font-size: 14px; }
.winner-rating .of { color: var(--muted); font-size: 13px; }
.winner-apply { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.winner-apply .sub { font-size: 12px; color: var(--muted); }
.winner-apply .rates { font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Apply button: no lift on hover — the arrow nudges forward instead */
.winner-apply .btn-dark:hover { transform: none; }
.winner-apply .btn svg { transition: transform .25s ease; }
.winner-apply .btn:hover svg { transform: translateX(4px); }

.winner-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin: 26px 0 0; padding: 24px 0; border-top: 1px solid var(--line);
}
.stat .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 7px; }
.stat .v { font-size: 16px; font-weight: 600; line-height: 1.3; }
.stat .v small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat .link { font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-top: 4px; display: inline-block; }
.winner-apr {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  padding: 22px 0 4px; border-top: 1px solid var(--line);
}

.acc { border-top: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .chev { width: 22px; height: 22px; transition: transform .25s ease; flex: none; }
.acc[open] summary .chev { transform: rotate(45deg); }
.acc-content { padding: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 70ch; }
.acc-content ul { list-style: none; padding: 0; margin: 0; }
.acc-content li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.acc-content li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

.awards-note { max-width: 768px; margin: 30px auto 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

@media (max-width: 760px) {
  .awards-hero { grid-template-columns: 1fr; padding: 36px 28px; }
  .awards-hero .awards-badge { width: 120px; height: 120px; }
  .winner-head { grid-template-columns: 1fr; }
  .winner-apply { text-align: left; align-items: flex-start; }
  .winner-id { flex-direction: column; align-items: flex-start; }
  .winner-stats { grid-template-columns: 1fr 1fr; }
  .winner-apr { grid-template-columns: 1fr; gap: 16px; }
}

/* Apply-now padlock — opens on hover */
.btn .lock { position: relative; display: inline-flex; width: 16px; height: 16px; flex: none; }
.btn .lk { position: absolute; inset: 0; width: 16px; height: 16px; transition: opacity .22s ease, transform .22s ease; }
.btn .lk-open { opacity: 0; transform: translateY(1px); }
.btn:hover .lk-closed { opacity: 0; }
.btn:hover .lk-open { opacity: 1; transform: translateY(0); }

/* ===========================================================
   Back-to-top button (all pages)
   =========================================================== */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--black); color: var(--cream); border: none; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top.show:hover { background: #000; transform: translateY(-3px); }

/* ===========================================================
   Newsletter CTA (home)
   =========================================================== */
.newsletter {
  background: var(--dark); color: var(--cream); border-radius: var(--radius-lg);
  padding: 56px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.newsletter .eyebrow { color: var(--cream-dim); }
.newsletter h2 {
  font-family: var(--serif); font-weight: 380; font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05; letter-spacing: -.02em; margin: 14px 0 0;
}
.newsletter h2 em { font-style: italic; }
.newsletter p { color: var(--cream-dim); margin: 16px 0 0; max-width: 46ch; }
.nl-form { width: 100%; }
.nl-row {
  display: flex; gap: 8px; align-items: center;
  background: rgba(244,242,236,.07); border: 1.5px solid rgba(244,242,236,.22);
  border-radius: var(--pill); padding: 7px 7px 7px 24px;
  transition: border-color .2s ease;
}
.nl-row:focus-within { border-color: rgba(244,242,236,.5); }
.nl-row input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--cream); font: inherit; padding: 12px 0;
}
.nl-row input::placeholder { color: var(--cream-dim); }
.nl-row .btn { flex: none; }
.nl-fine { display: block; color: var(--cream-dim); font-size: 12.5px; margin-top: 14px; }

@media (max-width: 820px) {
  .newsletter { grid-template-columns: 1fr; gap: 28px; padding: 40px 32px; }
}
@media (max-width: 480px) {
  .nl-row { flex-direction: column; align-items: stretch; padding: 14px; border-radius: var(--radius); gap: 12px; }
  .nl-row input { padding: 6px 8px; }
  .nl-row .btn { justify-content: center; }
}

/* ===========================================================
   WordPress glue
   =========================================================== */
/* header search dropdown */
.bc-search { max-height: 0; overflow: hidden; transition: max-height .3s ease; border-top: 0 solid var(--line-soft); }
.bc-search.open { max-height: 90px; border-top: 1px solid var(--line-soft); }
.bc-search .wrap { padding-top: 16px; padding-bottom: 16px; }
.bc-search input { width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--pill); padding: 14px 22px; font: inherit; color: var(--ink); outline: none; }
.bc-search input:focus { border-color: rgba(120,116,105,.5); }

/* prose content (the_content) extras */
.prose img, .prose .wp-block-image img { border-radius: var(--radius); height: auto; margin: 8px 0; }
.prose figure { margin: 26px 0; }
.prose figcaption, .prose .wp-element-caption { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }
.prose ol { margin: 0 0 24px; padding-left: 22px; }
.prose ol li { margin-bottom: 12px; font-size: calc(17px * var(--rt-scale)); line-height: 1.6; }
.prose blockquote {
  margin: 30px 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--ink);
  font-family: var(--serif); font-size: 22px; line-height: 1.4; font-style: italic;
}
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px,3.6vw,44px); margin: 48px 0 18px; letter-spacing: -.02em; }
.prose pre { background: var(--card); border-radius: var(--radius-sm); padding: 18px 20px; overflow: auto; font-size: 14px; }
.prose code { background: var(--card); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.alignleft { float: left; margin: 6px 26px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 26px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose .wp-block-image, .prose figure.aligncenter { text-align: center; }
.page-links { margin: 24px 0; font-weight: 600; display: flex; gap: 10px; }

/* pagination */
.bc-pagination { margin-top: 44px; }
.bc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: var(--pill); border: 1.5px solid var(--line); font-weight: 600; font-size: 14px;
}
.bc-pagination .page-numbers.current { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.bc-pagination a.page-numbers:hover { background: var(--card); }

/* comments */
.bc-comments { max-width: 768px; margin: 0 auto; }
.comments-title { font-family: var(--serif); font-weight: 440; font-size: 24px; margin: 18px 0 18px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list li { margin-bottom: 18px; }
.comment-list .comment-body { background: var(--card); border-radius: var(--radius); padding: 22px 24px; }
.comment-list .comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; }
.comment-list .comment-author img { border-radius: 50%; }
.comment-list .comment-meta { color: var(--muted); font-size: 12px; margin: 4px 0 10px; }
.comment-list .reply a { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bc-comment-form, .comment-respond { margin-top: 10px; }
.comment-respond .comment-box { margin-bottom: 14px; }
.comment-box .cf-input { width: 100%; background: transparent; border: none; outline: none; font: inherit; color: var(--ink); }
.comment-form-author, .comment-form-email, .comment-form-url { display: inline-block; width: 32%; margin-right: 1%; }
.comment-respond input[type=text], .comment-respond input[type=email], .comment-respond input[type=url], .comment-respond textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--radius-sm); padding: 12px 16px; font: inherit; color: var(--ink); margin-top: 8px; outline: none;
}
.comment-respond .form-submit { margin-top: 16px; }
.comment-reply-title { font-family: var(--serif); font-size: 22px; font-weight: 440; }

/* dark-mode tweaks for the search/comment fields are inherited via CSS variables */
@media (max-width: 600px) {
  .comment-form-author, .comment-form-email, .comment-form-url { width: 100%; margin-right: 0; }
}
