/* ===========================================================
   bestpositions4you — redesign v3
   "GALLERY" — clean white canvas built around black line-art.
   White paper, near-black ink, one bold accent. Layout serves the art.
   =========================================================== */

:root {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* GALLERY palette (light) */
  --paper: #ffffff;
  --paper-2: #f4f3ef;       /* tinted band / gallery plate */
  --card: #ffffff;
  --plate: #f1f0ec;         /* illustration plate bg */
  --ink: #141416;
  --ink-soft: #56565e;
  --ink-faint: #9a9aa2;
  --line: rgba(20, 20, 22, 0.14);
  --line-soft: rgba(20, 20, 22, 0.07);

  --accent: #ff2d72;        /* bold magenta-pink */
  --accent-ink: #ffffff;
  --pink: #ff2d72;
  --blush: #ff2d72;
  --plum: #ff2d72;

  /* dark footer block */
  --dark-bg: #141416;
  --dark-2: #1d1d20;
  --on-dark: #f4f3ef;
  --on-dark-soft: #a3a3ab;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 8px;
  --shadow: 0 30px 70px -40px rgba(20, 16, 24, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* illustration samples */
  --illo-rose: url("assets/illo-rose-ink.png");
  --illo-flower: url("assets/illo-flower-ink.png");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

::selection { background: var(--accent); color: var(--accent-ink); }

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

/* ---------- typography ---------- */
.serif { font-family: var(--font-display); font-weight: 700; }
.italic { font-style: normal; font-weight: 500; }

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--accent);
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 18px;
}
.eyebrow.muted { color: var(--ink-faint); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow.no-rule::before { display: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.03em;
}

.display { font-size: clamp(46px, 9vw, 130px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 700; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 128px); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; }

.brand {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 21px; line-height: 1; letter-spacing: -0.05em;
  color: var(--ink); white-space: nowrap; text-transform: lowercase;
}
.brand .num {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  width: 1.5em; height: 1.5em; border-radius: 5px; margin: 0 0.18em; font-size: 0.82em; font-style: normal;
}
.brand .dot { display: none; }

.nav-links { display: flex; gap: 2px; margin-left: 14px; }
.nav-links a { padding: 8px 14px; font-size: 14px; font-weight: 600; border-radius: 6px; color: var(--ink-soft); transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--line-soft); }
.nav-links a.active { color: var(--accent); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; color: var(--ink-faint); font-size: 13.5px; font-weight: 500; background: transparent; transition: border-color 0.2s, color 0.2s; }
.search:hover { border-color: var(--ink-soft); color: var(--ink-soft); }

.btn { border: 0; background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; letter-spacing: -0.01em; transition: transform 0.18s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s, opacity 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.on-dark { background: var(--ink); color: var(--paper); }
.btn.lg { padding: 15px 26px; font-size: 15.5px; }

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

.mobile-menu { display: none; flex-direction: column; padding: 8px var(--gutter) 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-menu a { padding: 14px 4px; font-size: 22px; font-weight: 700; font-family: var(--font-display); letter-spacing: -0.02em; border-bottom: 1px solid var(--line-soft); }

@media (max-width: 920px) {
  .nav-links, .nav-right .search, .nav-right .btn.ghost { display: none; }
  .burger { display: flex; }
  .mobile-menu.open { display: flex; }
}

/* ============================================================
   FOOTER (dark ink block — grounds the white page)
   ============================================================ */
.footer { background: var(--dark-bg); color: var(--on-dark); padding-block: clamp(56px, 8vw, 100px) 40px; }
.footer .display { color: var(--on-dark); }
.footer .brand { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.footer-col h4 { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-soft); margin: 0 0 16px; font-weight: 700; }
.footer-col a { display: block; padding: 6px 0; color: var(--on-dark); opacity: 0.8; font-size: 15px; transition: opacity 0.2s, color 0.2s, padding 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--accent); padding-left: 6px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--on-dark-soft); font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }

/* ============================================================
   illustration plates (THE point of this design)
   ============================================================ */
.ph {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 0;                 /* hides stray placeholder text nodes */
}
.ph.warm {
  background-color: var(--plate);
  background-image: var(--illo-rose);
  background-size: 64% auto;
  background-position: center 56%;
  background-repeat: no-repeat;
}
.ph .lvl { font-size: 10px; }   /* re-enable badge text */

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(40px, 6vw, 88px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.18fr 0.82fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero h1 { margin-bottom: 34px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); max-width: 46ch; margin: 0 0 32px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta { margin-top: 44px; display: flex; gap: 38px; flex-wrap: wrap; }
.hero-meta .stat b { font-family: var(--font-display); font-size: 36px; font-weight: 700; display: block; line-height: 1; letter-spacing: -0.03em; }
.hero-meta .stat span { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background-color: var(--plate);
  background-image: var(--illo-flower);
  background-size: 78% auto;
  background-position: center 44%;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-visual .quote {
  position: absolute; inset: auto 26px 26px 26px;
  color: var(--ink);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px); line-height: 1.1; letter-spacing: -0.02em;
}
.hero-visual .quote em { color: var(--accent); font-style: normal; }
.hero-visual .tag { position: absolute; top: 22px; left: 22px; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.curve { display: none; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16/12; order: -1; }
}

/* ============================================================
   SECTION HEAD + TOPIC GRID
   ============================================================ */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(32px, 5.5vw, 64px); }
