/*
Theme Name: TipOracle
Theme URI: https://www.tiporacle.com/blog
Author: TipOracle
Author URI: https://www.tiporacle.com
Description: Official TipOracle blog theme — Tactical Board aesthetic matching the main TipOracle brand. Navy, Crimson, DM Serif Display + DM Sans + Space Mono.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tiporacle
Tags: blog, news, custom-colors, custom-logo, editor-style, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════════════════
   TipOracle WordPress Theme v1.0
   Aesthetic: Tactical Board · Sports Intelligence Terminal
   Fonts: DM Serif Display + DM Sans + Space Mono
   Identity: Navy #0b1d57 · Crimson #e8185a
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --navy:     #0b1d57;
  --navy2:    #122070;
  --navy3:    #1a2d80;
  --pink:     #e8185a;
  --pink2:    #ff2d71;
  --ink:      #0d0f14;
  --paper:    #f6f4ef;
  --paper2:   #ede9e1;
  --paper3:   #e2ddd4;
  --body:     #3a3f52;
  --muted:    #8a8fa8;
  --faint:    #bbbcc8;
  --border:   rgba(11,29,87,.10);
  --border2:  rgba(11,29,87,.18);
  --green:    #0a8f5a;
  --red:      #c9292a;
  --amber:    #b45309;
  --gold:     #c9a227;

  --fdisp: 'DM Serif Display', Georgia, serif;
  --fsans: 'DM Sans', system-ui, sans-serif;
  --fmono: 'Space Mono', monospace;

  --ease: cubic-bezier(.22,1,.36,1);
  --ease2: cubic-bezier(.4,0,.2,1);
  --r: 2px;
  --r-md: 8px;
  --r-lg: 12px;
  --sh: 0 2px 8px rgba(11,29,87,.07), 0 1px 3px rgba(11,29,87,.05);
  --sh-md: 0 8px 32px rgba(11,29,87,.12), 0 2px 8px rgba(11,29,87,.06);
  --sh-lg: 0 24px 64px rgba(11,29,87,.16), 0 6px 16px rgba(11,29,87,.08);
}


[data-theme="dark"] {
  --ink:    #eceaf5;
  --paper:  #080a0f;
  --paper2: #0e1118;
  --paper3: #151820;
  --body:   #7b80a0;
  --muted:  #454a62;
  --faint:  #2a2d3e;
  --border: rgba(255,255,255,.06);
  --border2:rgba(255,255,255,.10);
  --navy:   #4a6ee0;
  --navy2:  #6b8fff;
  --navy3:  #3355cc;
  --green:  #1fd17c;
  --red:    #ff5252;
  --amber:  #f5a623;
  --gold:   #f0c040;
  --sh:    0 2px 8px rgba(0,0,0,.4);
  --sh-md: 0 8px 32px rgba(0,0,0,.5);
  --sh-lg: 0 24px 64px rgba(0,0,0,.6);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--faint) transparent;
}

body {
  font-family: var(--fsans);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background .35s cubic-bezier(.4,0,.2,1), color .35s cubic-bezier(.4,0,.2,1);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--faint); border-radius: 2px; }

/* ══════════════════════════════════════════════
   RG STRIP
══════════════════════════════════════════════ */
.to-rg-strip {
  background: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
[data-theme="dark"] .to-rg-strip { background: #000; }
.to-rg-strip-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.to-rg-text {
  font-family: var(--fmono); font-size: .6rem; color: rgba(255,255,255,.4);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.to-rg-text strong { color: rgba(255,255,255,.65); }
.to-rg-text a { color: rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.1); transition: color .2s; }
.to-rg-text a:hover { color: var(--pink); }
.to-rg-age {
  background: var(--pink); color: #fff;
  font-family: var(--fmono); font-size: .58rem; font-weight: 700; letter-spacing: .1em;
  padding: 2px 9px; border-radius: 2px; flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   SITE HEADER / NAV
══════════════════════════════════════════════ */
.to-site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy);
  transition: background .35s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] .to-site-header { background: #0a0c14; border-bottom: 1px solid rgba(255,255,255,.06); }
.to-nav-top {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; height: 60px; gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.to-site-logo {
  font-family: var(--fdisp); font-size: 1.55rem; font-weight: 400;
  color: #fff; letter-spacing: .01em; flex-shrink: 0; margin-right: auto;
  display: flex; align-items: center; gap: 12px;
}
.to-logo-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.to-logo-tip   { color: #fff; font-style: italic; }
.to-logo-oracle { color: var(--pink); }

.to-nav-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.to-date-pill {
  font-family: var(--fmono); font-size: .7rem; font-weight: 700;
  color: rgba(255,255,255,.5); padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 3px;
  letter-spacing: .05em;
}
.to-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: rgba(232,24,90,.15);
  border: 1px solid rgba(232,24,90,.25); border-radius: 3px;
  font-family: var(--fmono); font-size: .64rem; font-weight: 700;
  letter-spacing: .08em; color: var(--pink); transition: all .2s;
}
.to-back-btn:hover { background: var(--pink); color: #fff; }

.to-nav-links-row {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; height: 46px;
  overflow-x: auto; scrollbar-width: none; gap: 2px;
}
.to-nav-links-row::-webkit-scrollbar { display: none; }

.to-nav-links-row a {
  display: flex; align-items: center; padding: 0 14px; height: 46px;
  font-family: var(--fsans); font-size: .84rem; font-weight: 600;
  color: rgba(255,255,255,.5); white-space: nowrap; letter-spacing: .01em;
  position: relative; transition: color .2s; border-bottom: 2px solid transparent;
  flex-shrink: 0;
}
.to-nav-links-row a:hover { color: rgba(255,255,255,.9); }
.to-nav-links-row a.current-menu-item,
.to-nav-links-row a.active { color: #fff; border-bottom-color: var(--pink); }


/* ══════════════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════════════ */
.to-theme-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px;
  display: grid; place-items: center;
  cursor: pointer; font-size: 1rem;
  transition: background .2s, color .2s;
  flex-shrink: 0; color: rgba(255,255,255,.65);
  line-height: 1;
}
.to-theme-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
/* Sun shown in dark mode, moon in light mode */
.to-ico-sun  { display: none; }
.to-ico-moon { display: block; }
[data-theme="dark"] .to-ico-sun  { display: block; }
[data-theme="dark"] .to-ico-moon { display: none; }

/* ══════════════════════════════════════════════
   BLOG HERO — FEATURED POST
══════════════════════════════════════════════ */
.to-blog-hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  min-height: 520px; display: flex; align-items: stretch;
}
[data-theme="dark"] .to-blog-hero { background: #080a0f; }
.to-blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 1;
}
.to-blog-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.to-blog-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,29,87,.92) 0%, rgba(11,29,87,.75) 50%, rgba(11,29,87,.45) 100%);
}
.to-blog-hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 64px 32px;
  position: relative; z-index: 2; display: flex; align-items: flex-end;
  width: 100%;
}
.to-blog-hero-content { max-width: 680px; }
.to-blog-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,24,90,.2); border: 1px solid rgba(232,24,90,.3);
  border-radius: 3px; padding: 5px 12px; margin-bottom: 22px;
}
.to-blog-hero-kicker-dot {
  width: 5px; height: 5px; background: var(--pink);
  border-radius: 50%; animation: to-pulse 1.8s infinite;
}
@keyframes to-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }
.to-blog-hero-kicker span {
  font-family: var(--fmono); font-size: .6rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--pink);
}
.to-blog-hero h1 {
  font-family: var(--fdisp); font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.1; color: #fff; letter-spacing: -.01em;
  margin-bottom: 18px;
}
.to-blog-hero h1 a { color: #fff; transition: color .2s; }
.to-blog-hero h1 a:hover { color: var(--pink); }
.to-blog-hero-excerpt {
  font-family: var(--fsans); font-size: .9rem;
  color: rgba(255,255,255,.55); line-height: 1.85; margin-bottom: 28px;
}
.to-blog-hero-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.to-post-cat {
  display: inline-flex; align-items: center;
  background: var(--pink); color: #fff;
  font-family: var(--fmono); font-size: .58rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.to-post-date {
  font-family: var(--fmono); font-size: .62rem;
  color: rgba(255,255,255,.35); letter-spacing: .04em;
}
.to-post-author {
  font-family: var(--fmono); font-size: .62rem;
  color: rgba(255,255,255,.35);
}
.to-read-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; background: var(--pink); color: #fff;
  font-family: var(--fsans); font-size: .8rem; font-weight: 700;
  border-radius: 3px; transition: all .22s var(--ease);
}
.to-read-more:hover { background: var(--pink2); transform: translateY(-2px); }

/* ══════════════════════════════════════════════
   BLOG TICKER
══════════════════════════════════════════════ */
.to-ticker {
  background: var(--paper2);
  border-bottom: 2px solid var(--border2);
  overflow: hidden;
  transition: background .35s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] .to-ticker { background: var(--paper3); border-bottom-color: var(--border); }
.to-ticker-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: stretch; gap: 0; height: 44px;
}
.to-ticker-stat {
  display: flex; align-items: center; gap: 10px;
  padding: 0 24px; border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.to-ticker-stat:first-child { padding-left: 0; }
.to-ts-label {
  font-family: var(--fmono); font-size: .58rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.to-ts-value {
  font-family: var(--fdisp); font-size: 1rem; font-weight: 400;
  color: var(--navy); letter-spacing: -.01em;
}
[data-theme="dark"] .to-ts-value { color: var(--navy2); }
.to-ts-value.pink { color: var(--pink); }
.to-ts-value.green { color: var(--green); }
.to-ticker-badge {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-family: var(--fmono); font-size: .58rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--pink);
}
.to-live-pulse {
  width: 6px; height: 6px; background: var(--pink); border-radius: 50%;
  animation: to-pulse 1.8s infinite;
}

/* ══════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════ */
.to-section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.to-sh-label {
  font-family: var(--fmono); font-size: .62rem; font-weight: 700;
  color: var(--pink); background: rgba(232,24,90,.08);
  border: 1px solid rgba(232,24,90,.15);
  padding: 3px 9px; border-radius: 3px; white-space: nowrap;
}
.to-sh-title {
  font-family: var(--fdisp); font-size: 1.3rem; font-weight: 400;
  color: var(--ink); letter-spacing: -.01em;
}
.to-sh-divider { flex: 1; height: 1px; background: var(--border2); margin: 0 16px; }
.to-sh-more {
  font-family: var(--fmono); font-size: .64rem; font-weight: 700;
  color: var(--muted); transition: color .18s; white-space: nowrap;
}
.to-sh-more:hover { color: var(--pink); }

/* ══════════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════════ */
.to-main-wrap {
  max-width: 1280px; margin: 0 auto; padding: 40px 32px;
  display: grid; grid-template-columns: 1fr 308px; gap: 40px;
}
.to-posts-col { min-width: 0; }
.to-sidebar { display: flex; flex-direction: column; gap: 24px; }

/* ══════════════════════════════════════════════
   POST GRID
══════════════════════════════════════════════ */
.to-posts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 32px;
}

