/* HCCY unified portal — Phase 1 visual system */
:root {
  --navy: #102a43;
  --blue: #1f5f99;
  --blue-dark: #16466f;
  --gold: #d4a72c;
  --ink: #17212b;
  --muted: #657483;
  --line: #dce4ea;
  --soft: #f4f7f9;
  --white: #fff;
  --green: #16794b;
  --amber: #a56200;
  --red: #a83232;
  --shadow: 0 14px 36px rgba(16,42,67,.09);
}
* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); }
body { margin: 0; line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-size: 24px; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--ink); font-weight: 650; }
.hero { padding: 92px 0 76px; background: linear-gradient(135deg, #f7fafc 0%, #eef4f8 58%, #fff9e8 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 54px; align-items: center; }
h1 { margin: 12px 0 18px; color: var(--navy); font-size: clamp(2.4rem, 6vw, 4.9rem); line-height: 1.03; letter-spacing: -.045em; }
h2 { margin-top: 0; color: var(--navy); font-size: 1.65rem; }
h3 { color: var(--navy); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--blue); font-weight: 850; }
.lead { font-size: 1.18rem; color: #435466; max-width: 760px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--blue); color: var(--white); font-weight: 800; cursor: pointer; }
.button:hover { background: var(--blue-dark); text-decoration: none; }
.button-secondary { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.button-small { min-height: 38px; padding: 0 14px; }
.button.full { width: 100%; }
button:disabled { opacity: .55; cursor: not-allowed; }
.status-card, .panel, .summary-card, .choice-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.status-card { padding: 28px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; background: var(--green); }
.muted { color: var(--muted); }
.section { padding: 62px 0; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.choice-card { display: block; padding: 26px; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.choice-card:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 18px 42px rgba(16,42,67,.14); }
.choice-card > span { color: var(--gold); font-weight: 900; }
.choice-card h3 { margin-bottom: 8px; }
.page-heading { padding: 58px 0 34px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.page-heading.dark { color: white; background: var(--navy); }
.page-heading.dark h1, .page-heading.dark .lead { color: white; }
.steps { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; }
.steps li { text-align: center; color: var(--muted); font-size: .78rem; }
.steps b { width: 34px; height: 34px; margin: 0 auto 7px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); }
.steps .active { color: var(--navy); font-weight: 800; }
.steps .active b { background: var(--blue); border-color: var(--blue); color: white; }
.panel { padding: 28px; }
.panel.narrow { max-width: 690px; margin: 0 auto; }
.stack { display: grid; gap: 12px; }
.selection { width: 100%; padding: 18px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: white; }
.selection strong, .selection span { display: block; }
.selection span { color: var(--muted); margin-top: 3px; }
.notice { margin-top: 22px; padding: 15px 17px; border-radius: 10px; background: #fff7d6; border: 1px solid #ecd578; }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 22px; }
.summary-card { padding: 22px; }
.summary-card span, .summary-card strong, .summary-card small { display: block; }
.summary-card span { color: var(--muted); font-size: .84rem; font-weight: 750; }
.summary-card strong { color: var(--navy); font-size: 2rem; margin: 5px 0; }
.summary-card.good { border-left: 5px solid var(--green); }
.summary-card.warn { border-left: 5px solid var(--amber); }
.summary-card.danger { border-left: 5px solid var(--red); }
.two-column { display: grid; grid-template-columns: 1.55fr .75fr; gap: 20px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.record { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-top: 1px solid var(--line); }
.record strong, .record span { display: block; }
.record span { color: var(--muted); }
.pill { font-style: normal; font-size: .78rem; border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.pill.green { background: #e4f4ec; color: var(--green); }
.pill.amber { background: #fff0d3; color: var(--amber); }
.pill.blue { background: #e5f0fa; color: var(--blue); }
.link-list { display: grid; }
.link-list a { padding: 13px 0; border-top: 1px solid var(--line); font-weight: 700; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.admin-nav { display: grid; align-content: start; gap: 5px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.admin-nav strong { padding: 8px 10px; color: var(--navy); }
.admin-nav a { padding: 9px 10px; border-radius: 8px; color: var(--ink); }
.admin-nav a.selected { background: var(--navy); color: white; }
.compact .summary-card { box-shadow: none; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 10px; text-align: left; border-top: 1px solid var(--line); }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
label { display: grid; gap: 7px; margin-bottom: 18px; font-weight: 750; }
input { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
footer { padding: 36px 0; background: var(--navy); color: white; }
footer p { margin: 4px 0; }
@media (max-width: 900px) {
  nav a:not(.button) { display: none; }
  .hero-grid, .two-column, .admin-layout { grid-template-columns: 1fr; }
  .card-grid, .summary-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(4,1fr); row-gap: 18px; }
}
@media (max-width: 560px) {
  # .brand small { display: none; } /* pre-v1.7 mobile rule */
    .brand small { display: block; font-size: 10px; }
  .hero { padding-top: 58px; }
  .card-grid, .summary-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .record { align-items: flex-start; flex-direction: column; }
  table { font-size: .82rem; }
}


/* HCCY unified portal — v1.2 modular application additions */
/* The Phase 1 visual system above is preserved. */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module-card { display: block; padding: 24px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.module-card:hover { transform: translateY(-2px); text-decoration: none; }
.module-card strong, .module-card span { display: block; }
.module-card span { margin-top: 8px; color: var(--muted); }
.module-number { color: var(--gold) !important; font-weight: 900; margin-bottom: 8px; }
.rule-list { display: grid; gap: 10px; padding-left: 20px; }
.rule-list li { padding-left: 4px; }
.route-banner { margin-bottom: 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.route-banner strong { color: var(--navy); }
.status-table td:first-child { font-weight: 750; color: var(--navy); }
.preview-label { display: inline-block; margin-bottom: 10px; padding: 5px 9px; border-radius: 999px; background: #fff0d3; color: var(--amber); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 900px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .module-grid { grid-template-columns: 1fr; }
}

/* HCCY Portal v1.3 registration foundation */
select { min-height:48px; padding:0 12px; border:1px solid var(--line); border-radius:9px; background:var(--white); font:inherit; }
