:root {
  --ink: #18221f;
  --muted: #5b6863;
  --line: #e8ede9;
  --paper: #fcfcfa;
  --soft: #f2f7f3;
  --deep: #103a34;
  --teal: #1a6b70;
  --teal-soft: #e6f1ed;
  --amber: #7a4a0a;
  --amber-soft: #fff4dd;
  --hero-accent: #ffd98a;
  --accent: #f3b340;
  --accent-ink: #3a2906;
  --red: #9c3326;
  --red-soft: #fdf1ee;
  --white: #ffffff;
  --max: 1020px;
  --r: 14px;
  --r-sm: 10px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 36, 0.04), 0 1px 3px rgba(16, 40, 36, 0.05);
  --shadow: 0 6px 20px rgba(16, 40, 36, 0.06), 0 2px 6px rgba(16, 40, 36, 0.04);
  --shadow-lg: 0 20px 44px rgba(16, 40, 36, 0.11);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", sans-serif;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--teal-soft); color: var(--deep); }
a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: 0; }
ul, ol { margin: 0; padding-left: 1.2rem; }
li + li { margin-top: 0.45rem; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 100;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-radius: 10px;
  background: var(--deep);
  color: var(--white);
  padding: 8px 12px;
  font-weight: 800;
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 251, 247, 0.94);
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  backdrop-filter: blur(16px);
}
body[data-menu-open="true"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(18, 56, 50, 0.36);
  backdrop-filter: blur(4px);
}
.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  color: var(--deep);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 12px rgba(18, 56, 50, 0.16));
}
.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}
.brand-name {
  font-size: 1rem;
  font-weight: 800;
}
.brand-sub {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--deep);
  cursor: pointer;
}
.menu-toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 16px;
}
.menu-toggle-icon span {
  position: absolute;
  left: 0;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top 160ms ease, transform 160ms ease, opacity 160ms ease;
}
.menu-toggle-icon span:nth-child(1) {
  top: 0;
}
.menu-toggle-icon span:nth-child(2) {
  top: 7px;
}
.menu-toggle-icon span:nth-child(3) {
  top: 14px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 18px;
  color: #2e3a37;
  font-size: 0.92rem;
  font-weight: 700;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 0;
  text-decoration: none;
  transition: color 140ms ease;
}
.nav-links a small,
.menu-search-card,
.menu-panel-head,
.menu-priority-grid,
.menu-section-label {
  display: none;
}
.nav-links .mobile-only-link {
  display: none;
}
.nav-links .secondary-link {
  display: none;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a[href="/guides/emergency-signs/"] {
  color: var(--red);
}
.nav-links a[href="/search/"] {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 6px 12px;
}
.nav-links a[aria-current="page"] {
  color: var(--deep);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(135% 150% at 88% -10%, #1c5f62 0%, var(--deep) 52%, #0b2f2a 100%);
  color: var(--white);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(11, 40, 36, 0.94) 0%, rgba(11, 40, 36, 0.78) 48%, rgba(11, 40, 36, 0.42) 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 3;
  background: linear-gradient(90deg, var(--accent) 0%, var(--hero-accent) 60%, transparent 100%);
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.page-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 80% center;
  opacity: 0.22;
  mix-blend-mode: luminosity;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 66px 0 44px;
}
.kicker {
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.page-hero .kicker {
  color: var(--hero-accent);
}
.page-hero h1 {
  max-width: 820px;
  margin-top: 14px;
  font-size: 2.45rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.page-hero p {
  max-width: min(760px, 100%);
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: min(780px, 100%);
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}
.page-hero-meta span,
.page-hero-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  color: inherit;
  text-decoration: none;
}
.page-hero-meta a:hover {
  background: rgba(255, 255, 255, 0.2);
}
.home-hero .page-hero-inner {
  padding: 76px 0 56px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-action {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border-radius: var(--r-sm);
  padding: 11px 20px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.hero-action.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(243, 179, 64, 0.32);
}
.hero-action.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(243, 179, 64, 0.42);
}
.hero-action.secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.hero-action.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}
.breadcrumbs {
  border-top: 1px solid var(--line);
  background: #f7faf8;
}
.breadcrumbs ol {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none !important;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}
.breadcrumbs ol,
.breadcrumbs li {
  padding-left: 0;
}
.breadcrumbs li {
  margin: 0;
  min-width: 0;
}
.breadcrumbs li:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumbs li:last-child span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumbs li::marker {
  content: "";
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: #89938f;
}
.breadcrumbs a {
  color: var(--teal);
}
.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}
.section.narrow { max-width: 820px; }
.band { border-top: 1px solid var(--line); background: var(--paper); }
.band.soft { background: var(--soft); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}
.subsection-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
  margin: 32px 0 18px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.subsection-head.compact {
  margin-top: 28px;
}
.section h2 {
  margin-top: 8px;
  font-size: 1.8rem;
  font-weight: 800;
}
.lead { color: var(--muted); font-size: 1.02rem; }
.priority-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(141, 47, 36, 0.16);
  border-left: 5px solid var(--red);
  border-radius: 12px;
  background: var(--red-soft);
  padding: 22px 24px;
}
.priority-panel h2 {
  margin: 6px 0 8px;
  color: #221916;
  font-size: 1.42rem;
}
.priority-panel p {
  margin: 0;
  color: #3f312e;
}
.priority-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
  border-radius: 12px;
  background: var(--red);
  color: var(--white);
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}
.home-concern-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1.28fr);
  gap: 18px;
  margin-top: 18px;
  border: 1px solid rgba(25, 102, 107, 0.16);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fcfa 0%, #ffffff 100%);
  padding: 20px;
}
.home-concern-head {
  display: grid;
  align-content: start;
  gap: 8px;
}
.home-concern-head h2 {
  margin-top: 4px;
  color: var(--deep);
  font-size: 1.34rem;
}
.home-concern-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.7;
}
.home-concern-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-concern-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 14px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.home-concern-card:hover {
  border-color: #c7d7d0;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.home-concern-card.urgent {
  border-color: rgba(141, 47, 36, 0.2);
  border-left: 5px solid var(--red);
  background: var(--red-soft);
}
.home-concern-card span {
  grid-row: 1 / span 3;
  align-self: start;
  border-radius: 999px;
  background: var(--teal-soft);
  padding: 3px 8px;
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.home-concern-card.urgent span {
  background: #ffe3dc;
  color: var(--red);
}
.home-concern-card strong {
  color: var(--deep);
  font-size: 0.98rem;
  line-height: 1.38;
}
.home-concern-card small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.6;
}
.home-concern-card b {
  width: fit-content;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}
