/* abirmolla.com theme — tokens come from the approved Recto design (DESIGN.md). Breakpoints: 1280, 1024, 900 (tablet), 700, 560 (phone). */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/ibmplexsans-327998.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/jetbrainsmono-986781.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-var.woff2) format("woff2"); }

:root {
  /* palette */
  --color-midnight-navy: #0a1628;
  --color-electric-blue: #1a62d9;
  --color-amber-glow: #f2b544;
  --color-signal-green: #34d399;
  --color-alert-red: #b42318;
  --color-slate-ink: #3a4556;
  --color-slate-gray: #52607a;
  --color-steel: #93a0b5;
  --color-frost: #cbd5e1;
  --color-hairline: #e2e8f0;
  --color-cloud: #f5f7fa;
  --color-paper-white: #ffffff;
  --color-forest-green: #0e8f63;
  --color-input-line: #78859b;
  --color-code-blue: #8fa8ff;
  --color-code-mint: #9be3b8;

  /* roles */
  --color-surface: var(--color-cloud);
  --color-surface-raised: var(--color-paper-white);
  --color-ink: var(--color-midnight-navy);
  --color-ink-muted: var(--color-slate-gray);
  --color-border: var(--color-hairline);
  --color-brand: var(--color-electric-blue);
  --color-on-brand: var(--color-paper-white);
  --color-brand-solid: var(--color-brand); /* fill behind white text */
  --color-accent: var(--color-amber-glow);
  --color-link: var(--color-electric-blue);
  --color-danger: var(--color-alert-red);
  --color-success: var(--color-signal-green);

  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* type: the two big steps scale between the phone and desktop sizes of the design */
  --text-caption: 13px;
  --text-body-sm: 14px;
  --text-body: 17px;
  --text-subheading: clamp(18px, 0.4vw + 16px, 21px);
  --text-heading: clamp(30px, 1.6vw + 20px, 42px);
  --text-display: clamp(38px, 3.4vw + 12px, 60px);
  --leading-body: 1.6;
  --leading-body-sm: 1.5;
  --leading-subheading: 1.4;
  --leading-heading: 1.15;
  --leading-display: 1.05;
  --tracking-heading: -0.8px;
  --tracking-display: -1.4px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 20px;
  --space-lg: 40px;
  --space-xl: 80px;
  --space-2xl: 120px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-overlay: 0 12px 32px rgba(10, 22, 40, 0.18);

  --page-max-width: 1200px;
  --gutter: 120px;
}
@media (max-width: 1280px) { :root { --gutter: 64px; } }
@media (max-width: 900px)  { :root { --gutter: 32px; } }
@media (max-width: 560px)  { :root { --gutter: 20px; --space-xl: 48px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-ink); background: var(--color-surface); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--color-link); }
:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--color-brand-solid); color: var(--color-on-brand); border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }
.container { width: 100%; max-width: calc(var(--page-max-width) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); color: var(--color-ink); }
h1 { font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); font-weight: 700; max-width: 820px; }
h2 { font-size: var(--text-heading); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); font-weight: 700; max-width: 760px; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--color-brand); }
.accent { color: var(--color-accent); }
.tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--color-ink-muted); }
.muted { color: var(--color-ink-muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: var(--radius-md); font: 600 16px var(--font-body); text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--color-brand-solid); color: var(--color-on-brand); }
.btn--primary:hover { background: #1552bd; }
.btn--ghost { border-color: var(--color-steel); color: var(--color-paper-white); }
.btn--ghost:hover { border-color: var(--color-paper-white); }
.btn--light { border-color: var(--color-border); background: var(--color-surface-raised); color: var(--color-ink); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.text-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 560px) { .btn--block-sm { width: 100%; } }

/* ---------- announcement bar + header ---------- */
.announcement { background: var(--color-brand-solid); color: var(--color-on-brand); font-size: 14px; text-align: center; padding: 8px var(--gutter); }
.announcement a { color: inherit; font-weight: 600; }
/* Sticky: stays in place and travels down with the page; nav.js adds .is-scrolled for the glass + shadow. */
.site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 20; background: var(--color-surface-raised); border-bottom: 1px solid var(--color-border); transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--color-surface-raised) 85%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-overlay); }
@media (max-width: 600px) { .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.5px; color: var(--color-ink); text-decoration: none; }
.brand img { display: block; max-height: 36px; width: auto; }
.nav ul { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: var(--text-body-sm); font-weight: 500; color: var(--color-ink); text-decoration: none; white-space: nowrap; }
/* Seven menu items plus the CTA: tighten on small laptops, switch to the menu button below 1100px. */
@media (max-width: 1280px) { .nav ul { gap: 20px; } }
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a { color: var(--color-brand); }
/* Dropdowns (one level, from wp-admin > Menus): open on hover or keyboard focus on desktop. */
.nav .sub-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
@media (min-width: 1101px) {
  .nav li { position: relative; }
  .nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
  /* padding-top bridges the gap so the pointer can move from the link into the panel */
  .nav .sub-menu { position: absolute; top: 100%; left: -16px; z-index: 30; min-width: 240px; padding: 14px 0 0; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s; }
  .nav .sub-menu::before { content: ""; position: absolute; inset: 14px 0 0; z-index: -1; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-raised); box-shadow: var(--shadow-overlay); }
  .nav .sub-menu li:first-child { padding-top: 8px; }
  .nav .sub-menu li:last-child { padding-bottom: 8px; }
  .nav .sub-menu a { display: block; padding: 9px 16px; }
  .nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
}
@media (min-width: 1101px) and (prefers-reduced-motion: reduce) { .nav .sub-menu { transition: none; transform: none; } }
.nav a.btn--primary, .nav a.btn--primary:hover { color: var(--color-on-brand); }
.nav__cta { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0 10px; flex-direction: column; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--color-ink); }
@media (max-width: 1100px) {
  .menu-toggle { display: flex; }
  .site-header__cta { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px var(--gutter) 24px; background: var(--color-surface-raised); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-overlay); }
  .nav.is-open { display: block; max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--color-border); font-size: 16px; }
  .nav .sub-menu a { padding: 11px 0 11px 16px; font-size: 15px; color: var(--color-ink-muted); }
  .nav__cta { display: flex; margin-top: 16px; width: 100%; }
  .site-header__inner { min-height: 64px; }
}

