/* ==========================================================================
   NUTRITION GUIDE — 식단 칼로리 계산기
   인쇄물 NUTRITION GUIDE 의 라임/화이트 톤을 그대로 옮긴 스타일시트
   ========================================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --lime:        #9ec93a;
  --lime-bright: #c3de4b;
  --lime-soft:   #eef5da;
  --lime-line:   #d9e8ad;
  --ink:         #1d2318;
  --ink-2:       #4a5343;
  --ink-3:       #7b8474;
  --bg:          #f7f9f2;
  --card:        #ffffff;
  --line:        #e6ebdb;
  --warn:        #c9552b;
  --warn-bg:     #fdf1ec;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(29,35,24,.04), 0 8px 24px rgba(29,35,24,.05);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* 한글은 단어 중간에서 끊지 않는다. 대신 긴 영문·URL 은 끊어서 넘치지 않게 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 제목은 줄 길이를 고르게, 본문은 마지막 줄에 한 단어만 남지 않게 */
h1, h2, h3, h4 {
  margin: 0; line-height: 1.32; letter-spacing: -0.02em;
  text-wrap: balance;
}
p, li, dd, .glist, .plan-desc, .kpi-note, .food-count {
  text-wrap: pretty;
}

p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; }

/* 여러 문단이 이어지는 덩어리의 공통 리듬 */
.stack > p + p { margin-top: 0.7em; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- 상단 바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,249,242,.88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 15px; letter-spacing: -0.03em;
  text-decoration: none; white-space: nowrap;
}
.brand .dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--lime); display: grid; place-items: center;
  color: #fff; font-size: 12px;
}
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a {
  text-decoration: none; color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  padding: 7px 11px; border-radius: 999px;
}
.topnav a:hover { background: var(--lime-soft); color: var(--ink); }
.topnav a.nav-strong { background: var(--ink); color: #fff; margin-left: 6px; }
.topnav a.nav-strong:hover { background: var(--ink); color: var(--lime-bright); }

/* ---------- 히어로 ---------- */
.hero { padding: 54px 0 30px; text-align: center; }
.hero .kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: #6f8a24; background: var(--lime-soft); border: 1px solid var(--lime-line);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 7vw, 62px); font-weight: 900; letter-spacing: -0.045em; }
.hero .rule {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 14px auto 0; max-width: 420px;
}
.hero .rule::before, .hero .rule::after {
  content: ""; height: 2px; flex: 1; background: var(--lime-line);
}
.hero .rule span { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.hero .lede {
  margin: 20px auto 0; max-width: 34em; color: var(--ink-2);
  font-size: 15.5px; line-height: 1.75; text-wrap: balance;
}
.hero .byline {
  margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--ink-3);
  letter-spacing: -0.01em;
}
.hero .byline b { color: #6f8a24; font-weight: 800; }

/* ---------- 섹션 ---------- */
section { padding: 30px 0; }
.sec-head {
  display: flex; align-items: center; gap: 10px 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.sec-num {
  background: var(--ink); color: #fff; font-weight: 800; font-size: 15px;
  padding: 5px 11px; border-radius: 8px; flex: none;
}
.sec-title {
  font-size: clamp(20px, 3.4vw, 26px); font-weight: 800;
  background: linear-gradient(transparent 62%, var(--lime-bright) 62%);
  padding: 0 6px; letter-spacing: -0.03em;
}
.sec-sub {
  font-size: 13.5px; line-height: 1.5; color: var(--ink-3); font-weight: 600;
  /* 제목 옆에 붙되, 자리가 없으면 통째로 아랫줄로 */
  flex: 1 1 auto; min-width: 0;
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px;
}
.card + .card { margin-top: 16px; }

/* ---------- 시작 게이트 ---------- */
.gate-lede {
  font-size: 15px; color: var(--ink-2); margin-bottom: 22px;
  max-width: 40em; text-wrap: balance;
}
.gate-lede b { font-weight: 800; color: var(--ink); }

.privacy {
  margin-top: 22px; padding: 20px 22px; border-radius: var(--r);
  background: #fbfcf7; border: 1px solid var(--line);
}
.privacy h4 {
  font-size: 13px; font-weight: 800; color: #6f8a24;
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.privacy dl {
  margin: 0; display: grid; grid-template-columns: 80px 1fr; gap: 10px 16px;
  align-items: baseline;
}
.privacy dt { font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.privacy dd {
  margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.75;
  max-width: 46em;
}
.privacy dd b { color: var(--ink-2); font-weight: 700; }

.consent {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: #fff; transition: border-color .12s, background .12s;
}
.consent:has(input:checked) { border-color: var(--lime); background: var(--lime-soft); }
.consent input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--lime); flex: none; }
.consent span { font-size: 14px; color: var(--ink-2); }
.consent b { font-weight: 800; color: var(--ink); }

.gate-skip-note {
  margin-top: 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.8;
  max-width: 46em;
}
.gate-skip-note p + p { margin-top: 4px; }

/* ---------- 환영 바 ---------- */
.welcome {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px; border-radius: var(--r);
  background: var(--lime-soft); border: 1px solid var(--lime-line);
  margin-bottom: 4px;
}
.welcome.anon { background: #f6f7f3; border-color: var(--line); }
.welcome.anon .who { color: var(--ink-3); }
.welcome .who { font-size: 14px; font-weight: 700; color: #55691a; }
.welcome .who b { font-weight: 900; }
.welcome .sync { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.welcome .sync.err { color: var(--warn); }
.link-btn {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px; padding: 4px;
}
.link-btn:hover { color: var(--warn); }

/* ---------- 입력 폼 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.field input, .field select {
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fcfdfa; width: 100%; transition: border-color .12s, box-shadow .12s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(158,201,58,.18); background: #fff;
}

.seg { display: flex; gap: 6px; position: relative; }
.seg input {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px;
  margin: 0; opacity: 0; pointer-events: none;
}
.seg label {
  flex: 1; text-align: center; padding: 10px 4px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fcfdfa; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--ink-3); transition: all .12s;
}
.seg input:checked + label { background: var(--lime); border-color: var(--lime); color: #fff; }
.seg input:focus-visible + label { box-shadow: 0 0 0 3px rgba(158,201,58,.3); }

details.advanced { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 16px; }
details.advanced summary {
  cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  list-style: none; display: flex; align-items: center; gap: 7px; user-select: none;
}
details.advanced summary::-webkit-details-marker { display: none; }
details.advanced summary::before { content: "＋"; color: var(--lime); font-weight: 800; }
details.advanced[open] summary::before { content: "－"; }
details.advanced .form-grid { margin-top: 16px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  border: none; cursor: pointer; font-weight: 800; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; transition: transform .1s, filter .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { filter: brightness(1.35); }
.btn-ghost {
  background: #fff; color: var(--ink-2); border: 1.5px solid var(--line);
  font-size: 14px; padding: 12px 20px;
}
.btn-ghost:hover { border-color: var(--lime); color: var(--ink); }

/* ---------- 결과 ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi {
  background: var(--lime-soft); border: 1px solid var(--lime-line);
  border-radius: var(--r); padding: 16px 18px;
}
.kpi.hero-kpi { background: var(--ink); border-color: var(--ink); }
.kpi.hero-kpi .kpi-label { color: #b9c9a1; }
.kpi.hero-kpi .kpi-val { color: #fff; }
.kpi.hero-kpi .kpi-note { color: #97a487; }
.kpi-label { font-size: 12px; font-weight: 700; color: #6f8a24; }
.kpi-val {
  font-size: 27px; font-weight: 900; letter-spacing: -0.04em; margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.kpi-val em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--ink-3); margin-left: 3px; }
.kpi.hero-kpi .kpi-val em { color: var(--lime-bright); }
.kpi-note { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.macro-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-top: 12px;
}
.macro { border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; background: #fff; }
.macro .name { font-size: 13px; font-weight: 800; }
.macro .g {
  font-size: 25px; font-weight: 900; letter-spacing: -0.04em; margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.macro .g em { font-style: normal; font-size: 13px; color: var(--ink-3); margin-left: 2px; }
.macro .sub { font-size: 12px; color: var(--ink-3); }
.macro .bar { height: 6px; border-radius: 99px; background: var(--line); margin-top: 9px; overflow: hidden; }
.macro .bar i { display: block; height: 100%; border-radius: 99px; }
.macro.carb .bar i { background: #e0b93c; }
.macro.prot .bar i { background: #6f8a24; }
.macro.fat  .bar i { background: #7fa9d6; }

.notice {
  display: flex; gap: 11px; align-items: flex-start;
  border-radius: var(--r); padding: 14px 17px; margin-top: 12px;
  font-size: 13.5px; line-height: 1.75;
  background: var(--warn-bg); border: 1px solid #f3d6c8; color: #8c3d1d;
}
.notice + .notice { margin-top: 8px; }
.notice.calm { background: #f2f6fa; border-color: #d8e4ef; color: #2f5478; }
.notice b { font-weight: 800; }
.notice .ico { font-size: 15px; line-height: 1.5; flex: none; }
.notice > div { max-width: 52em; }

/* ---------- 표 ---------- */
.table-scroll { overflow-x: auto; margin-top: 14px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th {
  background: var(--lime-soft); color: #55691a; font-size: 12.5px; font-weight: 800;
  border-bottom: 1px solid var(--lime-line);
}
tbody td { font-variant-numeric: tabular-nums; font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
tr.total td { background: #fbfcf7; font-weight: 800; border-top: 1.5px solid var(--lime-line); }
tr.diff td { color: var(--ink-3); font-size: 13px; font-weight: 700; }
tr.diff td.ok { color: #4f7a1e; }
tr.diff td.off { color: var(--warn); }
td.food-name { font-weight: 700; }
td.role { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }

/* ---------- 식단안 ---------- */
.plan-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.plan-tabs button {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-3);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.plan-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.plan-head h3 { font-size: 19px; font-weight: 800; }
.plan-head .tag {
  font-size: 12px; font-weight: 700; color: #6f8a24;
  background: var(--lime-soft); border-radius: 999px; padding: 3px 10px;
  white-space: nowrap;
}
.plan-desc {
  font-size: 13.5px; line-height: 1.75; color: var(--ink-3);
  margin-top: 7px; max-width: 48em;
}

.swap-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-top: 18px; padding: 16px; background: #fbfcf7;
  border: 1px dashed var(--lime-line); border-radius: var(--r);
}
.swap-row .field label { font-size: 12px; }

.meal-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin-top: 14px;
}
.meal { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: #fff; }
.meal h4 {
  font-size: 13px; font-weight: 800; color: #6f8a24; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.meal h4 span { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.meal ul { list-style: none; margin: 0; padding: 0; }
.meal li {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  font-size: 13.5px; line-height: 1.6; padding: 5px 0;
  border-bottom: 1px dotted var(--line);
}
.meal li:last-child { border-bottom: none; }
.meal li b {
  font-weight: 700; font-variant-numeric: tabular-nums;
  flex: none; white-space: nowrap;
}

/* ---------- 음식 검색 ---------- */
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.search-bar .field { flex: 1 1 200px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips button {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-3);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.chips button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #fff; }
.food-count { font-size: 13px; color: var(--ink-3); margin-top: 14px; font-weight: 600; }
#foodTable td.memo {
  white-space: normal; font-size: 12px; color: var(--ink-3); font-weight: 500;
  min-width: 150px; text-align: left;
}
.more-wrap { text-align: center; margin-top: 14px; }

/* ---------- 가이드 ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
/* 카드가 4장이라 넓은 화면에서는 3+1 로 남지 않게 2×2 로 고정 */
@media (min-width: 820px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.guide-card h3 {
  font-size: 16px; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.guide-card h3::before { content: ""; width: 5px; height: 17px; border-radius: 3px; background: var(--lime); }
.guide-card ul { margin: 0; padding: 0; list-style: none; }
.guide-card li {
  font-size: 14px; line-height: 1.75; padding: 7px 0 7px 22px;
  position: relative; color: var(--ink-2);
}
.guide-card li + li { border-top: 1px dotted var(--line); }
.guide-card li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--lime); font-weight: 900; font-size: 13px;
}
.guide-card li b { color: var(--ink); font-weight: 800; }
.foodgroup { padding: 9px 0; }
.foodgroup + .foodgroup { border-top: 1px dotted var(--line); }
.foodgroup:first-child { padding-top: 0; }
.foodgroup:last-child { padding-bottom: 0; }
.foodgroup .gname { font-size: 13px; font-weight: 800; color: #6f8a24; }
.foodgroup .glist { font-size: 14px; line-height: 1.7; color: var(--ink-2); margin-top: 3px; }

/* ---------- 푸터 ---------- */
footer { margin-top: 40px; border-top: 1px solid var(--line); background: #fff; padding: 30px 0 44px; }
footer .credit {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
footer .credit-mark {
  font-size: 17px; font-weight: 900; letter-spacing: -0.03em;
  background: linear-gradient(transparent 60%, var(--lime-bright) 60%); padding: 0 4px;
}
footer .credit-sub { font-size: 13px; font-weight: 700; color: var(--ink-3); }
footer .disclaimer {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.85; max-width: 46em;
}
footer .disclaimer p + p { margin-top: 10px; }
footer .disclaimer b { color: var(--ink-2); font-weight: 800; }
footer .src {
  font-size: 12px; color: var(--ink-3); line-height: 1.8;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  max-width: 46em;
}
footer .src a { color: #6f8a24; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 표가 잘려 있을 때 좌우로 밀라는 안내 — 모바일에서만 보인다 */
.scroll-hint {
  display: none; font-size: 12px; color: var(--ink-3); font-weight: 600;
  margin-top: 12px;
}
.scroll-hint::before { content: "↔ "; color: var(--lime); font-weight: 900; }

/* ---------- 반응형 ---------- */

/* 태블릿 — 카드 안쪽 여백만 조금 줄인다 */
@media (max-width: 900px) {
  .card { padding: 22px 20px; }
  .guide-card { padding: 20px 20px; }
}

/* 모바일 */
@media (max-width: 640px) {
  body { font-size: 14.5px; }

  .wrap { width: min(1080px, 100% - 28px); }
  .card { padding: 20px 17px; border-radius: var(--r); }
  .guide-card { padding: 19px 17px; border-radius: var(--r); }
  /* 모바일에서는 섹션 이동 링크는 숨기고 체성분 기록 링크만 남긴다 */
  .topnav a:not(.nav-strong) { display: none; }
  .topnav a.nav-strong { font-size: 12.5px; padding: 6px 11px; }

  .hero { padding: 32px 0 18px; }
  .hero .rule { max-width: 300px; }
  .hero .lede { font-size: 14.5px; margin-top: 16px; }
  .hero .byline { margin-top: 14px; }

  section { padding: 24px 0; }
  .sec-head { margin-bottom: 14px; }
  /* 부제는 제목과 같은 줄에 끼우지 말고 항상 아랫줄로 */
  .sec-sub { flex-basis: 100%; margin-top: -2px; }

  .kpi { padding: 14px 16px; }
  .kpi-val { font-size: 23px; }
  .macro { padding: 14px 16px; }
  .macro .g { font-size: 23px; }

  /* 개인정보 안내는 라벨/내용을 위아래로 */
  .privacy { padding: 17px 16px; }
  .privacy dl { grid-template-columns: 1fr; gap: 3px; }
  .privacy dt { margin-top: 9px; }
  .privacy dt:first-child { margin-top: 0; }

  .consent { padding: 13px 14px; }
  .gate-lede { margin-bottom: 18px; }

  /* 버튼은 한 줄에 하나씩, 세로로 */
  .btn { width: 100%; }
  .actions { flex-direction: column; gap: 8px; margin-top: 18px; }

  .welcome { padding: 12px 15px; gap: 8px; }
  .welcome .who { flex-basis: 100%; }
  .link-btn { margin-left: 0; padding: 2px 0; }

  .swap-row { padding: 14px; gap: 10px; }
  .plan-tabs { gap: 6px; }
  .plan-tabs button { padding: 8px 14px; font-size: 13px; }
  .plan-head h3 { font-size: 17px; }

  /* 표는 글자를 조금 줄여 한 화면에 더 들어오게 */
  table { font-size: 13px; }
  th, td { padding: 8px 10px; }
  .scroll-hint { display: block; }

  .search-bar { gap: 12px; }
  .search-bar .field { flex-basis: 100%; }
  .search-bar .field[style] { flex: 1 1 100% !important; }

  footer { padding: 26px 0 40px; }
  footer .credit { padding-bottom: 14px; margin-bottom: 16px; }
}

/* 아주 좁은 화면 (아이폰 SE 등) */
@media (max-width: 380px) {
  .wrap { width: min(1080px, 100% - 22px); }
  .card { padding: 17px 14px; }
  .kpi-val { font-size: 21px; }
  .sec-num { font-size: 14px; padding: 4px 9px; }
}

/* ---------- 인쇄 ---------- */
@media print {
  .topbar, .actions, .swap-row, #foodSection, .hero .lede, .plan-tabs,
  .scroll-hint, .link-btn, .gate-skip-note, #gate, #gym-info { display: none !important; }
  body { background: #fff; font-size: 12px; }
  /* 인쇄물에는 누구 결과인지 남기고 제작자 표기는 유지 */
  .welcome { background: none; border: none; border-bottom: 1px solid #ccc; padding-left: 0; }
  .card, .guide-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  section { padding: 10px 0; }
  .plan-panel[hidden] { display: block !important; }
  .plan-panel { break-before: page; }
}

/* ---------- 지축역 체육관 소개 (SEO) ---------- */
.gym-card { padding: 24px 26px; }
.gym-card-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px;
}
.gym-card-head h2 {
  font-size: clamp(18px, 3vw, 22px); font-weight: 800; letter-spacing: -0.02em;
}
.gym-badge {
  font-size: 11.5px; font-weight: 700; color: #6f8a24; background: var(--lime-soft);
  border: 1px solid var(--lime-line); padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.gym-desc {
  font-size: 14px; color: var(--ink-2); line-height: 1.75; max-width: 62em; margin-bottom: 18px;
}
.gym-desc b { color: var(--ink); font-weight: 800; }
.gym-meta {
  margin: 0 0 18px; display: grid; grid-template-columns: 76px 1fr; gap: 9px 16px;
  align-items: baseline; font-size: 13.5px;
}
.gym-meta dt { font-weight: 800; color: var(--ink-2); }
.gym-meta dd { margin: 0; color: var(--ink-2); }
.gym-meta dd a { color: #6f8a24; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.gym-meta-note { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.gym-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gym-actions .btn { display: inline-block; text-decoration: none; }

@media (max-width: 560px) {
  .gym-meta { grid-template-columns: 1fr; gap: 3px 0; }
  .gym-meta dt { margin-top: 8px; }
  .gym-meta dt:first-child { margin-top: 0; }
}
