/* 더 알아보기: Opus 5.5 and 정본 side by side on the same 100 sentences, then the scores.
   Same identity as the rest of the site: Pretendard, ink on white with hairlines, navy for the wordmark and buttons. */
:root {
  --paper: #ffffff;
  --ink: rgba(23, 23, 23, 0.86);
  --ink-strong: #171717;
  --muted: rgba(23, 23, 23, 0.62);
  --faint: rgba(23, 23, 23, 0.42);
  --hairline: rgba(23, 23, 23, 0.1);
  --fill: rgba(23, 23, 23, 0.05);
  --navy: #1f3a5f;
  --on-navy: #ffffff;
  --tint: rgba(31, 58, 95, 0.1);
  --amber: #a8651a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121212;
    --ink: rgba(240, 240, 240, 0.86);
    --ink-strong: #f5f5f5;
    --muted: rgba(240, 240, 240, 0.55);
    --faint: rgba(240, 240, 240, 0.4);
    --hairline: rgba(240, 240, 240, 0.12);
    --fill: rgba(240, 240, 240, 0.07);
    --navy: #9db8dc;
    --on-navy: #0f1a2a;
    --tint: rgba(157, 184, 220, 0.16);
    --amber: #e0a85a;
  }
}

* { box-sizing: border-box; }
h1, h2, h3, p, ol, ul { margin: 0; }
html { background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px; line-height: 1.6; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
/* The header (wordmark, page links) is shared: ../site-top.css. */
.doc { max-width: 960px; margin: 0 auto; padding: 0 24px 80px; }

.title { margin: 64px 0 40px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--navy); }
h1 { margin-top: 10px; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.04em; color: var(--ink-strong); text-wrap: balance; }
.sub { margin-top: 16px; max-width: 40em; font-size: 1.1rem; line-height: 1.55; color: var(--ink); }
/* Running text wraps without a lone word on the last line (browsers that know text-wrap: pretty). */
.sub, .race-note, .strengths span, td, .verdict-lead { text-wrap: pretty; }
/* Short lead lines break into even halves instead of a long line and a stub. */
.lede, .note, .schools-section p { text-wrap: balance; }

/* ── The race ── */
.race { margin-top: 16px; }
.race-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--hairline); }
.effort { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.effort-label { margin-right: 6px; color: var(--muted); }
.effort button, .replay {
  font: inherit; font-size: 14px; cursor: pointer; padding: 6px 12px;
  border: 1px solid var(--hairline); border-radius: 999px; background: transparent; color: var(--ink);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.effort button[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.effort button:hover, .replay:hover { border-color: var(--ink-strong); }
.replay::before { content: "↻ "; }
button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lane { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--paper); }
.lane-head h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-strong); }
.lane-head p { margin-top: 4px; font-size: 13px; color: var(--muted); min-height: 2.6em; }
.speed { padding: 1px 7px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 12px; white-space: nowrap; }