.to-post-card {
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .25s var(--ease);
  display: flex; flex-direction: column;
  position: relative;
}
.to-post-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--pink));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease); z-index: 1;
}
.to-post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.to-post-card:hover::before { transform: scaleX(1); }

.to-post-card-thumb {
  position: relative; overflow: hidden;
  height: 200px; background: var(--navy);
  flex-shrink: 0;
}
.to-post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.to-post-card:hover .to-post-card-thumb img { transform: scale(1.04); }
.to-post-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
}
.to-post-card-thumb-placeholder svg {
  width: 48px; height: 48px; opacity: .25;
}

.to-post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.to-post-card-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.to-post-card-cat {
  display: inline-flex;
  background: rgba(232,24,90,.1); color: var(--pink);
  border: 1px solid rgba(232,24,90,.2);
  font-family: var(--fmono); font-size: .56rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 2px;
}
.to-post-card-date {
  font-family: var(--fmono); font-size: .6rem; color: var(--muted);
}

.to-post-card-title {
  font-family: var(--fdisp); font-size: 1.05rem; font-weight: 400;
  color: var(--navy); line-height: 1.3; margin: 0;
  transition: color .2s;
}
[data-theme="dark"] .to-post-card-title { color: var(--ink); }
.to-post-card:hover .to-post-card-title { color: var(--pink); }

