/* ==========================================================================
   도시팩트 public site — layout and typography follow the reference news
   template (1200px rail, 16px gutters, Pretendard, sharp corners).
   ========================================================================== */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  --brand: #1b4f8a;
  --brand-dark: #0f2f55;
  --accent: #2e7dd1;
  --accent-2: #4fa3e8;
  --text: #111;
  --text-body: #333;
  --text-nav: #2c3e50;
  --muted: #666;
  --muted-2: #888;
  --muted-3: #999;
  --border: #e0e0e0;
  --border-2: #e8e8e9;
  --border-3: #f0f0f0;
  --surface: #f8f9fa;
  --container: 1200px;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text-body);
  letter-spacing: -0.02em; background: #fff; word-break: keep-all; overflow-wrap: anywhere;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.site-main { min-height: 60vh; }

/* Line clamps */
.clamp-2, .card-title, .card-excerpt, .hero-title, .hero-desc, .list-title, .list-excerpt, .text-list a, .pn-title {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title { -webkit-line-clamp: 2; }
.card-excerpt { -webkit-line-clamp: 2; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.topbar { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-bottom: 2px solid var(--accent-2); font-size: 0.85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.topbar-left { display: flex; align-items: center; gap: 8px; opacity: 0.95; }
.topbar-right { display: flex; gap: 6px; }
.topbar-right a { padding: 4px 12px; border: 1px solid rgba(255,255,255,0.35); border-radius: 20px; font-weight: 500; transition: background .2s; }
.topbar-right a:hover { background: rgba(255,255,255,0.15); }

.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-main { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); }
.logo-mark { fill: var(--brand); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.04em; color: var(--brand-dark); }
.logo-sub { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; color: var(--accent); margin-top: 4px; }
.header-actions { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-nav); transition: background .2s, transform .2s; }
.icon-btn:hover { background: rgba(27,79,138,0.08); transform: scale(1.08); }
.hamburger { display: flex; flex-direction: column; gap: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: currentColor; }

.main-nav { border-top: 1px solid var(--border); }
.nav-list { display: flex; justify-content: center; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 17px 22px; font-size: 0.95rem; font-weight: 600; color: var(--text-nav); letter-spacing: -0.2px; position: relative; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 0; height: 2px; background: var(--brand); transform: translateX(-50%); transition: width .25s; }
.nav-item:hover .nav-link, .nav-link:focus-visible { color: var(--brand); }
.nav-item:hover .nav-link::after { width: 70%; }
.dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px); min-width: 170px; background: #fff; border: 1px solid var(--border-2); border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,0.1); padding: 6px 0; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s; z-index: 30; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 9px 20px; font-size: 0.9rem; font-weight: 500; color: var(--text-nav); white-space: nowrap; transition: padding-left .2s, background .2s, color .2s; }
.dropdown a:hover { background: rgba(27,79,138,0.08); color: var(--brand); padding-left: 24px; }