/* ---------- sections ---------- */
.section { padding: var(--space-xl) 0; }
.section--raised { background: var(--color-surface-raised); }
.section--dark { background: var(--color-midnight-navy); color: var(--color-frost); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-paper-white); }
.section--dark .eyebrow { color: var(--color-code-blue); }
.section .container > * + * { margin-top: var(--space-lg); }
.section__head { display: flex; flex-direction: column; gap: var(--space-sm); }
.section__head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section__head--split > div { display: flex; flex-direction: column; gap: var(--space-sm); }
@media (max-width: 560px) {
  .section .container > * + * { margin-top: 24px; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
}

/* ---------- hero + code box ---------- */
.hero { padding: var(--space-xl) 0; background: radial-gradient(60% 80% at 85% 20%, rgba(26, 98, 217, 0.35), transparent 70%), radial-gradient(40% 60% at 10% 100%, rgba(242, 181, 68, 0.08), transparent 70%), var(--color-midnight-navy); }
.hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero__copy { display: flex; flex-direction: column; gap: var(--space-md); flex: 1 1 560px; max-width: 640px; }
.hero h1 { color: var(--color-paper-white); }
.hero .eyebrow { color: var(--color-code-blue); }
.hero__lead { font-size: var(--text-subheading); line-height: var(--leading-subheading); color: var(--color-frost); max-width: 560px; }
.hero__actions { display: flex; align-items: center; gap: 12px; margin-top: var(--space-sm); flex-wrap: wrap; }
.hero__note { font-size: var(--text-body-sm); color: var(--color-steel); }
.code-box { flex: 0 1 480px; width: 100%; border: 1px solid var(--color-slate-ink); border-radius: var(--radius-lg); background: var(--color-midnight-navy); overflow: hidden; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--color-frost); }
.code-box__bar { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 var(--space-md); border-bottom: 1px solid var(--color-slate-ink); font-size: 12px; color: var(--color-steel); }
.code-box__live { color: var(--color-success); }
.code-box__live i { font-style: normal; display: inline-block; }
.code-box__body { display: flex; flex-direction: column; gap: 4px; padding: var(--space-md); overflow-x: auto; }
.code-box__indent { padding-left: 16px; }
.code-box__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 var(--space-md); border-top: 1px solid var(--color-slate-ink); font-size: 12px; }
.code-box__ok { color: var(--color-success); }
.k { color: var(--color-code-blue); }
.s { color: var(--color-code-mint); }
.n { color: var(--color-accent); }
@media (max-width: 900px) {
  .hero__inner { flex-direction: column; align-items: stretch; gap: 32px; }
  .hero__copy { max-width: none; flex-basis: auto; }
  .code-box { flex-basis: auto; }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .code-box { max-width: none; }
}

