/* The State of Arida's portal (views/gov.js): formal and plain, like a real state government's website, on a dark
   royal blue (Josh: darker, near JusticeNET's blue but not the same: JusticeNET is a grey navy, StateNET bluer).
   Gold from the Great Seal; serif headings, sans-serif text. Executive orders stay as cream paper documents. */
:root { --bar: #081227; --head: #F1F4FA; --navy-2: #2A4F96; --gold: #C9A227; --gold-2: #E8C766; --ink: #DCE4F2; --muted: #9AAAC6; --line: #26406E; --bg: #0D1A33; --card: #142446; --card-2: #1B2F58;
  --blue: #86B4FF; --green: #5BD38F; --red: #FF8A80; --amber: #F2C14E; --purple: #B9A6FF; }
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 'Source Sans 3', 'Segoe UI', system-ui, sans-serif; }
a { color: var(--blue); }
a:hover { color: #B8D2FF; }
h1, h2, h3 { font-family: 'Source Serif 4', Georgia, serif; color: var(--head); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.55rem; margin-top: 1.6em; } h3 { font-size: 1.15rem; }
.g-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.g-muted { color: var(--muted); font-size: .92em; }

/* The official banner, header and menu */
.g-official { background: #060E1F; font-size: 13px; color: #9AAAC6; }
.g-official .g-wrap { display: flex; align-items: center; gap: 8px; padding-top: 5px; padding-bottom: 5px; }
.g-official img { width: 18px; height: 18px; }
.g-header { background: var(--bar); color: #fff; border-bottom: 4px solid var(--gold); }
.g-header .g-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.g-brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.g-brand:hover { color: #fff; }
.g-brand img { width: 64px; height: 64px; }
.g-brand small { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--gold-2); font-weight: 700; }
.g-brand strong { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.6rem; line-height: 1.1; }
.g-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.g-who { color: #C9D3E2; font-size: 14px; }
.g-tools .g-link { color: #C9D3E2; font-size: 14px; }
.g-nav { background: #102041; border-bottom: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.g-nav .g-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.g-nav a { padding: 14px 14px 12px; color: var(--head); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.g-nav a:hover { border-bottom-color: var(--line); }
.g-nav a.on { border-bottom-color: var(--gold); }

/* Buttons and tags */
.g-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 4px; border: 2px solid var(--navy-2); background: var(--navy-2); color: #fff; font: 600 16px 'Source Sans 3', sans-serif; text-decoration: none; cursor: pointer; }
.g-btn:hover { background: #3560B0; color: #fff; }
.g-btn-light { background: #fff; color: #0A1B36; border-color: #fff; padding: 7px 14px; font-size: 15px; }
.g-btn-light:hover { background: #E9EDF2; color: #0A1B36; }
.g-btn-gold { background: var(--gold); border-color: var(--gold); color: #0A1B36; }
.g-btn-gold:hover { background: var(--gold-2); color: #0A1B36; }
.g-btn-outline { background: transparent; border-color: #fff; color: #fff; }
.g-btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.g-btn-quiet { background: var(--card-2); border-color: var(--line); color: var(--ink); }
.g-btn-quiet:hover { background: #24396A; color: var(--head); }
.g-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.g-grey { color: #B4C0D4; background: rgba(180, 192, 212, .1); border-color: rgba(180, 192, 212, .3); }
.g-green { color: var(--green); background: rgba(91, 211, 143, .1); border-color: rgba(91, 211, 143, .35); }
.g-blue { color: var(--blue); background: rgba(134, 180, 255, .1); border-color: rgba(134, 180, 255, .35); }
.g-amber { color: var(--amber); background: rgba(242, 193, 78, .1); border-color: rgba(242, 193, 78, .35); }
.g-red { color: var(--red); background: rgba(255, 138, 128, .1); border-color: rgba(255, 138, 128, .35); }
.g-purple { color: var(--purple); background: rgba(185, 166, 255, .1); border-color: rgba(185, 166, 255, .35); }
.g-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* The home page */
.g-hero { background-size: cover; background-position: center 55%; color: #fff; }
.g-hero .g-wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 64px; padding-bottom: 64px; }
.g-hero h1 { color: #fff; font-size: 2.8rem; margin: .2em 0 .35em; }
.g-hero p { font-size: 1.2rem; max-width: 560px; color: #E6ECF5; }
.g-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.g-hero-seal { width: 230px; height: 230px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .45)); }
.g-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--muted); }
.g-gold { color: var(--gold-2); }
.g-banner { margin: 22px 0 0; padding: 14px 18px; background: rgba(201, 162, 39, .12); border-left: 5px solid var(--gold); border-radius: 4px; }
.g-services { margin-top: 28px; }
.g-services h2 { margin-top: 0; }
.g-section { margin-top: 36px; }
.g-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.g-grid { display: grid; gap: 18px; }
.g-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
a.g-card { text-decoration: none; color: inherit; display: block; transition: box-shadow .15s, border-color .15s; }
a.g-card:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.g-service { border-top: 4px solid var(--gold); }
.g-service h3 { margin: 8px 0 6px; }
.g-service p { margin: 0; color: var(--muted); }
.g-icon { font-size: 28px; }
.g-leader { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 6px; padding: 18px 20px; }
.g-leader img { width: 86px; height: 86px; }
.g-leader-name { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--head); }
.g-dept { display: flex; gap: 16px; align-items: flex-start; }
.g-dept img { width: 72px; height: 72px; flex-shrink: 0; }
.g-dept p { margin: 0 0 6px; }
.g-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.g-list li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.g-list li:first-child { border-top: 0; }
.g-list li a { flex: 1; min-width: 220px; font-weight: 600; text-decoration: none; }
.g-num { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .85em; color: var(--muted); margin-right: 6px; }

/* Inner pages */
.g-main { padding: 26px 0 50px; min-height: 50vh; }
.g-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.g-crumbs a { color: var(--blue); }
.g-head { margin-bottom: 18px; }
.g-head h1 { margin: .15em 0 .3em; }
.g-lead { font-size: 1.15rem; color: #B8C4D8; max-width: 760px; margin: 0; }
.g-alert { padding: 12px 16px; border-radius: 4px; margin: 0 0 18px; border-left: 5px solid; }
.g-ok { background: rgba(91, 211, 143, .1); border-color: var(--green); }
.g-bad { background: rgba(255, 138, 128, .1); border-color: var(--red); }
.g-empty { padding: 30px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 6px; }
.g-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.g-table th { text-align: left; background: var(--card-2); color: var(--head); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; }
.g-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.g-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.g-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px 18px; color: var(--muted); }
.g-stats strong { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.8rem; color: var(--head); }

/* Forms */
.g-form { display: flex; flex-direction: column; gap: 14px; }
.g-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--head); flex: 1; }
.g-form input:not([type=checkbox]):not([type=radio]), .g-form textarea, .g-form select { font: 16px 'Source Sans 3', sans-serif; padding: 10px 12px; border: 1px solid #3A5A92; border-radius: 4px; background: #0A152B; color: var(--ink); }
.g-form input:focus, .g-form textarea:focus, .g-form select:focus { outline: 3px solid rgba(232, 199, 102, .45); border-color: var(--gold); }
.g-form .g-check, .g-choice { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 400 !important; }
.g-choice { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; }
.g-choice:hover { border-color: var(--gold); }
.g-row { display: flex; gap: 14px; flex-wrap: wrap; }
.g-form > .g-btn, .g-form .g-actions { align-self: flex-start; }
.g-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.g-more { margin-top: 18px; }
.g-more summary { cursor: pointer; font-weight: 600; color: var(--head); }

/* An executive order */
.g-doc { color: #1B2430; background: #FFFEF9; border: 1px solid #E4DCC3; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); max-width: 860px; margin: 0 auto; padding: 46px 56px; border-top: 6px solid var(--gold); }
.g-doc h1, .g-doc h2, .g-doc h3 { color: #0A1B36; }
.g-doc .g-muted, .g-doc .g-code { color: #5B6675; }
.g-doc .g-code strong { color: #1B2430; }
.g-doc a { color: #1D5FBF; }
.g-doc header { text-align: center; margin-bottom: 24px; }
.g-doc header img { width: 120px; height: 120px; }
.g-doc h1 { margin: 12px 0 4px; }
.g-doc-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.25rem; color: #3A4554; }
.g-doc-body { white-space: pre-wrap; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.1rem; line-height: 1.75; margin: 22px 0 30px; }
.g-doc footer { border-top: 1px solid #E4DCC3; padding-top: 18px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.g-sig { font-family: 'Segoe Script', 'Brush Script MT', cursive; font-size: 2rem; color: #0A1B36; }
.g-code { text-align: right; font-size: 14px; color: var(--muted); }
.g-code strong { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; color: var(--ink); }
.g-good { color: var(--green); font-weight: 700; }
.g-badtext { color: var(--red); font-weight: 700; }

/* Elections */
.g-election { display: flex; gap: 16px; align-items: flex-start; }
.g-election img { width: 70px; height: 70px; }
.g-election h3 { margin: 0 0 6px; }
.g-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 20px 0; counter-reset: s; }
.g-steps li { position: relative; padding: 14px 12px 12px; border-top: 5px solid var(--line); font-size: 14px; color: var(--muted); }
.g-steps li strong { display: block; color: var(--ink); font-size: 15px; }
.g-steps li.done { border-top-color: var(--navy-2); }
.g-steps li.now { border-top-color: var(--gold); background: rgba(201, 162, 39, .1); }
.g-prose { white-space: pre-wrap; max-width: 820px; }
.g-action { border-left: 5px solid var(--gold); margin: 18px 0; }
.g-action h2 { margin-top: 0; }
.g-cand { margin-bottom: 14px; }
.g-cand-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.g-cand p { white-space: pre-wrap; margin: 10px 0 0; }
.g-winner { border: 2px solid var(--gold); }
.g-votes { min-width: 200px; text-align: right; }
.g-votes strong { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.6rem; color: var(--head); }
.g-bar { height: 8px; background: #22365F; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.g-bar span { display: block; height: 100%; background: var(--gold); }

/* Acts */
.g-act { margin-bottom: 14px; }
.g-act-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.g-act h3 { margin: 4px 0 0; }
.g-act p { white-space: pre-wrap; }
.g-decision { margin-top: 10px; padding: 10px 14px; background: var(--card-2); border-radius: 4px; }
.g-decide { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Footer */
.g-footer { background: var(--bar); color: #C9D3E2; padding: 34px 0 26px; border-top: 4px solid var(--gold); font-size: 15px; }
.g-foot-brand { display: flex; align-items: center; gap: 14px; }
.g-foot-brand img { width: 56px; height: 56px; }
.g-foot-brand strong { color: #fff; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.15rem; }
.g-foot-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 0; }
.g-foot-links a { color: #fff; }
.g-foot-note { color: #8C9AB0; font-size: 13px; margin: 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .g-brand img { width: 48px; height: 48px; }
  .g-brand strong { font-size: 1.25rem; }
  .g-hero .g-wrap { padding-top: 40px; padding-bottom: 40px; }
  .g-hero h1 { font-size: 2rem; }
  .g-hero-seal { display: none; }
  .g-doc { padding: 26px 20px; }
  .g-steps { grid-template-columns: repeat(2, 1fr); }
  .g-nav a { padding: 10px; font-size: 15px; }
}

/* Spread out (Josh, 18 Nov 2026): a wider page and more room between sections. */
.g-wrap { max-width: 1280px; padding: 0 28px; }
.g-main { padding: 34px 0 70px; }
.g-section { margin-top: 52px; }
.g-services { margin-top: 36px; }
.g-grid { gap: 22px; }
.g-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g-hero .g-wrap { padding-top: 84px; padding-bottom: 84px; }

/* The factions of Arida (govdirectory.js): each in its own colour. */
.g-faction { display: flex; gap: 16px; align-items: center; border-left: 5px solid var(--fc, var(--gold)); }
.g-faction img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.g-faction h3 { margin: 0 0 4px; }
.g-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.g-chips a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.g-chips a:hover { border-color: var(--gold); }
.g-panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px; margin-bottom: 28px; scroll-margin-top: 20px; }
.g-faction-panel { border-top: 5px solid var(--fc, var(--gold)); }
.g-panel-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.g-panel-head img { width: 96px; height: 96px; object-fit: contain; }
.g-panel-head > div { flex: 1; min-width: 240px; }
.g-panel-head h2 { margin: 2px 0 6px; }
.g-panel-head p { margin: 0; color: var(--muted); }
.g-panel h3 { margin-top: 0; }
.g-panel .g-list li { justify-content: space-between; }
.g-leader-title { color: var(--muted); min-width: 0; flex: 1; }
.g-count { font-weight: 700; color: var(--gold-2); }
.g-justice .g-service { border-top-color: var(--gold); }

@media (max-width: 760px) {
  .g-wrap { padding: 0 16px; }
  .g-section { margin-top: 38px; }
  .g-hero .g-wrap { padding-top: 44px; padding-bottom: 44px; }
  .g-panel { padding: 20px 18px; }
  .g-panel-head img { width: 64px; height: 64px; }
}
.g-justice-stats a { display: block; color: var(--muted); text-decoration: none; }
.g-justice-stats a:hover { color: var(--blue); }
.g-panel .g-section-head h3 { margin: 0 0 10px; }
/* The districts: the map beside the two Mayors. */
.g-districts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.g-districts .g-grid { grid-template-columns: 1fr; }
.g-map img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 760px) { .g-districts { grid-template-columns: 1fr; } }
.g-fbi { margin-top: 22px; border-left: 5px solid var(--gold); }
.g-fbi h3 { margin: 4px 0 6px; }
.g-fbi p { margin: 0 0 6px; color: var(--muted); }
a.g-fbi { display: block; text-decoration: none; color: inherit; }
a.g-fbi:hover { border-color: var(--gold); }

/* Join the State Government (views/gov.js joinPage): MedNet's application form (views/join.js) in the portal's look */
.g-hero-slim .g-wrap { padding-top: 44px; padding-bottom: 44px; }
.g-hero-slim .g-hero-seal { width: 150px; height: 150px; }
.g-join .page { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.g-join .h-display { font-family: 'Source Serif 4', Georgia, serif; color: var(--head); font-weight: 700; line-height: 1.2; }
.g-join .small { font-size: 14px; } .g-join .muted { color: var(--muted); } .g-join .prose { color: var(--ink); }
.g-join .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-join .card, .g-join .form-card, .g-join .join-reqs { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.g-join .pad, .g-join .form-card { padding: 22px 24px; }
.g-join .form-card { display: flex; flex-direction: column; gap: 16px; border-top: 4px solid var(--gold); }
.g-join .alert { padding: 12px 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--card-2); }
.g-join .alert-warn { border-color: #7A6320; background: #2A2614; color: #F5E3A8; }
.g-join .alert-info { border-color: #2D4F8A; background: #13274A; }
/* The welcome: what the Government is hiring for */
.g-join .join-welcome { display: flex; align-items: center; gap: 24px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; padding: 24px 26px; }
.g-join .join-welcome-text { flex: 1; }
.g-join .join-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--gold-2); }
.g-join .join-title { margin: .25em 0 .4em; font-size: 1.7rem; }
.g-join .join-welcome p { margin: 0 0 14px; }
.g-join .join-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.g-join .join-facts span { padding: 5px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; }
.g-join .join-welcome-patch { width: 110px; height: 110px; }
/* How joining works */
.g-join .join-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.g-join .join-step { display: flex; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.g-join .join-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 2px solid var(--line); font-weight: 700; color: var(--head); }
.g-join .join-step.cur .join-num { background: var(--gold); border-color: var(--gold); color: #0A1B36; }
.g-join .join-step.done .join-num { background: var(--green); border-color: var(--green); color: #0A1B36; }
.g-join .join-step-title { font-weight: 700; color: var(--head); }
.g-join .join-step-text { font-size: 14px; color: var(--muted); }
.g-join .join-reqs { padding: 18px 24px; }
.g-join .join-reqs-title { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; color: var(--head); font-size: 1.15rem; }
.g-join .join-reqs ul { margin: 8px 0 0; padding-left: 20px; }
/* Picking the department */
.g-join .join-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.g-join .join-pick-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.g-join .join-pick-card:hover { border-color: var(--navy-2); color: var(--ink); }
.g-join .join-pick-card.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 162, 39, .35); }
.g-join .join-pick-title { font-weight: 700; color: var(--head); }
.g-join .join-pick-text { font-size: 14px; color: var(--muted); }
.g-join .join-form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* Fields */
.g-join .field { display: flex; flex-direction: column; gap: 6px; }
.g-join .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.g-join .field label, .g-join .label { font-weight: 600; color: var(--head); }
.g-join .input, .g-join .textarea { width: 100%; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--line); background: #0B1630; color: var(--ink); font: inherit; }
.g-join .input:focus, .g-join .textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.g-join .textarea { resize: vertical; min-height: 90px; }
.g-join .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-join .chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; font-size: 15px; }
.g-join .chip:has(input:checked) { border-color: var(--gold); background: #2A2A1E; }
.g-join .chip input { accent-color: var(--gold); }
.g-join fieldset { border-color: var(--line) !important; }
.g-join legend { color: var(--head) !important; }
/* Buttons, status pills */
.g-join .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 4px; border: 2px solid var(--gold); background: var(--gold); color: #0A1B36; font: 700 16px 'Source Sans 3', sans-serif; text-decoration: none; cursor: pointer; }
.g-join .btn:hover { background: var(--gold-2); border-color: var(--gold-2); color: #0A1B36; }
.g-join .btn:disabled { opacity: .5; cursor: not-allowed; }
.g-join .btn-sm { padding: 7px 14px; font-size: 14px; }
.g-join .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.g-join .btn-ghost:hover { background: var(--card-2); color: var(--head); border-color: var(--line); }
.g-join .join-submit { align-self: flex-start; }
.g-join .pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--card-2); border: 1px solid var(--line); }
.g-join .pill-green { color: var(--green); } .g-join .pill-blue { color: var(--blue); } .g-join .pill-amber { color: var(--amber); } .g-join .pill-purple { color: var(--purple); } .g-join .pill-grey { color: var(--muted); }
/* Log in with Discord */
.g-join .dc-steps { display: flex; flex-direction: column; gap: 10px; }
.g-join .dc-step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--card-2); color: inherit; text-decoration: none; }
.g-join .dc-step:hover, .g-join .dc-step.hot { border-color: var(--gold); color: inherit; }
.g-join .dc-step > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.g-join .dc-step strong { color: var(--head); }
.g-join .dc-step small { color: var(--muted); font-size: 14px; }
.g-join .dc-n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #0A1B36; font-weight: 700; }
.g-join .dc-go { color: var(--gold-2); font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .g-join .join-steps { grid-template-columns: 1fr; } .g-join .join-welcome-patch { display: none; } }

/* ----- v9: the portal grown up (Josh: "make it look really professional") ----- */
.g-nav a { padding: 14px 11px 12px; font-size: 15.5px; }
/* "I want to…": the services people come for */
.g-tasks { margin-top: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px 24px; }
.g-tasks h2 { margin: 0 0 14px; font-size: 1.35rem; }
.g-task-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.g-task-grid a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 4px; background: var(--card-2); border: 1px solid var(--line); color: var(--head); font-weight: 600; text-decoration: none; }
.g-task-grid a:hover { border-color: var(--gold); color: #fff; }
.g-task-grid span { font-size: 20px; }
.g-audience { border-top: 4px solid var(--navy-2); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.g-audience:hover { border-top-color: var(--gold); color: var(--ink); }
.g-audience p { color: var(--muted); flex: 1; }
.g-more-link { color: var(--blue); font-weight: 600; font-size: 15px; }
.g-dept-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; text-decoration: none; }
.g-dept-mini img { width: 72px; height: 72px; }
.g-dept-mini h3 { margin: 0; font-size: 1rem; }
/* Services: grouped by the agency that runs them */
.g-svc-group { margin-top: 34px; }
.g-svc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.g-svc-head img { width: 52px; height: 52px; object-fit: contain; }
.g-svc-head h2 { margin: 0; }
.g-service { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.g-service:hover { color: var(--ink); border-top-color: var(--gold-2); background: var(--card-2); }
.g-service p { flex: 1; }
.g-via { margin-top: 10px; font-size: 13px; color: var(--gold-2); font-weight: 600; letter-spacing: .02em; }
.g-callout { margin-top: 34px; padding: 20px 24px; border-radius: 6px; border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--card); }
.g-callout h3 { margin: 0 0 4px; } .g-callout p { margin: 0; }
.g-journey { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.g-journey li { padding: 14px 16px; background: var(--card); border-right: 1px solid var(--line); }
.g-journey li:last-child { border-right: 0; }
.g-journey strong { display: block; color: var(--gold-2); font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; }
.g-journey span { font-size: 14px; color: var(--muted); }
/* How Arida is governed */
.g-tree { list-style: none; margin: 8px 0 10px; padding: 0; text-align: center; }
.g-tree-top { display: inline-flex; flex-direction: column; padding: 14px 28px; background: var(--card-2); border: 2px solid var(--gold); border-radius: 6px; position: relative; }
.g-tree strong { color: var(--head); font-family: 'Source Serif 4', Georgia, serif; font-size: 1.1rem; }
.g-tree span { font-size: 14px; color: var(--muted); }
.g-tree > li + li { margin-top: 26px; position: relative; }
.g-tree > li + li::before { content: ''; position: absolute; top: -26px; left: 50%; height: 26px; border-left: 2px solid var(--line); }
.g-tree-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-tree-row > div { display: flex; flex-direction: column; padding: 14px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--navy-2); border-radius: 6px; }
.g-tight { margin-top: 14px; }
/* Candidates */
.g-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-2), #0F2350); border: 2px solid var(--gold); color: #fff; font: 700 1.35rem 'Source Serif 4', Georgia, serif; }
.g-avatar-lg { width: 112px; height: 112px; font-size: 2.3rem; }
.g-cand-card { display: flex; gap: 18px; align-items: flex-start; text-decoration: none; color: var(--ink); border-top: 4px solid var(--gold); }
.g-cand-card:hover { background: var(--card-2); color: var(--ink); }
.g-cand-card h3 { margin: 4px 0 2px; font-size: 1.3rem; }
.g-slogan { font-family: 'Source Serif 4', Georgia, serif; font-style: italic; color: var(--gold-2); margin: 8px 0; }
.g-slogan-lg { font-size: 1.3rem; }
.g-profile { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.g-profile-head { display: flex; gap: 26px; align-items: center; padding: 30px 32px; background: linear-gradient(120deg, #13285A, var(--card)); border-bottom: 4px solid var(--gold); }
.g-profile-head h1 { margin: 4px 0; }
.g-profile .g-banner, .g-profile .g-stats { margin: 20px 32px 0; }
.g-profile-body { padding: 8px 32px 18px; display: grid; gap: 4px; }
.g-profile-body h2 { font-size: 1.3rem; margin-top: 1.2em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.g-priorities { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.g-priorities li::marker { color: var(--gold-2); font-weight: 700; }
.g-manifesto { white-space: pre-wrap; }
.g-profile > footer { padding: 14px 32px 22px; }
.g-review { margin-top: 18px; border-left: 4px solid var(--amber); }
.g-review-item { padding: 14px 0; border-top: 1px solid var(--line); }
.g-review-item h3 { margin: 0 0 4px; }
/* The footer, by section */
.g-foot-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin: 22px 0 18px; }
.g-foot-cols h4 { margin: 0 0 8px; color: var(--gold-2); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.g-foot-cols a { display: block; color: #E2E8F3; text-decoration: none; padding: 3px 0; font-size: 15px; }
.g-foot-cols a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
  .g-task-grid { grid-template-columns: repeat(2, 1fr); }
  .g-journey, .g-tree-row { grid-template-columns: 1fr; }
  .g-journey li { border-right: 0; border-bottom: 1px solid var(--line); }
  .g-foot-cols { grid-template-columns: repeat(2, 1fr); }
  .g-profile-head { flex-direction: column; text-align: center; }
  .g-nav .g-wrap { overflow-x: auto; flex-wrap: nowrap; }
  .g-nav a { white-space: nowrap; }
}
.g-callout-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 0; margin-bottom: 22px; }
.g-callout-cta > div { flex: 1; min-width: 260px; }
.g-section .g-callout-cta { margin-top: 16px; }
/* Join the Government Discord (views/gov.js discordPrompt) */
.g-discord { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 22px 0; padding: 18px 22px; border-radius: 6px; background: linear-gradient(110deg, #2B2F7A, #1B2F58 70%); border: 1px solid #5865F2; }
.g-discord > div:nth-child(2) { flex: 1; min-width: 240px; }
.g-discord h3 { margin: 0 0 4px; color: #fff; }
.g-discord p { margin: 0; color: #DDE3F5; }
.g-discord-icon { width: 54px; height: 54px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #5865F2; color: #fff; }
.g-btn-discord { background: #5865F2; border-color: #5865F2; }
.g-btn-discord:hover { background: #4752C4; border-color: #4752C4; }
.g-foot-discord { margin: 0 0 12px; }
.g-foot-discord a { color: #C7CCFF; font-weight: 600; text-decoration: none; }
.g-foot-discord a:hover { color: #fff; text-decoration: underline; }
.g-tree-row-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }

/* The State at a glance on the home page (views/gov.js glance) */
.g-glance-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.g-glance-tile { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; }
.g-glance-tile strong { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.7rem; color: var(--head); margin: 2px 0; }
.g-glance-list { list-style: none; margin: 0; padding: 0; }
.g-glance-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.g-glance-list li:first-child { border-top: 0; }
.g-glance-project { margin-bottom: 10px; }
.g-glance-project .g-muted { font-size: .85em; }
