/* page CSS — generated from the gated build (merged with live data components) */
  /* the app frame (sections-library.md, app-frame: the whole recipe) */
  .app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
  .app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
  .app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
  .app > .app__pane > :is(.ui-panel, .ui) { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
  @media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
  @media (max-width: 1023px) {
    .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .app > .app__pane--list { max-height: 252px; }
    .app > .app__pane--list::after { display: none; }
    .app .ui-win__side { display: none; }
    .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
    .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
  }
  @media (min-width: 1024px) and (max-width: 1279px) { .app .ui-win__rows li:nth-child(n+5) { display: none; } }
  @media (max-width: 639px) {
    .app.ui { grid-template-rows: minmax(0, 1fr); }
    .app > .app__pane--list { display: none; }
    .app > .app__pane + .app__pane { border-top: 0; }
  }
  /* the research tabs frame and the latest feed fill their screens; side by side from 640px */
  #research .frame--split, #latest .frame--lit { --ratio: 40%; }
  @media (min-width: 1024px) {
    #research .grid.fill, #latest .grid.fill { grid-template-rows: minmax(0, 1fr); }
  }
  @media (min-width: 640px) and (max-width: 1023px) {
    #research .grid.fill { grid-template-rows: auto minmax(0, 1fr); }
    #latest .grid.fill { grid-template-rows: minmax(0, 1fr); }
  }
  @media (min-width: 640px) {
    #research .grid.fill > .frame--split, #latest .grid.fill > .frame--lit { align-self: stretch; }
  }
  @media (max-width: 639px) { #contact .footer__lede { display: none; } }

  /* --- live data: Today strip (fed by ae-data.js from /today/) --- */
  .strip { display: grid; gap: 12px; margin-top: 26px; }
  .strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .strip__asof { font: 400 12px/1.4 var(--font-mono); color: var(--p-muted); }
  .ae-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 18px; }
  .ae-tile { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 2px 0 3px 16px; border-left: 1px solid rgba(236,243,238,.18); text-decoration: none; color: inherit; }
  .ae-tile:first-child { border-left: 0; padding-left: 0; }
  .ae-tile-name { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); }
  .ae-tile-value { font: 500 15px/1.3 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
  .ae-tile-value.ae-up { color: var(--p-accent); }
  .ae-tile-value.ae-dn { color: #e0756a; }
  .ae-tile-sub { font: 400 11.5px/1.5 var(--font-sans); color: var(--p-muted); }
  a.ae-tile:hover .ae-tile-name { color: var(--ink); }
  @media (min-width: 640px) and (max-width: 1279px) { .ae-tile-sub { display: none; } }
  @media (min-width: 640px) and (max-width: 1023px) { .ae-strip .ae-tile:nth-child(5) .ae-tile-sub { display: block; } }
  @media (min-width: 640px) and (max-width: 1023px) {
    .ae-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ae-tile { border-left: 0; padding-left: 0; }
    .ae-tile:nth-child(even) { border-left: 1px solid rgba(236,243,238,.18); padding-left: 16px; }
    .ae-strip .ae-tile:nth-child(5) { grid-column: span 2; }
  }
  @media (max-width: 639px) {
    .strip { margin-top: 18px; }
    .ae-strip { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .ae-tile { display: flex; align-items: baseline; gap: 12px; padding: 13px 2px; border-left: 0; border-top: 1px solid rgba(236,243,238,.16); }
    .ae-tile:first-child { border-top: 0; padding-left: 2px; }
    .ae-tile-value { margin-left: auto; text-align: right; }
    .ae-tile-sub { display: none; }
    .ae-tile:nth-child(5) { flex-wrap: wrap; }
    .ae-tile:nth-child(5) .ae-tile-sub { display: block; flex: 1 0 100%; margin-top: 2px; text-align: right; }
  }

  /* --- live data: desk card (mover / verdict / next print) --- */
  .pc--desk { position: static; width: 100%; padding: 20px 22px 10px; }
  .pc--desk .desk__block { padding: 13px 0 15px; border-top: 1px solid rgba(22,31,25,.14); display: grid; gap: 9px; }
  .pc--desk .desk__block:first-of-type { margin-top: 12px; }
  .pc--desk .pc__label, .desk__k { color: #5d6b62; }
  .desk__k { font: 500 11px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
  .desk__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .desk__rows li { display: grid; gap: 5px; }
  .ae-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .ae-tk { font: 600 15px/1.2 var(--font-mono); color: #16201a; text-decoration: none; letter-spacing: .02em; }
  a.ae-tk:hover { color: #1f7a54; }
  .pc--desk .ae-num { font: 500 13px/1.2 var(--font-mono); color: #16201a; }
  .pc--desk .ae-num.ae-up { color: #1f7a54; }
  .pc--desk .ae-num.ae-dn { color: #b4473c; }
  .ae-pill { font: 500 11px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: #1f7a54; border: 1px solid rgba(31,122,84,.45); padding: 4px 8px; border-radius: 3px; }
  .ae-meta { font: 400 12px/1.5 var(--font-sans); color: #5d6b62; margin: 0; }
  .ae-meta .ae-num { font-size: 12px; }

  #research .tabs { margin-top: var(--s-6); }
  #research .tabpanels { margin-top: var(--s-5); max-width: 46ch; min-height: 120px; }
  @media (max-width: 639px) { #research .tabpanels { min-height: 120px; } }
  @media (min-width: 640px) and (max-width: 1023px) {
    #latest .grid > :is(.rows, .frame--lit) { grid-column: span 6; }
  }
  @media (max-width: 639px) {
    #research .grid.fill, #latest .grid.fill { flex: 0 0 auto; }
    #research .frame--split { --ratio: 85%; }
    #latest .frame--lit { --ratio: 150%; }
  }
  #gate .mo-la__sub { color: var(--ink); }
  /* the archive frame in #latest */
  #latest .frame--lit { --ratio: 76%; }
  @media (max-width: 639px) { #latest .frame--lit { --ratio: 150%; } }
  /* research artifact cards: in the hero collage and the tabs frame */
  .pc { background: #fbfdf9; border: 1px solid rgba(22,31,25,.16); border-radius: 8px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; box-shadow: 0 16px 36px rgba(10,30,20,.22); color: #16201a; }
  .pc .pc__label { font: 500 11px/1.3 var(--font-mono); letter-spacing: .04em; color: #6f7d73; }
  .pc .pc__title { font: var(--display-weight) 15px/1.3 var(--font-display); letter-spacing: -0.01em; }
  .pc .pc__line { font: 400 12px/1.45 var(--font-text); color: #5b685f; }
  .pc .pc__row { display: flex; justify-content: space-between; gap: 12px; font: 400 12px/1.5 var(--font-text); border-bottom: 1px solid rgba(22,31,25,.12); padding-bottom: 6px; }
  .pc .pc__row:last-child { border-bottom: 0; padding-bottom: 0; }
  .pc .pc__row b { font-weight: 500; }
  .pc .pc__num { font-family: var(--font-mono); font-size: 12px; }
  .pc .pc__num.is-up { color: #1f7a54; font-weight: 500; }
  .pc .pc__chip { justify-self: start; font: 500 11px/1 var(--font-text); padding: 5px 8px; border: 1px solid rgba(22,31,25,.3); border-radius: 4px; }
  .pc .pc__chip.is-accent { border-color: transparent; background: #39b98a; color: #06130c; }
  .pc-cover { background: #10180f; border-color: rgba(255,255,255,.12); color: #fffdf9; }
  .pc-cover .pc__label { color: #93a197; }
  .pc-cover .pc__line { color: #a7b5aa; }
  .pc-cover .pc__big { font: var(--display-weight) clamp(34px, 3vw, 44px)/1 var(--font-display); letter-spacing: -0.03em; }
  .pc .pc__ticks { display: grid; gap: 6px; }
  .pc .pc__tick { display: flex; align-items: center; gap: 8px; font: 400 12px/1.4 var(--font-text); }
  .pc .pc__tick i { flex: none; width: 14px; height: 14px; border-radius: 3px; background: #1f7a54; display: inline-grid; place-items: center; }
  .pc .pc__tick i svg { width: 9px; height: 9px; stroke: #fbfdf9; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .pc--note, .pc--cal { position: static; width: 100%; padding: 20px 22px; gap: 10px; }
  .pc--cal .cal__dow, .pc--cal .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
  .pc--cal .cal__dow { font: 500 11px/1 var(--font-mono); color: #6f7d73; letter-spacing: .04em; margin-top: 6px; }
  .pc--cal .cal__days { gap: 2px; margin-top: 8px; }
  .pc--cal .cal__days span { font: 400 13px/1 var(--font-mono); color: #16201a; padding: 8px 0; border-radius: 4px; }
  .pc--cal .cal__days .is-out { color: #a8b3a9; }
  .pc--cal .cal__days .is-today { background: #16201a; color: #fbfdf9; font-weight: 500; }
  .pc--cal .cal__days .is-in { background: #e4ecdf; }
  .pc--cal .cal__days .is-ev { background: #39b98a; color: #06130c; font-weight: 500; }
  .pc--cal .cal__evs { display: grid; gap: 8px; margin-top: 10px; border-top: 1px solid rgba(22,31,25,.14); padding-top: 12px; }
  @media (max-width: 639px) {
    .pc--note .pc__line + .pc__line { display: none; }
    .pc--cal .cal__days span { padding: 6px 0; font-size: 12px; }
  }
  .pc--note .pc__title { font-size: 19px; }
  .pc--note .pc__line { font-size: 13px; line-height: 1.55; }
  .pc--note .pc__row { align-items: center; margin-top: 4px; }
  .pc .pc__mark { font-style: normal; color: #16201a; border-bottom: 2px solid #39b98a; font-weight: 500; }
  @media (max-width: 639px) { .pc .pc__line, .pc .pc__row { font-size: 11px; } .pc:not(.pc--note) { padding: 10px 12px; } }

/* --- long-form articles & data pages: natural flow (the exact screen-height boxes are for the landing sections) --- */
main > .section--post { height: auto; min-height: 100svh; }
main > .section--post > .wrap { height: auto; }
/* centered reading canvas: posts read at 72ch; data pages were authored for a wide (~1100px) column */
.post__head, .post__feature { width: 100%; max-width: 72ch; margin-inline: auto; }
.page-template .post__head, .page-template .post__feature { max-width: 1140px; }
.page-template .gh-content { max-width: 1140px; }

.gh-content { width: 100%; max-width: 72ch; margin-inline: auto; margin-top: var(--s-7); display: grid; gap: var(--s-5); font-size: 18px; line-height: 1.65; }
.gh-content h2 { font-size: clamp(24px, 2vw, 32px); margin: var(--s-6) 0 0; }
.gh-content h3 { font-size: clamp(19px, 1.4vw, 24px); margin: var(--s-5) 0 0; }
.gh-content p { margin: 0; }
.gh-content a { color: var(--accent); text-underline-offset: 3px; }
.gh-content blockquote { margin: 0; padding-left: var(--s-5); border-left: 2px solid var(--accent); color: var(--muted); }
.gh-content ul, .gh-content ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }
.gh-content img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.gh-content pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-5); overflow-x: auto; font-size: 14px; }
.gh-content code { font-family: var(--font-mono); font-size: .92em; }
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-5) 0; }
.gh-content table { border-collapse: collapse; width: 100%; font-size: 15px; }
/* a bare wide table scrolls inside its own box instead of pushing past the viewport (/verdicts/) */
.gh-content > table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gh-content th, .gh-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.gh-content th { font-weight: 500; color: var(--muted); }
.gh-content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.gh-content .kg-width-wide { max-width: min(100%, 1060px); }
.gh-content .kg-width-full { max-width: none; }
.kg-card { margin: 0; }
.rows .rows__name { color: var(--ink); text-decoration: none; }
.rows a.rows__name:hover { color: var(--accent); }
.section--feed .rows { margin-top: var(--s-6); max-width: 900px; }
nav.pagination { display: flex; justify-content: space-between; margin-top: var(--s-7); max-width: 900px; }
nav.pagination a { color: var(--accent); }

/* phone: authored wide widgets, pill navs and tables scroll inside their box instead of stretching the page */
@media (max-width: 767px) {
  .gh-content > :is(div, nav) { max-width: 100%; overflow-x: auto; }
  .gh-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