/* ---------- tools strip ---------- */
.tools { background: var(--color-surface-raised); border-bottom: 1px solid var(--color-border); }
.tools__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 72px; padding-block: 12px; }
.tools span { font-size: var(--text-body-sm); font-weight: 600; color: var(--color-ink-muted); }
@media (max-width: 560px) { .tools span { font-size: 13px; } .tools__inner { justify-content: flex-start; } }

/* ---------- cards, steps, resources ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .grid--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px)  { .grid { gap: 16px; } .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md); background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.card--flat { background: var(--color-surface); box-shadow: none; }
.card h3 { font-size: 22px; }
.card--flat h3 { font-size: 20px; }
.card p { font-size: var(--text-body-sm); line-height: var(--leading-body-sm); color: var(--color-ink-muted); }
.card__num { font-family: var(--font-mono); font-size: 12px; color: var(--color-danger); }
.step { display: flex; flex-direction: column; gap: var(--space-sm); padding-top: var(--space-md); border-top: 2px solid var(--color-ink); }
.step p { font-size: var(--text-body-sm); line-height: var(--leading-body-sm); color: var(--color-ink-muted); }
.step__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--color-brand); }
.res-card { padding: 0; overflow: hidden; }
.res-card__code { display: flex; flex-direction: column; gap: 2px; min-height: 112px; padding: 16px; background: var(--color-midnight-navy); font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--color-frost); overflow-x: auto; }
.res-card__body { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md); }
.res-card__body h3 { font-size: 20px; }

/* ---------- blog list ---------- */
.post-list { border-top: 1px solid var(--color-border); }
.post-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 12px 0; border-bottom: 1px solid var(--color-border); color: var(--color-ink); text-decoration: none; }
.post-row__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.post-row:hover .post-row__title { color: var(--color-brand); }
@media (max-width: 560px) { .post-row { flex-direction: column-reverse; align-items: flex-start; gap: 4px; padding: 16px 0; } .post-row__title { font-size: 18px; line-height: 1.3; } }

/* ---------- final call to action ---------- */
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta__copy { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.cta__copy p { font-size: var(--text-body); color: var(--color-frost); }
.cta__inner > .btn { flex: none; white-space: nowrap; }
@media (max-width: 700px) { .cta__inner { flex-direction: column; align-items: stretch; } }

/* ---------- footer ---------- */
.site-footer { background: var(--color-midnight-navy); border-top: 1px solid var(--color-slate-ink); color: var(--color-steel); font-size: var(--text-caption); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; min-height: 88px; padding-block: 24px; }
.site-footer .brand { color: var(--color-paper-white); font-size: 16px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: var(--color-steel); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--color-paper-white); }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px; border-top: 1px solid var(--color-slate-ink); }
@media (max-width: 900px) { .site-footer__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- inner page hero ---------- */
.page-hero { padding: 36px 0 40px; background: var(--color-midnight-navy); }
.page-hero .container { display: flex; flex-direction: column; gap: 10px; }
.page-hero h1 { color: var(--color-paper-white); font-size: clamp(28px, 1.6vw + 18px, 40px); }
.page-hero .eyebrow { color: var(--color-code-blue); }
.page-hero__lead { max-width: 720px; font-size: 16px; line-height: 1.5; color: var(--color-frost); }
.page-hero + .section { padding-top: 40px; }
.page-hero__meta { font-size: var(--text-body-sm); color: var(--color-steel); }
@media (max-width: 560px) { .page-hero { padding: 40px 0; } }

/* ---------- forms ---------- */
.split { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.form { display: flex; flex-direction: column; gap: 20px; padding: 32px; background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.form__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--color-ink); }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-size: 14px; font-weight: 600; color: var(--color-ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--color-ink-muted); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.input, .select, .textarea { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--color-input-line); border-radius: var(--radius-sm); background: var(--color-surface-raised); font: 400 15px var(--font-body); color: var(--color-ink); }
.textarea { height: 120px; padding: 12px 16px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--color-ink-muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--color-input-line); border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; }
.pill:has(input:checked) { border-color: var(--color-brand); background: color-mix(in srgb, var(--color-brand) 12%, var(--color-surface-raised)); }
.form .btn { width: 100%; }
.form__note { font-size: 13px; line-height: 1.5; color: var(--color-ink-muted); }
.form__error { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--color-danger); color: var(--color-danger); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form { padding: 20px; } .field-row { grid-template-columns: minmax(0, 1fr); } }

