/* Shared shell and homepage refresh. Article/resource details have separate styles. */
:root {
  --cxv-navy: #142d44;
  --cxv-green: #14664a;
  --cxv-green-dark: #0c4d37;
  --cxv-ink: #263745;
  --cxv-muted: #586b78;
  --cxv-border: #dce5e9;
  --cxv-pale: #f3f7f9;
  --cxv-mint: #edf6f0;
  --cxv-white: #fff;
  --cxv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --c-bg: var(--cxv-white);
  --c-bg2: var(--cxv-pale);
  --c-bg3: #e7eef1;
  --c-text: var(--cxv-ink);
  --c-text2: var(--cxv-muted);
  --c-text3: #637580;
  --c-acc: var(--cxv-green);
  --c-acc-dim: var(--cxv-green-dark);
  --c-acc-l: var(--cxv-mint);
  --c-bdr: var(--cxv-border);
  --c-rule: var(--cxv-border);
  --f-sans: var(--cxv-font);
  --f-serif: var(--cxv-font);
}
html { scroll-padding-top: 92px; }
body { font-family: var(--cxv-font); }
.breadcrumb { flex-wrap: wrap; align-items: baseline; }
.breadcrumb > a { flex-shrink: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb > span:not(:last-child) { flex-shrink: 0; }
.breadcrumb > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cx-grain { display: none; }
.cxv-skip-link {
  position: fixed; z-index: 1200; top: 12px; left: 16px; transform: translateY(-180%);
  padding: 12px 18px; background: var(--cxv-navy); color: #fff; border-radius: 4px;
}
.cxv-skip-link:focus { transform: translateY(0); }
.cxv-header a:focus-visible, .cxv-header button:focus-visible,
.cxv-footer a:focus-visible, .cxv-home a:focus-visible {
  outline: 3px solid var(--cxv-green); outline-offset: 4px;
}
.cxv-home[tabindex="-1"]:focus { outline: none; }
.cxv-header { background: #fff; border-bottom: 1px solid var(--cxv-border); }
.cxv-header .header-inner {
  max-width: 1200px; height: 76px; padding: 0 32px; gap: 28px;
}
.cxv-header .site-logo { color: var(--cxv-navy); font-family: var(--cxv-font); font-size: 20px; letter-spacing: 0; flex-shrink: 1; min-width: 0; }
.cxv-header .cxv-brand-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cxv-header .site-logo-mark { width: 26px; height: 26px; flex-shrink: 0; }
.cxv-header .header-nav { gap: 22px; flex-shrink: 0; }
.cxv-header .gnav { gap: 24px; }
.cxv-header .gnav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cxv-ink); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.cxv-header .gnav a:hover, .cxv-header .gnav a.current { color: var(--cxv-green); text-decoration: underline; text-underline-offset: 6px; }
.cxv-header .cxv-secondary-nav a { font-size: 12px; font-weight: 400; color: var(--cxv-muted); }
.cxv-header .search-toggle { width: 44px; height: 44px; border: 1px solid var(--cxv-border); border-radius: 50%; color: var(--cxv-navy); padding: 0; flex-shrink: 0; }
.cxv-header .header-search { background: #fff; border-bottom: 1px solid var(--cxv-border); padding: 22px 32px; }
.cxv-header .header-search-inner { max-width: 1136px; }
.cxv-header .search-form .search-field { border-radius: 4px; font-family: var(--cxv-font); min-height: 48px; }
.cxv-header .search-form .search-field:focus-visible { outline: 3px solid var(--cxv-green); outline-offset: 2px; }
.cxv-header .search-form .search-submit { border-radius: 4px; min-height: 48px; font-family: var(--cxv-font); }
.cxv-header .nav-toggle { display: none; }

.cxv-home { color: var(--cxv-ink); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.cxv-home h1, .cxv-home h2, .cxv-home h3 { color: var(--cxv-navy); font-family: var(--cxv-font); font-weight: 700; letter-spacing: -.02em; }
.cxv-container { max-width: 1200px; padding: 0 32px; margin: 0 auto; }
.cxv-home-hero { padding: 76px 0 70px; border-bottom: 1px solid var(--cxv-border); }
.cxv-hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 58px; align-items: center; }
.cxv-home .cxv-eyebrow { color: var(--cxv-green); font-size: 13px; font-weight: 700; line-height: 1.65; margin: 0 0 16px; }
.cxv-home h1 { font-size: clamp(36px, 4.5vw, 55px); line-height: 1.35; margin: 0 0 26px; }
.cxv-hero-lead { color: var(--cxv-muted); font-size: 16px; line-height: 2; margin: 0 0 30px; }
.cxv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.cxv-home .cxv-button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 14px 24px; min-height: 50px; border: 1px solid var(--cxv-green); border-radius: 4px; background: var(--cxv-green); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.65; text-decoration: none; transition: background .15s; }
.cxv-home .cxv-button:hover { background: var(--cxv-green-dark); border-color: var(--cxv-green-dark); }
.cxv-home .cxv-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cxv-green); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.cxv-hero-note { font-size: 12px; color: var(--cxv-muted); margin: 17px 0 0; }
.cxv-home-section { padding: 60px 0; border-bottom: 1px solid var(--cxv-border); }
.cxv-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.cxv-section-heading > div { min-width: 0; }
.cxv-section-heading .cxv-eyebrow { margin-bottom: 8px; }
.cxv-home .cxv-section-heading h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.5; margin: 0; }
.cxv-section-heading > p { color: var(--cxv-muted); font-size: 14px; line-height: 1.9; max-width: 440px; margin: 0; }
.cxv-section-heading > a { flex-shrink: 0; }
.cxv-topic-grid, .cxv-latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cxv-topic-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--cxv-border); border-radius: 4px; background: #fff; transition: border-color .15s; }
.cxv-topic-card:hover { border-color: var(--cxv-green); }
.cxv-topic-label { display: block; color: var(--cxv-green); font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.cxv-home .cxv-topic-card h3 { font-size: 18px; line-height: 1.7; margin: 0 0 14px; }
.cxv-topic-card p { margin: 0 0 24px; color: var(--cxv-muted); font-size: 13px; }
.cxv-card-action { display: block; color: var(--cxv-green); font-size: 13px; font-weight: 700; margin-top: auto; }
.cxv-latest-section { background: var(--cxv-pale); }
.cxv-latest-card { border: 1px solid var(--cxv-border); background: #fff; border-radius: 4px; overflow: hidden; }
.cxv-latest-link { display: flex; flex-direction: column; height: 100%; }
.cxv-home .cxv-latest-card .art-thumb { aspect-ratio: 16 / 9; width: 100%; height: auto; overflow: hidden; background: #e7eef1; border-bottom: 1px solid var(--cxv-border); }
.cxv-home .cxv-latest-card .art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cxv-home .cxv-latest-card .art-thumb--no-img { display: flex; align-items: center; justify-content: center; font-family: var(--cxv-font); color: var(--cxv-muted); }
.cxv-latest-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.cxv-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--cxv-muted); font-size: 11px; margin-bottom: 12px; }
.cxv-article-meta > span { color: var(--cxv-green); }
.cxv-home .cxv-latest-card h3 { font-size: 18px; line-height: 1.65; margin: 0 0 12px; }
.cxv-latest-body > p { font-size: 13px; color: var(--cxv-muted); margin: 0 0 18px; }
.cxv-latest-link:hover h3 { color: var(--cxv-green); text-decoration: underline; text-underline-offset: 4px; }
.cxv-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cxv-resource-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; border: 1px solid var(--cxv-border); border-radius: 4px; }
.cxv-resource-card:hover { border-color: var(--cxv-green); }
.cxv-home .cxv-resource-card h3 { font-size: 18px; line-height: 1.65; margin: 0; }
.cxv-resource-card .cxv-topic-label { margin-bottom: 8px; }
.cxv-resource-card .cxv-card-action { flex-shrink: 0; margin: 0; }
.cxv-empty { color: var(--cxv-muted); font-size: 14px; }

