/* 폴리보트 공개 쪽 읽기 틀(2026-10-30) — 홈 · 요금표 · 소개 · 솔루션 소개 · 사례 · FAQ · 약관 공통.

   고친 까닭(2026-10-30 재어 보고 바로잡음): 처음에는 「글자가 작아서」라고 보고 크기를 올렸는데,
   악어에듀(akeoedu.com)와 우리 쪽의 글자를 글자 수로 가중해 재 보니 크기는 거의 같았다 —
   14px 이하가 악어 77% · 우리 73%. 갈린 것은 둘이었다.
     ① 굵기 — 악어는 보통 굵기(400 · 500)가 83%이고 굵은 글씨가 1%인데, 우리는 76%가 굵었다.
        전부 굵으면 아무것도 강조되지 않고 화면이 고르게 시끄러워진다.
     ② 단계 수 — 악어는 14 · 16 · 18 · 28 · 38 · 54 여섯 단인데 우리는 10 · 11.5 · 12 · 12.5 ·
        13 · 14 · 14.5 … 열세 단이었다. 0.5px 차이는 위계로 읽히지 않고 안 맞아 보이기만 한다.
   그래서 크기 눈금을 여섯 단으로 줄이고, 굵기를 세 단(400 · 600 · 700)으로 줄인다.
   Tailwind CDN 이 나중에 만드는 같은 이름의 규칙을 이기도록 html body 를 앞에 붙인다.

   조합원 소통방 · 조합 대시보드(coop.html · coop-admin.html)는 coop-read.css 가 따로 맡는다 —
   거기는 일하는 화면이라 한 눈에 들어와야 할 것이 많아 사다리만 올리고 여백은 건드리지 않는다. */

/* 1) 크기 눈금 — 13 · 15 · 17 · 21 · 34 · 50 여섯 단만 쓴다.
      그 사이 값(10 · 11.5 · 12 · 12.5 · 14 · 14.5 · 16 …)은 가까운 단으로 모은다. */
html body .text-\[9px\], html body .text-\[10px\], html body .text-\[11px\],
html body .text-\[11\.5px\], html body .text-\[12px\], html body .text-xs
  { font-size: 13px; line-height: 1.65; }
html body .text-\[13px\], html body .text-\[14px\], html body .text-sm, html body .text-\[15px\]
  { font-size: 15px; line-height: 1.7; }
html body .text-base, html body .text-\[16px\], html body .text-\[17px\]
  { font-size: 17px; line-height: 1.8; }
html body .text-lg, html body .text-\[18px\], html body .text-\[19px\], html body .text-xl
  { font-size: 21px; line-height: 1.6; }

/* 위 공통 메뉴의 로고 밑줄만 10px 이라 혼자 눈금 밖이었다 — 여기서만 올린다
   (site-nav.js 는 일하는 화면도 함께 쓰므로 그 파일은 건드리지 않는다) */
html body .gnb-logo-t small { font-size: 13px; font-weight: 600; }
html body .gnb-logo-t b { font-weight: 700; }

