/* NUKOTE KOREA — 제품 카탈로그의 판면.
 *
 * 여기는 116종의 코팅재를 계열별로 늘어놓는 곳이다. 읽는 사람은 대개 "우리
 * 현장에 쓸 수 있는 등급이 무엇인가"를 찾으러 오고, 등급명(ST-PW, PP 300,
 * XT Plus)이 검색어이자 이정표다. 그래서 등급명은 본문 서체가 아니라 고정폭
 * 서체로 세운다 — 문장 속에서도 코드로 읽히게.
 *
 * 바탕은 흑연, 강조는 구리. 구리는 계열 구분과 현재 위치에만 쓰고, 문장을
 * 꾸미는 데는 쓰지 않는다. 표제부만 어둡게 두어 목록 화면과 구분한다.
 */

:root {
  color-scheme: light;

  --ink: #17191c;
  --ink-2: #4d535a;
  --ink-3: #7d858d;

  --graphite: #1c2024;
  --graphite-2: #2a3036;

  --copper: #9a5527;
  --copper-lit: #c0703a;
  --copper-soft: #f6ece4;

  --paper: #fdfdfc;
  --paper-2: #f4f4f2;
  --paper-3: #e9e9e6;
  --rule: #dcdcd8;
  --rule-strong: #bcbcb6;

  --sans: Pretendard, Pretendard Variable, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --code: 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: #eceae7;
    --ink-2: #b0aca7;
    --ink-3: #85817c;
    --graphite: #0d0f11;
    --graphite-2: #171a1d;
    --copper: #d08a55;
    --copper-lit: #e8a877;
    --copper-soft: #2a1d13;
    --paper: #121415;
    --paper-2: #1a1c1e;
    --paper-3: #222527;
    --rule: #2e3134;
    --rule-strong: #43474b;
  }
}

*, *::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.28; letter-spacing: -.022em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1.05em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-underline-offset: .18em; }
a:hover { color: var(--copper-lit); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

/* 등급명은 어디에 있어도 코드로 보인다 */
code, .code {
  font-family: var(--code); font-size: .9em; letter-spacing: -.01em;
  background: var(--paper-3); padding: .08em .35em; border-radius: 2px;
}

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

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

/* ── 머리띠 ─────────────────────────────────────────────────────────────── */
.top { background: var(--graphite); color: #e8e6e2; }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 3.6rem; }
.brand {
  display: inline-flex; align-items: baseline; gap: .5rem;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .01em;
  text-decoration: none; color: #fff; margin-inline-end: auto; white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand i {
  font-style: normal; font-size: .66rem; font-weight: 600; letter-spacing: .14em;
  color: var(--copper-lit); text-transform: uppercase;
}
.top nav { display: flex; gap: 1.05rem; align-items: center; }
.top nav a {
  font-size: .89rem; font-weight: 500; color: #b8b4ae; text-decoration: none;
  padding-block: .3rem; border-bottom: 2px solid transparent;
}
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--copper-lit); }
@media (max-width: 54rem) {
  .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; }
  /* 손가락으로 누르는 자리는 44px 은 되어야 한다. 좁은 화면에서만 키워
     데스크톱 머리띠 높이는 그대로 둔다. */
  /* '인증' 처럼 두 글자짜리 라벨은 글자 폭만으로는 25px 밖에 안 된다.
     가로 여백을 줘서 누를 자리를 넓히고, 링크 사이 간격도 함께 벌린다. */
  .top nav { gap: .5rem; }
  .top nav a { min-height: 44px; display: inline-flex; align-items: center;
               padding-block: 0; padding-inline: .45rem; }
  .brand { min-height: 44px; align-items: center; }
  .foot ul { gap: .1rem; }
  .foot ul a { display: inline-flex; align-items: center; min-height: 42px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* ── 표제부 — 어두운 판 ─────────────────────────────────────────────────── */
.head { background: var(--graphite); color: #e8e6e2; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.head h1 { color: #fff; font-size: clamp(1.85rem, 1.2rem + 2.8vw, 3.2rem); max-width: 20ch; }
.head .lede { margin-top: 1.05rem; color: #bfbab3; font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem); max-width: 48ch; }
.head .crumbs { color: #8b8680; }
.head .crumbs a { color: #8b8680; }
.head .crumbs a:hover { color: var(--copper-lit); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--copper-lit); margin: 0 0 .7rem; }
.head-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }

.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(--copper); text-decoration: underline; }

/* ── 단면 ───────────────────────────────────────────────────────────────── */
.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; }

.body { max-width: var(--measure); min-width: 0; }
.body > h2 { font-size: clamp(1.32rem, 1.15rem + .8vw, 1.7rem); margin: 2.5em 0 .7em; scroll-margin-top: 2rem; }
.body > h2::before {
  content: ""; display: block; width: 2.5rem; height: 3px;
  background: var(--copper); margin-bottom: .85rem;
}
.body > h2:first-child { margin-top: 0; }
.body > h3 { font-size: 1.08rem; margin: 2em 0 .55em; scroll-margin-top: 2rem; }
.body ul, .body ol { margin: 0 0 1.15em; padding-left: 1.25em; }
.body li { margin-bottom: .4em; }
.body li::marker { color: var(--copper); }

/* ── 계열 카드 — 이 사이트의 주된 탐색 단위 ─────────────────────────────── */
.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)); } }

