/* 폴리우레아 코리아 — 자료실의 판면.
 *
 * 이 사이트는 팔지 않는다. 폴리우레아가 무엇이고 무엇이 아닌지를 적어 두는
 * 자료실이고, 읽는 사람은 대개 설계·감리·시설 담당자다. 그래서 판면은
 * 브로슈어가 아니라 기술 편람을 따른다 — 넓은 본문 여백보다 표가 우선이고,
 * 숫자는 자릿수가 맞고, 단면은 규칙선으로 나눈다.
 *
 * 색은 셋뿐이다. 먹(본문), 강청(鋼靑, 구조·링크), 그리고 주의를 뜻하는 주황.
 * 주황은 "이 조건에서는 쓰면 안 된다"는 문장에만 허락한다. 모든 문단을
 * 강조하면 아무 문단도 강조되지 않는다.
 */

:root {
  color-scheme: light;

  --ink: #141719;
  --ink-2: #4a5157;
  --ink-3: #767f86;

  --steel: #1f4e5f;        /* 강청 — 구조선·링크·표 머리 */
  --steel-deep: #12333f;
  --steel-soft: #e7eff2;

  --caution: #b3541e;      /* 주의·제약 조건 전용 */
  --caution-soft: #fbeee5;

  --paper: #ffffff;
  --paper-2: #f6f7f8;
  --paper-3: #eceef0;
  --rule: #d9dde0;
  --rule-strong: #b8bfc4;

  --sans: Pretendard, Pretendard Variable, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 42rem;
  --pad: clamp(1.15rem, 4vw, 3.5rem);
  --gap: clamp(1rem, 2.4vw, 1.75rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #e8ebed;
    --ink-2: #aab3b9;
    --ink-3: #7e878d;
    --steel: #7fb6c9;
    --steel-deep: #cfe4ec;
    --steel-soft: #16262c;
    --caution: #e08a5a;
    --caution-soft: #2a1a12;
    --paper: #101314;
    --paper-2: #171b1d;
    --paper-3: #1e2325;
    --rule: #2b3235;
    --rule-strong: #3c4549;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(.975rem, .94rem + .18vw, 1.05rem);
  line-height: 1.75;
  word-break: keep-all;          /* 한국어는 어절 단위로 끊어야 읽힌다 */
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.32;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-underline-offset: .18em; }
a:hover { color: var(--steel-deep); }

:focus-visible { outline: 3px solid var(--caution); outline-offset: 2px; }

.num { font-variant-numeric: tabular-nums lining-nums; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 50rem; }

.skip {
  position: absolute; left: -9999px;
  background: var(--steel); color: #fff; padding: .6rem 1rem; z-index: 99;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ── 머리띠 ─────────────────────────────────────────────────────────────── */
.top {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.top-in {
  display: flex; align-items: center; gap: 1rem;
  min-height: 3.75rem;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .5rem;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -.03em;
  text-decoration: none; color: var(--ink); margin-inline-end: auto;
  white-space: nowrap;
}
.brand i {
  font-style: normal; font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase;
}
.top nav { display: flex; gap: 1.05rem; align-items: center; }
.top nav a {
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding-block: .3rem;
  border-bottom: 2px solid transparent;
}
.top nav a:hover, .top nav a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--steel);
}
/* 좁은 화면에서는 메뉴가 한 줄로 흐르게 두고 가로로만 스크롤시킨다.
   줄바꿈하면 머리띠가 화면의 3분의 1을 먹는다. */
@media (max-width: 52rem) {
  .top-in { flex-wrap: wrap; gap: .4rem 1rem; padding-block: .55rem; min-height: 0; }
  .brand { margin-inline-end: 0; }
  .top nav {
    order: 3; width: 100%; min-width: 0;
    overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
    padding-bottom: .15rem; gap: 1rem;
  }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; }
}

/* ── 표제 ───────────────────────────────────────────────────────────────── */
.head { padding-block: clamp(2.25rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.25rem); }
.head h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.05rem); max-width: 22ch; }
.head .lede {
  margin-top: 1rem; font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem);
  color: var(--ink-2); max-width: 48ch;
}
.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .13em;
  color: var(--steel); text-transform: uppercase; margin: 0 0 .7rem;
}
.crumbs { font-size: .83rem; color: var(--ink-3); margin: 0 0 1.1rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--steel); text-decoration: underline; }

/* ── 본문 + 좌측 목차 ───────────────────────────────────────────────────── */
/* 그리드 아이템은 기본 min-width 가 auto — 안에 든 표(min-width: 34rem)가 그대로
 * 열 너비의 하한이 되어, 좁은 화면에서 문서 전체가 화면보다 넓어졌다. 표는
 * .t-wrap 이 가로 스크롤로 감당하면 되므로 열의 하한을 0으로 명시한다.
 * 한 칸짜리 레이아웃에서도 반드시 minmax(0, 1fr) 이어야 한다. */
