:root {
  --navy: #0b2545;
  --red: #c8102e;
  --pink: #f4b6c0;
  --ink: #1a1a1a;
  --muted: #5b6573;
  --muted-2: #6b7685;
  --body: #4a5563;
  --line: #e3e6ea;
  --line-soft: #eef1f5;
  --ad-bg: #eef1f5;
  --ad-border: #9aa6b4;
  --soft: #f6f7f9;
  --top-text: #dbe4f0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  -webkit-tap-highlight-color: rgba(11, 37, 69, .12);
  background: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--ink);
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.serif { font-family: 'Noto Serif KR', serif; }

.sr-only {
  position: absolute;
  left: -9999px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--top-text);
  font-size: 13px;
}
.topbar .container {
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.today-short { display: none; }
.topbar a, .site-footer a { color: var(--top-text); }
.topbar a:hover, .site-footer a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-main {
  padding-top: 24px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: 44px;
  letter-spacing: -1px;
  color: var(--navy);
  line-height: 1;
}
.logo span { color: var(--red); }
.logo img { display: block; height: auto; }
.footer-logo { display: block; height: auto; }
.tagline { font-size: 13px; color: var(--muted); margin-top: 6px; }

.search { display: flex; flex: 0 1 320px; }
.search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid #cfd5dc;
  border-right: 0;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  border-radius: 4px 0 0 4px;
}
.search input:focus { outline: 2px solid var(--navy); outline-offset: -2px; }
.search button {
  height: 44px;
  padding: 0 18px;
  background: var(--navy);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.gnb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-weight: 700;
  font-size: 16px;
}
.gnb a { padding: 12px 0; border-bottom: 3px solid transparent; }
.gnb a.active { border-bottom-color: var(--red); color: var(--navy); }
.gnb a.accent { color: var(--red); }

/* Compact header (article page) */
.header-compact {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-compact .logo { font-size: 32px; }
.header-compact .gnb { gap: 4px 24px; font-size: 15px; }
.header-compact .gnb a { padding: 10px 0; border: 0; }
.header-compact .gnb a.active { color: var(--red); }

/* ---------- Ads ---------- */
.ad {
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  color: var(--body);
}
.ad-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted-2); }
.ad-name { font-weight: 700; font-size: 18px; }
.ad-hero { margin-top: 24px; aspect-ratio: 4 / 1; gap: 6px; }
.ad-hero .ad-name { font-size: 22px; }
.ad-inline { margin: 24px 0; height: 120px; }
.ad-article { margin: 32px 0; height: 140px; }
.ad-side { aspect-ratio: 1 / 1; padding: 8px; }
.ad-side .ad-label { font-weight: 400; letter-spacing: 0; }
.ad-side .ad-name { font-size: 15px; }
.ad-side-lg { aspect-ratio: 6 / 5; }
.ad-side-lg .ad-label { font-weight: 400; letter-spacing: 0; }
.ad-side-lg .ad-name { font-size: 17px; }
.ad-caption { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted-2); }

