/* CDAGI 2026-09-17: shared front-office and administration design standard.
   Reference: CDAGI官網設計/版本/{字體資料/字體.json,色調資料/核心配色.css}.
   Load after component CSS. Keep official CSS snapshots out of this project:
   they contain unrelated page selectors and embedded branding artwork. */
:root {
  --site-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-sans: var(--site-font);
  --ink: #203b53; --muted: #536e83; --blue: #1263a7; --line: #d4e3ec;
  --wash: #f3f8fb; --white: #fff;
  --site-sky: radial-gradient(circle at 78% 18%,rgba(140,211,241,.38),transparent 32%),linear-gradient(90deg,#fff 0 39%,#f4fbff 56%,#d8effb 100%);
  --site-sky-base: #f4fbff;
  --site-surface: rgba(255,255,255,.38); --site-surface-hover: rgba(255,255,255,.62);
  --midnight: var(--ink); --midnight-soft: #325f7f;
  --sky-dark: var(--blue); --sky-soft: #edf5fb;
  --green: var(--blue); --green-dark: #1c557c; --green-soft: #edf5fb;
  --paper: var(--site-sky-base); --canvas: var(--site-sky-base);
  --color-title: var(--ink); --color-body: var(--muted); --color-muted: var(--muted); --color-border: var(--line);
  --workflow-blue: var(--blue); --workflow-blue-soft: #edf5fb;
  --workflow-ink: var(--ink); --workflow-border: var(--line);
  --type-hero: 3.25rem; --type-page: 2.5rem; --type-section: 2rem;
  --type-heading: 1.5rem; --type-subheading: 1.25rem; --type-lead: 1.25rem; --type-body: 1.125rem; --type-caption: 1rem; --type-legal: .875rem;
}
html:root { font-size: 16px !important; }
html body {
  font-family: var(--site-font) !important; font-size: var(--type-body) !important;
  line-height: 1.8; letter-spacing: normal; color: var(--ink);
  background: var(--site-sky) fixed; background-color: var(--site-sky-base);
  background-size: 100vw 100vh;
}
html body :is(button,input,select,textarea,pre) { font-family: var(--site-font) !important; }
html body :is(h1,h2,h3,h4,h5,h6) { color: var(--ink); font-weight: 700 !important; letter-spacing: .01em; }
html body h1 { font-size: var(--type-page) !important; line-height: 1.3 !important; }
html body h2 { font-size: var(--type-section) !important; line-height: 1.35 !important; }
html body h3 { font-size: var(--type-heading) !important; line-height: 1.4 !important; }
html body :is(h4,h5,h6) { font-size: var(--type-subheading) !important; line-height: 1.45 !important; }
html body .route-hero h1 { font-size: clamp(30px,3vw,43px) !important; line-height: 1.55 !important; letter-spacing: .02em; }
html body .route-hero h1 em { color: var(--blue); font-style: normal; }
html body :is(p,li) { font-size: var(--type-body); line-height: 1.7; }
html body :is(.hero-copy,.hero-description,.lead,.grant-description,.detail-section p,.self-result p,.g-panel p,.pw p) {
  font-size: var(--type-body) !important; line-height: 1.7 !important; color: var(--muted); font-weight: 400;
}
/* Keep dark workflow notices readable after the shared paragraph palette. */
html body .pw .pw-final-action p { color: #ffffff; }
html body :is(.desktop-nav,.g-header nav) { font-size: var(--type-body) !important; line-height: 1.8; font-weight: 600; }
html body :is(.desktop-nav a,.g-header nav a) { color: var(--ink); }
html body :is(.desktop-nav a:hover,.desktop-nav a:focus-visible,.text-link,.route-hero .text-link) { color: var(--blue); }
html body :is(button,.button,.btn,.text-link) { font-size: var(--type-body) !important; font-weight: 700; line-height: 1.4; }
html body :is(.button-small,.g-queue-item button,.g-case-item button,.g-detail-row button) { font-size: 14px !important; }
html body :is(.desktop-nav .button,.g-header nav .g-primary) { font-size: 20px !important; }
html body :is(.eyebrow,.g-eyebrow) { font-size: 12px !important; line-height: 1.8; font-weight: 600; letter-spacing: 1.68px; color: var(--blue); }
html body .route-hero .eyebrow { font-size: 14px !important; font-weight: 700; letter-spacing: 1.12px; }
html body :is(label,.field-grid>label,.case-field-grid label,.g-form-grid label,.auth-form label) { font-size: var(--type-body) !important; line-height: 1.7; font-weight: 600; }
html body :is(input,select,textarea,.g-compact select) { font-size: var(--type-body) !important; line-height: 1.55; font-weight: 400; color: var(--ink); background-color: #fff; border-color: #bfd3e0; }
html body :is(input:not([type=checkbox]):not([type=radio]),select) { min-height: 48px; }
html body :is(input,textarea)::placeholder { color: var(--muted); opacity: 1; }
html body :is(small,.g-muted,.g-hint,.self-footnote,.grant-agency,.grant-verification,.customer-save-status,.timeline-item time) { font-size: var(--type-caption) !important; line-height: 1.65; }
html body :is(label small,.field small,.form-note,.g-upload small) { font-size: var(--type-legal) !important; line-height: 1.65; color: var(--muted); }
html body :is(.route-map strong,.matched-item strong,.g-item-top strong) { font-size: 22px !important; line-height: 1.5 !important; font-weight: 700; color: var(--ink); }
html body :is(.route-map small,.g-metric span,.g-metric small) { font-size: 14px !important; color: var(--muted); }
html body :is(.route-map p,.g-hint p,.g-boundary) { font-size: 16px !important; line-height: 1.8 !important; }
html body :is(.stats-table th,.stats-table td,.pw-table-wrap th,.pw-table-wrap td) { font-size: 16px !important; line-height: 1.8; }
html body :is(.g-badge,.status,.urgency,.tag-row span,.official-card-badge) { font-size: 14px !important; line-height: 1.8; }
html body :is(footer,.footer-links,.footer-links a) { font-size: 14px !important; line-height: 1.8; }
html body :is(.footer-bottom,.footer-bottom p,.brand-signoff-copyright,.g-shell~footer) { font-size: 12px !important; line-height: 1.8; color: var(--muted); }
/* The branded signoff remains an image; no font substitution or artwork scaling. */
html body :is(.site-header,.g-header) { background: rgba(255,255,255,.93); border-color: var(--line); }
html body .route-hero { background: var(--site-sky); }
html body :is(.cdagi-brand-band,.company-footer,.g-boundary:not(.warning)) { background: var(--site-surface); border-color: var(--line); }
html body :is(.cdagi-brand-band>span,.product-brand small,.g-muted,.g-heading p) { color: var(--muted); }
html body :is(.product-brand strong,.g-brand,.section-heading h2,.personalized-head h2) { color: var(--ink); }
html body :is(.grant-card,.recommendation-card,.date-card,.g-panel,.g-metric,.filter-bar,.self-service,.personalized-section,.dialog-shell,.auth-shell,dialog) { border-color: var(--line); background-color: #fff; color: var(--ink); }
html body :is(.button-primary,.route-hero .hero-actions .button-primary,.site-header .button-primary[data-start-match],.g-primary,.pw button.pw-primary) { background: var(--blue); border-color: var(--blue); color: #fff; }
html body :is(.button-primary,.g-primary,.pw button.pw-primary):hover { background: #1c557c; border-color: #1c557c; color: #fff; }
html body :is(.button-ghost,.auth-header-button) { color: var(--ink); border-color: #a9c8db; background: rgba(255,255,255,.65); }
html body :is(.button-ghost,.auth-header-button):hover { background: var(--site-surface-hover); color: var(--blue); }
html body :is(.g-tabs button.active,.g-tabs button[aria-selected=true]) { background: var(--blue); color: #fff; }
html body .route-map .is-current>button>span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 6px #edf5fb; }
html body .route-map .is-current strong { color: var(--blue); }
html body .g-metric { background: linear-gradient(140deg,#fff,#edf5fb); }
html body :is(.g-metric strong,.stats-duration) { color: var(--blue); }
html body .stats-track span { background: var(--blue); }
html body .stats-table th { background: #edf5fb; color: var(--ink); }
html body :is(button,a,summary,input,select,textarea):focus-visible { outline: 3px solid #3e8bbe; outline-offset: 3px; }
html body :is(input,select,textarea):focus { border-color: var(--blue); }
/* Fluid layout accommodates the official navigation and form sizes. */
html body :is(.site-header,.g-header,.header-actions,.g-heading,.g-section-head) { flex-wrap: wrap; }
html body .desktop-nav { flex-wrap: wrap; }
html body :is(.route-map li,.g-panel,.g-form-grid>label,.field-grid>label) { min-width: 0; }
html body :is(.route-map strong,button,.button) { white-space: normal; overflow-wrap: break-word; }
@media(max-width:1150px) { html body .route-hero h1 { font-size: 35px !important; } } @media(max-width:767px) { :root { --type-hero:2.25rem; --type-page:2rem; --type-section:1.75rem; --type-heading:1.375rem; --type-subheading:1.125rem; --type-lead:1.125rem; --type-body:1.125rem; --type-caption:1rem; } }
@media(max-width:720px) { html body .route-hero h1 { font-size: clamp(26px,6.2vw,34px) !important; } }
@media(max-width:580px) {
  :root { --type-body: 1.125rem; }
  html body :is(.hero-actions,.g-actions) { flex-wrap: wrap; }
  html body :is(button,.button) { min-height: 44px; }
  html body :is(.g-form-grid,.field-grid,.case-field-grid) { grid-template-columns: minmax(0,1fr); }
  html body .g-toolbar { flex-wrap: wrap; }
  html body .g-toolbar>label { width: 100%; min-width: 0; }
}
@media(max-width:380px) { html body .route-hero h1 { font-size: 25px !important; } }

/* Selection and detail surfaces shared by the customer questionnaires and workbench. */
html body :is(.cta-section>p,.industry-strip p,.detail-hero p,.detail-hero small,.route-assurance) { color: var(--muted); }
html body :is(.search-field,.select-field,.matched-item,.pw-note,.pw-metric,.v25-card,.case-item,.g-detail-row) { background: var(--wash); border-color: var(--line); }
html body :is(.detail-hero,.auth-brand-panel) { background: linear-gradient(130deg,#fff,#edf5fb); color: var(--ink); }
html body :is(.industry-strip span,.matched-rank,.matched-item>b,.pw-nav button[aria-selected=true]) { color: var(--blue); }
html body :is(.pw-nav,.matched-rank,.g-hint) { background: #edf5fb; }
html body #matchDialog :is(.option-grid button,.option-list button) { background: var(--wash); border-color: var(--line); color: var(--ink); font-size: 16px !important; }
html body #matchDialog :is(.option-grid button,.option-list button).selected { border-color: var(--blue); background: #edf5fb; box-shadow: inset 0 0 0 1px var(--blue); }
html body #matchDialog .option-grid button svg { stroke: var(--blue); }
html body :is(.dialog-close,.auth-close) { font-size: 28px !important; line-height: 1; }
html body .g-header nav .g-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
html body :is(.route-hero .hero-actions .button-primary,.site-header .button-primary[data-start-match]):hover { background: #1c557c; border-color: #1c557c; color: #fff; }

/* Shared layout rhythm and logo lockup, aligned with the official website. */
:root { --cdagi-content:1200px; --cdagi-gutter:48px; --cdagi-section-space:82px; --cdagi-logo-width:190px; --cdagi-header-height:94px; }
html body :is(.site-header,.g-header) {
  display:flex; align-items:center; gap:20px; width:100%; max-width:none;
  min-height:var(--cdagi-header-height); height:auto; margin:0;
  padding:12px max(var(--cdagi-gutter),calc((100% - var(--cdagi-content))/2));
  border:0; border-bottom:1px solid var(--line); border-radius:0;
  background:rgba(255,255,255,.93); box-shadow:none; backdrop-filter:blur(16px);
  position:sticky; top:0; z-index:30;
}
html body :is(.site-header .brand,.g-header .g-brand) {
  display:flex; align-items:center; flex:0 0 auto; min-width:0; gap:20px;
  margin:0; color:var(--ink); text-decoration:none;
}
html body :is(.site-header .brand,.g-header .g-brand) img.cdagi-header-logo {
  display:block; flex:0 0 auto; width:var(--cdagi-logo-width); height:auto;
  max-width:none; max-height:70px; object-fit:contain; padding:0; margin:0;
  border:0; border-radius:0; background:transparent; filter:none; transform:none;
}
html body :is(.site-header .product-brand,.g-header .g-brand>span) {
  display:block; border:0; border-left:1px solid var(--line); padding:0 0 0 20px; margin:0; font-size:20px !important; font-weight:700;
  line-height:1.4; letter-spacing:.02em; white-space:nowrap;
}
html body .site-header .product-brand strong { font-size:20px !important; line-height:1.4; letter-spacing:.02em; }
html body :is(.site-header .product-brand small,.g-header .g-brand small) {
  display:block; margin:4px 0 0; font-size:12px !important; font-weight:400;
  line-height:1.8; letter-spacing:normal; color:var(--muted);
}
html body :is(.desktop-nav,.g-header nav) { margin-left:auto; gap:20px; }
html body .header-actions { margin-left:0; gap:12px; }
html body .site-header.route-scrolled { border-radius:0; box-shadow:none; }
html body :is(.section-shell,.g-shell) {
  width:min(var(--cdagi-content),calc(100% - var(--cdagi-gutter)*2));
  max-width:var(--cdagi-content); margin-inline:auto; padding-inline:0;
}
html body .section-shell { padding-block:var(--cdagi-section-space); border-top:1px solid var(--line); }
html body .g-shell { padding-block:48px 64px; }
html body .route-hero {
  width:min(var(--cdagi-content),calc(100% - var(--cdagi-gutter)*2));
  max-width:var(--cdagi-content); margin:0 auto; padding:64px 0;
  border:0; border-radius:0; box-shadow:none; background:transparent;
}
html body .route-hero:before,html body .route-hero:after { display:none; }
html body .route-hero-top { align-items:flex-start; text-align:left; gap:28px; }
html body .route-hero .hero-content { max-width:780px; }
html body .route-hero .hero-actions { justify-content:flex-start; }
html body :is(.section-heading,.g-heading) { margin-bottom:32px; gap:24px; }
html body :is(.section-heading h2,.g-heading h1) { margin-bottom:12px; }
html body :is(.grant-card,.recommendation-card,.date-card,.g-panel,.g-metric,.filter-bar,.self-service,.personalized-section,.service-policy-summary,.self-result,.case-item,.g-detail-row,.pw-note,.v25-card) {
  border-radius:12px !important; border-color:var(--line); box-shadow:none !important; backdrop-filter:none;
}
html body :is(.grant-card,.recommendation-card,.date-card,.g-panel,.filter-bar) { padding:28px; }
html body :is(.grant-card,.recommendation-card):hover { border-color:#a9c8db; box-shadow:none !important; }
html body .grant-card:after { display:none; }
html body :is(.dialog-shell,.auth-shell,dialog) { border-radius:16px !important; }
html body :is(.button,.auth-header-button,.g-panel button,.g-tabs button) { border-radius:8px; }
html body :is(.g-desk-grid,.g-form-grid,.self-results) { gap:24px; }
html body .g-metrics { gap:20px; }
html body .g-section-head { border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:24px; }
html body .g-support-panel { margin-bottom:24px; }
html body .g-tabs { margin-block:28px 24px; padding-bottom:12px; }
html body .route-map {
  margin-top:40px; padding:28px 0; border:0; border-top:1px solid var(--line);
  border-bottom:1px solid var(--line); border-radius:0; background:transparent;
  box-shadow:none; backdrop-filter:none;
}
html body .route-map li { border-radius:8px; border:1px solid var(--line); box-shadow:none; background:var(--site-surface); backdrop-filter:none; }
html body .route-map li:hover { box-shadow:none; }
html body .route-map .is-current { background:#fff; border-color:#a9c8db; box-shadow:none; }
html body :is(.deadline-section,.cta-section) {
  width:100%; max-width:none; margin:0; padding:var(--cdagi-section-space) max(var(--cdagi-gutter),calc((100% - var(--cdagi-content))/2));
  border:0; border-top:1px solid var(--line); border-radius:0; box-shadow:none; background:var(--site-surface);
}
html body .brand-signoff-inner { max-width:var(--cdagi-content); }
@media(max-width:1150px) { :root { --cdagi-gutter:32px; --cdagi-logo-width:165px; } }
@media(max-width:980px) {
  :root { --cdagi-header-height:78px; --cdagi-section-space:64px; }
  html body :is(.site-header,.g-header) { gap:16px; }
  html body :is(.desktop-nav,.g-header nav) { gap:14px; }
}
@media(max-width:720px) {
  :root { --cdagi-gutter:20px; --cdagi-logo-width:153px; --cdagi-header-height:74px; --cdagi-section-space:50px; }
  html body :is(.site-header,.g-header) { position:relative; padding-block:12px; gap:16px; }
  html body :is(.site-header .brand,.g-header .g-brand) { gap:14px; }
  html body :is(.site-header .product-brand,.g-header .g-brand>span) { padding-left:14px; }
  html body :is(.site-header .brand,.g-header .g-brand) img.cdagi-header-logo { max-height:54px; }
  html body :is(.g-header nav,.header-actions) { margin-left:0; flex-wrap:wrap; }
  html body .route-hero { padding-block:36px; }
  html body .g-shell { padding-block:32px 48px; }
  html body :is(.grant-card,.recommendation-card,.date-card,.g-panel,.filter-bar) { padding:20px; }
  html body :is(.section-heading,.g-heading) { margin-bottom:24px; }
  html body .g-section-head { padding-bottom:16px; margin-bottom:20px; }
}
@media(max-width:380px) { :root { --cdagi-gutter:16px; } }

/* Homepage reference: single logo, right-aligned navigation, one shared baseline.
   Explicit child selectors override legacy 500-weight navigation and independent
   auto margins on logged-out / logged-in action groups. */
html body .site-header,
html body .g-header {
  justify-content:flex-start;
  column-gap:24px;
  background:var(--site-surface);
}
html body .site-header {
  min-height:82px;
  padding:8px 28px;
}
html body .site-header .product-brand,
html body .g-header .g-brand>span { display:none !important; }
html body .site-header .brand,
html body .g-header .g-brand { min-width:0; gap:0; }
html body .site-header .desktop-nav,
html body .g-header nav {
  display:flex; align-items:center; justify-content:flex-end;
  flex:0 1 auto; margin:0 0 0 auto; padding:0; gap:24px;
  font-family:var(--site-font) !important;
  font-size:20px !important; font-weight:600; line-height:1.8;
  letter-spacing:normal;
}
html body .site-header .desktop-nav>a,
html body .g-header nav>a,
html body .g-header nav>button {
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--site-font) !important;
  font-size:20px !important; font-weight:600 !important;
  line-height:1.8; letter-spacing:normal; white-space:nowrap;
  padding:12px 0; margin:0; min-height:60px;
  border:0; border-radius:0; background:transparent;
  color:var(--ink); box-shadow:none; text-align:center;
}
html body .site-header .desktop-nav>a:hover,
html body .g-header nav>a:hover,
html body .g-header nav>button:hover { color:var(--blue); background:transparent; }
html body .site-header .desktop-nav>a:after { bottom:5px; background:var(--blue); }
html body .site-header .header-actions {
  display:flex; align-items:center; justify-content:flex-end;
  flex:0 1 auto; margin:0; padding:0; gap:12px;
}
html body .site-header .header-actions :is(.button,.auth-header-button),
html body .g-header>button {
  display:inline-flex; align-items:center; justify-content:center;
  width:auto; max-width:none; min-height:54px; height:auto;
  padding:12px 24px; margin:0;
  font-family:var(--site-font) !important;
  font-size:var(--type-body) !important; font-weight:700 !important;
  line-height:1.4; letter-spacing:normal; white-space:nowrap;
  border:1px solid var(--line); border-radius:6px;
  box-shadow:none; text-align:center; transform:none;
}
html body .site-header .header-actions .button-primary {
  background:var(--blue); border-color:var(--blue); color:#fff;
  border-radius:6px; box-shadow:none;
}
html body .site-header .header-actions .button-primary:hover {
  background:#0e568f; border-color:#0e568f; color:#fff; box-shadow:none;
}
html body .site-header .header-actions .auth-header-button {
  background:rgba(255,255,255,.65); border-color:#a9c8db; color:var(--ink);
  font-weight:600 !important;
}
html body .site-header .header-actions .auth-header-button:hover { color:var(--blue); background:var(--site-surface-hover); }
html body .g-header>button[hidden] { display:none; }
html body :is(.section-heading.centered,.centered-copy,.cta-section,.deadline-copy,.g-heading,.g-section-head) { text-align:left; }
html body :is(.section-heading.centered,.cta-section) :is(.eyebrow,.hero-actions) { justify-content:flex-start; }
@media(min-width:981px) {
  html body .site-header,html body .g-header { flex-wrap:nowrap; }
  html body.customer-authenticated .site-header { flex-wrap:nowrap; }
  html body.customer-authenticated .site-header .header-actions { flex-basis:auto; }
}
@media(min-width:981px) and (max-width:1200px) {
  html body .site-header,html body .g-header { column-gap:16px; }
  html body .site-header .desktop-nav,html body .g-header nav { gap:16px; }
  html body .site-header .header-actions :is(.button,.auth-header-button) { padding-inline:18px; }
}
@media(max-width:980px) {
  html body .site-header,html body .g-header { flex-wrap:wrap; row-gap:8px; }
  html body .site-header .header-actions { margin-left:auto; }
  html body .site-header .desktop-nav,html body .g-header nav {
    order:2; flex:1 0 100%; justify-content:flex-start;
    margin:0; gap:8px 24px; flex-wrap:wrap;
    padding-top:8px; border-top:1px solid var(--line);
  }
  html body .site-header .desktop-nav>a,html body .g-header nav>a,html body .g-header nav>button { min-height:48px; padding-block:6px; }
}
@media(max-width:720px) {
  html body .site-header { padding-inline:20px; }
}
@media(max-width:580px) {
  html body .site-header .header-actions :is(.button,.auth-header-button),html body .g-header>button {
    min-height:48px; padding:10px 14px; font-size:18px !important;
  }
  html body .site-header .header-actions .button[data-start-match] { display:none; }
  html body .site-header .desktop-nav,html body .g-header nav { gap:8px 20px; }
  html body .site-header .desktop-nav>a,html body .g-header nav>a,html body .g-header nav>button { font-size:18px !important; }
}


/* 2026-09-23: official CDAGI header structure for the subsidy workspace. */
html body .site-header {
  width:100%;
  min-height:94px;
  height:auto;
  padding:0 !important;
  margin:0;
  background:linear-gradient(90deg,#fff 0 42%,#f4fbff 62%,#dceff9 100%);
  border:0;
  border-bottom:1px solid var(--line);
  box-shadow:none;
}
html body .site-header .site-header-inner {
  width:min(1200px,calc(100% - 40px));
  min-height:94px;
  margin:0 auto;
  padding:0;
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:24px;
}
html body .site-header .brand {
  display:flex;
  align-items:center;
  flex:0 0 auto;
  min-width:0;
  margin:0;
}
html body .site-header .brand .cdagi-header-logo {
  display:block;
  width:190px;
  height:auto;
  max-width:none;
  max-height:68px;
  object-fit:contain;
}
html body .site-header .product-brand { display:none !important; }
html body .site-header .desktop-nav {
  display:flex !important;
  align-items:center;
  justify-content:flex-end;
  flex:0 1 auto;
  margin:0 0 0 auto;
  padding:0;
  gap:28px;
  border:0;
}
html body .site-header .desktop-nav>a {
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:70px;
  padding:10px 0;
  font-family:var(--site-font) !important;
  font-size:18px !important;
  font-weight:600 !important;
  line-height:1.4;
  color:var(--ink);
  white-space:nowrap;
}
html body .site-header .desktop-nav>a:after {
  content:"";
  position:absolute;
  left:50%;
  right:50%;
  bottom:4px;
  height:2px;
  background:var(--blue);
  transition:left .18s ease,right .18s ease;
}
html body .site-header .desktop-nav>a:hover:after,
html body .site-header .desktop-nav>a:focus-visible:after,
html body.customer-authenticated .site-header .desktop-nav>a[href="#application-route"]:after {
  left:0;
  right:0;
}
html body .site-header .header-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 0 auto;
  min-width:0;
  margin:0;
  padding:0;
  gap:12px;
}
html body .site-header .auth-company-name {
  max-width:220px;
  overflow:hidden;
  font-family:var(--site-font) !important;
  font-size:18px !important;
  font-weight:600 !important;
  line-height:1.4;
  letter-spacing:.01em;
  color:var(--ink);
  text-overflow:ellipsis;
  white-space:nowrap;
}
html body .site-header .auth-header-button,
html body .site-header .header-actions .button {
  min-height:54px;
  height:auto;
  padding:12px 22px;
  border-radius:6px;
  font-family:var(--site-font) !important;
  font-size:18px !important;
  font-weight:700 !important;
  line-height:1.4;
  white-space:nowrap;
}
html body .site-header .auth-header-button.logged-in {
  color:#fff;
  background:var(--blue);
  border-color:var(--blue);
}
html body .site-header .auth-header-button.logged-in:hover {
  color:#fff;
  background:#0e568f;
  border-color:#0e568f;
}
@media(max-width:1120px) {
  html body .site-header .site-header-inner { gap:16px; }
  html body .site-header .desktop-nav { gap:18px; }
  html body .site-header .desktop-nav>a { font-size:16px !important; }
  html body .site-header .auth-company-name { max-width:180px; font-size:16px !important; }
  html body .site-header .auth-header-button,
  html body .site-header .header-actions .button { padding-inline:16px; }
}
@media(max-width:900px) {
  html body .site-header .desktop-nav { display:none !important; }
  html body .site-header .header-actions { margin-left:auto; }
  html body .site-header .header-actions .button[data-start-match] { display:none !important; }
}
@media(max-width:640px) {
  html body .site-header,
  html body .site-header .site-header-inner { min-height:76px; }
  html body .site-header .site-header-inner { width:calc(100% - 32px); gap:10px; }
  html body .site-header .brand .cdagi-header-logo { width:150px; max-height:54px; }
  html body .site-header .header-actions { gap:8px; }
  html body .site-header .auth-company-name { max-width:110px; font-size:14px !important; }
  html body .site-header .auth-header-button {
    min-height:44px;
    padding:10px 13px;
    font-size:18px !important;
  }
}
@media(max-width:420px) {
  html body .site-header .brand .cdagi-header-logo { width:132px; }
  html body .site-header .auth-company-name { max-width:88px; }
}

/* Logged-in applicants work inside the active case; landing-page anchors are not actionable here. */
html body.customer-authenticated .site-header .desktop-nav { display:none !important; }
html body.customer-authenticated .site-header .header-actions { margin-left:auto !important; }

