/* ============================================================
   Document pages (legal/, resources/guide.html): the redesign's type
   and spacing, set dark on white for long reading. One centred column.
   ============================================================ */

:root {
  --bg:     #FFFFFF;
  --ink:    #111113;
  --ink-2:  #3F3F46;
  --ink-3:  #71717A;
  --line:   rgb(17 17 19 / 0.1);
  --line-2: rgb(17 17 19 / 0.16);
  --wash:   #F6F6F7;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;
  --track-body: -0.02em;
  --track-head: -0.04em;
  --measure: 46rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --r-sm: 0.75rem;
  --r-card: 1rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
}
html[lang="ko"] :is(h1, h2, h3, p, li, dt, dd, td, th, span) { word-break: keep-all; overflow-wrap: anywhere; }
/* Japanese has no spaces: break at phrase boundaries, not mid-word. */
html[lang="ja"] :is(h1, h2, h3, p, li, dt, dd) { word-break: auto-phrase; overflow-wrap: anywhere; }
::selection { background: rgb(17 17 19 / 0.12); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
code {
  font-family: var(--mono); font-size: 0.86em; letter-spacing: 0;
  padding: 0.1em 0.35em; border-radius: 0.3rem; background: var(--wash); border: 1px solid var(--line);
}

/* ---- Top bar ---- */
.doc-bar {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.doc-bar-in {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto; padding: 0.9rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.doc-brand { font-size: 0.9rem; font-weight: 500; letter-spacing: -0.03em; text-decoration: none; }
.doc-brand b { font-weight: 800; }
.doc-back { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.84rem; color: var(--ink-3); text-decoration: none; transition: color 400ms var(--ease); }
.doc-back:hover { color: var(--ink); }

/* ---- The column ---- */
.doc {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) clamp(4rem, 9vw, 6rem);
}
.doc-head { text-align: center; display: grid; justify-items: center; gap: 0.9rem; }
.doc-eyebrow { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.doc-head h1 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; line-height: 1.2; letter-spacing: var(--track-head); }
.doc-lede { margin: 0; max-width: 34em; font-size: 1.05rem; color: var(--ink-2); text-wrap: balance; }

.doc-meta { margin: 1.4rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; font-size: 0.84rem; color: var(--ink-3); }
.doc-meta b { color: var(--ink); font-weight: 600; margin-right: 0.35rem; }

.doc-note {
  margin: 2.5rem 0 0; padding: 1rem 1.2rem;
  border-radius: var(--r-sm); background: var(--wash); border: 1px solid var(--line);
  font-size: 0.9rem; color: var(--ink-2);
}
.doc-intro { margin: 2rem 0 0; color: var(--ink-2); }

.doc-toc { margin: 2.5rem 0 0; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-card); }
.doc-toc > b { display: block; margin-bottom: 0.6rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; columns: 2 16rem; column-gap: 2rem; }
.doc-toc li { break-inside: avoid; padding: 0.15rem 0; font-size: 0.9rem; }
.doc-toc a { text-decoration: none; color: var(--ink-2); }
.doc-toc a:hover { color: var(--ink); text-decoration: underline; }
.doc-toc span { display: inline-block; min-width: 1.8em; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---- Sections ---- */
.doc-sec { margin-top: clamp(2.75rem, 5vw, 3.5rem); }
.doc-sec h2 {
  margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line);
  font-size: 1.35rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.03em;
}
.doc-sec h2 .n { color: var(--ink-3); margin-right: 0.45rem; font-variant-numeric: tabular-nums; }
.doc-sec h3 { margin: 1.6rem 0 0.6rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.doc-sec p { margin: 0 0 0.9rem; color: var(--ink-2); }
.doc-sec strong, .doc-sec b { color: var(--ink); font-weight: 650; }
.doc-sec ul, .doc-sec ol { margin: 0 0 1rem; padding-left: 1.3rem; color: var(--ink-2); }
.doc-sec li { margin: 0.3rem 0; }
.doc-sec li::marker { color: var(--ink-3); }

.legal-table-wrap { margin: 0 0 1.2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.legal-table th, .legal-table td { padding: 0.65rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal-table th { background: var(--wash); color: var(--ink); font-weight: 600; white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: 0; }

/* ---- Business details, as in the landing footer ---- */
.doc-foot { border-top: 1px solid var(--line); background: var(--wash); }
.doc-foot-in {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto; padding: 2.25rem var(--gutter) 2.5rem;
  display: grid; gap: 1.25rem; justify-items: center; text-align: center;
}
.doc-foot-brand { font-size: 0.9rem; font-weight: 500; letter-spacing: -0.03em; }
.doc-foot-brand b { font-weight: 800; }
.foot-info { display: grid; gap: 0.35rem; font-style: normal; font-size: 0.78rem; line-height: 1.6; color: var(--ink-3); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 0.15rem; }
/* Wide, a pair is just two more fields in its line, a rule between each. */
.foot-pair { display: contents; }
.foot-row span:not(.foot-pair) { display: inline-flex; align-items: center; }
.foot-row span:not(.foot-pair)::before { content: ''; width: 1px; height: 0.7em; margin-inline: 0.6rem; background: var(--line-2); }
.foot-row > span:first-child::before,
.foot-row > .foot-pair:first-child > span:first-child::before { display: none; }
/* Before the first line would wrap, each pair or lone field gets its own
   line, so no rule ever starts one. */
@media (max-width: 52rem) {
  .foot-row { display: grid; justify-items: center; }
  .foot-pair { display: flex; flex-wrap: wrap; justify-content: center; }
  .foot-row > span:not(.foot-pair)::before,
  .foot-pair > span:first-child::before { display: none; }
}
/* A phone cannot fit the long pair on one line: its two fields stack. */
@media (max-width: 30rem) {
  .foot-pair.is-long { display: grid; justify-items: center; }
  .foot-pair.is-long > span::before { display: none; }
}
.foot-info[hidden] { display: none; }   /* the closed test hides the business details */
.foot-info a { color: inherit; text-decoration: none; }
.foot-info a:hover { color: var(--ink); }
.doc-foot-meta { display: grid; gap: 0.4rem; font-size: 0.78rem; color: var(--ink-3); }
.doc-foot-links { display: flex; flex-wrap: wrap; justify-content: center; }
.doc-foot-links a { color: var(--ink-3); text-decoration: none; }
.doc-foot-links a:hover { color: var(--ink); }
.doc-foot-links a + a::before { content: ''; display: inline-block; width: 1px; height: 0.7em; margin-inline: 0.6rem; background: var(--line-2); vertical-align: -0.05em; }
.doc-foot-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---- Guide pieces ---- */
.g-sec { margin-top: clamp(3.5rem, 7vw, 5rem); }
.g-sec > h2 { margin: 0 0 1.2rem; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); font-weight: 800; line-height: 1.3; letter-spacing: var(--track-head); }
.g-sec > p, .g-lede { margin: 0 0 1.2rem; color: var(--ink-2); }
.g-sub { margin: 2.2rem 0 0.9rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.g-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 0.6rem; }
.g-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  height: 2.5rem; padding: 0 1.05rem; border-radius: 999px;
  border: 1px solid var(--line-2); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  transition: background 400ms var(--ease), border-color 400ms var(--ease);
}
.g-btn:hover { background: var(--wash); border-color: var(--ink-3); }

.g-spec, .g-ref { margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.g-spec > div, .g-ref > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 1.2rem; }
.g-spec > div + div, .g-ref > div + div { border-top: 1px solid var(--line); }
.g-spec dt, .g-ref dt { font-weight: 650; }
.g-spec dd, .g-ref dd { margin: 0; color: var(--ink-2); }

.g-note { display: flex; gap: 0.7rem; margin: 1.2rem 0 0; padding: 0.95rem 1.15rem; border-radius: var(--r-sm); background: var(--wash); border: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-2); }
.g-note .ph { flex: none; margin-top: 0.3em; font-size: 1.05rem; color: var(--ink); }

.g-opts { display: grid; gap: 1rem; margin-top: 1.2rem; }
.g-opt { padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-card); }
.g-opt.is-main { border-color: var(--ink); }
.g-opt h3 { margin: 0.5rem 0 0.4rem; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.g-opt p { margin: 0 0 0.9rem; color: var(--ink-2); }
.g-tag { display: inline-block; padding: 0.15em 0.65em; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: var(--wash); border: 1px solid var(--line); color: var(--ink-2); }
.g-opt.is-main .g-tag { background: var(--ink); border-color: var(--ink); color: #fff; }
.g-opt-sub { margin: 1.1rem 0 0.5rem !important; font-size: 0.86rem; font-weight: 600; color: var(--ink) !important; }

.g-cmd { position: relative; margin: 0; border-radius: var(--r-sm); background: #111113; color: #EDEDEF; }
.g-cmd pre { margin: 0; padding: 1rem 5.5rem 1rem 1.15rem; overflow-x: auto; font-family: var(--mono); font-size: 0.84rem; line-height: 1.7; letter-spacing: 0; }
.g-cmd code { padding: 0; border: 0; background: none; font-size: inherit; color: inherit; }
.g-copy {
  position: absolute; top: 0.6rem; right: 0.6rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 2rem; padding: 0 0.7rem; border-radius: 0.5rem; border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.06); color: #EDEDEF; font: inherit; font-size: 0.78rem; cursor: pointer;
}
.g-copy:hover { background: rgb(255 255 255 / 0.12); }
.g-copy .ph-check, .g-copy.is-done .ph-copy { display: none; }
.g-copy.is-done .ph-check { display: inline; }
.t-dir { color: #fff; font-weight: 600; }
.t-note { color: #8B8B91; }

.g-steps { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.g-steps li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r-card); }
.g-steps .n { font-family: var(--mono); font-size: 0.85rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; padding-top: 0.15rem; }
.g-steps h3 { margin: 0 0 0.3rem; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.5rem; }
.g-steps p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }
.g-steps li.is-required { border-color: var(--ink); }
.g-flag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.1em 0.55em; border-radius: 999px; background: var(--ink); color: #fff; }

.g-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.g-list li { display: flex; gap: 0.65rem; color: var(--ink-2); }
.g-list .ph { flex: none; margin-top: 0.32em; font-size: 1.05rem; color: var(--ink); }

.g-layers { margin-top: 1.2rem; display: grid; gap: 0.75rem; }
.g-layer { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1rem; padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r-card); }
.g-layer.is-hard { border-color: var(--ink); }
.g-layer-tag { font-family: var(--mono); font-size: 0.82rem; font-weight: 700; letter-spacing: 0; }
.g-layer h3 { margin: 0 0 0.3rem; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }
.g-layer p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }

.g-reading { display: grid; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.g-reading a { display: flex; justify-content: space-between; align-items: center; padding: 0.95rem 1.2rem; text-decoration: none; font-weight: 600; transition: background 400ms var(--ease); }
.g-reading a + a { border-top: 1px solid var(--line); }
.g-reading a:hover { background: var(--wash); }

@media (max-width: 640px) {
  .g-spec > div, .g-ref > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .g-cmd pre { padding-right: 1.15rem; padding-top: 3rem; }
}

.g-tiers { margin-top: 1.4rem; }

/* ---- Alignment fixes ----
   A long command must scroll inside its block, not widen the column:
   grid and flex children get min-width 0 so they keep the column's width. */
.g-opts { grid-template-columns: minmax(0, 1fr); }
.g-opt, .g-cmd, .g-steps li > div, .g-layer > div { min-width: 0; }
/* The note's own spacing, not the section paragraph rule's. */
.g-sec > .g-note { margin: 1rem 0 0; }
.g-sec > p + .g-cmd, .g-opt p + .g-cmd { margin-top: 0; }
/* Long commands wrap inside the block rather than scroll under the button. */
.g-cmd pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
/* Step and layer numbers sit on the heading's first line. */
.g-steps li, .g-layer { align-items: baseline; }
.g-steps .n, .g-layer-tag { padding-top: 0; }
/* Notes in the tree are Korean: set in the sans, the mono has no Hangul. */
.g-cmd .t-note { font-family: var(--sans); letter-spacing: var(--track-body); }

/* ---- Inquiry form (contact/inquiry.html) ---- */
.iq { margin-top: 2.5rem; }
.iq-legend { margin: 0; font-size: 0.84rem; color: var(--ink-3); }
.iq-req { color: var(--ink); margin-left: 0.15em; }
.iq-opt { color: var(--ink-3); }
.iq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.iq-grid + .iq-set, .iq-set + .iq-set, .iq-set + .iq-grid, .iq-grid + .iq-f, .doc-sec > .iq-f + .iq-f { margin-top: 1.4rem; }
.iq-f { display: grid; gap: 0.45rem; min-width: 0; }
.iq-half { max-width: calc(50% - 0.625rem); }
.iq-l { font-size: 0.88rem; font-weight: 650; color: var(--ink); }
.iq-l small { margin-left: 0.5rem; font-size: 0.78rem; font-weight: 500; color: var(--ink-3); }
.iq input:not([type="checkbox"]):not([type="radio"]), .iq select, .iq textarea {
  width: 100%; min-height: 2.9rem; padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg);
  font: inherit; font-size: 0.95rem; letter-spacing: var(--track-body); color: var(--ink);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.iq textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.iq select {
  appearance: none; padding-right: 2.4rem; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2371717A' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 0.85rem center / 1rem no-repeat;
}
.iq ::placeholder { color: #A1A1AA; }
.iq input:hover, .iq select:hover, .iq textarea:hover { border-color: var(--ink-3); }
.iq input:focus-visible, .iq select:focus-visible, .iq textarea:focus-visible {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(17 17 19 / 0.08);
}

.iq-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.iq-set > legend { padding: 0; margin-bottom: 0.6rem; }
.iq-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.iq-chips label { position: relative; }
.iq-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.iq-chips span {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.88rem; font-weight: 550; color: var(--ink-2);
  transition: background 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease);
}
.iq-chips label:hover span { border-color: var(--ink-3); }
.iq-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.iq-chips input:focus-visible + span { box-shadow: 0 0 0 3px rgb(17 17 19 / 0.16); }

.iq-check { --lh: 1.6; display: flex; align-items: flex-start; gap: 0.65rem; margin-top: 0.8rem; font-size: 0.92rem; line-height: var(--lh); color: var(--ink); cursor: pointer; }
.iq-check .iq-req { margin-left: 0; }
/* Drawn, not the browser's box: a rounded square that fills with the ink
   and shows its tick at once, no easing. */
.iq-check input {
  flex: none; position: relative; appearance: none; -webkit-appearance: none;
  width: 1.2rem; height: 1.2rem;
  /* centred on the first line, so a label that wraps keeps it there */
  margin: calc((0.92rem * var(--lh) - 1.2rem) / 2) 0 0;
  border: 1.5px solid var(--line-2); border-radius: 0.35rem; background: var(--bg);
  cursor: pointer;
}
.iq-check input::after {
  content: ''; position: absolute; inset: 0;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.1l2.6 2.6L12 5.3'/%3E%3C/svg%3E") center / 82% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.1l2.6 2.6L12 5.3'/%3E%3C/svg%3E") center / 82% no-repeat;
  opacity: 0;
}
.iq-check:hover input { border-color: var(--ink-3); }
.iq-check input:checked { background: var(--ink); border-color: var(--ink); }
.iq-check input:checked::after { opacity: 1; }
.iq-check input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(17 17 19 / 0.14); }
.iq-check.is-invalid input { border-color: #B42318; }
.iq-fine { font-size: 0.86rem; }

/* Errors show only after a send attempt. */
.iq-err { display: none; margin: 0.5rem 0 0 !important; font-size: 0.82rem; color: #B42318 !important; }
.iq-set.is-invalid .iq-err { display: block; }
.iq-set.is-invalid .iq-chips span { border-color: rgb(180 35 24 / 0.5); }
/* Matched to the base field rule's weight (its :not()s count), or it loses. */
.iq .iq-f.is-invalid input:not([type="checkbox"]):not([type="radio"]),
.iq .iq-f.is-invalid textarea,
.iq .iq-f.is-invalid .iq-dd-btn { border-color: #B42318; }
.iq .iq-f.is-invalid input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.iq .iq-f.is-invalid .iq-dd-btn:focus-visible { box-shadow: 0 0 0 3px rgb(180 35 24 / 0.12); }
.iq-check.is-invalid { color: #B42318; }

.iq-submit { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 0.9rem; text-align: center; }
.iq-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 3.2rem; padding: 0 1.8rem; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font: inherit; font-size: 0.98rem; font-weight: 650; cursor: pointer;
  transition: background 300ms var(--ease), opacity 300ms var(--ease);
}
.iq-btn:hover { background: #2A2A2E; }
.iq-btn:disabled { opacity: 0.5; cursor: progress; }
.iq-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.iq-status { margin: 0; min-height: 1.5em; font-size: 0.88rem; color: var(--ink-2); }

.iq-done[hidden] { display: none; }
.iq-nw, .iq-done a { white-space: nowrap; }   /* a number or address never splits */
.iq-done { margin-top: 3rem; padding: 2.5rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-card); display: grid; justify-items: center; gap: 0.6rem; text-align: center; }
.iq-done:focus { outline: none; }
.iq-done .ph { font-size: 2.4rem; }
.iq-done h2 { margin: 0; font-size: 1.35rem; font-weight: 750; letter-spacing: -0.03em; }
.iq-done p { margin: 0 0 0.8rem; font-size: 0.9rem; line-height: 1.7; color: var(--ink-2); }

/* Dropdowns: the native select stays for its value and the check; the
   script draws this button and list over it, in the page's own style. */
.iq-dd { position: relative; }
.iq-dd select { display: none; }
.iq-dd-btn {
  width: 100%; min-height: 2.9rem; padding: 0.65rem 0.9rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg);
  font: inherit; font-size: 0.95rem; letter-spacing: var(--track-body); color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.iq-dd-btn:hover { border-color: var(--ink-3); }
.iq-dd-btn:focus-visible, .iq-dd.is-open .iq-dd-btn { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(17 17 19 / 0.08); }
.iq-dd-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iq-dd-val.is-empty { color: #A1A1AA; }
.iq-dd-btn .ph { flex: none; font-size: 1rem; color: var(--ink-3); transition: transform 300ms var(--ease); }
.iq-dd.is-open .iq-dd-btn .ph { transform: rotate(180deg); }
.iq-dd-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 0.4rem);
  /* Tall enough for the longest list (nine), so it never scrolls. The
     inset matches the button's, so the options start under its text. */
  margin: 0; padding: 0.3rem; list-style: none;
  color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  box-shadow: 0 0.75rem 2rem rgb(17 17 19 / 0.1), 0 0.15rem 0.4rem rgb(17 17 19 / 0.05);
  animation: iq-dd-in 220ms var(--ease);
}
.iq-dd-list:focus { outline: none; }
@keyframes iq-dd-in { from { opacity: 0; transform: translateY(-0.3rem); } to { opacity: 1; transform: none; } }
.iq-dd-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.55rem 0.6rem; border-radius: 0.5rem;
  font-size: 0.92rem; color: var(--ink-2); cursor: pointer;
}
.iq-dd-list li.is-active { background: var(--wash); color: var(--ink); }
.iq-dd-list li[aria-selected="true"] { color: var(--ink); font-weight: 650; }
.iq-dd-list li .ph { display: none; font-size: 0.95rem; }
.iq-dd-list li[aria-selected="true"] .ph { display: inline; }
/* .doc-sec ul / li indent and space the legal pages' lists; not this one. */
.doc-sec .iq-dd-list { padding: 0.3rem; margin: 0; color: var(--ink-2); }
.doc-sec .iq-dd-list li { margin: 0; }
@media (prefers-reduced-motion: reduce) { .iq-dd-list { animation: none; } }

@media (max-width: 640px) {
  .iq-grid { grid-template-columns: minmax(0, 1fr); }
  .iq-half { max-width: none; }
  .iq-btn { width: 100%; justify-content: center; }
  .iq-done p { font-size: 0.84rem; }
}
/* The bot trap: out of sight and out of the tab order, not display:none
   (some bots skip hidden fields). */
.iq-trap { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   Dark document pages (service/about.html): the same column with the
   tokens turned over, white on black like the landing page.
   ============================================================ */
.doc-dark {
  --bg:     #0A0A0B;
  --ink:    #EDEDEF;
  --ink-2:  #A1A1AA;
  --ink-3:  #71717A;
  --line:   rgb(255 255 255 / 0.1);
  --line-2: rgb(255 255 255 / 0.18);
  --wash:   #141416;
  color-scheme: dark;
}
.doc-dark ::selection { background: rgb(255 255 255 / 0.18); }
.doc-dark .doc-bar { background: rgb(10 10 11 / 0.8); }
.doc-dark .g-opt.is-main .g-tag, .doc-dark .g-flag { color: var(--bg); }
.doc-dark .doc-foot { background: #0E0E10; }

/* A filled button for the one action that matters on the page. */
.g-btn.is-solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.g-btn.is-solid:hover { background: var(--ink-2); border-color: var(--ink-2); }

/* ---- About pieces ---- */
.ab-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.ab-product { display: flex; flex-direction: column; padding: 1.6rem 1.6rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.ab-product.is-main { border-color: var(--line-2); background: var(--wash); }
.ab-product-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.1rem; }
.ab-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 0.7rem; border: 1px solid var(--line-2); font-size: 1.25rem; }
.ab-product h3 { margin: 0; font-size: 1.25rem; font-weight: 750; letter-spacing: -0.03em; }
.ab-product-k { margin: 0.15rem 0 0.9rem !important; font-size: 0.88rem; color: var(--ink-3) !important; }
.ab-product p { margin: 0 0 1rem; color: var(--ink-2); font-size: 0.95rem; }
.ab-points { margin: 0 0 1.3rem; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.g-sec .ab-points li { margin: 0; padding-left: 1.4rem; position: relative; font-size: 0.9rem; color: var(--ink-2); }
.ab-points li::before { content: ''; position: absolute; left: 0.2rem; top: 0.72em; width: 0.45rem; height: 1px; background: var(--ink-3); }
.ab-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }

.ab-skills { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.g-sec .ab-skills li {
  margin: 0; padding: 1.1rem 1.15rem 1.15rem; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); column-gap: 0.7rem; row-gap: 0.2rem; align-items: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ab-skills li:nth-child(3n) { border-right: 0; }
.ab-skills li:nth-last-child(-n + 3) { border-bottom: 0; }
.ab-skills .ph { font-size: 1.15rem; color: var(--ink); }
.ab-skills b { font-size: 0.93rem; font-weight: 650; color: var(--ink); letter-spacing: -0.02em; }
.ab-skills span { grid-column: 2; font-size: 0.82rem; line-height: 1.5; color: var(--ink-3); }

.ab-end { margin-top: clamp(4rem, 8vw, 5.5rem); padding: clamp(2rem, 5vw, 2.75rem) 1.5rem; border: 1px solid var(--line); border-radius: var(--r-card); text-align: center; }
.ab-end h2 { margin: 0 0 0.5rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); font-weight: 800; letter-spacing: var(--track-head); }
.ab-end p { margin: 0 0 1.3rem; color: var(--ink-2); }

@media (max-width: 760px) {
  .ab-products { grid-template-columns: minmax(0, 1fr); }
  .ab-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-skills li:nth-child(3n) { border-right: 1px solid var(--line); }
  .ab-skills li:nth-child(2n) { border-right: 0; }
  .ab-skills li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .ab-skills li:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 30rem) {
  .ab-skills { grid-template-columns: minmax(0, 1fr); }
  .g-sec .ab-skills li { border-right: 0; border-bottom: 1px solid var(--line); }
  .g-sec .ab-skills li:last-child { border-bottom: 0; }
}

/* ---- Security pieces (service/security.html) ---- */
.sc-principles { margin: 2.75rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.sc-principles li { display: grid; gap: 0.35rem; align-content: start; padding: 1.25rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--wash); }
.sc-principles .ph { font-size: 1.35rem; margin-bottom: 0.35rem; }
.sc-principles b { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; }
.sc-principles span { font-size: 0.86rem; line-height: 1.6; color: var(--ink-2); }
/* The layer tags are Korean here: set in the sans, the mono has no Hangul. */
.sc-layers .g-layer-tag { font-family: var(--sans); letter-spacing: 0; }
.doc-sec .g-note { margin: 1rem 0 0; }
.doc-sec .g-list { margin: 0; padding: 0; }
.doc-sec .g-list li { margin: 0; }
.doc-sec .g-list b { color: var(--ink); }
.ab-end a:not(.g-btn) { color: var(--ink); }
@media (max-width: 760px) {
  .sc-principles { grid-template-columns: minmax(0, 1fr); }
}
.sc-net td:first-child { width: 9.5rem; color: var(--ink); font-weight: 600; }
@media (max-width: 30rem) { .sc-net td:first-child { width: 6.5rem; } }

/* Liquid-metal rim, as on the landing page's prompt bar (n.css .metal-rim):
   the shader draws on a canvas under the box, masked to a ring. Until it
   mounts, or with reduced motion, the plain border stays. */
.g-layer.is-hard { position: relative; isolation: isolate; border-color: var(--line-2); }
.metal-rim {
  position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit;
  padding: var(--metal-w, 1.5px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.metal-rim.is-on { opacity: 0.85; }
.metal-rim canvas { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; display: block; }
/* Bold lead, a short rule, then the detail: like the footer's separators. */
.sc-web b::after {
  content: ''; display: inline-block; width: 1px; height: 0.8em; margin-inline: 0.6rem;
  background: var(--line-2); vertical-align: -0.05em;
}

/* ---- Brochure placeholder (resources/brochure.html) ---- */
.bro-card { margin-top: 2.75rem; display: flex; align-items: center; gap: 1.1rem; padding: 1.4rem 1.5rem; border: 1px dashed var(--line-2); border-radius: var(--r-card); background: var(--wash); }
.bro-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.75rem; background: var(--bg); border: 1px solid var(--line); font-size: 1.45rem; }
.bro-name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-weight: 700; letter-spacing: -0.02em; }
.bro-desc { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--ink-2); }
.bro-now { margin-top: clamp(3rem, 6vw, 4rem); }
.bro-now > h2 { font-size: 1.2rem; }
.g-reading a .ph { color: var(--ink-3); }

/* ---- Sponsorship pieces (service/sponsorship.html) ---- */
.sp-mail { margin: 1.1rem 0 0 !important; font-size: 0.84rem; color: var(--ink-3) !important; letter-spacing: 0; }
.g-steps li > div { min-width: 0; }

/* Closed-test notice on the inquiry page: the note, with its icon. */
.iq-closed { display: flex; gap: 0.7rem; align-items: flex-start; }
.iq-closed .ph { flex: none; margin-top: 0.3em; font-size: 1.05rem; color: var(--ink); }
.iq-closed b { color: var(--ink); font-weight: 650; }

/* ---- Updates (resources/updates.html, update.html) ---- */
.up-list { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.up-empty { margin: 2rem 0; text-align: center; color: var(--ink-3); }
.up-month + .up-month { margin-top: 2.25rem; }
.up-month h2 { margin: 0 0 0.5rem; padding-inline: 0.75rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.up-month ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.up-month li { border-bottom: 1px solid var(--line); }
.up-row {
  display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) 1rem; align-items: baseline; gap: 1rem;
  padding: 1rem 0.75rem;
  text-decoration: none; transition: background 300ms var(--ease);
}
.up-row:hover { background: var(--wash); }
.up-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.up-vd { display: grid; gap: 0.15rem; }
.up-v { font-size: 0.76rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.up-t { display: grid; gap: 0.1rem; min-width: 0; }
.up-t b { font-size: 0.94rem; font-weight: 650; letter-spacing: -0.02em; }
.up-t > span { font-size: 0.82rem; line-height: 1.6; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-d { font-size: 0.68rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.up-row .ph { align-self: center; color: var(--ink-3); transition: transform 300ms var(--ease), color 300ms var(--ease); }
.up-row:hover .ph { color: var(--ink); transform: translateX(0.15rem); }
.up code { font-size: 0.82em; }
@media (max-width: 640px) {
  .up-row { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .up-vd { display: flex; align-items: baseline; gap: 0.6rem; }
  .up-t > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .up-row .ph { display: none; }
}

.up-body { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.up-sec + .up-sec { margin-top: 2.25rem; }
.up-sec h2 {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line);
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em;
}
.up-sec h2 .ph { font-size: 1.15rem; }
.up-sec h2 span { margin-left: 0.15rem; font-size: 0.8rem; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.up-sec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.up-sec li { position: relative; padding-left: 1.3rem; color: var(--ink-2); }
.up-sec li::before { content: ''; position: absolute; left: 0.2rem; top: 0.85em; width: 0.45rem; height: 1px; background: var(--ink-3); }
.up-source { margin: 2.25rem 0 0; font-size: 0.86rem; }
.up-source a { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--ink-3); text-decoration: none; }
.up-source a:hover { color: var(--ink); }

.up-pager { margin-top: clamp(3rem, 7vw, 4.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.up-page { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color 300ms var(--ease); }
.up-page:hover { color: var(--ink); }
.up-page .ph { font-size: 0.95rem; }
/* The eyebrow carries a version: keep its lower-case v. */
.up .doc-eyebrow { text-transform: none; letter-spacing: 0.02em; }