.sec-head h2 .italic { color: var(--accent); }
.sec-head p { color: var(--ink-soft); max-width: 40ch; margin: 0; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.topic { background: var(--card); padding: 32px 28px 28px; min-height: 220px; display: flex; flex-direction: column; transition: background 0.3s var(--ease); position: relative; }
.topic::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width 0.35s var(--ease); }
.topic:hover { background: var(--paper-2); }
.topic:hover::after { width: 100%; }
.topic .idx { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.1em; font-weight: 600; }
.topic h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.08; margin: 16px 0 12px; letter-spacing: -0.02em; }
.topic p { font-size: 14.5px; color: var(--ink-soft); margin: 0; flex: 1; }
.topic .go { margin-top: 20px; font-size: 12.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 7px; transition: gap 0.2s; }
.topic:hover .go { gap: 13px; }
@media (max-width: 860px) { .topic-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .topic-grid { grid-template-columns: 1fr; } }

/* ============================================================
   POSITION CARDS
   ============================================================ */
.pos-band { background: var(--paper-2); }
.pos-band .eyebrow { color: var(--accent); }

.pos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.3s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard .pcard-img {
  aspect-ratio: 5/4; position: relative;
  background-color: var(--plate);
  background-image: var(--illo-rose);
  background-size: 70% auto; background-position: center 52%; background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
  font-size: 0;
}
.pos-grid .pcard:nth-child(3n+2) .pcard-img { background-image: var(--illo-flower); }
.pos-grid .pcard:nth-child(4n+4) .pcard-img { background-image: var(--illo-flower); background-size: 64% auto; }
.pcard .pcard-body { padding: 16px 18px 20px; }
.pcard .lvl { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; background: var(--ink); color: var(--paper); padding: 5px 9px; border-radius: 4px; }
.pcard h3 { font-size: 21px; color: var(--ink); letter-spacing: -0.02em; }
.pcard .meta { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
.pcard .meta span { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
@media (max-width: 980px) { .pos-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pos-grid { grid-template-columns: 1fr; } }

.heat { display: inline-flex; gap: 3px; }
.heat i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.25; }
.heat i.on { opacity: 1; color: var(--accent); }

/* ============================================================
   FEATURE ROW
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.feature .ph { aspect-ratio: 4/3; }
.feature h2 { font-size: clamp(30px, 4.6vw, 56px); margin-bottom: 20px; letter-spacing: -0.03em; }
.feature h2 .italic { color: var(--accent); }
.feature p { color: var(--ink-soft); margin-bottom: 24px; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } }

/* article rows (archive) */
.alist { border-top: 1px solid var(--line); }
.arow { display: grid; grid-template-columns: 70px 1.6fr 1fr auto; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding-left 0.25s var(--ease); }
.arow:hover { padding-left: 12px; }
.arow:hover h3 { color: var(--accent); }
.arow .anum { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink-faint); }
.arow h3 { font-size: clamp(21px, 2.4vw, 30px); transition: color 0.2s; letter-spacing: -0.02em; }
.arow .acat { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.arow .adesc { font-size: 14.5px; color: var(--ink-soft); margin-top: 5px; }
.arow .ameta { font-size: 13px; color: var(--ink-faint); text-align: right; white-space: nowrap; }
@media (max-width: 760px) {
  .arow { grid-template-columns: 40px 1fr; gap: 14px; }
  .arow .adesc, .arow .ameta { grid-column: 2; }
  .arow .ameta { text-align: left; }
}

/* chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); padding: 9px 16px; border-radius: 100px; font-size: 13.5px; font-weight: 600; transition: 0.2s; }
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   ARTICLE (single)
   ============================================================ */
.art-hero { padding-top: clamp(30px, 5vw, 60px); }
.art-title { font-size: clamp(38px, 7vw, 94px); line-height: 0.96; max-width: 16ch; letter-spacing: -0.045em; }
.art-title em { color: var(--accent); font-style: normal; }
.art-sub { font-size: clamp(18px, 1.8vw, 23px); color: var(--ink-soft); max-width: 60ch; margin: 30px 0 0; text-wrap: pretty; }
.art-byline { display: flex; gap: 24px; align-items: center; margin-top: 32px; font-size: 14px; color: var(--ink-soft); flex-wrap: wrap; }
.art-byline .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, var(--pink), #ffb02e); }
.art-cover { aspect-ratio: 21/9; margin-top: 48px; }
.art-cover.ph.warm { background-size: 30% auto; }

.art-body { max-width: 720px; margin: 0 auto; }
.art-body p { font-size: 19px; line-height: 1.75; margin: 0 0 26px; color: var(--ink); }
.art-body p:first-of-type::first-letter { font-family: var(--font-display); font-weight: 700; font-size: 4.4em; float: left; line-height: 0.78; padding: 6px 14px 0 0; color: var(--accent); }
.art-body h2 { font-size: clamp(27px, 3.4vw, 38px); margin: 50px 0 18px; letter-spacing: -0.03em; }
.art-body h3 { font-size: 24px; margin: 34px 0 12px; }
.art-body blockquote { margin: 44px 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.14; letter-spacing: -0.03em; }
.art-body ul { padding-left: 0; list-style: none; margin: 0 0 26px; }
.art-body li { padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--line-soft); }
.art-body li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 2px; background: var(--accent); }
.callout { background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 26px 28px; margin: 40px 0; }
.callout .eyebrow { margin-bottom: 10px; }
.callout p { font-size: 16px !important; margin: 0 !important; color: var(--ink-soft) !important; }

