/* stlresult.ph global stylesheet v1.2.3 (2026-11-12) — light Philippine-flag theme, mobile first.
   Original stylesheet for our .stl-* blocks and the GeneratePress shell. Loaded by mu-plugins/stlresult-core.php.
   Bump STLRESULT_CORE_VER after editing. */

/* ---------- 1. Tokens ---------- */
:root {
  --stl-ink: #0B1B3F;
  --stl-muted: #3F4862;
  --stl-page: #F3F6FC;
  --stl-card: #fff;
  --stl-line: #DDE4F2;
  --stl-blue: #0038A8;
  --stl-sun: #FCD116;
  --stl-red: #CE1126;
  --stl-soft: #E6EDFA;
  --stl-shadow: rgba(0,40,120,.09);
  --stl-pill-bg: #EDF1F9;
  --stl-pin-bg: #FFF6CF;
  --stl-good: #0B7A43;
  --stl-r-lg: 24px;
  --stl-r-md: 16px;
  --stl-r-sm: 10px;
  --stl-font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* legacy names still used by older blocks / inline styles */
  --stl-bg-main: var(--stl-page);
  --stl-bg-card: var(--stl-card);
  --stl-bg-elevated: var(--stl-soft);
  --stl-border: var(--stl-line);
  --stl-text-main: var(--stl-ink);
  --stl-text-muted: var(--stl-muted);
  --stl-gold: var(--stl-sun);
  --stl-emerald: var(--stl-good);
  --stl-crimson: var(--stl-red);
  --stl-radius: var(--stl-r-md);
}

/* ---------- 2. Page shell (GeneratePress) ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--stl-page); color: var(--stl-ink); font-family: var(--stl-font); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: var(--stl-blue); }
a:hover { color: var(--stl-ink); }
:focus-visible { outline: 3px solid var(--stl-blue); outline-offset: 2px; }
.site, .site-content, .content-area, .site-main { background: transparent; }
.separate-containers .inside-article, .one-container .site-content { background: transparent; padding: 0; }
.separate-containers .site-main { margin: 0; }
.site.grid-container { max-width: 100%; }
.entry-content { margin: 0; }
.entry-content > *:not(.stl-portal-wrap):not(.stl-board-container):not(.stl-contact-form) { max-width: 1040px; margin-left: auto; margin-right: auto; }
.content-area { width: 100%; }

/* ---------- 3. Sticky light header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--stl-line);
}
.site-header .inside-header {
  max-width: 1040px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 10px 16px;
}
.site-header .site-branding, .site-header .site-branding-container { margin: 0; text-align: left; flex: 0 1 auto; min-width: 0; }
.site-header .main-title { margin: 0; font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.site-header .main-title a, .site-header .main-title a:hover { color: var(--stl-ink); text-decoration: none; }
.site-header .main-title a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.site-header .main-title a::before { content: none; display: none; }
.site-header .stl-brand-logo { display: block; flex: 0 0 auto; width: 30px; height: 30px; margin: 0; border-radius: 0; box-shadow: none; }
.site-header .site-description { display: none; }
.stl-hdr-pst {
  font-size: .75rem; color: var(--stl-muted); background: var(--stl-page);
  border: 1px solid var(--stl-line); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.stl-hdr-pst b { color: var(--stl-ink); margin-left: 3px; font-variant-numeric: tabular-nums; }
.stl-hdr-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.stl-hdr-nav a {
  color: var(--stl-ink); text-decoration: none; font-weight: 700; font-size: .9rem;
  padding: 7px 13px; border-radius: 999px; line-height: 1.2;
}
.stl-hdr-nav a:hover { background: var(--stl-soft); color: var(--stl-blue); }
.stl-hdr-nav a.is-current { background: var(--stl-blue); color: #fff; }
.stl-hdr-cta { display: none !important; } /* Login / Register stay hidden */

/* ---------- 4. Portal wrapper & typography ---------- */
.stl-portal-wrap {
  max-width: 1040px; margin: 0 auto; padding: 18px 16px 8px;
  color: var(--stl-ink); font-family: var(--stl-font); line-height: 1.55; background: transparent;
}
.stl-portal-wrap *, .stl-portal-wrap *::before, .stl-portal-wrap *::after { box-sizing: border-box; }
.stl-portal-wrap a { color: var(--stl-blue); }
.stl-portal-wrap h2, .stl-portal-wrap h3 { line-height: 1.25; color: var(--stl-ink); }
.stl-section-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--stl-ink); margin: 26px 0 12px; }
.stl-portal-wrap p { margin: 0 0 10px; }

