/* ==========================================================================
   jdmvin.com — shared style for sub-pages
   (privacy_policy, terms, contact, operator, about, disclaimer,
    cookie_policy, privacy_center, security, sitemap)
   ========================================================================== */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --navy: #0a2540;
  --navy-soft: #1b3554;
  --blue: #1a73e8;
  --blue-hover: #1557b0;
  --gold: #bfa055;
  --text: #0a2540;
  --text-secondary: #5f6368;
  --text-tertiary: #8b9099;
  --border: #e6e8eb;
  --border-strong: #c8ccd1;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 37, 64, 0.12);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ──────────── HEADER ──────────── */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}
.logo span { color: var(--blue); }
nav ul { display: flex; gap: 32px; list-style: none; align-items: center; }
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
nav a:hover { color: var(--navy); }
.lang-toggle {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
}
.lang-toggle:hover { border-color: var(--border-strong); }

/* ──────────── PAGE HERO ──────────── */
.page-hero {
  padding: 56px 32px 0;
  text-align: center;
}
.page-hero > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
/* Divider line constrained to 1080 max-width, centered */
.page-hero::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  max-width: 1080px;
  margin: 32px auto 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(26, 115, 232, 0.08);
  color: var(--blue);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 12px;
}
.page-hero .meta {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* ──────────── CONTENT (legal / prose pages) ──────────── */
.content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 32px 96px;
}
/* Prose text width-constrained for readability, centered within container */
.content > section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.content > .callout {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.content section {
  margin-bottom: 36px;
}
.content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 20px;
  margin-bottom: 10px;
}
.content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 14px;
}
.content p.lead {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.content ul, .content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.content li {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 8px;
  color: var(--text);
}
.content li strong { color: var(--navy); }
.content code {
  background: rgba(26, 115, 232, 0.08);
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', Monaco, monospace;
}
.content .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.content .callout strong { color: var(--navy); }
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.content th, .content td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.content th {
  background: var(--surface);
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.content td { color: var(--text-secondary); }

/* ──────────── WIDE CONTENT (archive / grid-heavy pages) ──────────── */
.content-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 96px;
}
.content-wide .section-block { margin-bottom: 64px; }
.content-wide .section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
}
.content-wide h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.15;
}
.content-wide .section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 760px;
  line-height: 1.6;
}

/* 6-cell stats grid (matches main page stats DNA) */
.wide-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 64px;
}
.wide-stats.cols-4 { grid-template-columns: repeat(4, 1fr); }
.wide-stats.cols-5 { grid-template-columns: repeat(5, 1fr); }
.wide-stat {
  background: var(--surface);
  padding: 32px 24px;
}
.wide-stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wide-stat-value .unit {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 2px;
}
.wide-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  font-weight: 500;
}

/* Generic card grid (flex columns count) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Lift-card: the unified card DNA (matches mock_v1.html step / pillar feel) */
.lift-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
}
.lift-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.10);
  transform: translateY(-3px);
  text-decoration: none;
}
.lift-card .card-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.lift-card .card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.lift-card .card-stat {
  font-size: 38px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.lift-card .card-stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 16px;
}
.lift-card .card-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.lift-card .card-arrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
}
.lift-card:hover .card-arrow { text-decoration: underline; }

/* Compact card for year / small chip */
.lift-card.compact {
  padding: 24px 18px;
  text-align: center;
}
.lift-card.compact .card-stat {
  font-size: 30px;
  margin-bottom: 4px;
}
.lift-card.compact .card-stat-label {
  margin-bottom: 0;
}

/* Category group: section divider with gold eyebrow */
.archive-group { margin-bottom: 48px; }
.archive-group-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.archive-group-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.archive-group-eyebrow .count-pill {
  background: rgba(191, 160, 85, 0.12);
  color: var(--gold);
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* Navy banner (used in by-notification for authority callout) */
.source-banner {
  background: var(--navy);
  color: white;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.source-banner::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
}
.source-banner .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.source-banner .name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}
.source-banner .sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Modern pagination */
.pagination-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 48px 0 16px;
}
.pagination-modern a,
.pagination-modern span.page-num {
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
  font-variant-numeric: tabular-nums;
}
.pagination-modern a:hover { background: var(--bg); color: var(--navy); text-decoration: none; }
.pagination-modern .current {
  background: var(--navy);
  color: white;
}
.pagination-modern .current:hover { background: var(--navy); color: white; }
.pagination-modern .ellipsis { color: var(--text-tertiary); padding: 10px 6px; }
.pagination-info {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 1100px) {
  .card-grid.cols-4, .card-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .wide-stats { grid-template-columns: repeat(3, 1fr); }
  .wide-stats.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .wide-stats.cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .content-wide { padding: 24px 20px 64px; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .card-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .wide-stats { grid-template-columns: repeat(2, 1fr); }
  .source-banner { padding: 20px 22px; }
  .source-banner .name { font-size: 16px; }
}
@media (max-width: 480px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .card-grid.cols-5 { grid-template-columns: 1fr; }
}

/* ──────────── FOOTER ──────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 32px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { font-size: 18px; margin-bottom: 16px; display: block; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal {
  font-size: 12px;
  color: var(--text-tertiary);
  max-width: 720px;
  line-height: 1.6;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  nav ul { gap: 20px; }
}
@media (max-width: 600px) {
  .header-inner { padding: 14px 20px; }
  nav ul li:not(:last-child) { display: none; }
  .page-hero { padding: 40px 20px 24px; }
  .content { padding: 24px 20px 64px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}


/* ───────── detail-page utilities (recall notification) — 2026-05-29 ───────── */
.mono { font-family: 'SF Mono','Courier New',monospace; letter-spacing: .01em; }
.small { font-size: 12px; }
.muted { color: var(--text-tertiary); }
.nowrap { white-space: nowrap; }
details { margin-top: 8px; }
details summary { cursor: pointer; font-weight: 600; color: var(--blue); font-size: 13.5px; padding: 6px 0; }
.ja-orig { margin-top: 10px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.ja-orig h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin: 12px 0 4px; }
.ja-orig h3:first-child { margin-top: 0; }
.ja-orig p { font-size: 13px; line-height: 1.7; color: var(--text); }
