/* Hiyas Core blocks. Uses the theme's colour, font and spacing presets, with fallbacks so the
   blocks still read well under another theme. */

.hy-editor-empty { padding: 1rem; border: 1px dashed currentColor; opacity: .7; }

/* Advisory bar: yellow, full width, above the header. */
.hy-advisory { margin: 0; background: var(--wp--preset--color--sun, #F5DD1F); color: var(--wp--preset--color--ink, #1d1b19); }
.hy-advisory__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; max-width: var(--wp--style--global--wide-size, 1200px); margin: 0 auto; padding: .6rem var(--wp--style--root--padding-left, 1.25rem); font-size: 1rem; }
.hy-advisory__label { padding: .15rem .6rem; border-radius: 999px; background: var(--wp--preset--color--ink, #1d1b19); color: var(--wp--preset--color--sun, #F5DD1F); font-size: .875rem; }
.hy-advisory a { color: inherit; font-weight: 700; }

/* Service finder: a big question, a big search box, the most requested as quick links. */
.hy-finder__form { display: grid; gap: .6rem; }
.hy-finder__label, .hy-index__search label { font-family: var(--wp--preset--font-family--slab, Georgia, serif); font-size: 1.375rem; font-weight: 700; }
.hy-finder__row { display: flex; gap: .5rem; }
.hy-finder__row input { flex: 1; min-width: 0; padding: .9rem 1rem; border: 2px solid var(--wp--preset--color--ink, #1d1b19); border-radius: 8px; background: #fff; font: inherit; font-size: 1.125rem; }
.hy-finder__row .wp-element-button { flex: none; }
.hy-finder__popular-label { margin: 1.1rem 0 .5rem; font-size: .9375rem; font-weight: 700; color: var(--wp--preset--color--muted, #5c574f); }
.hy-finder__popular { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.hy-finder__popular a { display: inline-block; padding: .55rem .9rem; border: 2px solid var(--wp--preset--color--green, #1E6B34); border-radius: 999px; color: var(--wp--preset--color--green, #1E6B34); font-weight: 700; text-decoration: none; }
.hy-finder__popular a:hover { background: var(--wp--preset--color--green, #1E6B34); color: #fff; }

/* Service cards. */
.hy-services { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hy-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .hy-services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hy-service { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.4rem; border: 2px solid var(--wp--preset--color--line, #cfcbbf); border-radius: 12px; background: #fff; }
.hy-service:hover { border-color: var(--wp--preset--color--green, #1E6B34); }
.hy-service__name { margin: 0; font-size: 1.3125rem; line-height: 1.2; }
.hy-service__name a { color: inherit; text-decoration: none; }
.hy-service__name a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.hy-service__tl { margin: 0; color: var(--wp--preset--color--muted, #5c574f); }
.hy-service__facts { display: flex; gap: 1.75rem; margin: .5rem 0 0; }
.hy-service__facts dt { font-size: .875rem; color: var(--wp--preset--color--muted, #5c574f); }
.hy-service__facts dd { margin: 0; font-weight: 800; font-size: 1.125rem; }
.hy-service__online { align-self: flex-start; margin: .5rem 0 0; padding: .15rem .65rem; border-radius: 999px; background: #f6dd94; font-size: .875rem; font-weight: 700; }

/* Service index: type filter as pills, then groups. */
.hy-index__search { display: grid; gap: .6rem; max-width: 640px; margin-bottom: 1.5rem; }
.hy-index__types ul { margin: 0 0 1.5rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.hy-index__types a { display: inline-block; padding: .55rem 1rem; border: 2px solid var(--wp--preset--color--line, #cfcbbf); border-radius: 999px; background: #fff; color: var(--wp--preset--color--ink, #1d1b19); font-weight: 700; text-decoration: none; }
.hy-index__types a:hover { border-color: var(--wp--preset--color--green, #1E6B34); }
.hy-index__types a[aria-current="page"] { border-color: var(--wp--preset--color--green, #1E6B34); background: var(--wp--preset--color--green, #1E6B34); color: #fff; }
.hy-index__status { margin: 0 0 1.5rem; font-weight: 700; }
.hy-index__status a { margin-left: .5rem; font-weight: 400; }
.hy-index__group + .hy-index__group { margin-top: var(--wp--preset--spacing--60, 3rem); }
.hy-index__heading { margin: 0 0 1rem; }

/* Citizen's Charter. */
.hy-charter__tl { margin: 0 0 1.25rem; color: var(--wp--preset--color--muted, #5c574f); }
.hy-charter__totals { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 1.5rem; }
.hy-charter__totals > div:last-child { grid-column: 1 / -1; }
@media (min-width: 700px) { .hy-charter__totals { grid-template-columns: 1fr 1fr 2fr; } .hy-charter__totals > div:last-child { grid-column: auto; } }
.hy-charter__totals > div { padding: 1rem 1.1rem; border-radius: 12px; background: #fff; }
.hy-charter__totals dt { font-size: .9375rem; color: var(--wp--preset--color--muted, #5c574f); }
.hy-charter__totals dd { margin: .2rem 0 0; font: 700 1.375rem/1.25 var(--wp--preset--font-family--slab, Georgia, serif); }
.hy-charter__totals > div:last-child dd { font: 700 1.0625rem/1.4 var(--wp--preset--font-family--sans, system-ui); }
.hy-charter__online { margin: 0 0 1rem; }
.hy-charter__heading { margin: 2.25rem 0 .75rem; font-size: 1.625rem; }
.hy-charter__requirements { margin: 0; padding: 0; list-style: none; }
.hy-charter__requirements li { position: relative; padding: .55rem 0 .55rem 2rem; }
.hy-charter__requirements li::before { content: ""; position: absolute; left: 0; top: .8rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--wp--preset--color--ink, #1d1b19); border-radius: 4px; background: #fff; }
.hy-charter__table-wrap { overflow-x: auto; }
.hy-charter__steps { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.hy-charter__steps th, .hy-charter__steps td { padding: .85rem .75rem; border-bottom: 1px solid var(--wp--preset--color--line, #cfcbbf); text-align: left; vertical-align: top; }
.hy-charter__steps thead th { font-size: .9375rem; color: var(--wp--preset--color--muted, #5c574f); border-bottom: 2px solid var(--wp--preset--color--ink, #1d1b19); }
.hy-charter__steps tr:last-child td { border-bottom: 0; }
.hy-charter__steps th, .hy-charter__steps td:nth-child(n+4) { white-space: nowrap; }
.hy-charter__num { font: 700 1.25rem/1 var(--wp--preset--font-family--slab, Georgia, serif); color: var(--wp--preset--color--green, #1E6B34); }
@media (max-width: 699px) {
	.hy-charter__steps thead { display: none; }
	.hy-charter__steps tr { display: grid; grid-template-columns: 2.5rem 1fr; padding: .75rem 0; border-bottom: 1px solid var(--wp--preset--color--line, #cfcbbf); }
	.hy-charter__steps td { padding: .15rem .75rem; border: 0; }
	.hy-charter__steps td.hy-charter__num { grid-row: span 4; padding-top: .35rem; }
	.hy-charter__steps td:nth-child(3), .hy-charter__steps td:nth-child(4), .hy-charter__steps td:nth-child(5) { color: var(--wp--preset--color--muted, #5c574f); font-size: .9375rem; }
}

/* Hotlines: 911 first, then the barangay numbers. Big numbers, big tap targets. */
.hy-hotlines { margin: 0; padding: 0; list-style: none; }
.hy-hotlines li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--wp--preset--color--line, #cfcbbf); }
.hy-hotlines li.is-national { padding: .8rem 1rem; border: 0; border-radius: 10px; background: var(--wp--preset--color--red, #c8261e); color: #fff; }
.hy-hotlines li.is-national .hy-hotlines__number { color: #fff; }
.hy-hotlines__number { font: 700 1.375rem/1.2 var(--wp--preset--font-family--slab, Georgia, serif); color: var(--wp--preset--color--ink, #1d1b19); text-decoration: none; }
.hy-hotlines__number:hover { text-decoration: underline; }
.hy-hotlines.is-compact li { padding: .45rem 0; }
.hy-hotlines.is-compact li.is-national { padding: .5rem .75rem; }
.hy-hotlines.is-compact .hy-hotlines__number { font-size: 1.125rem; }
.hy-hotlines.is-compact li:nth-child(n+5) { display: none; }

/* Purok map. */
.hy-map { margin: 0; padding: 1rem; border-radius: 12px; background: #fff; }
.hy-map__svg { display: block; width: 100%; height: auto; }
.hy-map__purok { stroke: #8c857a; stroke-width: 1.5; stroke-dasharray: 6 5; }
.hy-map__purok--odd { fill: #efebe0; }
.hy-map__purok--even { fill: #e7e2d4; }
.hy-map__flood-bg { fill: #fbeccb; }
.hy-map__flood-line { stroke: var(--wp--preset--color--sun, #F5DD1F); stroke-width: 5; }
.hy-map__river { fill: none; stroke: #7fa7c4; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
.hy-map__road-casing { fill: none; stroke: var(--wp--preset--color--ink, #1d1b19); stroke-width: 12; stroke-linecap: round; }
.hy-map__road { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.hy-map__route { fill: none; stroke: var(--wp--preset--color--green, #1E6B34); stroke-width: 4; stroke-dasharray: 1 9; stroke-linecap: round; }
.hy-map__route.is-faded { opacity: .2; }
.hy-map__arrow { fill: var(--wp--preset--color--green, #1E6B34); }
.hy-map__purok-num { font: 700 17px/1 var(--wp--preset--font-family--slab, Georgia, serif); fill: var(--wp--preset--color--ink, #1d1b19); text-anchor: middle; paint-order: stroke; stroke: #efebe0; stroke-width: 4px; }
.hy-map__purok-name { font: 600 14px/1 var(--wp--preset--font-family--sans, system-ui); fill: var(--wp--preset--color--muted, #5c574f); text-anchor: middle; paint-order: stroke; stroke: #efebe0; stroke-width: 4px; }
.hy-map__spot circle { fill: #fff; stroke: var(--wp--preset--color--ink, #1d1b19); stroke-width: 2.5; }
.hy-map__spot.is-centre circle { fill: var(--wp--preset--color--green, #1E6B34); stroke: #fff; stroke-width: 3; }
.hy-map__spot.is-current circle { stroke: var(--wp--preset--color--sun, #F5DD1F); stroke-width: 5; }
.hy-map__spot text { font: 700 14px/1 var(--wp--preset--font-family--sans, system-ui); fill: var(--wp--preset--color--ink, #1d1b19); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.has-current .hy-map__spot:not(.is-current) text { opacity: .55; }
.hy-map__caption { display: grid; gap: 1rem; margin-top: 1rem; }
.hy-map__key { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9375rem; }
.hy-map__key li::before { content: ""; display: inline-block; width: 1rem; height: 1rem; margin-right: .45rem; vertical-align: -.15em; }
.hy-map__key-centre::before { border-radius: 50%; background: var(--wp--preset--color--green, #1E6B34); }
.hy-map__key-route::before { height: 0 !important; border-top: 4px dotted var(--wp--preset--color--green, #1E6B34); vertical-align: .25em !important; }
.hy-map__key-flood::before { background: repeating-linear-gradient(45deg, #fbeccb 0 4px, var(--wp--preset--color--sun, #F5DD1F) 4px 7px); }
.hy-map__key-purok::before { border: 2px dashed #8c857a; }
.hy-map__routes { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .hy-map__routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hy-map__routes li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--wp--preset--color--line, #cfcbbf); }

/* Evacuation centres. */
.hy-centres { margin: var(--wp--preset--spacing--50, 2rem) 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .hy-centres:not(.is-single) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hy-centres.is-single { margin-top: 0; }
.hy-centre { position: relative; padding: 1.4rem; border-radius: 12px; background: #fff; border: 2px solid var(--wp--preset--color--line, #cfcbbf); }
.hy-centre__name { margin: 0 0 .75rem; font-size: 1.375rem; }
.hy-centre__name a { color: inherit; text-decoration: none; }
.hy-centre__name a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.hy-centre:hover .hy-centre__name a { text-decoration: underline; }
.hy-centre__facts, .hy-facts { margin: 0; }
.hy-centre__facts > div, .hy-facts > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--wp--preset--color--line, #cfcbbf); }
.hy-centre__facts dt, .hy-facts dt { color: var(--wp--preset--color--muted, #5c574f); }
.hy-centre__facts dd, .hy-facts dd { margin: 0; font-weight: 700; }
.hy-centre__facilities { margin: .9rem 0 0; padding-left: 1.2rem; }

/* Officials. */
.hy-officials { margin: 0; padding: 0; list-style: none; display: grid; gap: 2rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .hy-officials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .hy-officials { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hy-official__photo { margin: 0 0 .75rem; }
.hy-official__photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.hy-official__name { margin: 0; font-size: 1.1875rem; line-height: 1.25; }
.hy-official__role { margin: .15rem 0 0; font-weight: 800; color: var(--wp--preset--color--green, #1E6B34); }
.hy-official__committees { margin: .3rem 0 0; font-size: .9375rem; color: var(--wp--preset--color--muted, #5c574f); }
.hy-official.is-captain { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 160px) 1fr; gap: .25rem 1.25rem; align-items: center; }
.hy-official.is-captain .hy-official__photo { grid-row: span 3; margin: 0; }
.hy-official.is-captain .hy-official__name { font-size: 1.625rem; }

/* Projects and progress bars. */
.hy-projects { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .hy-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hy-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hy-project { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.4rem; border-radius: 12px; background: var(--wp--preset--color--base, #f5f3ec); }
.hy-project__status { order: -1; align-self: flex-start; margin: 0; padding: .15rem .65rem; border-radius: 999px; background: #fff; font-size: .875rem; font-weight: 800; }
.hy-project.is-done .hy-project__status { background: var(--wp--preset--color--green, #1E6B34); color: #fff; }
.hy-project.is-ongoing .hy-project__status { background: var(--wp--preset--color--sun, #F5DD1F); }
.hy-project__name { margin: .2rem 0 0; font-size: 1.25rem; line-height: 1.25; }
.hy-project__name a { color: inherit; text-decoration: none; }
.hy-project__name a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.hy-project:hover .hy-project__name a { text-decoration: underline; }
.hy-project__where { margin: 0; color: var(--wp--preset--color--muted, #5c574f); font-size: .9375rem; }
.hy-project__budget { margin: .4rem 0 0; }
.hy-project__budget strong { font: 700 1.375rem/1 var(--wp--preset--font-family--slab, Georgia, serif); }
.hy-progress { margin-top: .4rem; }
.hy-progress__bar { height: .75rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--wp--preset--color--line, #cfcbbf); overflow: hidden; }
.hy-progress__bar span { display: block; height: 100%; border-radius: 999px; background: var(--wp--preset--color--green, #1E6B34); }
.hy-progress__label { margin: .4rem 0 0; font-size: .9375rem; font-weight: 700; }
.hy-project-facts { display: grid; gap: 1rem; padding: 1.4rem; border-radius: 12px; background: #fff; }

/* Announcements. */
.hy-news-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .hy-news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hy-news { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.4rem; border-radius: 12px; background: #fff; border: 2px solid var(--wp--preset--color--line, #cfcbbf); border-top-width: 6px; }
.hy-news.is-urgent { border-top-color: var(--wp--preset--color--sun, #F5DD1F); }
.hy-news__cat { order: -1; margin: 0; font-size: .9375rem; font-weight: 800; color: var(--wp--preset--color--green, #1E6B34); }
.hy-news__title { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.hy-news__title a { color: inherit; text-decoration: none; }
.hy-news__title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.hy-news:hover .hy-news__title a { text-decoration: underline; }
.hy-news__date { margin: auto 0 0; padding-top: .5rem; font-size: .9375rem; color: var(--wp--preset--color--muted, #5c574f); }
.hy-news-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; color: var(--wp--preset--color--muted, #5c574f); }
.hy-news-meta p { margin: 0; }
.hy-news-meta a { font-weight: 800; }
.hy-news-meta__until { padding: 0 .6rem; border-radius: 999px; background: var(--wp--preset--color--sun, #F5DD1F); color: var(--wp--preset--color--ink, #1d1b19); font-weight: 700; }

/* Plugin form block (used when Fluent Forms is off). */
.hy-form__grid { display: grid; gap: 1rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hy-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hy-form__field { display: grid; gap: .4rem; margin: 0; }
.hy-form__field--wide, .hy-form__actions { grid-column: 1 / -1; }
.hy-form label { font-weight: 700; }
.hy-form :is(input, select, textarea) { width: 100%; box-sizing: border-box; padding: .8rem 1rem; border: 2px solid #7a7468; border-radius: 8px; background: #fff; font: inherit; color: inherit; }
.hy-form__req { color: var(--wp--preset--color--green, #1E6B34); }
.hy-form__hp { position: absolute; left: -9999px; }
.hy-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: .5rem 0 0; }
.hy-form__hint { font-size: .9375rem; color: var(--wp--preset--color--muted, #5c574f); }
.hy-form__notice { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: 8px; }
.hy-form__notice--ok { background: #f6dd94; }
.hy-form__notice--error { background: #fde8e6; }
