/* ET Deep Research Report — paper document on T1 Service tokens */
@import url("colors_and_type.css");

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper-3);
  color: var(--ink-1);
  font-family: var(--font-thai);
  font-size: 14px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
::selection { background: var(--brand); color: var(--brand-on); }

/* ============ PAGE ============ */
.doc { padding: 48px 16px 96px; }
.page {
  position: relative;
  max-width: 816px;
  margin: 0 auto 40px;
  background: var(--paper-0);
  padding: 64px 72px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(10,10,10,0.06), 0 24px 48px -24px rgba(10,10,10,0.18);
  overflow: hidden;
}
.page::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--brand), transparent 65%);
}
@media (max-width: 880px) { .page { padding: 48px 28px; } }

/* running footer of each page */
.runfoot {
  margin-top: 48px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-1);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ============ COVER ============ */
.page.cover {
  background: var(--ink-1);
  color: var(--paper-0);
  padding: 0;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.page.cover::before { background: var(--brand); height: 5px; }
.cover-inner {
  position: relative;
  padding: 64px 72px 56px;
  min-height: 1000px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 540px 360px at 88% -6%, color-mix(in oklab, var(--brand) 16%, transparent), transparent 70%),
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0/48px 48px,
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0/48px 48px;
}
@media (max-width: 880px) { .cover-inner { padding: 48px 28px; min-height: 0; } }
.cover-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cover-top img { height: 44px; }
.cover-top .doc-no {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-align: right; line-height: 1.7;
}
.cover-kicker {
  margin-top: 88px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand);
}
.cover-title {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.96; letter-spacing: -0.01em;
  margin: 18px 0 0;
  color: var(--paper-0);
}
.cover-title .grn { color: var(--brand); }
.cover-sub {
  margin: 26px 0 0;
  font-family: var(--font-thai);
  font-weight: 600; font-size: 21px; line-height: 1.5;
  color: rgba(255,255,255,0.92);
  max-width: 540px;
}
.cover-sub-en {
  margin: 10px 0 0;
  font-size: 13.5px; color: rgba(255,255,255,0.55);
  max-width: 520px; line-height: 1.65;
}
.cover-scope {
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.cover-scope .row {
  display: grid; grid-template-columns: 56px 1fr 220px;
  gap: 20px; align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cover-scope .n {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 26px; color: var(--brand); letter-spacing: 0.01em;
}
.cover-scope .t { font-weight: 600; font-size: 15.5px; color: var(--paper-0); }
.cover-scope .d {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); text-align: right;
}
@media (max-width: 720px) {
  .cover-scope .row { grid-template-columns: 40px 1fr; }
  .cover-scope .d { display: none; }
}
.cover-bottom {
  margin-top: auto; padding-top: 56px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.cover-bottom .meta { font-family: var(--font-mono); font-size: 10.5px; line-height: 2; color: rgba(255,255,255,0.55); }
.cover-bottom .meta b { color: var(--paper-0); font-weight: 500; }
.cover-bottom .conf {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand);
  border: 1px solid color-mix(in oklab, var(--brand) 45%, transparent);
  border-radius: 999px; padding: 6px 14px;
}

/* ============ TYPO BLOCKS ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); }
.sec-no {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 64px; line-height: 1; letter-spacing: -0.01em;
  color: var(--brand);
}
h1.sec-title {
  font-family: var(--font-thai); font-weight: 700;
  font-size: 31px; line-height: 1.25; letter-spacing: -0.01em;
  margin: 10px 0 6px;
}
.sec-title-en {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 18px;
}
.lede { font-size: 15px; color: var(--ink-2); line-height: 1.8; margin: 0 0 8px; }
.sec-head { margin-bottom: 34px; }
.sec-head .topline {
  display: flex; justify-content: space-between; align-items: flex-start;
}

h2.block-title {
  font-family: var(--font-thai); font-weight: 700;
  font-size: 18px; letter-spacing: -0.005em;
  margin: 44px 0 6px;
  display: flex; align-items: baseline; gap: 10px;
}
h2.block-title .bn {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--brand-deep); letter-spacing: 0.06em;
}
.block-sub { font-size: 13px; color: var(--ink-3); margin: 0 0 18px; }
p { margin: 0 0 14px; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ============ CHIPS ============ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
  white-space: nowrap;
  print-color-adjust: exact; -webkit-print-color-adjust: exact;
}
.chip-strong { background: color-mix(in oklab, var(--brand) 15%, transparent); color: var(--t1-green-700); border: 1px solid color-mix(in oklab, var(--brand) 35%, transparent); }
.chip-cond   { background: transparent; color: var(--t1-green-700); border: 1px solid color-mix(in oklab, var(--brand) 50%, transparent); }
.chip-hyg    { background: rgba(245,158,11,0.14); color: #92580d; border: 1px solid rgba(245,158,11,0.32); }
.chip-int    { background: rgba(10,10,10,0.05); color: var(--ink-2); border: 1px solid var(--rule-2); }

/* ============ STAT STRIP ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule-1); border-radius: 8px;
  background: var(--paper-1);
  margin: 26px 0 8px;
}
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 20px 20px 16px; border-left: 1px solid var(--rule-1); }
.stat:first-child { border-left: none; }
.stat .v {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 40px; line-height: 1; letter-spacing: -0.015em;
  color: var(--ink-1); font-variant-numeric: tabular-nums;
}
.stat .v .u { font-size: 19px; color: var(--brand-deep); font-weight: 800; margin-left: 1px; }
.stat .k { margin-top: 7px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.stat .s { margin-top: 4px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 720px) { .stats, .stats.cols-3 { grid-template-columns: 1fr 1fr; } .stat { border-top: 1px solid var(--rule-1); } }

/* ============ USP CARD ============ */
.usp {
  border: 1px solid var(--rule-1); border-radius: 8px;
  padding: 22px 24px 18px;
  margin-bottom: 14px;
  background: var(--paper-0);
  break-inside: avoid;
}
.usp.hero-card { border-color: color-mix(in oklab, var(--brand) 40%, transparent); box-shadow: 0 0 0 1px color-mix(in oklab, var(--brand) 18%, transparent); }
.usp-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.usp-head .idx {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 26px; line-height: 1.1; color: var(--ink-4);
  min-width: 34px;
}
.usp.hero-card .usp-head .idx { color: var(--brand); }
.usp-head .tt { flex: 1; }
.usp-head h3 { font-family: var(--font-thai); font-weight: 700; font-size: 16.5px; margin: 0; line-height: 1.4; }
.usp-head .en { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.usp-rows { border-top: 1px solid var(--rule-1); }
.usp-row {
  display: grid; grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule-1);
  font-size: 13px; line-height: 1.7;
}
.usp-row:last-child { border-bottom: none; }
.usp-row .lbl {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); padding-top: 4px;
}
.usp-row .val { color: var(--ink-1); }
.usp-row .val .src { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.verdict-line {
  margin-top: 12px; padding: 10px 14px;
  background: var(--paper-1); border-radius: 6px;
  font-size: 13px; line-height: 1.65; color: var(--ink-1);
}
.verdict-line b { color: var(--t1-green-800); }
.usp .risk { color: #c44; }

/* ============ GENERIC TABLE ============ */
table.t1 {
  width: 100%; border-collapse: collapse;
  font-size: 12.5px; line-height: 1.55;
  margin: 18px 0 6px;
}
table.t1 th {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); text-align: left;
  padding: 0 12px 9px 0;
  border-bottom: 1px solid var(--rule-2);
}
table.t1 td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--rule-1);
  vertical-align: top;
}
table.t1 tr { break-inside: avoid; }
table.t1 .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; }
table.t1 .gm { font-family: var(--font-mono); font-weight: 600; color: var(--t1-green-700); white-space: nowrap; }
table.t1 .nm { font-weight: 600; color: var(--ink-1); }
table.t1 .sub { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.03em; }
table.t1 .dim { color: var(--ink-2); }
table.t1 td.risk { color: #a33c3c; font-size: 12px; }

/* ============ IDEA LIST / CASE CARDS ============ */
.idea-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
@media (max-width: 720px) { .idea-grid { grid-template-columns: 1fr; } }
.idea {
  border: 1px solid var(--rule-1); border-radius: 8px;
  padding: 16px 18px 14px;
  background: var(--paper-0);
  break-inside: avoid;
}
.idea .no { font-family: var(--font-mono); font-size: 10px; color: var(--brand-deep); font-weight: 600; letter-spacing: 0.06em; }
.idea h4 { font-family: var(--font-thai); font-weight: 700; font-size: 14.5px; margin: 6px 0 6px; line-height: 1.4; }
.idea p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin: 0; }