.family {
  border: 1px solid var(--rule); background: var(--paper);
  padding: 1.3rem 1.35rem 1.45rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
a.family:hover { border-color: var(--copper); }
.family .kicker { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.family h3 { font-size: 1.15rem; margin: .4rem 0 .5rem; }
.family p { color: var(--ink-2); font-size: .92rem; margin: 0 0 .9rem; }
.family .codes {
  display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto;
  font-family: var(--code); font-size: .76rem;
}
.family .codes span { background: var(--paper-3); padding: .18rem .42rem; color: var(--ink-2); white-space: nowrap; }
.family .more { margin-top: .9rem; font-size: .85rem; font-weight: 600; color: var(--copper); }

.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(--copper); 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(--copper); }

/* ── 제품 표 ────────────────────────────────────────────────────────────── */
.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: 36rem; }
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(--graphite-2); color: #e8e6e2; font-weight: 600; font-size: .8rem; white-space: nowrap; }
tbody tr + tr td, tbody tr + tr th { border-top: 1px solid var(--rule); }
tbody th { font-family: var(--code); font-weight: 600; white-space: nowrap; font-size: .85rem; }
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(--copper); background: var(--paper-2); font-size: .95rem; }
.note b, .warn b { display: block; margin-bottom: .3rem; font-size: .85rem; color: var(--copper); }
.warn { border-left-color: var(--ink); background: var(--paper-3); }
.warn b { color: var(--ink); }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.src { font-size: .8rem; color: var(--ink-3); margin: -.6rem 0 1.4rem; }

/* ── 숫자판 ─────────────────────────────────────────────────────────────── */
.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; color: var(--copper); 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; }

/* ── 그림 ───────────────────────────────────────────────────────────────── */
/* 이 사이트의 그림은 전부 이해를 돕기 위한 연출 이미지다. 실제 시공 사진이
 * 아니므로 캡션에 그 사실을 적는다 — 자료실이 사진으로 실적을 암시하면
 * 본문에서 지켜 온 기준이 무너진다. */
figure { margin: 1.8rem 0; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
figcaption {
  margin-top: .6rem; font-size: .84rem; line-height: 1.6;
  color: var(--ink-3);
}
figcaption b { color: inherit; font-weight: 600; }
/* 본문 폭을 넘겨 시원하게 보여 주는 그림 */
@media (min-width: 62rem) {
  figure.wide { width: min(58rem, calc(100vw - var(--pad) * 2)); }
}

/* ── 버튼 ───────────────────────────────────────────────────────────────── */
.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(--copper); color: #fff; }
.btn-1:hover, .btn-1:visited { color: #fff; }
.btn-1:hover { background: var(--copper-lit); }
.btn-2 { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn-2:hover, .btn-2:visited { color: var(--ink); }
.btn-2:hover { border-color: var(--ink); background: var(--paper-2); }
/* 어두운 표제부 위에서 쓰는 테두리 버튼 */
.btn-3 { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-3:hover, .btn-3:visited { color: #fff; }
.btn-3:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.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(--copper); }
.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(--copper) 50%),
                    linear-gradient(135deg, var(--copper) 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(--copper); box-shadow: 0 0 0 3px var(--copper-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(--copper); background: var(--copper-soft); color: var(--copper); }
.msg-no { border-color: var(--ink); background: var(--paper-3); color: var(--ink); }

.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(--copper); 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 { background: var(--graphite); color: #a8a49e; padding-block: clamp(2rem, 5vw, 3rem); font-size: .9rem; 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: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-lit); margin-bottom: .7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot a { color: #c4c0ba; text-decoration: none; }
.foot a:hover { color: #fff; 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 rgba(255,255,255,.12); font-size: .83rem; color: #8b8781; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
