/* ==========================================================================
   Cooboo Research — shared design system
   Refined Japanese academic-corporate. Hairlines, generous whitespace.
   ========================================================================== */

:root {
  /* Paper palette — warm whites, deep ink */
  --paper:        #FAFAF7;
  --paper-2:      #F3F2EC;
  --paper-3:      #ECEAE2;
  --rule:         #D9D6CC;
  --rule-soft:    #E5E2D9;
  --ink:          #1A1B19;
  --ink-2:        #2D2F2B;
  --ink-3:        #5A5C56;
  --ink-4:        #8A8B83;
  --ink-5:        #B5B5AC;

  /* Cooboo green — used like a seal, not a wash */
  --green:        oklch(42% 0.07 155);
  --green-deep:   oklch(34% 0.07 155);
  --green-pale:   oklch(95% 0.02 155);
  --green-rule:   oklch(70% 0.04 155);

  /* Accents (used very sparingly for tier badges) */
  --tier-1:       oklch(42% 0.07 155);   /* green — high-confidence */
  --tier-2:       oklch(50% 0.09 70);    /* warm ochre */
  --tier-3:       oklch(50% 0.05 30);    /* terracotta-rust */

  /* Typography */
  --font-sans:    "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif:   "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-mono:    "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;

  --shadow-sm:    0 1px 0 rgba(26, 27, 25, 0.04);
  --shadow-md:    0 1px 2px rgba(26, 27, 25, 0.04), 0 8px 24px rgba(26, 27, 25, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-feature-settings: "palt";
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }

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

/* ============================== layout ================================== */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.wrap-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding: 0 24px; }
}

.row { display: flex; }
.col { flex: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 2px;
}

.serif { font-family: var(--font-serif); }
.mono  { font-family: var(--font-mono); }

/* ============================== header ================================== */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(250, 250, 247, 0.92);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-header .brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  letter-spacing: 0.02em;
}
.site-header .brand .mark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.site-header .brand .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-left: 1px solid var(--rule);
  padding-left: 14px;
}
.site-header nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.site-header nav a {
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
}
.site-header nav a:hover { color: var(--green); }
.site-header nav a.active {
  color: var(--green);
}
.site-header nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--green);
}
@media (max-width: 720px) {
  .site-header nav { display: none; }
  .site-header .bar { height: 60px; }
}

/* ============================ breadcrumb ================================ */

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  padding: 24px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .here { color: var(--ink); }

/* ============================== hero ==================================== */

.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  margin: 24px 0 24px;
  color: var(--ink);
  text-wrap: pretty;
}
.hero .lede {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============================== typography ============================== */

h2.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}
h3.subhead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 8px;
}

p { margin: 0 0 1em; text-wrap: pretty; }

.lead { font-size: 17px; line-height: 1.95; color: var(--ink-2); }

/* ============================== rules =================================== */

.rule        { border: 0; border-top: 1px solid var(--rule); margin: 56px 0; }
.rule-soft   { border: 0; border-top: 1px solid var(--rule-soft); margin: 32px 0; }
.rule-double { border: 0; border-top: 3px double var(--rule); margin: 56px 0; }
.rule-vert   { border: 0; border-left: 1px solid var(--rule); width: 0; align-self: stretch; }

/* ============================ cards / blocks ============================ */

.block {
  border: 1px solid var(--rule);
  background: #FFFFFF;
  padding: 36px;
}
.block.tinted { background: var(--paper-2); }

.meta-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--rule);
}
.meta-grid > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}
.meta-grid > div:nth-child(odd) {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
@media (max-width: 720px) {
  .meta-grid { grid-template-columns: 1fr; }
  .meta-grid > div:nth-child(odd) { padding-bottom: 0; border: 0; }
}

/* ============================ tier badges =============================== */

.tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-weight: 500;
}
.tier-1 { color: var(--tier-1); }
.tier-2 { color: var(--tier-2); }
.tier-3 { color: var(--tier-3); }
.tier .num {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.tier-1 .num { color: #FFF; background: var(--tier-1); }
.tier-2 .num { color: #FFF; background: var(--tier-2); }
.tier-3 .num { color: #FFF; background: var(--tier-3); }

/* ============================ buttons =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--paper); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }

/* on dark backgrounds */
.btn-on-dark {
  color: var(--paper);
  border-color: rgba(255,255,255,0.32);
  background: transparent;
}
.btn-on-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--paper);
  color: var(--paper);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.2s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-link:hover { gap: 14px; color: var(--green); border-color: var(--green); }

/* ============================ TOC dotted leaders ======================== */

.toc { list-style: none; padding: 0; margin: 0; }
.toc li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}
.toc li .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  width: 56px;
  flex-shrink: 0;
}
.toc li .title { color: var(--ink); flex-shrink: 0; }
.toc li .leader {
  flex: 1;
  border-bottom: 1px dotted var(--rule);
  transform: translateY(-4px);
  margin: 0 8px;
}
.toc li .pg {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.toc li:hover .title { color: var(--green); }

/* =========================== figure placeholder ========================== */

.figure-ph {
  background:
    repeating-linear-gradient(
      135deg,
      var(--paper-2) 0px,
      var(--paper-2) 8px,
      var(--paper-3) 8px,
      var(--paper-3) 9px
    );
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
  position: relative;
  min-height: 220px;
}
.figure-ph::before, .figure-ph::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--ink-3);
}
.figure-ph::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.figure-ph::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.figure-ph .label {
  background: var(--paper);
  padding: 8px 14px;
  border: 1px solid var(--rule);
}