.side-card { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.side-card .info a { text-decoration: none; }
.side-card .info a:hover { text-decoration: underline; }
.side-card h2 { font-size: 22px; line-height: 1.25; letter-spacing: 0; }
.side-card__item { display: flex; flex-direction: column; gap: 2px; }
.side-card__item b { font-family: var(--font-display); font-size: 17px; }
.side-card__item p { font-size: 14px; line-height: 1.5; color: var(--color-ink-muted); }
.side-card__foot { padding-top: 16px; border-top: 1px solid var(--color-border); font-size: 13px; line-height: 1.5; color: var(--color-ink-muted); }
.info { display: flex; flex-direction: column; gap: 2px; }
.info b { font-size: 16px; font-weight: 500; color: var(--color-ink); }

/* ---------- tiers, checklists, faq ---------- */
.badge { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; height: 24px; padding: 0 12px; border-radius: var(--radius-pill); font: 600 12px var(--font-mono); letter-spacing: 1px; color: var(--color-midnight-navy); }
.badge--free { background: var(--color-success); }
.badge--paid { background: var(--color-accent); }
.card--tier { padding: 28px; gap: 12px; }
.card--tier h3 { font-size: 24px; }
.card--tier > p { font-size: 15px; }
.checklist { display: flex; flex-direction: column; gap: 6px; }
.checklist li { display: flex; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--color-ink); }
.checklist li::before { content: "✓"; color: var(--color-forest-green); font-weight: 700; }
.arrows li { display: flex; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--color-ink-muted); }
.arrows li::before { content: "→"; color: var(--color-brand); }
.faq-list { border-top: 1px solid var(--color-border); }
.faq { padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--color-ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--color-brand); }
.faq[open] summary::after { content: "−"; }
.faq p { padding-top: 8px; font-size: 15px; line-height: 1.55; color: var(--color-ink-muted); }

/* ---------- blog + article ---------- */
.card--post { padding: 24px; }
.card--post h3 { font-size: 22px; }
.card--post a.stretch { color: inherit; text-decoration: none; }
.card--post a.stretch::after { content: ""; position: absolute; inset: 0; }
.card--post { position: relative; }
.card--post:hover h3 { color: var(--color-brand); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-raised); color: var(--color-ink); text-decoration: none; }
.pagination .current { background: var(--color-brand-solid); border-color: var(--color-brand-solid); color: var(--color-on-brand); }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px) 376px; gap: 64px; justify-content: space-between; align-items: start; }
@media (max-width: 1024px) { .post-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } .post-layout aside { order: -1; } }
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; color: var(--color-ink); }
.prose--narrow { max-width: 760px; }
.prose > * { margin: 0; }
.prose h2 { margin-top: 24px; font-size: clamp(24px, 1vw + 18px, 30px); letter-spacing: -0.5px; }
/* TOC jumps land below the sticky header. */
.prose :is(h2, h3)[id] { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px); }
.prose h3 { margin-top: 12px; font-size: 22px; }
.prose ul, .prose ol { padding-left: 22px; list-style: revert; display: flex; flex-direction: column; gap: 6px; }
.prose pre, .prose .wp-block-code { padding: 16px; border-radius: var(--radius-lg); background: var(--color-midnight-navy); color: var(--color-frost); font: 13px/1.55 var(--font-mono); overflow-x: auto; }
.prose :not(pre) > code { padding: 2px 6px; border-radius: 4px; background: var(--color-border); font: 0.9em var(--font-mono); }
.prose blockquote { padding: 16px 20px; border: 1px solid var(--color-border); background: var(--color-surface-raised); border-radius: var(--radius-md); font-weight: 500; }
.prose img { border-radius: var(--radius-md); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--color-border); text-align: left; }
/* Editor buttons and colours from old posts follow the theme (hard-coded black breaks dark mode). */
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 28px; border-radius: var(--radius-md); background: var(--color-brand-solid); color: var(--color-on-brand); font: 600 16px var(--font-body); text-decoration: none; }
.prose .wp-block-button__link:hover { background: #1552bd; }
.prose .has-black-color { color: inherit; }
.toc { display: flex; flex-direction: column; gap: 8px; }
.toc a { font-size: 14px; color: var(--color-ink); text-decoration: none; }
.toc a:hover { color: var(--color-brand); }
.card--dark { background: var(--color-midnight-navy); border-color: var(--color-midnight-navy); }
.card--dark h3 { color: var(--color-paper-white); }
.card--dark p { color: var(--color-frost); }
.card--dark .btn { width: 100%; }

/* ---------- 404 + thank you ---------- */
.center { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.center p { max-width: 560px; }
.center h1 { max-width: none; }
.big-404 { font-family: var(--font-mono); font-size: clamp(88px, 8vw + 40px, 140px); line-height: 1; font-weight: 500; color: var(--color-brand); }
.center__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.center__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 16px; }
.center__links a { font-weight: 500; text-decoration: none; padding: 6px 0; }
.check-circle { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--radius-pill); background: var(--color-success); font-size: 32px; font-weight: 700; color: var(--color-midnight-navy); }
@media (max-width: 560px) { .center__actions .btn { width: 100%; } }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid--2 { grid-template-columns: minmax(0, 1fr); } }
.page-hero .hero__inner { align-items: center; }
.page-hero .hero__copy h1 { font-size: clamp(30px, 2vw + 18px, 44px); }
@media (max-width: 900px) { .page-hero .hero__inner > .form { flex-basis: auto; width: 100%; } }
.side-stack { display: flex; flex-direction: column; gap: 16px; }
/* Post sidebar: the aside fills the row so its lower block can stick while the article scrolls. */
.post-layout > .side-stack { align-self: stretch; }
.side-sticky { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px); display: flex; flex-direction: column; gap: 16px; }
.form--side { flex: 0 1 460px; }