/* ---------- 5. Sub-bar (page context + quick links) ---------- */
.stl-topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--stl-card); border-radius: var(--stl-r-md); padding: 10px 14px; margin-bottom: 16px;
  box-shadow: 0 2px 10px var(--stl-shadow);
}
.home .stl-portal-wrap > .stl-topbar { display: none; } /* header already carries the clock + nav */
.stl-live-indicator { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .78rem; letter-spacing: .04em; color: var(--stl-muted); }
.stl-pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--stl-red); animation: stl-pulse 1.8s ease-in-out infinite; flex: none; }
@keyframes stl-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(206,17,38,.45); } 50% { box-shadow: 0 0 0 6px rgba(206,17,38,0); } }
.stl-nav-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.stl-nav-pill {
  display: inline-block; background: var(--stl-pill-bg); color: var(--stl-ink) !important; text-decoration: none !important;
  font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 0;
}
.stl-nav-pill:hover { background: var(--stl-soft); color: var(--stl-blue) !important; }
.stl-nav-pill.active { background: var(--stl-blue); color: #fff !important; }

/* ---------- 6. Hero: Philippine blue, thin red base, sun corner ---------- */
.stl-hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff; border: 0; border-radius: 28px;
  padding: 26px 128px 30px 24px; margin-bottom: 18px;
  background: linear-gradient(0deg, var(--stl-red) 0 7px, transparent 7px), var(--stl-blue);
}
.stl-hero::after {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 210px; height: 210px;
  background: url("img/stlresult-hero-sun-v2-512.webp?ver=1.2.7") no-repeat right top / contain;
  pointer-events: none;
}
.stl-hero-header { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.stl-hero h1 { color: #fff; font-size: clamp(1.75rem, 6vw, 2.7rem); line-height: 1.07; font-weight: 900; letter-spacing: -.03em; margin: 0; max-width: 26ch; }
.stl-hero-subtitle { color: rgba(255,255,255,.92); font-size: .95rem; font-weight: 600; margin: 0; max-width: 62ch; }
.stl-hero a { color: #fff; text-decoration: underline; }
.stl-progress-badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: rgba(255,255,255,.14); border: 0; color: #fff; padding: 6px 12px; border-radius: 999px;
  font-weight: 700; font-size: .86rem;
}
.stl-progress-bar { display: inline-block; width: 120px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.3); overflow: hidden; vertical-align: middle; }
.stl-progress-bar i { display: block; height: 100%; width: 0; background: var(--stl-sun); border-radius: 999px; transition: width .4s ease; }
.stl-hero .stl-controls-bar { margin-top: 14px; }

/* ---------- 7. Controls: segmented day switch, search, region chips ---------- */
.stl-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 5px; background: var(--stl-card); border-radius: 999px; box-shadow: 0 2px 10px var(--stl-shadow); margin: 0 0 12px; }
.stl-seg a { padding: 8px 18px; border-radius: 999px; color: var(--stl-ink) !important; font-weight: 800; font-size: .9rem; text-decoration: none !important; }
.stl-seg a:hover { background: var(--stl-soft); }
.stl-seg a.is-on { background: var(--stl-blue); color: #fff !important; }
.stl-hero .stl-seg { box-shadow: none; }
.stl-controls-bar { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 14px; }
.stl-search-input, .stl-portal-wrap input.stl-search-input {
  width: 100%; font: inherit; font-weight: 600; color: var(--stl-ink);
  background: var(--stl-card); border: 2px solid transparent; border-radius: 999px; padding: 12px 18px;
  box-shadow: 0 2px 10px var(--stl-shadow);
}
.stl-search-input::placeholder, .stl-portal-wrap input.stl-search-input::placeholder { color: var(--stl-muted); opacity: 1; font-weight: 500; }
.stl-search-input:focus, .stl-portal-wrap input.stl-search-input:focus { outline: 0; border-color: var(--stl-blue); box-shadow: 0 2px 10px var(--stl-shadow); }
.stl-region-jumps { display: flex; flex-wrap: wrap; gap: 6px; }
.stl-region-chip, button.stl-region-chip {
  display: inline-block; background: var(--stl-card); color: var(--stl-ink) !important; border: 1px solid var(--stl-line);
  padding: 6px 13px; border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none !important; font-family: inherit; cursor: pointer;
}
.stl-region-chip:hover, .stl-region-chip:focus, .stl-region-chip:active,
button.stl-region-chip:hover, button.stl-region-chip:focus, button.stl-region-chip:active {
  background: var(--stl-soft); border-color: var(--stl-soft); color: var(--stl-blue) !important;
}
.stl-region-chip.is-hub, .stl-region-chip.is-hub:hover, .stl-region-chip.is-hub:focus, .stl-region-chip.is-hub:active {
  background: var(--stl-soft); color: var(--stl-blue) !important; border-color: var(--stl-soft);
}
.stl-hero .stl-region-chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff !important; }
.stl-hero .stl-region-chip:hover, .stl-hero .stl-region-chip:focus, .stl-hero .stl-region-chip:active { background: #fff; color: var(--stl-blue) !important; }
.stl-hero .stl-search-input { box-shadow: none; }

/* ---------- 8. Results board ---------- */
.stl-board-container {
  background: var(--stl-card); border: 0; border-radius: var(--stl-r-lg); overflow: hidden;
  box-shadow: 0 6px 28px var(--stl-shadow); margin: 0 auto 24px; max-width: 1008px;
}
.entry-content > .stl-board-container { margin-left: 16px; margin-right: 16px; }
@media (min-width: 1041px) { .entry-content > .stl-board-container { margin-left: auto; margin-right: auto; } }
.stl-board-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 14px 4px; }
.stl-board-tools .stl-search-input { flex: 1 1 220px; width: auto; min-width: 0; box-shadow: none; background: var(--stl-page); }
.stl-board-progress { font-size: .85rem; font-weight: 700; color: var(--stl-muted); background: var(--stl-soft); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.stl-board-progress b { color: var(--stl-blue); }
.stl-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stl-live-table { width: 100%; min-width: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 0; border: 0; }
.stl-live-table th {
  background: var(--stl-card); color: var(--stl-muted); border: 0;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 8px 10px; text-align: center;
}
.stl-live-table th:nth-child(2), .stl-live-table .stl-col-area { text-align: left; }
.stl-live-table td { padding: 10px 8px; border: 0; border-top: 1px solid var(--stl-line); text-align: center; vertical-align: middle; color: var(--stl-ink); background: transparent; }
.stl-live-table td:nth-child(2), .stl-live-table td.stl-col-area { text-align: left; }
.stl-history-table td:first-child, .stl-history-table th:first-child { text-align: left; padding-left: 18px; }
.stl-col-num { width: 46px; color: var(--stl-muted); font-size: .75rem; font-weight: 700; font-family: inherit; }
.stl-live-table th.stl-col-num, .stl-live-table td.stl-col-num { text-align: center; }
.stl-region-row td {
  background: var(--stl-soft); color: var(--stl-blue); border-top: 0;
  text-align: left; padding: 10px 18px; font-weight: 900; font-size: .95rem; letter-spacing: -.01em;
}
.stl-region-count { font-size: .75rem; font-weight: 600; color: var(--stl-muted); margin-left: 10px; letter-spacing: 0; }
.stl-pinned-head td { background: var(--stl-pin-bg); color: var(--stl-ink); }
.stl-area-row { border: 0; }
.stl-area-row.pinned-row td { background: #FFFBEA; }
.stl-area-title-wrap { display: flex; align-items: center; gap: 6px; }
.stl-star-btn { background: none; border: 0; color: #7A849E; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 6px; border-radius: 8px; order: 2; margin-left: auto; }
.stl-star-btn:hover { color: var(--stl-ink); background: var(--stl-page); }
.stl-star-btn.active { color: var(--stl-blue); }
.stl-area-title-wrap > div { order: 1; min-width: 0; }
.stl-area-link { color: var(--stl-ink) !important; font-weight: 800; font-size: .95rem; text-decoration: none !important; line-height: 1.25; display: inline-block; }
.stl-area-link:hover { color: var(--stl-blue) !important; }
.stl-area-meta { display: block; font-size: .74rem; font-weight: 500; color: var(--stl-muted); line-height: 1.3; }
.stl-board-note { font-size: .78rem; color: var(--stl-muted); padding: 12px 18px; margin: 0; border-top: 1px solid var(--stl-line); }
.stl-board-note-plain { font-size: .85rem; color: var(--stl-muted); max-width: 1008px; margin: -8px auto 20px; padding: 0 16px; }

/* number balls: Pares round, Swer3 rounded tiles */
.stl-ball-pair { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.stl-ball {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; min-width: 0; margin: 0; border-radius: 50%;
  background: var(--stl-blue); color: #fff; font-weight: 900; font-size: 1rem; line-height: 1;
}
.stl-ball-pair.is-swer3 .stl-ball, .stl-ball-pair:has(.stl-ball:nth-child(3)) .stl-ball { width: 28px; height: 34px; border-radius: 10px; }
.stl-info-box .stl-ball, .stl-today-cards .stl-ball { margin-right: 0; }
.stl-today-cards .stl-ball { width: 58px; height: 58px; font-size: 1.6rem; }
.stl-today-cards .stl-ball-pair.is-swer3 .stl-ball { width: 44px; height: 56px; border-radius: 15px; }
.stl-side-game { display: block; margin-top: 3px; font-size: .7rem; font-weight: 700; color: var(--stl-muted); line-height: 1.2; }
a.stl-combo-link { text-decoration: none !important; display: inline-block; border-radius: 14px; }
a.stl-combo-link:hover .stl-ball { background: var(--stl-ink); }

/* pending / state pills */
.stl-status-due, .stl-status-time {
  display: inline-block; white-space: nowrap; font-size: .76rem; font-weight: 700; color: var(--stl-muted);
  background: var(--stl-pill-bg); border: 0; border-radius: 999px; padding: 5px 11px;
}
.stl-status-due.is-soon, .stl-status-time.is-soon, .stl-status-due.is-late, .stl-status-time.is-late { color: var(--stl-blue); background: var(--stl-soft); }
.stl-status-due.is-live, .stl-status-time.is-live { color: var(--stl-ink); background: var(--stl-sun); animation: stl-beat 1.4s ease-in-out infinite; }
@keyframes stl-beat { 50% { transform: scale(1.06); } }
.stl-status-none { color: var(--stl-muted); font-size: .76rem; font-weight: 600; font-style: normal; }

/* ---------- 9. Cards, tools, info, FAQ ---------- */
.stl-tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stl-tool-card, .stl-info-box {
  background: var(--stl-card); border: 0; border-radius: var(--stl-r-md); padding: 18px;
  box-shadow: 0 2px 12px var(--stl-shadow); color: var(--stl-ink);
}
.stl-tool-card { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.stl-tool-card h3 { font-size: 1.05rem; font-weight: 800; margin: 6px 0; color: var(--stl-ink); }
.stl-tool-card p, .stl-info-box p { font-size: .9rem; color: var(--stl-muted); }
.stl-tool-link { color: var(--stl-blue) !important; font-weight: 800; text-decoration: none !important; }
.stl-tool-link:hover { text-decoration: underline !important; }
.stl-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stl-info-box h3 { margin: 0 0 8px; color: var(--stl-ink); font-size: 1.08rem; font-weight: 800; }
.stl-info-box strong { color: var(--stl-ink); }
.stl-aff-tag {
  display: inline-block; background: var(--stl-soft); color: var(--stl-blue);
  font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 4px;
}
.stl-faq-item { background: var(--stl-card); border: 0; border-radius: var(--stl-r-sm); box-shadow: 0 1px 6px var(--stl-shadow); margin-bottom: 8px; padding: 14px 18px; }
.stl-faq-item summary { font-weight: 800; color: var(--stl-ink); cursor: pointer; }
.stl-faq-item p { margin: 10px 0 0; color: var(--stl-muted); font-size: .92rem; }
.stl-disclaimer-box {
  background: var(--stl-soft); border: 0; border-left: 5px solid var(--stl-blue); border-radius: var(--stl-r-md);
  padding: 16px 18px; margin: 28px 0 8px; font-size: .84rem; color: var(--stl-muted);
}
.stl-disclaimer-box strong { color: var(--stl-ink); }
.stl-disclaimer-box a { color: var(--stl-blue) !important; font-weight: 700; }
.stl-tool-nudge { background: var(--stl-card); border-radius: var(--stl-r-sm); padding: 12px 16px; box-shadow: 0 1px 6px var(--stl-shadow); font-size: .9rem; color: var(--stl-muted); margin: 14px 0; }
.stl-history-more { margin: -10px 0 8px; }
.stl-yday-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; flex-wrap: wrap; }
.stl-yday-item .stl-side-game { flex-basis: 100%; }

/* tools strip (hubs, area pages) */
.stl-tools-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 6px 0 20px; }
.stl-tools-strip-label { flex-basis: 100%; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--stl-muted); }
.stl-tool-pill { flex: 1 1 200px; display: block; background: var(--stl-card); border-radius: var(--stl-r-sm); padding: 10px 14px; text-decoration: none !important; box-shadow: 0 1px 6px var(--stl-shadow); }
.stl-tool-pill b { display: block; color: var(--stl-blue); font-size: .92rem; }
.stl-tool-pill small { display: block; color: var(--stl-muted); font-size: .76rem; line-height: 1.3; }
.stl-tool-pill:hover { background: var(--stl-soft); }

/* history browser */
.stl-history-summary { font-size: .92rem; color: var(--stl-muted); }
.stl-history-summary b { color: var(--stl-ink); }
.stl-date-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 4px; scrollbar-width: thin; }
.stl-date-chip { flex: none; background: var(--stl-card); color: var(--stl-ink) !important; border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 700; text-decoration: none !important; box-shadow: 0 1px 5px var(--stl-shadow); white-space: nowrap; }
.stl-date-chip.is-on { background: var(--stl-blue); color: #fff !important; }
.stl-area-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 6px; }
.stl-area-picker label { font-weight: 800; font-size: .85rem; }
.stl-area-picker select { flex: 1 1 200px; min-width: 0; font: inherit; font-weight: 600; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--stl-line); background: var(--stl-card); color: var(--stl-ink); }