.fig-caption {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 12px;
  line-height: 1.7;
  font-family: var(--font-sans);
}
.fig-caption b { color: var(--ink); font-weight: 500; }

/* ============================ footer ==================================== */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 120px;
  padding: 56px 0 40px;
  font-size: 13px;
  color: var(--ink-3);
  background: var(--paper-2);
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--ink-3); }
.site-footer a:hover { color: var(--green); }
.site-footer .small {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
}
@media (max-width: 720px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .site-footer .small { flex-direction: column; gap: 8px; }
}

/* ============================ caveat box ================================ */

.caveat {
  border-left: 2px solid var(--green);
  padding: 18px 22px;
  background: var(--paper-2);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.caveat .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
  display: block;
  font-weight: 600;
}

/* ============================ tag chip ================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--ink-3);
}

/* ============================ stats ===================================== */

.stat {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}
.stat .v {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat .v small {
  font-size: 18px;
  color: var(--ink-3);
  margin-left: 4px;
}
.stat .l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-top: 10px;
  line-height: 1.5;
}

/* ============================ utility =================================== */

.muted { color: var(--ink-3); }
.tight { line-height: 1.55; }
.center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-0  { margin-bottom: 0; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* hairline corner ornament for a paper-y feel */
.corner-frame {
  position: relative;
}
.corner-frame::before, .corner-frame::after,
.corner-frame > .cf-tr, .corner-frame > .cf-bl {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--ink);
  pointer-events: none;
}
.corner-frame::before  { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; }
.corner-frame::after   { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.corner-frame > .cf-tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.corner-frame > .cf-bl { bottom: -1px; left: -1px;  border-right: 0; border-top: 0; }

/* table */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.tbl th, .tbl td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.tbl th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.tbl tr:hover td { background: var(--paper-2); }

/* monospace tag/code chip used inline */
code, .code-inline {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  color: var(--ink-2);
}


/* ============================================================
   .download-caveat — short caveat shown directly under PDF CTAs
   (light theme, used across hub / prism / story / versions pages)
   ============================================================ */
.download-caveat {
  margin: 14px 0 0;
  padding: 12px 16px;
  font-family: var(--font-sans, "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 12.5px;
  line-height: 1.78;
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--green-rule);
  border-radius: 4px;
  letter-spacing: 0.01em;
}
.download-caveat b { color: var(--ink-2); font-weight: 600; }


/* ============================================================
   Mobile responsiveness safety net
   Applied to all pages using cooboo-research.css
   ============================================================ */

/* Prevent horizontal page overflow as a last-resort safety net */
html { overflow-x: clip; }
body { overflow-x: clip; }

/* Media should never exceed its container */
img, svg, video, canvas, iframe, picture {
  max-width: 100%;
  height: auto;
}

/* Tables default to natural width but capped at container */
table { max-width: 100%; }

/* Long monospace strings (PDF filenames, SHA-256, URLs, citation boxes) — allow breaking */
code,
.codebox,
.citebox,
.url,
.history-tbl .pdf,
.history-tbl .pdf a,
.sha .row code,
.download-caveat,
pre {
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* Mobile breakpoint adjustments */
@media (max-width: 720px) {
  /* Section padding compression */
  section { padding-left: 0; padding-right: 0; }

  /* History table — restructure as stacked cards on mobile (rows become cards) */
  .history-tbl,
  .history-tbl thead,
  .history-tbl tbody,
  .history-tbl tr,
  .history-tbl th,
  .history-tbl td { display: block !important; width: 100% !important; }
  .history-tbl thead { display: none !important; }
  .history-tbl tr {
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--paper);
  }
  .history-tbl tr.current { background: #FFF; border-color: var(--green); }
  .history-tbl td {
    padding: 6px 0 !important;
    border: 0 !important;
    font-size: 12.5px;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
  .history-tbl td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--ink-3);
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .history-tbl td.pdf a { font-size: 10.5px; word-break: break-all; }

  /* Action button rows wrap on mobile */
  .actions { flex-wrap: wrap; }

  /* Section number labels — allow wrap */
  .section-num { font-size: 10.5px; word-break: keep-all; }

  /* Rules grid (publication policy) → single column */
  .rules { grid-template-columns: 1fr !important; }

  /* Cite policy columns → stack */
  .cite-policy .cols { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Featured paper card — ensure buttons stack */
  .featured .card { grid-template-columns: 1fr !important; min-height: 0 !important; }
  .featured .left, .featured .right { padding: 32px 24px !important; }
  .featured .actions { flex-direction: column; align-items: stretch; }

  /* PRISM hub cards / cluster grids → single column */
  .pcard { grid-template-columns: 1fr !important; }
  .pcard .pleft { border-right: 0 !important; border-bottom: 1px solid var(--rule); }

  /* Timeline rows on versions page */
  .tl-row { display: block !important; }
  .tl-row .actions-col { flex-direction: row; flex-wrap: wrap;  padding-top: 12px; }
}

@media (max-width: 480px) {
  .wrap, .wrap-narrow { padding: 0 16px !important; }
}


/* ============================================================
   Round 2 mobile fixes — handle long PDF filenames and long URLs
   in footer links, buttons, art-cells, citation blocks
   ============================================================ */

/* Long content in footer text and citation block links — allow break */
.site-footer a,
.site-footer li,
.site-footer p,
.cite-cards a,
.findings-3col a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* art-cell and block: only allow breaking on long text content (paragraphs, codes, urls), NOT on labels/spans */
.art-cell p,
.art-cell .url,
.art-cell code,
.block p,
.block code,
.block .url {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Buttons: never break text on desktop; only allow break on mobile via media query */
.btn { white-space: normal; }

/* Headings: keep-all prevents ugly mid-word breaks on Japanese text.
   Safe because *, *::before, *::after { min-width: 0 } globally prevents
   grid track inflation from unbreakable heading content. */
h1, h2, h3, h4 {
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 720px) {
  /* Footer: collapse to single column when very narrow */
  .site-footer .grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .site-footer h4 { font-size: 12px !important; }
  .site-footer li, .site-footer p, .site-footer a {
    font-size: 11.5px !important;
    line-height: 1.7 !important;
  }
  .site-footer .small {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 16px 0 !important;
  }

  /* Buttons containing long PDF filenames — shrink and allow wrap */
  .btn {
    font-size: 12px !important;
    padding: 12px 14px !important;
    min-height: 44px;
    line-height: 1.4;
    word-break: break-all;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .site-footer .grid { grid-template-columns: 1fr !important; }
  .site-footer h4 { margin-top: 16px; }
  .btn { font-size: 11.5px !important; padding: 10px 12px !important; }
}


/* ============================================================
   ROOT FIX: Grid/flex item min-width on mobile
   1fr has implicit min-width:auto which expands tracks to fit
   max-content of children. Force minmax(0,1fr) effect via min-width:0.
   ============================================================ */

/* All grid and flex items can shrink below their intrinsic min-content
   — applies on all viewports to prevent column inflation from long content */
*, *::before, *::after { min-width: 0; }

@media (max-width: 720px) {

  /* Convert any 1fr columns we set to honor min-width:0 */
  .pcard,
  .featured .card,
  .findings-3col,
  .invariant-grid,
  .inv-grid,
  .findings-grid,
  .pillars,
  .reader-map,
  .core .grid,
  .prism-hero .grid,
  .arc-hero .grid,
  .arc-hero .head,
  .cite-policy .cols,
  .rules,
  .stat-grid,
  .clusters,
  .surfaces,
  .scene-meta,
  .art-grid,
  .figs-grid,
  .cite-cards,
  .site-footer .grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Keep 2-col footer on tablet, 1-col on phone */
  @media (min-width: 481px) {
    .site-footer .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  }

  /* iconmark "PRISM" — restrain font on mobile so it can't push width */
  .pcard .pleft .iconmark {
    font-size: 32px !important;
  }

  /* Iconmark span "v" should not have extra spacing pushing width */
  .pcard .pleft { padding: 24px 20px !important; }
  .pcard .pmid, .pcard .pright { padding: 20px 20px !important; }
  .pcard .pleft .iconmark .ver { font-size: 10px !important; }
}


/* ============================================================
   Round 6 mobile fixes — section header flex layouts
   ============================================================ */

@media (max-width: 720px) {
  /* Section heads with flex (title + helper text) — stack vertically */
  .projects .head,
  .tiers .head,
  .head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  /* Helper paragraphs (.muted) max-width override */
  .head .muted,
  .head p {
    max-width: 100% !important;
  }
  /* Section heading sizes */
  h2.section-title { font-size: 26px !important; line-height: 1.5 !important; }
  /* Generic h2 inside sections */
  section h2 { font-size: 24px !important; line-height: 1.4 !important; word-break: keep-all; }
}