.to-post-card-excerpt {
  font-family: var(--fsans); font-size: .78rem;
  color: var(--body); line-height: 1.75; flex: 1;
}

.to-post-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
  margin-top: auto;
}
.to-post-card-author {
  font-family: var(--fmono); font-size: .6rem; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.to-post-card-readmore {
  font-family: var(--fmono); font-size: .62rem; font-weight: 700;
  color: var(--pink); display: flex; align-items: center; gap: 4px;
  transition: gap .15s;
}
.to-post-card-readmore:hover { gap: 8px; }

/* ══════════════════════════════════════════════
   FEATURED POST LIST (horizontal)
══════════════════════════════════════════════ */
.to-post-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.to-post-list-item {
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: grid; grid-template-columns: 120px 1fr;
  overflow: hidden; transition: all .22s var(--ease);
}
.to-post-list-item:hover { box-shadow: var(--sh-md); border-color: var(--border2); transform: translateX(3px); }

.to-pli-thumb {
  height: 90px; background: var(--navy); overflow: hidden; flex-shrink: 0;
}
.to-pli-thumb img { width: 100%; height: 100%; object-fit: cover; }
.to-pli-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
  display: flex; align-items: center; justify-content: center;
}
.to-pli-body { padding: 12px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.to-pli-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.to-pli-cat {
  font-family: var(--fmono); font-size: .54rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--pink); background: rgba(232,24,90,.08);
  padding: 2px 6px; border-radius: 2px;
}
.to-pli-date { font-family: var(--fmono); font-size: .58rem; color: var(--muted); }
.to-pli-title {
  font-family: var(--fdisp); font-size: .88rem; font-weight: 400;
  color: var(--navy); line-height: 1.3; margin: 0;
  transition: color .2s;
}
[data-theme="dark"] .to-pli-title { color: var(--ink); }
.to-post-list-item:hover .to-pli-title { color: var(--pink); }

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */
.to-pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 32px 0;
}
.to-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 3px;
  font-family: var(--fmono); font-size: .72rem; font-weight: 700;
  border: 1px solid var(--border2); background: var(--paper2);
  color: var(--body); transition: all .18s;
}
.to-pagination .page-numbers:hover { border-color: var(--pink); color: var(--pink); }
.to-pagination .page-numbers.current { background: var(--pink); color: #fff; border-color: var(--pink); }
.to-pagination .prev, .to-pagination .next { width: auto; padding: 0 16px; font-size: .65rem; }

/* ══════════════════════════════════════════════
   SIDEBAR WIDGETS
══════════════════════════════════════════════ */
.to-widget {
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh);
}
.to-widget-head {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper3);
  border-left: 3px solid var(--pink);
}
[data-theme="dark"] .to-widget-head { background: var(--paper2); }
.to-widget-title {
  font-family: var(--fsans); font-size: .78rem; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.to-widget-title::before {
  content: ''; width: 3px; height: 14px;
  background: var(--pink); border-radius: 2px; display: block;
}
.to-widget-body { padding: 16px; }

/* Sidebar post list */
.to-widget-posts { display: flex; flex-direction: column; gap: 12px; }
.to-widget-post {
  display: grid; grid-template-columns: 60px 1fr; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.to-widget-post:last-child { border-bottom: none; padding-bottom: 0; }
.to-widget-post-thumb {
  width: 60px; height: 50px; border-radius: var(--r);
  overflow: hidden; flex-shrink: 0; background: var(--navy);
}
.to-widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.to-widget-post-title {
  font-family: var(--fdisp); font-size: .8rem; font-weight: 400;
  color: var(--navy); line-height: 1.3; margin-bottom: 4px;
  transition: color .18s;
}
[data-theme="dark"] .to-widget-post-title { color: var(--ink); }
.to-widget-post-title:hover { color: var(--pink); }
.to-widget-post-date { font-family: var(--fmono); font-size: .58rem; color: var(--muted); }

/* CTA Widget */
.to-widget-cta {
  background: var(--navy); border-radius: var(--r-lg);
  padding: 22px 18px; position: relative; overflow: hidden;
}
[data-theme="dark"] .to-widget-cta { background: #0e1520; border: 1px solid rgba(255,255,255,.08); }
.to-widget-cta-bg {
  position: absolute; right: -40px; bottom: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(232,24,90,.12); pointer-events: none;
}
.to-widget-cta-title {
  font-family: var(--fdisp); font-size: 1.1rem; font-weight: 400;
  color: #fff; margin-bottom: 8px; position: relative; z-index: 1;
}
.to-widget-cta-sub {
  font-family: var(--fsans); font-size: .74rem;
  color: rgba(255,255,255,.45); line-height: 1.65; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.to-widget-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; justify-content: center;
  padding: 11px 18px; background: var(--pink); color: #fff;
  font-family: var(--fsans); font-size: .76rem; font-weight: 700;
  border-radius: 3px; transition: background .18s;
  position: relative; z-index: 1;
}
.to-widget-cta-btn:hover { background: var(--pink2); }

/* Stats widget */
.to-widget-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.to-widget-stat {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 12px;
}
.to-widget-stat-val {
  font-family: var(--fdisp); font-size: 1.5rem; font-weight: 400;
  line-height: 1; margin-bottom: 3px;
}
.to-widget-stat-lbl {
  font-family: var(--fmono); font-size: .54rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.stat-green { color: var(--green); }
.stat-pink  { color: var(--pink); }
.stat-navy  { color: var(--navy); }

/* ══════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════ */
.to-single-hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  min-height: 400px;
}
[data-theme="dark"] .to-single-hero { background: #080a0f; }
.to-single-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.to-single-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,29,87,.7) 0%, rgba(11,29,87,.92) 100%);
}
.to-single-hero-inner {
  max-width: 860px; margin: 0 auto; padding: 56px 32px 48px;
  position: relative; z-index: 2;
}
.to-single-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--fmono); font-size: .6rem; color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}
.to-single-breadcrumb a { color: rgba(255,255,255,.35); transition: color .18s; }
.to-single-breadcrumb a:hover { color: var(--pink); }
.to-single-breadcrumb span { color: rgba(255,255,255,.15); }