.home-concern-card.urgent b {
  color: var(--red);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.route-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 20px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.route-card:hover {
  border-color: var(--teal);
}
.route-card.priority {
  border-color: rgba(141, 47, 36, 0.22);
  background: linear-gradient(180deg, #fffaf8, var(--white));
}
.route-index {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #687a74;
  font-size: 1.08rem;
  font-weight: 800;
}
.route-card strong {
  color: var(--deep);
  font-size: 1.05rem;
  line-height: 1.35;
}
.route-card small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.card:hover {
  border-color: #d3e1da;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.card-eyebrow span {
  border-radius: 999px;
  background: #f4f7f5;
  padding: 2px 8px;
}
.card h2, .card h3 {
  margin-bottom: 10px;
  color: var(--deep);
  font-size: 1.14rem;
  font-weight: 800;
}
.card p, .card li { color: var(--muted); }
.card a { font-weight: 800; color: var(--teal); }
.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
  border-top: 0;
  padding-top: 0;
}
.card-facts div {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: 999px;
  background: #f4f7f5;
  padding: 3px 9px;
}
.card-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.card-facts dd {
  margin: 0;
  color: var(--deep);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.5;
}
.card-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  margin-top: 16px;
  border: 1px solid var(--teal);
  border-radius: 10px;
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 12px;
  font-size: 0.9rem;
  text-decoration: none;
}
.card-action:hover {
  background: var(--deep);
}
.trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  background: var(--white);
  padding: 24px;
}
.trust-panel h2 {
  margin: 6px 0 10px;
  color: var(--deep);
  font-size: 1.42rem;
}
.trust-panel p {
  margin: 0;
  color: var(--muted);
}
.trust-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.trust-list div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.trust-list dt {
  color: var(--deep);
  font-weight: 800;
}
.trust-list dd {
  margin: 2px 0 0;
  color: var(--muted);
}
.trust-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf8;
  padding: 7px 12px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}
.site-check-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: 18px;
  margin-top: 18px;
  border: 1px solid rgba(25, 102, 107, 0.18);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  background: #f7faf8;
  padding: 20px;
}
.site-check-head {
  display: grid;
  align-content: start;
  gap: 8px;
}
.site-check-head h2 {
  margin: 0;
  color: var(--deep);
  font-size: 1.26rem;
}
.site-check-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}
.site-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.site-check-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 14px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-check-card:hover {
  border-color: var(--teal);
}
.site-check-card span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
}
.site-check-card strong {
  color: var(--deep);
  font-size: 0.96rem;
  line-height: 1.35;
}
.site-check-card small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.5;
}
.compact-section {
  padding: 36px 0;
}
.compact-head {
  margin-bottom: 16px;
}
.index-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.index-guide-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 16px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.index-guide-card:hover {
  border-color: var(--teal);
}
.index-guide-card.urgent {
  border-color: rgba(141, 47, 36, 0.2);
  border-left: 5px solid var(--red);
  background: var(--red-soft);
}
.index-guide-card span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}
.index-guide-card.urgent span {
  color: var(--red);
}
.index-guide-card strong {
  color: var(--deep);
  font-size: 1rem;
  line-height: 1.35;
}
.index-guide-card small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.guide-intent-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}
.guide-intent-group {
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  background: var(--white);
  padding: 18px;
}
.guide-intent-group:nth-child(2) {
  border-left-color: #8a6a18;
}
.guide-intent-group:nth-child(3) {
  border-left-color: #6b6f99;
}
.guide-intent-group:nth-child(4) {
  border-left-color: var(--amber);
}
.guide-intent-head {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}
.guide-intent-head span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}
.guide-intent-head h3 {
  color: var(--deep);
  font-size: 1.08rem;
}
.guide-intent-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.guide-intent-links {
  display: grid;
}
.guide-intent-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 4px 14px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}
.guide-intent-link:first-child {
  border-top: 0;
}
.guide-intent-link span {
  align-self: start;
  justify-self: start;
  width: fit-content;
  border-radius: 999px;
  background: #f4f7f5;
  padding: 3px 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.guide-intent-link.urgent span {
  background: var(--red-soft);
  color: var(--red);
}
.guide-intent-link strong {
  color: var(--deep);
  font-size: 0.98rem;
  line-height: 1.4;
}
.guide-intent-link small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
}
.guide-intent-link:hover strong {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.search-start {
  margin-bottom: 18px;
}
.search-suggestions {
  margin-top: 16px;
  border: 1px solid #d7e4df;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbfa 0%, #fffdf8 100%);
  padding: 16px;
}
.search-suggestions-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.search-suggestions-head span {
  color: var(--deep);
  font-weight: 800;
}
.search-suggestions-head small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}
.search-intent-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.search-intent-group {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  background: var(--white);
  padding: 14px;
}
.search-intent-group:nth-child(2) {
  border-left-color: #8a6a18;
}
.search-intent-group:nth-child(3) {
  border-left-color: #6b6f99;
}
.search-intent-group:nth-child(4) {
  border-left-color: var(--amber);
}
.search-intent-head {
  display: grid;
  gap: 4px;
}
.search-intent-head span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
}
.search-intent-head h3 {
  color: var(--deep);
  font-size: 1rem;
  line-height: 1.35;
}
.search-intent-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}
.query-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.query-chip {
  display: grid;
  gap: 4px;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 12px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.query-chip:hover {
  border-color: #c7d7d0;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.query-chip:focus-visible {
  outline: 3px solid rgba(30, 125, 124, 0.26);
  outline-offset: 2px;
}
.query-chip strong {
  color: var(--deep);
  font-size: 0.95rem;
  line-height: 1.45;
}
.query-chip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.55;
}
.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  padding: 3px 10px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}
a.tag:hover {
  background: var(--teal);
  color: var(--white);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tag-row .tag { margin-bottom: 0; }
.paper-tools {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 18px;
  margin-bottom: 18px;
}
.search-label {
  display: grid;
  gap: 8px;
  color: var(--deep);
  font-weight: 800;
}
.search-label input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.filter-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf8;
  color: var(--deep);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}
