/* Ulat Ngayon — PH News Network publication. Layout: tiles. Edit the variables to re-theme. */
:root { --c1: #6d28d9; --c2: #ec4899; --bg: #faf7ff; --ink: #1e1b4b; --muted: #6b7280; --line: rgba(0,0,0,.12); --card: #fff;
  --head: "Arial Narrow", "Helvetica Neue", Arial, sans-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: bold tiles ---- */
.pub-header { background: var(--ink); color: #fff; }
.pub-header .top { display: flex; align-items: center; gap: 16px; padding: 16px 20px; max-width: var(--wrap); margin: 0 auto; }
.pub-header .brand { font-size: 1.8rem; text-transform: uppercase; }
.pub-header .brand:hover { color: var(--c2); }
.pub-header .tag { margin-left: auto; color: var(--c2); font-size: .9rem; }
.cat-nav { background: var(--c1); }
.cat-nav ul { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; gap: 0; }
.cat-nav a { display: block; color: #fff; padding: 12px 16px; text-transform: uppercase; font-size: .82rem; letter-spacing: .05em; }
.cat-nav a:hover { background: rgba(255,255,255,.15); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 8px; margin-top: 8px; }
.tile { position: relative; overflow: hidden; color: #fff; display: block; border-radius: 4px; }
.tile .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85)); }
.tile .story { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 1; }
.tile .story p { color: #e5e7eb; }
.tile .kicker { color: var(--c2); }
.tile:hover { color: var(--c2); }
.tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.tile:nth-child(1) h3 { font-size: 2rem; }
.tile:nth-child(6):last-child { grid-column: 1 / -1; }
.tile:nth-child(6):nth-last-child(2), .tile:nth-child(7):last-child { grid-column: span 2; }
.tile .labels { position: absolute; top: 12px; left: 12px; z-index: 1; }
.lead, .grid { display: none; }
.cat-block .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-block .story { border-top: 6px solid var(--c1); background: #fff; padding: 14px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile:nth-child(6):nth-last-child(2), .tile:nth-child(7):last-child { grid-column: auto; } .cat-block .row { grid-template-columns: 1fr 1fr; } .pub-header .tag { display: none; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; grid-auto-rows: 240px; } .tile:nth-child(n), .tile:nth-child(6):last-child, .tile:nth-child(6):nth-last-child(2), .tile:nth-child(7):last-child { grid-column: auto; grid-row: auto; } .tile:nth-child(1) h3 { font-size: 1.4rem; } .cat-block .row { grid-template-columns: 1fr; } .menu-btn { display: inline-block; margin-left: auto; color: #fff; border-color: rgba(255,255,255,.4); } .cat-nav { display: none; } .cat-nav.open { display: block; } .cat-nav ul { flex-direction: column; } }