.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 60; width: 0; transition: width 0.1s linear; }

/* article full layout */
.art-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); max-width: 1080px; margin: 0 auto; align-items: start; }
.art-aside { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 32px; }
.toc-label, .share-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); margin-bottom: 14px; }
.toc { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { font-size: 14px; color: var(--ink-soft); padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.3; transition: color 0.2s, border-color 0.2s; cursor: pointer; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.share-rail { display: flex; gap: 8px; flex-wrap: wrap; }
.share-rail button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); border-radius: 8px; transition: 0.2s; }
.share-rail button:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.share-rail button.copied { color: var(--accent); border-color: var(--accent); }
.art-main { min-width: 0; }
.art-main .art-body { margin: 0; max-width: 680px; }
.art-section { scroll-margin-top: 92px; }

.author-card { display: flex; gap: 20px; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 48px 0; max-width: 680px; }
.author-card .av-lg { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(140deg, var(--pink), #ffb02e); }
.author-card .meta .role { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.author-card .meta h4 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 4px 0 6px; letter-spacing: -0.02em; }
.author-card .meta p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

.faq { max-width: 680px; margin: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: none; border: 0; text-align: left; padding: 22px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 22px); color: var(--ink); letter-spacing: -0.02em; }
.faq-q .ic { flex-shrink: 0; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease); }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { font-size: 16px; color: var(--ink-soft); margin: 0 0 22px; line-height: 1.65; }