.to-single-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.to-single-cat {
  background: var(--pink); color: #fff;
  font-family: var(--fmono); font-size: .58rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 2px;
}
.to-single-hero h1 {
  font-family: var(--fdisp); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15; color: #fff; letter-spacing: -.01em; margin-bottom: 20px;
}
.to-single-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--fmono); font-size: .62rem; color: rgba(255,255,255,.35);
}
.to-single-meta-sep { color: rgba(255,255,255,.12); }

/* ══════════════════════════════════════════════
   ARTICLE CONTENT
══════════════════════════════════════════════ */
.to-article-wrap {
  max-width: 1280px; margin: 0 auto; padding: 40px 32px;
  display: grid; grid-template-columns: 1fr 308px; gap: 40px;
}
.to-article-content {
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px 52px;
  box-shadow: var(--sh);
}

/* Article typography */
.to-article-content h2 {
  font-family: var(--fdisp); font-size: 1.6rem; font-weight: 400; font-style: italic;
  color: var(--navy); margin: 36px 0 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--pink); letter-spacing: -.01em;
}
[data-theme="dark"] .to-article-content h2 { color: var(--ink); }
.to-article-content h3 {
  font-family: var(--fdisp); font-size: 1.25rem; font-weight: 400;
  color: var(--navy); margin: 28px 0 12px;
}
[data-theme="dark"] .to-article-content h3 { color: var(--ink); }
.to-article-content h4 {
  font-family: var(--fsans); font-size: .82rem; font-weight: 700;
  color: var(--navy); margin: 22px 0 10px;
  text-transform: uppercase; letter-spacing: .06em;
}
[data-theme="dark"] .to-article-content h4 { color: var(--ink); }
.to-article-content p {
  font-family: var(--fsans); font-size: .9rem; line-height: 1.9;
  color: var(--body); margin-bottom: 18px;
}
.to-article-content strong { color: var(--ink); font-weight: 700; }
.to-article-content em { font-style: italic; }
.to-article-content a { color: var(--pink); font-weight: 600; }
.to-article-content a:hover { text-decoration: underline; }
.to-article-content ul, .to-article-content ol {
  padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px;
}
.to-article-content ul li, .to-article-content ol li {
  font-family: var(--fsans); font-size: .88rem; line-height: 1.75;
  color: var(--body); padding-left: 20px; position: relative; counter-increment: list;
}
.to-article-content ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; background: var(--pink); border-radius: 50%;
}
.to-article-content ol { counter-reset: list; }
.to-article-content ol li::before {
  content: counter(list);
  position: absolute; left: 0; top: 1px;
  font-family: var(--fmono); font-size: .7rem; font-weight: 700; color: var(--pink);
}
.to-article-content blockquote {
  border-left: 4px solid var(--pink); margin: 24px 0;
  padding: 16px 24px; background: var(--paper3); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.to-article-content blockquote p {
  font-family: var(--fdisp); font-size: 1.05rem; font-style: italic;
  color: var(--navy); margin: 0;
}
[data-theme="dark"] .to-article-content blockquote p { color: var(--ink); }
.to-article-content img {
  border-radius: var(--r-md); margin: 24px 0; box-shadow: var(--sh-md);
}
.to-article-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border);
}
.to-article-content thead { background: var(--navy); }
[data-theme="dark"] .to-article-content thead { background: #0e1520; }
.to-article-content th {
  font-family: var(--fmono); font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.65); text-align: left; padding: 12px 16px;
}
.to-article-content td {
  font-family: var(--fsans); font-size: .82rem; color: var(--body);
  padding: 11px 16px; border-bottom: 1px solid var(--border);
}
.to-article-content tr:last-child td { border-bottom: none; }
.to-article-content pre {
  background: var(--ink); color: #e8eaf0;
  border-radius: var(--r-md); padding: 20px 24px;
  font-family: var(--fmono); font-size: .78rem; line-height: 1.7;
  overflow-x: auto; margin: 20px 0;
}
.to-article-content code {
  font-family: var(--fmono); font-size: .82em;
  background: var(--paper3); color: var(--pink);
  padding: 2px 6px; border-radius: 3px;
}
.to-article-content pre code { background: none; color: inherit; padding: 0; }