/* resource page hero: copy left, form right (beats the column layout of .page-hero .container) */
.page-hero .container.hero__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
@media (max-width: 900px) { .page-hero .container.hero__inner { flex-direction: column; align-items: stretch; gap: 32px; } }

/* embeds in post content (real posts contain fixed-width iframes) */
.prose iframe, .prose video, .prose embed, .prose object { max-width: 100%; }
.prose iframe[src*="youtube"], .prose iframe[src*="youtu.be"], .prose iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-md); }

/* ---------- client logos + reviews ---------- */
.logos { padding: 32px 0; background: var(--color-surface-raised); border-bottom: 1px solid var(--color-border); }
.logos__label { margin-bottom: 20px; text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--color-ink-muted); text-transform: uppercase; }
.logos__track { display: flex; width: max-content; }
.logos__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; }
.logos__list[aria-hidden] { display: none; }
.logos__list img { display: block; width: auto; height: 40px; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: 0.75; }
.logos__list img:hover { filter: none; opacity: 1; }
@media (max-width: 560px) { .logos__list { gap: 20px 28px; } .logos__list img { height: 32px; max-width: 120px; } }
.quote { gap: var(--space-md); }
.quote__stars { font-size: 18px; letter-spacing: 2px; color: var(--color-amber-glow); }
.quote blockquote { margin: 0; padding: 0; border: 0; }
.quote blockquote p { font-size: 16px; line-height: 1.6; color: var(--color-ink); }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__who img { width: 44px; height: 44px; border-radius: var(--radius-pill); object-fit: cover; }
.quote__who span { display: flex; flex-direction: column; }
.quote__who b { font-family: var(--font-display); font-size: 15px; }
.quote__who small { font-size: 13px; color: var(--color-ink-muted); }
.portal-frame { display: block; width: 100%; min-height: 760px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-raised); }


/* ---------- dark mode: only the role tokens change ---------- */
:root[data-theme="dark"] {
  --color-surface: #0b1220;
  --color-surface-raised: #121c2f;
  --color-ink: #f1f5f9;
  --color-ink-muted: #a3b0c4;
  --color-border: #22304a;
  --color-brand: #3b82f6;
  --color-brand-solid: #2563eb;
  --color-link: #6ea8ff;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-surface: #0b1220;
    --color-surface-raised: #121c2f;
    --color-ink: #f1f5f9;
    --color-ink-muted: #a3b0c4;
    --color-border: #22304a;
    --color-brand: #3b82f6;
    --color-brand-solid: #2563eb;
    --color-link: #6ea8ff;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-steel); border-radius: var(--radius-pill); background: transparent; cursor: pointer; }
.theme-toggle span { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(90deg, var(--color-amber-glow) 50%, var(--color-code-blue) 50%); }

.booking { min-height: 700px; }
.booking .calendly-inline-widget, .booking__frame, .booking__code iframe { display: block; width: 100%; min-width: 320px; height: 760px; border: 0; border-radius: var(--radius-lg); background: var(--color-surface-raised); }
.booking__code { max-width: 100%; overflow: hidden; }
.booking > p { margin-top: 16px; }
@media (max-width: 700px) { .booking .calendly-inline-widget, .booking__frame, .booking__code iframe { height: 1060px; } }

/* ---------- motion: CSS only, off for reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes abir-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .page-hero .container > *, .hero__copy > * { animation: abir-fade-up 0.6s ease-out both; }
  .page-hero .container > :nth-child(2), .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .page-hero .container > :nth-child(3), .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .card, .btn { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-overlay); }
}

/* ---------- case studies ---------- */
.case { gap: 6px; }
.case .case__metric { font: 800 clamp(40px, 3vw + 20px, 56px)/1 var(--font-display); letter-spacing: -1.4px; color: var(--color-brand); }
.case .case__label { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--color-ink); }
.case .tag { margin-top: auto; padding-top: var(--space-sm); }