/* Overlays (full menu / search) */
.overlay { position: fixed; inset: 0; background: #fff; z-index: 100; overflow-y: auto; }
.overlay[hidden] { display: none; }
.overlay-inner { padding-top: 24px; padding-bottom: 40px; }
.overlay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.overlay-title { font-size: 1.1rem; font-weight: 700; color: var(--brand-dark); }
.overlay-search-form { display: flex; border: 2px solid var(--brand); border-radius: 50px; overflow: hidden; max-width: 700px; margin: 0 auto 36px; }
.overlay-search-form input { flex: 1; min-width: 0; border: 0; padding: 12px 22px; font-size: 1rem; outline: none; }
.overlay-search-form.large input { padding: 18px 26px; font-size: 1.2rem; }
.overlay-search-form button { background: var(--brand); color: #fff; padding: 0 26px; font-weight: 600; }
.menu-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; }
.menu-column h3 { font-size: 1.2rem; font-weight: 700; color: var(--brand); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--brand); }
.menu-column li a { display: block; padding: 8px 0 8px 14px; font-size: 0.95rem; color: #555; border-left: 2px solid transparent; transition: padding-left .2s, border-color .2s, color .2s; }
.menu-column li a:hover { padding-left: 20px; border-left-color: var(--accent); color: var(--brand); }
body.no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   Section headers & shared cards
   -------------------------------------------------------------------------- */
.section-header { margin-bottom: 24px; }
.section-title { font-size: 1.5rem; font-weight: 700; color: #000; line-height: 1.25; }
.section-title a:hover { color: var(--brand); }
.section-header.big { margin-bottom: 32px; position: relative; }
.section-title.big { font-size: 1.8rem; padding-bottom: 16px; }
.section-header.big::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--brand) 0%, var(--accent-2) 100%); }
.section-header.ruled { border-top: 3px solid #000; padding-top: 20px; }
.section-header.double { border-top: 4px double #000; padding-top: 24px; }
.list-heading { font-size: 1rem; font-weight: 700; color: var(--brand-dark); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--brand-dark); }
.list-heading a:hover { color: var(--brand); }

.thumb { position: relative; overflow: hidden; background: #eef1f4; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.thumb-empty { position: absolute; inset: 0; background: linear-gradient(135deg, #dfe6ee, #c9d6e3); }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
a:hover .thumb img { transform: scale(1.05); }

.photo-card { display: block; }
.photo-card .thumb { margin-bottom: 12px; }
.photo-card .card-title { font-size: 1rem; font-weight: 600; line-height: 1.4; color: #000; transition: color .2s; }
.photo-card:hover .card-title { color: var(--brand); }
.card-excerpt { font-size: 0.9rem; color: var(--muted); line-height: 1.5; margin-top: 8px; }

.row-card { display: flex; gap: 12px; align-items: center; }
.row-card .thumb { flex: none; }
.row-sm .thumb { width: 80px; height: 80px; }
.row-md { gap: 16px; align-items: flex-start; }
.row-md .thumb { width: 140px; height: 100px; }
.row-card .card-title { font-size: 0.95rem; font-weight: 600; line-height: 1.4; color: #000; transition: color .2s; }
.row-md .card-title { font-size: 1.125rem; }
.row-card:hover .card-title { color: var(--brand); }
.row-md .card-excerpt { -webkit-line-clamp: 2; margin-top: 6px; }

.box-card { display: flex; flex-direction: column; border: 1px solid var(--border-2); background: #fff; position: relative; transition: transform .3s, box-shadow .3s, border-color .3s; }
.box-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .4s; z-index: 1; }
.box-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(27,79,138,0.15); border-color: var(--brand); }
.box-card:hover::before { transform: scaleX(1); }
.box-thumb { position: relative; }
.badge { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.94); color: var(--brand); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .5; transform: scale(1.2);} }
.box-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.box-body .card-title { font-size: 1rem; font-weight: 600; line-height: 1.4; color: #000; }
.box-body .card-excerpt { font-size: 0.85rem; -webkit-line-clamp: 2; }
.card-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-3); display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted-3); margin-top: 16px; }
.card-footer .reporter { color: var(--muted); font-weight: 500; }

/* --------------------------------------------------------------------------
   Home sections
   -------------------------------------------------------------------------- */