.comments { max-width: 680px; margin: 0; }
.comment { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.comment .c-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.comment .c-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment .c-head strong { font-size: 14.5px; font-weight: 700; }
.comment .c-head span { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.comment p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.comment .c-actions { margin-top: 8px; display: flex; gap: 16px; }
.comment .c-actions button { background: none; border: 0; color: var(--ink-faint); font-size: 12.5px; font-weight: 600; padding: 0; transition: color 0.2s; }
.comment .c-actions button:hover { color: var(--accent); }
.comment-form { margin-top: 28px; display: flex; gap: 14px; }
.comment-form .c-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(140deg, var(--accent), #ffb02e); }
.comment-form .cf-body { flex: 1; }
.comment-form textarea { width: 100%; resize: vertical; min-height: 92px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); font-family: inherit; font-size: 15px; outline: none; transition: border-color 0.2s; }
.comment-form textarea:focus { border-color: var(--ink-soft); }
.comment-form textarea::placeholder { color: var(--ink-faint); }
.comment-form .cf-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.art-section-head { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 22px; }

@media (max-width: 900px) {
  .art-layout { grid-template-columns: 1fr; gap: 0; }
  .art-aside { position: static; flex-direction: row; flex-wrap: wrap; gap: 28px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .toc { display: none; }
}

/* ============================================================
   GLOSSARY
   ============================================================ */
.gloss-hero { padding-block: clamp(40px, 6vw, 80px) 0; }
.alpha { display: flex; flex-wrap: wrap; gap: 5px; margin: 30px 0 10px; }
.alpha button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); font-family: var(--font-display); transition: 0.2s; }
.alpha button:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.alpha button:disabled { opacity: 0.25; cursor: default; }
.alpha button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gloss-letter { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.gloss-letter .gl { font-family: var(--font-display); font-weight: 700; font-size: clamp(60px, 10vw, 116px); line-height: 0.8; color: var(--accent); letter-spacing: -0.04em; }
.gloss-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 40px; }
.gterm { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.gterm dt { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 6px; letter-spacing: -0.02em; }
.gterm dd { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 720px) {
  .gloss-letter { grid-template-columns: 1fr; gap: 8px; }
  .gloss-terms { grid-template-columns: 1fr; }
}

/* ============================================================
   NEWSLETTER (accent block)
   ============================================================ */
.news { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: clamp(36px, 6vw, 76px); display: grid; grid-template-columns: 1fr 0.9fr; gap: 40px; align-items: center; }
.news h2 { font-size: clamp(30px, 4.6vw, 60px); color: var(--accent-ink); letter-spacing: -0.035em; }
.news p { margin: 14px 0 0; opacity: 0.9; font-weight: 500; }
.news-form { display: flex; gap: 8px; background: rgba(255,255,255,0.16); padding: 7px; border-radius: 8px; }
.news-form input { flex: 1; border: 0; background: transparent; padding: 12px 16px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--accent-ink); outline: none; }
.news-form input::placeholder { color: rgba(255,255,255,0.62); }
.news .btn { background: var(--ink); color: var(--paper); }
@media (max-width: 720px) { .news { grid-template-columns: 1fr; } }

.rv { opacity: 1; }
.tac { text-align: center; }
.mt0 { margin-top: 0; }

/* ── Linki w treści (globalne — set:html nie łapie scoped styles) + mobile ── */
.art-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; font-weight: 500; }
.art-body a:hover { text-decoration-thickness: 2px; }
.art-body a.auto-link { font-weight: 700; }
.art-body img, .art-body video, .art-cover img { max-width: 100%; height: auto; border-radius: 10px; }
.art-body { overflow-wrap: break-word; }
.art-body table { display: block; overflow-x: auto; max-width: 100%; }
@media (max-width: 600px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .art-body { font-size: 17px; }
  .art-title { font-size: clamp(30px, 8vw, 44px) !important; }
}

/* ── Dropdown nav + mobile hamburger (globalne — fix scope) ── */
.has-drop { position: relative; }
.has-drop > a::after { content: " ▾"; font-size: 11px; color: var(--ink-faint); }
.drop { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--ink); border-radius: 12px; padding: 8px; display: none; flex-direction: column; gap: 2px; box-shadow: 0 18px 50px rgba(0,0,0,.25); z-index: 60; }
.has-drop:hover .drop, .has-drop:focus-within .drop { display: flex; }
.drop a { color: var(--on-dark); padding: 9px 14px; border-radius: 8px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.drop a:hover { background: rgba(255,255,255,.08); color: #fff; }
.drop a strong { color: var(--blush); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); display: block; border-radius: 2px; }
@media (max-width: 920px) {
  .burger { display: flex !important; }
  .nav-links.open { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--paper); padding: 14px 20px 20px; border-bottom: 1px solid var(--line); gap: 2px; box-shadow: 0 20px 40px rgba(0,0,0,.12); max-height: 82vh; overflow-y: auto; }
  .nav-links.open .has-drop { width: 100%; }
  .nav-links.open .has-drop > a::after { content: ""; }
  .nav-links.open .drop { position: static; display: flex !important; background: transparent; box-shadow: none; padding: 2px 0 10px 16px; min-width: 0; }
  .nav-links.open .drop a { color: var(--ink-soft); padding: 7px 10px; }
  .nav-links.open .drop a strong { color: var(--accent); }
  .nav-links.open > a, .nav-links.open .has-drop > a { font-size: 17px; padding: 10px 8px; width: 100%; }
}

/* ── Mobile: anti-overflow (strona nie może się rozjeżdżać) ── */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }
img, video, iframe, embed, object, svg { max-width: 100%; height: auto; }
.art-body img, .art-body video, .art-body iframe, .art-body table { max-width: 100% !important; }
.wrap, .nav-inner, .footer .wrap, main, section { max-width: 100%; box-sizing: border-box; }
.art-body { word-break: break-word; }
@media (max-width: 520px) {
  .nav-inner { gap: 10px; }
}

/* ── Śródtekstowe wstawki „You might also like" (semantyczne) ── */
.inline-related { display: block; margin: 30px 0; padding: 16px 20px; background: var(--paper-2); border-left: 3px solid var(--accent); border-radius: 8px; }
.inline-related .ir-eyebrow { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 4px; font-weight: 700; }
.inline-related a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 16px; line-height: 1.4; }
.inline-related a:hover { text-decoration: underline; }
/* burger pewnie widoczny na mobile + nav-right nie chowa go */
@media (max-width: 920px) { .nav-right { display: flex !important; align-items: center; gap: 8px; } .nav-right .search { display: inline-flex !important; } }