/* ---------- tools (bento cards, colour cycles by position) ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 280px; padding: 32px; border: 1px solid var(--color-border); border-radius: 24px; background: var(--color-surface-raised); transition: transform .2s ease; }
.tool:has(a):hover { transform: translateY(-3px); }
.tool__kind { margin-bottom: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--color-brand); }
.tool__title { font-size: clamp(22px, 1vw + 16px, 28px); line-height: 1.2; letter-spacing: -0.4px; }
.tool__title a { color: inherit; text-decoration: none; }
.tool__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tool p:not(.tool__kind) { font-size: 16px; line-height: 1.55; color: var(--color-ink-muted); }
.tool__go { font-size: 14px; font-weight: 600; color: var(--color-brand); }
/* fixed electric blue (not the lighter dark-mode brand) so white text keeps 5.5:1 in both modes */
.tool:nth-child(5n+1) { background: var(--color-electric-blue); border-color: transparent; }
.tool:nth-child(5n+2) { background: color-mix(in srgb, var(--color-brand) 10%, var(--color-surface-raised)); }
.tool:nth-child(5n+3) { background: var(--color-midnight-navy); border-color: var(--color-slate-ink); }
.tool:nth-child(5n+4) { background: color-mix(in srgb, var(--color-success) 14%, var(--color-surface-raised)); }
.tool:nth-child(5n+1) :is(.tool__title, .tool__go), .tool:nth-child(5n+3) .tool__title { color: var(--color-paper-white); }
.tool:nth-child(5n+1) p { color: var(--color-paper-white); }
.tool:nth-child(5n+3) p:not(.tool__kind) { color: var(--color-frost); }
.tool:nth-child(5n+3) :is(.tool__kind, .tool__go) { color: var(--color-code-blue); }
@media (max-width: 1024px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } .tool { min-height: 0; padding: 24px; border-radius: 20px; } .tool__kind { margin-bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .tool { transition: none; } .tool:has(a):hover { transform: none; } }

/* Tool pages (UTM builder / checker): form on the left, live result on the right. */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.section .tool-layout > * + * { margin-top: 0; }
.tool-layout .form .btn { width: auto; align-self: flex-start; }
.tool-layout .form .pill { height: auto; min-height: 44px; padding: 10px 14px; font-size: 14px; line-height: 1.4; }
.tool-panel { display: flex; flex-direction: column; gap: 16px; padding: 32px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-raised); position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px); }
.tool-panel__title { font-size: 22px; }
.tool-panel__sub { font-size: 16px; }
.tool-out { display: block; padding: 16px; border-radius: var(--radius-md); background: var(--color-midnight-navy); color: var(--color-steel); font: 14px/1.6 var(--font-mono); word-break: break-all; }
.tool-out.is-ready { color: var(--color-frost); }
.tool-panel__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-summary { font-size: 17px; font-weight: 600; }
.tool-summary.is-ok { color: var(--color-success); }
.tool-summary.is-warn { color: var(--color-accent); }
.tool-summary.is-error { color: var(--color-danger); }
.tool-checks { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tool-check { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.5; color: var(--color-ink); }
.tool-check::before { content: "!"; position: absolute; left: 0; top: 2px; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: var(--radius-pill); font: 700 12px var(--font-mono); color: var(--color-paper-white); background: var(--color-steel); }
.tool-check--ok::before { content: "✓"; background: var(--color-success); }
.tool-check--warn::before { background: var(--color-accent); color: var(--color-midnight-navy); }
.tool-check--error::before { content: "×"; background: var(--color-danger); }
.tool-check--info::before { content: "i"; background: var(--color-brand-solid); }
.tool-params { width: 100%; border-collapse: collapse; font-size: 14px; }
.tool-params th, .tool-params td { padding: 8px 10px; border-bottom: 1px solid var(--color-border); text-align: left; word-break: break-all; }
.tool-params th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--color-ink-muted); }
.tool-params td:first-child { font-family: var(--font-mono); font-size: 13px; }
.tool-params .is-missing { color: var(--color-danger); font-weight: 600; }
.tool-help { gap: 10px; padding-top: 16px; border-top: 1px solid var(--color-border); font-size: 15px; }
.tool-help h3 { font-size: 16px; }
.tool-help ul { gap: 4px; font-size: 14px; }
/* ROAS stats, decoder/finder cards. */
.tool-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.tool-stats > div { padding: 14px 16px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); }
.tool-stats dt { font-size: 12px; font-weight: 600; letter-spacing: 0.3px; color: var(--color-ink-muted); }
.tool-stats dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.5px; color: var(--color-ink); }
.tool-event { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); }
.tool-event + .tool-event { margin-top: 12px; }
.tool-event__name { font-size: 18px; }
.tool-event__id { align-self: flex-start; padding: 2px 8px; border-radius: 4px; background: var(--color-midnight-navy); color: var(--color-frost); font: 13px var(--font-mono); word-break: break-all; }
.tool-event__label { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--color-ink-muted); }
.tool-event__tip { font-size: 14px; color: var(--color-ink-muted); }
.tool-event > p { font-size: 15px; line-height: 1.5; }
.tool-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; word-break: break-all; }
.tool-facts--mono { font: 13px/1.6 var(--font-mono); }
.tool-details summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--color-brand); }
.tool-details .tool-params { margin-top: 8px; }
@media (max-width: 900px) { .tool-layout { grid-template-columns: minmax(0, 1fr); } .tool-panel { position: static; } }
@media (max-width: 700px) { .tool-panel { padding: 24px; } .tool-layout .form { padding: 24px; } .tool-layout .form .btn { width: 100%; } }