.clock { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; font-variant-numeric: tabular-nums; }
.time { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink-strong); }
.unit { font-size: 1.1rem; color: var(--muted); }
.real { margin-left: auto; font-size: 12px; color: var(--faint); }
.progress { margin-top: 14px; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.fill { width: 0; height: 100%; background: var(--navy); border-radius: 3px; }
.lane-opus .fill { background: var(--muted); }
.count { margin-top: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* The last few sentences handled, newest at the bottom, the oldest fading out at the top. */
.feed { list-style: none; padding: 0; margin: 12px 0 0; height: 168px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font-size: 13px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%); mask-image: linear-gradient(to bottom, transparent, #000 35%); }
.feed li { display: flex; align-items: baseline; gap: 8px; min-height: 24px; line-height: 24px; white-space: nowrap; overflow: hidden; }
.feed .n { flex: none; width: 2.2em; color: var(--faint); font-variant-numeric: tabular-nums; }
.feed .s { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.feed .r { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; padding: 0 7px; border-radius: 5px; background: var(--fill); font-size: 12px; line-height: 20px; color: var(--muted); }
.feed .r.ask { background: var(--tint); color: var(--navy); }
.feed .r.out { color: var(--amber); }
.feed .thinking { color: var(--faint); font-style: normal; }
.feed .thinking::after { content: "…"; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.lane-foot { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }
.stat b { font-weight: 500; color: var(--faint); margin-right: 4px; }
.done { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--navy); color: var(--on-navy); font-size: 12px; font-weight: 600; }
.lane-opus .done { background: var(--fill); color: var(--ink); }
[hidden] { display: none !important; }

.verdict {
  display: flex; align-items: baseline; justify-content: center; gap: 12px 20px; flex-wrap: wrap;
  margin-top: 20px; padding: 18px 20px; border-radius: 12px; background: var(--fill);
  font-size: 15px; color: var(--muted); opacity: 0.35; transition: opacity 0.4s ease;
}
.verdict.show { opacity: 1; }
.verdict b { font-weight: 600; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.verdict-gap, .verdict-ratio { white-space: nowrap; }
.verdict-gap b { font-size: 1.6rem; letter-spacing: -0.03em; }
.verdict-ratio { color: var(--ink); }
.verdict-ratio b { color: var(--navy); font-size: 1.6rem; letter-spacing: -0.03em; }
.race-note { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--faint); }

/* ── University engines: a strip of cards that scrolls sideways ── */
.schools-section { margin-top: 72px; }
.schools-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink-strong); }
.schools {
  list-style: none; margin: 20px -20px 0; padding: 4px 20px 12px;
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 20px;
  scrollbar-width: thin;
}
.schools li { flex: none; scroll-snap-align: start; }
.schools a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 232px; height: 100%; padding: 18px 18px 16px;
  border: 1px solid var(--hairline); border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.schools a:hover { border-color: var(--navy); background: var(--tint); transform: translateY(-2px); }
.schools a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
/* The mark: the school's short name set like the wordmark, on a round tint. Swap for an image once a logo may be used. */
.mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 50%; background: var(--tint); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: var(--navy); }
.mark.small { font-size: 12px; letter-spacing: 0.02em; }
.schools b { font-size: 1.05rem; font-weight: 600; color: var(--ink-strong); }
.schools .reg { font-size: 13px; color: var(--ink); }
.schools .date { font-size: 12px; color: var(--faint); }
.schools-section .note { margin-top: 8px; }
@media (max-width: 719px) { .schools a { width: 200px; } }

/* ── Scores ── */
.results { margin-top: 72px; }
.results h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink-strong); }
.lede { margin-top: 12px; max-width: 40em; color: var(--ink); }
.results h3 { margin-top: 40px; font-size: 1.1rem; font-weight: 600; color: var(--ink-strong); }
/* The two strengths of a finding, side by side. */
.strengths { list-style: none; margin: 24px 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.strengths li { padding: 18px 20px; border: 1px solid var(--hairline); border-radius: 12px; font-size: 15px; line-height: 1.55; }
.strengths b { display: block; margin-bottom: 6px; font-size: 1.05rem; font-weight: 600; color: var(--ink-strong); }
.strengths span { display: block; color: var(--ink); }
.strengths a { color: var(--navy); text-decoration: none; }
.strengths a:hover { text-decoration: underline; }
.results table { margin-top: 20px; }
@media (max-width: 719px) { .strengths { grid-template-columns: 1fr; } }
.note { margin-top: 4px; font-size: 14px; color: var(--muted); }
table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
thead th { font-weight: 500; color: var(--muted); font-size: 13px; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.lead { font-weight: 600; color: var(--navy); }
.why { display: block; font-size: 13px; color: var(--muted); }

/* ── CTA and footer ── */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding: 24px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.cta p { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 500; letter-spacing: -0.03em; color: var(--ink-strong); }
.cta-actions { display: flex; gap: 8px; flex: none; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 3px; background: var(--navy); color: var(--on-navy); font-size: 1rem; font-weight: 500; text-decoration: none; }
.btn span { font-size: 1.1rem; line-height: 1; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.btn:hover { opacity: 0.9; }
.foot { margin-top: 32px; font-size: 13px; color: var(--muted); }
.foot a { text-decoration: none; }

@media (max-width: 719px) {
  .doc { padding-top: 24px; }
  .title { margin: 40px 0 28px; }
  .lanes { grid-template-columns: 1fr; }
  .feed { height: 120px; }
  .cta-actions { width: 100%; }
  .btn { flex: 1; justify-content: center; }
  th, td { padding: 8px 6px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .verdict { transition: none; }
  .feed .thinking::after { animation: none; content: "…"; }
}
