/* TaxMoney24 — GeekNews-inspired minimal CSS */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --border: #e5e3dc;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --highlight: #fff7d6;
  --tag-bg: #f1efe8;
  --tag-text: #4a4a4a;
  --max-width: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap { display: flex; align-items: baseline; gap: 16px; flex-wrap: nowrap; }
.site-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-title:hover { text-decoration: none; }
.site-tagline {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Nav */
.nav {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.nav a.active, .nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.hero p { color: var(--text-muted); font-size: 14px; }

/* Post list (homepage) */
.post-list { list-style: none; }
.post-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.post-item:last-child { border-bottom: none; }

.post-item .meta-top {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.post-item .cat-badge {
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}
.post-item h2 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin: 4px 0;
  letter-spacing: -0.3px;
}
.post-item h2 a { color: var(--text); }
.post-item h2 a:hover { color: var(--accent); text-decoration: none; }
.post-item .summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 6px 0;
}
.post-item .meta-bottom {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
.post-item .source {
  font-size: 12px;
  color: var(--text-muted);
}
.post-item .source a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* Post detail */
.post-detail { padding: 32px 0; }
.post-detail .meta-top {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.post-detail h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.post-detail .lead {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.section { margin: 28px 0; }
.section h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}
.section ul, .section ol {
  padding-left: 22px;
  line-height: 1.85;
}
.section li { margin-bottom: 4px; }

/* Executive Summary box (top of post) */
.exec-summary {
  background: #f0f7ff;
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0 28px;
  font-size: 14.5px;
  line-height: 1.65;
}
.exec-summary .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}
.exec-summary ul {
  padding-left: 20px;
  margin: 0;
}
.exec-summary li {
  margin-bottom: 6px;
}
.exec-summary li:last-child {
  margin-bottom: 0;
}

/* Related posts */
.related-posts {
  background: #fafaf7;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 32px;
}
.related-posts h2 {
  font-size: 14px;
  color: var(--text-muted);
  border-left-color: var(--text-muted);
}
.related-list {
  list-style: none;
  padding-left: 0;
}
.related-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.related-list li:last-child {
  border-bottom: none;
}
.related-list a {
  color: var(--text);
}
.related-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Commentary callout */
.commentary {
  background: var(--highlight);
  border-left: 3px solid #d4a017;
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 14.5px;
  line-height: 1.7;
}
.commentary .label {
  font-size: 11px;
  font-weight: 700;
  color: #8a6d00;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 14.5px;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  color: var(--text-muted);
}
.faq details[open] summary::after { content: "−"; }
.faq summary .q-mark {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: var(--accent);
  color: white;
  border-radius: 3px;
  font-size: 11px;
  margin-right: 6px;
  vertical-align: middle;
}
.faq .answer {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  padding-left: 24px;
}

/* Source box */
.source-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 20px;
  margin: 28px 0;
  border-radius: 4px;
  font-size: 13.5px;
}
.source-box .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.source-box .source-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: block;
}
.source-box .source-link {
  color: var(--accent);
  font-weight: 500;
}
.source-box .source-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* CTA */
.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  margin: 32px 0;
  border-radius: 4px;
  text-align: center;
}
.cta h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.cta p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.cta-buttons { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--tag-bg); text-decoration: none; }

/* Tags */
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}
.tag:hover { background: var(--border); text-decoration: none; }

/* Curation section heading */
.curation-section { margin-top: 12px; }
.section-h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 12px 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* Policy section */
.policy-section { margin: 36px 0 0; }
.policy-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.policy-header h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.more-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.policy-list { list-style: none; }
.policy-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.policy-item:last-child { border-bottom: none; }
.policy-item .meta-top {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.src-badge {
  background: #e8edf5;
  color: #2563eb;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}
.policy-item h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 4px 0;
  letter-spacing: -0.2px;
}
.policy-item h3 a { color: var(--text); }
.policy-item h3 a:hover { color: var(--accent); }
.policy-item .summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 4px 0;
}
.policy-item .source {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.policy-item .source a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* Policy page sections */
.policy-source-block { margin: 28px 0; }
.src-h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  letter-spacing: -0.2px;
}
.src-h3 .count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 6px;
}
.meta-line {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 60px;
  font-size: 13px;
  color: var(--text-muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.site-footer .col { min-width: 220px; }
.site-footer h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { width: 100%; text-align: center; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 12px; font-size: 12px; }

/* Tablet — hide tagline if it crowds the nav */
@media (max-width: 900px) {
  .site-tagline { display: none; }
}

/* Mobile */
@media (max-width: 600px) {
  .hero h1 { font-size: 19px; }
  .post-detail h1 { font-size: 22px; }
  .site-header .wrap { flex-wrap: wrap; gap: 8px 10px; }
  .nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .site-footer .wrap { flex-direction: column; gap: 16px; }
}