/* ---------- modern motion: reveal, marquee, code stream, glow ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.logos { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .logos__track { animation: abir-marquee 40s linear infinite; }
  .logos:hover .logos__track { animation-play-state: paused; }
  .logos__list, .logos__list[aria-hidden] { display: flex; flex-wrap: nowrap; padding-right: 48px; }
  .logos .container { max-width: none; padding-inline: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  @keyframes abir-marquee { to { transform: translateX(-50%); } }

  @keyframes abir-line-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
  .code-box__body > div, .code-box__row { animation: abir-line-in 0.4s ease-out both; }
  .code-box__body > div:nth-child(1) { animation-delay: 0.3s; }
  .code-box__body > div:nth-child(2) { animation-delay: 0.45s; }
  .code-box__body > div:nth-child(3) { animation-delay: 0.6s; }
  .code-box__body > div:nth-child(4) { animation-delay: 0.75s; }
  .code-box__body > div:nth-child(5) { animation-delay: 0.9s; }
  .code-box__row:nth-of-type(3) { animation-delay: 1.2s; }
  .code-box__row:nth-of-type(4) { animation-delay: 1.45s; }
  .code-box__row:nth-of-type(5) { animation-delay: 1.7s; }
  @keyframes abir-pulse { 50% { opacity: 0.4; } }
  /* Only the dot pulses, so the label keeps full contrast. */
  .code-box__live i { animation: abir-pulse 1.6s ease-in-out infinite; }

  .card:hover, .tool:has(a):hover { box-shadow: 0 12px 32px rgba(10, 22, 40, 0.18), 0 0 0 1px color-mix(in srgb, var(--color-brand) 35%, transparent), 0 8px 40px -8px color-mix(in srgb, var(--color-brand) 45%, transparent); }
}

/* ---------- floating WhatsApp button (label shows on wider screens, icon only on phones) ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; border-radius: var(--radius-pill); background: #0f7a3a; color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(10, 22, 40, 0.25); }
.wa-float svg { flex: none; }
.wa-float__label { display: flex; flex-direction: column; padding-right: 6px; line-height: 1.15; }
.wa-float__label b { font: 700 15px var(--font-display); }
.wa-float__label small { font-size: 12px; }
/* Darker WhatsApp green: white text needs 4.5:1 (the brand #25d366 gives 2:1). */
.wa-float:hover { background: #0b6630; }
.wa-float:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; }
.wa-float__sr { display: none; }
@media (max-width: 700px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float__label { display: none; } .wa-float__sr { display: block; } }
@media (prefers-reduced-motion: no-preference) {
  .wa-float { transition: transform 0.2s ease, background-color 0.2s ease; }
  .wa-float:hover { transform: translateY(-2px); }
  @keyframes abir-wa-ping { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }
  .wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: abir-wa-ping 2.4s ease-out 1s 3; pointer-events: none; }
}

