/* ==========================================================================
   Korean Bar Talk — style.css
   바탕 #FAF8F2 · 글자 #242822 · 강조 #275744 · 보조 #E3ECE5
   영어 본문은 시스템 산세리프, 한국어 예문(lang="ko")은 한글 대체 글꼴.
   바로 쓸 문장은 연한 초록 상자(.say, 구절 카드)에 담습니다:
   .say__label → .say__line(한국어, lang="ko") → .say__note(발음과 영어 뜻)
   ========================================================================== */

:root {
  --bg: #faf8f2;
  --ink: #242822;
  --ink-soft: #5a6058;
  --accent: #275744;
  --accent-deep: #1b3f33;
  --sub: #e3ece5;
  --paper: #ffffff;
  --line: #dcd8ca;
  --line-soft: #ebe7db;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-ko: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", "NanumGothic", sans-serif;
  --r: 14px;
  --r-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* lang="ko" 로 표시한 한국어 예문: 한글 대체 글꼴.
   keep-all 은 body 전체에 걸어 두어 표시 없는 한글 단어도 가운데서 꺾이지 않는다
   (영어에는 영향이 없다). */
[lang="ko"] {
  font-family: var(--font-ko), var(--font);
}

::selection {
  background: var(--sub);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: rgba(39, 87, 68, 0.45);
}

a:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
}

img,
svg {
  max-width: 100%;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   머리말
   -------------------------------------------------------------------------- */

.site-head {
  border-bottom: 1px solid var(--line-soft);
}

.site-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 16px;
  padding-top: 14px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.site-nav {
  flex: 1 1 100%;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li:first-child a {
  margin-left: -8px;
}

.site-nav a {
  display: block;
  flex: none;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--sub);
  color: var(--accent-deep);
}

.site-nav a[aria-current="page"] {
  background: var(--sub);
  color: var(--accent);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   버튼
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--sub);
  color: var(--accent-deep);
}

/* --------------------------------------------------------------------------
   홈: 첫 화면
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  gap: 28px;
  padding-top: 32px;
  padding-bottom: 8px;
}

.hero__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 15em;
  margin: 0.3em 0 0.45em;
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 34em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero__actions {
  display: none;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 24px;
}

.phrases {
  position: relative;
  padding: 24px 22px 10px;
  border-radius: var(--r-lg);
  background: var(--sub);
}

.phrases__title {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.phrases ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phrases li + li {
  border-top: 1px dashed rgba(39, 87, 68, 0.3);
}

.phrases a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
}

.phrases__chip {
  margin-top: 0.3em;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.phrases__body {
  display: block;
  min-width: 0;
}

.phrases__ko {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}

.phrases__rr {
  display: block;
  margin-top: 2px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.5;
}

.phrases__text {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.phrases a:hover .phrases__ko,
.phrases a:focus-visible .phrases__ko {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

@media (min-width: 900px) {
  .site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 242, 0.94);
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 48px;
  }

  .hero__lead {
    margin-bottom: 0;
  }

  .hero__actions {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   홈·목록 공통 구간
   -------------------------------------------------------------------------- */

