/* 내일On — shared styles. Colors follow OpenColors in OpenDesign.kt. */
:root {
  /* 내일On (2026-10-22): Save the Children red on what you press, KNOU Dark Blue on titles and links. */
  --red: #DA291C;
  --red-deep: #B8221A;
  --blue: #0054A7;
  --paper: #FBF6F5;
  --ink: #231B1A;
  --muted: #6C605E;
  --sky: #E6EEF8;
  --line: #EEE2DF;
  --white: #FFFFFF;
  --warn-bg: #FFF7EA;
  --warn-line: #F1DDB6;
  --warn-ink: #7A4B0C;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(0, 84, 167, .35); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 800px; }

.skip {
  position: absolute; left: 8px; top: -48px; z-index: 50;
  padding: 8px 14px; border-radius: 10px;
  background: var(--blue); color: var(--white); text-decoration: none; font-size: 14px;
}
.skip:focus { top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--blue); flex-shrink: 0; }
.brand img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); }
.brand span { font-size: 23px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.brand .on { color: var(--red); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 15px 26px;
  border-radius: 16px; border: 0;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-deep); }
.btn--light { background: var(--white); color: var(--red); }
.btn--light:hover { background: var(--sky); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Shared panels and headings */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: 14px; font-weight: 600; color: var(--blue); letter-spacing: -0.01em;
}
.section-title { font-size: 24px; line-height: 1.42; font-weight: 700; letter-spacing: -0.03em; }

/* ---------- Landing ---------- */
.hero { position: relative; overflow: hidden; background: var(--sky); border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; display: grid; gap: 32px; padding-top: 44px; padding-bottom: 48px; }
.pill {
  display: inline-flex; align-items: center; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--blue);
}
.hero h1 {
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.36; font-weight: 700; letter-spacing: -0.035em;
  color: var(--blue);
}
.hero h1 br, .hero-sub br { display: none; }
.hero-sub {
  margin-top: 10px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; font-weight: 600; letter-spacing: -0.025em;
  color: var(--blue); text-wrap: balance;
}
.hero-intro { margin-top: 18px; max-width: 34em; font-size: 17px; line-height: 1.7; color: var(--ink); }
.hero-cta { margin-top: 28px; display: grid; gap: 10px; }
.hero-cta .btn { width: 100%; }
.partners {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
}
.partners img { flex: 1 1 0; min-width: 0; height: 32px; object-fit: contain; }
.partners .x { flex-shrink: 0; color: var(--muted); font-size: 16px; }

.block { padding-top: 40px; }
.block:last-of-type { padding-bottom: 56px; }
.block-head { margin-bottom: 22px; }

.steps-panel { padding: 24px 20px; }
.steps { list-style: none; display: grid; gap: 26px; margin-top: 24px; }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 23.5px; top: 56px; bottom: -20px; width: 1px; background: var(--line);
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sky); color: var(--blue); font-size: 20px; font-weight: 600;
}
.step h3 { font-size: 17px; line-height: 1.45; font-weight: 600; letter-spacing: -0.015em; padding-top: 11px; }
.step p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.orgs { display: grid; gap: 16px; }
.org { display: flex; flex-direction: column; padding: 24px 20px; }
.org-logo { height: 44px; display: flex; align-items: center; margin-bottom: 18px; }
.org-logo img { height: 38px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.org h3 { font-size: 18px; line-height: 1.45; font-weight: 600; letter-spacing: -0.02em; }
.org-tagline { margin-top: 4px; font-size: 14px; color: var(--muted); }
.org-fund { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--paper); flex-grow: 1; }
.org-fund strong { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--blue); }
.org-fund p { font-size: 15px; line-height: 1.6; }

.notice {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start;
  margin-top: 16px; padding: 16px 18px; border-radius: 14px;
  background: transparent; border: 1px dashed var(--line);
  font-size: 14px; line-height: 1.65; color: var(--muted);
}
.notice svg { width: 20px; height: 20px; margin-top: 1px; color: var(--muted); }

.closing { padding: 32px 24px; border-radius: var(--radius); background: var(--blue); color: var(--white); }
.closing h2 { color: var(--white); font-size: 22px; line-height: 1.45; font-weight: 700; letter-spacing: -0.03em; }
.closing-actions { margin-top: 22px; display: grid; gap: 10px; }
.closing .btn { width: 100%; }

/* ---------- Document pages ---------- */
.doc-main { padding-top: 36px; padding-bottom: 56px; }
.doc-title { font-size: 26px; line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; }
.doc-sub { margin-top: 8px; font-size: 15px; color: var(--muted); }
.doc-intro {
  margin-top: 24px; padding: 18px 20px; border-radius: 14px;
  background: var(--sky); color: var(--ink); font-size: 15px; line-height: 1.75;
}
.toc { margin-top: 20px; padding: 18px 20px; }
.toc h2 { font-size: 15px; font-weight: 600; color: var(--muted); }
.toc ol { list-style: none; margin-top: 10px; display: grid; gap: 4px; }
.toc a { font-size: 14px; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }

.doc { margin-top: 20px; padding: 8px 20px; }
.article { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.article:first-child { border-top: 0; }
.article h2 { font-size: 18px; line-height: 1.5; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.article h2 .no { color: var(--blue); }
.article h3 { font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.article p, .article li { font-size: 15px; line-height: 1.75; }
.article p + p, .article p + ul, .article p + ol, .article ul + p, .article ol + p, .article dl + p { margin-top: 10px; }
.article ol, .article ul { padding-left: 1.3em; }
.article li + li { margin-top: 6px; }
.article li::marker { color: var(--muted); }
.article strong { font-weight: 600; }
.article .note { color: var(--muted); font-size: 14px; }

.facts { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; line-height: 1.65; }
.facts dd ul { padding-left: 1.1em; }
.url { overflow-wrap: anywhere; }

.contact { margin-top: 12px; padding: 16px 18px; border-radius: 12px; background: var(--paper); }
.contact p { font-size: 15px; }
.contact p + p { margin-top: 4px; }
.contact b { display: inline-block; min-width: 4.2em; font-weight: 600; color: var(--muted); }

/* Account deletion */
.card { margin-top: 16px; padding: 24px 20px; }
.card h2 { font-size: 19px; line-height: 1.45; font-weight: 700; letter-spacing: -0.02em; }
.card h2 .tag {
  display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px; vertical-align: 2px;
  background: var(--sky); color: var(--blue); font-size: 13px; font-weight: 600;
}
.card > p { margin-top: 10px; font-size: 15px; line-height: 1.7; }
.card > p.muted { color: var(--muted); font-size: 14px; }
.flow { list-style: none; margin-top: 16px; display: grid; gap: 14px; }
.flow li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 15px; line-height: 1.65; }
.flow .n {
  width: 30px; height: 30px; border-radius: 50%; margin-top: -2px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sky); color: var(--blue); font-size: 14px; font-weight: 600;
}
.ui { font-weight: 600; color: var(--blue); }
.mailbox { margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--sky); text-align: center; }
.mailbox a { font-size: 19px; font-weight: 700; color: var(--blue); text-decoration: none; }
.mailbox a:hover { text-decoration: underline; }
.mailbox p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.dots { list-style: none; margin-top: 12px; }
.dots li { position: relative; padding: 9px 0 9px 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.65; }
.dots li:first-child { border-top: 0; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.warn {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  margin-top: 16px; padding: 16px 18px; border-radius: 14px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink);
  font-size: 15px; font-weight: 600; line-height: 1.6;
}
.warn svg { width: 22px; height: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 32px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.site-footer strong { color: var(--ink); font-weight: 600; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--blue); }
.foot-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot-links span { color: var(--line); }
.foot-copy { margin-top: 12px; }

/* Wider screens */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero h1 br, .hero-sub br { display: inline; }
  .hero-cta, .closing-actions { display: flex; flex-wrap: wrap; }
  .hero-cta .btn, .closing .btn { width: auto; }
  .steps-panel, .org, .card { padding: 32px; }
  .orgs { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 26px; }
  .closing { padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .closing-actions { margin-top: 0; flex-shrink: 0; }
  .doc-title { font-size: 30px; }
  .doc { padding: 12px 36px; }
  .toc { padding: 20px 28px; }
  .toc ol { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .facts div { grid-template-columns: 9.5em 1fr; gap: 16px; }
  .facts dt { font-size: 14px; padding-top: 1px; }
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
  .step { display: block; }
  .step:not(:last-child)::after { left: 62px; right: -10px; top: 24px; bottom: auto; width: auto; height: 1px; }
  .step h3 { padding-top: 0; margin-top: 18px; }
  .block { padding-top: 56px; }
  .block:last-of-type { padding-bottom: 72px; }
}

@media (min-width: 1024px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 84px; }
  .hero-arc { right: -40px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); }
  .partners { flex-direction: column; gap: 18px; padding: 36px 32px; border-radius: var(--radius); }
  .partners img { flex: none; width: 100%; height: 46px; }
  .hero-intro { font-size: 18px; }
}

@media (max-width: 480px) {
  .site-header .wrap { gap: 10px; }
  .brand { gap: 7px; }
  .brand img { width: 26px; height: 26px; border-radius: 7px; }
  .brand span { font-size: 20px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
}

/* 내일On is wider than Open was: on the narrowest phones the name stands alone, and below 360px the icon does. */
@media (max-width: 400px) {
  .brand img { display: none; }
}

@media (max-width: 359px) {
  .brand img { display: block; }
  .brand span { display: none; }
}