.doc { display: grid; gap: clamp(1.5rem, 4vw, 3.25rem); align-items: start; grid-template-columns: minmax(0, 1fr); }
.doc > * { min-width: 0; }
@media (min-width: 62rem) { .doc { grid-template-columns: 14rem minmax(0, 1fr); } }

.toc { font-size: .88rem; }
@media (min-width: 62rem) { .toc { position: sticky; top: 4.75rem; } }
.toc h2 {
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .65rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc li a {
  display: block; padding: .3rem 0 .3rem .8rem; margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-2); text-decoration: none; line-height: 1.5;
}
.toc li a:hover { color: var(--steel); border-left-color: var(--steel); }

.body { max-width: var(--measure); min-width: 0; }
.body > h2 {
  font-size: clamp(1.32rem, 1.15rem + .8vw, 1.7rem);
  margin: 2.6em 0 .7em; padding-top: .9rem; border-top: 2px solid var(--ink);
  scroll-margin-top: 5rem;
}
.body > h2:first-child { margin-top: 0; }
.body > h3 {
  font-size: 1.08rem; margin: 2em 0 .55em; color: var(--steel-deep);
  scroll-margin-top: 5rem;
}
.body ul, .body ol { margin: 0 0 1.15em; padding-left: 1.25em; }
.body li { margin-bottom: .4em; }
.body li::marker { color: var(--ink-3); }
.body strong { font-weight: 700; }

/* ── 숫자판 ─────────────────────────────────────────────────────────────── */
.figs {
  display: grid; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); margin: 1.6rem 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 40rem) { .figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fig { background: var(--paper-2); padding: .95rem 1rem 1.05rem; }
.fig b {
  display: block; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  font-weight: 800; letter-spacing: -.02em; color: var(--steel-deep);
  font-variant-numeric: tabular-nums lining-nums;
}
.fig span { display: block; font-size: .8rem; color: var(--ink-2); margin-top: .2rem; line-height: 1.45; }

/* ── 표 ─────────────────────────────────────────────────────────────────── */
.t-wrap { overflow-x: auto; max-width: 100%; margin: 1.5rem 0; border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 34rem; }
caption {
  caption-side: top; text-align: left; font-size: .82rem; color: var(--ink-3);
  padding: .7rem .85rem; border-bottom: 1px solid var(--rule); background: var(--paper-2);
}
th, td { padding: .6rem .85rem; text-align: left; vertical-align: top; line-height: 1.55; }
thead th {
  background: var(--steel-soft); color: var(--steel-deep);
  font-weight: 700; font-size: .82rem; white-space: nowrap;
  border-bottom: 1px solid var(--rule-strong);
}
tbody tr + tr td, tbody tr + tr th { border-top: 1px solid var(--rule); }
tbody th { font-weight: 600; white-space: nowrap; background: var(--paper-2); }
td.n { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* ── 상자 ───────────────────────────────────────────────────────────────── */
.note, .warn {
  margin: 1.5rem 0; padding: .95rem 1.1rem;
  border-left: 3px solid var(--steel); background: var(--paper-2);
  font-size: .95rem;
}
.note b, .warn b { display: block; margin-bottom: .3rem; font-size: .85rem; letter-spacing: .01em; }
.note b { color: var(--steel-deep); }
.warn { border-left-color: var(--caution); background: var(--caution-soft); }
.warn b { color: var(--caution); }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }

/* 출처 한 줄 — 어느 문서에서 가져온 수치인지 본문 밑에 적는다 */
.src { font-size: .8rem; color: var(--ink-3); margin: -.6rem 0 1.4rem; }

/* ── 단면 ───────────────────────────────────────────────────────────────── */
.sec { padding-block: clamp(2.25rem, 5.5vw, 4rem); }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); max-width: 46rem; }
.sec-head h2 { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem); }
.sec-head p { color: var(--ink-2); margin-top: .7rem; }

.grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 44rem) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 58rem) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  border: 1px solid var(--rule); background: var(--paper);
  padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; transition: border-color .15s, background-color .15s; }
a.card:hover { border-color: var(--steel); background: var(--paper-2); }
.card h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.card p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.card .more { margin-top: .8rem; font-size: .85rem; font-weight: 600; color: var(--steel); }