.case {
  border: 1px solid var(--rule-1); border-radius: 8px;
  margin-bottom: 12px; overflow: hidden;
  break-inside: avoid;
}
.case-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 20px;
  background: var(--paper-1);
  border-bottom: 1px solid var(--rule-1);
}
.case-head h3 { font-family: var(--font-sans); font-weight: 700; font-size: 14.5px; margin: 0; letter-spacing: -0.005em; }
.case-head h3 .th { font-family: var(--font-thai); font-weight: 500; color: var(--ink-2); font-size: 12.5px; margin-left: 8px; }
.case-head .tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.case-body { padding: 14px 20px 16px; font-size: 13px; }
.case-body p { margin: 0 0 8px; }
.case-body p:last-child { margin: 0; }
.ww { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
@media (max-width: 720px) { .ww { grid-template-columns: 1fr; } }
.ww .col { border-top: 2px solid var(--rule-2); padding-top: 8px; font-size: 12.5px; line-height: 1.7; }
.ww .col.good { border-top-color: color-mix(in oklab, var(--brand) 60%, transparent); }
.ww .col.bad { border-top-color: rgba(204,68,68,0.5); }
.ww .col .h { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 5px; }
.ww .col.good .h { color: var(--t1-green-700); }
.ww .col.bad .h { color: #a33c3c; }
.ww .col p { margin: 0; color: var(--ink-2); }

/* ============ LISTS ============ */
ul.dash { list-style: none; padding: 0; margin: 8px 0 14px; }
ul.dash li {
  position: relative;
  padding: 7px 0 7px 22px;
  border-bottom: 1px dashed var(--rule-1);
  font-size: 13px; line-height: 1.7;
}
ul.dash li::before {
  content: "→";
  position: absolute; left: 0; top: 7px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--brand-deep);
}
ul.dash li b { font-weight: 600; }

/* ============ EXEC SUMMARY ============ */
.exec-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.exec-card {
  display: grid; grid-template-columns: 64px 1fr;
  gap: 20px;
  border: 1px solid var(--rule-1); border-radius: 8px;
  padding: 22px 24px;
  background: var(--paper-0);
  break-inside: avoid;
}
.exec-card .n {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 44px; line-height: 0.9; color: var(--brand);
}
.exec-card h3 { font-family: var(--font-thai); font-weight: 700; font-size: 16px; margin: 0 0 7px; }
.exec-card p { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin: 0; }
.exec-card p b { color: var(--ink-1); font-weight: 600; }

/* quote band */
.pull {
  margin: 30px 0 8px;
  padding: 20px 26px;
  background: var(--paper-1);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-thai); font-weight: 600;
  font-size: 16.5px; line-height: 1.65;
  color: var(--ink-1);
  break-inside: avoid;
}
.pull .s { display: block; margin-top: 8px; font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ============ SOURCES ============ */
.src-cols { columns: 2; column-gap: 36px; margin-top: 16px; }
@media (max-width: 720px) { .src-cols { columns: 1; } }
.src-item {
  break-inside: avoid;
  display: grid; grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-1);
  font-size: 11.5px; line-height: 1.55;
}
.src-item .i { font-family: var(--font-mono); font-size: 10px; color: var(--brand-deep); padding-top: 2px; }
.src-item .d { color: var(--ink-2); }
.src-item .d .dom { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); display: block; margin-top: 1px; }

/* ============ NOTE ============ */
.note {
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px dashed var(--rule-2);
  border-radius: 8px;
  font-size: 12px; color: var(--ink-2); line-height: 1.7;
}
.note b { color: var(--ink-1); }

/* ============ PRINT ============ */
@page { margin: 0.55in; }
@media print {
  body { background: none; }
  .doc { padding: 0; }
  .page {
    max-width: none; width: auto;
    margin: 0; padding: 0 0 24px;
    box-shadow: none; border-radius: 0;
    break-after: page;
  }
  .page:last-child { break-after: auto; }
  .page::before { display: none; }
  .page.cover { padding: 0; }
  .cover-inner { min-height: 9.2in; border-radius: 6px; }
  .usp, .idea, .case, .exec-card, .stats, .pull, .note, h2.block-title { break-inside: avoid; }
  h2.block-title { break-after: avoid; }
  .runfoot { margin-top: 32px; }
}