.home { padding-top: 16px; }
.hero { display: flex; height: 600px; margin: 0 0 40px; background: var(--brand-dark); }
.hero-panel { position: relative; flex: 1 1 50%; min-width: 0; overflow: hidden; color: #fff; transition: flex-basis .5s cubic-bezier(.4,0,.2,1); }
.hero:hover .hero-panel { flex-basis: 35%; }
.hero:hover .hero-panel:hover { flex-basis: 65%; }
.hero-panel + .hero-panel { border-left: 2px solid rgba(255,255,255,0.35); }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(160deg, var(--brand), var(--brand-dark)); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.hero-panel:hover .hero-bg img { transform: scale(1.1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.8) 100%); }
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.hero-panel:hover .hero-content { transform: translateY(-10px); }
.hero-category { display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; padding: 5px 12px; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); margin-bottom: 14px; }
.hero-title { font-size: 2rem; font-weight: 700; line-height: 1.3; text-shadow: 2px 2px 8px rgba(0,0,0,0.3); -webkit-line-clamp: 3; margin-bottom: 12px; }
.hero-desc { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.9); -webkit-line-clamp: 2; margin-bottom: 14px; }
.hero-meta { display: flex; gap: 14px; font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.hero-meta span { font-weight: 500; }

.lead-row { display: grid; grid-template-columns: 440px 1fr 1fr; gap: var(--gutter); margin-bottom: 60px; }
.lead-card .card-title { font-size: 1.375rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.lead-card .card-excerpt { font-size: 1rem; line-height: 1.6; -webkit-line-clamp: 3; margin-top: 0; }
.lead-card .thumb { margin-bottom: 16px; }
.lead-stack { display: flex; flex-direction: column; gap: 20px; padding-left: 15px; padding-top: 58px; }
.lead-list { display: flex; flex-direction: column; gap: 18px; }
.lead-list .list-heading { margin-bottom: 0; }

.card-grid-section { padding-top: 40px; margin-bottom: 60px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.photo-list-section { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 60px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.photo-grid .card-title { font-size: 1.125rem; }
.text-list-wrap { padding-top: 56px; }
.text-list li { padding: 14px 0; border-bottom: 1px solid var(--border-2); }
.text-list li:first-child { padding-top: 0; }
.text-list a { font-size: 0.95rem; font-weight: 600; color: #000; line-height: 1.45; -webkit-line-clamp: 2; transition: color .2s; }
.text-list a:hover { color: var(--brand); }
.rank { display: inline-block; min-width: 22px; margin-right: 8px; color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }

.bordered-section { padding: 45px 0; margin-bottom: 20px; }
.bordered-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-2); border-left: 1px solid var(--border-2); }
.bordered-item { display: block; padding: 15px; border-right: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); transition: background .2s; }
.bordered-item:hover { background: #fafafa; }
.bordered-body { padding: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.bordered-body .card-title { font-size: 0.95rem; font-weight: 600; line-height: 1.4; color: #000; }
.bordered-item:hover .card-title { color: var(--brand); }
.bordered-body .card-excerpt { font-size: 0.85rem; margin-top: 0; -webkit-line-clamp: 1; }

.twin-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-bottom: 20px; }
.twin-list { display: flex; flex-direction: column; gap: 20px; }

.text-grid-section { margin: 45px 0 100px; }
.text-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 45px 24px; }
.text-item { display: block; }
.text-item .card-title { font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: #000; transition: color .2s; }
.text-item:hover .card-title { color: var(--brand); }
.text-item .card-excerpt { font-size: 0.95rem; line-height: 1.6; -webkit-line-clamp: 3; margin-top: 10px; }

/* --------------------------------------------------------------------------
   List pages (category / search / tag)
   -------------------------------------------------------------------------- */
.list-page { padding: 32px 20px 80px; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--muted-2); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--brand); }
.list-header { border-bottom: 3px solid #000; padding-bottom: 18px; margin-bottom: 8px; }
.list-title { font-size: 2rem; font-weight: 800; color: #000; letter-spacing: -0.03em; }
.list-desc { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.subnav a { display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 0.9rem; font-weight: 500; color: var(--text-nav); transition: all .2s; }
.subnav a:hover, .subnav a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.article-list { display: flex; flex-direction: column; }
.list-item { border-bottom: 1px solid var(--border-2); }
.list-link { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; align-items: flex-start; }
.list-category { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--brand); margin-bottom: 8px; letter-spacing: 0.3px; }
.list-title.list-title { font-size: 1.25rem; }
.list-body .list-title { font-size: 1.25rem; font-weight: 700; color: #000; line-height: 1.35; -webkit-line-clamp: 2; transition: color .2s; }
.list-link:hover .list-title { color: var(--brand); }
.list-excerpt { margin-top: 10px; font-size: 0.95rem; color: var(--muted); line-height: 1.6; -webkit-line-clamp: 2; }
.list-meta { margin-top: 12px; font-size: 0.8rem; color: var(--muted-3); display: flex; gap: 12px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted-2); }
.search-form { display: flex; max-width: 620px; margin-top: 16px; border: 2px solid var(--brand); border-radius: 50px; overflow: hidden; }
.search-form input { flex: 1; min-width: 0; border: 0; padding: 12px 20px; outline: none; }
.search-form button { background: var(--brand); color: #fff; padding: 0 24px; font-weight: 600; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--border); font-size: 0.9rem; font-weight: 500; color: var(--text-nav); transition: all .2s; }
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   Article page
   -------------------------------------------------------------------------- */
.article-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; padding: 36px 20px 80px; }
.article-header { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.article-title { font-size: 2.125rem; font-weight: 800; color: #000; line-height: 1.3; letter-spacing: -0.03em; margin-top: 4px; }
.article-subtitle { margin-top: 14px; font-size: 1.15rem; color: #444; line-height: 1.55; font-weight: 500; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; font-size: 0.875rem; color: var(--muted-2); }
.article-meta .author { color: var(--text-body); font-weight: 600; }
.article-tools { display: flex; gap: 8px; margin-top: 18px; }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 0.85rem; font-weight: 500; color: var(--text-nav); transition: all .2s; }
.tool-btn:hover { border-color: var(--brand); color: var(--brand); }
.tool-btn.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.article-figure { margin: 0 0 28px; }
.article-figure img { width: 100%; }
.article-figure figcaption { font-size: 0.85rem; color: var(--muted-2); margin-top: 8px; }
.article-body { font-size: 1.125rem; line-height: 1.85; color: #222; }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 { font-size: 1.5rem; margin: 2em 0 0.8em; line-height: 1.35; color: #000; }
.article-body h3 { font-size: 1.25rem; margin: 1.8em 0 0.7em; color: #000; }
.article-body img { margin: 1.6em auto; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { text-align: center; font-size: 0.875rem; color: var(--muted-2); }
.article-body blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--brand); background: var(--surface); font-size: 1.05rem; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.4em; list-style: revert; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.95rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--surface); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body iframe, .article-body video { max-width: 100%; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.tag-list a { display: inline-block; padding: 6px 12px; background: var(--surface); border: 1px solid var(--border-2); font-size: 0.85rem; color: var(--text-nav); transition: all .2s; }
.tag-list a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.article-copyright { margin-top: 28px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted-2); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; padding: 20px 0; border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }
.pn { display: block; min-height: 1px; }
.pn.next { text-align: right; }
.pn-label { display: block; font-size: 0.8rem; color: var(--muted-2); margin-bottom: 6px; }
.pn-title { font-size: 0.95rem; font-weight: 600; color: #000; -webkit-line-clamp: 2; transition: color .2s; }
.pn:hover .pn-title { color: var(--brand); }
.related { margin-top: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-side .side-box { position: sticky; top: 24px; }

/* Static pages */
.static-page { max-width: 820px; padding: 40px 20px 80px; }
.page-title { font-size: 2rem; font-weight: 800; color: #000; padding-bottom: 18px; border-bottom: 3px solid #000; margin-bottom: 28px; }
.page-updated { margin-top: 40px; font-size: 0.85rem; color: var(--muted-2); }

/* Error page */
.error-page { text-align: center; padding: 100px 20px; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--brand); line-height: 1; }
.error-title { font-size: 1.6rem; margin-top: 12px; color: #000; }
.error-message { margin-top: 12px; color: var(--muted); }
.btn { display: inline-block; margin-top: 28px; padding: 12px 28px; background: var(--brand); color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 40px; }
.footer-links { border-top: 3px solid var(--brand); padding: 25px 0; }
.footer-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.footer-links li { display: flex; align-items: center; }
.footer-links li + li::before { content: "|"; color: #ccc; margin: 0 12px; }
.footer-links a { font-size: 0.9rem; font-weight: 500; color: #555; }
.footer-links a:hover { color: var(--brand); }
.footer-links a.highlight { color: var(--brand); font-weight: 700; }
.footer-info { background: var(--surface); padding: 40px 0 30px; }
.footer-logo { margin-bottom: 20px; }
.footer-logo .logo-name { font-size: 1.4rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 0.85rem; color: var(--muted); line-height: 1.8; }
.footer-meta li + li::before { content: "|"; color: #ccc; margin: 0 10px; }
.footer-notice { margin-top: 20px; padding: 15px; border-left: 3px solid var(--brand); background: #fff; border-radius: 4px; font-size: 0.8rem; color: var(--muted-2); line-height: 1.6; }
.footer-copyright { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; font-size: 0.85rem; color: var(--muted-2); font-weight: 500; }
.footer-copyright strong { color: var(--brand); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero { height: 500px; }
  .hero-title { font-size: 1.6rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-content { padding: 30px; }
  .lead-row { grid-template-columns: 1fr 1fr; }
  .lead-list { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .lead-list .list-heading { grid-column: 1 / -1; }
  .lead-stack { padding-left: 0; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .bordered-grid { grid-template-columns: repeat(3, 1fr); }
  .text-grid { grid-template-columns: repeat(3, 1fr); }
  .article-page { grid-template-columns: 1fr; gap: 40px; }
  .article-side .side-box { position: static; }
}
@media (max-width: 768px) {
  .topbar-left span { font-size: 0.8rem; }
  .header-main { padding-top: 14px; padding-bottom: 14px; }
  .logo-name { font-size: 1.5rem; }
  .main-nav { display: none; }
  .home { padding-top: 12px; }
  .hero { flex-direction: column; height: auto; }
  .hero-panel, .hero:hover .hero-panel, .hero:hover .hero-panel:hover { flex-basis: auto; height: 380px; }
  .hero-panel + .hero-panel { border-left: 0; border-top: 2px solid rgba(255,255,255,0.35); }
  .hero-title { font-size: 1.4rem; -webkit-line-clamp: 2; }
  .hero-desc { display: none; }
  .hero-content { padding: 24px; }
  .lead-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .lead-stack { padding-top: 0; gap: 16px; }
  .lead-list { grid-template-columns: 1fr; gap: 14px; }
  .card-grid-section { padding-top: 24px; margin-bottom: 40px; }
  .section-title.big { font-size: 1.4rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .box-body { padding: 16px; }
  .box-body .card-title { font-size: 0.95rem; }
  .box-body .card-excerpt { font-size: 0.8rem; }
  .photo-list-section { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .photo-grid { grid-template-columns: 1fr; gap: 20px; }
  .text-list-wrap { padding-top: 0; }
  .bordered-section { padding: 24px 0; }
  .bordered-grid { grid-template-columns: repeat(2, 1fr); }
  .bordered-body { padding-top: 12px; }
  .bordered-body .card-title { font-size: 0.9rem; }
  .twin-section { grid-template-columns: 1fr; gap: 32px; }
  .twin-list { gap: 16px; }
  .text-grid-section { margin: 32px 0 60px; }
  .text-grid { grid-template-columns: 1fr; gap: 24px; }
  .list-page { padding: 20px 20px 60px; }
  .list-title { font-size: 1.5rem; }
  .list-link { grid-template-columns: 120px 1fr; gap: 14px; padding: 16px 0; }
  .list-body .list-title { font-size: 1.05rem; }
  .list-excerpt { display: none; }
  .article-page { padding: 20px 20px 60px; }
  .article-title { font-size: 1.6rem; }
  .article-subtitle { font-size: 1rem; }
  .article-body { font-size: 1.05rem; line-height: 1.8; }
  .related-grid { grid-template-columns: 1fr; gap: 20px; }
  .prev-next { grid-template-columns: 1fr; }
  .pn.next { text-align: left; }
  .footer-meta { flex-direction: column; gap: 2px; }
  .footer-meta li + li::before { content: none; }
  .footer-links li + li::before { margin: 0 8px; }
}
@media (max-width: 480px) {
  .topbar-left span { display: none; }
  .hero-panel, .hero:hover .hero-panel, .hero:hover .hero-panel:hover { height: 320px; }
  .card-grid { grid-template-columns: 1fr; }
  .bordered-grid { grid-template-columns: 1fr; }
  .row-md .thumb { width: 110px; height: 80px; }
  .row-md .card-title { font-size: 1rem; }
  .row-md .card-excerpt { display: none; }
  .list-link { grid-template-columns: 100px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
