/* Philippine Embassy in Lisbon — public site
   Palette drawn from the Philippine flag: royal blue, red, sun gold. */
:root {
  --navy: #0a2463;
  --navy-2: #0d2f80;
  --blue: #0038a8;
  --blue-50: #eef3ff;
  --blue-100: #dbe5ff;
  --red: #ce1126;
  --red-50: #fff0f2;
  --gold: #fcd116;
  --gold-d: #c99a00;
  --gold-50: #fff9db;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --bg: #f6f7fb;
  --card: #ffffff;
  --ok: #067647;
  --ok-50: #ecfdf3;
  --warn: #b54708;
  --warn-50: #fffaeb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 12px 32px -12px rgba(10, 36, 99, .25), 0 2px 6px rgba(16, 24, 40, .06);
  --shadow-lg: 0 30px 60px -20px rgba(10, 36, 99, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ic--xs { width: 12px; height: 12px; }
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 28px; height: 28px; }
.ic--xl { width: 40px; height: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
.demo-banner { background: repeating-linear-gradient(-45deg, #fcd116, #fcd116 14px, #ffe066 14px, #ffe066 28px); color: #3b2e00; text-align: center; font-weight: 600; font-size: 13px; padding: 6px 12px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--red) 0%, #e8283e 100%); color: #fff; box-shadow: 0 8px 20px -8px rgba(206, 17, 38, .7); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 26px -8px rgba(206, 17, 38, .75); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 56, 168, .8); }
.btn--blue:hover { color: #fff; background: var(--navy-2); }
.btn--gold { background: var(--gold); color: #2b2100; }
.btn--gold:hover { color: #2b2100; background: #ffdb3d; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink-2); }
.btn--glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn--glass:hover { color: #fff; background: rgba(255, 255, 255, .24); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.iconbtn:hover { background: var(--blue-50); border-color: var(--blue-100); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.chip--public-advisories { background: var(--red-50); color: var(--red); }
.chip--philippine-news { background: var(--gold-50); color: #7a5b00; }
.chip--press-releases { background: #f2f4f7; color: var(--ink-2); }

/* ---------------------------------------------------------------- top bars */
.govbar { background: #06163d; color: #c9d4f2; font-size: 12.5px; }
.govbar__in { display: flex; align-items: center; gap: 16px; height: 36px; }
.govbar__gov { color: #fff; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.govbar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .2); }
.govbar__clock b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 4px; }
.govbar__spacer { flex: 1; }
.govbar__link { color: #c9d4f2; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.govbar__link .ic { width: 14px; height: 14px; }
.govbar__link:hover { color: #fff; }

.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%); opacity: 0; transition: opacity .3s; }
.masthead.is-scrolled::after { opacity: 1; }
.masthead__in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__seal { width: 43px; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.brand__name { font-family: var(--display); font-size: 21px; font-weight: 650; color: var(--navy); }
.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 550; font-size: 14.5px; text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__item.is-open > .nav__link { background: var(--blue-50); color: var(--blue); }
.nav__item.is-active > .nav__link { color: var(--blue); }
.nav__item.is-active > .nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--red); }
.nav__link .ic { transition: transform .2s; }
.nav__item.is-open > .nav__link .ic { transform: rotate(180deg); }
.nav__sub { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 60; }
.nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1081px) { .nav__item.has-sub:hover > .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); } .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } }
.drop { list-style: none; margin: 0; padding: 8px; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.drop a { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.drop a:hover { background: var(--blue-50); color: var(--blue); }
.mega { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)) 230px; gap: 22px; width: min(1160px, 96vw); padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.is-mega > .nav__sub { left: 50%; }
.mega__head { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); text-decoration: none; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.mega li a:hover { color: var(--blue); }
.mega__cta { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; text-decoration: none; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #1b4fd1 0%, var(--navy) 60%); position: relative; overflow: hidden; }
.mega__cta::after { content: ""; position: absolute; width: 140px; height: 140px; right: -40px; bottom: -40px; background: var(--gold); opacity: .18; border-radius: 50%; }
.mega__cta:hover { color: #fff; }
.mega__cta span { font-size: 13.5px; color: #cdd7f6; }
.mega__cta .mega__go { margin-top: auto; color: var(--gold); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.masthead__actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

/* search dialog */
.searchdlg { border: 0; padding: 0; width: min(680px, 94vw); border-radius: 20px; box-shadow: var(--shadow-lg); margin-top: 12vh; }
.searchdlg::backdrop { background: rgba(6, 22, 61, .55); backdrop-filter: blur(4px); }
.searchdlg__form { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
.searchdlg__form > .ic { color: var(--muted); }
.searchdlg__form input { flex: 1; border: 0; font-size: 18px; outline: none; padding: 8px 0; font-family: inherit; }
.searchdlg__hints { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 18px; font-size: 14px; color: var(--muted); align-items: center; }
.searchdlg__hints a { background: var(--bg); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 60% 35%; transform: scale(1.04); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 22, 61, .96) 0%, rgba(10, 36, 99, .86) 38%, rgba(10, 36, 99, .35) 70%, rgba(10, 36, 99, .1) 100%), linear-gradient(0deg, rgba(6, 22, 61, .6), transparent 40%); }
.hero__sun { position: absolute; z-index: -1; width: 620px; height: 620px; left: -180px; top: -180px; color: var(--gold); opacity: .07; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__in { padding: 88px 20px 120px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 600; letter-spacing: .03em; backdrop-filter: blur(6px); }
.hero__eyebrow .flagdot { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: linear-gradient(180deg, var(--blue) 50%, var(--red) 50%); position: relative; }
.hero__eyebrow .flagdot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-left: 13px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; margin: 22px 0 18px; font-weight: 700; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 600; }
.hero__lead { font-size: 18px; color: #d5def7; max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 22px; padding: 22px; backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero__card h2 { font-family: var(--font); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 700; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero__facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #e6ecfb; }
.hero__facts .ic { color: var(--gold); margin-top: 2px; }
.hero__facts a { color: #fff; }
.hero__facts strong { display: block; color: #fff; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa4b2; }
.status-pill.is-open::before { background: #32d583; box-shadow: 0 0 0 4px rgba(50, 213, 131, .25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(50, 213, 131, 0); } }

/* quick services strip overlapping hero */
.quick { position: relative; z-index: 2; margin-top: -70px; }
.quick__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.qcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; overflow: hidden; }
.qcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); color: var(--ink); }
.qcard__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); transition: background .25s, color .25s; }
.qcard:hover .qcard__ic { background: var(--blue); color: #fff; }
.qcard:nth-child(2n) .qcard__ic { background: var(--red-50); color: var(--red); }
.qcard:nth-child(2n):hover .qcard__ic { background: var(--red); color: #fff; }
.qcard:nth-child(3n) .qcard__ic { background: var(--gold-50); color: #9a7400; }
.qcard:nth-child(3n):hover .qcard__ic { background: var(--gold); color: #2b2100; }
.qcard strong { font-size: 15px; line-height: 1.3; }
.qcard span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.qcard__arrow { position: absolute; right: 16px; top: 22px; color: var(--line-2); transition: color .2s, transform .2s; }
.qcard:hover .qcard__arrow { color: var(--blue); transform: translateX(3px); }

/* ---------------------------------------------------------------- sections */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--white { background: #fff; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 700px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* news */
.news-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.news-grid .news-card--big { grid-column: 1 / -1; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.news-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--blue-50), #fff); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--gold); }
.news-card__placeholder .sun { width: 72px; height: 72px; opacity: .6; }
.news-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.news-card h3 { font-size: 17px; line-height: 1.35; margin: 0; font-weight: 650; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { color: var(--muted); font-size: 15px; margin: 0; }
.news-card--big { flex-direction: row; }
.news-card--big .news-card__media { flex: 1.15; aspect-ratio: auto; min-height: 320px; }
.news-card--big .news-card__body { flex: 1; padding: 30px; justify-content: center; }
.news-card--big h3 { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

.advisories { padding: 24px; position: sticky; top: 100px; }
.advisories__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.advisories__head .ic { color: var(--red); }
.advisories h3 { margin: 0; font-size: 18px; }
.adv-list { list-style: none; margin: 0 0 14px; padding: 0; }
.adv-list li { border-bottom: 1px dashed var(--line); }
.adv-list li:last-child { border: 0; }
.adv-list a { display: grid; gap: 2px; padding: 12px 0; text-decoration: none; color: var(--ink); }
.adv-list a:hover strong { color: var(--blue); }
.adv-list time { font-size: 12.5px; color: var(--muted); }
.adv-list strong { font-weight: 600; font-size: 15px; line-height: 1.35; }

/* booking promo */
.promo { position: relative; overflow: hidden; border-radius: 28px; padding: 56px; color: #fff; background: radial-gradient(90% 140% at 100% 0%, #2457d6 0%, var(--blue) 35%, var(--navy) 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; box-shadow: var(--shadow-lg); }
.promo::before { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(252, 209, 22, .35), transparent 65%); }
.promo h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.promo p { color: #d5def7; font-size: 17px; }
.promo .eyebrow { color: var(--gold); }
.promo__steps { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.promo__steps li { display: flex; gap: 12px; align-items: center; color: #e6ecfb; }
.promo__steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 13px; color: var(--gold); flex: none; }
.promo__mock { position: relative; background: #fff; color: var(--ink); border-radius: 20px; padding: 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); transform: rotate(1.5deg); }
.mock__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 12px; font-size: 15px; }
.mock__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; font-size: 12px; text-align: center; }
.mock__grid span { padding: 7px 0; border-radius: 8px; color: var(--muted); }
.mock__grid .h { font-weight: 700; color: var(--ink-2); font-size: 11px; }
.mock__grid .o { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.mock__grid .s { background: var(--blue); color: #fff; font-weight: 700; box-shadow: 0 6px 14px -6px var(--blue); }
.mock__grid .x { color: #c3c8d2; text-decoration: line-through; }
.mock__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.mock__slots span { border: 1px solid var(--line); border-radius: 8px; padding: 6px; font-size: 12px; text-align: center; font-weight: 600; color: var(--ink-2); }
.mock__slots .s { background: var(--red); border-color: var(--red); color: #fff; }
.mock__toast { position: absolute; left: -26px; bottom: -22px; background: #fff; border-radius: 14px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; transform: rotate(-1.5deg); }
.mock__toast .ic { color: #fff; background: var(--ok); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }

/* leaders */
.leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.leader { text-align: center; padding: 22px 18px; }
.leader__photo { width: 128px; height: 128px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold), var(--shadow); background: var(--blue-50); display: grid; place-items: center; }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leader__photo--seal img { width: 70%; height: auto; object-fit: contain; }
.leader h3 { font-size: 16px; margin-bottom: 4px; }
.leader p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* jurisdictions */
.juris { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.juris__map { position: relative; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #e9efff, #fff); border: 1px solid var(--line); padding: 30px; }
.juris__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.jcard { display: flex; gap: 14px; align-items: center; padding: 16px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.jcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.jcard__flag { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: .02em; flex: none; }
.jcard strong { display: block; font-size: 15px; }
.jcard span { font-size: 13px; color: var(--muted); }

/* voting band */
.vote { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.vote__links { display: grid; gap: 12px; }
.filelink { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.filelink:hover { border-color: var(--blue-100); box-shadow: var(--shadow); color: var(--ink); }
.filelink__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red); flex: none; }
.filelink strong { display: block; font-size: 15px; }
.filelink span { font-size: 13px; color: var(--muted); }
.filelink > .ic:last-child { margin-left: auto; color: var(--muted); }
.banners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.banners a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.banners a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.banners img { display: block; width: 100%; }

/* contact strip */
.contact-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-strip__info { padding: 44px; }
.contact-strip__map { min-height: 380px; background: var(--blue-50); position: relative; }
.contact-strip__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
.clist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.clist li { display: flex; gap: 14px; }
.clist .ic { color: var(--blue); margin-top: 3px; }
.clist strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.clist a { color: var(--ink); text-decoration: none; font-weight: 500; }
.clist a:hover { color: var(--blue); }

/* ---------------------------------------------------------------- page chrome */
.pagehead { position: relative; overflow: hidden; background: radial-gradient(120% 160% at 100% 0%, #2152cf 0%, var(--blue) 30%, var(--navy) 85%); color: #fff; padding: 56px 0 64px; isolation: isolate; }
.pagehead::after { content: ""; position: absolute; right: -100px; top: -160px; width: 460px; height: 460px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23fcd116'%3E%3Ccircle cx='50' cy='50' r='17'/%3E%3Cpath id='r' d='M50 4 54 28 50 31 46 28Z'/%3E%3Cuse href='%23r' transform='rotate(45 50 50)'/%3E%3Cuse href='%23r' transform='rotate(90 50 50)'/%3E%3Cuse href='%23r' transform='rotate(135 50 50)'/%3E%3Cuse href='%23r' transform='rotate(180 50 50)'/%3E%3Cuse href='%23r' transform='rotate(225 50 50)'/%3E%3Cuse href='%23r' transform='rotate(270 50 50)'/%3E%3Cuse href='%23r' transform='rotate(315 50 50)'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; opacity: .09; z-index: -1; }
.pagehead h1 { color: #fff; font-size: clamp(30px, 4.2vw, 50px); margin: 10px 0 10px; max-width: 900px; }
.pagehead p { color: #d5def7; font-size: 18px; max-width: 720px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: #b8c6ef; list-style: none; padding: 0; margin: 0; }
.crumbs a { color: #e6ecfb; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.pagebody { padding: 48px 0 80px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.layout--narrow { max-width: 860px; margin: 0 auto; grid-template-columns: 1fr; }
.prose-card { padding: clamp(24px, 4vw, 48px); }
.side { position: sticky; top: 100px; display: grid; gap: 18px; }
.side-card { padding: 22px; }
.side-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 14.5px; }
.side-nav a:hover { background: var(--bg); color: var(--blue); }
.side-nav a[aria-current] { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.side-cta { padding: 24px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #2457d6, var(--navy)); border: 0; }
.side-cta h3 { color: var(--gold); }
.side-cta p { color: #d5def7; font-size: 14.5px; }

/* recovered article content */
.prose { font-size: 17px; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font); color: var(--ink); margin: 1.6em 0 .6em; }
.prose h2 { font-size: 24px; } .prose h3 { font-size: 20px; } .prose h4 { font-size: 17px; }
.prose p { margin: 0 0 1.1em; }
.prose img { display: block; margin: 1.4em auto; border-radius: 14px; box-shadow: var(--shadow-sm); }
.prose a { font-weight: 500; }
.prose a[href$=".pdf"]::after { content: "PDF"; font-size: 10px; font-weight: 700; color: var(--red); background: var(--red-50); padding: 1px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.prose a:has(img)::after { display: none; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--blue); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; text-align: left; }
.prose tr:nth-child(even) td { background: #fafbfd; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--gold); background: var(--gold-50); border-radius: 0 12px 12px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose em { color: var(--muted); }
.prose .video { position: relative; aspect-ratio: 16/9; margin: 1.4em 0; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px; }
.recovery-note { padding: 16px 18px; border-radius: 14px; background: var(--warn-50); color: var(--warn); border: 1px solid #fedf89; font-size: 15px; }

.article-hero { margin: -8px 0 28px; border-radius: 22px; overflow: hidden; }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.article-nav a { padding: 18px 20px; text-decoration: none; color: var(--ink); display: grid; gap: 4px; }
.article-nav a:hover { border-color: var(--blue-100); box-shadow: var(--shadow); }
.article-nav span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.article-nav strong { font-size: 15px; line-height: 1.35; }
.article-nav .next { text-align: right; }
.sharebar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: 14.5px; }
.tabs a:hover { border-color: var(--blue); color: var(--blue); }
.tabs a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; }
.pager__info { color: var(--muted); font-size: 14px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 24px; text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); color: var(--ink); }
.tile__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.tile h3 { font-size: 18px; margin: 4px 0 0; }
.tile p { font-size: 14.5px; color: var(--muted); margin: 0; flex: 1; }
.tile .link-arrow { font-size: 14px; color: var(--blue); }
.tile-group { margin-bottom: 44px; }
.tile-group > h2 { font-size: 26px; display: flex; align-items: center; gap: 12px; }

/* directory & contact */
.dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dir-item { padding: 22px; display: flex; gap: 16px; }
.dir-item__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.dir-item h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.dir-item p, .dir-item li { margin: 0; font-size: 15.5px; }
.dir-item ul { list-style: none; padding: 0; margin: 0; }
.dir-item a { color: var(--ink); text-decoration: none; font-weight: 500; }
.dir-item a:hover { color: var(--blue); }
.officers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.officer { padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.officer__avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); flex: none; font-size: 18px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold); }
.officer h3 { font-size: 17px; margin-bottom: 2px; }
.officer .suffix { font-size: 12px; font-weight: 700; color: var(--red); background: var(--red-50); padding: 2px 8px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.officer p { margin: 0; font-size: 14.5px; color: var(--muted); }
.source-note { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.source-note a { color: var(--muted); }

.holidays { width: 100%; border-collapse: separate; border-spacing: 0; }
.holidays th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.holidays td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.holidays tr.is-past td { color: #98a2b3; }
.holidays tr.is-next td { background: var(--gold-50); }
.holidays .datecell { display: flex; align-items: center; gap: 14px; }
.cal-chip { width: 48px; border-radius: 10px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: #fff; flex: none; line-height: 1; }
.cal-chip b { display: block; background: var(--red); color: #fff; font-size: 10.5px; letter-spacing: .08em; padding: 4px 0; text-transform: uppercase; }
.cal-chip span { display: block; font-weight: 700; font-size: 18px; padding: 6px 0; color: var(--ink); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.tag--ph { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue); }
.tag--pt { background: #ecfdf3; border-color: #abefc6; color: #067647; }

/* search */
.searchbox { display: flex; gap: 10px; margin-bottom: 28px; }
.searchbox input { flex: 1; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); font-size: 17px; font-family: inherit; background: #fff; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.result { padding: 20px 22px; }
.result a { font-size: 18px; font-weight: 650; text-decoration: none; }
.result p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.result mark { background: var(--gold-50); color: inherit; padding: 0 2px; border-radius: 3px; }

.errorpage { text-align: center; padding: 100px 20px; }
.errorpage .code { font-family: var(--display); font-size: 120px; line-height: 1; color: var(--blue-100); font-weight: 800; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--navy); color: #c9d4f2; margin-top: 0; }
.footer__flag { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 5px; }
.footer__flag span:nth-child(1) { background: var(--blue); } .footer__flag span:nth-child(2) { background: var(--gold); } .footer__flag span:nth-child(3) { background: var(--red); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 20px 40px; }
.footer__brand img { margin-bottom: 14px; }
.footer__brand p { font-size: 14.5px; }
.footer__brand strong { color: #fff; }
.footer__hours { display: inline-flex; gap: 8px; align-items: center; color: var(--gold); font-weight: 600; }
.footer__h { font-family: var(--font); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; font-weight: 700; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14.5px; }
.footer a { color: #c9d4f2; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.footer a:hover { color: #fff; }
.govfooter { background: #06163d; padding: 34px 0 0; font-size: 13.5px; }
.govfooter__grid { display: grid; grid-template-columns: 1fr 1.3fr 1.5fr; gap: 36px; }
.footer__inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.govfooter__base { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 26px; padding-top: 18px; padding-bottom: 22px; color: #8798c9; }

/* ---------------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .quick__grid { grid-template-columns: repeat(3, 1fr); }
  .mega { grid-template-columns: repeat(3, 1fr); }
  .mega__cta { grid-column: span 3; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw); background: #fff; z-index: 70; transform: translateX(100%); transition: transform .3s var(--ease); display: block; overflow-y: auto; padding: 84px 16px 32px; box-shadow: var(--shadow-lg); }
  body.nav-open .nav { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(6, 22, 61, .5); z-index: 65; }
  body.nav-open .nav-toggle { position: fixed; right: 16px; top: 16px; z-index: 75; }
  .nav__list { flex-direction: column; }
  .nav__link { width: 100%; justify-content: space-between; font-size: 16px; padding: 14px 12px; }
  .nav__item.is-active > .nav__link::after { display: none; }
  .nav__sub { position: static; transform: none !important; opacity: 1; visibility: visible; display: none; }
  .nav__item.is-open > .nav__sub { display: block; }
  .drop, .mega { box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; width: auto; display: block; }
  .mega__col { margin-bottom: 12px; }
  .mega__cta { display: none; }
  .masthead__cta span { display: none; }
  .hero__in { grid-template-columns: 1fr; padding: 64px 20px 110px; }
  .news-layout, .promo, .juris, .vote, .contact-strip, .layout { grid-template-columns: 1fr; }
  .advisories, .side { position: static; }
  .leaders { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .govfooter__grid { grid-template-columns: 1fr; gap: 18px; }
  .list-grid, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo { padding: 36px; }
  .promo__mock { display: none; }
}
@media (max-width: 680px) {
  .govbar__clock:nth-of-type(2), .govbar__link { display: none; }
  .masthead__in { height: 66px; gap: 12px; }
  .brand__kicker { font-size: 9.5px; }
  .brand__name { font-size: 18px; }
  .brand__seal { width: 36px; }
  .quick__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .qcard { padding: 16px 14px; }
  .qcard span { display: none; }
  .news-grid, .list-grid, .tiles, .dir-grid, .officers, .juris__list, .article-nav, .banners { grid-template-columns: 1fr; }
  .news-card--big { flex-direction: column; }
  .news-card--big .news-card__media { min-height: 200px; }
  .news-card--big h3 { font-size: 22px; }
  .section { padding: 56px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-strip__info { padding: 28px; }
  .promo { padding: 28px; border-radius: 22px; }
  .hero__card { display: none; }
  .masthead__cta { padding: 9px 12px; }
}

@media print {
  .govbar, .masthead, .footer, .side, .sharebar, .article-nav, .demo-banner { display: none !important; }
  .pagehead { background: none; color: #000; padding: 0; }
  .pagehead h1, .pagehead p, .crumbs a { color: #000; }
  .card { box-shadow: none; border: 0; }
  body { background: #fff; }
}

/* static OSM map */
.osm { position: absolute; inset: 0; overflow: hidden; display: block; background: #e8e4dc; }
.osm__tiles { position: absolute; left: 0; top: 0; width: 1536px; height: 1280px; }
.osm__tiles img { position: absolute; width: 256px; height: 256px; max-width: none; filter: saturate(.85) contrast(1.02); }
.osm__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); }
.osm__pin span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); box-shadow: 0 10px 24px -6px rgba(206, 17, 38, .7); border: 3px solid #fff; animation: pinDrop .7s var(--ease) both; }
.osm__pin img { width: 26px; transform: rotate(45deg); }
@keyframes pinDrop { from { transform: translateY(-30px) rotate(-45deg); opacity: 0; } to { transform: rotate(-45deg); opacity: 1; } }
.osm__pin::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 18px; height: 6px; margin-left: -9px; border-radius: 50%; background: rgba(0, 0, 0, .25); filter: blur(2px); }
.osm__label { position: absolute; left: 50%; top: calc(50% + 18px); transform: translateX(-50%); background: #fff; color: var(--ink); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }
.osm__attr { position: absolute; right: 6px; bottom: 6px; background: rgba(255, 255, 255, .85); color: #444; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.osm:hover .osm__label { color: var(--blue); }
.osm__tiles { left: 50%; top: 50%; }
.osm__tiles img { display: block; }
html, body { overflow-x: clip; }
.masthead__in { position: relative; }
@media (min-width: 1081px) { .nav__item.is-mega { position: static; } .is-mega > .nav__sub { left: 50%; top: calc(100% - 4px); } }
@media (max-width: 680px) {
  .brand { min-width: 0; flex: 1; }
  .brand__kicker { display: none; }
  .masthead__actions { gap: 6px; flex: none; }
  .masthead__actions .iconbtn { width: 38px; height: 38px; }
  .masthead__cta { width: 38px; height: 38px; padding: 0; border-radius: 12px; }
}
@media (max-width: 1080px) {
  .masthead { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  body.nav-open .masthead { z-index: 80; }
  .nav { height: 100vh; height: 100dvh; }
}