/* ---------- cookie banner ---------- */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; gap: 14px; width: min(420px, calc(100% - 40px)); padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-raised); box-shadow: var(--shadow-overlay); color: var(--color-ink); }
.cookie[hidden], .cookie__prefs[hidden] { display: none; }
.cookie__text { font-size: 14px; line-height: 1.5; color: var(--color-ink-muted); }
.cookie__prefs { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cookie__prefs label { display: flex; align-items: center; gap: 8px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__actions .btn { flex: 1 1 auto; }
.cookie__title { font: 700 16px var(--font-display); color: var(--color-ink); }
.cookie--notice .cookie__actions .btn { flex: 0 0 auto; min-width: 96px; }
.link-btn { padding: 6px 0; border: 0; background: none; font: inherit; color: var(--color-steel); cursor: pointer; }
.link-btn:hover { color: var(--color-paper-white); }
@media (max-width: 560px) { .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; } }
@media (prefers-reduced-motion: no-preference) {
  @keyframes abir-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .cookie:not([hidden]) { animation: abir-rise 0.35s ease-out; }
}

/* ---------- blog post: cover, author card, resource promo ---------- */
.post-cover { margin: 0 0 8px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.author-card { align-items: center; text-align: center; gap: 12px; padding: 24px; }
.author-card .author-card__photo { margin: 0; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: top; background: color-mix(in srgb, var(--color-brand) 12%, var(--color-surface-raised)); }
.author-card p { font-size: 15px; line-height: 1.6; }
.author-card b { color: var(--color-ink); }
.author-card__links { display: flex; justify-content: center; gap: 16px; }
.author-card--inline { display: none; margin-top: 16px; }
@media (max-width: 1024px) {
  .author-card--side { display: none; }
  .author-card--inline { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; align-items: start; text-align: left; }
  .author-card--inline .author-card__photo { grid-row: span 2; width: 72px; height: 72px; }
  .author-card--inline .author-card__links { justify-content: flex-start; }
}

/* ---------- video player (poster first, player loads on click) ---------- */
.video-wrap { max-width: 960px; }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-midnight-navy); box-shadow: var(--shadow-overlay); }
.video__poster, .video__media { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 22, 40, 0.7)); pointer-events: none; }
.video.is-playing::after { display: none; }
.video__play { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; border: 0; background: none; cursor: pointer; }
.video__icon { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; padding-left: 4px; border-radius: 50%; background: var(--color-electric-blue); color: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18), 0 12px 32px rgba(10, 22, 40, 0.4); }
.video__play:focus-visible .video__icon { outline: 3px solid #fff; outline-offset: 4px; }
.video__title { position: absolute; left: 20px; bottom: 16px; z-index: 1; margin: 0; font: 600 15px var(--font-display); color: #fff; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .video__icon { transition: transform 0.2s ease; }
  .video__play:hover .video__icon { transform: scale(1.08); }
}
@media (max-width: 560px) { .video__icon { width: 60px; height: 60px; } }

/* ---------- newsletter card (blog sidebar) ---------- */
.newsletter { gap: 12px; }
.newsletter h3 { font-size: 20px; }
.newsletter .btn { width: 100%; }
@media (max-width: 1024px) { .post-layout .newsletter { display: none; } .side-sticky { position: static; } }
/* Short screens: the block would not fit under the header, so it scrolls normally. */
@media (max-height: 840px) { .side-sticky { position: static; } }

/* ---------- about page ---------- */
.about-hero .about-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 48px; align-items: center; }
.about-hero__copy { display: flex; flex-direction: column; gap: 10px; }
.about-hero__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
@media (max-width: 900px) { .about-hero .about-hero__inner { grid-template-columns: minmax(0, 1fr); } .about-hero__photo { max-width: 360px; order: -1; } }

/* ---------- comments ---------- */
.post-main { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.comments { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; border-top: 1px solid var(--color-border); }
.comments__title { font-size: 28px; }
.comments__list, .comments__list .children { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.comments__list .children { margin-top: 16px; padding-left: 24px; }
.comment-body { padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-raised); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; font-size: 13px; color: var(--color-ink-muted); }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font: 700 15px var(--font-display); color: var(--color-ink); font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--color-ink-muted); text-decoration: none; }
.comment-content { font-size: 15px; line-height: 1.6; color: var(--color-ink); }
.comment-content p + p { margin-top: 8px; }
.reply { margin-top: 10px; font-size: 14px; font-weight: 600; }
.comment-awaiting-moderation { display: block; margin-top: 6px; font-size: 13px; color: var(--color-ink-muted); }
.comment-respond { display: flex; flex-direction: column; gap: 12px; }
.comment-reply-title { font-size: 22px; }
.comment-reply-title small { margin-left: 8px; font-size: 14px; font-weight: 600; }
.comment-form p { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.comment-form label { font-size: 14px; font-weight: 600; color: var(--color-ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--color-input-line); border-radius: var(--radius-sm); background: var(--color-surface-raised); font: 400 15px var(--font-body); color: var(--color-ink); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .comment-form-cookies-consent { flex-direction: row; align-items: flex-start; gap: 8px; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; color: var(--color-ink-muted); }
.comment-form .form-submit { flex-direction: row; }
