/* MarketRadar — mobile-first responsive theme. No frameworks. */
/* Breakpoints: 480 / 768 / 1024 / 1280. Base = small phones (360px+). */
:root{
  --navy:#0a1628; --navy2:#10203a; --blue:#1c2534; --blue-d:#0b1220;
  --ink:#1a1a2e; --muted:#5f6b7a; --line:#e6eaf0; --bg:#ffffff;
  --bg-soft:#f6f8fb; --green:#0e9f6e; --red:#d92d20; --gold:#8a5c14;
  --radius:10px; --maxw:1200px;
  /* calendar tokens (used by calendar.css) */
  --accent:var(--blue); --card:var(--bg-soft); --border:var(--line);
  --text:var(--ink); --hover:rgba(28,37,52,.08);
  --font:"Inter","Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
  --serif:Georgia,"Times New Roman",serif;
  --space:1rem;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}
body{font-family:var(--font);color:var(--ink);background:var(--bg);
  line-height:1.65;font-size:1rem;min-width:0;overflow-x:hidden}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
img,video{max-width:100%;height:auto}
.wrap{max-width:var(--maxw);margin:0 auto;padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right))}
.page-wrap{padding-top:1rem;padding-bottom:1rem}
.wrap .wrap{padding-left:0;padding-right:0}

/* ---------- typography (fluid) ---------- */
h1{font-size:clamp(1.55rem,1.2rem + 2.5vw,2.4rem);line-height:1.25;overflow-wrap:break-word}
h2{font-size:clamp(1.2rem,1.05rem + 1vw,1.5rem);line-height:1.35}
h3{font-size:clamp(1.02rem,.95rem + .5vw,1.15rem);line-height:1.4}
p,li{overflow-wrap:break-word}

/* ---------- header ---------- */
.topbar{background:var(--navy);color:#fff;position:sticky;top:0;z-index:50;
  padding-top:env(safe-area-inset-top)}
