/* Nihon Help — Editorial Design System & Homepage Styles (Phase 2 & 3) */

:root {
  --font-serif: "Newsreader", "Playfair Display", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Brand Accents */
  --vermilion: #BD3A22;
  --vermilion-glow: rgba(189, 58, 34, 0.18);
  --vermilion-hover: #9E2F1B;
  --sakura: #E56B8B;
  --sakura-soft: #FDF2F5;
  --indigo-deep: #0B132B;
  --indigo-surface: #171F50;
  --gold-accent: #D4AF37;
  
  /* Transitions */
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 0.35s;
}

:root[data-theme="light"] {
  --bg-primary: #F8F6F0;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F1ECE1;
  --bg-subtle: #E8E2D5;
  --text-main: #1D211E;
  --text-muted: #555A52;
  --border-light: #E0DBD0;
  --border-strong: #CDC7BA;
  --card-shadow: 0 10px 30px -10px rgba(29, 33, 30, 0.07);
  --card-shadow-hover: 0 20px 40px -12px rgba(29, 33, 30, 0.14);
}

:root[data-theme="dark"] {
  --bg-primary: #111518;
  --bg-surface: #181E24;
  --bg-elevated: #222B34;
  --bg-subtle: #2C3742;
  --text-main: #F4F6F8;
  --text-muted: #A3ADB7;
  --border-light: #2A3440;
  --border-strong: #3A4757;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  --vermilion: #E06D53;
  --vermilion-hover: #F08269;
}

/* =========================================
   TOPBAR & HEADER
========================================= */
.topbar-editorial {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--duration-normal) var(--ease-editorial), border-color var(--duration-normal) var(--ease-editorial);
}

:root[data-theme="dark"] .topbar-editorial {
  background: rgba(17, 21, 24, 0.88);
}

.topbar-editorial .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.brand-logo-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-text-accent {
  color: var(--vermilion);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--vermilion);
}

.nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--vermilion);
  border-radius: 2px;
}

.theme-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

/* =========================================
   CINEMATIC PHOTOGRAPHIC HERO
========================================= */
.editorial-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--indigo-deep);
  color: #FFFFFF;
}

.hero-background-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-background-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: brightness(0.82) contrast(1.08);
  transform: scale(1.02);
  transition: transform 12s ease-out;
}

.editorial-hero:hover .hero-background-media img {
  transform: scale(1.06);
}

.hero-overlay-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(11, 19, 43, 0.4) 0%,
    rgba(11, 19, 43, 0.65) 60%,
    rgba(11, 19, 43, 0.95) 100%
  ),
  linear-gradient(
    90deg,
    rgba(11, 19, 43, 0.85) 0%,
    rgba(11, 19, 43, 0.5) 55%,
    rgba(11, 19, 43, 0.15) 100%
  );
}

.hero-content-wrap {
  position: relative;
  z-index: 10;
  padding: 5rem 0 6rem;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  max-width: 660px;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFD2DF;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-headline-sub {
  color: #FFB3C6;
  display: block;
  font-weight: 700;
}

.hero-description {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 2.5rem;
  max-width: 540px;
  font-weight: 450;
}

.hero-actions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-primary-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  background: var(--vermilion);
  color: #FFFFFF;
  font-weight: 750;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(189, 58, 34, 0.4);
  transition: all 0.25s var(--ease-editorial);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary-editorial:hover {
  background: var(--vermilion-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(189, 58, 34, 0.55);
}

.btn-secondary-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-weight: 750;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s var(--ease-editorial);
}

.btn-secondary-editorial:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Niko Hero Floating Companion Card */
.hero-companion-card {
  position: relative;
  background: rgba(23, 31, 80, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 2rem 2.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.companion-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.companion-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 105, 180, 0.35), rgba(23, 31, 80, 0.8));
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.companion-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.companion-badge-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFB3C6;
  margin-bottom: 0.2rem;
}

.companion-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.companion-dialogue {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.companion-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-chip:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.quick-chip img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

/* =========================================
   EDITORIAL BENTO DESTINATIONS SECTION
========================================= */
.editorial-section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  border-bottom: 1px solid var(--border-light);
}

.editorial-section-header {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-bottom: 0.5rem;
  display: block;
}

.section-main-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text-main);
  margin: 0;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0;
  line-height: 1.55;
}

/* Bento Grid */
.bento-destinations-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.2rem;
  min-height: 380px;
  background: var(--indigo-deep);
  box-shadow: var(--card-shadow);
  transition: transform var(--duration-normal) var(--ease-editorial), box-shadow var(--duration-normal) var(--ease-editorial);
  border: 1px solid var(--border-light);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.bento-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bento-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-editorial);
}

.bento-card:hover .bento-card-bg img {
  transform: scale(1.06);
}

.bento-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(17, 21, 24, 0.05) 0%,
    rgba(17, 21, 24, 0.5) 50%,
    rgba(17, 21, 24, 0.95) 100%
  );
  transition: opacity 0.3s ease;
}

.bento-card-content {
  position: relative;
  z-index: 3;
}

.bento-card-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.bento-card-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: #FFFFFF;
}

.bento-card-description {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1rem;
}

.bento-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 750;
  color: #FFB3C6;
  transition: transform 0.2s ease;
}

.bento-card:hover .bento-card-cta {
  transform: translateX(4px);
  color: #FFFFFF;
}

/* Grid layout spans */
.bento-span-8 { grid-column: span 8; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-12 { grid-column: span 12; }

/* =========================================
   PRACTICAL TOOLS SHOWCASE
========================================= */
.tools-showcase-section {
  background: var(--bg-surface);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.tool-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: all var(--duration-normal) var(--ease-editorial);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--vermilion);
}

