﻿:root {
  --bg: #f6f2e9;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #2f5d62;
  --accent-2: #b45f06;
  --card: #fffaf1;
  --edge: #e2d9c9;
  --shadow: 0 18px 50px rgba(24, 24, 24, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Verdana", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Palatino Linotype", "Book Antiqua", "Georgia", serif;
  letter-spacing: 0.3px;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.65;
  mix-blend-mode: multiply;
}

.orb-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, #f3d9b1, #d2b48c 65%);
  top: -120px;
  left: -120px;
}

.orb-b {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 70% 30%, #a7c7c5, #7ba8a9 70%);
  bottom: -220px;
  right: -160px;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(0,0,0,0.05) 96%),
    linear-gradient(90deg, transparent 95%, rgba(0,0,0,0.05) 96%);
  background-size: 48px 48px;
  opacity: 0.35;
}

.hero {
  padding: 56px 24px 24px;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  animation: rise 0.7s ease-out;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 12px;
}

.lead {
  color: var(--muted);
  margin: 0 0 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tabs {
  max-width: 1080px;
  margin: 12px auto 0;
  padding: 0 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid var(--edge);
  background: #fffdf7;
  cursor: pointer;
  font-weight: 600;
}

.tab.active {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.layout {
  max-width: 1080px;
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed #e7dfcf;
}

.section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.grid-2, .grid-3 {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.field span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #cbbfa9;
  background: #fff7e9;
  color: #6b4a1b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.info:hover {
  background: #f4e3c7;
}

.field input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d7cfbe;
  background: #fffdf7;
  font-size: 14px;
}

.field select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d7cfbe;
  background: #fffdf7;
  font-size: 14px;
}

.field small {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid var(--edge);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(47, 93, 98, 0.25);
}

.btn.ghost {
  color: var(--accent);
}

.result-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.result-block {
  background: #fffdf7;
  border: 1px solid #eadfcb;
  border-radius: 16px;
  padding: 18px;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed #eadfcb;
  font-size: 14px;
}

.metric span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metric:last-child {
  border-bottom: none;
}

.metric strong {
  font-size: 18px;
}

.note {
  color: var(--muted);
  margin: 0;
}

.mini-chart {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.bar {
  position: relative;
  height: 38px;
  background: #e5dfd1;
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 12px;
  z-index: 1;
  font-weight: 600;
}

.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, #b45f06, #d89c60);
  transition: width 0.6s ease;
}

#barConsumption::after {
  background: linear-gradient(90deg, #2f5d62, #4b8b90);
}

#barDomestic::after {
  background: linear-gradient(90deg, #6a5d7b, #9a88b5);
}

#barReal::after {
  background: linear-gradient(90deg, #3c6e47, #78a36e);
}

.footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
}

.data-table th,
.data-table td {
  border-bottom: 1px dashed #eadfcb;
  padding: 8px 6px;
  text-align: right;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}

.info-popover {
  position: fixed;
  max-width: 360px;
  background: #fffdf7;
  border: 1px solid #eadfcb;
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 14px 16px;
  z-index: 100;
  display: none;
  font-size: 13px;
  color: var(--ink);
}

.info-popover.active {
  display: block;
}

.info-popover h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.info-popover ul {
  margin: 0;
  padding-left: 18px;
}