.filter-button[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}
.filter-button.clear {
  color: var(--muted);
  font-weight: 800;
}
.result-count,
.empty-result,
.more-link {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}
.more-link a,
.article-nav a {
  color: var(--teal);
  font-weight: 800;
}
.tag-index-links {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}
.tag-index-links a {
  display: inline-flex;
  margin: 0 8px 6px 0;
  color: var(--teal);
  font-weight: 800;
}
.tag-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.tag-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 18px;
  color: inherit;
  text-decoration: none;
}
.tag-card:hover {
  border-color: var(--teal);
}
.tag-card strong {
  color: var(--deep);
  font-size: 1rem;
}
.tag-card small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.tag-route-panel .index-guide {
  margin-bottom: 0;
}
.article {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  overflow-wrap: anywhere;
}
.guide-answer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.68fr);
  gap: 16px;
  margin: 0 0 20px;
  border: 1px solid rgba(25, 102, 107, 0.2);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  background: linear-gradient(135deg, #f7faf8 0%, #ffffff 100%);
  padding: 18px;
}
.guide-answer-panel.urgent {
  border-left-color: var(--red);
  background: linear-gradient(135deg, var(--red-soft) 0%, #ffffff 82%);
}
.guide-answer-main {
  display: grid;
  align-content: start;
  gap: 8px;
}
.article .guide-answer-main h2 {
  margin: 0;
  color: var(--deep);
  font-size: 1.2rem;
  line-height: 1.42;
}
.guide-answer-main p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}
.guide-answer-side {
  display: grid;
  gap: 10px;
  align-content: start;
}
.guide-answer-note,
.guide-answer-link {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 12px;
}
.guide-answer-note span,
.guide-answer-link span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
}
.guide-answer-note strong,
.guide-answer-link strong {
  color: var(--deep);
  font-size: 0.95rem;
  line-height: 1.45;
}
.guide-answer-link {
  border-color: rgba(25, 102, 107, 0.24);
  color: inherit;
  text-decoration: none;
}
.guide-answer-link:hover strong {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.article-summary {
  margin: 0 0 24px;
  border: 1px solid rgba(25, 102, 107, 0.18);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  background: #f7faf8;
  padding: 20px;
}
.article-summary-head {
  margin-bottom: 14px;
}
.article .article-summary h2 {
  margin: 4px 0 0;
  font-size: 1.26rem;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.summary-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 14px;
}
.summary-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--deep);
  line-height: 1.4;
}
.summary-grid p,
.summary-grid ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}
.summary-grid ul {
  padding-left: 1.05rem;
}
.summary-alert {
  margin: 14px 0 0;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
  padding: 10px 12px;
  color: #3f312e;
  font-weight: 800;
}
.paper-route-panel,
.guide-route-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(260px, 1fr);
  gap: 16px;
  margin: 0 0 24px;
  border: 1px solid rgba(25, 102, 107, 0.18);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  background: #f7faf8;
  padding: 18px;
}
.paper-route-head,
.guide-route-head {
  display: grid;
  align-content: start;
  gap: 7px;
}
.article .paper-route-panel h2,
.article .guide-route-panel h2 {
  margin: 0;
  color: var(--deep);
  font-size: 1.18rem;
}
.paper-route-head p,
.guide-route-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.65;
}
.paper-route-links,
.guide-route-links {
  display: grid;
  gap: 9px;
}
.paper-route-link,
.guide-route-link {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 12px;
  color: inherit;
  text-decoration: none;
}
.paper-route-link span,
.guide-route-link span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
}
.paper-route-link strong,
.guide-route-link strong {
  color: var(--deep);
  font-size: 0.96rem;
  line-height: 1.35;
}
.paper-route-link small,
.guide-route-link small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.5;
}
.paper-route-link:hover strong,
.guide-route-link:hover strong {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.guide-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(260px, 1fr);
  gap: 18px;
  margin: 0 0 24px;
  border: 1px solid rgba(25, 102, 107, 0.18);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  background: #f7faf8;
  padding: 20px;
}
.guide-summary-main h2 {
  margin: 4px 0 8px;
  color: var(--deep);
  font-size: 1.24rem;
}
.guide-summary-main p {
  margin: 0;
  color: var(--muted);
}
.guide-summary ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--deep);
  font-weight: 800;
}
.guide-shortcuts {
  display: grid;
  gap: 12px;
  margin: -4px 0 24px;
  border: 1px solid rgba(25, 102, 107, 0.14);
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
}
.guide-shortcuts-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.article .guide-shortcuts h2 {
  margin: 3px 0 0;
  color: var(--deep);
  font-size: 1.06rem;
}
.guide-shortcut-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.guide-shortcut {
  display: grid;
  gap: 4px;
  min-height: 60px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfa;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}