/* Post tags */
.to-post-tags {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.to-post-tags-label {
  font-family: var(--fmono); font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.to-post-tag {
  display: inline-flex;
  background: var(--paper3); border: 1px solid var(--border2);
  color: var(--body); font-family: var(--fmono); font-size: .6rem; font-weight: 700;
  padding: 4px 10px; border-radius: 3px; transition: all .18s;
}
.to-post-tag:hover { border-color: var(--pink); color: var(--pink); background: rgba(232,24,90,.05); }

/* Author box */
.to-author-box {
  margin-top: 32px;
  display: flex; gap: 18px;
  background: var(--paper3); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 22px;
  border-left: 4px solid var(--pink);
}
.to-author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--fdisp); font-size: 1.1rem; font-weight: 400;
  display: grid; place-items: center; flex-shrink: 0; font-style: italic;
  overflow: hidden;
}
.to-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.to-author-info { flex: 1; }
.to-author-name {
  font-family: var(--fdisp); font-size: 1rem; font-weight: 400;
  color: var(--navy); margin-bottom: 2px;
}
[data-theme="dark"] .to-author-name { color: var(--ink); }
.to-author-role {
  font-family: var(--fmono); font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--pink);
  margin-bottom: 8px; display: block;
}
.to-author-bio {
  font-family: var(--fsans); font-size: .78rem;
  color: var(--body); line-height: 1.75;
}

