@import url('https://fonts.googleapis.com/css2?family=Gothic+A1:wght@400;500;700;800&family=Spline+Sans+Mono:wght@400;500;700&display=swap');

:root { --font-gothic: 'Gothic A1'; --font-mono: 'Spline Sans Mono'; }

:root {
  --opal: #e9eaee;
  --opal-deep: #dcdee4;
  --paper: #fbfbfc;
  --panel: #ffffff;
  --ink: #262a30;
  --ink-soft: #4d535d;
  --muted: #868d99;
  --line: #e2e4ea;
  --line-strong: #cfd3db;
  --accent: #5a7d9a;
  --accent-deep: #3f5d75;
  --accent-wash: #eef2f6;
  --amber: #c08a3a;
  --amber-wash: #f7efe0;
  --radius: 4px;
  --shadow-card: 0 1px 0 var(--line-strong), 0 14px 34px rgba(38, 42, 48, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--opal) 0, var(--paper) 220px),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-gothic), ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.004em;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 50;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.sr-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mono,
.test-code,
.zone-label,
.section-tag-code,
.method-code,
.obs-tag,
.bench-tick-code,
.overview-tag,
.zone-band em {
  font-family: var(--font-mono), ui-monospace, monospace;
}

/* ============ BENCH MASTHEAD ============ */
.masthead {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 32px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  color: var(--ink);
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark-name {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark-sub {
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* the thin "시험대 rule": three labeled bench zones */
.bench-rule {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.bench-tick {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.bench-tick:first-child {
  border-left: 0;
  padding-left: 0;
}

.bench-tick-code {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-wash);
  border-radius: 2px;
}

.bench-tick-label {
  font-weight: 700;
  font-size: 13px;
}

.bench-tick-note {
  font-size: 11.5px;
  color: var(--muted);
}

/* ============ BENCH HOME ============ */
.bench {
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 32px 64px;
}

.bench-lead {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(155deg, rgba(31, 44, 56, 0.86), rgba(63, 93, 117, 0.74)),
    url("/images/opalbench-lead.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line-strong);
}

.bench-lead-frame {
  padding: 46px 44px 50px;
  max-width: 720px;
}

.bench-lead-station {
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(251, 251, 252, 0.78);
}

.bench-lead h1 {
  margin: 14px 0 16px;
  font-size: 34px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bench-lead p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(251, 251, 252, 0.92);
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 52px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.section-tag-code {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--paper);
  background: var(--accent-deep);
  padding: 4px 9px;
  border-radius: 2px;
}

.section-tag h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* method track */
.method-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.method-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}

.method-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.06em;
}

.method-step h3 {
  margin: 8px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.method-step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.72;
}

/* bench grid of test cards */
.bench-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.bench-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 24px 24px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.bench-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent), 0 18px 40px rgba(38, 42, 48, 0.1);
}

.bench-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.test-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--ink);
  padding: 3px 9px;
  border-radius: 2px;
}

.bench-card-date {
  font-family: var(--font-mono), monospace;
  font-size: 11.5px;
  color: var(--muted);
}

.bench-card-title {
  margin: 14px 0 16px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.bench-card-title a {
  color: var(--ink);
}

.bench-card-title a:hover {
  color: var(--accent-deep);
  text-decoration: none;
}

/* 시험 조건 row */
.condition-row {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.condition-row > div {
  background: var(--opal);
  padding: 11px 13px;
}

.condition-row dt {
  font-family: var(--font-mono), monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.condition-row dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}

/* 관찰 area */
.observation-area {
  margin-top: 16px;
  padding: 14px 0 4px;
  border-top: 1px dashed var(--line-strong);
}

.zone-label {
  display: inline-block;
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}

.zone-label em {
  font-style: normal;
  color: var(--muted);
}

.obs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.obs-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.obs-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  background: var(--accent-wash);
  padding: 2px 6px;
  border-radius: 2px;
  height: fit-content;
  margin-top: 2px;
}

/* 판단 */
.verdict-area {
  margin-top: 18px;
  padding: 15px 16px;
  background: var(--amber-wash);
  border: 1px solid #ecd9b5;
  border-radius: var(--radius);
}

.verdict-chip {
  display: inline-block;
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--amber);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 9px;
}

.verdict-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #6f5526;
  line-height: 1.65;
}

.sheet-open {
  margin-top: 18px;
  align-self: flex-start;
  font-family: var(--font-mono), monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
}

