/* ==========================================================================
   Barangay Tigayon Portal · main.css
   Built on the Kapwa design system tokens used by BetterAklan.org
   (values read from betteraklan.org on 2026-11-11). Mobile-first.
   ========================================================================== */

:root {
  /* Brand */
  --kapwa-brand-50: #ebf6ff;
  --kapwa-brand-100: #d1ecff;
  --kapwa-brand-200: #aedfff;
  --kapwa-brand-500: #0787ff;
  --kapwa-brand-600: #005df5;
  --kapwa-brand-700: #0052d6;
  --kapwa-brand-800: #004ac2;
  --kapwa-brand-950: #062365;
  /* Gray */
  --kapwa-gray-50: #f7f7f8;
  --kapwa-gray-100: #ecedee;
  --kapwa-gray-200: #d8dbdf;
  --kapwa-gray-300: #c6ccd2;
  --kapwa-gray-400: #b8c0c6;
  --kapwa-gray-500: #abb2ba;
  --kapwa-gray-600: #6f7c88;
  --kapwa-gray-700: #596570;
  --kapwa-gray-800: #49525b;
  --kapwa-gray-950: #1e2124;
  /* Accents */
  --kapwa-blue-500: #0c83eb;
  --kapwa-blue-600: #006ac7;
  --kapwa-orange-50: #fff9ed;
  --kapwa-orange-600: #ed7609;
  --kapwa-orange-700: #c45a0a;
  --kapwa-yellow-50: #fefce8;
  --kapwa-yellow-500: #ecb706;
  --kapwa-yellow-800: #864f0d;
  --kapwa-green-50: #effef5;
  --kapwa-green-600: #0b7f42;
  --kapwa-green-700: #0a713a;
  --kapwa-red-50: #fff1f2;
  --kapwa-red-600: #e9192f;
  --kapwa-red-700: #ce1226;
  --primary-500: #0066eb;

  /* Semantic (Kapwa names) */
  --text-strong: var(--kapwa-gray-950);
  --text-support: var(--kapwa-gray-700);
  --text-disabled: var(--kapwa-gray-500);
  --text-brand: var(--kapwa-brand-600);
  --text-link: var(--kapwa-blue-500);
  --text-link-hover: var(--kapwa-blue-600);
  --bg-surface: #fff;
  --bg-raised: var(--kapwa-gray-50);
  --bg-bold: var(--kapwa-gray-950);
  --bg-brand: var(--kapwa-brand-600);
  --bg-brand-hover: var(--kapwa-brand-700);
  --bg-brand-weak: var(--kapwa-brand-50);
  --border-weak: var(--kapwa-gray-200);
  --border-strong: var(--kapwa-gray-400);
  --border-brand: var(--kapwa-brand-600);
  --border-focus: var(--kapwa-blue-500);

  --radius: .625rem;          /* 10px: buttons, tiles, badges */
  --radius-xl: .875rem;       /* 14px: inputs, panels */
  --radius-2xl: 1rem;         /* 16px: cards */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --nav-h: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--text-strong); background: var(--bg-surface); -webkit-font-smoothing: antialiased; }
