/* Bantay Bayan — PH News Network publication. Layout: feed. Edit the variables to re-theme. */
:root { --c1: #1e3a8a; --c2: #ea580c; --bg: #f5f7fb; --ink: #0f172a; --muted: #6b7280; --line: rgba(0,0,0,.12); --card: #fff;
  --head: Rockwell, "Roboto Slab", "Courier New", Georgia, serif; --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --wrap: 1180px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c1); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 900; }
.brand img { width: 40px; height: 40px; }
.menu-btn { display: none; border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 8px; width: 42px; height: 42px; cursor: pointer; font-size: 20px; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cat-nav a { font-weight: 700; font-size: .9rem; }
.cat-nav a[aria-current="page"] { color: var(--c1); text-decoration: underline; text-underline-offset: 5px; }
.thumb { aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; background: var(--c1); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.meta { font-size: .8rem; color: var(--muted); }
.kicker { font: 800 .75rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--c1); text-transform: uppercase; letter-spacing: .06em; }
.story h3 { margin: 8px 0 6px; }
.story p { color: #374151; font-size: .95rem; }
.labels { display: flex; gap: 6px; flex-wrap: wrap; }
.section-title { font-size: 1.2rem; margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.cat-block { scroll-margin-top: 20px; }
/* Article page */
.article { max-width: 760px; margin: 30px auto 10px; background: var(--card); padding: 34px; border-radius: 10px; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 12px 0; }
.article .dek { font-size: 1.12rem; color: #4b5563; }
.article .byline { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 18px 0; font-size: .9rem; }
.article figure { margin: 0 0 20px; }
.article figure img { width: 100%; max-height: 560px; object-fit: cover; object-position: center 20%; border-radius: 6px; }
.article figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.article .body p { margin: 0 0 1.1em; font-size: 1.1rem; line-height: 1.75; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--c1); text-decoration: underline; }
.prose { max-width: 820px; margin: 30px auto; background: var(--card); padding: 34px; border-radius: 10px; }
.prose h1 { font-size: 2rem; margin-bottom: 14px; }
.prose h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.prose p, .prose li { margin-bottom: .7em; color: #374151; }
.prose a { color: var(--c1); text-decoration: underline; }
/* Footer */
.pub-footer { background: var(--ink); color: #e5e7eb; margin-top: 50px; padding: 36px 0 26px; font-size: .9rem; }
.pub-footer a:hover { color: var(--c2); }
.pub-footer .cols { display: flex; flex-wrap: wrap; gap: 26px 60px; }
.pub-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.pub-footer ul { list-style: none; padding: 0; margin: 0; }
.pub-footer li { margin-bottom: 6px; }
.pub-footer .brand { color: #fff; font-size: 1.3rem; }

/* ---- Layout: wire feed ---- */
.pub-header { background: var(--c1); color: #fff; }
.pub-header .top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; max-width: var(--wrap); margin: 0 auto; }
.pub-header .brand { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; }
.pub-header .brand:hover { color: var(--c2); }
.pub-header .tag { margin-left: auto; font-size: .85rem; color: var(--c2); font-weight: 700; }
.ticker { background: var(--c2); color: #111; font: 800 .8rem/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.ticker .wrap { padding: 9px 20px; }
.feed-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; margin-top: 26px; }
.cat-nav { position: sticky; top: 16px; align-self: start; }
.cat-nav ul { flex-direction: column; gap: 2px; border-left: 3px solid var(--c1); }
.cat-nav a { display: block; padding: 8px 14px; font-size: .95rem; }
.cat-nav a:hover { background: rgba(0,0,0,.05); }
.feed { list-style: none; margin: 0; padding: 0; position: relative; }
.feed::before { content: ""; position: absolute; left: 70px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.feed > li { display: grid; grid-template-columns: 70px 1fr; gap: 26px; padding: 0 0 26px; position: relative; }
.feed > li::before { content: ""; position: absolute; left: 65px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c1); border: 3px solid var(--bg); }
.feed .time { font: 800 .85rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--c1); text-align: right; padding-right: 10px; }
.feed .story { background: #fff; padding: 16px 18px; border-radius: 8px; box-shadow: 0 1px 8px rgba(0,0,0,.05); display: grid; grid-template-columns: 1fr 180px; gap: 16px; align-items: center; }
.feed .story h3 { font-size: 1.15rem; }
.cat-block { display: none; }
.lead, .grid { display: none; }
@media (max-width: 820px) { .feed-layout { grid-template-columns: 1fr; } .cat-nav { position: static; } .cat-nav ul { flex-direction: row; flex-wrap: wrap; border-left: 0; } .feed .story { grid-template-columns: 1fr; } .feed .story .thumb { order: -1; } .pub-header .tag { display: none; } }
@media (max-width: 520px) { .feed::before, .feed > li::before { display: none; } .feed > li { grid-template-columns: 1fr; gap: 4px; } .feed .time { text-align: left; } }