.tool-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-bottom: 1.25rem;
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}

.tool-card-icon img {
  width: 24px;
  height: 24px;
}

.tool-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  color: var(--text-main);
}

.tool-card-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.tool-card-link {
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--vermilion);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tool-card:hover .tool-card-link {
  color: var(--vermilion-hover);
}

.tool-privacy-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* =========================================
   LIVING IN JAPAN — RELOCATION COMPANION
========================================= */
.living-split-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.living-guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.living-guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.6rem;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--card-shadow);
  transition: all 0.25s var(--ease-editorial);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.living-guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--vermilion);
  box-shadow: var(--card-shadow-hover);
}

.living-guide-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
}

.living-guide-icon img {
  width: 20px;
  height: 20px;
}

.living-guide-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.living-guide-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.living-feature-spotlight {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.spotlight-character-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.spotlight-avatar {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.25rem;
  overflow: hidden;
}

.spotlight-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   EDITORIAL TRUST & VERIFICATION
========================================= */
.trust-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: center;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.trust-pillar-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.trust-pillar-item strong {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 800;
}

.trust-pillar-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================
   RESPONSIVE DESIGN BREAKPOINTS
========================================= */
@media (max-width: 1024px) {
  .hero-content-wrap {
    grid-template-columns: 1fr;
    padding: 4rem 0 5rem;
  }
  .bento-span-8, .bento-span-4, .bento-span-6 {
    grid-column: span 12;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .living-split-wrap {
    grid-template-columns: 1fr;
  }
  .trust-banner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 680px) {
  .topbar-editorial .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
    gap: 1rem;
  }
  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .living-guide-cards {
    grid-template-columns: 1fr;
  }
  .trust-pillars {
    grid-template-columns: 1fr;
  }
  .hero-actions-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary-editorial, .btn-secondary-editorial {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-background-media img,
  .bento-card-bg img {
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================
   PHASE 4: INNER PAGE HEROES & ROUTE STRIPS
========================================= */
.editorial-inner-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--indigo-deep);
  color: #FFFFFF;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
}

.editorial-inner-hero .hero-content-wrap {
  padding: 3.5rem 0 4rem;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.editorial-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFB3C6;
  margin-bottom: 1.25rem;
}

.editorial-breadcrumb a {
  color: #FFFFFF;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.editorial-breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Route Timeline Strip */
.route-timeline-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.route-stop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.6rem;
  position: relative;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-editorial), border-color 0.25s var(--ease-editorial);
}

.route-stop-card:hover {
  transform: translateY(-3px);
  border-color: var(--vermilion);
  box-shadow: var(--card-shadow-hover);
}

.route-stop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.route-day-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--vermilion);
  border: 1px solid var(--border-light);
}

.route-transit-icon {
  width: 22px;
  height: 22px;
  opacity: 0.75;
}

.route-stop-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.route-stop-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.route-stop-stay {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-light);
}

/* Annotated Document Viewer (City Hall Letter) */
.annotated-doc-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  margin: 2.5rem 0;
  align-items: start;
}

.mock-japanese-letter {
  background: #FFFDF9;
  border: 1px solid #D6D0C2;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
  position: relative;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: #22252A;
}

:root[data-theme="dark"] .mock-japanese-letter {
  background: #1E2328;
  border-color: #35404D;
  color: #E2E6EB;
}

.letter-header-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-strong);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.doc-callout-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--vermilion);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-sans);
  box-shadow: 0 2px 6px rgba(189, 58, 34, 0.4);
  vertical-align: middle;
  margin-right: 0.4rem;
}

.doc-annotations-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-annotation-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}

.doc-annotation-card h4 {
  display: flex;
  align-items: center;
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.doc-annotation-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Waste Categories Grid */
.waste-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.waste-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--vermilion);
}

.waste-card.burnable { border-top-color: #E65100; }
.waste-card.nonburnable { border-top-color: #1565C0; }
.waste-card.plastic { border-top-color: #2E7D32; }
.waste-card.pet { border-top-color: #00838F; }
.waste-card.oversized { border-top-color: #6A1B9A; }

.waste-japanese {
  font-size: 0.82rem;
  color: var(--vermilion);
  font-weight: 800;
}

.waste-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
}

.waste-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* Bank Prep Cards */
.bank-prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.bank-prep-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--card-shadow);
}

.bank-prep-card .step-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--vermilion);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.bank-prep-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

.bank-prep-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .route-timeline-strip {
    grid-template-columns: 1fr;
  }
  .annotated-doc-container {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   PHASE 5: REFINED MOTION & MICRO-INTERACTIONS
========================================= */
.topbar-editorial.topbar-scrolled {
  background: rgba(248, 246, 240, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom-color: var(--border-strong);
}

:root[data-theme="dark"] .topbar-editorial.topbar-scrolled {
  background: rgba(17, 21, 24, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-primary-editorial:active,
.btn-secondary-editorial:active,
.theme-btn:active {
  transform: translateY(1px);
}

/* Keyboard accessibility outlines */
body.keyboard-nav *:focus-visible {
  outline: 3px solid var(--vermilion) !important;
  outline-offset: 3px !important;
}

/* Button & Card Focus enhancements */
.bento-card:focus-visible,
.tool-card:focus-visible,
.living-guide-card:focus-visible,
.route-stop-card:focus-visible {
  outline: 3px solid var(--vermilion);
  outline-offset: 4px;
}