::selection { background: var(--primary-500); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--text-link); text-underline-offset: 3px; }
a:hover { color: var(--text-link-hover); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bg-brand); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.center { text-align: center; justify-content: center; }
.mt-10 { margin-top: 40px; }
.mb-8 { margin-bottom: 32px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.noscript { padding: 16px; text-align: center; background: var(--kapwa-yellow-50); }
.sm-show { display: none; }

/* ---------- Kapwa type scale ---------- */
.heading-xl { font-size: 40px; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
.heading-lg { font-size: 32px; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
.heading-md { font-size: 24px; line-height: 1.35; font-weight: 700; }
.eyebrow-sm { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-disabled); }
.eyebrow-sm--brand { color: var(--text-brand); }
.fineprint { font-size: 13px; color: var(--text-support); margin-top: 24px; }

/* ---------- Buttons, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 500; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color .15s var(--ease), color .15s, border-color .15s; }
.btn .i { width: 18px; height: 18px; }
.btn--primary { background: var(--bg-brand); color: #fff; }
.btn--primary:hover { background: var(--bg-brand-hover); color: #fff; }
.btn--outline { background: #fff; color: var(--text-brand); border-color: var(--border-brand); }
.btn--outline:hover { background: var(--bg-brand-weak); color: var(--text-brand); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; font-weight: 500; color: var(--primary-500); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; color: var(--primary-500); }
.link-btn .i { width: 16px; height: 16px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--border-weak); background: var(--bg-raised); color: var(--text-support); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.badge--sm { padding: 2px 8px; font-size: 10px; }
.badge--orange { background: var(--kapwa-orange-50); color: var(--kapwa-orange-700); border-color: var(--kapwa-orange-600); }
.badge--brand { background: var(--bg-brand-weak); color: var(--kapwa-brand-800); border-color: var(--kapwa-brand-200); }
.badge--muted { background: var(--bg-raised); color: var(--text-support); border-color: var(--border-weak); }
.badge--hero { padding: 2px 8px; font-size: 10px; color: #fff; background: transparent; border-color: rgb(255 255 255 / .2); }
.badge--hero:hover { background: rgb(255 255 255 / .2); color: #fff; }
.badge--hero .i { width: 16px; height: 16px; }

/* ---------- Navigation (BetterAklan pattern) ---------- */
.topnav { position: sticky; top: 0; z-index: 50; background: var(--bg-surface); border-bottom: 1px solid var(--border-weak); box-shadow: var(--shadow-xs); }
.topnav__utility { background: var(--bg-raised); border-bottom: 1px solid var(--border-weak); }
.topnav__utility-in { display: flex; justify-content: flex-end; align-items: center; gap: 24px; height: 40px; }
.util { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--text-support); text-decoration: none; }
.util:hover, .util--brand { color: var(--text-brand); }
.util--brand:hover { color: var(--text-link-hover); }
.topnav__main { display: flex; justify-content: space-between; align-items: center; height: 80px; gap: 16px; }
.brand { display: flex; align-items: center; min-width: 0; text-decoration: none; color: var(--text-strong); }
.brand:hover { color: var(--text-strong); }
.brand img { width: 56px; height: 56px; margin-right: 12px; flex: none; object-fit: contain; transition: transform .15s var(--ease); }
.brand:hover img { transform: scale(1.05); }
.brand__text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.brand__name { font-size: 20px; font-weight: 900; letter-spacing: -.05em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub { font-size: 12px; font-weight: 500; color: var(--text-support); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu { display: flex; align-items: center; gap: 4px; height: 100%; }
.menu__link { display: flex; align-items: center; height: 100%; padding: 8px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--text-strong); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.menu__link:hover { color: var(--text-brand); }
.menu__link.is-active { color: var(--text-brand); border-bottom-color: var(--border-brand); }
.menu-btn { display: none; padding: 12px; border: 0; background: none; color: var(--text-strong); cursor: pointer; border-radius: var(--radius); }

.infobar { background: var(--bg-bold); color: #fff; font-size: 12px; }
.infobar__in { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-height: 36px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.infobar__in::-webkit-scrollbar { display: none; }
.infobar span { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.infobar b { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.infobar .i { width: 14px; height: 14px; color: var(--kapwa-yellow-500); }
.infobar .sep { width: 1px; height: 14px; background: var(--kapwa-gray-700); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(to right, var(--kapwa-brand-600), var(--kapwa-brand-700)); color: #fff; padding: 96px 0; }
.hero__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero__lead { max-width: 32rem; margin-bottom: 32px; font-size: 16px; line-height: 1.4; opacity: .8; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.search { position: relative; width: 100%; }
.search__icon { position: absolute; left: 16px; top: 22px; translate: 0 -50%; width: 16px; height: 16px; color: var(--text-disabled); pointer-events: none; }
.input { width: 100%; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border-weak); border-radius: var(--radius-xl); background: var(--bg-surface); color: var(--text-strong); font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.input::placeholder { color: var(--text-disabled); }
.input:focus { outline: none; border-color: var(--border-brand); box-shadow: 0 0 0 4px rgb(0 93 245 / .08); }
.input--search { height: 44px; padding-left: 44px; }
.hero .input--search { background: rgb(255 255 255 / .9); }
.hero .input--search:focus { background: #fff; }
textarea.input { min-height: 132px; resize: vertical; }
/* Date and month pickers: iPhone Safari gives these a fixed built-in width and centres
   the text, so they stuck out of their box. Reset them to behave like the other inputs. */
input.input[type="date"], input.input[type="month"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; min-width: 0; max-width: 100%;
  height: 44px; line-height: 22px; text-align: left;
}
input.input[type="date"]::-webkit-date-and-time-value,
input.input[type="month"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input.input[type="date"]::-webkit-datetime-edit,
input.input[type="month"]::-webkit-datetime-edit { padding: 0; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23596570' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.search__results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--text-strong); border: 1px solid var(--border-weak); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); max-height: 340px; overflow-y: auto; }
.search__results a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--text-strong); text-decoration: none; }
.search__results a:hover, .search__results [aria-selected="true"] a { background: var(--bg-brand-weak); color: var(--text-brand); }
.search__results small { color: var(--text-support); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.search__empty { padding: 10px 12px; color: var(--text-support); font-size: 14px; }

.quick { padding: 24px; border-radius: var(--radius-xl); background: rgb(255 255 255 / .1); backdrop-filter: blur(4px); box-shadow: var(--shadow-lg); }
.quick h2 { margin-bottom: 16px; }
.quick__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quick__tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px; border-radius: var(--radius); background: rgb(255 255 255 / .1); color: #fff; text-decoration: none; transition: background .2s var(--ease); }
.quick__tile:hover { background: rgb(255 255 255 / .2); color: #fff; }
.quick__icon { display: grid; place-items: center; padding: 12px; margin-bottom: 12px; border-radius: 999px; background: var(--kapwa-brand-500); }
.quick__tile b { font-weight: 500; }
.quick__tile small { font-size: 14px; opacity: .8; margin-top: 4px; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } }
.fade-in { animation: fadeIn .6s var(--ease) both; }
.slide-in { animation: slideIn .6s var(--ease) .1s both; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; background: var(--bg-surface); }
.section + .section { border-top: 1px solid var(--border-weak); }
.section--raised { background: var(--bg-raised); }
.section__head { text-align: center; margin-bottom: 48px; }
.section__head h2 { margin-bottom: 16px; }
.section__head p { max-width: 42rem; margin-inline: auto; color: var(--text-support); }

.grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Cards (Kapwa card) ---------- */
.group { display: block; height: 100%; color: inherit; text-decoration: none; }
.group:hover { color: inherit; }
.card { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--border-weak); background: var(--bg-surface); box-shadow: var(--shadow-sm); transition: all .3s var(--ease); }
.card--link, .card--hover { height: 100%; }
.card--hover { display: flex; flex-direction: column; }
.card--hover > .card__pad { flex: 1; height: auto; }
.group:hover .card, .card--hover:hover { border-color: var(--border-brand); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card__pad { padding: 24px; display: flex; flex-direction: column; height: 100%; }
.card__icon { display: inline-grid; place-items: center; align-self: flex-start; padding: 12px; margin-bottom: 16px; border-radius: var(--radius); background: var(--bg-surface); color: var(--text-brand); transition: background-color .15s, color .15s; }
.center .card__icon { align-self: center; }
.group:hover .card__icon { background: var(--bg-brand); color: #fff; }
.card__icon--lg .i { width: 40px; height: 40px; }
.card__icon--lg { padding: 4px; }
.card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-strong); transition: color .15s; }
.card__title--xl { font-size: 20px; font-weight: 600; }
.group:hover .card__title { color: var(--text-brand); }
.card__text { flex: 1; font-size: 14px; color: var(--text-support); margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { font-size: 13px; color: var(--text-disabled); margin-top: -12px; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--kapwa-gray-100); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card--hover:hover .card__media img { transform: scale(1.04); }
.card__count { position: absolute; right: 12px; top: 12px; }
.card__area { position: absolute; left: 12px; top: 12px; }
.card__credit { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 16px 10px 6px; font-size: 10px; line-height: 1.3; color: #fff; background: linear-gradient(to top, rgb(30 33 36 / .75), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__credit a { color: #fff; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .5); position: relative; z-index: 2; }
.chip--area { border-color: var(--kapwa-orange-600); color: var(--kapwa-orange-700); background: var(--kapwa-orange-50); }
.chip--area[aria-pressed="true"] { background: var(--kapwa-orange-700); border-color: var(--kapwa-orange-700); color: #fff; }
.modal__credit { position: absolute; right: 12px; bottom: 12px; max-width: 70%; margin: 0; padding: 4px 8px; border-radius: 6px; background: rgb(30 33 36 / .75); color: #fff; font-size: 11px; }
.modal__credit a { color: #fff; }
.card__loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-support); margin-bottom: 8px; }
.card__loc .i { width: 14px; height: 14px; color: var(--text-brand); }
.card__actions { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; margin-top: auto; }
.card__actions .link-btn { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; }
.card__more::after { content: ""; position: absolute; inset: 0; }
.card__actions a.link-btn { position: relative; z-index: 1; }
.seal { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; object-fit: contain; }
img.seal[src*="logo-council"] { border-radius: 0; }
.card--skeleton { min-height: 360px; background: linear-gradient(90deg, var(--kapwa-gray-50) 25%, #fff 50%, var(--kapwa-gray-50) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.filters--inline { justify-content: flex-start; margin: 0; }
.chip { min-height: 36px; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border-weak); background: var(--bg-surface); color: var(--text-support); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .15s var(--ease); }
.chip:hover { border-color: var(--border-brand); color: var(--text-brand); }
.chip[aria-pressed="true"] { background: var(--bg-brand); border-color: var(--bg-brand); color: #fff; }

/* ---------- Request form ---------- */
.request { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.request__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 16px); }
.form__in { gap: 28px; }
.form__group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form__legend { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; margin-bottom: 16px; padding: 0; }
.step { display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding: 0 8px; border-radius: var(--radius); background: var(--bg-brand); color: #fff; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm); }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.type { position: relative; text-align: left; padding: 14px 16px; min-height: 78px; border-radius: var(--radius-xl); border: 1px solid var(--border-weak); background: var(--bg-surface); cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: all .15s var(--ease); }
.type:hover { border-color: var(--border-brand); }
.type b { font-size: 15px; font-weight: 700; }
.type small { font-size: 13px; color: var(--text-support); line-height: 1.4; }
.type[aria-checked="true"] { border-color: var(--border-brand); background: var(--bg-brand-weak); box-shadow: inset 0 0 0 1px var(--border-brand); }
.type[aria-checked="true"] b { color: var(--text-brand); }
.type[aria-checked="true"]::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.req { margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-brand); }
.opt { font-weight: 400; color: var(--text-support); }
.hint { font-size: 12px; color: var(--text-support); text-align: right; }
.input[aria-invalid="true"] { border-color: var(--kapwa-red-700); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-xl); background: var(--bg-raised); text-align: center; cursor: pointer; transition: all .15s var(--ease); }
.drop .card__icon { align-self: center; margin-bottom: 8px; background: var(--bg-brand-weak); }
.drop:hover, .drop.is-over { border-color: var(--border-brand); background: var(--bg-brand-weak); }
.drop small { color: var(--text-support); max-width: 340px; font-size: 13px; }
.thumbs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 92px; height: 92px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-weak); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgb(30 33 36 / .75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.thumb button .i { width: 14px; height: 14px; }
.thumb span { position: absolute; left: 4px; bottom: 4px; font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgb(255 255 255 / .92); font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--bg-brand); flex: none; }
.check small { color: var(--text-support); }
.preview { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--radius-xl); background: var(--bg-bold); }
.preview code { font: 500 13px/1.5 var(--mono); color: #fff; word-break: break-word; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-xl); border: 1px solid var(--border-weak); background: var(--bg-surface); font-size: 14px; color: var(--text-strong); }
.alert .i { width: 20px; height: 20px; color: var(--text-brand); margin-top: 1px; }
.alert--warning { background: var(--kapwa-yellow-50); border-color: var(--kapwa-yellow-500); }
.alert--warning .i { color: var(--kapwa-yellow-800); }
.alert--info { background: var(--bg-brand-weak); border-color: var(--kapwa-brand-200); }
.alert--danger { background: var(--kapwa-red-50); border-color: var(--kapwa-red-700); color: var(--kapwa-red-700); font-weight: 500; }
.mini-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-support); }
.mini-steps b { color: var(--text-strong); }
.mini-steps li::marker { color: var(--text-brand); font-weight: 700; }

.done { grid-column: 1; }
.done__in { align-items: center; text-align: center; gap: 14px; padding: 48px 24px; }
.done__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--kapwa-green-50); color: var(--kapwa-green-600); }
.done__icon .i { width: 32px; height: 32px; }
.done p { color: var(--text-support); max-width: 420px; }
.done__ref { font: 700 20px var(--mono); padding: 10px 18px; border-radius: var(--radius); background: var(--bg-brand-weak); border: 1px solid var(--kapwa-brand-200); color: var(--kapwa-brand-800); }

/* ---------- Hotlines (BetterAklan Hotlines pattern) ---------- */
.hl-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.hl-tools .search { max-width: 420px; flex: 1 1 280px; }
.hl { height: 100%; }
.hl .card__pad { gap: 12px; }
.hl--priority { border-color: var(--kapwa-brand-200); }
.hl__name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.hl__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-support); margin-top: -6px; }
.hl__addr { font-size: 13px; color: var(--text-support); }
.hl__nums { display: flex; flex-direction: column; gap: 8px; }
.num { display: flex; align-items: center; gap: 8px; }
.num a { flex: 1; display: flex; flex-direction: column; min-height: 52px; justify-content: center; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--border-weak); background: var(--bg-raised); color: var(--text-strong); text-decoration: none; transition: all .15s var(--ease); }
.num a:hover { border-color: var(--border-brand); background: var(--bg-brand-weak); }
.num a b { font-size: 17px; font-weight: 700; color: var(--text-brand); font-variant-numeric: tabular-nums; }
.num a small { font-size: 12px; color: var(--text-support); }
.num button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--border-weak); background: var(--bg-surface); color: var(--text-support); cursor: pointer; }
.num button:hover { border-color: var(--border-brand); color: var(--text-brand); }
.num button .i { width: 16px; height: 16px; }
.badge--ok { background: var(--kapwa-green-50); color: var(--kapwa-green-700); border-color: var(--kapwa-green-600); }
.num__ok { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; background: var(--kapwa-green-600); color: #fff; vertical-align: 1px; }
.num__ok .i { width: 10px; height: 10px; stroke-width: 3.5; }
.hl__check { margin-top: 4px; font-size: 13px; color: var(--text-support); border-top: 1px solid var(--border-weak); padding-top: 10px; }
.hl__check summary { cursor: pointer; font-weight: 600; color: var(--primary-500); min-height: 28px; }
.hl__check p { margin: 6px 0; }
.hl__check ul { margin: 0; padding-left: 18px; }
.empty { grid-column: 1 / -1; padding: 32px; text-align: center; color: var(--text-support); border: 1px dashed var(--border-strong); border-radius: var(--radius-2xl); background: var(--bg-surface); }

/* ---------- History timeline (BetterAklan pattern) ---------- */
.history { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 24px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 0; width: 2px; background: var(--border-brand); }
.tl { position: relative; padding-left: 48px; }
.tl__dot { position: absolute; left: 0; top: 12px; display: grid; place-items: center; width: 32px; height: 32px; }
.tl__dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-brand); background: var(--bg-surface); box-shadow: var(--shadow-sm); transition: all .3s var(--ease); }
.tl:hover .tl__dot::before { background: var(--bg-brand); transform: scale(1.25); }
.tl .card:hover { border-color: var(--border-brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tl__in { display: flex; gap: 16px; align-items: flex-start; padding: 24px; }
.tl__date { flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; border-radius: var(--radius); background: var(--bg-brand); color: #fff; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm); white-space: nowrap; }
.tl h3 { font-size: 16px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.tl p { font-size: 14px; color: var(--text-support); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.list b { display: block; font-size: 15px; }
.list span { font-size: 14px; color: var(--text-support); }

/* ---------- About ---------- */
.info { margin: 0 0 16px; text-align: left; display: flex; flex-direction: column; border: 1px solid var(--border-weak); border-radius: var(--radius); overflow: hidden; }
.info div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 14px; }
.info div + div { border-top: 1px solid var(--border-weak); }
.info dt { color: var(--text-support); }
.info dd { margin: 0; font-weight: 600; text-align: right; }
.center .link-btn { align-self: center; }

/* ---------- Footer (BetterAklan pattern) ---------- */
.footer { background: var(--bg-bold); color: #fff; }
.footer ::selection { background: var(--primary-500); }
.footer__in { padding-top: 64px; padding-bottom: 48px; }
.footer__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 48px 32px; }
.footer__brand { grid-column: span 2; display: flex; flex-direction: column; gap: 24px; }
.brand--footer, .brand--footer:hover { color: #fff; }
.brand--footer .brand__name { font-size: 20px; }
.footer__tag { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-disabled); margin-top: 4px; }
.footer__muted { max-width: 24rem; font-size: 14px; line-height: 1.625; color: var(--text-disabled); }
.footer__h { margin: 0 0 24px; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-disabled); }
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.footer__list a { font-size: 14px; color: var(--kapwa-gray-400); text-decoration: none; transition: color .15s; }
.footer__list a:hover { color: var(--text-link); }
.footer__privacy { grid-column: span 2; }
.footer__bottom { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--kapwa-gray-800); display: flex; flex-direction: column; gap: 8px; }
.footer__bottom p { font-size: 14px; color: var(--kapwa-gray-400); }
.footer__credit { color: #fff !important; font-weight: 600; }
.footer__role { display: inline-flex; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--kapwa-gray-700); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--kapwa-gray-400); vertical-align: 2px; }
.footer__legal { font-size: 10px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-disabled) !important; }

/* ---------- Modal ---------- */
.modal { width: min(1040px, 100% - 32px); max-height: min(88vh, 760px); padding: 0; border: 1px solid var(--border-weak); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.modal[open] { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); animation: slideIn .3s var(--ease); }
.modal::backdrop { background: #1e212499; }
.modal__media { position: relative; background: var(--bg-bold); min-height: 320px; }
.modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-weak); background: #fff; color: var(--text-strong); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.modal__nav:hover { color: var(--text-brand); border-color: var(--border-brand); }
.modal__nav--prev { left: 12px; }
.modal__nav--next { right: 12px; }
.modal__count:empty { display: none; }
.modal__count { position: absolute; left: 12px; bottom: 12px; padding: 2px 8px; border-radius: 6px; background: rgb(30 33 36 / .75); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.modal__body { position: relative; padding: 32px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; max-height: min(88vh, 760px); }
.modal__body h2 { padding-right: 44px; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--border-weak); background: #fff; display: grid; place-items: center; cursor: pointer; }
.modal__close:hover { color: var(--text-brand); border-color: var(--border-brand); }
.modal__text { display: flex; flex-direction: column; gap: 10px; color: var(--text-support); font-size: 15px; }
.facts { margin: 4px 0 0; display: flex; flex-direction: column; border-radius: var(--radius-xl); border: 1px solid var(--border-weak); background: var(--bg-raised); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 14px; font-size: 14px; }
.facts div + div { border-top: 1px solid var(--border-weak); }
.facts dt { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-support); padding-top: 3px; }
.facts dd { margin: 0; }
.modal__body .btn { align-self: flex-start; }

/* ---------- Responsive (Tailwind breakpoints: lg 1024, md 768, sm 640) ---------- */
@media (max-width: 1279px) {
  .menu__link { font-size: 12px; letter-spacing: .025em; }
}
@media (max-width: 1023px) {
  :root { --nav-h: 104px; }
  .menu-btn { display: inline-flex; }
  .menu { position: fixed; left: 0; right: 0; top: var(--nav-h); height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--border-weak); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s var(--ease); }
  .menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .menu__link { height: auto; padding: 14px 8px; font-size: 14px; letter-spacing: .1em; border-bottom: 1px solid var(--border-weak); }
  .menu__link.is-active { border-bottom-color: var(--border-weak); }
  .topnav__main { height: 64px; }
  .brand img { width: 48px; height: 48px; }
  .brand__name { font-size: 18px; }
  .hero__grid, .request, .history { grid-template-columns: minmax(0, 1fr); }
  .request__side { position: static; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand, .footer__privacy { grid-column: span 3; }
  .modal[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 40vh auto; max-height: 92vh; overflow-y: auto; }
  .modal__body { max-height: none; overflow: visible; }
}
@media (max-width: 767px) {
  .hero { padding: 48px 0; }
  .heading-xl { font-size: 32px; }
  .heading-lg { font-size: 26px; }
  .grid--4, .grid--3, .row { grid-template-columns: minmax(0, 1fr); }
  .md-hide { display: none !important; }
  .infobar__in { justify-content: flex-start; }
  .tl__in { flex-direction: column; gap: 10px; padding: 16px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand, .footer__privacy { grid-column: span 2; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 639px) {
  .topnav__utility-in { gap: 14px; }
  .util { font-size: 10px; }
  .sm-hide { display: none; }
  .sm-show { display: inline; }
  .brand__sub { font-size: 9px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .quick { padding: 16px; }
  .quick__grid { gap: 10px; }
  .quick__tile small { display: none; }
  .badge { padding: 6px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.modal__body > * { flex-shrink: 0; }

/* ==========================================================================
   Phone experience (≤ 767px)
   ========================================================================== */
.tabbar, .swipe-hint { display: none; }
.infobar a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: #fff; text-decoration: none; min-height: 36px; }
.infobar a:hover { color: var(--kapwa-yellow-500); }
.infobar b { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 767px) {
  :root { --tabbar-h: 64px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: calc(var(--nav-h) + 8px); }
  .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

  /* Bottom tab bar, like an app */
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; padding: 0 4px env(safe-area-inset-bottom); background: rgb(255 255 255 / .96); backdrop-filter: saturate(1.6) blur(12px); border-top: 1px solid var(--border-weak); box-shadow: 0 -4px 16px rgb(0 0 0 / .06); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tabbar-h); font-size: 11px; font-weight: 600; color: var(--text-support); text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .tab .i { width: 22px; height: 22px; }
  .tab:hover, .tab.is-active { color: var(--text-brand); }
  .tab.is-active .i { stroke-width: 2.4; }
  .tab__bubble { display: grid; place-items: center; width: 48px; height: 48px; margin-top: -22px; border-radius: 50%; background: var(--bg-brand); color: #fff; box-shadow: 0 6px 14px -4px rgb(0 93 245 / .6); border: 3px solid #fff; }
  .tab--main { color: var(--text-brand); }
  .tab--call { color: var(--kapwa-red-700); }
  .tab--call:hover { color: var(--kapwa-red-700); }

  /* Bigger tap targets */
  .util { display: inline-flex; align-items: center; min-height: 40px; }
  .link-btn { min-height: 44px; }
  .badge--hero { padding: 8px 10px; }

  /* Hide the desktop menu button's duplicate role: tab bar covers main sections,
     but keep the menu for Explore Kalibo / About */
  .hero { padding: 40px 0 32px; }
  .hero__lead { margin-bottom: 20px; }
  .quick { padding: 16px; }
  .quick h2 { font-size: 20px; margin-bottom: 12px; }
  .quick__tile { padding: 12px 8px; }
  .quick__icon { padding: 10px; margin-bottom: 8px; }
  .section { padding: 40px 0; }
  .section__head { margin-bottom: 24px; }
  .section__head p { font-size: 15px; }

  /* Services: compact rows instead of tall cards */
  #services .grid--4 { gap: 10px; }
  #services .card__pad { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 14px 14px 12px; }
  #services .card__icon { grid-row: 1 / span 2; margin: 0; background: var(--bg-brand-weak); }
  #services .card__title { grid-column: 2; margin: 0; font-size: 16px; }
  #services .card__text { grid-column: 2; margin: 2px 0 0; -webkit-line-clamp: 1; font-size: 13px; }
  #services .link-btn { grid-column: 3; grid-row: 1 / span 2; font-size: 0; min-height: 0; }
  #services .link-btn .i { width: 20px; height: 20px; color: var(--text-disabled); }
  #services .mt-10 { margin-top: 20px; }
  #services .mt-10 .btn { width: 100%; }

  /* Filter chips: one swipeable row */
  .filters, .filters--inline { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; min-height: 40px; }
  .filters { margin-bottom: 16px; }

  /* Tourism: swipeable carousel */
  .swipe-hint { display: block; margin: -4px 0 10px; font-size: 12px; font-weight: 600; color: var(--text-support); }
  [data-attractions].grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 16px; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  [data-attractions].grid::-webkit-scrollbar { display: none; }
  [data-attractions] > .card { flex: 0 0 86%; scroll-snap-align: start; }
  [data-attractions] > .card:hover { transform: none; }
  [data-attractions] .card__text { -webkit-line-clamp: 3; }

  /* Request form */
  .form__in { gap: 22px; }
  .card__pad { padding: 18px; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .type { min-height: 70px; padding: 12px; }
  .type small { font-size: 12px; }
  .type[aria-checked="true"]::after { top: 8px; right: 8px; }
  .request__side { gap: 12px; }

  /* Hotlines: tighter cards */
  .hl-tools { gap: 12px; }
  .hl-tools .search { max-width: none; }
  [data-hotlines].grid { gap: 12px; }
  .hl .card__pad { padding: 16px; gap: 10px; }
  .num a { min-height: 56px; }
  .num a b { font-size: 18px; }
  .num button { width: 48px; height: 48px; }
  .hl-more { width: 100%; }

  /* Footer clears the tab bar */
  .footer__in { padding-top: 48px; padding-bottom: 32px; }

  /* Photo viewer: full screen, swipe between photos */
  .modal { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .modal[open] { height: 100dvh; max-height: 100dvh; inset: 0; grid-template-rows: 46vh auto; overflow-y: auto; overscroll-behavior: contain; }
  .modal__media { min-height: 46vh; touch-action: pan-y; }
  .modal__close { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 5; background: rgb(255 255 255 / .95); box-shadow: var(--shadow-md); }
  .modal__body { padding: 22px 18px calc(28px + env(safe-area-inset-bottom)); }
  .modal__body h2 { padding-right: 0; }
  .modal__nav { width: 40px; height: 40px; }
  .modal__credit { left: 12px; right: auto; bottom: 44px; max-width: calc(100% - 24px); }
  .modal__body .btn { width: 100%; }
}

@media (max-width: 359px) {
  .brand__sub { display: none; }
  .tab { font-size: 10px; }
  .types { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Barangay Council ---------- */
.council__seal { display: block; width: 112px; height: auto; margin: 0 auto 16px; }
.section__head .eyebrow-sm { display: block; margin-bottom: 8px; }
.council__label { margin: 40px 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-support); text-align: center; }
.official { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; height: 100%; }
.official__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--bg-raised); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border-weak), var(--shadow-sm); flex: none; }
.official__body { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; min-width: 0; }
.official__name { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--text-strong); margin: 0; }
.official__name--lg { font-size: 24px; font-weight: 700; }
.official__comm { list-style: none; margin: 8px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border-weak); display: grid; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--text-support); width: 100%; }
.official--head { max-width: 560px; margin: 0 auto; flex-direction: row; text-align: left; gap: 28px; padding: 28px 32px; border-color: var(--border-brand); background: linear-gradient(135deg, var(--bg-brand-weak), #fff 70%); }
.official--head .official__photo { width: 160px; height: 160px; }
.official--head .official__body { align-items: flex-start; margin-top: 0; }
.council__staff { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 24px; }
.official--row { flex-direction: row; text-align: left; gap: 16px; padding: 16px 20px; }
.official--row .official__photo { width: 72px; height: 72px; }
.official--row .official__body { align-items: flex-start; margin-top: 0; }
.council__foot { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.council__foot .card__meta { margin-top: 0; text-align: center; }

@media (max-width: 767px) {
  .council__seal { width: 88px; }
  .council__label { margin: 28px 0 12px; }
  .council__grid.grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .official { flex-direction: row; align-items: flex-start; text-align: left; gap: 14px; padding: 16px; }
  .official .official__photo { width: 72px; height: 72px; }
  .official__body { align-items: flex-start; margin-top: 0; gap: 6px; }
  .official__comm { margin-top: 4px; padding-top: 8px; font-size: 12.5px; }
  .official--head { flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; }
  .official--head .official__photo { width: 128px; height: 128px; }
  .official--head .official__body { align-items: center; }
  .official__name--lg { font-size: 20px; }
  .council__staff { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .council__foot .btn { width: 100%; }
}

/* Document-specific note under the Document select */
.doc-note { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-brand-weak); border: 1px solid var(--kapwa-brand-200); color: var(--kapwa-brand-800); font-size: 13px; line-height: 1.45; }

/* ---------- Privacy: summary above the consent box ---------- */
.privacy-box { margin: 8px 0 12px; padding: 16px 18px; border: 1px solid var(--border-weak); border-radius: var(--radius-lg, 12px); background: var(--bg-raised); }
.privacy-box__h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text-strong); }
.privacy-box__h .i { width: 18px; height: 18px; color: var(--text-brand); }
.privacy-box__list { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; font-size: 13px; line-height: 1.5; color: var(--text-support); }
.privacy-box .link-btn { font-size: 14px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.check--consent { padding: 4px 0 8px; }
.check--consent span { line-height: 1.5; }
.footer__link-btn { margin-top: 10px; padding: 0; min-height: 44px; background: none; border: 0; font: inherit; font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__link-btn:hover { color: var(--kapwa-brand-200, #aedfff); }

/* ---------- Privacy: full notice dialog ---------- */
.pnotice { width: min(720px, 100% - 32px); max-height: min(88vh, 820px); padding: 0; border: 1px solid var(--border-weak); border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); color: var(--text-strong); }
.pnotice[open] { display: flex; flex-direction: column; animation: slideIn .3s var(--ease); }
.pnotice::backdrop { background: #1e212499; }
.pnotice__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 16px; border-bottom: 1px solid var(--border-weak); flex: none; }
.pnotice__head .eyebrow-sm { display: block; margin-bottom: 6px; }
.pnotice__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; }
.pnotice__date { margin: 4px 0 0; font-size: 13px; color: var(--text-support); }
.pnotice .icon-btn { flex: none; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--border-weak); background: #fff; display: grid; place-items: center; cursor: pointer; }
.pnotice .icon-btn:hover { color: var(--text-brand); border-color: var(--border-brand); }
.pnotice__body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 28px 24px; font-size: 15px; line-height: 1.65; color: var(--text-support); }
.pnotice__body h3 { margin: 20px 0 6px; font-size: 16px; font-weight: 600; color: var(--text-strong); }
.pnotice__body p { margin: 0 0 8px; }
.pnotice__body ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.pnotice__body a { color: var(--text-brand); }
.pnotice__foot { flex: none; padding: 14px 28px; border-top: 1px solid var(--border-weak); display: flex; justify-content: flex-end; }

@media (max-width: 767px) {
  .pnotice { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .pnotice[open] { inset: 0; }
  .pnotice__head { padding: calc(16px + env(safe-area-inset-top)) 16px 12px; }
  .pnotice__title { font-size: 20px; }
  .pnotice__body { padding: 4px 16px 20px; font-size: 15px; }
  .pnotice__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .pnotice__foot .btn { width: 100%; }
}

/* ---------- Language switch (utility bar) ---------- */
.lang { display: inline-flex; padding: 2px; border: 1px solid var(--border-weak); border-radius: 999px; background: #fff; flex: none; }
.lang__btn { min-width: 34px; height: 26px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--text-support); cursor: pointer; }
.lang__btn[aria-pressed="true"] { background: var(--bg-brand); color: #fff; }
.lang__btn:focus-visible { outline: 2px solid var(--border-brand); outline-offset: 2px; }
@media (max-width: 767px) {
  .lang__btn { min-width: 36px; height: 30px; }   /* bigger tap target on phones */
}
@media (max-width: 767px) {
  /* Keep the utility bar on one line in both languages: Request/Report, Hotlines and the language switch */
  .topnav__utility .util[href="#about"], .topnav__utility .util[href^="https://betteraklan"] { display: none; }
  .topnav__utility-in { justify-content: space-between; }
}

/* ---------- Email + "Send code" ---------- */
.input-group { display: flex; gap: 8px; align-items: stretch; }
.input-group .input { flex: 1; min-width: 0; }
.input-group__btn { flex: none; white-space: nowrap; padding-left: 16px; padding-right: 16px; }
.input-group__btn:disabled { opacity: .6; cursor: not-allowed; }
.code-status { display: block; min-height: 1.2em; }
.code-status.is-bad { color: var(--text-danger, #c52525); }
.input--code { max-width: 220px; font-family: "Roboto Mono", ui-monospace, monospace; font-size: 22px; letter-spacing: .35em; text-align: center; }
@media (max-width: 767px) {
  .input--code { max-width: none; }
}
.input--code::placeholder { letter-spacing: normal; font-family: Inter, system-ui, sans-serif; font-size: 16px; }
.field .hint.code-status, [data-code-field] .hint { text-align: left; }
.hint.photo-doc-hint { display: block; text-align: left; margin-top: 6px; line-height: 1.45; }
.hint.photo-doc-hint[hidden] { display: none; }
@media (max-width: 767px) {
  .input-group { flex-direction: column; }
  .input-group__btn { width: 100%; }
}

/* ---------- Abuse warning above the Send button ---------- */
.abuse-note { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; padding: 10px 12px; border: 1px solid #f5c26b; border-left: 4px solid #d97706; border-radius: var(--radius); background: #fffbeb; color: #78350f; font-size: 13px; line-height: 1.5; }
.abuse-note .i { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #d97706; }

/* ---------- Information each document needs ---------- */
.doc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 4px 0 8px; padding: 16px; border: 1px solid var(--border-weak); border-radius: var(--radius-lg, 12px); background: var(--bg-raised); }
.doc-fields[hidden] { display: none; }
.doc-fields .field { margin: 0; }
.doc-fields__title { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-brand); }
.doc-fields__wide { grid-column: 1 / -1; }
@media (max-width: 767px) {
  .doc-fields { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 14px; }
}