.info-popover li {
  margin-bottom: 4px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Report Section */
.layout-wide {
  grid-template-columns: 1fr;
}

.report-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.report-card {
  background: #fffdf7;
  border: 1px solid #eadfcb;
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.report-card:hover {
  box-shadow: 0 8px 24px rgba(24, 24, 24, 0.1);
  transform: translateY(-2px);
}

.report-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.report-card .report-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.report-card .report-category {
  background: var(--accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.report-card .report-excerpt {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 720px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #eadfcb;
  border-radius: 999px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #d7cfbe;
}

.modal-content h2 {
  margin: 0 0 16px;
  padding-right: 40px;
}

.report-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.report-body {
  font-size: 14px;
  line-height: 1.8;
}

.report-body h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 15px;
}

.report-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.report-body th,
.report-body td {
  border: 1px solid #eadfcb;
  padding: 8px 12px;
  text-align: left;
}

.report-body th {
  background: #f6f2e9;
}

.report-body ul,
.report-body ol {
  padding-left: 20px;
}

.report-body li {
  margin-bottom: 6px;
}

.report-sources {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #eadfcb;
}

.report-sources h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.report-sources a {
  display: block;
  font-size: 12px;
  color: var(--accent);
  word-break: break-all;
  margin-bottom: 6px;
}

.report-sources a:hover {
  text-decoration: underline;
}

/* Report Form */
.modal-content textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d7cfbe;
  background: #fffdf7;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}

.empty-state p {
  margin: 0;
}

/* ============================================================
   Special Accounts Styles
   ============================================================ */

.special-accounts-overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sa-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sa-summary-card {
  background: linear-gradient(135deg, #f8f6f0 0%, #fff 100%);
  border: 1px solid #e8e3d8;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sa-summary-card.highlight {
  background: linear-gradient(135deg, #fff9e6 0%, #fffef8 100%);
  border-color: #d4af37;
  border-width: 2px;
}

.sa-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sa-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.sa-sub {
  font-size: 13px;
  color: var(--text);
}

.sa-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.sa-row-highlight {
  background: #fffef8;
}

.sa-row-highlight:hover {
  background: #fff9e6;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-a {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  color: white;
}

.badge-b {
  background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
  color: white;
}

.badge-c {
  background: linear-gradient(135deg, #ff9800 0%, #ffa726 100%);
  color: white;
}

.badge-d {
  background: linear-gradient(135deg, #9e9e9e 0%, #bdbdbd 100%);
  color: white;
}

/* ============================================================
   Landing Page (LP) Styles
   ============================================================ */

.lp-intro {
  text-align: center;
  background: linear-gradient(135deg, #f8f6f0 0%, #fff 100%);
}

.lp-intro .lead {
  font-size: 16px;
  color: var(--muted);
  margin: 16px 0 24px;
}

.lp-settings {
  max-width: 600px;
  margin: 0 auto;
}

.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.lp-card {
  background: white;
  border: 2px solid #e8e3d8;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.lp-card-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 8px;
}

.lp-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px 0;
}

.lp-card p {
  color: var(--text);
  font-size: 14px;
  margin: 0;
  flex-grow: 1;
}

.lp-card-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
  background: #f8f6f0;
  border-radius: 8px;
}

.lp-card-stats .stat {
  font-size: 13px;
  color: var(--muted);
}

.lp-view-btn {
  margin-top: auto;
  width: 100%;
}

/* LP Detail View */
.lp-detail {
  animation: fadeIn 0.3s ease;
}

.lp-detail-header {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8e3d8;
}

.lp-content {
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* LP Hero Section */
.lp-hero {
  text-align: center;
  padding: 64px 24px;
  background: linear-gradient(135deg, #fff9e6 0%, #fffef8 100%);
  border-radius: 16px;
  margin-bottom: 48px;
}

.lp-hero h1 {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.lp-hero .lp-subtitle {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 32px;
}

.lp-hero .lp-stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.lp-stat-big {
  text-align: center;
}

.lp-stat-big .number {
  font-size: 56px;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.lp-stat-big .label {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

/* LP Sections */
.lp-section {
  margin-bottom: 64px;
}

.lp-section h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
  text-align: center;
}

.lp-section h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 16px;
}

.lp-section p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

/* LP Feature Grid */
.lp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin: 32px 0;
}

.lp-feature {
  text-align: center;
  padding: 32px 24px;
  background: #f8f6f0;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.lp-feature:hover {
  transform: translateY(-4px);
}

.lp-feature-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.lp-feature h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.lp-feature p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

/* LP Data Visualization */
.lp-data-viz {
  background: white;
  border: 2px solid #e8e3d8;
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
}

.lp-data-viz h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.lp-progress-bar {
  margin: 24px 0;
}

.lp-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.lp-progress-track {
  height: 32px;
  background: #f0ede4;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.lp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #d4af37 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  transition: width 1s ease;
}

/* LP Comparison Table */
.lp-comparison {
  margin: 32px 0;
}

.lp-comparison table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.lp-comparison th {
  background: var(--accent);
  color: white;
  padding: 16px;
  text-align: left;
  font-weight: 700;
}

.lp-comparison td {
  padding: 16px;
  border-bottom: 1px solid #e8e3d8;
  background: white;
}

.lp-comparison tr:last-child td {
  border-bottom: none;
}

.lp-comparison tr:hover td {
  background: #fffef8;
}

/* LP Call-to-Action */
.lp-cta {
  text-align: center;
  padding: 64px 24px;
  background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 100%);
  border-radius: 16px;
  margin: 64px 0;
}

.lp-cta h3 {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.lp-cta p {
  font-size: 18px;
  color: white;
  margin-bottom: 32px;
}

.lp-cta .btn {
  font-size: 18px;
  padding: 16px 48px;
}

/* LP Timeline */
.lp-timeline {
  margin: 32px 0;
  padding-left: 32px;
  border-left: 4px solid var(--accent);
}

.lp-timeline-item {
  margin-bottom: 32px;
  position: relative;
}

.lp-timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent);
}

.lp-timeline-item h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.lp-timeline-item p {
  font-size: 16px;
  color: var(--text);
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding: 24px;
  }

  .card {
    padding: 20px;
  }

  .modal-content {
    padding: 20px;
    max-height: 90vh;
  }

  .sa-summary-cards {
    grid-template-columns: 1fr;
  }

  .sa-value {
    font-size: 24px;
  }

  .lp-grid {
    grid-template-columns: 1fr;
  }

  .lp-content {
    padding: 24px;
  }

  .lp-hero h1 {
    font-size: 32px;
  }

  .lp-hero .lp-subtitle {
    font-size: 18px;
  }

  .lp-stat-big .number {
    font-size: 40px;
  }

  .lp-features {
    grid-template-columns: 1fr;
  }

  .lp-hero .lp-stats-row {
    gap: 24px;
  }

  .boj-bs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .boj-flow-chart {
    flex-direction: column;
    gap: 16px;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .boj-flow-simple {
    flex-direction: column;
    gap: 16px;
  }

  .flow-arrow-big {
    transform: rotate(90deg);
  }
}

/* ============================================================
   Bank of Japan (BOJ) Styles
   ============================================================ */

.boj-bs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 24px 0;
}

.boj-bs-side {
  background: #f8f6f0;
  border-radius: 12px;
  padding: 24px;
}

.boj-bs-side h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 20px 0;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.boj-bs-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #e8e3d8;
}

.boj-bs-item.highlight {
  border-left-color: var(--accent);
  background: #fffef8;
}

.boj-bs-item .label {
  font-weight: 600;
  color: var(--text);
}

.boj-bs-item .value {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

.boj-bs-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-top: 16px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-weight: 700;
}

.boj-bs-total .value {
  font-size: 24px;
  color: white;
}

.boj-point {
  text-align: center;
  padding: 24px;
  background: #f8f6f0;
  border-radius: 12px;
}

.point-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.boj-point h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.boj-point p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* BOJ P/L Styles */
.boj-pl-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.boj-pl-section {
  background: #f8f6f0;
  border-radius: 12px;
  padding: 24px;
}

.boj-pl-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 20px 0;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.boj-pl-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 8px;
  background: white;
  border-radius: 8px;
}

.boj-pl-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  margin-top: 12px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-weight: 700;
}

.boj-pl-result {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 100%);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.boj-pl-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  margin-bottom: 16px;
}

.boj-pl-final .label {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.boj-pl-final .value {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
}

.boj-pl-disposal {
  color: white;
  padding: 16px;
}

.boj-pl-disposal ul {
  margin: 12px 0 0 20px;
}

.boj-pl-disposal li {
  margin-bottom: 8px;
}

/* BOJ Flow Chart */
.boj-flow-chart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
  padding: 24px;
  background: #f8f6f0;
  border-radius: 12px;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 2px solid #e8e3d8;
}

.flow-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.flow-step h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
}

