:root {
  --ink: #142234;
  --muted: #5d6a78;
  --paper: #f5f7f9;
  --white: #ffffff;
  --line: #d7dee5;
  --green: #155f8f;
  --green-dark: #0c2740;
  --green-soft: #eaf2f7;
  --lime: #69a9cf;
  --purple: #48677d;
  --purple-soft: #edf2f5;
  --shadow: 0 8px 24px rgba(15, 39, 62, .08);
}

html { scroll-behavior: auto; }
main > section[id] { scroll-margin-top: 84px; }
body { background: #f5f7f9; color: #142234; font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; font-size: 16px; }
.site-header { height: 72px; background: rgba(255,255,255,.98); border-bottom: 1px solid #d7dee5; backdrop-filter: none; }
.brand strong, .product-brand strong { letter-spacing: .03em; }
/* Keep header labels intact when the navigation and actions share a row. */
.site-header { gap: 16px; }
.site-header .brand, .site-header .header-actions { flex-shrink: 0; }
.site-header .desktop-nav { gap: clamp(12px, 1.4vw, 24px); flex-shrink: 0; }
.site-header a, .site-header button, .site-header .product-brand { white-space: nowrap; }
.site-header .header-actions { gap: 8px; }
@media (min-width: 981px) and (max-width: 1100px) {
  .site-header { gap: 10px; padding-inline: 16px; }
  .site-header .desktop-nav { gap: 10px; font-size: 12px; }
  .site-header .header-actions .button { padding-inline: 10px; font-size: 11px; }
}
@media (max-width: 680px) {
  .site-header { gap: 8px; padding-inline: 12px; overflow-x: auto; }
  .site-header .header-actions { gap: 6px; }
}
.vendor-logo { border-radius: 2px; box-shadow: none; }
.button, .auth-header-button, button, input, select, textarea { border-radius: 4px; }
.button { min-height: 44px; transition: background-color .15s, border-color .15s, color .15s; }
.button:hover, .grant-card:hover { transform: none; }
.button-primary { background: #155f8f; box-shadow: none; }
.button-primary:hover { background: #0c4266; box-shadow: none; }
.button-ghost { background: #fff; border: 1px solid #bcc8d2; }
.icon-button { border-radius: 4px; background: #fff; }

.self-service, .service-policy-summary, .self-result, .grant-card, .filter-bar,
.recommendation-card, .date-card, .dialog-shell, .auth-shell, .case-item,
.g-panel, .g-metric, dialog { border-radius: 6px !important; box-shadow: none !important; }
.self-service { margin-top: 24px; padding: 32px; background: #fff; border-color: #d7dee5; }
.self-service h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 650; letter-spacing: -.02em; }
.self-results { gap: 12px; }
.self-result { border-color: #d7dee5; padding: 22px; }
.service-policy-summary { border-left: 4px solid #155f8f; }
.service-policy-grid p { border-radius: 3px; background: #f4f7f9; }

.hero, .deadline-section, .detail-hero, .analysis-result-hero, .auth-brand-panel,
.cta-section { background: #0c2740; }
.hero:before, .hero-orb, .floating-note, .deadline-section:after,
.cta-section:before, .cta-section:after { display: none; }
.dashboard-card, .match-card { transform: none; border-radius: 5px; box-shadow: none; background: #fff; }
.industry-strip { background: #0c2740; }
.industry-strip button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.section-shell { padding-top: 76px; padding-bottom: 76px; }
.section-heading h2, .deadline-section h2, .how-section h2 { letter-spacing: -.02em; }
.eyebrow { font-family: inherit; letter-spacing: .11em; }
.filter-bar { border-color: #d7dee5; }
.grant-card { min-height: 310px; transition: border-color .15s; }
.grant-card:hover { border-color: #7593a9; box-shadow: none; }
.deadline-section { padding-top: 72px; padding-bottom: 72px; }
.date-card { border-left: 3px solid #69a9cf; }
.step-icon { width: 56px; height: 56px; border-radius: 4px; }
.cta-section { margin: 0; border-radius: 0 !important; padding: 48px 30px; text-align: left; }
.cta-section > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.cta-section .button { margin-top: 8px; }
footer { background: #fff; }
.brand-mark { border-radius: 3px; transform: none; }

.auth-brand-panel { background: #0c2740; }
.auth-tabs, .recommendation-score-row, .case-analysis-status { border-radius: 4px; }
.auth-tabs button.active { box-shadow: none; }
:is(.v25-shell, .auth-dialog) :is(button, label, small, p) { font-size: 12px !important; }

.g-header { background: #fff; border-bottom-color: #d7dee5; }
.g-primary { background: #155f8f; border-color: #155f8f; }
.g-primary:hover { background: #0c4266; }
.g-eyebrow { color: #155f8f; font-family: inherit; letter-spacing: .1em; }
.g-tabs button.active, .g-notice { background: #0c2740; }
.g-boundary { background: #eef3f6; border-left-color: #155f8f; }
.g-badge, .live-chip, .status, .urgency { border-radius: 3px; }

@media (max-width: 760px) {
  .site-header { height: auto; min-height: 64px; }
  .self-service { margin: 12px; padding: 22px; }
  .section-shell { padding-top: 52px; padding-bottom: 52px; }
  .deadline-section, .cta-section { padding: 48px 20px; }
}