/* Share */
.to-share-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.to-share-label {
  font-family: var(--fmono); font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.to-share-btn {
  display: inline-flex; align-items: center; padding: 6px 14px;
  border-radius: 3px; border: 1px solid var(--border2); background: var(--paper2);
  font-family: var(--fsans); font-size: .68rem; font-weight: 500; color: var(--body);
  transition: all .18s;
}
.to-share-btn:hover { border-color: var(--pink); color: var(--pink); background: rgba(232,24,90,.05); }

/* ══════════════════════════════════════════════
   RELATED POSTS
══════════════════════════════════════════════ */
.to-related-wrap {
  max-width: 1280px; margin: 0 auto; padding: 0 32px 60px;
}
.to-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.to-site-footer {
  background: var(--navy);
  margin-top: 64px;
}
[data-theme="dark"] .to-site-footer { background: #060810; border-top: 1px solid rgba(255,255,255,.06); }
.to-footer-rg {
  background: rgba(0,0,0,.2); border-bottom: 1px solid rgba(255,255,255,.05);
}
.to-footer-rg-inner {
  max-width: 1280px; margin: 0 auto; padding: 8px 32px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.to-footer-rg-lbl {
  font-family: var(--fmono); font-size: .56rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--pink); flex-shrink: 0;
}
.to-footer-rg-links { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; }
.to-footer-rg-links a { font-family: var(--fmono); font-size: .62rem; color: rgba(255,255,255,.35); transition: color .18s; }
.to-footer-rg-links a:hover { color: rgba(255,255,255,.8); }
.to-footer-rg-links span { color: rgba(255,255,255,.12); }
.to-footer-rg-age {
  background: var(--pink); color: #fff;
  font-family: var(--fmono); font-size: .58rem; font-weight: 700; letter-spacing: .1em;
  padding: 3px 9px; border-radius: 2px; flex-shrink: 0;
}

.to-footer-main {
  max-width: 1280px; margin: 0 auto; padding: 48px 32px 32px;
}
.to-footer-brand { max-width: 360px; margin: 0 auto; text-align: center; }
.to-footer-logo {
  font-family: var(--fdisp); font-size: 2rem; font-weight: 400; color: #fff;
  margin-bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.to-footer-logo span { color: var(--pink); font-style: italic; }
.to-footer-desc {
  font-family: var(--fsans); font-size: .76rem;
  color: rgba(255,255,255,.38); line-height: 1.9; margin-bottom: 16px;
}
.to-footer-trust {
  font-family: var(--fmono); font-size: .6rem;
  color: rgba(255,255,255,.2); line-height: 2.2; margin-bottom: 14px;
}
.to-footer-tagline {
  font-family: var(--fmono); font-size: .54rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.12);
  border-top: 1px solid rgba(255,255,255,.05); padding-top: 14px;
}

.to-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05); padding: 20px 32px;
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
}
.to-footer-disc {
  font-family: var(--fsans); font-size: .64rem;
  color: rgba(255,255,255,.2); line-height: 1.9; max-width: 660px;
}
.to-footer-disc a { color: var(--pink); }
.to-footer-disc strong { color: rgba(255,255,255,.38); }
.to-footer-copy {
  font-family: var(--fmono); font-size: .6rem;
  color: rgba(255,255,255,.16); flex-shrink: 0; letter-spacing: .04em;
}