.flow-arrow {
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
  padding: 0 16px;
}

.boj-important-note {
  background: #fff9e6;
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.boj-important-note h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.boj-important-note ul {
  margin: 0;
  padding-left: 20px;
}

.boj-important-note li {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Seigniorage Section */
.boj-seigniorage-explanation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.seigniorage-item {
  padding: 24px;
  background: #ffe6e6;
  border: 2px solid #ff4444;
  border-radius: 12px;
}

.seigniorage-item.correct {
  background: #e6f7e6;
  border-color: #44bb44;
}

.seigniorage-item h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.seigniorage-item p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.boj-formula-box {
  background: #f8f6f0;
  border-radius: 12px;
  padding: 32px;
  margin: 24px 0;
}

.formula {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: 12px;
  margin-bottom: 24px;
}

.formula-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.formula-content {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.formula-example {
  padding: 20px;
  background: #fffef8;
  border-radius: 8px;
}

.formula-example p {
  margin: 8px 0;
}

.boj-flow-simple {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 32px 0;
  padding: 32px;
  background: #f8f6f0;
  border-radius: 12px;
}

.flow-box {
  flex: 1;
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 2px solid #e8e3d8;
}

.flow-box.highlight {
  background: #fffef8;
  border-color: var(--accent);
  border-width: 3px;
}

.flow-box h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.big-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  margin: 8px 0;
}

.small-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.flow-arrow-big {
  font-size: 48px;
  color: var(--accent);
  font-weight: 700;
  padding: 0 24px;
}

.boj-key-insight {
  background: linear-gradient(135deg, #fff9e6 0%, #fffef8 100%);
  border: 3px solid var(--accent);
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
}

.boj-key-insight h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
}

.boj-key-insight ul {
  margin: 0;
  padding-left: 20px;
}

.boj-key-insight li {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.source-list li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.source-list li::before {
  content: '📄';
  position: absolute;
  left: 0;
}

.source-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.source-list a:hover {
  text-decoration: underline;
}

/* ============================================================
   Sources Tab (資料リスト)
   ============================================================ */

.sources-table {
  overflow-x: auto;
  margin-top: 16px;
}

.sources-table table {
  width: 100%;
  border-collapse: collapse;
}

.sources-table th {
  background: var(--edge);
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.sources-table td {
  padding: 12px;
  border-bottom: 1px solid var(--edge);
}

.sources-table a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sources-table a:hover {
  text-decoration: underline;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.source-card {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.source-card h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 18px;
}

.source-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.source-card li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.source-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-2);
}

.source-card a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.source-card a:hover {
  text-decoration: underline;
}

.note-box {
  background: #fffbf0;
  border-left: 4px solid var(--accent-2);
  padding: 16px 20px;
  margin-top: 16px;
  border-radius: 4px;
}

.note-box p {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 600;
}

.note-box ul {
  margin: 8px 0;
  padding-left: 20px;
}

.note-box li {
  margin-bottom: 6px;
}

/* ============================================================
   Economic Indicators Tab (経済指標)
   ============================================================ */

.ind-chart-wrap {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.ind-svg-chart {
  min-height: 300px;
}

.ind-svg {
  width: 100%;
  height: auto;
  display: block;
}

.ind-details {
  margin-top: 12px;
}

.ind-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  padding: 8px 0;
  user-select: none;
}

.ind-details summary:hover {
  text-decoration: underline;
}

.ind-table-scroll {
  overflow-x: auto;
  margin-top: 12px;
}

.ind-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ind-table-scroll th {
  background: var(--edge);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
  font-weight: 600;
}

.ind-table-scroll td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--edge);
  white-space: nowrap;
}

.ind-table-scroll tr:hover td {
  background: #fffbf0;
}

/* ============================================================
   Public Money Boundary Map — NOT Special Accounts
   ============================================================ */

.boundary-section {
  border-top: 4px solid #e74c3c;
}

.boundary-disclaimer {
  background: linear-gradient(135deg, #fff3e0, #fff8e1);
  border-left: 4px solid #f57c00;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4a3000;
}

/* Governance Spectrum */
.gov-spectrum {
  display: flex;
  gap: 4px;
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
}

.spectrum-item {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  transition: transform 0.2s;
}

.spectrum-item:hover {
  transform: translateY(-2px);
}

.spectrum-gov-100 {
  background: linear-gradient(180deg, #1a237e, #283593);
  color: #fff;
}

.spectrum-gov-partial {
  background: linear-gradient(180deg, #4a6fa5, #6b8fc4);
  color: #fff;
}

.spectrum-gov-0 {
  background: linear-gradient(180deg, #bdbdbd, #9e9e9e);
  color: #fff;
}

.spectrum-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-bottom: 4px;
}

.spectrum-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.spectrum-assets {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.spectrum-desc {
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1.4;
}

.spectrum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  background: #f5f5f5;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.spectrum-total-note {
  font-size: 0.8rem;
  color: #666;
  font-weight: 400;
}

/* Institution Cards */
.boundary-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.boundary-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.boundary-card-alert {
  border-color: #e74c3c;
  border-width: 2px;
}

.boundary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.yucho-color { background: linear-gradient(135deg, #00695c, #00897b); color: #fff; }
.kampo-color { background: linear-gradient(135deg, #1565c0, #1976d2); color: #fff; }
.nochu-color { background: linear-gradient(135deg, #4e342e, #5d4037); color: #fff; }

.boundary-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.boundary-card-icon {
  font-size: 1.6rem;
}

.boundary-card-title h4 {
  margin: 0;
  font-size: 1.2rem;
}

.boundary-card-legal {
  font-size: 0.75rem;
  opacity: 0.8;
}

.boundary-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.boundary-tag-semi {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}

.boundary-tag-private {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}

.boundary-card-body {
  padding: 20px;
}

.boundary-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.boundary-metric {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
}

.boundary-metric-label {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 4px;
}

.boundary-metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
}

.boundary-metric-value.positive { color: #2e7d32; }
.boundary-metric-value.negative { color: #c62828; }

.boundary-metric-note {
  display: block;
  font-size: 0.7rem;
  color: #888;
  margin-top: 2px;
}

/* Ownership Chain */
.boundary-ownership {
  margin: 16px 0;
  padding: 16px;
  background: #f0f4ff;
  border-radius: 8px;
}

.boundary-ownership-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ownership-chain {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.owner-box {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.owner-gov { background: #1a237e; color: #fff; }
.owner-holding { background: #4a6fa5; color: #fff; }
.owner-entity { background: #e8eaf6; color: #1a237e; border: 2px solid #1a237e; }
.owner-private { background: #efebe9; color: #4e342e; border: 1px solid #bcaaa4; }

.owner-arrow {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.boundary-note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

.boundary-key-point {
  background: #fffde7;
  border-left: 3px solid #f9a825;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 16px;
}

.boundary-card-source {
  padding: 10px 20px;
  background: #fafafa;
  border-top: 1px solid #eee;
  font-size: 0.75rem;
  color: #888;
}

.boundary-card-source a {
  color: #1976d2;
}

/* Norinchukin Crisis Timeline */
.nochu-crisis {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 20px;
  margin: 16px 0;
}

.nochu-crisis h5 {
  margin: 0 0 16px;
  color: #991b1b;
  font-size: 1rem;
}

.crisis-timeline {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid #e74c3c;
}

.crisis-event {
  position: relative;
  padding: 8px 0 12px 16px;
}

.crisis-event::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e74c3c;
  border: 2px solid #fff;
}

.crisis-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #991b1b;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.crisis-desc {
  display: block;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #333;
}

.crisis-lesson {
  margin-top: 16px;
  padding: 14px;
  background: #fff;
  border-radius: 8px;
  border-left: 3px solid #991b1b;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Comparison Table */
.boundary-table .boundary-level {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.level-full { background: #1a237e; color: #fff; }
.level-partial { background: #90a4ae; color: #fff; }
.level-none { background: #e0e0e0; color: #666; }

/* Takeaway */
.boundary-takeaway {
  background: linear-gradient(135deg, #e8eaf6, #f3e5f5);
  padding: 20px 24px;
  border-radius: 12px;
  margin-top: 20px;
}

.boundary-takeaway h4 {
  margin: 0 0 12px;
  color: #283593;
  font-size: 1.05rem;
}

.boundary-takeaway ul {
  margin: 0;
  padding-left: 20px;
}

.boundary-takeaway li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 0.92rem;
}

/* Source Grid */
.boundary-sources {
  margin-top: 20px;
}

.boundary-sources h4 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #666;
}

.boundary-source-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boundary-source-grid a {
  display: inline-block;
  padding: 6px 14px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #1976d2;
  text-decoration: none;
  transition: background 0.2s;
}

.boundary-source-grid a:hover {
  background: #e3f2fd;
  border-color: #90caf9;
}

/* Responsive */
@media (max-width: 768px) {
  .gov-spectrum {
    flex-direction: column;
    gap: 2px;
  }

  .spectrum-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px 16px;
  }

  .spectrum-name {
    font-size: 0.95rem;
  }

  .spectrum-assets {
    font-size: 1rem;
  }

  .spectrum-total {
    flex-direction: column;
    gap: 4px;
  }

  .boundary-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .ownership-chain {
    flex-direction: column;
    align-items: flex-start;
  }

  .owner-arrow {
    padding-left: 12px;
  }

  .boundary-source-grid {
    flex-direction: column;
  }
}

/* ============================================================
   Election Economy Mode
   ============================================================ */

.election-header {
  text-align: center;
}

.election-meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.election-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Party Policy Cards */
.election-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.election-party-card {
  border: 2px solid #e8e3d8;
  border-left: 5px solid var(--party-color, #888);
  border-radius: 12px;
  padding: 16px;
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.election-party-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.party-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.party-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--party-color, #888);
  flex-shrink: 0;
}

.party-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  margin-left: auto;
}

.party-tag.govt {
  background: #fff3e0;
  color: #e65100;
}

.party-tag.oppo {
  background: #e8eaf6;
  color: #283593;
}

.party-policy {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.party-policy-detail {
  font-size: 13px;
  color: var(--muted);
}

.party-source {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0ede4;
}

.party-source a {
  color: var(--accent);
}

.election-party-card.featured {
  border-width: 3px;
  background: linear-gradient(135deg, #fffef8 0%, #fff 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Detail Grid for Party Deep Dive */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.detail-block {
  background: #f8f6f0;
  border-radius: 12px;
  padding: 20px;
}

.detail-block h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--fg);
}

.detail-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.detail-list li {
  margin-bottom: 4px;
}

/* Party Label in Tables */
.party-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.party-label::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--party-color, #888);
}

/* Election Table */
.election-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.election-policy-table td:first-child {
  white-space: nowrap;
}

.row-highlight {
  background: #fffbf0;
}

.row-highlight td {
  font-weight: 600;
}

/* Tax Timeline */
.tax-timeline {
  position: relative;
  padding-left: 40px;
}

.tax-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, #e8e3d8 100%);
  border-radius: 2px;
}

.tax-timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
}

.tax-timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent);
}

.tax-rate-badge {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #d4af37 100%);
  color: white;
  font-weight: 800;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  min-width: 100px;
  text-align: center;
}

.tax-timeline-content h4 {
  margin: 0 0 6px 0;
  font-size: 17px;
  font-weight: 700;
}

.tax-timeline-content p {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Tax Visual Bars */
.tax-visual-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.tax-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tax-bar-label {
  width: 110px;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
}

.tax-bar-track {
  flex: 1;
  height: 28px;
  background: #f0ede4;
  border-radius: 6px;
  overflow: hidden;
}

.tax-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #d4af37 100%);
  border-radius: 6px;
  transition: width 0.6s ease;
}

.tax-bar-fill.si-fill {
  background: linear-gradient(90deg, #e65100 0%, #ff9800 100%);
}

.tax-bar-fill.health-fill {
  background: linear-gradient(90deg, #1565c0 0%, #42a5f5 100%);
}

.tax-bar-value {
  width: 160px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Take-home Pay Comparison */
.tedori-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.tedori-card {
  padding: 24px 32px;
  border-radius: 16px;
  text-align: center;
  min-width: 200px;
}

.tedori-before {
  background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
  border: 2px solid #4caf50;
}

.tedori-after {
  background: linear-gradient(135deg, #fbe9e7 0%, #fff 100%);
  border: 2px solid #e53935;
}

.tedori-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.tedori-amount {
  font-size: 28px;
  font-weight: 900;
  color: var(--fg);
}

.tedori-detail {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.tedori-arrow {
  font-size: 32px;
  font-weight: 900;
  color: var(--muted);
}

.tedori-diff {
  width: 100%;
  text-align: center;
  font-size: 24px;
  color: #e53935;
  padding: 12px;
  background: #fff5f5;
  border-radius: 12px;
}

/* Burden Rate Chart */
.burden-rate-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.burden-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burden-year {
  width: 60px;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
}

.burden-bar-track {
  flex: 1;
  display: flex;
  height: 32px;
  background: #f0ede4;
  border-radius: 6px;
  overflow: hidden;
}

.burden-bar-tax {
  background: linear-gradient(90deg, #c62828 0%, #e53935 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.burden-bar-social {
  background: linear-gradient(90deg, #e65100 0%, #ff9800 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.burden-bar-tax span,
.burden-bar-social span {
  font-size: 11px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.burden-total {
  width: 160px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Administration Timeline */
.admin-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-card {
  border: 2px solid #e8e3d8;
  border-left: 5px solid var(--admin-color, #888);
  border-radius: 12px;
  padding: 20px;
  background: white;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-header strong {
  font-size: 18px;
  color: var(--admin-color, var(--fg));
}

.admin-header span {
  font-size: 13px;
  color: var(--muted);
}

.admin-policies {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-policy-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.admin-policy-item.increase {
  background: #fef2f2;
  border-left: 3px solid #e53935;
}

.admin-policy-item.decrease {
  background: #f0fdf4;
  border-left: 3px solid #4caf50;
}

.admin-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* Election Sources */
.election-sources {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.election-sources li {
  padding: 8px 12px;
  background: #f8f6f0;
  border-radius: 8px;
}

.election-sources a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.election-sources a:hover {
  text-decoration: underline;
}

/* Source Cards Grid */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.source-card {
  border: 2px solid #e8e3d8;
  border-left: 5px solid var(--party-color, #888);
  border-radius: 12px;
  padding: 16px;
  background: white;
}

.source-card.featured {
  border-width: 3px;
  background: linear-gradient(135deg, #fffef8 0%, #fff 100%);
}

.source-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--party-color, var(--fg));
}

.source-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.source-card li {
  font-size: 13px;
}

.source-card a {
  color: var(--accent);
  text-decoration: none;
}

.source-card a:hover {
  text-decoration: underline;
}

.source-card a::before {
  content: '→ ';
  color: var(--muted);
}

/* Election Disclaimer */
.election-disclaimer {
  margin-top: 24px;
  padding: 16px 20px;
  background: #fff8e1;
  border: 2px solid #ffd54f;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #5d4037;
}

/* Responsive */
@media (max-width: 768px) {
  .election-comparison-grid,
  .detail-grid,
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .tax-timeline {
    padding-left: 24px;
  }

  .tax-timeline-item {
    flex-direction: column;
  }

  .tax-bar-label {
    width: 80px;
    font-size: 11px;
  }

  .tax-bar-value {
    width: 120px;
    font-size: 12px;
  }

  .burden-year {
    width: 45px;
    font-size: 11px;
  }

  .burden-total {
    width: 120px;
    font-size: 12px;
  }

  .tedori-comparison {
    flex-direction: column;
    gap: 12px;
  }

  .tedori-arrow {
    transform: rotate(90deg);
  }

  .tedori-amount {
    font-size: 22px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