/* principles */
.principle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.principle-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.principle-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.principle-by {
  margin: 18px 0 0;
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ============ BENCH FOOTER ============ */
.bench-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.bench-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bench-footer-mark {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.bench-footer-inner p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 640px;
}

.bench-footer-zone {
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ============ ARTICLE: BENCH TEST SHEET ============ */
.sheet {
  max-width: 880px;
  margin: 0 auto;
  padding: 34px 32px 60px;
}

.test-sheet {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.sheet-condition {
  padding: 32px 40px 28px;
  background: var(--opal);
  border-bottom: 2px solid var(--ink);
}

.sheet-condition-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sheet-condition-top .zone-label {
  margin: 0;
}

.sheet-condition h1 {
  margin: 0 0 22px;
  font-size: 30px;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sheet-condition-row {
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.sheet-condition-row > div {
  background: var(--panel);
  padding: 13px 16px;
}

.sheet-condition-row dt {
  font-family: var(--font-mono), monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.sheet-condition-row dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
}

.sheet-overview {
  position: relative;
  margin: 0 0 18px;
  padding: 14px 16px 14px 18px;
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.74;
}

.overview-tag {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.sheet-meta span {
  position: relative;
}

.sheet-meta span + span::before {
  content: "·";
  position: absolute;
  left: -10px;
  color: var(--line-strong);
}

/* zone band tab for each sheet section */
.zone-band {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 5px 14px;
  background: var(--opal);
  border: 1px solid var(--line-strong);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 0;
}

.zone-band em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.sheet-observation,
.sheet-verdict,
.sheet-sources {
  padding: 0 40px 30px;
}

.sheet-observation {
  padding-top: 4px;
}

.sheet-verdict,
.sheet-sources {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

/* injected observation HTML */
.observation-body {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--ink);
}

.observation-body > *:first-child {
  margin-top: 0;
}

.observation-body p {
  margin: 0 0 18px;
}

.observation-body h2 {
  margin: 34px 0 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.observation-body h3 {
  margin: 24px 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.observation-body a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
}

.observation-body a:hover {
  background: var(--accent-wash);
  text-decoration: none;
}

.observation-body blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--amber-wash);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15.5px;
  color: #6f5526;
  font-weight: 500;
  line-height: 1.72;
}

.observation-body ul,
.observation-body ol {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.observation-body ul li {
  position: relative;
  padding-left: 22px;
}

.observation-body ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1px;
}

.observation-body ol {
  counter-reset: obs;
}

.observation-body ol li {
  position: relative;
  padding-left: 26px;
  counter-increment: obs;
}

.observation-body ol li::before {
  content: counter(obs);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-deep);
}

.observation-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14px;
  border: 1px solid var(--line-strong);
}

.observation-body thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  font-size: 13px;
}

.observation-body tbody td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}

.observation-body tbody tr:nth-child(even) td {
  background: var(--opal);
}

/* 판단 */
.verdict-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 6px;
  padding: 16px 18px;
  background: var(--amber-wash);
  border: 1px solid #ecd9b5;
  border-radius: var(--radius);
}

.verdict-line p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #6f5526;
  line-height: 1.66;
}

.sheet-faq {
  margin-top: 22px;
}

.sheet-faq h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
}

.sheet-faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--panel);
}

.sheet-faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.sheet-faq summary::-webkit-details-marker {
  display: none;
}

.sheet-faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono), monospace;
  color: var(--accent-deep);
  font-size: 18px;
}

.sheet-faq details[open] summary::after {
  content: "\2212";
}

.sheet-faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.sheet-faq details p {
  margin: 0;
  padding: 13px 16px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.72;
}

/* 출처 */
.sheet-sources h2 {
  margin: 16px 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.sheet-sources p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.74;
}

.back-to-bench {
  font-family: var(--font-mono), monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .method-track,
  .bench-grid {
    grid-template-columns: 1fr;
  }

  .bench-rule {
    grid-template-columns: 1fr;
  }

  .bench-tick {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .bench-tick:first-child {
    border-top: 0;
  }
}

@media (max-width: 680px) {
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bench,
  .sheet {
    padding-left: 18px;
    padding-right: 18px;
  }

  .bench-lead-frame {
    padding: 32px 24px 34px;
  }

  .bench-lead h1 {
    font-size: 27px;
  }

  .sheet-condition,
  .sheet-observation,
  .sheet-verdict,
  .sheet-sources {
    padding-left: 22px;
    padding-right: 22px;
  }

  .condition-row,
  .sheet-condition-row {
    grid-template-columns: 1fr;
  }

  .observation-body {
    font-size: 15px;
  }

  .observation-body table {
    display: block;
    overflow-x: auto;
  }
}