.guide-shortcut span {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
}
.guide-shortcut strong {
  color: var(--deep);
  font-size: 0.9rem;
  line-height: 1.35;
}
.guide-shortcut:hover {
  border-color: rgba(25, 102, 107, 0.38);
  background: #f3fbf8;
}
.guide-shortcut:hover strong {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.guide-action-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: -8px 0 24px;
  border: 1px solid rgba(25, 102, 107, 0.18);
  border-left: 5px solid var(--amber);
  border-radius: 12px;
  background: #fffdf7;
  padding: 14px 16px;
}
.guide-action-strip div {
  display: grid;
  gap: 4px;
}
.guide-action-strip span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
}
.guide-action-strip strong {
  color: var(--deep);
  line-height: 1.35;
}
.guide-action-strip small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}
.guide-action-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(25, 102, 107, 0.24);
  border-radius: 10px;
  background: var(--white);
  color: var(--teal);
  padding: 8px 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.guide-action-strip a:hover {
  border-color: var(--teal);
  background: #f3fbf8;
}
.faq-route-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: -4px 0 24px;
  border: 1px solid rgba(25, 102, 107, 0.18);
  border-radius: 12px;
  background: var(--white);
  padding: 14px 16px;
}
.faq-route-panel div {
  display: grid;
  gap: 4px;
}
.faq-route-panel span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}
.faq-route-panel strong {
  color: var(--deep);
  line-height: 1.35;
}
.faq-route-panel small {
  color: var(--muted);
  line-height: 1.55;
}
.faq-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
}
.article .faq-route-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--teal);
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  padding: 8px 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.faq-route-panel a.secondary {
  border-color: rgba(25, 102, 107, 0.24);
  background: #f3fbf8;
  color: var(--teal);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
}
.article-meta span {
  border-radius: 999px;
  background: #f4f7f5;
  padding: 3px 9px;
}
.source-panel {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  background: var(--white);
  padding: 14px 16px;
}
.source-panel summary,
.toc-panel summary {
  min-height: 44px;
  padding-block: 8px;
  cursor: pointer;
  color: var(--deep);
  font-weight: 800;
}
.source-panel summary::-webkit-details-marker,
.toc-panel summary::-webkit-details-marker {
  color: var(--muted);
}
.source-panel dl {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.source-panel dl div {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.source-panel dt {
  color: var(--muted);
  font-weight: 800;
}
.source-panel dd {
  margin: 0;
}
.source-panel .tag-row {
  margin-bottom: 0;
}
.source-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.source-panel p + p {
  margin-top: 8px;
}
.toc-panel {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  background: var(--amber-soft);
  padding: 14px 16px;
}
.toc-panel ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.toc-panel li {
  margin: 0;
}
.toc-panel a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}
.toc-panel a:hover {
  text-decoration: underline;
}
.toc-level-3 {
  padding-left: 18px;
}
.article h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 4px solid var(--teal);
  color: var(--deep);
  font-size: 1.45rem;
  line-height: 1.4;
}
.article h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 1.12rem;
}
.article h2[id],
.article h3[id] {
  scroll-margin-top: 96px;
}
.article a { font-weight: 600; }
.article p a, .article li a, .article dd a, .article blockquote a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(26, 107, 112, 0.4);
  text-underline-offset: 0.18em;
}
.article p a:hover, .article li a:hover, .article dd a:hover, .article blockquote a:hover { text-decoration-color: var(--teal); }
.article code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7faf8;
  padding: 0.1em 0.35em;
  color: var(--deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.article blockquote {
  margin: 24px 0;
  border: 1px solid rgba(122, 74, 10, 0.16);
  border-left: 5px solid var(--amber);
  border-radius: var(--r-sm);
  background: #fff8ec;
  padding: 16px 20px;
}
.warning {
  border: 1px solid rgba(156, 51, 38, 0.18);
  border-left: 5px solid var(--red);
  border-radius: var(--r-sm);
  background: var(--red-soft);
  padding: 18px 20px;
}
.warning h2 {
  margin-bottom: 6px;
  font-size: 1.34rem;
}
.source-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.related-section {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.related-section h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.next-actions {
  margin-top: 38px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  background: #f7faf8;
  padding: 22px;
}
.next-actions-head {
  margin-bottom: 16px;
}
.article .next-actions h2 {
  margin: 4px 0 0;
  font-size: 1.2rem;
}
.next-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.next-action-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 16px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.next-action-card:hover {
  border-color: var(--teal);
}
.next-action-card span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}
.next-action-card strong {
  color: var(--deep);
  font-size: 1rem;
  line-height: 1.35;
}
.next-action-card small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.start-flow {
  margin: 0 0 26px;
  border: 1px solid rgba(25, 102, 107, 0.18);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  background: #f7faf8;
  padding: 20px;
}
.start-flow-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.article .start-flow h2 {
  margin: 0;
  font-size: 1.24rem;
}
.start-flow-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.65;
}
.start-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.start-flow-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 14px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.start-flow-item.urgent {
  border-color: rgba(141, 47, 36, 0.22);
  border-left: 5px solid var(--red);
  background: var(--red-soft);
}
.start-flow-step {
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 800;
}
.start-flow-item.urgent .start-flow-step {
  background: #ffe3dc;
  color: var(--red);
}
.start-flow-label {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}
.start-flow-item strong {
  color: var(--deep);
  font-size: 0.98rem;
  line-height: 1.4;
}
.start-flow-item small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.55;
}
.start-flow-item:hover strong {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.start-intent-panel {
  margin: 0 0 26px;
  border: 1px solid rgba(25, 102, 107, 0.18);
  border-left: 6px solid #6b6f99;
  border-radius: 12px;
  background: #fbfbff;
  padding: 20px;
}
.start-intent-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.article .start-intent-panel h2 {
  margin: 0;
  font-size: 1.24rem;
}
.start-intent-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.65;
}
.start-intent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.start-intent-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 14px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.start-intent-card:hover {
  border-color: var(--teal);
}
.start-intent-card span {
  width: fit-content;
  border-radius: 999px;
  background: var(--teal-soft);
  padding: 2px 8px;
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 800;
}
.start-intent-card strong {
  color: var(--deep);
  font-size: 0.98rem;
  line-height: 1.4;
}
.start-intent-card small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.55;
}
.start-intent-card:hover strong {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.faq-section {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.faq-head {
  margin-bottom: 14px;
}
.article .faq-section h2 {
  margin: 4px 0 0;
  font-size: 1.24rem;
}
.faq-start-panel {
  display: grid;
  gap: 16px;
  margin: 0 0 22px;
  border: 1px solid rgba(25, 102, 107, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fcfa 0%, #ffffff 100%);
  padding: 18px;
}
.faq-start-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: end;
}
.faq-start-head h3 {
  margin: 4px 0 0;
  color: var(--deep);
  font-size: 1.12rem;
  line-height: 1.35;
}
.faq-start-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.65;
}
.faq-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.faq-start-card {
  display: grid;
  gap: 11px;
  align-content: start;
  min-height: 210px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  background: var(--white);
  padding: 15px;
}
.faq-start-card.urgent {
  border-left-color: var(--red);
  background: #fff8f7;
}
.faq-start-card-main {
  display: grid;
  gap: 6px;
}
.faq-start-card span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}
.faq-start-card.urgent span {
  color: var(--red);
}
.faq-start-card h4 {
  margin: 0;
  color: var(--deep);
  font-size: 1rem;
  line-height: 1.35;
}
.faq-start-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.6;
}
.faq-start-primary,
.faq-start-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.faq-start-primary {
  border: 1px solid var(--teal);
  background: var(--teal);
  padding: 8px 12px;
  color: var(--white);
}
.faq-start-card.urgent .faq-start-primary {
  border-color: var(--red);
  background: var(--red);
}
.faq-start-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.faq-start-links a {
  border: 1px solid rgba(25, 102, 107, 0.22);
  background: #f3fbf8;
  padding: 6px 8px;
  color: var(--teal);
  font-size: 0.84rem;
}
.faq-start-card.urgent .faq-start-links a {
  border-color: rgba(156, 54, 40, 0.24);
  background: #fffdf8;
  color: var(--red);
}
.faq-start-primary:hover,
.faq-start-links a:hover {
  filter: brightness(0.96);
}
.faq-category-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.faq-nav-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  background: var(--white);
  padding: 14px;
}
.faq-nav-card:nth-child(2) {
  border-left-color: #8a6a18;
}
.faq-nav-card:nth-child(3) {
  border-left-color: #6b6f99;
}
.faq-nav-card:nth-child(4) {
  border-left-color: var(--amber);
}
.faq-nav-card:nth-child(5) {
  border-left-color: var(--red);
}
.faq-nav-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  color: inherit;
  text-decoration: none;
}
.faq-nav-main span {
  grid-column: 1 / -1;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
}
.faq-nav-main strong {
  color: var(--deep);
  font-size: 1rem;
  line-height: 1.35;
}
.faq-nav-main small {
  align-self: start;
  border-radius: 999px;
  background: #f4f7f5;
  padding: 2px 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}