/* ══════════════════════════════════════════════
   SEARCH & 404
══════════════════════════════════════════════ */
.to-page-wrap {
  max-width: 860px; margin: 0 auto; padding: 60px 32px;
}
.to-page-title {
  font-family: var(--fdisp); font-size: 2.4rem; font-weight: 400; font-style: italic;
  color: var(--navy); margin-bottom: 12px;
}
[data-theme="dark"] .to-page-title { color: var(--ink); }
.to-page-subtitle {
  font-family: var(--fsans); font-size: .9rem; color: var(--body);
  line-height: 1.8; margin-bottom: 28px;
}
.to-search-form {
  display: flex; gap: 8px; max-width: 520px;
}
.to-search-input {
  flex: 1; padding: 12px 16px;
  background: var(--paper2); border: 1px solid var(--border2);
  border-radius: 3px; font-family: var(--fsans); font-size: .88rem;
  color: var(--ink); outline: none; transition: border-color .18s;
}
.to-search-input:focus { border-color: var(--navy); }
.to-search-btn {
  padding: 12px 20px; background: var(--pink); color: #fff;
  border: none; border-radius: 3px; cursor: pointer;
  font-family: var(--fsans); font-size: .82rem; font-weight: 700;
  transition: background .18s;
}
.to-search-btn:hover { background: var(--pink2); }

/* ══════════════════════════════════════════════
   WP COMMENTS
══════════════════════════════════════════════ */
.to-comments-wrap {
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border);
}
.to-comments-title {
  font-family: var(--fdisp); font-size: 1.3rem; font-weight: 400;
  color: var(--navy); margin-bottom: 24px;
}
[data-theme="dark"] .to-comments-title { color: var(--ink); }
.to-comment-list { list-style: none; }
.to-comment {
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.to-comment-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.to-comment-author {
  font-family: var(--fsans); font-size: .8rem; font-weight: 700; color: var(--navy);
}
[data-theme="dark"] .to-comment-author { color: var(--ink); }
.to-comment-date {
  font-family: var(--fmono); font-size: .6rem; color: var(--muted);
}
.to-comment-content {
  font-family: var(--fsans); font-size: .84rem;
  color: var(--body); line-height: 1.8;
}
.comment-form label {
  font-family: var(--fmono); font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 10px 14px;
  background: var(--paper2); border: 1px solid var(--border2);
  border-radius: 3px; font-family: var(--fsans); font-size: .84rem;
  color: var(--ink); outline: none; margin-bottom: 14px;
  transition: border-color .18s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--navy); }
.comment-form .submit {
  padding: 11px 24px; background: var(--pink); color: #fff;
  border: none; border-radius: 3px; cursor: pointer;
  font-family: var(--fsans); font-size: .82rem; font-weight: 700;
  transition: background .18s;
}
.comment-form .submit:hover { background: var(--pink2); }