.section {
  padding: 40px 0 8px;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section__more {
  font-size: 0.9375rem;
  font-weight: 700;
}

/* 카드 */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 22px 52px 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.card:hover {
  border-color: var(--accent);
}

.card:hover .card__title {
  color: var(--accent-deep);
}

.card__kind {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card__title {
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.card__arrow {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1.4;
}

/* 글 목록 */

.postlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.postlist > .post:last-child {
  border-bottom: 1px solid var(--line);
}

.post__date {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.post__title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.post__title a {
  color: var(--ink);
  text-decoration: none;
}

.post__title a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.post__summary {
  margin: 0;
  color: var(--ink-soft);
}

/* 전체 글 페이지: 한 열, 가운데 */

.intro {
  max-width: 42rem;
  margin: 0 auto;
  padding: 40px 0 12px;
}

.intro h1 {
  margin: 0 0 0.45em;
  font-size: clamp(1.75rem, 1.25rem + 2.6vw, 2.55rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.postlist--page {
  max-width: 42rem;
  margin: 0 auto 64px;
}

/* 홈의 최근 글: 카드 모양 */

.postlist--grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 48px;
}

.postlist--grid > .post {
  padding: 22px 24px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.postlist--grid > .post:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.postlist--grid > .post:hover {
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   본문 틀
   -------------------------------------------------------------------------- */

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 20px 0 56px;
}

.crumbs {
  margin: 0 0 24px;
  font-size: 0.875rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.crumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
}

.crumbs [aria-current="page"] {
  font-weight: 600;
}

.post-head,
.page-head {
  margin-bottom: 28px;
}

.post-head h1,
.page-head h1 {
  margin: 0.2em 0 0.45em;
  font-size: clamp(1.75rem, 1.25rem + 2.6vw, 2.55rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.7;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  align-items: baseline;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.meta__author {
  color: var(--ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   본문 타이포그래피
   -------------------------------------------------------------------------- */

.prose h2 {
  margin: 2.6em 0 0.7em;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 1.9em 0 0.5em;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.45;
}

.prose p {
  margin: 0 0 1.05em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.35em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li::marker {
  color: var(--accent);
  font-weight: 800;
}

.prose strong {
  font-weight: 800;
}

.prose td strong,
.prose th strong {
  font-weight: 700;
}

/* 첫 문단(바로 쓸 말 상자 바로 뒤)은 한 급 크게 */

.say + p {
  font-size: 1.125rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   바로 쓸 말 상자
   -------------------------------------------------------------------------- */

.say {
  position: relative;
  margin: 28px 0 32px;
  padding: 22px 24px 24px;
  border-radius: var(--r-lg);
  background: var(--sub);
}

.say::after {
  content: "“";
  position: absolute;
  top: 0;
  right: 20px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0.16;
  pointer-events: none;
}

.say__label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.say__line {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.6;
}

.say__line + .say__line {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(39, 87, 68, 0.28);
}

/* 상자 안에 문장이 여럿일 때는 앞 문장의 설명 뒤에 점선을 둔다 */
.say__note + .say__line {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(39, 87, 68, 0.28);
}

.say__note {
  margin-top: 14px;
}

.say__note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.say__note i {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   가상 예시(메뉴판·계산서)
   -------------------------------------------------------------------------- */

.example {
  margin: 28px 0 34px;
  overflow-x: auto;
}

.example figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 1px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.menu,
.receipt,
.data {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  border-spacing: 0;
  border-collapse: separate;
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}

.menu th,
.menu td,
.receipt th,
.receipt td,
.data th,
.data td {
  padding: 11px 18px;
  text-align: left;
  vertical-align: baseline;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.menu thead th,
.receipt thead th,
.data thead th {
  padding: 12px 18px 6px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 800;
}

.data thead th {
  padding: 12px 14px;
  background: var(--sub);
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* 이름 열과 가격 열은 줄바꿈하지 않는다. 점선 열이 남는 폭을 가져가도
   두 열이 최소 폭까지 눌리지 않게 하기 위해서다(좁은 화면에서는 다시 푼다). */
.menu tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.menu .unit {
  display: inline-block;
  margin-left: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9375rem;
}

.menu .dots {
  position: relative;
  width: 100%;
  padding: 0 4px;
}

.menu .dots::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 0.95em;
  left: 4px;
  border-bottom: 2px dotted var(--line);
}

.menu .price {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.menu tbody tr + tr th,
.menu tbody tr + tr td {
  border-top: 1px dashed var(--line);
}

.receipt tbody th {
  font-weight: 500;
}

.receipt td {
  text-align: right;
  white-space: nowrap;
}

.receipt tbody tr + tr th,
.receipt tbody tr + tr td {
  border-top: 1px solid var(--line-soft);
}

.receipt tr.total th,
.receipt tr.total td {
  border-top: 2px solid var(--ink);
  font-weight: 800;
}

.receipt tr.split th,
.receipt tr.split td {
  background: var(--sub);
  color: var(--accent);
  font-weight: 800;
}

.data tbody th {
  font-weight: 700;
}

.data tbody tr + tr th,
.data tbody tr + tr td {
  border-top: 1px dashed var(--line);
}

.data th,
.data td {
  padding: 11px 14px;
}

/* 두 가지 방법 나열 */

.ways {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 1.4em;
}

.ways > div {
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--paper);
}

.ways dt {
  margin: 0 0 4px;
  font-weight: 800;
}

.ways dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9688rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   메모·확인 목록·순서
   -------------------------------------------------------------------------- */

.note {
  margin: 24px 0 28px;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(227, 236, 229, 0.45);
}

.note p {
  margin: 0;
  font-size: 0.9688rem;
  line-height: 1.7;
}

.note p + p {
  margin-top: 8px;
}

.check,
.steps {
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

.check li {
  position: relative;
  padding-left: 30px;
  margin: 0.5em 0;
}

.check li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 46px;
  margin: 0.9em 0;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0.2em;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   자주 묻는 질문·목차·정리·참고 자료
   -------------------------------------------------------------------------- */

.faq-item {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.faq-item summary {
  position: relative;
  padding: 15px 48px 15px 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--accent);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__body {
  padding: 0 18px 18px;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

.toc {
  margin: 32px 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--paper);
}

.toc__title {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.toc ol {
  margin: 0;
  padding-left: 1.35em;
}

.toc li {
  margin: 0.15em 0;
  font-size: 0.9688rem;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.wrap-up {
  margin: 2.4em 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.wrap-up > h2 {
  margin: 0 0 0.5em;
}

.wrap-up > ul {
  margin: 0;
  padding-left: 1.25em;
}

.wrap-up li {
  margin: 0.3em 0;
}

.refs {
  margin-top: 2.4em;
}

.refs > h2 {
  font-size: 1.125rem;
}

.refs ol {
  padding-left: 1.4em;
  font-size: 0.9375rem;
}

.refs li {
  margin: 0.5em 0;
  overflow-wrap: anywhere;
}

/* 관련 안내 */

.related {
  margin-top: 3.2em;
  padding-top: 1.8em;
  border-top: 1px solid var(--line);
}

.related > h2 {
  margin: 0 0 18px;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   페이지 찾기 실패 안내
   -------------------------------------------------------------------------- */

.linklist {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.linklist li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.linklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.linklist a {
  font-weight: 800;
}

.linklist span {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   푸터
   -------------------------------------------------------------------------- */

.site-foot {
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
}

.site-foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.site-foot__brand {
  margin: 0 0 4px;
  font-size: 1.0625rem;
  font-weight: 800;
}

.site-foot__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.site-foot__title {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot li {
  margin: 4px 0;
}

.site-foot a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.site-foot__copy {
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   넓은 화면
   -------------------------------------------------------------------------- */

@media (min-width: 760px) {
  .wrap {
    padding: 0 32px;
  }

  .site-head__inner {
    flex-wrap: nowrap;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .site-nav {
    flex: 1 1 auto;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
  }

  .site-nav li:first-child a {
    margin-left: 0;
  }

  .site-nav a {
    padding: 8px 16px;
    font-size: 0.9375rem;
  }

  .cards,
  .postlist--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prose {
    padding-top: 36px;
    padding-bottom: 88px;
  }

  .site-foot__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   좁은 화면
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
  /* 표는 글자와 여백을 줄여 한 화면 안에 둔다 */
  .menu,
  .data,
  .receipt {
    font-size: 0.9375rem;
  }

  .menu th,
  .menu td,
  .data th,
  .data td,
  .receipt th,
  .receipt td,
  .menu thead th,
  .data thead th,
  .receipt thead th {
    padding: 9px 10px;
  }

  /* 점선으로 이어지는 메뉴판: 단위를 이름 아래 줄에 두고 점선 열을 감춘다 */
  .menu .unit {
    display: block;
    margin-left: 0;
  }

  .menu .dots {
    display: none;
  }

  .menu tbody th {
    white-space: normal;
  }
}

/* 설명 표(첫 셀이 th 인 2열 표)는 480px 이하에서 이름 줄과 설명 줄로 쌓는다.
   원고의 3~4열 표(td 로 시작)는 열 뜻이 사라지므로 쌓지 않는다. */

@media (max-width: 480px) {
  .data:has(tbody th[scope="row"]) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .data:has(tbody th[scope="row"]) tbody,
  .data:has(tbody th[scope="row"]) tr,
  .data:has(tbody th[scope="row"]) tbody th,
  .data:has(tbody th[scope="row"]) td {
    display: block;
  }

  .data:has(tbody th[scope="row"]) tr {
    padding: 12px 14px;
  }

  .data:has(tbody th[scope="row"]) tbody tr + tr {
    border-top: 1px dashed var(--line);
  }

  .data:has(tbody th[scope="row"]) tbody tr + tr th,
  .data:has(tbody th[scope="row"]) tbody tr + tr td {
    border-top: 0;
  }

  .data:has(tbody th[scope="row"]) tbody th {
    padding: 0 0 2px;
    color: var(--accent);
  }

  .data:has(tbody th[scope="row"]) td {
    padding: 0;
    color: var(--ink-soft);
  }
}