/* Real banner images */
.ad-row { margin: 24px 0; display: flex; flex-direction: column; gap: 8px; }
.ad-row-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.banner { display: block; border-radius: 4px; overflow: hidden; background: var(--ad-bg); }
.banner img { display: block; width: 100%; height: auto; }
.banner:hover img { opacity: .92; }
.banner-hero { margin-top: 24px; aspect-ratio: 1599 / 397; }
.banner-inline {
  margin: 24px 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
}
.banner-inline img { max-width: 480px; border-radius: 4px; }
.banner-side { aspect-ratio: 2 / 1; }
.side-banners { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Layout ---------- */
.layout {
  padding-top: 32px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.col-main {
  flex: 999 1 640px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.col-side {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.thumb { background: #dfe5ec; border-radius: 4px; }
img.thumb { display: block; width: 100%; object-fit: cover; }

.cat { font-size: 12px; font-weight: 700; color: var(--red); }

/* ---------- Headline ---------- */
.headline { display: flex; flex-wrap: wrap; gap: 28px; }
.headline-lead {
  flex: 3 1 400px;
  min-width: 0;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.headline-lead .thumb { background: #c9d3df; aspect-ratio: 16 / 10; }
.headline-lead .cat { font-size: 13px; }
.headline-lead h1 {
  margin: 0;
  font-family: 'Noto Serif KR', serif;
  font-size: 30px;
  line-height: 1.35;
  color: var(--navy);
}
.headline-lead p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--body); }
.headline-lead:hover h1 { color: var(--red); }

.headline-list { flex: 2 1 260px; min-width: 0; display: flex; flex-direction: column; }
.headline-list a {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.headline-list a:first-child { padding-top: 0; }
.headline-list a:last-child { padding-bottom: 0; border-bottom: 0; }
.headline-list .thumb { flex: 0 0 104px; height: 72px; background: #d7dee7; }
.headline-list .title { font-weight: 700; font-size: 15px; line-height: 1.5; margin-top: 2px; }
.headline-list a:hover .title { color: var(--red); }

/* ---------- Section header ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.section-head h2 { margin: 0; font-size: 20px; color: var(--navy); }
.section-head a { font-size: 14px; color: var(--muted); }
.section-head.spaced { margin-bottom: 20px; }

/* ---------- News list ---------- */
.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.news-item .thumb { flex: 0 0 180px; height: 116px; }
.news-item .body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.news-item h3 { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 700; }
.news-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.news-item .time { font-size: 12px; color: var(--muted-2); }
.news-item:hover h3 { color: var(--red); }

/* ---------- Columns ---------- */
.column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.column-card {
  background: var(--soft);
  padding: 24px;
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.column-card .src { font-size: 13px; font-weight: 700; color: var(--navy); }
.column-card .title {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}
.column-card .author { font-size: 13px; color: var(--muted-2); }
.column-card:hover .title { color: var(--red); }

/* ---------- Sidebar ---------- */
.magazine {
  background: var(--navy);
  color: #fff;
  padding: 22px;
  border-radius: 6px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.magazine:hover { color: #fff; background: #12335c; }
.magazine .cover { flex: 0 0 72px; height: 100px; background: var(--top-text); border-radius: 2px; object-fit: cover; }
.magazine .kicker { font-size: 12px; color: var(--pink); font-weight: 700; }
.magazine .name { font-weight: 700; font-size: 17px; margin-top: 4px; }
.magazine .more { font-size: 13px; color: var(--top-text); margin-top: 6px; }

.popular {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
}
.popular h2 { margin: 0 0 12px; font-size: 17px; color: var(--navy); }
.popular a {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.popular a:hover { color: var(--red); }
.popular .rank { font-weight: 900; color: var(--red); width: 16px; flex: 0 0 16px; }

.ad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--top-text);
  font-size: 14px;
}
.site-footer .container {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo {
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: 28px;
  color: #fff;
}
.footer-logo span { color: var(--pink); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Article page ---------- */
.article-layout {
  padding-top: 36px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.article {
  flex: 999 1 640px;
  min-width: 0;
  max-width: 760px;
}
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb strong { color: var(--red); }
.article h1 {
  margin: 14px 0 0;
  font-family: 'Noto Serif KR', serif;
  font-size: 38px;
  line-height: 1.35;
  color: var(--navy);
}
.article .lede { margin: 16px 0 0; font-size: 19px; line-height: 1.6; color: var(--body); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.article-tools { display: flex; gap: 8px; }
.btn-outline {
  height: 44px;
  padding: 0 16px;
  border: 1px solid #cfd5dc;
  background: #fff;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--navy); }

.article figure { margin: 28px 0 0; }
.article figure .thumb { background: #c9d3df; aspect-ratio: 16 / 9; }
.article figcaption { font-size: 13px; color: var(--muted-2); margin-top: 8px; }

.article-body { font-size: 18px; line-height: 1.9; color: #222; }
.article-body p { margin: 22px 0 0; }
.article-body p:first-child { margin-top: 28px; }
.article-body h2 { margin: 0; font-size: 22px; color: var(--navy); }
.article-body ul { margin: 14px 0 0; padding-left: 22px; }
.article-body.second p:first-child { margin-top: 22px; }
/* font size steps from the "글자 크기" button */
.article[data-size="1"] .article-body { font-size: 20px; }
.article[data-size="2"] .article-body { font-size: 22px; }

.source-box {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--soft);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}
.source-box b { color: var(--navy); }

.related { margin-top: 44px; }
.related h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 10px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 20px;
  margin-top: 16px;
}
.related-grid a { color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.related-grid .thumb { aspect-ratio: 3 / 2; }
.related-grid span { font-weight: 700; font-size: 15px; line-height: 1.5; }
.related-grid a:hover span { color: var(--red); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  max-width: calc(100% - 32px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- "광고하세요" CTA ---------- */
.ad-cta {
  border: 2px dashed #b8c2ce;
  border-radius: 4px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  color: var(--navy);
  transition: border-color .15s, background .15s;
}
.ad-cta:hover { border-color: var(--red); background: #fff5f6; color: var(--navy); }
.ad-cta-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted-2); }
.ad-cta-title { font-size: 20px; font-weight: 900; }
.ad-cta-sub { font-size: 13px; color: var(--muted); }
.ad-cta-btn {
  margin-top: 6px;
  padding: 8px 16px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.ad-cta:hover .ad-cta-btn { background: var(--red); }
.ad-cta-wide { padding: 36px 24px; }
.ad-cta-wide .ad-cta-title { font-size: 26px; }

/* ---------- Advertise page ---------- */
.adv-hero { background: var(--navy); color: #fff; }
.adv-hero .container { padding-top: 56px; padding-bottom: 56px; }
.adv-hero .kicker { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--pink); }
.adv-hero h1 { margin: 12px 0 0; font-family: 'Noto Serif KR', serif; font-size: 40px; line-height: 1.3; }
.adv-hero p { margin: 14px 0 0; max-width: 640px; font-size: 17px; line-height: 1.7; color: var(--top-text); }

.adv-layout {
  padding-top: 48px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.adv-products { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.adv-products h2, .adv-form h2 { margin: 0 0 6px; font-size: 22px; color: var(--navy); }
.adv-product {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.adv-product .size {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: #fff1f3;
  border-radius: 4px;
  padding: 4px 8px;
}
.adv-product b { display: block; font-size: 16px; color: var(--navy); }
.adv-product span.desc { display: block; margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--muted); }

.adv-form {
  flex: 1.4 1 480px;
  min-width: 0;
  background: var(--soft);
  border-radius: 8px;
  padding: 32px;
}
.adv-form .lead { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--ink); padding: 0; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  border: 1px solid #cfd5dc;
  border-radius: 4px;
  background: #fff;
  padding: 0 12px;
  height: 46px;
  color: var(--ink);
}
.field textarea { height: auto; min-height: 140px; padding: 12px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field .error { display: none; font-size: 13px; color: var(--red); }
.field.invalid .error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #cfd5dc;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--body); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }
.btn-primary {
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary:hover { background: #a80d26; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions small { font-size: 13px; color: var(--muted-2); }
.form-done { text-align: center; padding: 40px 12px; }
.form-done:focus { outline: none; }
.form-done .check {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.form-done h2 { margin: 0; font-size: 24px; color: var(--navy); }
.form-done p { margin: 10px 0 24px; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- Directory (업소록) ---------- */
.dir-hero { background: var(--navy); color: #fff; }
.dir-hero .container { padding-top: 48px; padding-bottom: 36px; }
.dir-hero .kicker { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--pink); }
.dir-hero h1 { margin: 12px 0 0; font-family: 'Noto Serif KR', serif; font-size: 36px; line-height: 1.35; }
.dir-stats { margin: 12px 0 0; font-size: 15px; color: var(--top-text); }
.dir-stats b { color: #fff; font-size: 18px; }

.dir-search {
  margin-top: 28px;
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  color: var(--ink);
}
.dir-search-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
.dir-search-field.grow { flex: 2 1 280px; }
.dir-search-field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.dir-search-field input, .dir-search-field select {
  height: 48px;
  border: 1px solid #cfd5dc;
  border-radius: 4px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}
.dir-search-field input:focus, .dir-search-field select:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.dir-search-actions { display: flex; gap: 8px; }
.dir-search-actions .btn-primary { height: 48px; }
.btn-ghost {
  height: 48px;
  padding: 0 18px;
  border: 1px solid #cfd5dc;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.dir-quick { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dir-quick > span { font-size: 13px; font-weight: 700; color: var(--top-text); }
.dir-quick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.dir-chip:hover { border-color: #fff; }
.dir-chip.on { background: #fff; color: var(--navy); font-weight: 700; }

.dir-count { font-size: 14px; color: var(--muted); }
.dir-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 12px;
}
.dir-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}
.dir-item:hover { border-color: #b8c2ce; box-shadow: 0 2px 10px rgba(11, 37, 69, .06); }
.dir-item h3 { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.dir-item-cats { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.dir-tag {
  border: 0;
  background: var(--line-soft);
  color: var(--navy);
  border-radius: 4px;
  padding: 4px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dir-tag:hover { background: #fff1f3; color: var(--red); }
.dir-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  align-self: flex-start;
  border-radius: 4px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
a.dir-phone:hover { background: var(--navy); color: #fff; }
.dir-empty { margin: 32px 0; padding: 40px 20px; text-align: center; color: var(--muted); background: var(--soft); border-radius: 6px; }
.dir-pager { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.dir-page {
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.dir-page:hover:not(:disabled) { border-color: var(--navy); }
.dir-page.current { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.dir-page:disabled { color: #b8c2ce; cursor: default; }
.dir-gap { color: var(--muted-2); padding: 0 4px; }

/* ---------- Tablet ---------- */
@media (max-width: 1040px) {
  /* Sidebar drops below the content: lay banners out in two columns
     instead of one long stack */
  .side-banners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .col-side { flex-basis: 100%; }
  .side-banners > :only-child { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Top bar: one tidy line */
  .topbar { font-size: 12px; }
  .topbar .container { padding-top: 7px; padding-bottom: 7px; row-gap: 2px; }
  .topbar-links { gap: 14px; }
  .today-full { display: none; }
  .today-short { display: inline; }

  /* Header: logo and search share one row */
  .header-main { padding-top: 12px; padding-bottom: 12px; align-items: center; flex-wrap: nowrap; gap: 12px; }
  .header-main .logo img { width: 96px; }
  .search { flex: 1 1 auto; min-width: 0; }
  .search input { font-size: 16px; padding: 0 12px; }
  .search button { padding: 0 14px; }

  .header-compact { padding-top: 10px; padding-bottom: 0; gap: 4px; }
  .header-compact .logo img { width: 84px; }

  /* Menu: one swipeable row, edge fade hints there is more */
  .gnb, .header-compact .gnb {
    flex: 1 1 100%;
    min-width: 0;
    gap: 0 20px;
    font-size: 15px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  }
  .gnb::-webkit-scrollbar { display: none; }
  .gnb.at-end { -webkit-mask-image: none; mask-image: none; }
  .gnb a { flex: 0 0 auto; padding: 12px 0; }
  .header-compact .gnb a { padding: 12px 0; border-bottom: 3px solid transparent; }
  .header-compact .gnb a.active { border-bottom-color: var(--red); }

  .banner-hero { margin-top: 16px; }

  /* Home */
  .layout { padding-top: 20px; padding-bottom: 36px; gap: 32px; }
  .col-main { gap: 28px; }
  .headline { gap: 20px; }
  .headline-lead { gap: 10px; }
  .headline-lead h1 { font-size: 23px; }
  .headline-lead p { font-size: 14px; }
  .headline-list .thumb { flex-basis: 96px; height: 66px; }
  .news-item { gap: 14px; padding: 16px 0; }
  .news-item .thumb { flex-basis: 108px; height: 78px; }
  .news-item h3 { font-size: 16px; }
  .news-item p { display: none; }
  .column-card { padding: 20px; }
  .column-card .title { font-size: 18px; }
  .ad-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ad-cta-wide { padding: 28px 18px; }
  .ad-cta-wide .ad-cta-title { font-size: 22px; }
  .ad-cta-btn { min-height: 44px; padding: 0 18px; }
  .magazine { padding: 18px; }
  .popular { padding: 16px 18px; }
  .popular a { padding: 12px 0; }
  .side-banners .ad-cta { padding: 10px; }
  .side-banners .ad-cta-title { font-size: 15px; }
  .side-banners .ad-cta-sub { display: none; }
  .side-banners .ad-cta-btn { min-height: 32px; padding: 0 12px; font-size: 12px; }

  /* Article */
  .article-layout { padding-top: 20px; padding-bottom: 40px; gap: 36px; }
  .article h1 { font-size: 26px; }
  .article .lede { font-size: 16px; }
  .article-meta { margin-top: 16px; padding: 10px 0; font-size: 13px; }
  .article-tools { flex: 1 1 100%; }
  .article-tools .btn-outline { flex: 1; }
  .article figure { margin: 20px -16px 0; }
  .article figure .thumb { border-radius: 0; }
  .article figcaption { padding: 0 16px; }
  .article-body { font-size: 17px; line-height: 1.85; }
  .article[data-size="1"] .article-body { font-size: 19px; }
  .article[data-size="2"] .article-body { font-size: 21px; }
  .article-body h2 { font-size: 20px; }
  .related { margin-top: 36px; }
  .related-grid { grid-template-columns: 1fr; gap: 0; margin-top: 4px; }
  .related-grid a { flex-direction: row; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .related-grid a:last-child { border-bottom: 0; }
  .related-grid .thumb { flex: 0 0 108px; height: 72px; aspect-ratio: auto; }

  /* Advertise */
  .adv-hero .container { padding-top: 36px; padding-bottom: 36px; }
  .adv-hero h1 { font-size: 27px; }
  .adv-hero p { font-size: 15px; }
  .adv-layout { padding-top: 32px; padding-bottom: 48px; gap: 36px; }
  .adv-product { padding: 16px; gap: 12px; }
  .adv-form { padding: 22px 16px; margin: 0 -16px; border-radius: 0; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .form-actions .btn-primary { flex: 1 1 100%; }

  /* Directory */
  .dir-hero .container { padding-top: 28px; padding-bottom: 24px; }
  .dir-hero h1 { font-size: 24px; }
  .dir-search { margin-top: 20px; padding: 14px; gap: 12px; }
  .dir-search-field input, .dir-search-field select { font-size: 16px; }
  .dir-search-actions { flex: 1 1 100%; }
  .dir-search-actions .btn-primary { flex: 1; }
  .dir-quick { flex-wrap: nowrap; margin-right: -16px; }
  .dir-quick > span { flex: 0 0 auto; }
  .dir-quick-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 16px;
  }
  .dir-quick-list::-webkit-scrollbar { display: none; }
  .dir-chip { flex: 0 0 auto; min-height: 40px; }
  .dir-list { gap: 10px; }
  .dir-item { padding: 14px 16px; gap: 10px; }
  .dir-phone { align-self: stretch; justify-content: center; }
  .dir-page { min-width: 40px; }

  .site-footer .container { padding-top: 28px; padding-bottom: 28px; gap: 16px; }
  .footer-links { gap: 8px 20px; }
  .footer-links a { padding: 6px 0; }
}
