/* benefit-world — 화면 기준 v2
   색: 글자 2, 선 1, 강조색 1(--blue, 나라별), 금색 1(--gold), 바탕 1. 글 크기 여섯 가지(13/15/17/20/26/40).
   쓰는 것: 단색 띠, 한 겹짜리 흰 카드, 선 아이콘, 큰 숫자.
   쓰지 않는 것: 세로 막대 소제목, 콜아웃 상자, 인용구 블록, 그라데이션, 그림자, 상자 속 상자. */
:root {
  --ink: #16191d;
  --sub: #5b6470;
  --line: #e3e5e8;
  --blue: #1553c7;
  --gold: #f4b223;
  --tint: #e8eefb;
  --mark: #fdf0c4;
  --bg: #eff1f4;
  --white: #fff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: 76px;
}
a { color: var(--blue); }
h1, h2, h3, p, ul, ol, table { margin: 0; }
.wrap { max-width: 720px; margin: 0 auto; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 머리 */
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--ink); text-decoration: none; line-height: 1.2; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: var(--white); }
.mark .i { stroke-width: 2.6; }
.brand-sub { display: block; font-size: 13px; font-weight: 400; color: var(--sub); }
.top-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--tint); }
.top-link .i { width: 18px; height: 18px; }
.brand-sub { white-space: nowrap; }

/* 홈 맨 위 색 띠 */
.hero { background: var(--blue); color: var(--white); padding: 26px 16px 22px; }
.hero h1 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.hero .lead { color: var(--white); opacity: 0.9; margin-top: 8px; }
.hero .note { color: var(--white); opacity: 0.85; margin-top: 12px; }
.hero .note a { color: var(--white); }
.hero .search input { border-color: var(--white); }
.hero .search button { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* 구역: 한 겹짜리 흰 카드 */
.sec { background: var(--white); margin: 12px 12px 0; padding: 20px 16px; border-radius: 16px; }
.sec > h1 { font-size: 26px; line-height: 1.25; font-weight: 800; }
.sec > h2, .open > h2, .band > h2 { font-size: 20px; line-height: 1.3; font-weight: 800; }
.sec > h2 + p, .sec > h1 + p { margin-top: 6px; }
.sec h3 { font-size: 17px; font-weight: 800; margin-top: 26px; }
.open { margin: 22px 12px 0; }
.open > h2 { padding: 0 4px; }
.lead { color: var(--sub); font-size: 17px; }
.note { color: var(--sub); font-size: 13px; line-height: 1.5; }
.checked { margin-top: 12px; }
.more { display: inline-flex; align-items: center; margin-top: 14px; font-size: 15px; font-weight: 700; text-decoration: none; }
.more::after { content: "›"; margin-left: 6px; font-size: 20px; line-height: 1; }
.crumb { font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.crumb a { color: var(--sub); }
.figure { margin-top: 14px; font-size: 26px; line-height: 1.25; font-weight: 800; color: var(--blue); }

/* 검색 */
.search { display: flex; margin-top: 16px; }
.search input {
  flex: 1; min-width: 0; font: inherit; padding: 13px 14px; color: var(--ink);
  border: 1.5px solid #aab2bd; border-right: 0; border-radius: 12px 0 0 12px; background: var(--white);
}
.search button {
  font: inherit; font-weight: 800; padding: 0 18px; color: var(--white); background: var(--blue);
  border: 1.5px solid var(--blue); border-radius: 0 12px 12px 0;
}

/* 지급일 달력 띠 */
.cal { border-collapse: separate; border-spacing: 8px 0; margin: 14px -8px 0; width: calc(100% + 16px); table-layout: fixed; }
.cal td { text-align: center; vertical-align: top; padding: 12px 4px; border: 1.5px solid var(--line); border-radius: 14px; }
.cal span { display: block; }
.cal-who { font-size: 13px; font-weight: 700; color: var(--sub); }
.cal-dow { font-size: 13px; margin-top: 8px; }
.cal-day { font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.cal-mon { font-size: 15px; font-weight: 700; }
.cal .when { font-size: 13px; color: var(--sub); margin-top: 6px; }
.cal td.next-cell { background: var(--gold); border-color: var(--gold); }
.cal td.next-cell .cal-who, .cal td.next-cell .when { color: var(--ink); }
.cal + .note { margin-top: 12px; }

/* 목록 줄 */
.rows { list-style: none; padding: 0; margin-top: 8px; }
.rows li + li { border-top: 1px solid var(--line); }
.rows a { display: flex; align-items: center; gap: 12px; padding: 14px 0; text-decoration: none; color: var(--ink); }
.ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--blue); align-self: flex-start; }
.row-main { flex: 1; min-width: 0; }
.row-name { display: block; font-weight: 700; font-size: 17px; line-height: 1.35; }
.row-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--sub); font-size: 15px; line-height: 1.45; margin-top: 2px; }
.row-meta { display: block; font-size: 15px; font-weight: 700; margin-top: 5px; color: var(--blue); }
.chev { color: #aab2bd; width: 18px; height: 18px; }
.rows .count { flex: none; min-width: 28px; text-align: center; font-size: 13px; font-weight: 700; color: var(--blue); background: var(--tint); border-radius: 999px; padding: 3px 8px; }
.empty { padding: 18px 0; color: var(--sub); font-size: 15px; }
.rows.numbered { counter-reset: n; }
.rows.numbered li { counter-increment: n; }
.rows.numbered .ico { background: var(--blue); color: var(--white); border-radius: 999px; width: 34px; height: 34px; font-weight: 800; font-size: 15px; margin-top: 2px; }
.rows.numbered .ico .i { display: none; }
.rows.numbered .ico::before { content: counter(n); }

/* 상황 타일 */
.tiles { list-style: none; padding: 0; margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles a { display: block; height: 100%; background: var(--white); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink); }
.tiles .i { color: var(--blue); width: 26px; height: 26px; }
.tile-name { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; margin-top: 8px; }
.tile-count { display: block; font-size: 13px; color: var(--sub); margin-top: 2px; }

/* 금색 띠 구역 */
.band { background: var(--gold); margin: 22px 12px 0; padding: 20px 16px; border-radius: 16px; }
.ticks { list-style: none; padding: 0; margin-top: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; margin-top: 10px; }
.ticks .i { margin-top: 1px; stroke-width: 2.6; }

/* 표 */
.tbl { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line); }
.tbl thead th { color: var(--sub); font-weight: 600; font-size: 13px; border-bottom: 1.5px solid #aab2bd; }
.tbl tbody th { width: 34%; font-weight: 600; color: var(--sub); }
.tbl.dates tbody th { width: 24%; color: var(--ink); white-space: nowrap; padding-left: 8px; }
.tbl.dates td { white-space: nowrap; }
.tbl tr.next td, .tbl tr.next th { background: var(--mark); }
.tbl .when { color: var(--sub); font-size: 13px; display: block; }
.tbl .ok { font-weight: 800; color: var(--blue); }
.tbl .over { font-weight: 800; color: #a3270f; }
.tbl a[href^="tel:"], .body a[href^="tel:"] { white-space: nowrap; font-weight: 700; }
@media (max-width: 380px) {
  .tbl.dates { font-size: 13px; }
  .tbl.dates th, .tbl.dates td { padding-right: 4px; }
  .tbl.dates tbody th { width: auto; }
  .cal-day { font-size: 34px; }
  .cal-who { font-size: 12px; }
  .hero h1 { font-size: 26px; }
}

/* 입력 */
.form { margin-top: 16px; }
.form label, .form legend { display: block; font-size: 15px; font-weight: 700; margin-top: 16px; padding: 0; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form select, .form input[type="number"] {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 12px; color: var(--ink);
  border: 1.5px solid #aab2bd; border-radius: 12px; background: var(--white);
}
.form .opt { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 8px 20px 0 0; }
.form .opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }

/* 본문 */
.body ul, .body ol { padding-left: 20px; margin-top: 8px; }
.body li { margin-top: 6px; }
.body p { margin-top: 8px; }
.body .src { font-size: 13px; color: var(--sub); word-break: break-word; }
.body .src li { margin-top: 4px; }
.body ol.steps { list-style: none; padding: 0; counter-reset: s; }
.body ol.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-top: 12px; min-height: 28px; }
.body ol.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 15px; font-weight: 800; display: grid; place-items: center; }

