/* MASTECH DIGITAL public website — layout modelled on the Webster College site.
   --brand and --accent come from Website → General & branding (printed in the page head). */
:root {
  --brand: #0b2a4a;
  --accent: #f2b705;
  --brand-deep: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 8%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 18%, #fff);
  --accent-ink: color-mix(in srgb, var(--accent) 65%, #5a3e00);
  --ink: #16202b;
  --muted: #5b6676;
  --line: #e3e7ee;
  --bg: #ffffff;
  --tint: #f5f7fb;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 42, 74, .06), 0 10px 30px -12px rgba(11, 42, 74, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brand); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
body.sans h1, body.sans h2, body.sans h3 { font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--accent); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.empty { color: var(--muted); font-style: italic; }
.fine { font-size: .9rem; color: var(--muted); }
.si { width: 1.1em; height: 1.1em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 .98rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.03rem; }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 80%, #000); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-deep); }
.btn-outline-light { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--brand); }
.more { font-weight: 700; text-decoration: none; color: var(--brand); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { font: 700 .82rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .7rem; }
.eyebrow-light { color: var(--accent); }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand-deep); color: rgba(255,255,255,.88); font-size: .9rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar p { margin: 0; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.topbar span { display: inline-flex; gap: .4rem; align-items: center; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .si { color: var(--accent); }
.topbar-links { gap: .6rem !important; }
.topbar-links span { opacity: .5; }

/* ---------- Header ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 20px -16px rgba(0,0,0,.4); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.brand-badge { width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: var(--accent); display: grid; place-items: center;
  font: 800 1.15rem var(--font-head); border: 3px solid var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font: 800 1.2rem/1.15 var(--font-head); color: var(--brand); }
.brand-text em { font-style: italic; color: var(--accent-ink); font-size: .92rem; font-weight: 600; }
.mainnav ul { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; }
.mainnav a, .drop-btn { display: block; padding: .55rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink); font: 600 .98rem var(--font-body); background: none; border: 0; cursor: pointer; }
.mainnav a:hover, .drop-btn:hover { color: var(--brand); background: var(--brand-soft); }
.mainnav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav-cta { margin-left: .5rem; }
.nav-cta a.btn { padding: .6rem 1.1rem; color: var(--ink); }
.nav-cta a.btn:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); color: var(--ink); }
.has-drop { position: relative; }
.drop { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 300px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: .5rem; display: none; }
.drop::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-drop.open .drop, .has-drop:hover .drop, .has-drop:focus-within .drop { display: block; }
.drop a { display: grid; padding: .6rem .8rem; }
.drop a strong { color: var(--brand); font-size: .98rem; }
.drop a small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brand); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Announcement ribbon */
.ribbon { background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, #fff); color: var(--ink); font-size: .97rem; }
.ribbon .wrap { display: flex; gap: .6rem; align-items: center; padding: .6rem 0; }
.ribbon p { margin: 0; }
.ribbon a { font-weight: 700; margin-left: .3rem; }
.ribbon .si { color: var(--brand); }

/* ---------- Hero slideshow ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero-medium { min-height: 480px; }
.hero-tall { min-height: min(640px, 86vh); }
.hero-full { min-height: calc(100vh - 78px); }
.slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active img { transform: scale(1); }
.slide figcaption { position: absolute; right: 1.5rem; bottom: 4.5rem; max-width: 320px; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); padding: .7rem 1rem; border-radius: 10px; font-size: .92rem; display: grid; gap: .2rem; }
.slide figcaption a { color: var(--accent); font-weight: 700; text-decoration: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 92%, transparent) 0%, color-mix(in srgb, var(--brand) 70%, transparent) 45%, color-mix(in srgb, var(--brand) 20%, transparent) 100%); }
.overlay-light::before { opacity: .7; }
.overlay-strong::before { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 96%, transparent), color-mix(in srgb, var(--brand) 82%, transparent)); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 3rem; align-items: center; padding: 4.5rem 0 5.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.08; margin-bottom: 1.1rem; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero h1 em, .sec-head h2 em, .cta h2 em { color: var(--accent); font-style: italic; }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 58ch; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.glance { background: rgba(255,255,255,.96); color: var(--ink); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); border-top: 5px solid var(--accent); }
.glance h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.glance dl { margin: 0; }
.glance dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.glance dl div:first-child { border-top: 0; }
.glance dt { color: var(--muted); font-size: .94rem; }
.glance dd { margin: 0; font-weight: 700; text-align: right; color: var(--brand); }
.slider-ui { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; align-items: center; gap: .6rem; z-index: 2;
  background: rgba(0,0,0,.28); backdrop-filter: blur(6px); padding: .35rem .5rem; border-radius: 999px; }
.sl-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.sl-btn:hover { background: var(--accent); color: var(--ink); }
.sl-dots { display: flex; gap: .4rem; }
.sl-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s, background .3s; }
.sl-dots button.on { width: 26px; background: var(--accent); }

/* Counters */
.stats { position: relative; z-index: 3; margin-top: -2.6rem; }
.stats-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 1.4rem 1.2rem; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 800 clamp(1.9rem, 3.5vw, 2.6rem)/1 var(--font-head); color: var(--brand); }
.stat span { display: block; color: var(--muted); margin-top: .35rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--tint); }
.sec-head { max-width: 760px; margin-bottom: 2.4rem; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head > p:last-child:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: .5rem; }
.card-tag { font: 700 .76rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: .3rem .65rem; border-radius: 999px; text-align: right; }
.card .more { margin-top: auto; padding-top: .8rem; }
.ico-round { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: var(--accent); flex: none; }
.ico-round .si { width: 26px; height: 26px; }
.ico-lg { width: 64px; height: 64px; }
.ticks { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .42em; width: .95rem; height: .5rem; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.ticks-lg li { font-weight: 600; }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.promo { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-left: 5px solid var(--accent); display: flex; flex-direction: column; align-items: flex-start; }
.promo p:not(.eyebrow) { color: var(--muted); }
.promo .btn { margin-top: auto; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.feature { padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature .ico-round { margin-bottom: 1rem; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.feature.with-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 1rem; }

/* News & events */
.news-wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 2.5rem; align-items: start; }
.news-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-bottom: 1.2rem; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card h3 { font-size: 1.15rem; margin: .4rem 0; }
.news-card p { color: var(--muted); font-size: .97rem; }
.news-card .more { margin-top: auto; }
.news-date { font-size: .8rem; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .05em; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.events li { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.cal { flex: none; width: 54px; text-align: center; background: var(--brand); color: #fff; border-radius: 10px; padding: .35rem 0 .45rem; font-size: .76rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.cal b { display: block; font: 800 1.45rem var(--font-head); color: var(--accent); }
.events a { font-weight: 700; text-decoration: none; color: var(--ink); }
.events a:hover { color: var(--brand); text-decoration: underline; }
.events small { display: block; color: var(--muted); }

/* Closing banner */
.cta { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 3.5rem 0; position: relative; z-index: 1; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .4rem; }
.cta p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.1rem; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.cta-call { color: #fff; font-weight: 700; text-decoration: none; }
.cta-call:hover { color: var(--accent); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; isolation: isolate; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--accent); }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 92%, transparent), color-mix(in srgb, var(--brand) 55%, transparent)); }
.page-hero-in { padding: 3.6rem 0 3.2rem; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); margin: .4rem 0 .5rem; }
.page-hero p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.12rem; max-width: 65ch; }
.crumbs { font-size: .92rem; color: rgba(255,255,255,.75); }
.crumbs a { color: var(--accent); text-decoration: none; }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.split-aside { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.split-solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.prose { font-size: 1.08rem; }
.prose p { max-width: 70ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.note { margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--accent-soft); border-radius: 10px; }
.note p:last-child { margin: 0; }
.about-img { margin: 0; position: relative; z-index: 0; }
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.about-img::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--accent); border-radius: var(--radius); z-index: -1; }
.quote { margin: 2rem 0 0; padding: 1.4rem 1.6rem; background: var(--brand-soft); border-left: 5px solid var(--accent); border-radius: 0 12px 12px 0; }
.quote p { font: italic 600 1.25rem/1.5 var(--font-head); color: var(--brand); margin: 0 0 .5rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--muted); }
.vmv { display: grid; gap: 1.4rem; }
.vmv-3 { grid-template-columns: repeat(3, 1fr); }
.vmv-2 { grid-template-columns: repeat(2, 1fr); }
.vmv-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border-top: 5px solid var(--brand); }
.vmv-card:nth-child(2) { border-top-color: var(--accent); }
.vmv-card p { margin: 0; color: var(--muted); }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.leader { text-align: center; background: #fff; border-radius: var(--radius); padding: 1.6rem 1.2rem; border: 1px solid var(--line); }
.leader img, .leader-ph { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid var(--accent); }
.leader-ph { display: grid; place-items: center; background: var(--brand); color: var(--accent); font: 800 2rem var(--font-head); }
.leader h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.leader .role { color: var(--accent-ink); font-weight: 700; font-size: .92rem; margin-bottom: .5rem; }
.leader p:last-child:not(.role) { color: var(--muted); font-size: .95rem; margin: 0; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.side-card h3 { font-size: 1.2rem; }
.side-brand { background: var(--brand); color: #fff; border: 0; display: grid; gap: .6rem; justify-items: start; }
.side-brand h3 { color: #fff; margin: 0; }
.side-brand a:not(.btn) { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.side-brand p { margin: 0; }
.stack-aside { display: grid; gap: 1.2rem; }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.side-links a { font-weight: 700; text-decoration: none; }
.side-links small { display: block; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; position: relative; padding: 1rem 1.2rem 1rem 4rem; background: var(--tint); border-radius: 12px; font-size: 1.05rem; }
.steps li::before { content: counter(s); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--brand); color: var(--accent); display: grid; place-items: center; font: 800 1.05rem var(--font-head); }
.prog-list { display: grid; gap: 1.2rem; }
.prog-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start; background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); scroll-margin-top: 100px; }
.prog-row h3 { margin-bottom: .6rem; }
.prog-row:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--brand-soft); color: var(--brand); padding: .35rem .8rem; border-radius: 999px; font-weight: 600; font-size: .94rem; }
.chips-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.chips-nav a { text-decoration: none; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; }
.chips-nav a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips-nav small { opacity: .7; }
.event-when { display: flex; gap: .5rem; align-items: center; font-weight: 700; color: var(--brand); background: var(--accent-soft); padding: .7rem 1rem; border-radius: 10px; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.contact-card .ico-round { margin-bottom: .9rem; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { text-decoration: none; font-weight: 700; }
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); display: grid; gap: 1rem; border-top: 5px solid var(--accent); scroll-margin-top: 100px; }
.form-card h2 { font-size: 1.7rem; margin: 0; }
.form-card label { display: grid; gap: .3rem; font-weight: 700; font-size: .95rem; }
.form-card input, .form-card textarea { font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-card .btn { justify-self: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.flash { padding: .8rem 1rem; border-radius: 10px; font-weight: 600; }
.flash-success { background: #e6f5ec; color: #145a32; }
.flash-error { background: #fdeaea; color: #8a1c1c; }
.flash-info { background: var(--accent-soft); }

/* Gallery + lightbox */
.gallery { columns: 3 260px; column-gap: 1rem; }
.g-item { display: block; position: relative; margin-bottom: 1rem; border-radius: 12px; overflow: hidden; break-inside: avoid; }
.g-item img { width: 100%; transition: transform .4s; }
.g-item:hover img { transform: scale(1.04); }
.g-item span { position: absolute; inset: auto 0 0; padding: 1.6rem .9rem .7rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: .92rem; font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,12,20,.92); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .6rem; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 8px; }
.lightbox figcaption { color: #fff; }
.lightbox button { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-close { position: absolute; top: 1rem; right: 1rem; }

/* Downloads */
.dl-cat { font-size: 1.4rem; margin: 2rem 0 1rem; }
.dl-cat:first-child { margin-top: 0; }
.dl-list { display: grid; gap: .7rem; }
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.dl:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.dl-ext { width: 48px; height: 56px; border-radius: 6px 14px 6px 6px; background: var(--brand); color: var(--accent); display: grid; place-items: end center; padding-bottom: .4rem; font: 800 .72rem var(--font-body); }
.dl-main strong { display: block; color: var(--brand); }
.dl-main small { color: var(--muted); }
.dl-meta { color: var(--muted); font-size: .88rem; }
.dl-go { font-weight: 700; color: var(--brand); }

/* ---------- Footer ---------- */
.sitefoot { background: var(--brand-deep); color: rgba(255,255,255,.82); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3.8rem 0 2.6rem; }
.sitefoot h4 { color: #fff; font: 700 1.05rem var(--font-body); letter-spacing: .04em; margin-bottom: 1rem; position: relative; padding-bottom: .6rem; }
.sitefoot h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--accent); border-radius: 3px; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sitefoot a { color: rgba(255,255,255,.85); text-decoration: none; }
.sitefoot a:hover { color: var(--accent); }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-badge { background: transparent; }
.foot-brand p { margin: 1rem 0 1.2rem; }
.foot-contact li { display: flex; gap: .55rem; align-items: flex-start; }
.foot-contact .si { color: var(--accent); margin-top: .3rem; }
.foot-social { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.foot-social svg { width: 18px; height: 18px; }
.wa { display: inline-flex; gap: .45rem; align-items: center; background: #25d366; color: #fff !important; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; }
.soc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.soc:hover { background: var(--accent); color: var(--ink) !important; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.foot-bottom-in { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; flex-wrap: wrap; }
.foot-bottom p { margin: 0; }
.foot-motto { color: var(--accent); font-style: italic; }
.to-top { position: fixed; right: 1.1rem; bottom: 1.1rem; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center;
  text-decoration: none; font-weight: 800; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 30; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .mainnav a, .drop-btn { padding: .5rem .55rem; font-size: .94rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .mainnav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: #fff; box-shadow: -20px 0 40px -20px rgba(0,0,0,.4); padding: 5rem 1.2rem 2rem;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; z-index: 50; }
  .mainnav.open { transform: none; }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .mainnav a, .drop-btn { padding: .8rem 1rem; font-size: 1.05rem; text-align: left; width: 100%; }
  .drop { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 0 .8rem; display: none; }
  .has-drop:hover .drop, .has-drop:focus-within .drop { display: none; }
  .has-drop.open .drop { display: block; }
  .nav-cta { margin: 1rem 0 0; }
  .hero-in { grid-template-columns: 1fr; padding: 3.5rem 0 5rem; gap: 2rem; }
  .news-wrap, .split, .split-aside { grid-template-columns: 1fr; }
  .vmv-3 { grid-template-columns: 1fr; }
  .slide figcaption { display: none; }
}
@media (max-width: 640px) {
  .cards, .cards-3, .features, .vmv-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand-text strong { font-size: 1rem; }
  .brand-text em { font-size: .8rem; }
  .brand-logo, .brand-badge { width: 44px; height: 44px; }
  .two { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .topbar-links { display: none !important; }
  .dl { grid-template-columns: auto minmax(0, 1fr); }
  .dl-meta, .dl-go { grid-column: 2; }
  .prog-row { grid-template-columns: 1fr; }
}

/* ---- E-voting (public) ---- */
:root { --ev0:#1f6f4a; --ev1:#e8a317; --ev2:#2f6fb5; --ev3:#a8322d; --ev4:#7a4fa3; --ev5:#1d9aa6; --ev6:#d4682a; --ev7:#5c6b66; }
.ev-chart { width: 100%; height: auto; display: block; color: #1b2430; }
.ev-grid { stroke: #d9dee5; stroke-width: 1; stroke-dasharray: 3 4; }
.ev-axis { font-size: 11px; fill: #6b7683; }
.ev-label { font-size: 14px; fill: currentColor; font-weight: 600; }
.ev-value { font-size: 13px; fill: currentColor; font-weight: 700; }
.ev-track { fill: #e6eaee; }
.ev-slice { font-size: 13px; font-weight: 800; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 2px; }
.ev-sep { stroke: #fff; stroke-width: 2; }
.ev-legend { font-size: 13px; font-weight: 700; fill: currentColor; }
.ev-legend-sub { font-size: 12px; fill: #6b7683; }
.ev-photo { border-radius: 50%; object-fit: cover; flex: none; background: #eef2f6; border: 3px solid #fff; box-shadow: 0 0 0 1px #d9dee5; }
.ev-avatar { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--brand); }
.ev-banner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 2rem 2.25rem; border-radius: 1.25rem; color: #fff; margin-bottom: 2rem;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, #000), var(--brand)); }
.ev-banner h2 { color: #fff; margin: .25rem 0 .4rem; }
.ev-banner p { margin: 0; opacity: .88; }
.ev-banner .eyebrow { color: var(--accent); }
.ev-ring { --p: 0; width: 8.5rem; height: 8.5rem; border-radius: 50%; display: grid; place-items: center; text-align: center; position: relative;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.2) 0); }
.ev-ring::before { content: ""; position: absolute; inset: .8rem; border-radius: 50%; background: color-mix(in srgb, var(--brand) 75%, #000); }
.ev-ring span { position: relative; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.ev-ring small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .85; margin-top: .25rem; }
.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.ev-fact { background: #fff; border: 1px solid #e3e8ee; border-radius: 1rem; padding: 1.1rem 1.25rem; border-top: 4px solid var(--ev0); box-shadow: 0 6px 20px -16px rgba(11,42,74,.5); }
.ev-fact:nth-child(2) { border-top-color: var(--ev1); } .ev-fact:nth-child(3) { border-top-color: var(--ev2); } .ev-fact:nth-child(4) { border-top-color: var(--ev4); }
.ev-fact b { display: block; font-size: 2rem; line-height: 1.1; color: var(--brand); }
.ev-fact span { color: #6b7683; font-size: .9rem; }
.ev-pos { background: #fff; border: 1px solid #e3e8ee; border-radius: 1.25rem; margin-bottom: 2rem; overflow: hidden; box-shadow: 0 10px 30px -22px rgba(11,42,74,.6); }
.ev-pos > header { padding: 1.1rem 1.6rem; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 8%, #fff), #fff); border-bottom: 1px solid #e3e8ee; display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.ev-pos > header h3 { margin: 0; }
.ev-pos-body { display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(18rem, 1.25fr); gap: 2rem; padding: 1.5rem 1.6rem; }
@media (max-width: 60rem) { .ev-pos-body, .ev-banner { grid-template-columns: 1fr; } }
.ev-cands { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ev-cand { display: flex; gap: 1rem; align-items: center; padding: .75rem .9rem; border-radius: .9rem; border: 1px solid transparent; }
.ev-cand.is-winner { background: color-mix(in srgb, var(--accent) 16%, #fff); border-color: var(--accent); }
.ev-cand .who { flex: 1; min-width: 0; }
.ev-cand .who strong { display: block; font-size: 1.05rem; }
.ev-cand .who small { color: #6b7683; }
.ev-cand .tally { text-align: right; font-weight: 800; font-size: 1.35rem; line-height: 1.1; color: var(--brand); }
.ev-cand .tally small { display: block; font-size: .8rem; font-weight: 600; color: #6b7683; }
.ev-meter { height: .5rem; border-radius: 99px; background: #e6eaee; overflow: hidden; margin-top: .4rem; }
.ev-meter i { display: block; height: 100%; border-radius: 99px; }
.ev-badge { display: inline-block; padding: .12rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: #1b2430; vertical-align: middle; }
.ev-badge.tie { background: #1b2430; color: #fff; }
.ev-charts { display: grid; gap: 1rem; align-content: start; }
.ev-charts figure { margin: 0; padding: 1rem 1.15rem; border: 1px solid #e3e8ee; border-radius: 1rem; background: #fafbfc; }
.ev-charts figcaption { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #6b7683; margin-bottom: .6rem; }
.ev-groups { width: 100%; border-collapse: collapse; }
.ev-groups th, .ev-groups td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid #e3e8ee; }
.ev-groups td:last-child, .ev-groups th:last-child { text-align: right; }
/* Voting page */
.vote-card { max-width: 34rem; margin: 0 auto; background: #fff; border: 1px solid #e3e8ee; border-radius: 1.25rem; padding: 2rem; box-shadow: 0 16px 40px -26px rgba(11,42,74,.6); }
.vote-card input[type=text] { width: 100%; font: inherit; font-size: 1.6rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; text-align: center; padding: .8rem; border: 2px solid #cfd6de; border-radius: .75rem; }
.vote-card input[type=text]:focus { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); border-color: var(--brand); }
.vote-pos { background: #fff; border: 1px solid #e3e8ee; border-radius: 1.1rem; margin-bottom: 1.5rem; overflow: hidden; }
.vote-pos > header { padding: .9rem 1.3rem; background: color-mix(in srgb, var(--brand) 8%, #fff); border-bottom: 1px solid #e3e8ee; }
.vote-pos > header h3 { margin: 0; }
.vote-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; padding: 1.2rem 1.3rem; }
.ev-choice { position: relative; display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; border: 2px solid #e3e8ee; border-radius: 1rem; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.ev-choice:hover { border-color: color-mix(in srgb, var(--brand) 50%, #fff); }
.ev-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ev-choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--accent) 14%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
.ev-choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.ev-choice .tick { margin-left: auto; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid #cfd6de; flex: none; display: grid; place-items: center; font-size: .9rem; color: transparent; }
.ev-choice:has(input:checked) .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.ev-choice strong { display: block; } .ev-choice small { color: #6b7683; display: block; }
.ev-choice.abstain { border-style: dashed; }
.ev-manifesto { grid-column: 1 / -1; font-size: .9rem; color: #4a5562; margin: -.35rem 0 0; }
.vote-receipt { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.8rem; font-weight: 800; letter-spacing: .15em; color: var(--brand); text-align: center; margin: 1rem 0; }
.vote-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #e3e8ee; padding: .9rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; box-shadow: 0 -10px 24px -20px rgba(11,42,74,.6); }

/* Receipt check: the ballot-ledger fingerprint */
.ev-fp { font: 600 .8rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; background: rgba(0,0,0,.05); padding: .15rem .5rem; border-radius: .4rem; }