/* 목차형 카드 — 번호가 붙은 자료 색인 */
.idx { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 46rem) { .idx { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.idx a {
  background: var(--paper); padding: 1.05rem 1.15rem 1.2rem;
  text-decoration: none; color: inherit; display: block;
}
.idx a:hover { background: var(--paper-2); }
.idx .n {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  color: var(--steel); font-variant-numeric: tabular-nums;
}
.idx h3 { font-size: 1rem; margin: .3rem 0 .3rem; }
.idx p { font-size: .88rem; color: var(--ink-2); margin: 0; }

/* ── 버튼 ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-size: .95rem; font-weight: 600;
  padding: .7rem 1.25rem; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-1 { background: var(--steel); color: #fff; }
.btn-1:hover, .btn-1:visited { color: #fff; }
.btn-1:hover { background: var(--steel-deep); }
.btn-2 { border-color: var(--rule-strong); color: var(--ink); background: var(--paper); }
.btn-2:hover, .btn-2:visited { color: var(--ink); }
.btn-2:hover { border-color: var(--ink); background: var(--paper-2); }
.btn-w { width: 100%; }

/* ── 문답 ───────────────────────────────────────────────────────────────── */
.qa details { border-bottom: 1px solid var(--rule); }
.qa details:first-of-type { border-top: 1px solid var(--rule); }
.qa summary {
  font-weight: 600; padding: .95rem 2rem .95rem 0;
  cursor: pointer; list-style: none; position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: .15rem; top: .8rem;
  font-size: 1.3rem; font-weight: 400; color: var(--steel);
}
.qa details[open] summary::after { content: "\2013"; }
.qa .a { padding-bottom: 1rem; color: var(--ink-2); }
.qa .a p:last-child { margin-bottom: 0; }

/* ── 폼 ─────────────────────────────────────────────────────────────────── */
.form { border: 1px solid var(--rule); background: var(--paper-2); padding: clamp(1.15rem, 3.5vw, 1.9rem); }
.f { margin-bottom: 1rem; }
.f label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .3rem; }
.f label .opt { font-weight: 400; color: var(--ink-3); }
.in, .sel, .ta {
  width: 100%; font: inherit; font-size: .97rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: 0;
  padding: .6rem .7rem;
}
.ta { resize: vertical; min-height: 7rem; line-height: 1.7; }
.sel {
  appearance: none; padding-right: 2.1rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%),
                    linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.in:focus, .sel:focus, .ta:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px var(--steel-soft); }
.in::placeholder, .ta::placeholder { color: var(--ink-3); }
.f2 { display: grid; gap: 0 var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 34rem) { .f2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 허니팟 — 화면에서도 스크린리더에서도 보이지 않아야 한다 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.msg { padding: .85rem 1rem; margin-bottom: 1rem; font-size: .93rem; border-left: 3px solid; }
.msg-ok { border-color: var(--steel); background: var(--steel-soft); color: var(--steel-deep); }
.msg-no { border-color: var(--caution); background: var(--caution-soft); color: var(--caution); }

.cf-turnstile { margin-bottom: 1rem; max-width: 100%; overflow-x: auto; }
.spin {
  display: inline-block; width: 1em; height: 1em; margin-right: .45em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: sp .7s linear infinite; vertical-align: -.15em;
}
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .spin { animation-duration: 1.6s !important; }
}

/* ── 본 사이트로 보내는 띠 ──────────────────────────────────────────────── */
.origin {
  border: 1px solid var(--rule); border-left: 3px solid var(--steel);
  background: var(--paper-2); padding: clamp(1.1rem, 3vw, 1.6rem);
  margin: clamp(2rem, 5vw, 3rem) 0 0;
}
.origin h2 { font-size: 1.12rem; margin-bottom: .45rem; }
.origin p { color: var(--ink-2); font-size: .95rem; max-width: 52ch; }
.origin .btn { margin-top: .35rem; }

/* ── 꼬리 ───────────────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--rule); background: var(--paper-2);
  padding-block: clamp(2rem, 5vw, 3rem); font-size: .9rem; color: var(--ink-2);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
/* 링크 칸이 둘일 수도 셋일 수도 있다. 고정 3칸 그리드로 두면 칸을 늘릴 때마다
   CSS 를 같이 고쳐야 해서, 개수에 따라 알아서 접히는 플렉스로 둔다. */
.foot-grid { display: flex; flex-wrap: wrap; gap: 1.75rem 2.5rem; }
.foot-grid > :first-child { flex: 1 1 20rem; }
.foot-grid > * { flex: 0 1 11rem; }
.foot h4 {
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .7rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--steel); text-decoration: underline; }
.foot-note { max-width: 46ch; line-height: 1.7; }
.foot-bottom {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-size: .83rem; color: var(--ink-3);
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
}