/* ---------- 10. Buttons ---------- */
.stl-btn-primary, .stl-btn-secondary, .stl-contact-form button {
  display: inline-block; text-align: center; font-weight: 800; font-size: .9rem; padding: 10px 18px; border-radius: 999px; text-decoration: none !important; border: 0; cursor: pointer; font-family: inherit;
}
.stl-btn-primary, .stl-contact-form button { background: var(--stl-blue); color: #fff !important; }
.stl-btn-primary:hover, .stl-btn-primary:focus, .stl-btn-primary:active,
.stl-contact-form button:hover, .stl-contact-form button:focus, .stl-contact-form button:active {
  background: var(--stl-ink); color: #fff !important;
}
.stl-btn-secondary, a.stl-btn-secondary { background: var(--stl-sun); color: var(--stl-ink) !important; }
.stl-btn-secondary:hover, .stl-btn-secondary:focus, .stl-btn-secondary:active, .stl-btn-secondary:visited,
a.stl-btn-secondary:hover, a.stl-btn-secondary:focus, a.stl-btn-secondary:active, a.stl-btn-secondary:visited {
  background: var(--stl-sun); color: var(--stl-ink) !important; filter: brightness(.95);
}

/* ---------- 11. Footer: ink bar, red top edge ---------- */
.site-footer, .site-info, .site-footer .footer-widgets { background: var(--stl-ink) !important; color: #D5DBEA; }
.site-info { border-top: 6px solid var(--stl-red); font-size: .85rem; }
.site-info .inside-site-info { max-width: 1040px; margin: 0 auto; padding: 22px 16px 26px; }
.site-info a { color: #fff; font-weight: 600; text-decoration: none; }
.site-info a:hover { color: var(--stl-sun); }
.site-info .copyright { color: #C3CADB; }

/* ---------- 12. Inline colours left by the old dark theme (content + calculator output) ---------- */
.entry-content [style*="color:#f59e0b"], .entry-content [style*="color: #f59e0b"], .entry-content [style*="color:#fbbf24"], .entry-content [style*="color:#38bdf8"] { color: var(--stl-blue) !important; }
.entry-content [style*="color:#10b981"], .entry-content [style*="color: #10b981"], .entry-content [style*="color:#34d399"] { color: var(--stl-good) !important; }
.entry-content [style*="color:#94a3b8"], .entry-content [style*="color:#cbd5e1"], .entry-content [style*="color:#64748b"], .entry-content [style*="color:#e2e8f0"] { color: var(--stl-muted) !important; }
.entry-content [style*="color:#fff"]:not(.stl-hero *), .entry-content [style*="color:#ffffff"]:not(.stl-hero *), .entry-content [style*="color: #fff"]:not(.stl-hero *) { color: var(--stl-ink) !important; }
.entry-content [style*="background:#0b1120"], .entry-content [style*="background:#0f172a"], .entry-content [style*="background:#111827"], .entry-content [style*="background:#1e293b"] { background: var(--stl-page) !important; }
.entry-content [style*="border:1px solid #334155"], .entry-content [style*="border-top:1px solid #334155"] { border-color: var(--stl-line) !important; }
.entry-content [style*="border-color:#f59e0b"] { border-color: var(--stl-blue) !important; }

/* ---------- 13. Tool pages (Kasas, Swer3, contact form) ---------- */
.stl-kasas-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 22px; }
@media (min-width: 860px) { .stl-kasas-grid { grid-template-columns: 1.25fr .75fr; } }
.stl-num-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 16px; }
.stl-slot-input, .stl-drum-input {
  width: 100%; text-align: center; font: inherit; font-weight: 900; font-size: 1.15rem; color: var(--stl-ink);
  background: var(--stl-page); border: 2px solid var(--stl-line); padding: 10px 4px; border-radius: 12px;
}
.stl-slot-input:focus, .stl-drum-input:focus { outline: 0; border-color: var(--stl-blue); background: #fff; }
@media (max-width: 420px) { .stl-num-slots { grid-template-columns: repeat(3, 1fr); } }
.stl-papelitos-card { background: #FFFBEA; color: var(--stl-ink); border: 2px dashed #C9A400; border-radius: var(--stl-r-md); padding: 18px; font-family: "Courier New", Consolas, monospace; }
.stl-papelitos-header { border-bottom: 1px solid #E5C200; padding-bottom: 8px; margin-bottom: 12px; font-weight: 800; font-size: .9rem; text-transform: uppercase; color: #6B5400; }
.stl-slip-bracket-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 14px 0; }
.stl-slip-nums { border-right: 3px solid var(--stl-ink); padding-right: 14px; font-size: 1.25rem; font-weight: 800; line-height: 1.5; }
.stl-pairs-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.stl-pair-chip { background: var(--stl-page); border: 1px solid var(--stl-line); border-radius: var(--stl-r-sm); padding: 8px 10px; text-align: center; font-size: .86rem; color: var(--stl-ink); }
.stl-kasa-preset.active, .kasa-preset-btn.active { color: #fff !important; background: var(--stl-blue) !important; border-color: var(--stl-blue) !important; }
.stl-swer3-drums { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0 16px; }
.stl-drum-input { width: 72px; height: 68px; font-size: 1.65rem; border-color: var(--stl-blue); }
@media (max-width: 420px) { .stl-drum-input { width: 60px; height: 58px; font-size: 1.4rem; } }
.stl-perm-badge { display: inline-block; background: var(--stl-soft); color: var(--stl-blue); font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 999px; border: 0; }
.stl-perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.stl-perm-card { background: var(--stl-page); border: 1px solid var(--stl-line); border-radius: var(--stl-r-sm); padding: 10px; text-align: center; }
.stl-perm-card.is-target { border-color: var(--stl-blue); background: var(--stl-soft); }
.stl-angle-box { background: var(--stl-page); border: 1px solid var(--stl-line); border-radius: var(--stl-r-sm); padding: 12px; margin-top: 14px; }
.stl-contact-form { display: grid; gap: 12px; max-width: 720px; margin: 0 auto 20px; padding: 0 16px; }
.stl-contact-form label { display: block; font-size: .85rem; color: var(--stl-ink); font-weight: 800; }
.stl-contact-form input, .stl-contact-form select, .stl-contact-form textarea {
  width: 100%; margin-top: 4px; background: var(--stl-card); color: var(--stl-ink); border: 2px solid var(--stl-line);
  border-radius: 12px; padding: 10px 12px; font-size: .95rem; font-family: inherit;
}
.stl-contact-form input:focus, .stl-contact-form select:focus, .stl-contact-form textarea:focus { outline: 0; border-color: var(--stl-blue); }
.stl-contact-form textarea { min-height: 140px; resize: vertical; }
.stl-contact-form .stl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stl-contact-form button { justify-self: start; }
.stl-form-note { padding: 10px 14px; border-radius: var(--stl-r-sm); font-size: .9rem; margin-bottom: 12px; }
.stl-form-note.ok { background: #E3F5EC; color: #0B5A33; }
.stl-form-note.err { background: #FDE7EA; color: #8E0C1B; }
.entry-content input[type="number"], .entry-content input[type="text"], .entry-content input[type="date"], .entry-content select {
  background: var(--stl-card); color: var(--stl-ink); border: 2px solid var(--stl-line); border-radius: 12px; font-family: inherit;
}
.entry-content table:not(.stl-live-table) { border-collapse: collapse; background: var(--stl-card); color: var(--stl-ink); }
.entry-content table:not(.stl-live-table) th, .entry-content table:not(.stl-live-table) td { border-color: var(--stl-line); }

/* ---------- 14. Mobile (640px and below): no sideways scroll ---------- */
@media (max-width: 640px) {
  .site-header .inside-header { padding: 8px 12px; gap: 6px 10px; }
  .site-header .main-title { font-size: 1.12rem; }
  .stl-hdr-pst { margin-left: auto; }
  .stl-hdr-nav { margin-left: 0; width: 100%; gap: 0; }
  .stl-hdr-nav a { padding: 6px 9px; font-size: .82rem; }
  .stl-portal-wrap { padding: 14px 12px 6px; }
  .stl-hero { border-radius: 22px; padding: 20px 64px 24px 18px; }
  .stl-hero::after { top: 0; right: 0; width: 106px; height: 106px; }
  .site-header .stl-brand-logo { width: 26px; height: 26px; }
  .stl-hero h1 { font-size: clamp(1.55rem, 7.4vw, 2rem); }
  .stl-hero-subtitle { font-size: .88rem; }
  .stl-progress-bar { width: 80px; }
  .stl-seg a { padding: 7px 14px; font-size: .85rem; }
  .entry-content > .stl-board-container { margin-left: 8px; margin-right: 8px; }
  .stl-board-container { border-radius: 18px; }
  .stl-col-num, .stl-live-table th.stl-col-num, .stl-live-table td.stl-col-num { display: none; }
  .stl-live-table th { padding: 12px 3px 8px; font-size: .62rem; letter-spacing: .05em; }
  .stl-live-table td { padding: 9px 3px; width: 23%; }
  .stl-live-table td:nth-child(2), .stl-live-table td.stl-col-area { width: auto; padding-left: 12px; min-width: 96px; }
  .stl-live-table th:nth-child(2), .stl-live-table th.stl-col-area { padding-left: 12px; }
  .stl-region-row td { padding: 9px 12px; font-size: .88rem; }
  .stl-region-count { display: block; margin-left: 0; }
  .stl-area-link { font-size: .86rem; }
  .stl-area-meta { font-size: .68rem; }
  .stl-star-btn { padding: 4px; font-size: 1rem; }
  .stl-ball { width: 29px; height: 29px; font-size: .8rem; }
  .stl-ball-pair { gap: 3px; }
  .stl-ball-pair.is-swer3 .stl-ball, .stl-ball-pair:has(.stl-ball:nth-child(3)) .stl-ball { width: 21px; height: 28px; border-radius: 8px; font-size: .85rem; }
  .stl-today-cards .stl-ball { width: 48px; height: 48px; font-size: 1.3rem; }
  .stl-today-cards .stl-ball-pair.is-swer3 .stl-ball { width: 38px; height: 48px; }
  .stl-status-due, .stl-status-time { font-size: .68rem; padding: 4px 7px; }
  .stl-side-game { font-size: .62rem; }
  .stl-history-table td:first-child, .stl-history-table th:first-child { padding-left: 12px; }
  .stl-section-title { font-size: 1.18rem; }
  .stl-info-grid, .stl-tools-grid { grid-template-columns: 1fr; }
  .stl-topbar { padding: 10px 12px; }
}
@media (max-width: 360px) {
  .stl-ball { width: 26px; height: 26px; font-size: .74rem; }
  .stl-hdr-nav a { padding: 6px 7px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stl-pulse-dot, .stl-status-due.is-live, .stl-status-time.is-live { animation: none; }
}

/* ---------- 16. v1.2 · tidy sub-bars, breadcrumbs, readable explainer tables ---------- */
.stl-topbar:not(:has(nav)) { justify-content: flex-start; }
.stl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: .82rem; font-weight: 700; color: var(--stl-muted); }
.stl-crumbs a { color: var(--stl-blue) !important; text-decoration: none !important; padding: 2px 0; }
.stl-crumbs a:hover { text-decoration: underline !important; }
.stl-crumbs [aria-current] { color: var(--stl-ink); }
.stl-subnav { gap: 6px; }
.stl-tool-boards { background: var(--stl-soft); border-radius: var(--stl-r-md); padding: 12px 16px; margin: 0 0 18px; font-size: .92rem; }
.stl-live-table th small { display: block; font-size: .92em; font-weight: 700; letter-spacing: 0; text-transform: none; opacity: .85; margin-top: 2px; }
.stl-term-table td { text-align: left; }
.stl-term-table td.stl-term-title, .stl-term-table td:first-child { font-weight: 800; }

@media (max-width: 640px) {
  /* header: title left, clock right, menu row underneath */
  .site-header .inside-header { flex-direction: row !important; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: left; }
  .site-header .stl-hdr-nav { flex: 1 1 100%; }
  .site-header .site-branding { margin: 0 !important; flex: 0 1 auto; text-align: left; }
  .stl-hdr-pst { margin-left: auto; font-size: .78rem; }
  .stl-hdr-nav { justify-content: space-between; }

  /* sub-bar holds a short label (and crumbs) only */
  .stl-topbar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stl-live-indicator { font-size: .74rem; line-height: 1.35; align-items: flex-start; }
  .stl-live-indicator .stl-pulse-dot { margin-top: 3px; }
  .stl-subnav { gap: 6px; }
  .stl-subnav .stl-nav-pill { font-size: .8rem; padding: 7px 11px; }

  /* history: year drops on phones, slot time sits under the draw label */
  .stl-yr { display: none; }
  .stl-history-table td:first-child { white-space: nowrap; font-size: .86rem; }
  .stl-live-table th small { font-size: .95em; }

  /* explainer / directory tables become stacked cards */
  .stl-term-table, .stl-term-table tbody, .stl-term-table tr, .stl-term-table td { display: block; width: 100% !important; }
  .stl-term-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stl-term-table tr { padding: 12px 14px; border-top: 1px solid var(--stl-line); }
  .stl-term-table tbody tr:first-child { border-top: 0; }
  .stl-term-table td { border: 0 !important; padding: 3px 0 !important; text-align: left !important; min-width: 0 !important; font-size: .92rem; line-height: 1.45; }
  .stl-term-table td.stl-term-title, .stl-term-table td:first-child { font-size: 1.02rem; padding-bottom: 6px !important; color: var(--stl-ink); }
  .stl-term-table td.stl-col-num { display: none !important; }
  .stl-term-table td[data-label] { position: relative; padding-left: calc(36% + 10px) !important; min-height: 1.4em; }
  .stl-term-table td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 5px; width: 36%; font-size: .74rem; font-weight: 800; letter-spacing: .03em; line-height: 1.3; text-transform: uppercase; color: var(--stl-muted); }
  .stl-term-table td[data-label] .stl-area-link { display: inline !important; font-size: .92rem; }
  .stl-term-table .stl-area-meta { display: block; margin-top: 2px; }
}

.stl-region-chip[data-accent] { color: var(--stl-blue) !important; border: 1.5px solid var(--stl-blue) !important; background: var(--stl-card); }
.stl-region-chip[data-accent]:hover, .stl-region-chip[data-accent]:focus, .stl-region-chip[data-accent]:active {
  background: var(--stl-soft); color: var(--stl-blue) !important; border-color: var(--stl-blue) !important;
}
@media (max-width: 640px) {
  .stl-live-table th { font-size: .7rem; letter-spacing: .04em; }
  .stl-live-table th small { font-size: .92em; }
  .stl-area-meta { font-size: .74rem; line-height: 1.3; }
  .stl-status-due, .stl-status-time { font-size: .74rem; padding: 4px 7px; }
  .stl-side-game { font-size: .68rem; }
  .stl-aff-tag { font-size: .72rem; }
}
