/* =====================================================================
   transparency.css — PUBLIC na Transparency page (transparency.php,
   2026-10-21). Hiwalay sa style.css/app-ui.css (walang login, walang
   sidebar). Parehong font (Figtree, self-hosted) at mga kulay ng system.

   Design history (lahat 2026-10-21): mockup → pinaganda (gradient hero,
   ring, icons) → "wag yung parang AI gawa" (ginawang payak na tables) →
   "kasimple lang... mas maganda pa yung kanina... wag yung masyadong
   gradient". KAYA: ang pinagandang design, pero SOLID na navy (walang
   makulay na gradient/dot pattern), banayad na anino, solid na bars.
   ===================================================================== */
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --t-bg: #f3f6fa;
    --t-card: #fff;
    --t-ink: #142033;
    --t-mute: #5b6676;
    --t-line: #e3e8ef;
    --t-brand: #184f95;
    --t-ga: #2457c5;
    --t-bsf: #1d8a5b;
    --t-spa: #7a4fc2;
    --t-navy: #13294b;
    --t-ok: #17704a;
    --t-ok-bg: #e3f4ec;
    --t-warn: #8a5a12;
    --t-warn-bg: #fdf3dc;
    --t-idle: #5b6676;
    --t-idle-bg: #eef1f5;
    --t-shadow: 0 1px 2px rgba(19, 41, 75, .05), 0 4px 12px rgba(19, 41, 75, .05);
    --t-shadow-lg: 0 1px 3px rgba(19, 41, 75, .06), 0 8px 22px rgba(19, 41, 75, .08);
    --t-radius: 16px;
    /* Solid navy (may napakabanayad na lalim lang — hindi makulay na gradient). */
    --t-hero: linear-gradient(180deg, #13294b 0%, #16305a 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* search ng portal — mas mataas sa display ng card */

body.page-transparency {
    margin: 0;
    background: var(--t-bg);
    color: var(--t-ink);
    font: 15px/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page-transparency a { color: var(--t-brand); }
.page-transparency :focus-visible { outline: 3px solid #8ab4ff; outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.t-head {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--t-line);
}
.t-head__in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.t-head__brand { display: flex; align-items: center; gap: 12px; color: inherit !important; text-decoration: none; }
.t-head__logo { width: 36px; height: 36px; flex: none; }
.t-head__name { font-weight: 800; letter-spacing: -.01em; }
.t-head__name em { font-style: normal; color: var(--t-brand); }
.t-head__sub { font-size: 12.5px; color: var(--t-mute); }
.t-head__right { margin-left: auto; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.t-head__right a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--t-bg); color: var(--t-ink) !important; }
.t-head__right a:hover { background: #e7edf6; }

/* Language switch (2026-10-23) — Taglish | English, naka-navy ang napili. */
.t-lang { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--t-bg); }
.t-head__right .t-lang a { padding: 5px 12px; font-size: 13px; background: transparent; color: var(--t-mute) !important; }
.t-head__right .t-lang a:hover { background: #e7edf6; color: var(--t-ink) !important; }
.t-head__right .t-lang a[aria-current] { background: var(--t-navy); color: #fff !important; }
.t-lang__short { display: none; }

/* ---------- Hero (portal + barangay) ---------- */
.t-hero { color: #fff; background: var(--t-hero); }
.t-hero__in { max-width: 1120px; margin: 0 auto; padding: 52px 20px 58px; }
.t-hero--brgy .t-hero__in { padding: 32px 20px 40px; }
.t-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.t-hero h1 { margin: 16px 0 10px; font-size: 42px; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; max-width: 720px; }
.t-hero p.t-lead { margin: 0; max-width: 620px; font-size: 17px; color: rgba(255, 255, 255, .8); }

.t-search {
    margin: 26px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--t-mute);
}
.t-search input { border: 0; outline: 0; font: inherit; font-size: 16px; width: 100%; color: var(--t-ink); background: transparent; -webkit-appearance: none; appearance: none; }
/* Walang kahon sa loob (2026-10-21, "may box pa sa loob pangit") — ang buong search bar ang may focus ring. */
.page-transparency .t-search input:focus,
.page-transparency .t-search input:focus-visible { outline: none; box-shadow: none; }
.t-search { transition: box-shadow .15s ease; }
.t-search:focus-within { box-shadow: 0 0 0 3px rgba(138, 180, 255, .55); }


/* Mga "assurance" point sa hero ng portal */
.t-assure { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 28px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.t-assure li { display: flex; align-items: center; gap: 10px; }
.t-assure__ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #8fdcb1; }

/* Paanyaya sa ibang barangay (ibaba ng listahan) */
.t-invite { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 18px 20px; background: var(--t-card); border: 1px solid var(--t-line); border-radius: var(--t-radius); box-shadow: var(--t-shadow); }
.t-invite__text { flex: 1; min-width: 0; }
.t-invite__text strong { display: block; font-size: 15.5px; }
.t-invite__text span { font-size: 13.5px; color: var(--t-mute); }
.t-invite .t-btn { flex: none; }

.t-wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 56px; }

/* ---------- Portal ---------- */
.t-muni { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; font-size: 13px; font-weight: 800; color: var(--t-mute); text-transform: uppercase; letter-spacing: .08em; }
.t-muni::after { content: ""; flex: 1; height: 1px; background: var(--t-line); }
.t-muni-group:first-child .t-muni { margin-top: 6px; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.t-bcard {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: inherit !important;
    background: var(--t-card);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    padding: 18px 20px;
    box-shadow: var(--t-shadow);
    transition: box-shadow .2s, border-color .2s;
}
.t-bcard:hover { box-shadow: var(--t-shadow-lg); border-color: #c9d7ee; }
.t-bcard__top { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #e8eefa; color: var(--t-brand); font-weight: 800; font-size: 15px; }
.t-bcard__name { font-weight: 800; font-size: 17px; line-height: 1.2; }
.t-bcard__muni { font-size: 13px; color: var(--t-mute); }
.t-bcard__amt { font-size: 12.5px; color: var(--t-mute); }
.t-bcard__amt b { display: block; margin-top: 2px; font-size: 22px; font-weight: 800; color: var(--t-ink); letter-spacing: -.01em; }
.t-bcard__foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--t-mute); margin-top: 6px; }
.t-bcard__go { font-weight: 700; color: var(--t-brand); }
.t-empty { padding: 34px; text-align: center; color: var(--t-mute); background: var(--t-card); border: 1px dashed #cfd8e4; border-radius: var(--t-radius); }
.t-note { margin-top: 30px; font-size: 13px; color: var(--t-mute); text-align: center; }

/* ---------- Bars (solid na kulay) ---------- */
.t-bar { height: 8px; border-radius: 999px; background: #e8edf4; overflow: hidden; }
.t-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--t-ga); }
.t-bar--ok > i { background: var(--t-bsf); }
.t-bar--idle > i { background: #c5cfdc; }

/* ---------- Barangay hero ---------- */
.t-crumb { font-size: 13px; }
.t-crumb a { color: rgba(255, 255, 255, .85) !important; font-weight: 600; text-decoration: none; }
.t-crumb a:hover { color: #fff !important; text-decoration: underline; }
.t-bhero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; margin-top: 18px; }
.t-bhero h1 { margin: 12px 0 6px; font-size: 40px; }
.t-bhero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: rgba(255, 255, 255, .8); }
.t-bhero__total { margin-top: 18px; }
.t-bhero__total small { display: block; font-size: 13px; color: rgba(255, 255, 255, .72); }
.t-bhero__total b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.t-ring { position: relative; width: 160px; height: 160px; }
.t-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.t-ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.t-ring__label b { font-size: 32px; font-weight: 800; line-height: 1; }
.t-ring__label span { font-size: 12.5px; color: rgba(255, 255, 255, .75); margin-top: 4px; }
.t-ring__sub { margin-top: 10px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .8); }
.t-ring__sub b { color: #fff; }

.t-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.t-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.t-chip--ok { background: var(--t-ok-bg); color: var(--t-ok); }
.t-chip--warn { background: var(--t-warn-bg); color: var(--t-warn); }
.t-chip--idle { background: var(--t-idle-bg); color: var(--t-idle); }
.t-chip--hero { background: rgba(255, 255, 255, .12); color: #fff; }
.t-chip--hero::before { background: #6fd39d; }

/* Icon badge (section heads, fund cards) */
.t-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--c, var(--t-ga)); background: color-mix(in srgb, var(--c, var(--t-ga)) 11%, #fff); }

/* ---------- Sections ---------- */
.t-sec { margin-top: 24px; background: var(--t-card); border: 1px solid var(--t-line); border-radius: var(--t-radius); overflow: hidden; box-shadow: var(--t-shadow); }
.t-sec__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 22px; border-bottom: 1px solid var(--t-line); }
.t-sec__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-sec__head h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.t-sec__head p { margin: 2px 0 0; font-size: 13px; color: var(--t-mute); }
.t-sec__amt { margin-left: auto; font-weight: 800; font-size: 17px; }
.t-sec__body { padding: 20px 22px; }
.t-sec__empty { margin: 0; padding: 22px; color: var(--t-mute); font-size: 14px; text-align: center; }

.t-split { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: center; }

/* "Out of every ₱100" (2026-10-22) — 10×10 na kahon (bawat isa = ₱1) + mga linya. */
.t-split--waffle { grid-template-columns: 260px minmax(0, 1fr); }
.t-waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: 260px; }
.t-waffle i { aspect-ratio: 1; border-radius: 4px; background: var(--c); }
.t-waffle i.is-empty { background: #e8edf4; }
.t-per100 { display: grid; gap: 8px; }
.t-per100__row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 2px 14px; align-items: center; margin: -4px -10px; padding: 4px 10px; border-radius: 12px; }
.t-per100__peso { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--c); }
.t-per100__label { font-size: 15px; color: var(--t-mute); }
.t-per100__label b { color: var(--t-ink); }
.t-per100 small { display: block; font-size: 12.5px; color: var(--t-mute); }
.t-per100__note { margin: 4px 0 0; font-size: 12.5px; color: var(--t-mute); }

/* ⓘ — paliwanag ng termino (2026-10-22). Ang popover (.t-tip) ay lumulutang sa ibabaw ng page. */
.t-info { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -3px 0 -3px 4px; padding: 0; vertical-align: middle; border: 0; border-radius: 50%; background: transparent; color: var(--t-mute); cursor: pointer; }
.t-info:hover, .t-info[aria-expanded="true"] { background: #e8eefa; color: var(--t-brand); }
.t-hero .t-info { color: rgba(255, 255, 255, .7); }
.t-hero .t-info:hover, .t-hero .t-info[aria-expanded="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
.t-tip { position: fixed; z-index: 60; width: 280px; max-width: calc(100vw - 24px); padding: 12px 14px; border: 1px solid var(--t-line); border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(19, 41, 75, .06), 0 14px 32px rgba(19, 41, 75, .14); font-size: 13px; line-height: 1.5; color: var(--t-mute); }
.t-tip b { display: block; margin-bottom: 4px; font-size: 13.5px; color: var(--t-ink); }
.t-tip p { margin: 0; }
.t-tip::before { content: ""; position: absolute; top: -6px; left: calc(var(--arrow, 24px) - 5px); width: 10px; height: 10px; background: #fff; border-left: 1px solid var(--t-line); border-top: 1px solid var(--t-line); transform: rotate(45deg); }
.t-tip.is-above::before { top: auto; bottom: -6px; transform: rotate(225deg); }

/* Sticky na menu ng mga section (nasa loob ng .t-head) */
.t-secnav { border-top: 1px solid var(--t-line); }
.t-secnav__in { max-width: 1120px; margin: 0 auto; padding: 6px 20px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.t-secnav__in::-webkit-scrollbar { display: none; }
.t-secnav a { flex: none; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--t-mute) !important; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.t-secnav a:hover { background: var(--t-bg); color: var(--t-ink) !important; }
.t-secnav a.is-on { background: var(--t-navy); color: #fff !important; }
#overview, .t-sec[id] { scroll-margin-top: calc(var(--t-head-h, 110px) + 12px); }

/* 20% DF projects */
.t-proj { display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px 230px; gap: 8px 18px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--t-line); }
.t-proj:hover { background: #f8fafd; }
.t-proj:last-child { border-bottom: 0; }
.t-proj__n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--t-bg); color: var(--t-mute); font-size: 13px; font-weight: 800; }
.t-proj__name { font-weight: 700; }
.t-proj__meta { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12.5px; color: var(--t-mute); }
.t-proj__amt { text-align: right; font-weight: 800; }
.t-proj__use { font-size: 12.5px; color: var(--t-mute); }
.t-proj__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }

/* Other special funds */
.t-funds { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; } /* 5 fund — isang hanay sa desktop */
/* Walang may-kulay na guhit sa gilid (2026-10-21, "pangit yung gilid") — sa icon at bar na lang ang kulay. */
.t-fund { border: 1px solid var(--t-line); border-radius: 14px; padding: 16px; }
.t-fund__h { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--t-mute); line-height: 1.3; min-height: 38px; }
.t-fund__h .t-ico { width: 34px; height: 34px; border-radius: 10px; }
.t-fund__v { font-size: 21px; font-weight: 800; margin: 12px 0 10px; letter-spacing: -.01em; }
.t-fund .t-bar > i { background: var(--c); }
.t-fund__u { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--t-mute); margin-top: 8px; }
.t-fund__u b { color: var(--t-ink); }

/* "Where the money comes from" (#2) */
.t-stackbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #e8edf4; gap: 2px; }
.t-stackbar > span { display: block; height: 100%; }
.t-income { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-top: 20px; }
.t-income__cat { min-width: 0; }
.t-income__head { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.t-income__head > i { width: 12px; height: 12px; border-radius: 4px; }
.t-income__head small { display: block; font-size: 12.5px; color: var(--t-mute); }
.t-income__amt { text-align: right; }
.t-income__amt b { font-size: 15.5px; }
.t-income__items { margin: 8px 0 0 24px; padding: 0; list-style: none; font-size: 13px; color: var(--t-mute); }
.t-income__items li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px dashed #e3e8ef; }

/* "Required by law" (#1) */
.t-req__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 150px 150px 230px; gap: 6px 16px; align-items: center; padding: 13px 22px; border-bottom: 1px solid var(--t-line); }
.t-req__row:last-child { border-bottom: 0; }
.t-req__row--head { padding-top: 10px; padding-bottom: 10px; background: #f8fafc; font-size: 12px; font-weight: 700; color: var(--t-mute); text-transform: uppercase; letter-spacing: .04em; }
.t-req__row small { display: block; font-size: 12.5px; color: var(--t-mute); }
.t-req__row .r { text-align: right; }
.t-req__icon { display: grid; place-items: center; }
.t-req__icon.is-ok { color: var(--t-ok); }
.t-req__icon.is-warn { color: #b9770e; }

/* Tabs ng projects sa ilalim ng Other special funds (#3) */
.t-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 22px 14px; }
.t-tabs__label { font-size: 13px; font-weight: 700; color: var(--t-mute); margin-right: 4px; }
.t-tab { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--t-line); border-radius: 999px; background: var(--t-card); color: var(--t-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.t-tab__n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--t-bg); color: var(--t-mute); font-size: 12px; text-align: center; }
.t-tab.is-on { background: var(--t-navy); border-color: var(--t-navy); color: #fff; }
.t-tab.is-on .t-tab__n { background: rgba(255, 255, 255, .18); color: #fff; }
.t-panel { border-top: 1px solid var(--t-line); }

/* Monthly chart */
.t-chart { position: relative; height: 230px; margin-top: 6px; }
.t-chart__grid { position: absolute; inset: 0 0 26px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.t-chart__grid span { position: relative; border-top: 1px dashed #dfe5ee; font-size: 11px; color: #8a94a3; }
.t-chart__grid span::before { content: attr(data-v); position: absolute; top: -9px; left: 0; background: var(--t-card); padding-right: 6px; }
.t-months { position: absolute; inset: 0 0 0 48px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; }
.t-month { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.t-month__bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.t-month__bar { position: relative; width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px; background: var(--t-ga); }
.t-month__bar:hover { background: #1d4aab; }
.t-month__bar.is-empty { background: #e3e8ef; height: 4px !important; }
.t-month__v { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--t-mute); white-space: nowrap; }
.t-month__m { height: 20px; font-size: 12px; color: var(--t-mute); font-weight: 600; }
.t-months-note { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--t-mute); }

/* Footer cards */
.t-foot { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
.t-foot__note { font-size: 13.5px; color: var(--t-mute); background: var(--t-card); border: 1px solid var(--t-line); border-radius: var(--t-radius); padding: 18px 22px; box-shadow: var(--t-shadow); }
.t-foot__note strong { color: var(--t-ink); font-size: 15px; }
.t-foot__note ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.t-share { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--t-radius); color: #fff; background: var(--t-navy); }
.t-share__qr { width: 96px; height: 96px; flex: none; padding: 6px; border-radius: 10px; background: #fff; }
.t-share__qr svg { width: 100%; height: 100%; display: block; }
.t-share strong { font-size: 15px; }
.t-share small { color: rgba(255, 255, 255, .8); font-size: 13px; }
.t-share a { color: #fff !important; font-weight: 700; }

/* Site footer */
.t-sitefoot { margin-top: 10px; padding: 26px 20px 34px; text-align: center; font-size: 13px; color: var(--t-mute); }
.t-sitefoot a { font-weight: 600; }

/* ---------- QR poster ---------- */
.t-poster-wrap { padding: 34px 20px 10px; }
.t-poster { max-width: 580px; margin: 0 auto; background: var(--t-card); border: 1px solid var(--t-line); border-radius: 20px; overflow: hidden; text-align: center; box-shadow: var(--t-shadow-lg); }
.t-poster__band { padding: 30px 32px 72px; color: #fff; background: var(--t-navy); }
.t-poster__top { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .78); }
.t-poster h1 { margin: 10px 0 6px; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.t-poster__band p { margin: 0 auto; max-width: 420px; color: rgba(255, 255, 255, .85); }
.t-poster__qr { margin: -54px auto 16px; width: 280px; height: 280px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--t-line); }
.t-poster__qr svg { width: 100%; height: 100%; display: block; }
.t-poster__url { margin: 4px 24px 0; font-size: 14px; font-weight: 600; color: var(--t-mute); overflow-wrap: anywhere; }
.t-poster__list { margin: 22px auto 0; display: inline-grid; gap: 8px; text-align: left; font-size: 14.5px; }
.t-poster__list span { display: flex; align-items: center; gap: 10px; }
.t-poster__list span::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--t-ok-bg); color: var(--t-ok); font-size: 12px; font-weight: 800; }
.t-poster__brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; padding: 14px; border-top: 1px solid var(--t-line); font-size: 12.5px; color: var(--t-mute); }
.t-poster__brand svg { width: 20px; height: 20px; }
.t-poster-actions { text-align: center; margin: 22px 0 36px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.t-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--t-brand); background: var(--t-brand); color: #fff !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.t-btn:hover { background: #134283; }
.t-btn--ghost { background: var(--t-card); color: var(--t-brand) !important; }
.t-btn--ghost:hover { background: #eef3fb; }

.t-404 { max-width: 520px; margin: 70px auto; padding: 0 20px; text-align: center; }
.t-404 h1 { font-size: 28px; margin: 0 0 8px; }
.t-404 p { color: var(--t-mute); }

/* ---------- Animation (2026-10-21, "yung may animation sana") — fade-in ng
   section, lumalaking bars, umaakyat na chart bars, umiikot na spent ring,
   bahagyang angat ng card. Naka-off lahat kapag reduced motion o walang JS. ---------- */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; } /* pagpindot sa menu ng mga section */
    .js .t-reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
    .js .t-reveal.is-in { opacity: 1; transform: none; }

    /* Isa-isang napupuno ang 100 kahon ("backwards" para hindi maharangan ang hover pagkatapos). */
    .js .t-reveal:not(.is-in) .t-waffle i { opacity: 0; }
    .js .is-in .t-waffle i { animation: t-cell .35s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i) * 7ms + .1s); }

    /* Nagsisimula lang ang bars/chart kapag nakita na ang section (o agad kung wala sa .t-reveal). */
    .js .t-bar > i { transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .15s; }
    .js .t-month__bar { transform-origin: bottom; transform: scaleY(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
    .js .is-in .t-bar > i,
    .js .t-bar.is-in > i,
    .js .is-in .t-month__bar { transform: none; }
    .js .t-months .t-month:nth-child(2) .t-month__bar { transition-delay: .04s; }
    .js .t-months .t-month:nth-child(3) .t-month__bar { transition-delay: .08s; }
    .js .t-months .t-month:nth-child(4) .t-month__bar { transition-delay: .12s; }
    .js .t-months .t-month:nth-child(5) .t-month__bar { transition-delay: .16s; }
    .js .t-months .t-month:nth-child(6) .t-month__bar { transition-delay: .2s; }
    .js .t-months .t-month:nth-child(7) .t-month__bar { transition-delay: .24s; }
    .js .t-months .t-month:nth-child(8) .t-month__bar { transition-delay: .28s; }
    .js .t-months .t-month:nth-child(9) .t-month__bar { transition-delay: .32s; }
    .js .t-months .t-month:nth-child(10) .t-month__bar { transition-delay: .36s; }
    .js .t-months .t-month:nth-child(11) .t-month__bar { transition-delay: .4s; }
    .js .t-months .t-month:nth-child(12) .t-month__bar { transition-delay: .44s; }

    .t-ring__fill { animation: t-ring 1.2s cubic-bezier(.2, .7, .2, 1) .2s both; }
    .t-ring__label b { animation: t-pop .6s ease .5s both; }

    .t-bcard { transition: box-shadow .2s, border-color .2s, transform .2s; }
    .t-bcard:hover { transform: translateY(-3px); }
    .t-fund { transition: transform .2s, box-shadow .2s; }
    .t-fund:hover { transform: translateY(-2px); box-shadow: var(--t-shadow); }
    .t-month__bar { transition-property: transform, background-color; }
}

/* ---------- Hover animation (2026-10-21, "yung cursor ko kelangan may animation
   kung san ko itututok") — mouse/trackpad lang (hover: hover), naka-off kapag
   reduced motion. ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .t-ico, .t-avatar, .t-bcard__go, .t-proj__n, .t-ring, .t-share__qr, .t-per100__row, .t-month__bar, .t-btn, .t-head__right a {
        transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
    }

    /* Mga card: angat + mas malinaw na anino + bahagyang lumalaking icon */
    .t-bcard:hover, .t-fund:hover { transform: translateY(-4px); box-shadow: var(--t-shadow-lg); }
    .t-bcard:hover .t-avatar { transform: scale(1.06); background: var(--t-brand); color: #fff; }
    .t-bcard:hover .t-bcard__go { transform: translateX(4px); }
    .t-fund:hover .t-ico, .t-sec__head:hover .t-ico { transform: scale(1.1) rotate(-4deg); }
    .t-sec { transition: box-shadow .2s ease; }
    .t-sec:hover { box-shadow: var(--t-shadow-lg); }

    /* Donut: lumalaki ang itinutok na bahagi; naka-highlight ang legend row */
    /* "Out of every ₱100": naka-highlight ang mga kahon ng sector na itinutok */
    .t-waffle i { transition: opacity .2s ease, transform .2s ease; }
    .t-waffle.is-hovering i { opacity: .25; }
    .t-waffle.is-hovering i.is-active { opacity: 1; transform: scale(1.08); }
    .t-per100__row.is-active, .t-per100__row:hover { background: #f3f6fb; transform: translateX(4px); }

    /* 20% DF projects */
    .t-proj { transition: background-color .2s ease; }
    .t-proj:hover { background: #f5f8fd; }
    .t-req__row:not(.t-req__row--head) { transition: background-color .2s ease; }
    .t-req__row:not(.t-req__row--head):hover { background: #f5f8fd; }
    .t-req__row:hover .t-req__icon { transform: scale(1.15); }
    .t-req__icon, .t-tab { transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
    .t-tab:not(.is-on):hover { border-color: var(--t-brand); color: var(--t-brand); transform: translateY(-1px); }
    .t-income__items li { transition: color .15s ease; }
    .t-income__items li:hover { color: var(--t-ink); }
    .t-stackbar > span { transition: filter .15s ease; }
    .t-stackbar > span:hover { filter: brightness(1.15); }
    .t-proj:hover .t-proj__n { background: var(--t-brand); color: #fff; transform: scale(1.08); }
    .t-proj:hover .t-bar > i { filter: brightness(1.1); }

    /* Chart: dumidilim ang bar at lumalabas ang eksaktong halaga */
    .t-month:hover .t-month__bar:not(.is-empty) { background: #1a45a0; transform: scaleX(1.06); }
    .t-month:hover .t-month__v { opacity: 0; }
    .t-month:hover .t-month__tip { opacity: 1; transform: translate(-50%, 0); }
    .t-month:hover .t-month__m { color: var(--t-ink); }

    .t-ring:hover { transform: scale(1.05); }
    .t-share:hover .t-share__qr { transform: scale(1.06); }
    .t-btn:hover { transform: translateY(-1px); }
    .t-invite { transition: box-shadow .2s ease, transform .2s ease; }
    .t-invite:hover { box-shadow: var(--t-shadow-lg); transform: translateY(-2px); }
    .t-invite:hover .t-ico { transform: scale(1.1) rotate(-4deg); }
    .t-assure__ico { transition: transform .2s ease, background-color .2s ease; }
    .t-assure li:hover .t-assure__ico { transform: scale(1.12); background: rgba(255, 255, 255, .18); }
    .t-head__right a:hover { transform: translateY(-1px); }
}

/* Eksaktong halaga ng buwan (lumalabas sa hover). */
.t-month__tip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    z-index: 3;
    transform: translate(-50%, 4px);
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--t-navy);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}

/* ---------- Page transition (2026-10-21, "onting animation pag nag lipat lipat ako ng page")
   — pagdating: lumilitaw pataas ang laman; pag-alis (body.t-leaving, mula sa JS sa
   transparency.php): naglalaho. Hindi gumagalaw ang header. ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js .t-hero__in,
    .js main,
    .js .t-sitefoot { animation: t-page-in .5s cubic-bezier(.2, .7, .2, 1) both; }
    .js main { animation-delay: .06s; }
    .js .t-hero { animation: t-hero-in .45s ease both; }

    body.t-leaving .t-hero__in,
    body.t-leaving main,
    body.t-leaving .t-sitefoot { opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease; animation: none; }
}
@keyframes t-page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes t-hero-in { from { opacity: .85; } to { opacity: 1; } }

@keyframes t-ring { from { stroke-dasharray: 0 100; } }
@keyframes t-cell { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes t-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .t-hero h1 { font-size: 34px; }
    .t-bhero { grid-template-columns: 1fr; }
    .t-ring-wrap { justify-self: start; display: flex; align-items: center; gap: 18px; }
    .t-ring { width: 116px; height: 116px; }
    .t-ring__label b { font-size: 24px; }
    .t-ring__sub { margin-top: 0; text-align: left; }
    .t-split, .t-split--waffle { grid-template-columns: 1fr; justify-items: center; }
    .t-per100 { width: 100%; }
    .t-waffle { width: min(260px, 100%); }
    .t-per100__row { grid-template-columns: 58px minmax(0, 1fr); gap: 2px 10px; }
    .t-per100__peso { font-size: 23px; }
    .t-proj { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .t-proj__use { grid-column: 2 / -1; }
    .t-foot { grid-template-columns: 1fr; }
    .t-income { grid-template-columns: 1fr; }
    .t-req__row--head { display: none; }
    .t-req__row { grid-template-columns: 26px minmax(0, 1fr); padding: 14px 18px; }
    .t-req__row > [data-label] { grid-column: 2; display: flex; justify-content: space-between; gap: 12px; text-align: left !important; font-size: 13.5px; }
    .t-req__row > [data-label]::before { content: attr(data-label); color: var(--t-mute); }
    .t-months { gap: 5px; inset: 0 0 0 40px; }
    .t-month__v { display: none; }
}

@media (max-width: 520px) {
    .t-hero__in { padding: 36px 16px 44px; }
    .t-hero--brgy .t-hero__in { padding: 26px 16px 36px; }
    .t-hero h1, .t-bhero h1 { font-size: 29px; }
    .t-hero p.t-lead { font-size: 15.5px; }
    .t-bhero__total b { font-size: 28px; }
    .t-assure { flex-direction: column; gap: 10px; font-size: 13.5px; }
    .t-invite { flex-direction: column; align-items: flex-start; }
    .t-wrap { padding: 22px 16px 44px; }
    .t-head__in { padding: 10px 16px; }
    .t-head__sub { display: none; }
    .t-head__right { font-size: 13px; white-space: nowrap; }
    .t-head__right .t-long { display: none; }
    /* Kasya sa cellphone ang header kasama ang language switch — ang "About"
       ay nasa footer pa rin (.t-sitefoot). */
    .t-head__brand { min-width: 0; }
    .t-head__right > a { display: none; }
    .t-head__right .t-lang a { padding: 5px 9px; }
    .t-lang__long { display: none; }
    .t-lang__short { display: inline; }
    .t-sec__head, .t-sec__body { padding-left: 16px; padding-right: 16px; }
    .t-proj { padding: 14px 16px; grid-template-columns: minmax(0, 1fr) auto; }
    .t-proj__n { display: none; }
    .t-proj__use { grid-column: 1 / -1; }
    .t-chart__grid span::before { display: none; }
    .t-months { inset: 0; gap: 3px; }
    .t-month__m { font-size: 10.5px; }
    .t-poster-wrap { padding: 0; }
    .t-poster { border-radius: 0; box-shadow: none; border-width: 0 0 1px; }
    .t-poster__qr { width: 240px; height: 240px; }
}

/* Pag-print ng poster: poster lang, walang header/buttons. Naka-print din ang mga kulay. */
@media print {
    @page { margin: 10mm; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body.page-transparency { background: #fff; }
    .t-head, .t-poster-actions, .t-sitefoot { display: none !important; }
    .t-poster-wrap { padding: 0; }
    .t-poster { max-width: none; box-shadow: none; }
    .t-poster h1 { font-size: 44px; }
    .t-poster__band p, .t-poster__list { font-size: 18px; }
    .t-poster__qr { width: 380px; height: 380px; margin-top: -64px; }
    .t-poster__url { font-size: 18px; }
}
