  :root {
    --bg:#faf9f7; --card:#ffffff; --ink:#1c1b1a; --muted:#6b6862;
    --line:#e8e5e0; --accent:#c8102e; --accent-dark:#9e0c24;
    --chipbg:#f4f2ee; --phbg:#fcd116; --phink:#4a3b00; --footbg:#1c1b1a;
  }
  /* manual dark (forced via the header toggle, regardless of OS) */
  :root[data-theme="dark"] {
    --bg:#171615; --card:#201f1d; --ink:#ece9e4; --muted:#a39e96;
    --line:#34322e; --accent:#ff4d5e; --accent-dark:#ff8a94;
    --chipbg:#2b2926; --phbg:#8a6d00; --phink:#fff3c4; --footbg:#100f0e;
  }
  /* light is the default; dark applies only when the user toggles it */
  * { box-sizing:border-box; }
  body { font-family:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
         font-size:14px; line-height:1.5; margin:0; color:var(--ink); background:var(--bg); }
  a { color:inherit; text-decoration:none; }
  a:focus-visible, button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:2px; }
  /* marketplace: invite placeholders + listings */
  .invite { border:1px dashed var(--line); border-radius:10px; padding:13px 14px; margin-bottom:6px; background:var(--card); }
  .invite-pitch { margin:0 0 8px; font-size:13px; color:var(--muted); line-height:1.5; }
  .invite-cta { display:inline-block; font-size:12.5px; font-weight:700; color:#fff; background:var(--accent); padding:6px 12px; border-radius:7px; }
  .invite-cta:hover { background:var(--accent-dark); }
  .invite-note { margin:8px 0 0; font-size:11px; color:var(--muted); line-height:1.4; }
  .partners { display:flex; flex-direction:column; gap:8px; margin-bottom:6px; }
  .partner { display:flex; flex-direction:column; gap:2px; border:1px solid var(--line); border-radius:10px; padding:11px 13px; background:var(--card); }
  .partner:hover { border-color:var(--accent); }
  .partner-logo { max-height:30px; max-width:130px; object-fit:contain; margin-bottom:4px; }
  /* Most partner marks (e.g. Toyota's) are solid black on transparent — invert
     to a crisp white version in dark mode instead of hosting a second asset. */
  :root[data-theme="dark"] .partner-logo { filter:invert(1); }
  .partner-name { font-size:14px; font-weight:700; color:var(--ink); }
  .partner-blurb { font-size:12.5px; color:var(--muted); }
  ul.lst { list-style:none; margin:0 0 6px; padding:0; }
  ul.lst li { border-bottom:1px solid var(--line); padding:9px 0; }
  ul.lst a { display:flex; align-items:center; gap:11px; color:var(--ink); }
  ul.lst a:hover strong { color:var(--accent); }
  ul.lst .lst-text { min-width:0; }
  ul.lst strong { display:block; font-size:13.5px; font-weight:600; }
  .lst-meta { display:block; font-size:11.5px; color:var(--muted); margin-top:1px; }
  .lst-logo { flex:0 0 auto; width:46px; height:46px; object-fit:contain;
               background:#fff; border:1px solid var(--line); border-radius:8px; padding:4px; }
  .lst-add { display:inline-block; margin-top:6px; font-size:12px; font-weight:600; color:var(--accent); }
  .lst-add:hover { text-decoration:underline; }
  /* newsletter signup modal (the one approved auto-popup) */
  .nlmodal { position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; padding:20px; }
  .nlmodal[hidden] { display:none; }
  .nlbox { position:relative; background:var(--card); border-radius:14px; padding:26px 24px; max-width:380px; width:100%; text-align:center; }
  .nlbox-h { margin:0 0 6px; font-size:19px; }
  .nlbox-p { margin:0 0 14px; font-size:14px; color:var(--muted); }
  .nlbox-form { display:flex; gap:8px; }
  .nlbox-form input { flex:1; min-width:0; font:inherit; font-size:16px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--ink); }
  .nlbox-form input:focus { outline:none; border-color:var(--accent); }
  .nlbox-form button { font:inherit; font-size:14px; font-weight:700; color:#fff; background:var(--accent); border:none; border-radius:8px; padding:10px 16px; cursor:pointer; }
  .nlbox-form button:hover { background:var(--accent-dark); }
  .nlbox-fine { margin:10px 0 0; font-size:11px; color:var(--muted); }
  .nlclose { position:absolute; top:8px; right:12px; font-size:24px; line-height:1; background:none; border:none; color:var(--muted); cursor:pointer; }
  /* GCash tip button + modal — emitted by render() only when support.qr_image is
     set (dormant at launch). Kept here so re-enabling the QR renders it styled;
     the open/close handler lives in js/site.js. NOT dead code. */
  .tipbtn { position:fixed; right:18px; bottom:calc(18px + env(safe-area-inset-bottom)); z-index:950; font:inherit; font-size:12px; font-weight:700; color:#fff; background:var(--accent); border:none; border-radius:999px; padding:8px 13px; cursor:pointer; box-shadow:0 2px 7px rgba(0,0,0,.16); opacity:0.9; transition:opacity .15s; }
  .tipbtn:hover, .tipbtn:focus-visible { background:var(--accent-dark); opacity:1; }
  .tipmodal { position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,.55); display:none; align-items:center; justify-content:center; padding:20px; }
  .tipmodal.open { display:flex; }
  .tipbox { position:relative; background:var(--card); border-radius:14px; padding:24px; max-width:320px; width:100%; text-align:center; }
  .tipqr { width:240px; max-width:100%; height:auto; border-radius:8px; margin-top:6px; }
  .tipclose { position:absolute; top:8px; right:12px; font-size:24px; line-height:1; background:none; border:none; color:var(--muted); cursor:pointer; }
  @media (max-width:780px) { .tipbtn { right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); } }
  a, button { touch-action:manipulation; }
  @media (prefers-reduced-motion: reduce) { * { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
  .skip { position:absolute; left:-9999px; top:0; z-index:1000; background:var(--accent); color:#fff; padding:8px 14px; border-radius:0 0 8px 0; font-size:14px; font-weight:600; }
  .skip:focus { left:0; }
  .stripe { height:4px; background:linear-gradient(90deg, var(--accent) 0 60%, var(--ink) 60% 62%, var(--accent-dark) 62%); }
  header { max-width:1200px; margin:0 auto; padding:20px 20px 14px; display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; }
  .brand { font-size:30px; font-weight:800; font-style:italic; letter-spacing:-1.5px; margin:0; }
  .brand .ride { color:var(--accent); }
  .tag { color:var(--muted); font-size:13px; }
  .updated { margin-left:auto; color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
  .wrap { display:flex; gap:28px; max-width:1200px; margin:0 auto; padding:0 20px 32px; }
  main { flex:1.75; min-width:0; }
  .mid { flex:1.25; min-width:300px; align-self:flex-start; position:sticky; top:20px; }
  .right { flex:0.8; min-width:230px; max-width:300px; align-self:flex-start; position:sticky; top:20px; }
  .item { position:relative; background:var(--card); border:1px solid var(--line);
           border-radius:10px; padding:14px 16px; margin-bottom:10px; }
  /* NEW badge overlays (does not reflow) so site.js adding .fresh after paint cannot CLS.
     ::after stays reserved for the float clearfix below. */
  .item.fresh::before { content:"NEW"; position:absolute; top:10px; right:12px; z-index:1;
                         background:var(--accent); color:#fff; font-size:9px; font-weight:800;
                         letter-spacing:.5px; padding:1px 5px; border-radius:3px;
                         pointer-events:none; line-height:1.4; }
  .item:first-child .hed { font-size:20px; }
  /* block flow (not flex) so the row wraps AROUND the floated thumbnail
     instead of sliding under it — fixes the date overlapping the thumb on mobile */
  .src { font-size:11.5px; margin-bottom:4px; line-height:1.5;
          text-transform:uppercase; letter-spacing:0.6px; color:var(--muted); }
  .srcname { font-weight:700; color:var(--ink); }
  .srcname:hover { color:var(--accent); }
  .time { font-variant-numeric:tabular-nums; text-transform:none; letter-spacing:0; margin-left:5px; white-space:nowrap; }
  .hed { font-size:16.5px; font-weight:650; line-height:1.3; margin:0; letter-spacing:-0.2px; }
  .hed a:hover { color:var(--accent); }
  .snip { font-size:13px; color:var(--muted); margin:5px 0 0; }
  .river-sep { display:flex; align-items:center; gap:10px; margin:18px 0 12px;
                font-size:12.5px; font-weight:700; text-transform:uppercase;
                letter-spacing:1.2px; color:var(--muted); }
  .river-sep::after { content:""; flex:1; height:1px; background:var(--line); }
  .river-sep::before { content:""; width:4px; height:16px; border-radius:2px; background:var(--accent); }
  .more { margin-top:9px; display:flex; flex-wrap:wrap; gap:5px; align-items:center; }
  .morelabel { font-size:11px; text-transform:uppercase; letter-spacing:0.6px; color:var(--muted); margin-right:3px; }
  .chip { font-size:12px; background:var(--chipbg); border:1px solid var(--line);
           border-radius:999px; padding:2px 10px; color:var(--ink); }
  .chip:hover { border-color:var(--accent); color:var(--accent); }
  .ph { background:var(--phbg); color:var(--phink); font-size:10px; font-weight:800;
         padding:1.5px 6px; border-radius:4px; letter-spacing:0.5px;
         display:inline-block; vertical-align:middle; margin-right:6px; }
  aside h2 { font-size:12.5px; text-transform:uppercase; letter-spacing:1.2px; margin:18px 0 10px;
              padding-left:10px; border-left:4px solid var(--accent); }
  aside ul { list-style:none; margin:0 0 28px; padding:0; }
  .fire li { position:relative; padding:7px 0 7px 16px; border-bottom:1px solid var(--line); font-size:12.5px; }
  .fire li::before { content:""; position:absolute; left:0; top:14px; width:6px; height:6px;
                      border-radius:50%; background:var(--accent); }
  .fire .time { color:var(--muted); font-size:11px; }
  .fire a:hover { color:var(--accent); }
  .fire .srcname { font-weight:400; color:var(--muted); font-size:11px; }
  .follow { display:flex; flex-wrap:wrap; gap:6px; }
  .follow li { display:inline; }
  .follow a { font-size:12px; background:var(--chipbg); border:1px solid var(--line);
               border-radius:999px; padding:3px 11px; display:inline-block; }
  .follow a:hover { border-color:var(--accent); color:var(--accent); }
  .follow .ig { font-size:10px; padding:3px 7px; margin-left:3px; color:var(--muted); }
  .brandnav { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 28px; }
  .brandnav li { display:inline; }
  .brandnav a { font-size:12px; background:var(--chipbg); border:1px solid var(--line);
                 border-radius:999px; padding:3px 11px; display:inline-block; }
  .brandnav a:hover { border-color:var(--accent); color:var(--accent); }
  aside h2 .sub { font-weight:400; letter-spacing:0; text-transform:none; color:var(--muted); font-size:11px; }
  .wire li::before { background:var(--muted); }
  .embeds { display:flex; flex-direction:column; gap:10px; }
  .embeds iframe { max-width:100%; border-radius:10px; border:1px solid var(--line); }
  footer { background:var(--footbg); color:#b7b2aa; margin-top:8px; padding:20px;
            font-size:12px; text-align:center; }
  footer a { color:#e6e1d9; text-decoration:underline; }
  .footnav { margin-bottom:10px; font-weight:600; letter-spacing:0.3px; }
  .footnav a { text-decoration:none; margin:0 2px; }
  .footnav a:hover { color:#fff; text-decoration:underline; }
  /* header right group: search + share */
  .hgroup { margin-left:auto; display:flex; align-items:center; gap:14px; }
  .updated { margin-left:0; flex-basis:100%; text-align:right; }
  .search { display:flex; gap:0; }
  .search input { font:inherit; font-size:16px; padding:6px 11px; width:180px; color:var(--ink);
                   background:var(--card); border:1px solid var(--line); border-right:none;
                   border-radius:8px 0 0 8px; outline:none; }
  .search input:focus { border-color:var(--accent); }
  .search button { font:inherit; font-size:13px; padding:6px 13px; cursor:pointer; color:#fff;
                    background:var(--accent); border:1px solid var(--accent); border-radius:0 8px 8px 0; }
  .search button:hover { background:var(--accent-dark); border-color:var(--accent-dark); }
  .noresults { display:none; color:var(--muted); padding:18px 2px; font-size:13px; }
  /* site share bar (top-right) */
  .sharebar { display:flex; align-items:center; gap:6px; }
  .sharelabel { font-size:11px; text-transform:uppercase; letter-spacing:0.7px; color:var(--muted); }
  .sbtn { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px;
           padding:0; cursor:pointer; color:var(--muted); background:var(--card);
           border:1px solid var(--line); border-radius:50%; }
  .sbtn svg { width:15px; height:15px; fill:currentColor; }
  .sbtn:hover { color:#fff; background:var(--accent); border-color:var(--accent); }
  .sbtn.copy.done { color:#fff; background:#0a7d28; border-color:#0a7d28; }
  .hactions { display:flex; align-items:center; gap:8px; flex-wrap:nowrap; }
  .themebtn { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px;
               padding:0; cursor:pointer; color:var(--muted); background:var(--card);
               border:1px solid var(--line); border-radius:50%; }
  .themebtn:hover { color:#fff; background:var(--accent); border-color:var(--accent); }
  /* sponsor posts — text left, prominent logo right */
  .sponsors { display:flex; flex-direction:column; gap:10px; margin-bottom:28px; }
  .sp-card { display:flex; align-items:center; gap:14px; background:var(--card);
              border:1px solid var(--line); border-radius:10px; padding:16px;
              min-height:108px; box-sizing:border-box; }
  .sp-card:hover { border-color:var(--accent); }
  .sp-text { flex:1; min-width:0; }
  .sp-by { display:block; font-size:10px; text-transform:uppercase; letter-spacing:0.7px;
            color:var(--muted); margin-bottom:4px; }
  .sp-title { display:block; font-size:14px; font-weight:700; line-height:1.3; }
  .sp-card:hover .sp-title { color:var(--accent); }
  .sp-body { font-size:12.5px; color:var(--muted); margin:5px 0 0; }
  .sp-logo { flex:0 0 auto; width:150px; height:88px; object-fit:contain;
              object-position:center; align-self:center; }
  .sp-card.no-logo { display:flex; }
  /* newsletter */
  .nl-card { background:var(--card); border:1px solid var(--line); border-radius:10px;
              padding:14px 15px; margin-bottom:28px; }
  .nl-blurb { font-size:13px; color:var(--muted); margin:0 0 10px; }
  .nl-form { display:flex; gap:0; }
  .nl-input { font:inherit; font-size:16px; flex:1; min-width:0; padding:8px 11px; color:var(--ink);
               background:var(--bg); border:1px solid var(--line); border-right:none;
               border-radius:8px 0 0 8px; outline:none; }
  .nl-input:focus { border-color:var(--accent); }
  .nl-btn { font:inherit; font-size:13px; font-weight:600; padding:8px 14px; cursor:pointer;
             color:#fff; background:var(--accent); border:1px solid var(--accent);
             border-radius:0 8px 8px 0; }
  .nl-btn:hover { background:var(--accent-dark); border-color:var(--accent-dark); }
  .nl-link { display:inline-block; border-radius:8px; text-align:center; }
  .nl-issue { display:inline-block; margin-top:9px; font-size:12.5px; font-weight:600; color:var(--accent); }
  .nl-issue:hover { color:var(--accent-dark); }
  @media (max-width:780px) {
    .wrap { flex-direction:column; }
    .mid, .right { max-width:none; position:static; }
    header { padding:14px 16px 10px; }
    .hgroup { margin-left:0; width:100%; flex-wrap:wrap; gap:10px; }
    .search { flex:1; min-width:160px; }
    .search input { flex:1; width:auto; }
    .filters { padding:0 16px 10px; }
    /* enlarge touch targets to >=44px on touch devices */
    .flt, .navlink { min-height:44px; }
    .sbtn, .themebtn { width:44px; height:44px; }
    .search input, .search button { min-height:44px; }
  }
  /* install bar (shown only when the browser reports the PWA is installable) */
  .installbar { max-width:1160px; margin:2px auto 14px; padding:10px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--card); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:0 10px 10px 0; font-size:13px; }
  .installbar[hidden] { display:none; }
  .installtxt { color:var(--muted); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .installacts { display:flex; align-items:center; gap:6px; flex-shrink:0; }
  .installgo { font:inherit; font-size:12.5px; font-weight:700; color:#fff; background:var(--accent); border:none; border-radius:7px; padding:7px 14px; cursor:pointer; }
  .installgo:hover { background:var(--accent-dark); }
  .installx { font-size:20px; line-height:1; background:none; border:none; color:var(--muted); cursor:pointer; padding:0 4px; }
  @media (max-width:780px) { .installbar { margin-left:16px; margin-right:16px; } }
  /* nav filter bar */
  .filters { max-width:1200px; margin:0 auto; padding:0 20px 14px; display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-start; align-items:center; }
  .flt { display:inline-flex; align-items:center; justify-content:center; min-height:32px;
          font:inherit; font-size:12.5px; font-weight:600; padding:4px 12px; cursor:pointer;
          background:var(--chipbg); border:1px solid var(--line); border-radius:999px; color:var(--muted); }
  .flt:hover, .flt.active { background:var(--accent); border-color:var(--accent); color:#fff; }
  .nav-spacer { flex:1; }
  /* subtle gap separating the filters from the nav links (proximity cue, no arrow needed) */
  .navlink:first-of-type { margin-left:8px; }
  .navlink { display:inline-flex; align-items:center; justify-content:center; min-height:32px;
              font:inherit; font-size:12.5px; font-weight:600; padding:4px 12px; text-decoration:none;
              background:var(--chipbg); border:1px solid var(--line); border-radius:999px; color:var(--ink); }
  .navlink:hover { border-color:var(--accent); color:var(--accent); }
  .nav-here { align-self:center; font-size:12.5px; font-weight:700; color:var(--accent); }
  .empty-state { color:var(--muted); padding:48px 4px; font-size:14px; text-align:center; }
  /* thumbnails — right-floated, text flows left; keep box on error to avoid CLS */
  .thumb { float:right; width:130px; height:86px; object-fit:cover; border-radius:6px; margin:2px 0 8px 12px; display:block; flex-shrink:0; }
  .thumb.thumb-failed { visibility:hidden; }
  .item::after { content:""; display:table; clear:both; }
  /* inline newsletter CTA */
  .nl-inline { display:flex; align-items:center; justify-content:space-between; gap:12px;
                background:var(--card); border:1px solid var(--line); border-left:4px solid var(--accent);
                border-radius:0 10px 10px 0; padding:12px 16px; margin-bottom:10px; }
  .nl-inline-text { font-size:13px; color:var(--muted); flex:1; }
  .nl-inline-btn { font-size:12.5px; font-weight:700; white-space:nowrap; padding:5px 12px;
                    background:var(--accent); color:#fff; border-radius:8px; }
  .nl-inline-btn:hover { background:var(--accent-dark); }