.actions { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.actions > :only-child { grid-column: 1 / -1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; text-align: center;
  padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--blue); background: var(--blue); color: var(--white); cursor: pointer;
}
.btn .i { width: 18px; height: 18px; }
.btn.wide { grid-column: 1 / -1; font-size: 17px; padding: 15px 16px; }
.btn.plain { background: var(--white); color: var(--blue); }
.btn[aria-pressed="true"] { background: var(--tint); color: var(--blue); border-color: var(--tint); }

/* 고르기 */
.checks { list-style: none; padding: 0; margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.checks label { display: flex; align-items: flex-start; gap: 8px; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.checks input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
@media (max-width: 420px) { .checks { grid-template-columns: 1fr; } }

.foot { padding: 26px 16px 8px; }
.foot p { color: var(--sub); font-size: 13px; line-height: 1.5; }
.foot p + p { margin-top: 6px; }
.foot nav { margin-top: 12px; font-size: 13px; }
.foot nav a { color: var(--sub); margin-right: 14px; display: inline-block; padding: 4px 0; }

/* 아래 메뉴 */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 1px solid var(--line); z-index: 5; }
.tabs .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.tabs a { position: relative; text-align: center; padding: 10px 2px calc(9px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--sub); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--blue); font-weight: 800; }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
.tabs svg { display: block; margin: 0 auto 2px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 자동 광고가 들어와도 화면 폭을 넘기지 않게 */
main { overflow-x: clip; }
main ins.adsbygoogle, main .google-auto-placed { max-width: 100% !important; overflow: hidden; }
[hidden] { display: none !important; }