.faq-nav-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
}
.faq-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.faq-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(25, 102, 107, 0.2);
  border-radius: 999px;
  background: #f3fbf8;
  padding: 5px 9px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}
.faq-nav-main:hover strong,
.faq-nav-links a:hover {
  color: var(--deep);
}
.faq-filter-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  border: 1px solid rgba(25, 102, 107, 0.18);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  background: #f7faf8;
  padding: 16px;
}
.faq-filter-search {
  display: grid;
  gap: 8px;
  color: var(--deep);
  font-weight: 800;
}
.faq-filter-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
}
.faq-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-filter-row button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--deep);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}
.faq-filter-row button[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}
.faq-filter-row button[data-faq-clear] {
  color: var(--muted);
}
.faq-filter-count,
.faq-filter-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}
.faq-filter-empty {
  border-left: 4px solid var(--amber);
  background: #fffdf8;
  padding: 10px 12px;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-category-list {
  display: grid;
  gap: 20px;
}
.faq-category {
  display: grid;
  gap: 10px;
}
.faq-category h3 {
  margin: 0;
  color: var(--deep);
  font-size: 1.08rem;
  line-height: 1.4;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 14px 16px;
}
.faq-item summary {
  min-height: 44px;
  padding-block: 8px;
  cursor: pointer;
  color: var(--deep);
  font-weight: 800;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker {
  color: var(--muted);
}
.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}
.faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(25, 102, 107, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  background: #f3fbf8;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}
.faq-links a:hover {
  border-color: var(--teal);
}
.tool-panel {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--amber);
  border-radius: 12px;
  background: var(--white);
  padding: 22px;
}
.attack-log-article {
  max-width: 900px;
}
.attack-log-article .article-meta {
  margin-bottom: 14px;
}
.attack-log-article .tool-panel {
  margin-top: 18px;
}
.attack-log-article .faq-section {
  margin-top: 34px;
}
.attack-log-notes {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.attack-log-notes .warning {
  margin-bottom: 22px;
}
.tool-panel.attack-log {
  border-left: 0;
  border-top: 4px solid var(--amber);
  padding: 24px;
}
.tool-panel h2 {
  margin: 0 0 10px;
  font-size: 1.24rem;
}
.tool-panel.attack-log > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
}
.tool-panel form {
  display: grid;
  gap: 18px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tool-panel label,
.tool-panel fieldset {
  display: grid;
  gap: 7px;
  color: var(--deep);
  font-weight: 800;
}
.tool-panel input,
.tool-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
}
.tool-panel fieldset {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0;
  padding: 14px;
}
.tool-panel legend {
  padding: 0 6px;
  color: var(--deep);
  font-weight: 800;
}
.tool-panel fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.tool-panel fieldset input {
  width: auto;
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tool-actions button {
  border: 1px solid var(--teal);
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  padding: 9px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.tool-actions button[type="reset"] {
  border-color: var(--line);
  background: #f7faf8;
  color: var(--deep);
}
.calendar-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf8;
  padding: 12px;
}
.calendar-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.calendar-panel-head strong {
  color: var(--deep);
  font-size: 1rem;
  font-weight: 800;
}
.calendar-panel-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.calendar-panel-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}
.calendar-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.calendar-actions button,
.reset-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--deep);
  padding: 11px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.calendar-actions button {
  display: grid;
  gap: 3px;
  justify-items: start;
  text-align: left;
  line-height: 1.35;
}
.calendar-actions .calendar-main {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}
.calendar-actions button strong {
  font-size: 0.98rem;
}
.calendar-actions button small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}
.calendar-actions .calendar-main small {
  color: rgba(255, 255, 255, 0.88);
}
.calendar-actions button[data-calendar-action="google"],
.calendar-actions button[data-calendar-action="copy"] {
  border-color: var(--line);
  background: var(--white);
  color: var(--deep);
}
@media (min-width: 760px) {
  .calendar-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.calendar-footer .tool-note {
  margin: 0;
  flex: 1 1 auto;
}
.reset-button {
  flex: 0 0 auto;
  min-height: 38px;
  background: #fff;
  color: var(--muted);
  padding: 7px 10px;
}
.tool-note,
.tool-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.tool-status {
  border-radius: 10px;
  background: var(--teal-soft);
  padding: 8px 10px;
  color: var(--deep);
}
.tool-status:empty {
  display: none;
}
.copy-output {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faf8;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.source-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.source-type-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(25, 102, 107, 0.16);
  border-radius: 12px;
  background: #f7faf8;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.source-type-card:hover {
  border-color: var(--teal);
}
.source-type-card span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}
.source-type-card strong {
  color: var(--deep);
  font-size: 1.35rem;
  line-height: 1.2;
}
.source-type-card small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
}
.source-group {
  scroll-margin-top: 94px;
}
.source-card {
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 18px;
}
.source-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.source-type {
  border-radius: 999px;
  background: var(--teal-soft);
  padding: 2px 8px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 800;
}
.source-card h3 {
  margin: 6px 0 8px;
  color: var(--deep);
  font-size: 1.08rem;
}
.source-card a {
  color: var(--teal);
  font-weight: 800;
}
.source-host,
.source-url {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}
.source-used {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.source-used > span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}
.source-used-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.source-used-list a {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf8;
  padding: 4px 9px;
  color: var(--teal);
  font-size: 0.86rem;
  text-decoration: none;
}
.search-results {
  display: grid;
  gap: 14px;
}
.search-result {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 18px;
  overflow-wrap: anywhere;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.search-result:hover {
  border-color: #c7d7d0;
  box-shadow: var(--shadow);
}
.search-result h2 {
  margin: 4px 0 8px;
  color: var(--deep);
  font-size: 1.12rem;
}
.search-result a {
  color: var(--teal);
  font-weight: 800;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.result-actions-label {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}
.result-actions a {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf8;
  padding: 5px 10px;
  color: var(--teal);
  font-size: 0.88rem;
  text-decoration: none;
}
.result-actions a:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.result-kind {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}
.result-summary {
  margin-bottom: 10px;
  color: var(--muted);
}
.result-snippet {
  margin: 12px 0 0;
  border-left: 4px solid var(--accent);
  background: #fffaf0;
  padding: 10px 12px;
  color: #384541;
  font-size: 0.94rem;
  line-height: 1.7;
}
.result-label {
  display: inline-flex;
  margin-right: 2px;
  border-radius: 999px;
  background: var(--teal-soft);
  padding: 1px 8px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 800;
}
.search-mark {
  border-radius: 3px;
  background: #f7d88f;
  color: inherit;
  padding: 0 0.12em;
}
.search-empty {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--amber);
  border-radius: 12px;
  background: #fffdf8;
  padding: 20px;
}
.search-empty h2 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 1.16rem;
}
.search-empty p {
  color: var(--muted);
}
.search-empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.search-empty-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 7px 12px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}
.update-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.update-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.update-type-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(25, 102, 107, 0.16);
  border-radius: 12px;
  background: #f7faf8;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.update-type-card:hover {
  border-color: var(--teal);
}
.update-type-card span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}
.update-type-card strong {
  color: var(--deep);
  font-size: 1.35rem;
  line-height: 1.2;
}
.update-type-card small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
}
.update-group {
  scroll-margin-top: 94px;
}
.update-card {
  display: grid;
  gap: 8px;
  min-height: 164px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 16px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.update-card:hover {
  border-color: var(--teal);
}
.update-meta,
.update-item-date {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}
.update-meta span,
.update-item-date span {
  border-radius: 999px;
  background: var(--teal-soft);
  padding: 1px 8px;
  color: var(--deep);
}
.update-card strong {
  color: var(--deep);
  font-size: 1rem;
  line-height: 1.4;
}
.update-card small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.update-list {
  display: grid;
  gap: 12px;
}
.update-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 18px;
  overflow-wrap: anywhere;
}
.update-item h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 1.12rem;
}
.update-item a {
  color: var(--teal);
  font-weight: 800;
}
.update-item p {
  color: var(--muted);
}
.update-detail {
  margin: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 800;
}
.source-list a {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-weight: 800;
  color: var(--teal);
}
.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.78);
  border-top: 3px solid var(--accent);
}
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}
.footer-inner a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 140ms ease;
}
.footer-inner a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 0.18em; }
@media (max-width: 820px) {
  .site-header {
    background: rgba(251, 251, 247, 0.98);
  }
  .nav {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
    gap: 10px;
    overflow: hidden;
  }
  .menu-js .nav {
    position: relative;
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
  }
  .menu-js .menu-toggle {
    display: inline-flex;
    border-color: #c8d5cf;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(18, 56, 50, 0.08);
  }
  .nav[data-menu-open="true"] .menu-toggle-icon span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
  }
  .nav[data-menu-open="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
  }
  .nav[data-menu-open="true"] .menu-toggle-icon span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    font-size: 0.88rem;
    scrollbar-width: none;
  }
  .menu-js .nav-links {
    position: fixed;
    top: 76px;
    left: 12px;
    right: auto;
    width: calc(100vw - 24px);
    z-index: 20;
    display: none;
    max-height: calc(100dvh - 102px);
    overflow-y: auto;
    overflow-x: hidden;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 9px;
    border: 1px solid rgba(18, 56, 50, 0.14);
    border-radius: 12px;
    background: rgba(251, 251, 247, 0.97);
    box-shadow: 0 22px 52px rgba(18, 56, 50, 0.24);
    padding: 14px;
    backdrop-filter: blur(18px);
    overscroll-behavior: contain;
  }
  .menu-js .nav[data-menu-open="true"] .nav-links {
    display: grid;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f7faf8;
    padding: 5px 10px;
  }
  .menu-js .nav-links a {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 58px;
    min-width: 0;
    border: 1px solid rgba(18, 56, 50, 0.12);
    border-radius: 12px;
    background: var(--white);
    padding: 11px 12px;
    color: #1d2926;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 5px 16px rgba(18, 56, 50, 0.06);
  }
  .menu-js .nav-links a > span {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
  }
  .menu-js .nav-links a > span::after {
    content: ">";
    color: #8a9691;
    font-size: 0.82rem;
    font-weight: 800;
  }
  .menu-js .nav-links a small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
  }
  .menu-panel-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 0;
    color: var(--deep);
  }
  .menu-panel-head strong {
    font-size: 1.04rem;
    font-weight: 800;
  }
  .menu-panel-head span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
  }
  .menu-section-label {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: #51615d;
    font-size: 0.74rem;
    font-weight: 800;
  }
  .menu-section-label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(23, 33, 31, 0.08);
  }
  .menu-section-label.secondary-label {
    margin-top: 6px;
  }
  .menu-js .nav-links .desktop-only-link,
  .menu-js .nav-links .desktop-search-link {
    display: none;
  }
  .menu-js .nav-links .mobile-only-link {
    display: grid;
  }
  .menu-js .nav-links .secondary-link {
    display: grid;
    min-height: 52px;
    background: #ffffff;
  }
  .menu-js .nav-links .menu-search-card {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    min-height: 66px;
    border-color: rgba(25, 102, 107, 0.28);
    background: linear-gradient(135deg, var(--teal), var(--deep));
    color: var(--white);
    box-shadow: 0 12px 28px rgba(18, 56, 50, 0.16);
  }
  .menu-js .nav-links .menu-search-card small,
  .menu-js .nav-links .menu-search-card > span::after {
    color: rgba(255, 255, 255, 0.76);
  }
  .menu-priority-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .menu-js .nav-links .menu-priority-card {
    display: grid;
    min-height: 68px;
    border-color: rgba(25, 102, 107, 0.18);
    background: #ffffff;
    box-shadow: none;
  }
  .menu-js .nav-links .menu-priority-card > span {
    font-size: 0.9rem;
  }
  .menu-js .nav-links .menu-priority-card small {
    color: #5d6b67;
    font-size: 0.7rem;
    line-height: 1.45;
  }
  .menu-js .nav-links .menu-priority-card.urgent-card {
    grid-column: auto;
    min-height: 68px;
    border-left: 5px solid var(--red);
    background: linear-gradient(135deg, var(--red-soft) 0%, #ffffff 100%);
    color: #44211d;
  }
  .menu-js .nav-links .menu-priority-card.urgent-card small {
    color: #76504b;
  }
  .menu-js .nav-links .menu-priority-card.care-card {
    border-left: 5px solid #8a6a18;
    background: #fffdf8;
  }
  .menu-js .nav-links a:hover {
    color: var(--deep);
  }
  .menu-js .nav-links .start-link {
    min-height: 62px;
    border-color: rgba(25, 102, 107, 0.24);
    background: #f2faf7;
    color: var(--deep);
  }
  .menu-js .nav-links .start-link small {
    color: #566863;
  }
  .menu-js .nav-links a[aria-current="page"] {
    border-color: var(--teal);
    background: var(--teal-soft);
    color: var(--deep);
    box-shadow: none;
  }
  .menu-js .nav-links .start-link[aria-current="page"] {
    background: #f2faf7;
    color: var(--deep);
  }
  .menu-js .nav-links .danger-link {
    grid-column: 1 / -1;
    min-height: 62px;
    border-color: rgba(141, 47, 36, 0.26);
    border-left: 5px solid var(--red);
    background: var(--red-soft);
    color: #44211d;
  }
  .menu-js .nav-links .danger-link small {
    color: #76504b;
  }
  .menu-js .nav-links .symptom-link {
    border-left: 4px solid var(--teal);
  }
  .menu-js .nav-links .care-link {
    border-left: 4px solid #8a6a18;
    background: #fffdf8;
  }
  .menu-js .nav-links .treatment-link {
    border-left: 4px solid #6b6f99;
    background: #fbfbff;
  }
  .menu-js .nav-links .search-link {
    border-color: rgba(25, 102, 107, 0.3);
    background: #f3fbf8;
  }
  .page-hero-image {
    object-position: 64% center;
  }
  .home-hero .page-hero-inner,
  .page-hero-inner { padding: 46px 0 32px; }
  .page-hero h1 { font-size: 2rem; }
  .section, .article { padding: 34px 0; }
  .section-head, .subsection-head, .priority-panel, .home-concern-panel, .home-concern-list, .trust-panel, .site-check-panel, .site-check-grid, .summary-grid, .guide-answer-panel, .guide-summary, .guide-shortcut-list, .guide-action-strip, .paper-route-panel, .guide-route-panel, .faq-route-panel, .grid, .grid.two, .route-grid, .tag-grid, .related-grid, .next-action-grid, .tool-grid, .tool-panel fieldset, .source-overview, .source-grid, .update-overview, .update-strip, .update-item, .guide-intent-map, .faq-start-head, .faq-start-grid, .faq-category-nav, .search-intent-groups, .start-flow-grid, .start-intent-grid { grid-template-columns: 1fr; }
  .query-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .priority-panel {
    gap: 16px;
    padding: 18px;
  }
  .trust-panel {
    gap: 16px;
    padding: 18px;
  }
  .site-check-panel {
    padding: 16px;
  }
  .priority-panel a,
  .hero-action {
    width: 100%;
    justify-content: center;
  }
  .route-card { min-height: auto; }
  .home-concern-card { min-height: auto; }
  .tag-card { min-height: auto; }
  .update-card { min-height: auto; }
  .next-actions {
    padding: 16px;
  }
  .faq-start-card {
    min-height: auto;
  }
  .guide-answer-panel {
    padding: 16px;
  }
  .guide-shortcuts {
    padding: 14px;
  }
  .guide-action-strip a {
    width: 100%;
  }
  .paper-route-panel,
  .guide-route-panel {
    padding: 16px;
  }
  .start-flow {
    padding: 16px;
  }
  .start-intent-panel {
    padding: 16px;
  }
  .next-action-card {
    padding: 13px 14px;
  }
  .next-action-card small {
    display: none;
  }
  .faq-route-actions {
    justify-content: stretch;
  }
  .faq-route-panel a {
    width: 100%;
  }
  .footer-inner {
    display: grid;
    gap: 10px;
  }
}
@media (max-width: 460px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .brand-name { font-size: 0.96rem; }
  .brand-sub { font-size: 0.64rem; }
  .page-hero h1 {
    font-size: 1.58rem;
    line-height: 1.32;
  }
  .page-hero p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .section h2 { font-size: 1.36rem; }
  .priority-panel h2 { font-size: 1.24rem; }
  .warning h2 { font-size: 1.24rem; }
  .breadcrumbs ol {
    flex-wrap: nowrap;
    gap: 5px;
  }
  .breadcrumbs li:last-child {
    max-width: 58vw;
  }
  .section,
  .article,
  .nav,
  .page-hero-inner,
  .breadcrumbs ol,
  .footer-inner {
    width: min(var(--max), calc(100% - 28px));
  }
  .card,
  .route-card,
  .index-guide-card,
  .guide-intent-group,
  .faq-start-panel,
  .faq-start-card,
  .faq-nav-card,
  .faq-filter-panel,
  .search-intent-group,
  .start-intent-panel,
  .start-intent-card,
  .priority-panel,
  .home-concern-panel,
  .home-concern-card,
  .trust-panel,
  .site-check-panel,
  .guide-answer-panel,
  .guide-summary,
  .guide-shortcuts,
  .guide-action-strip,
  .paper-route-panel,
  .guide-route-panel,
  .faq-route-panel,
  .article-summary,
  .source-card,
  .source-type-card,
  .update-type-card,
  .site-check-card,
  .search-result {
    padding: 16px;
  }
  .route-index {
    top: 12px;
    right: 14px;
    font-size: 0.96rem;
  }
  .search-suggestions {
    padding: 14px;
  }
  .search-suggestions-head {
    display: grid;
    gap: 3px;
  }
  .query-chip-grid {
    grid-template-columns: 1fr;
  }
  .query-chip {
    min-height: auto;
    padding: 13px;
  }
  .guide-intent-link {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .guide-intent-link small {
    grid-column: auto;
  }
  .home-concern-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .home-concern-card span {
    grid-row: auto;
    width: fit-content;
  }
  .start-flow-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .start-flow-step {
    grid-row: auto;
  }
  .article h2 {
    font-size: 1.32rem;
  }
  .calendar-panel-head,
  .calendar-footer {
    display: grid;
    gap: 6px;
  }
  .calendar-actions button[data-calendar-action="google"],
  .calendar-actions button[data-calendar-action="copy"] {
    white-space: normal;
  }
  .reset-button {
    width: fit-content;
  }
  .source-panel dl div { grid-template-columns: 1fr; gap: 2px; }
}
@media (min-width: 600px) and (max-width: 820px) {
  .home-concern-list,
  .grid, .grid.two, .grid.three,
  .route-grid, .related-grid, .next-action-grid, .tag-grid,
  .summary-grid, .guide-shortcut-list,
  .faq-start-grid, .start-flow-grid, .start-intent-grid,
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-actions { gap: 12px; }
  .hero-action,
  .priority-panel a {
    width: auto;
  }
}
@media print {
  .site-header,
  .site-footer,
  .article-nav,
  .next-actions,
  .breadcrumbs,
  .tool-actions,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .page-hero {
    background: #fff;
    color: #000;
    border-bottom: 1px solid #999;
  }
  .page-hero p { color: #333; }
  .article, .section {
    width: 100%;
    max-width: none;
    padding: 24px 0;
  }
  a { color: #000; }
}

/* --- typographic refinement: lighten secondary/description text --- */
.site-check-head p,
.site-check-card small,
.guide-intent-link small,
.search-suggestions-head small,
.guide-route-link small,
.start-flow-item small,
.start-intent-card small,
.faq-start-head p,
.faq-nav-main small,
.source-type-card small,
.update-type-card small,
.card-facts dd {
  font-weight: 500;
}

/* --- category/label chips must never wrap mid-character --- */
.card-eyebrow span,
.guide-route-link > span,
.guide-answer-link > span,
.next-action-card > span,
.start-intent-card > span,
.faq-start-card > span,
.faq-nav-main > span,
.index-guide-card > span,
.site-check-card > span,
.source-type-card > span,
.update-type-card > span,
.guide-shortcut > span,
.guide-action-strip > span,
.faq-route-panel > span,
.guide-intent-head span {
  white-space: nowrap;
}

/* === desktop header refinement === */
@media (min-width: 821px) {
  .site-header {
    background: rgba(252, 252, 250, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(150%) blur(18px);
    -webkit-backdrop-filter: saturate(150%) blur(18px);
  }
  .nav {
    min-height: 72px;
    gap: 20px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .brand-name { font-size: 1.05rem; }
  .brand-sub {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .nav-links {
    gap: 2px;
    font-size: 0.91rem;
    font-weight: 700;
  }
  /* remove the redundant second search entry on desktop */
  .nav-links .menu-search-card { display: none; }
  /* text nav links: comfortable hit area + soft hover pill */
  .nav-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #33453f;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
  }
  .nav-links a:hover {
    color: var(--teal);
    background: var(--soft);
  }
  /* current page */
  .nav-links a[aria-current="page"] {
    color: var(--deep);
    background: var(--teal-soft);
    box-shadow: none;
  }
  /* emergency: 危険サイン as a clear red button with a warning glyph */
  .nav-links a[href="/guides/emergency-signs/"] {
    gap: 5px;
    border: 1px solid rgba(156, 51, 38, 0.28);
    background: var(--red-soft);
    color: var(--red);
    font-weight: 800;
  }
  .nav-links a[href="/guides/emergency-signs/"]:hover {
    background: #fbe1da;
    color: var(--red);
    border-color: rgba(156, 51, 38, 0.46);
  }
  .nav-links a[href="/guides/emergency-signs/"]::before {
    content: "";
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.6l9.4 16.4H2.6z'/%3E%3Cline x1='12' y1='10' x2='12' y2='14'/%3E%3Cline x1='12' y1='17' x2='12' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.6l9.4 16.4H2.6z'/%3E%3Cline x1='12' y1='10' x2='12' y2='14'/%3E%3Cline x1='12' y1='17' x2='12' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* search: 検索 as an icon button */
  .nav-links a[href="/search/"] {
    gap: 6px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--deep);
    padding: 8px 14px;
    box-shadow: var(--shadow-sm);
  }
  .nav-links a[href="/search/"]:hover {
    color: var(--teal);
    background: var(--white);
    border-color: #cdddd4;
  }
  .nav-links a[href="/search/"]::before {
    content: "";
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* 発作メモ: surface the well-liked tool with a memo icon */
  .nav-links a[href="/guides/attack-log/"] {
    gap: 5px;
    border: 1px solid rgba(122, 74, 10, 0.24);
    background: var(--amber-soft);
    color: var(--amber);
    font-weight: 800;
  }
  .nav-links a[href="/guides/attack-log/"]:hover {
    background: #ffedcc;
    color: var(--amber);
    border-color: rgba(122, 74, 10, 0.42);
  }
  .nav-links a[href="/guides/attack-log/"]::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}
/* keep the desktop nav on one line in the narrow desktop band */
@media (min-width: 821px) and (max-width: 1010px) {
  .nav { gap: 10px; }
  .nav-links { font-size: 0.82rem; gap: 0; }
  .nav-links a { padding: 6px 8px; }
  .nav-links a[href="/search/"],
  .nav-links a[href="/guides/emergency-signs/"],
  .nav-links a[href="/guides/attack-log/"] { padding: 6px 9px; }
  .nav-links a[href="/search/"] > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .nav-links a[href="/search/"]::before {
    width: 17px;
    height: 17px;
  }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 0.98rem; }
  .brand-sub { display: none; }
}
/* extra-tight: drop 発作メモ label to icon-only just above the mobile breakpoint */
@media (min-width: 821px) and (max-width: 900px) {
  .nav-links a[href="/guides/attack-log/"] > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .nav-links a[href="/guides/attack-log/"]::before { width: 17px; height: 17px; }
}