/* 2) 본문 — 기본 글자와 줄간격 */
html body { font-size: 17px; line-height: 1.7; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html body p, html body li { line-height: 1.8; }
html body .leading-relaxed { line-height: 1.85; }

/* 3) 굵기 — 400(본문) · 600(강조 · 라벨 · 작은 제목) · 700(큰 제목) 세 단만.
      800 · 900 은 쓰지 않는다. 강조는 굵기보다 색으로. */
html body .font-black, html body .font-extrabold { font-weight: 700; }
html body .font-bold { font-weight: 600; }
html body b, html body strong { font-weight: 600; }
html body h1, html body h2 { font-weight: 700; }
html body h3, html body h4 { font-weight: 600; }
html body h1 { line-height: 1.35; }
html body h2, html body h3 { line-height: 1.4; }

/* 4) 자간 — 한글은 좁히면 지저분해 보인다 */
html body .tracking-tight  { letter-spacing: -.012em; }
html body .tracking-tighter { letter-spacing: -.02em; }
html body .tracking-widest { letter-spacing: .1em; }

/* 5) 옅은 회색 글 — 바탕이 밝으면 진하게, 어두우면 옅게.

   1판은 흰 바탕만 보고 「진하게」만 했다. 그랬더니 검은 바탕 위에서는 글을 바탕 쪽으로
   끌어내려 오히려 안 보이게 됐다 — 재 보니 열세 쪽 141곳이 나빠졌다
   (푸터 7.83 → 4.81, 모두의 쿱 한해살이 6.97 → 4.21). 2026-10-30 사용자가 짚어 주셨다.

   어려운 점은 「가장 가까운 바탕」을 가려야 한다는 것이다. 푸터는 어두운 바탕과 글자색이
   같은 요소에 붙어 있고, 운영 사례는 흰 카드 안에 검은 칸이 들어 있다. 그래서 물려받는
   CSS 변수(--rd-dark)로 칸마다 밝고 어두움을 적어 두고, 글자색은 그 값으로 고른다 —
   변수는 가장 가까운 조상의 것이 이기므로 겹쳐 있어도 맞게 나온다.

   color-mix 를 모르는 옛 브라우저는 바로 윗줄(흰 바탕 값)을 쓴다 — 1판과 같은 모양이다. */

html body :is(.bg-black, .bg-stone-700, .bg-stone-800, .bg-stone-900, .bg-stone-950,
               .bg-slate-800, .bg-slate-900, .bg-slate-950,
               .bg-gray-800, .bg-gray-900, .bg-gray-950,
               .bg-neutral-800, .bg-neutral-900, .bg-zinc-800, .bg-zinc-900,
               [class*="bg-stone-800/"], [class*="bg-stone-900/"], [class*="bg-stone-950/"],
               [class*="bg-slate-900/"], [class*="bg-gray-900/"],
               .bg-ink,
               .text-white, .text-stone-100, .text-stone-200) { --rd-dark: 1; }

html body :is(.bg-white, .bg-stone-50, .bg-stone-100, .bg-stone-200,
               .bg-slate-50, .bg-slate-100, .bg-gray-50, .bg-gray-100) { --rd-dark: 0; }

html body .text-stone-400, html body .text-gray-400, html body .text-slate-400 {
  color: #837c76;
  color: color-mix(in srgb, #a8a29e calc(var(--rd-dark, 0) * 100%), #837c76);
}
html body .text-stone-500, html body .text-gray-500, html body .text-slate-500 {
  color: #6b635d;
  color: color-mix(in srgb, #9c958f calc(var(--rd-dark, 0) * 100%), #6b635d);
}
html body .text-stone-300, html body .text-gray-300 {
  color: #a39d98;
  color: color-mix(in srgb, #d6d3d1 calc(var(--rd-dark, 0) * 100%), #a39d98);
}

/* 6) 솔루션 소개 틀(solution-shell.js) — 글자 크기 단계와 쪽 안쪽 여백.
      앞서 줄간격 · 여백만 넓혔더니 눈에 띄지 않았다(2026-10-30 사용자). 크기 자체를 올린다. */
html body .sp-page { color: #4a443f; border-color: #edebe8; }
/* 어두운 바탕 화면(체험하기 · 한해살이)에서는 글자색을 빼앗지 않는다 — 위 규칙이 Tailwind 의 text-white 를
   이겨서 검은 바탕에 검은 글이 되고 있었다(2026-11-03 사용자 「설명이 이상하게」에서 함께 찾음). */
html body .sp-page.text-white { color: #fff; }
html body .sp-page.text-stone-200 { color: #e7e5e4; }

/* 제목 — 창 너비에 따라 늘어나게. 넓은 화면에서 50 · 34px(눈금 다섯째 · 여섯째 단) */
html body .sp-page h1 { font-size: clamp(1.9rem, 1.1rem + 2.2vw, 3.125rem); line-height: 1.28; margin-bottom: 1.75rem; }
html body .sp-page h2 { font-size: clamp(1.45rem, 1.05rem + 1.2vw, 2.125rem); line-height: 1.34; margin-bottom: 1rem; }

/* 제목 바로 밑 이끄는 글은 본문보다 한 단계 크게(21px) — 악어에듀도 이 단을 둔다 */
html body .sp-page h1 + p { font-size: 21px; line-height: 1.75; margin-bottom: 2.75rem; }
html body .sp-page h2 + p { font-size: 21px; line-height: 1.75; margin-bottom: 2.5rem; }

/* 쪽 안쪽 여백 */
html body .sp-page > .p-6 { padding: 2rem 1.75rem; }
@media (min-width: 768px) { html body .sp-page > .md\:p-10 { padding: 4.5rem 3.5rem; } }

/* 7) 휴대폰: 입력 칸 16px(누를 때 화면이 확대되지 않게) */
@media (max-width: 767px) {
  html body input:not([type=checkbox]):not([type=radio]), html body select, html body textarea { font-size: 16px; }
}

/* 8) 마감 손질(2026-11-12, Supanova 리디자인 점검표) — 공개 쪽 공통.
      위 1~7의 눈금(크기 · 굵기 · 자간 · 색)은 건드리지 않고, 점검에서 모든 쪽에 똑같이 나온 넷만.
      ① 제목 끝 한 글자만 다음 줄로 넘어감 → 제목만 balance
         (본문 pretty 는 넣었다가 뺐다 — keep-all 과 겹쳐 요금표 휴대폰에서 줄이 「·」로 시작했다)
      ② 표 안 숫자 폭이 줄마다 다름 → 표는 tabular-nums(그 밖의 숫자는 쪽마다 .tabular-nums 로)
      ③ 단추를 눌러도 눌린 느낌이 없음 · 기본 ease → 누를 때 0.98 + 스프링 곡선
      ④ 「동작 줄이기」 설정을 어느 쪽도 따르지 않음 — 홈 바탕 덩이 · 떠다니는 아이콘 · 흐르는 띠가 끝없이 돈다
         → 그 설정이면 움직임을 거의 0으로(끝 모습은 그대로 보이게 시간만 줄인다 — 아예 끄면
           처음 투명에서 시작하는 것이 안 보일 수 있다) */
html body h1, html body h2, html body h3 { text-wrap: balance; }
html body table { font-variant-numeric: tabular-nums; }

html body :is(a, button):is(.transition, .transition-all, .transition-colors, .transition-transform) {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
html body :is(a[class*="px-"], button[class*="px-"]):active:not(:disabled) { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  html body *, html body *::before, html body *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  html body :is(a[class*="px-"], button[class*="px-"]):active { transform: none; }
}

/* 9) 청록 대비(2026-11-12 impeccable 점검 P1) — 공개 쪽 공통.
      Tailwind teal-600(#0d9488)은 흰 바탕 작은 글자 · 흰 글자를 얹는 바탕 모두 3.74:1 로 AA(4.5) 미달이었다
      (홈 「왜 폴리보트인가」 같은 작은 제목 12곳, 「도입 상담 신청」 단추 등).
      글자는 5) 회색처럼 밝은 바탕에서만 한 단 진하게(teal-700 #0f766e · 5.47:1) — 어두운 바탕에서는 오히려
      밝은 teal-400 쪽으로. 흰 글자를 얹는 바탕은 teal-700, 누를 때 teal-800. */
html body .text-teal-600 {
  color: #0f766e;
  color: color-mix(in srgb, #2dd4bf calc(var(--rd-dark, 0) * 100%), #0f766e);
}
html body .bg-teal-600 { background-color: #0f766e; }
html body .hover\:bg-teal-700:hover { background-color: #115e59; }
html body .hover\:text-teal-600:hover, html body .group:hover .group-hover\:text-teal-600 { color: #0f766e; }