.cxv-footer { background: var(--cxv-navy); color: #fff; padding: 42px 0 22px; border-top: 0; }
.cxv-footer .footer-inner { max-width: 1200px; padding: 0 32px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.cxv-footer .footer-logo { color: #fff; font-family: var(--cxv-font); font-size: 19px; font-weight: 700; letter-spacing: 0; }
.cxv-footer .footer-logo .site-logo-mark { width: 24px; height: 24px; }
.cxv-footer-brand > p { color: #d0dce4; font-size: 13px; line-height: 1.9; margin: 14px 0 0; }
.cxv-footer .footer-links { display: flex; flex-wrap: wrap; list-style: none; gap: 12px 24px; margin: 0; padding: 0; }
.cxv-footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--cxv-font); font-size: 13px; color: #fff; letter-spacing: 0; }
.cxv-footer .footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.cxv-footer .cxv-footer-bottom { margin-top: 34px; border-top: 1px solid #3b5165; padding-top: 18px; align-items: center; gap: 12px; }
.cxv-footer .footer-copy, .cxv-footer .footer-pp-link { color: #d0dce4; font-family: var(--cxv-font); font-size: 11px; margin: 0; }
.cxv-footer .footer-pp-link { text-decoration: underline; text-underline-offset: 3px; }
.cxv-footer a:focus-visible { outline-color: #fff; }

@media (max-width: 960px) {
  .cxv-header .header-inner { height: 68px; padding: 0 24px; }
  .cxv-header .header-nav { gap: 12px; }
  .cxv-header .gnav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; background: #fff; border-bottom: 1px solid var(--cxv-border); padding: 16px 24px 24px; box-shadow: 0 12px 16px rgba(20,45,68,.06); flex-direction: column; align-items: stretch; gap: 0; }
  .cxv-header.nav-open .gnav { display: flex; }
  .cxv-header .gnav a { display: flex; width: 100%; padding: 9px 0; min-height: 48px; font-size: 15px; border-bottom: 1px solid var(--cxv-border); }
  .cxv-header .cxv-secondary-nav a { font-size: 13px; border-bottom: 0; }
  .cxv-header .nav-toggle { display: inline-flex; width: 44px; height: 44px; border: 1px solid var(--cxv-border); border-radius: 4px; padding: 12px 10px; background: #fff; flex-direction: column; justify-content: space-between; cursor: pointer; }
  .cxv-header .nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--cxv-navy); transform: none; position: static; transition: transform .15s, opacity .15s; }
  .cxv-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .cxv-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .cxv-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .cxv-hero-grid { gap: 30px; }
  .cxv-home h1 { font-size: 39px; }
  .cxv-home-hero { padding: 56px 0; }
  .cxv-topic-grid, .cxv-latest-grid { gap: 16px; }
  .cxv-topic-card { padding: 20px; }
  .cxv-section-heading { align-items: flex-start; }
  .cxv-section-heading > p { max-width: 350px; }
  .cxv-footer .footer-links { gap: 4px 16px; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .cxv-container { padding: 0 22px; }
  .cxv-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cxv-home-hero { padding: 40px 0; }
  .cxv-home h1 { font-size: clamp(34px, 7vw, 44px); margin-bottom: 20px; }
  .cxv-hero-lead { font-size: 15px; margin-bottom: 22px; }
  .cxv-desktop-break { display: none; }
  .cxv-home-section { padding: 40px 0; }
  .cxv-section-heading { flex-direction: column; gap: 14px; margin-bottom: 24px; }
  .cxv-section-heading > p { max-width: none; }
  .cxv-topic-grid, .cxv-latest-grid, .cxv-resource-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cxv-resource-card { padding: 20px; }
  .cxv-footer .footer-inner { padding: 0 22px; flex-direction: column; gap: 20px; }
  .cxv-footer .footer-links { justify-content: flex-start; gap: 4px 22px; }
  .cxv-footer .cxv-footer-bottom { padding-top: 18px; margin-top: 24px; gap: 8px; align-items: flex-start; }
}
@media (max-width: 420px) {
  .cxv-header .header-inner { padding: 0 16px; gap: 12px; }
  .cxv-header .site-logo { font-size: 17px; gap: 6px; }
  .cxv-header .site-logo-mark { width: 23px; height: 23px; }
  .cxv-header .header-nav { gap: 8px; }
  .cxv-header .header-search { padding: 16px; }
  .cxv-container { padding: 0 18px; }
  .cxv-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .cxv-actions .cxv-text-link { align-self: flex-start; }
  .cxv-resource-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cxv-home *, .cxv-header * { transition: none !important; }
}
@media print {
  .cxv-header, .cxv-footer, .cxv-skip-link { display: none; }
  .cxv-home-hero, .cxv-home-section { padding: 24px 0; }
  .cxv-hero-grid, .cxv-topic-grid, .cxv-latest-grid { display: block; }
  .cxv-latest-card, .cxv-topic-card { break-inside: avoid; margin-bottom: 16px; }
}

/* Diagnosis landing: availability belongs to each tool, not the whole section. */
.cxv-diagnosis { padding: 58px 0 64px; color: var(--cxv-ink); overflow-wrap: anywhere; }
.cxv-diagnosis-heading { max-width: 740px; margin-bottom: 34px; }
.cxv-diagnosis-eyebrow { font-size: 13px; font-weight: 700; color: var(--cxv-green); margin: 0 0 12px; }
.cxv-diagnosis h1 { font-family: var(--cxv-font); color: var(--cxv-navy); font-size: clamp(28px, 4vw, 38px); line-height: 1.45; margin: 0 0 18px; }
.cxv-diagnosis-heading > p:last-child { font-size: 16px; line-height: 1.9; color: var(--cxv-muted); }
.cxv-diagnosis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cxv-diagnosis-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--cxv-border); border-radius: 4px; background: var(--cxv-pale); }
.cxv-diagnosis-card--live { background: #fff; border-top: 3px solid var(--cxv-green); padding-top: 24px; }
.cxv-diagnosis-status { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--cxv-muted); background: #e7eef1; padding: 4px 10px; margin-bottom: 20px; border-radius: 3px; }
.cxv-diagnosis-status--live { color: var(--cxv-green); background: var(--cxv-mint); }
.cxv-diagnosis h2 { font-family: var(--cxv-font); color: var(--cxv-navy); font-size: 21px; line-height: 1.55; margin: 0 0 10px; }
.cxv-diagnosis-purpose { font-size: 12px; font-weight: 600; color: var(--cxv-green); margin: 0 0 16px; }
.cxv-diagnosis-card > p:not(.cxv-diagnosis-purpose) { font-size: 14px; line-height: 1.9; color: var(--cxv-muted); margin: 0 0 24px; }
.cxv-diagnosis-card .cxv-diagnosis-unavailable { margin: auto 0 0; padding-top: 22px; font-size: 12px; border-top: 1px solid var(--cxv-border); }
.cxv-diagnosis .cxv-diagnosis-start { margin-top: auto; padding: 13px 16px; font-size: 14px; letter-spacing: 0; line-height: 1.7; text-align: center; white-space: normal; border-radius: 4px; }
.cxv-diagnosis-note { color: var(--cxv-muted); font-size: 12px; line-height: 1.8; margin: 24px 0 0; }
.cxv-diagnosis-more { display: flex; flex-wrap: wrap; gap: 12px 28px; border-top: 1px solid var(--cxv-border); margin-top: 38px; padding-top: 24px; }
.cxv-diagnosis-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cxv-green); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.cxv-diagnosis a:focus-visible { outline: 3px solid var(--cxv-green); outline-offset: 4px; }
@media (max-width: 900px) {
  .cxv-diagnosis-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cxv-diagnosis-card { padding: 24px; }
  .cxv-diagnosis-card--live { padding-top: 22px; }
  .cxv-diagnosis-card .cxv-diagnosis-unavailable { margin-top: 0; }
}
@media (max-width: 600px) {
  .cxv-diagnosis { padding: 34px 0 44px; }
  .cxv-diagnosis-heading { margin-bottom: 24px; }
  .cxv-diagnosis-heading > p:last-child { font-size: 15px; }
  .cxv-diagnosis-card { padding: 22px; }
  .cxv-diagnosis-card--live { padding-top: 20px; }
  .cxv-diagnosis .cxv-diagnosis-start { width: 100%; }
}