/* ══════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════ */
.to-btt {
  position: fixed; bottom: 28px; right: 28px; z-index: 80;
  width: 44px; height: 44px; border-radius: 3px;
  background: var(--pink); color: #fff;
  display: grid; place-items: center; font-size: .85rem;
  border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,24,90,.4);
  opacity: 0; pointer-events: none;
  transition: transform .25s var(--ease), opacity .25s;
  font-family: var(--fmono);
}
.to-btt.vis { opacity: 1; pointer-events: all; }
.to-btt:hover { transform: translateY(-4px); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media(max-width:1100px) {
  .to-related-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:960px) {
  .to-main-wrap { grid-template-columns: 1fr; }
  .to-article-wrap { grid-template-columns: 1fr; }
  .to-sidebar { display: none; }
  .to-posts-grid { grid-template-columns: 1fr; }
  .to-related-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:700px) {
  .to-nav-top { padding: 0 16px; height: 56px; }
  .to-nav-links-row { padding: 0 16px; }
  .to-blog-hero-inner { padding: 40px 16px 32px; }
  .to-single-hero-inner { padding: 36px 16px 28px; }
  .to-main-wrap { padding: 24px 16px; }
  .to-article-wrap { padding: 24px 16px; }
  .to-article-content { padding: 28px 22px; }
  .to-related-wrap { padding: 0 16px 40px; }
  .to-related-grid { grid-template-columns: 1fr; }
  .to-footer-main { padding: 36px 16px; }
  .to-footer-bottom { padding: 16px; flex-direction: column; }
  .to-rg-strip-inner { padding: 0 16px; }
  .to-ticker-inner { padding: 0 16px; flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .to-ticker-stat { padding: 0; border-right: none; flex: 1; min-width: 80px; }
  .to-post-list-item { grid-template-columns: 90px 1fr; }
  .to-page-wrap { padding: 40px 16px; }
}
@media(max-width:480px) {
  .to-posts-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   POLISH — Hero fallback, CTA eyebrow, market links,
   widget thumb placeholder, empty state, card refinements
══════════════════════════════════════════════ */

/* Hero fallback (no featured image) */
.to-blog-hero-img--fallback {
  background: linear-gradient(
    135deg,
    var(--navy)  0%,
    var(--navy2) 50%,
    #0d1540      100%
  );
}
.to-blog-hero-img--fallback::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* CTA eyebrow label */
.to-widget-cta-eyebrow {
  font-family: var(--fmono);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 8px;
  position: relative; z-index: 1;
}

/* Improved CTA widget */
.to-widget-cta {
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 32px rgba(11,29,87,.25);
}
.to-widget-cta-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.to-widget-cta-btn {
  letter-spacing: .03em;
  font-size: .78rem;
}
.to-widget-cta-btn::after {
  content: ' →';
}

/* Market links */
.to-market-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.to-market-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all .18s var(--ease);
  text-decoration: none;
}
.to-market-link:hover {
  border-color: var(--pink);
  background: rgba(232,24,90,.04);
  transform: translateX(2px);
}
.to-market-link-label {
  font-family: var(--fsans);
  font-size: .76rem;
  font-weight: 600;
  color: var(--body);
  transition: color .18s;
}
.to-market-link:hover .to-market-link-label { color: var(--pink); }
.to-market-link-count {
  font-family: var(--fmono);
  font-size: .62rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--paper2);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 20px;
  transition: all .18s;
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-width: 26px;
  justify-content: center;
}
.to-market-link:hover .to-market-link-count {
  background: rgba(232,24,90,.08);
  border-color: rgba(232,24,90,.2);
  color: var(--pink);
}

/* Widget thumb placeholder */
.to-widget-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
  display: flex; align-items: center; justify-content: center;
}
.to-widget-thumb-placeholder::after {
  content: '';
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 2L4 8v10c0 9 6.5 15.5 14 17 7.5-1.5 14-8 14-17V8L18 2z' fill='%23e8185a' opacity='.35'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Widget post info */
.to-widget-post-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Post card refinements */
.to-post-card {
  box-shadow: var(--sh);
}
.to-post-card-title a { transition: color .2s; }
.to-post-card:hover .to-post-card-title a { color: var(--pink); }

/* Post card thumb height increase */
.to-post-card-thumb { height: 210px; }

/* Section head refinement */
.to-section-head { margin-bottom: 28px; }

/* Empty state */
.to-empty-state {
  text-align: center;
  padding: 80px 32px;
  background: var(--paper2);
  border: 1px dashed var(--border2);
  border-radius: var(--r-lg);
}
.to-empty-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: rgba(232,24,90,.06);
  border: 1px solid rgba(232,24,90,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.to-empty-icon svg { width: 32px; height: 32px; }
.to-empty-title {
  font-family: var(--fdisp);
  font-size: 1.6rem; font-weight: 400;
  color: var(--navy); margin-bottom: 10px;
}
.to-empty-desc {
  font-family: var(--fsans); font-size: .86rem;
  color: var(--body); line-height: 1.75; margin-bottom: 24px;
}

/* Article content first paragraph lead */
.to-article-content > p:first-of-type {
  font-size: .95rem;
  line-height: 1.95;
  color: var(--body);
}

/* Refined footer brand alignment */
.to-footer-main { text-align: center; }

/* Pagination refinement */
.to-pagination { padding: 40px 0 8px; }

/* Sticky header transition */
.to-site-header {
  transition: box-shadow .25s var(--ease2);
}

/* Smooth card entrance — set initial state, JS triggers it */
.to-post-card,
.to-post-list-item {
  will-change: transform, opacity;
}

/* ══════════════════════════════════════════════
   MARKET LINKS — layout fix (label flex, count fixed width)
══════════════════════════════════════════════ */
.to-market-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px;
}
.to-market-link-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════
   PERMANENT BLOG HERO — site title H1 + diagonal
══════════════════════════════════════════════ */

/* Pink diagonal accent — right side of hero */
.to-hero-diagonal {
  position: absolute;
  right: -80px; top: 0; bottom: 0;
  width: 520px;
  background: linear-gradient(135deg, rgba(232,24,90,.12) 0%, rgba(232,24,90,.05) 60%, transparent 100%);
  transform: skewX(-8deg);
  pointer-events: none;
  z-index: 1;
}

/* Permanent site H1 */
.to-blog-site-h1 {
  font-family: var(--fdisp);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.to-blog-site-h1 .to-h1-italic {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--pink);
  font-style: italic;
  display: block;
}

/* Scroll down button */
.to-hero-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  font-family: var(--fsans);
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  transition: all .2s;
  text-decoration: none;
}
.to-hero-scroll-btn:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}

/* Hero taller for permanent title */
.to-blog-hero { min-height: 560px; }
[data-theme="dark"] .to-blog-hero { background: #080a0f; }

/* Post cards use h3 not h2 (H1 is now the permanent title) */
.to-post-card-title {
  font-family: var(--fdisp);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}

/* Fix hero scroll button text colour */
.to-hero-scroll-btn,
.to-hero-scroll-btn:visited {
  color: rgba(255,255,255,.65) !important;
}
.to-hero-scroll-btn:hover {
  color: #fff !important;
}