.topbar .wrap{display:flex;align-items:center;gap:.75rem;min-height:60px;padding-top:.4rem;padding-bottom:.4rem}
.brand{display:flex;align-items:center;gap:.6rem;color:#fff;font-weight:800;font-size:1.15rem;letter-spacing:.5px;flex-shrink:0;min-height:44px}
.brand:hover{text-decoration:none}
.brand img{width:36px;height:36px;border-radius:8px;flex-shrink:0}
.brand small{display:block;font-size:.75rem;font-weight:500;color:#9fb3d1;letter-spacing:2px}
.nav-toggle{display:none;background:transparent;border:1px solid #2a3f63;color:#fff;border-radius:8px;
  width:44px;height:44px;font-size:1.3rem;cursor:pointer;margin-left:auto;flex-shrink:0}
.theme-toggle{background:transparent;border:1px solid #2a3f63;color:#d7e3f5;border-radius:8px;
  font-size:1.1rem;width:44px;height:44px;cursor:pointer;flex-shrink:0}
.theme-toggle:hover{background:var(--navy2)}
nav.mainnav{display:flex;gap:2px;margin-left:auto;align-items:center;flex:1 1 auto;min-width:0;
  overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}
nav.mainnav::-webkit-scrollbar{display:none}
nav.mainnav>a:not(.nav-icon-link),.nav-dropdown{flex:1 0 auto;justify-content:center}
.nav-icon-link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;
  border-radius:8px;color:#d7e3f5;flex-shrink:0}
.nav-icon-link:hover{background:var(--navy2);color:#fff;text-decoration:none}
/* ---------- header "Markets" dropdown ---------- */
.nav-dropdown{position:relative;flex-shrink:0}
.nav-drop-toggle{background:transparent;border:0;color:#d7e3f5;padding:.5rem .75rem;border-radius:6px;
  font-size:.92rem;font-weight:600;font-family:inherit;white-space:nowrap;min-height:44px;
  display:inline-flex;align-items:center;gap:.3rem;cursor:pointer}
.nav-drop-toggle:hover{background:var(--navy2);text-decoration:none;color:#fff}
.nav-drop-toggle.active{background:var(--blue);color:#fff}
.nav-drop-toggle .arrow{font-size:.68rem;line-height:1;transition:transform .15s}
.nav-dropdown.open .nav-drop-toggle .arrow{transform:rotate(180deg)}
.nav-drop-menu{display:none;position:fixed;min-width:220px;background:var(--navy);
  border:1px solid #1c2f52;border-radius:10px;box-shadow:0 12px 28px rgba(0,0,0,.45);
  padding:.4rem;z-index:200}
.nav-dropdown.open .nav-drop-menu{display:block}
.nav-dropdown .nav-drop-menu a{display:flex;align-items:center;padding:.7rem .9rem;border-radius:8px;
  color:#d7e3f5;font-size:.92rem;font-weight:600;white-space:nowrap;min-height:44px}
.nav-dropdown .nav-drop-menu a:hover{background:var(--navy2);color:#fff;text-decoration:none}
.nav-dropdown .nav-drop-menu a.active{background:var(--blue);color:#fff}
nav.mainnav a{color:#d7e3f5;padding:.5rem .75rem;border-radius:6px;font-size:.92rem;font-weight:600;
  white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}
nav.mainnav a:hover{background:var(--navy2);text-decoration:none;color:#fff}
nav.mainnav a.active{background:var(--blue);color:#fff}

/* ---------- ticker ---------- */
.ticker{background:#060d1a;color:#fff;overflow:hidden;border-top:1px solid #1c2f52}
.ticker .wrap{display:flex;align-items:center;gap:.75rem;overflow:hidden;padding-top:.35rem;padding-bottom:.35rem}
.ticker-track{display:flex;gap:2rem;white-space:nowrap;animation:tick 45s linear infinite;font-size:.88rem;flex-shrink:0;min-width:100%}
.ticker:hover .ticker-track,.ticker:active .ticker-track{animation-play-state:paused}
@keyframes tick{from{transform:translateX(0)}to{transform:translateX(-100%)}}
@media(prefers-reduced-motion:reduce){.ticker-track{animation:none}}
.tk b{color:#9fb3d1;font-weight:600;margin-right:6px}
.tk .up{color:#34d399}.tk .down{color:#f87171}.tk .flat{color:#9fb3d1}
.tk-updated{color:#9fb3d1;font-size:.78rem;white-space:nowrap;letter-spacing:.4px;flex-shrink:0}
.ticker-meta{display:inline-flex;align-items:center;gap:.75rem;flex-shrink:0;background:#060d1a;
  position:relative;z-index:2;padding-right:.75rem}
#ticker-live-badge{color:#34d399;font-weight:700;font-size:.72rem;letter-spacing:1px;white-space:nowrap}
#ticker-live-badge.closed{color:#9aa7bd}
.live-badge{background:var(--red);color:#fff;font-size:.78rem;font-weight:800;letter-spacing:1px;
  padding:.15rem .5rem;border-radius:4px;flex-shrink:0}

/* ---------- hero / cards ---------- */
.hero{padding:1.25rem 0 .5rem}
.hero-grid{display:grid;grid-template-columns:1fr;gap:1rem}
.lead-card{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--navy);
  min-height:300px;display:flex;align-items:flex-end;color:#fff}
.lead-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.lead-card .lc-body{position:relative;padding:1.25rem;background:linear-gradient(transparent,rgba(4,10,22,.92));width:100%}
.kicker{display:inline-block;background:var(--blue);color:#fff;font-size:.72rem;font-weight:700;
  letter-spacing:1px;text-transform:uppercase;padding:.2rem .65rem;border-radius:20px;margin-bottom:.6rem}
.lead-card h2{font-size:clamp(1.25rem,1.05rem + 1.5vw,1.7rem);line-height:1.3;margin-bottom:.5rem}
.lead-card h2 a,.lead-card p a{color:#fff}
.lead-card p{color:#c9d6ea;font-size:.95rem}
.side-list{display:flex;flex-direction:column;gap:.75rem}
.side-item{display:grid;grid-template-columns:96px 1fr;gap:.75rem;background:var(--bg-soft);
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-height:96px}
.side-item img{width:96px;height:100%;object-fit:cover}
.side-item .si-body{padding:.6rem .75rem .6rem 0;min-width:0}
.side-item h3{font-size:.92rem;line-height:1.4;overflow-wrap:break-word}
.side-item h3 a{color:var(--ink)}
.meta{font-size:.82rem;color:var(--muted);margin-top:.4rem}
.meta .cat{color:var(--blue);font-weight:700;text-transform:uppercase;letter-spacing:.5px;font-size:.75rem}

.section{padding:1.5rem 0}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;
  border-bottom:3px solid var(--navy);margin-bottom:1.1rem;padding-bottom:.5rem;flex-wrap:wrap}
.section-head h2{font-size:1.1rem;text-transform:uppercase;letter-spacing:1px}
.section-head a{font-size:.85rem;font-weight:600;min-height:44px;display:inline-flex;align-items:center}
.card-grid{display:grid;grid-template-columns:1fr;gap:1rem}
.card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;
  display:flex;flex-direction:column;transition:box-shadow .2s;min-width:0}
.card:hover{box-shadow:0 8px 24px rgba(10,22,40,.10)}
.card img{width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;display:block}
.card .c-body{padding:.9rem 1rem;display:flex;flex-direction:column;gap:.5rem;flex:1;min-width:0}
.card h3{font-size:1rem;line-height:1.45;overflow-wrap:break-word}
.card h3 a{color:var(--ink)}
.card p{font-size:.88rem;color:var(--muted);flex:1}

/* ---------- article ---------- */
.article{max-width:780px;margin:0 auto;padding:1.5rem max(1rem,env(safe-area-inset-left))}
.article h1{margin:.75rem 0}
.article .standfirst{font-size:1.05rem;color:var(--muted);font-family:var(--serif);margin-bottom:.9rem;line-height:1.6}
.byline{display:flex;gap:.85rem;align-items:center;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);padding:.65rem 0;margin-bottom:1.25rem;font-size:.88rem;color:var(--muted);flex-wrap:wrap}
.byline img{width:44px;height:44px;border-radius:50%;flex-shrink:0}
.article-body{font-size:1.02rem;max-width:68ch}
.article-body p{margin-bottom:1.1em;line-height:1.7}
.article-body h2{margin:1.4em 0 .6em}
.article-body h3{margin:1.2em 0 .5em}
.article-body ul,.article-body ol{margin:0 0 1.1em 1.3em}
.article-body li{margin-bottom:.4em}
.article-body blockquote{border-left:4px solid var(--blue);background:var(--bg-soft);
  padding:.75rem 1.1rem;margin:0 0 1.1em;border-radius:0 8px 8px 0;color:#33415c}
.article-body table:not(.art-table){display:block;overflow-x:auto;max-width:100%}
.article-body table.art-table{display:table}
.keypoints{background:#fff8e6;border:1px solid #f0d48a;border-radius:var(--radius);padding:1rem 1.25rem;margin:0 0 1.4em}
.keypoints h2,.keypoints h3{margin:0 0 .5rem;font-size:.95rem;text-transform:uppercase;letter-spacing:1px;color:var(--gold)}
.keypoints ul{margin:0 0 0 1.2em}
.keypoints li{margin-bottom:.4rem}
.take{background:#eef4ff;border:1px solid #bcd3f7;border-radius:var(--radius);padding:1rem 1.25rem;margin:0 0 1.4em}
.take h2,.take h3{margin:0 0 .4rem;font-size:.95rem;text-transform:uppercase;letter-spacing:1px;color:var(--blue-d)}
.sourcebox{border-top:2px solid var(--line);margin-top:1.5rem;padding-top:.9rem;font-size:.88rem;color:var(--muted)}
.disc{background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);
  padding:.75rem 1rem;font-size:.82rem;color:var(--muted);margin-top:1.1rem;line-height:1.6}
.tags{margin-top:.9rem;display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.tags span{font-weight:700;font-size:.85rem;color:var(--muted)}
.tags a{background:var(--bg-soft);border:1px solid var(--line);border-radius:16px;padding:.4rem .9rem;
  font-size:.82rem;min-height:44px;display:inline-flex;align-items:center}
.tags a:hover{background:var(--blue);color:#fff;border-color:var(--blue);text-decoration:none}
.related{margin-top:2rem}
.related h2{font-size:1.05rem;margin-bottom:.9rem;text-transform:uppercase;letter-spacing:1px}

/* ---------- pages ---------- */
.page{max-width:820px;margin:0 auto;padding:1.75rem max(1rem,env(safe-area-inset-left))}
.page h1{margin-bottom:1rem}
.page h2{margin:1.4em 0 .6em}
.page p{margin-bottom:1em;line-height:1.7}
.page ul{margin:0 0 1em 1.3em}
.contact-form{max-width:560px;margin-top:1.1rem}
.contact-form label{display:block;font-weight:600;margin:.9rem 0 .4rem;font-size:.92rem}
.contact-form input,.contact-form textarea{width:100%;padding:.75rem .85rem;border:1px solid var(--line);
  border-radius:8px;font-size:1rem;font-family:var(--font);min-height:48px}
.contact-form textarea{min-height:150px;resize:vertical}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:#fff;border:none;
  padding:.75rem 1.6rem;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;margin-top:1rem;min-height:48px}
.btn:hover{background:var(--blue-d);text-decoration:none}

/* ---------- footer ---------- */
footer{background:var(--navy);color:#c9d6ea;margin-top:2rem;padding-bottom:env(safe-area-inset-bottom);position:relative}
footer::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,transparent,#34d399 30%,#34d399 70%,transparent);opacity:.7}
.foot-grid{display:grid;grid-template-columns:1fr;gap:.6rem;padding:.8rem 0 .5rem}
.foot-grid h4{color:#fff;font-size:.75rem;text-transform:uppercase;letter-spacing:1.2px;margin-bottom:.3rem}
.foot-grid a{color:#9fb3d1;font-size:.82rem;margin-bottom:0;min-height:30px;
  display:flex;align-items:center}
.foot-grid a:hover{color:#fff}
.foot-grid p{font-size:.8rem;line-height:1.45}
.foot-follow{margin-top:.4rem}
.foot-wa{margin-top:.3rem}
.foot-bottom{border-top:1px solid #1c2f52;padding:.6rem 0;font-size:.78rem;color:#7e93b5;
  display:flex;justify-content:space-between;gap:.6rem;flex-wrap:wrap}

/* ---------- misc ---------- */
.breadcrumb{font-size:.88rem;color:var(--muted);padding:1.1rem 0 0;overflow-wrap:break-word}
.breadcrumb a{color:var(--muted)}
.breadcrumb [aria-current="page"]{color:var(--ink);font-weight:600}
.cat-hero{background:var(--bg-soft);border-bottom:1px solid var(--line);padding:1.75rem 0;margin-bottom:.4rem}
.cat-hero h1{text-transform:uppercase;letter-spacing:1px;font-size:clamp(1.3rem,1.1rem + 1.5vw,1.7rem)}
.cat-hero p{color:var(--muted);max-width:640px;margin-top:.5rem}
.empty{padding:2.5rem 0;color:var(--muted);text-align:center}

/* ---------- WhatsApp float ---------- */
.wa-float{position:fixed;left:1rem;bottom:max(1rem,env(safe-area-inset-bottom));z-index:999;width:56px;height:56px;
  border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.28)}
.wa-float svg{width:32px;height:32px;fill:#fff}

/* ---------- article hero ---------- */
.hero-img{margin:1.25rem 0 .4rem;border-radius:12px;overflow:hidden;box-shadow:0 6px 24px rgba(0,0,0,.18)}
.hero-img img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover}

/* ---------- accessibility ---------- */
.skip-link{position:absolute;left:-9999px;top:0;background:var(--blue);color:#fff;padding:.65rem 1rem;z-index:100;border-radius:0 0 8px 0}
.skip-link:focus{left:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid var(--blue);outline-offset:2px}

/* ---------- dark mode ---------- */
.theme-toggle{background:transparent;border:1px solid #2a3f63;color:#d7e3f5;border-radius:8px;
  font-size:1.1rem;width:44px;height:44px;cursor:pointer;flex-shrink:0}
.theme-toggle:hover{background:var(--navy2)}
[data-theme="dark"]{--ink:#e8edf5;--muted:#9fb3d1;--line:#1c2f52;--bg:#0a1628;--bg-soft:#0e1d36;
  --blue:#9fb0c7;--blue-d:#d7e0ec;--gold:#e8b64c;--hover:rgba(159,176,199,.14)}
/* dark mode: light-slate accent needs dark text on it for contrast */
[data-theme="dark"] nav.mainnav a.active,[data-theme="dark"] .nav-drop-toggle.active,
[data-theme="dark"] .nav-dropdown .nav-drop-menu a.active,[data-theme="dark"] .kicker,
[data-theme="dark"] .btn,[data-theme="dark"] .load-more,[data-theme="dark"] .search-form button,
[data-theme="dark"] .cal-btn,[data-theme="dark"] .tags a:hover,
[data-theme="dark"] .share a:hover,[data-theme="dark"] .share button:hover,
[data-theme="dark"] .skip-link{color:#0a1628}
[data-theme="dark"] .card,[data-theme="dark"] .page{background:#0e1d36}
[data-theme="dark"] .keypoints{background:#2a2113;border-color:#6b5320}
[data-theme="dark"] .take,[data-theme="dark"] .watch{background:#12294d;border-color:#2a4d8f}
[data-theme="dark"] .sourcebox{background:#0e1d36}
[data-theme="dark"] input,[data-theme="dark"] textarea,[data-theme="dark"] select{
  background:#0a1628;color:#e8edf5;border-color:#1c2f52}
[data-theme="dark"] .risk-warning{background:#2b1414;border-color:#7a2a2a}
[data-theme="dark"] .watch{background:#0f2b1d;border-color:#1d5c37}

/* ---------- trending / load more ---------- */
.site-tagline h1{font-size:.95rem;font-weight:600;color:var(--muted);margin-bottom:.9rem;letter-spacing:.2px}
.site-tagline{margin:0}
.trend-grid{display:grid;grid-template-columns:1fr;gap:.85rem}
.trend-item{display:flex;gap:.75rem;align-items:flex-start;background:var(--bg-soft);
  border:1px solid var(--line);border-radius:var(--radius);padding:.9rem}
.trend-num{font-size:1.5rem;font-weight:800;color:var(--blue);line-height:1;flex-shrink:0}
.trend-item h3{font-size:.95rem;line-height:1.4;margin-bottom:.25rem;overflow-wrap:break-word}
.hidden-item{display:none}
.load-more-wrap{text-align:center;margin-top:1.4rem}
.load-more{background:var(--blue);color:#fff;border:none;border-radius:8px;padding:.75rem 1.75rem;
  font-size:1rem;font-weight:700;cursor:pointer;min-height:48px}
.load-more:hover{background:var(--blue-d)}

/* ---------- share / author / risk / newsletter / search ---------- */
.share{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.9rem 0;padding:.75rem 0;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.share span{font-weight:700;font-size:.85rem;color:var(--muted);margin-right:.25rem}
.share a,.share button{background:var(--bg-soft);border:1px solid var(--line);border-radius:20px;
  padding:.5rem 1rem;font-size:.85rem;font-weight:600;color:var(--ink);cursor:pointer;
  min-height:44px;display:inline-flex;align-items:center}
.share a:hover,.share button:hover{background:var(--blue);color:#fff;border-color:var(--blue);text-decoration:none}
.author-box{display:flex;gap:1rem;background:var(--bg-soft);border:1px solid var(--line);
  border-radius:var(--radius);padding:1.1rem;margin:1.5rem 0;flex-wrap:wrap}
.author-box img{border-radius:50%;flex-shrink:0;width:72px;height:72px}
.author-role{color:var(--muted);font-size:.85rem;margin:.15rem 0 .5rem}
.author-page{display:flex;gap:1.25rem;align-items:flex-start;margin:1.5rem 0;flex-wrap:wrap}
.author-page img{border-radius:50%;flex-shrink:0}
.risk-warning{background:#fef2f2;border:1px solid #f5b5b5;border-left:4px solid var(--red);
  border-radius:8px;padding:.9rem 1.1rem;margin:1.25rem 0;font-size:.92rem;line-height:1.6}
.newsletter-box{background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;
  border-radius:var(--radius);padding:1.5rem;margin:1.5rem 0}
.newsletter-box h3{color:#fff;margin:0 0 .4rem;font-size:1.1rem}
.newsletter-box p{color:#c9d8f2;margin:0 0 .9rem;font-size:.92rem}
.newsletter-form{display:flex;gap:.5rem;flex-wrap:wrap}
.newsletter-form input[type="email"]{flex:1;min-width:100%;padding:.75rem .9rem;border-radius:8px;
  border:1px solid #2a3f63;font-size:1rem;min-height:48px}
.newsletter-form button{background:var(--gold);color:#1a1a1a;border:none;border-radius:8px;
  padding:.75rem 1.5rem;font-weight:800;font-size:1rem;cursor:pointer;min-height:48px;flex:1}
.nl-privacy{font-size:.8rem !important;color:#8fa5c8 !important;margin:.65rem 0 0 !important}
.nl-privacy a{color:#c9d8f2}
.foot-newsletter{margin-bottom:.9rem}
.foot-newsletter .newsletter-box{background:linear-gradient(135deg,#065f46,#047857);padding:1.1rem 1.25rem;margin:0}
.foot-newsletter .newsletter-box h3{font-size:1rem;margin-bottom:.25rem}
.foot-newsletter .newsletter-box p{font-size:.85rem;margin-bottom:.7rem}
.foot-newsletter .newsletter-form input[type="email"]{min-height:44px;padding:.65rem .9rem}
.foot-newsletter .newsletter-form button{min-height:44px;padding:.65rem 1.2rem}
.foot-newsletter .nl-privacy{margin:.5rem 0 0 !important}
.search-form{display:flex;gap:.5rem;margin:1.1rem 0;max-width:560px;flex-wrap:wrap}
.search-form input[type="search"]{flex:1;min-width:100%;padding:.75rem .9rem;border-radius:8px;
  border:1px solid var(--line);font-size:1rem;min-height:52px}
.search-form button{background:var(--blue);color:#fff;border:none;border-radius:8px;
  padding:.75rem 1.5rem;font-weight:700;cursor:pointer;min-height:52px;flex:1}

/* ---------- calendar tables (holiday, central banks) ---------- */
.table-wrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;margin:1rem 0;width:100%}
.cal-table{width:100%;border-collapse:collapse;font-size:.9rem;min-width:560px}
.cal-table th,.cal-table td{padding:.65rem .75rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.cal-table th{background:var(--bg-soft);font-weight:700;white-space:nowrap;position:sticky;top:0}
.cal-table tr:hover td{background:var(--bg-soft)}
.cal-controls{background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);
  padding:1rem;margin:1rem 0}
.cal-row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center;margin-bottom:.75rem}
.cal-row:last-child{margin-bottom:0}
.cal-row label{font-weight:600;font-size:.88rem;display:flex;flex-direction:column;gap:.3rem;flex:1;min-width:140px}
.cal-select,.cal-input{padding:.7rem .8rem;border:1px solid var(--line);border-radius:8px;
  font-size:1rem;font-family:var(--font);min-height:48px;width:100%;background:#fff}
.cal-btn{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:#fff;
  border:none;border-radius:8px;padding:.75rem 1.4rem;font-weight:700;cursor:pointer;min-height:48px;
  font-size:.95rem;text-decoration:none}
.cal-btn:hover{background:var(--blue-d);color:#fff;text-decoration:none}
.cal-btn.primary{background:var(--blue)}
.cal-updated{font-size:.78rem;color:var(--muted)}
.cal-disclaimer{font-size:.82rem;color:var(--muted);background:var(--bg-soft);border:1px solid var(--line);
  border-radius:8px;padding:.75rem 1rem;margin:1rem 0;line-height:1.6}
.update-banner{background:#fff8e6;border:1px solid #e8b64c;border-left:4px solid #e8b64c;border-radius:8px;
  padding:.9rem 1.1rem;margin:0 0 1.25rem;line-height:1.6}
[data-theme="dark"] .update-banner{background:#2a2113;border-color:#6b5320}
.data-table{width:100%;border-collapse:collapse;margin:1.1rem 0;font-size:.92rem}
.data-table th,.data-table td{border:1px solid var(--line);padding:.5rem .75rem;text-align:left}
.data-table thead th{background:var(--bg-soft);font-weight:700}
.data-table tbody tr:nth-child(even){background:var(--bg-soft)}
.cal-faq{margin:1.5rem 0}
.cal-faq details{border:1px solid var(--line);border-radius:8px;margin-bottom:.6rem;background:#fff}
.cal-faq summary{padding:.85rem 1rem;font-weight:700;cursor:pointer;min-height:48px;
  display:flex;align-items:center;list-style:none}
.cal-faq summary::-webkit-details-marker{display:none}
.cal-faq details p{padding:0 1rem 1rem;color:var(--muted);line-height:1.65}
.cal-skeleton .sk{background:var(--line);border-radius:8px;height:56px;margin-bottom:.6rem;animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{opacity:.6}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.cal-skeleton .sk{animation:none}}
.cal-empty{text-align:center;padding:2.5rem 1rem;color:var(--muted)}
.cal-intro{color:var(--muted);margin:.5rem 0 1rem;line-height:1.65;max-width:68ch}
.page-content{max-width:68ch}
.page-content p{margin-bottom:1em;line-height:1.7}
.page-content h2{margin:1.4em 0 .6em}
.page-content ul{margin:0 0 1em 1.3em}

/* ============================================================
   BREAKPOINTS — progressively enhance for larger screens
   ============================================================ */

/* ---- 480px: large phones ---- */
@media(min-width:480px){
  .newsletter-form input[type="email"]{min-width:0}
  .newsletter-form button{flex:0}
  .search-form input[type="search"]{min-width:0}
  .search-form button{flex:0}
  .trend-grid{grid-template-columns:repeat(2,1fr)}
}

/* ---- 768px: tablets ---- */
@media(min-width:768px){
  .hero-grid{grid-template-columns:1.6fr 1fr}
  .card-grid{grid-template-columns:repeat(2,1fr)}
  .trend-grid{grid-template-columns:repeat(3,1fr)}
  .foot-grid{grid-template-columns:repeat(2,1fr)}
  .lead-card{min-height:340px}
  .cal-row label{flex:0 1 auto;min-width:160px}
  .tk-updated{font-size:.72rem}
}

/* ---- 1024px: laptops ---- */
@media(min-width:1101px){
  .card-grid{grid-template-columns:repeat(3,1fr)}
  .trend-grid{grid-template-columns:repeat(4,1fr)}
  .foot-grid{grid-template-columns:1.4fr 1fr 1fr 1fr}
  .article{padding:2rem 1.25rem}
  nav.mainnav{display:flex !important}
  .nav-toggle{display:none !important}
}

/* ---- 1280px: desktops ---- */
@media(min-width:1280px){
  :root{--maxw:1200px}
  .card-grid{grid-template-columns:repeat(4,1fr)}
}

/* ---- mobile nav (below 1024px): hamburger ---- */
@media(max-width:1100px){
  .nav-toggle{display:none !important}
  .topbar .wrap{position:relative;flex-wrap:wrap}
  nav.mainnav{display:flex !important;position:static;flex:1 1 100%;flex-direction:row;
    align-items:center;overflow-x:auto;overflow-y:hidden;
    background:transparent;border:0;box-shadow:none;
    padding:.35rem .75rem;gap:.15rem;max-height:none;
    scrollbar-width:none;-ms-overflow-style:none}
  nav.mainnav::-webkit-scrollbar{display:none}
  nav.mainnav>a,.nav-dropdown{flex:0 0 auto}
  nav.mainnav a{padding:.55rem .75rem;font-size:.88rem;min-height:40px;white-space:nowrap;border-radius:8px}
  nav.mainnav a:hover{background:var(--navy2)}
  .nav-dropdown{width:auto}
  .nav-drop-toggle{width:auto;justify-content:center;padding:.55rem .75rem;font-size:.88rem;min-height:40px;white-space:nowrap}
  .nav-dropdown .nav-drop-menu{position:fixed;min-width:220px;background:var(--navy);
    border:1px solid #1c2f52;border-radius:10px;box-shadow:0 12px 28px rgba(0,0,0,.45);
    padding:.4rem;z-index:200}
  .nav-dropdown .nav-drop-menu a{padding:.7rem .9rem;white-space:nowrap;min-height:44px}
  .topbar{position:sticky}
  .topbar .wrap{position:relative;flex-wrap:nowrap}
  .brand{font-size:1.05rem}
  .brand small{font-size:.55rem}
}

/* ---------- tap target fixes ---------- */
.card h3 a{display:inline-block;min-height:44px;padding:.25rem 0}
.breadcrumb a{display:inline-flex;align-items:center;min-height:44px;padding:.25rem .25rem}
.side-item h3 a{display:inline-block;min-height:44px}
.trend-item h3 a{display:inline-block;min-height:44px}

.src-line{font-size:.82rem;color:var(--muted);margin:.5rem 0 0}
.src-line a{color:var(--muted);text-decoration:underline}

/* ---------- article tables ---------- */
.art-table{width:100%!important;min-width:100%;table-layout:fixed;border-collapse:collapse;font-size:.92rem;margin:1rem 0;background:var(--card,#fff);border:1px solid var(--line,#e6eaf0);border-radius:10px;overflow:hidden;display:table}
.art-table th:first-child,.art-table td:first-child{width:34%}
.art-table th{background:var(--navy,#0f2040);color:#fff;text-align:left;padding:.65rem .9rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}
.art-table td{padding:.6rem .9rem;border-bottom:1px solid var(--line,#e6eaf0);vertical-align:top}
.art-table tbody tr td{background:#fff}
.art-table tbody tr:last-child td{border-bottom:none}
.art-table td strong{font-variant-numeric:tabular-nums}
/* ---------- article charts (inline SVG from ```chart blocks) ---------- */
.art-chart{margin:1.4rem 0;background:var(--card,#fff);border:1px solid var(--line,#e6eaf0);border-radius:10px;padding:1rem .75rem .5rem;overflow:hidden}
.art-chart figcaption{font-weight:700;font-size:.95rem;margin:0 0 .5rem .5rem;color:var(--ink)}
.art-chart svg{width:100%;height:auto;display:block}
.art-chart .grid{stroke:var(--line,#e6eaf0);stroke-width:1}
.art-chart .ylab,.art-chart .xlab{fill:var(--muted,#5f6b7a);font-size:11px;font-family:var(--font)}
.art-chart .vlab{fill:var(--ink);font-size:11px;font-weight:600;font-family:var(--font)}
.art-chart .bar{fill:var(--blue,#1c2534);rx:3}
.art-chart .bar-last{fill:var(--green,#0e9f6e)}
.art-chart .line{stroke-width:2.5}
.art-chart .line-green{stroke:var(--green,#0e9f6e)}
.art-chart .line-red{stroke:var(--red,#d92d20)}
.art-chart .line-blue{stroke:var(--blue,#1c2534)}
.art-chart .dot-green{fill:var(--green,#0e9f6e)}
.art-chart .dot-red{fill:var(--red,#d92d20)}
.art-chart .dot-blue{fill:var(--blue,#1c2534)}
.art-figure{margin:1.25rem 0}
.art-figure img{width:100%;height:auto;border-radius:10px;border:1px solid var(--line,#e6eaf0);display:block}
.art-figure figcaption{font-size:.82rem;color:var(--muted,#667085);text-align:center;margin-top:.4rem}
