/*
Theme Name: Tilteed
Theme URI: https://brainfoodcloud.com/
Author: Brainfood Cloud
Author URI: https://brainfoodcloud.com/
Description: A dynamic editorial WordPress theme for testing Publio and MediaSync. Includes live TradingView market widgets, responsive article layouts, category archives, RSS media metadata and native WordPress content.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: tilteed
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ink: #000027;
  --navy: #060b3d;
  --navy-2: #0b1156;
  --indigo: #302dab;
  --indigo-light: #8b8af0;
  --violet-wash: #eeedff;
  --offwhite: #f7f8fa;
  --white: #ffffff;
  --gray-100: #e8eaf0;
  --gray-300: #c8cbd6;
  --gray-500: #8c91a3;
  --gray-800: #202230;
  --green: #33c789;
  --red: #ef6f78;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --max-width: 1400px;
  --reading-width: 760px;
  --gutter: clamp(1rem, 3vw, 2.25rem);
  --shadow: 0 18px 45px rgba(0, 0, 39, 0.1);
  --ease: cubic-bezier(.22, .68, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  background: var(--offwhite);
  color: var(--gray-800);
  font-family: var(--font-ui);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
ul { list-style: none; }
button, input { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
.wrap { width: min(100%, var(--max-width)); margin: 0 auto; padding-inline: var(--gutter); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--indigo-light); outline-offset: 3px; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.eyebrow,
.tag,
.meta,
.mono,
.section-link,
.market-card__label,
.article-kicker {
  font-family: var(--font-mono);
}

/* Top live market strip */
.market-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 46px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.market-strip__label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1rem;
  background: var(--indigo);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  white-space: nowrap;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.market-strip__widget { min-width: 0; min-height: 46px; overflow: hidden; }
.market-strip .tradingview-widget-container,
.market-strip .tradingview-widget-container__widget { min-height: 46px !important; height: 46px !important; }
.widget-fallback {
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: 0 1rem;
  color: rgba(255,255,255,.65);
  font-family: var(--font-mono);
  font-size: .72rem;
}

/* Date / edition bar */
.edition-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.62);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.edition-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  gap: 1rem;
}
.edition-bar b { color: var(--white); font-weight: 500; }
.edition-bar__right { text-align: right; }
.status-open { color: var(--green); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(6,11,61,.97);
  color: var(--white);
  backdrop-filter: blur(12px);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 14px 34px rgba(0,0,39,.34); }
.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: clamp(1rem, 2vw, 2rem);
}
.logo { display: inline-flex; align-items: center; gap: .72rem; flex: none; }
.logo-mark { width: 20px; height: 29px; }
.logo-word { color: var(--white); font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -.04em; }
.main-nav { display: flex; align-items: stretch; gap: clamp(.7rem, 1.7vw, 1.55rem); }
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 72px;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,.7);
  font-size: .87rem;
  font-weight: 600;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--indigo-light); }
.header-actions { display: flex; align-items: center; gap: .65rem; margin-left: auto; }
.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  transition: background .2s, border-color .2s;
}
.icon-button:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.menu-button { display: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .68rem 1.15rem;
  border: 1px solid transparent;
  font-size: .84rem;
  font-weight: 700;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button--light { background: var(--white); color: var(--navy); }
.button--light:hover { background: var(--indigo-light); color: var(--navy); }
.button--indigo { background: var(--indigo); color: var(--white); }
.button--indigo:hover { background: #403dc4; }
.button--outline { border-color: var(--ink); color: var(--ink); }
.button--outline:hover { background: var(--ink); color: var(--white); }

.search-bar {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 15vh var(--gutter) 2rem;
  background: rgba(0,0,39,.82);
  backdrop-filter: blur(9px);
}
.search-bar.open { display: flex; }
.search-dialog {
  width: min(720px, 100%);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 4vw, 2.2rem);
}
.search-dialog__top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.search-dialog h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
.search-input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--gray-300);
  padding: .85rem 1rem;
  color: var(--ink);
  background: var(--offwhite);
}
.search-note { margin-top: .7rem; color: var(--gray-500); font-size: .8rem; }

/* Shared editorial elements */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--compact { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head {
  position: relative;
  display: flex;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-top: .8rem;
  border-top: 3px solid var(--ink);
}
.section-head::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--ink);
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-link { margin-left: auto; color: var(--indigo); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.eyebrow { color: var(--indigo); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.tag {
  display: inline-flex;
  width: fit-content;
  padding: .18rem .5rem;
  border: 1px solid currentColor;
  color: var(--indigo);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}
.tag--light { color: var(--indigo-light); }
.meta { display: flex; flex-wrap: wrap; gap: .35rem .55rem; color: var(--gray-500); font-size: .75rem; }
.meta b { color: var(--ink); }
.meta .dot::before { content: "·"; }
.dek { color: #444754; font-size: clamp(1rem, 1.5vw, 1.16rem); }
.story-link {
  background-image: linear-gradient(var(--indigo), var(--indigo));
  background-repeat: no-repeat;
  background-position: 0 98%;
  background-size: 0 2px;
  transition: background-size .35s var(--ease);
}
.story-link:hover { background-size: 100% 2px; }

.story-media {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(125deg, rgba(139,138,240,.55), transparent 48%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 23px),
    linear-gradient(155deg, #111a70, #060b3d 60%, #02031a);
}
.story-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 25%, rgba(255,255,255,.16), transparent 25%);
  transition: transform .55s var(--ease);
}
a:hover .story-media::before { transform: scale(1.08); }
.story-media::after {
  content: attr(data-label);
  position: absolute;
  left: 1rem;
  bottom: .85rem;
  color: rgba(255,255,255,.55);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.story-media--wide { aspect-ratio: 21 / 10; }
.story-media--tall { aspect-ratio: 4 / 3; }
.story-media--tilteed { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%); }

/* Home hero */
.home-hero { padding-block: clamp(2rem, 5vw, 4.5rem) 2.5rem; }
.home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(310px, .78fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
  align-items: start;
}
.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr);
  gap: clamp(1.25rem, 2.5vw, 2.2rem);
}
.lead-story h1 {
  margin: .8rem 0 .85rem;
  font-size: clamp(2.45rem, 5.3vw, 5rem);
  line-height: 1.02;
}
.lead-story .meta { margin-top: 1rem; }
.top-stories { border-left: 1px solid var(--gray-100); padding-left: clamp(1.1rem, 2vw, 1.8rem); }
.rail-heading {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rail-mark { width: 12px; height: 20px; flex: none; }
.side-story { padding: 1.05rem 0; border-bottom: 1px solid var(--gray-100); }
.side-story h3 { margin: .45rem 0; font-size: 1rem; }
.briefing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--gray-100);
}
.brief-item { padding: 1rem; border-right: 1px solid var(--gray-100); }
.brief-item:first-child { padding-left: 0; }
.brief-item:last-child { border-right: 0; }
.brief-item h4 { margin-top: .35rem; font-family: var(--font-ui); font-size: .92rem; letter-spacing: 0; line-height: 1.35; }

/* Live market sidebar */
.market-sidebar { position: sticky; top: 96px; }
.market-card { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.market-card__head { padding: 1.1rem 1.15rem .9rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.market-card__label { color: var(--indigo-light); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.market-card h2 { margin-top: .35rem; color: var(--white); font-size: 1.4rem; }
.market-card__widget { min-height: 520px; background: var(--white); }
.market-card__note { padding: .7rem 1rem; color: rgba(255,255,255,.5); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; }

/* Card grids */
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.story-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.story-card:hover { transform: translateY(-4px); border-color: var(--indigo-light); box-shadow: var(--shadow); }
.story-card__body { display: flex; flex: 1; flex-direction: column; gap: .6rem; padding: 1rem 1rem 1.2rem; }
.story-card h3 { font-size: clamp(1.12rem, 1.55vw, 1.35rem); }
.story-card p { color: var(--gray-500); font-size: .9rem; }
.story-card .meta { margin-top: auto; padding-top: .45rem; }

.category-band { background: var(--navy); color: var(--white); }
.category-band .section-head { border-color: var(--white); }
.category-band .section-head::before { border-color: rgba(255,255,255,.45); }
.category-band .section-head h2 { color: var(--white); }
.category-band .section-link { color: var(--indigo-light); }
.category-band-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1.4rem; }
.category-band .story-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); }
.category-band .story-card h3,
.category-band .story-card .meta b { color: var(--white); }
.category-band .story-card p { color: rgba(255,255,255,.62); }
.category-band .story-card .meta { color: rgba(255,255,255,.48); }
.category-band-list article { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.category-band-list h3 { color: var(--white); font-size: 1.04rem; }

.news-market-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start; }
.live-news-panel,
.funding-panel { background: var(--white); border: 1px solid var(--gray-100); }
.panel-head { padding: 1rem 1.1rem; border-bottom: 1px solid var(--gray-100); }
.panel-head h3 { font-size: 1.25rem; }
.live-news-widget { min-height: 520px; }
.funding-list li { display: grid; grid-template-columns: 1.2fr .65fr .6fr; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--gray-100); font-size: .83rem; }
.funding-list li:last-child { border-bottom: 0; }
.funding-list strong { color: var(--ink); }
.funding-list span:last-child { color: var(--indigo); font-family: var(--font-mono); font-weight: 700; text-align: right; }

.newsletter { background: linear-gradient(120deg, var(--ink), var(--navy-2)); color: var(--white); }
.newsletter-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 2rem; padding-block: clamp(3rem, 6vw, 5rem); }
.newsletter h2 { margin: .5rem 0 .6rem; color: var(--white); font-size: clamp(2rem, 4vw, 3.5rem); }
.newsletter p { color: rgba(255,255,255,.65); }
.newsletter-form { display: flex; gap: .6rem; }
.newsletter-form input { min-width: 0; flex: 1; min-height: 48px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--white); padding: .75rem .9rem; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.form-success { display: none; color: var(--green) !important; font-family: var(--font-mono); font-size: .8rem; }

/* Category pages */
.category-hero { background: linear-gradient(120deg, var(--navy), #15126e); color: var(--white); }
.category-hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 2rem; padding-block: clamp(3.5rem, 7vw, 6rem); }
.category-hero h1 { margin: .7rem 0 .8rem; color: var(--white); font-size: clamp(3rem, 8vw, 6.4rem); }
.category-hero p { max-width: 63ch; color: rgba(255,255,255,.66); font-size: 1.08rem; }
.category-topics { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.category-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(1.5rem, 3vw, 2.7rem); padding-block: clamp(3rem, 6vw, 5rem); }
.category-feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: center; padding-bottom: 2rem; border-bottom: 2px solid var(--ink); }
.category-feature h2 { margin: .65rem 0 .7rem; font-size: clamp(2rem, 4vw, 3.5rem); }
.article-list article { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--gray-100); }
.article-list .story-media { min-height: 145px; }
.article-list h3 { margin: .5rem 0; font-size: clamp(1.3rem, 2vw, 1.8rem); }
.article-list p { color: var(--gray-500); font-size: .92rem; }
.category-sidebar { position: sticky; top: 96px; align-self: start; }
.ranked-list article { position: relative; min-height: 70px; padding: 1rem 0 1rem 3.2rem; border-bottom: 1px solid var(--gray-100); counter-increment: rank; }
.ranked-list { counter-reset: rank; }
.ranked-list article::before { content: counter(rank, decimal-leading-zero); position: absolute; left: 0; top: .75rem; color: transparent; -webkit-text-stroke: 1px var(--gray-500); font-family: var(--font-mono); font-size: 1.45rem; font-weight: 700; transform: skewX(-8deg); }
.ranked-list h4 { font-family: var(--font-ui); font-size: .92rem; letter-spacing: 0; line-height: 1.4; }
.sidebar-newsletter { margin-top: 1.5rem; padding: 1.2rem; background: var(--navy); color: var(--white); }
.sidebar-newsletter h3 { margin: .55rem 0; color: var(--white); font-size: 1.35rem; }
.sidebar-newsletter p { color: rgba(255,255,255,.6); font-size: .82rem; }
.sidebar-newsletter form { display: grid; gap: .55rem; margin-top: 1rem; }
.sidebar-newsletter input { min-height: 44px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: var(--white); padding: .7rem .8rem; }

/* Article page */
.reading-progress { position: fixed; top: 0; left: 0; z-index: 120; width: 0; height: 3px; background: var(--indigo-light); }
.article-header { padding-block: clamp(3rem, 7vw, 6rem) 2.4rem; }
.article-header__inner { max-width: 1050px; }
.article-header h1 { margin: .8rem 0 1rem; font-size: clamp(2.8rem, 7vw, 6.3rem); line-height: 1.01; }
.article-header .dek { max-width: 70ch; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--gray-100); }
.avatar { display: grid; width: 44px; height: 44px; place-items: center; background: var(--indigo); color: var(--white); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }
.article-hero-media { width: min(100%, var(--max-width)); margin: 0 auto; padding-inline: var(--gutter); }
.article-hero-media .story-media { aspect-ratio: 21 / 8; }
.article-shell { display: grid; grid-template-columns: minmax(0, var(--reading-width)) 320px; justify-content: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 5rem); }
.article-body { color: #30323e; font-family: Georgia, "Times New Roman", serif; font-size: 1.16rem; }
.article-body > * + * { margin-top: 1.45rem; }
.article-body h2 { margin-top: 2.4rem; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.7rem); }
.article-body blockquote { margin-block: 2.2rem; padding: 1.5rem 0 1.5rem 1.5rem; border-left: 4px solid var(--indigo); color: var(--ink); font-family: var(--font-head); font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.25; }
.inline-data { margin-block: 2rem; padding: 1.2rem; border: 1px solid var(--gray-300); background: var(--white); font-family: var(--font-ui); font-size: .92rem; }
.inline-data li { padding: .6rem 0; border-bottom: 1px solid var(--gray-100); }
.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.6rem; border-top: 1px solid var(--gray-100); }
.author-box { margin-top: 2rem; padding: 1.25rem; background: var(--violet-wash); font-family: var(--font-ui); font-size: .9rem; }
.article-rail { position: sticky; top: 96px; align-self: start; }
.article-rail .side-story h3 { font-size: .95rem; }

/* Footer */
.site-footer { background: #03051f; color: rgba(255,255,255,.58); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .65fr); gap: 2rem; padding-block: 3rem; }
.footer-brand p { max-width: 38ch; margin-top: 1rem; font-size: .85rem; }
.site-footer h4 { margin-bottom: .8rem; color: var(--white); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer li + li { margin-top: .4rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; }

@media (max-width: 1120px) {
  .home-shell { grid-template-columns: 1fr; }
  .market-sidebar { position: static; }
  .market-card__widget { min-height: 460px; }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .category-layout { grid-template-columns: minmax(0, 1fr) 285px; }
  .article-shell { grid-template-columns: minmax(0, var(--reading-width)) 270px; gap: 2rem; }
}

@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .menu-button { display: grid; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 85;
    display: flex;
    width: min(340px, 86vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 92px 1.3rem 2rem;
    background: var(--navy);
    transform: translateX(105%);
    transition: transform .3s var(--ease);
    box-shadow: -20px 0 45px rgba(0,0,39,.3);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { min-height: auto; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1rem; }
  .lead-layout { grid-template-columns: 1fr; }
  .top-stories { border-left: 0; border-top: 1px solid var(--gray-100); padding: 1.4rem 0 0; }
  .briefing-grid { grid-template-columns: repeat(2, 1fr); }
  .brief-item:nth-child(2) { border-right: 0; }
  .brief-item:nth-child(-n+2) { border-bottom: 1px solid var(--gray-100); }
  .category-band-grid { grid-template-columns: 1fr 1fr; }
  .category-band-grid > :first-child { grid-column: 1 / -1; }
  .news-market-grid,
  .newsletter-inner,
  .category-hero__inner,
  .category-layout,
  .article-shell { grid-template-columns: 1fr; }
  .category-topics { justify-content: flex-start; }
  .category-sidebar,
  .article-rail { position: static; }
}

@media (max-width: 640px) {
  .market-strip { grid-template-columns: 1fr; }
  .market-strip__label { min-height: 30px; justify-content: center; }
  .edition-bar__inner { justify-content: center; text-align: center; }
  .edition-bar__right { display: none; }
  .header-inner { min-height: 64px; }
  .main-nav { padding-top: 82px; }
  .button--header { display: none; }
  .lead-story h1 { font-size: clamp(2.3rem, 12vw, 3.5rem); }
  .briefing-grid,
  .content-grid,
  .category-band-grid { grid-template-columns: 1fr; }
  .brief-item,
  .brief-item:first-child { padding-inline: 0; border-right: 0; border-bottom: 1px solid var(--gray-100); }
  .news-market-grid { gap: 1rem; }
  .funding-list li { grid-template-columns: 1fr auto; }
  .funding-list li span:nth-child(2) { display: none; }
  .newsletter-form { flex-direction: column; }
  .category-feature,
  .article-list article { grid-template-columns: 1fr; }
  .article-list .story-media { aspect-ratio: 16 / 9; }
  .article-header h1 { font-size: clamp(2.5rem, 13vw, 4.2rem); }
  .article-hero-media .story-media { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ============================================================
   TILTEED — VISUAL POLISH v3
   Premium motion, market panel fixes and editorial refinement.
   ============================================================ */

:root {
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 16px 48px rgba(0, 0, 39, 0.08);
  --shadow-lift: 0 26px 70px rgba(0, 0, 39, 0.15);
  --border-glass: 1px solid rgba(255, 255, 255, 0.12);
}

::selection {
  background: var(--indigo);
  color: var(--white);
}

html {
  scroll-padding-top: 105px;
}

body {
  position: relative;
  background:
    radial-gradient(circle at 12% 7%, rgba(139, 138, 240, 0.10), transparent 25rem),
    radial-gradient(circle at 92% 30%, rgba(48, 45, 171, 0.06), transparent 30rem),
    var(--offwhite);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 39, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 39, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70%);
}

main {
  overflow: clip;
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo-light), var(--indigo), #43d8a2);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.button,
.icon-button,
.tag,
.search-input,
.newsletter-form input,
.sidebar-newsletter input {
  border-radius: var(--radius-sm);
}

.button {
  box-shadow: 0 8px 24px rgba(0, 0, 39, 0.08);
}

.button:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 39, 0.15);
}

/* Header refinement */
.site-header {
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(90deg, rgba(6,11,61,.985), rgba(10,14,72,.97));
}

.header-inner {
  min-height: 80px;
  transition: min-height .28s var(--ease);
}

.logo {
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  right: -1.6rem;
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.24), transparent);
}

.logo-mark {
  width: 22px;
  height: 32px;
  filter: drop-shadow(0 6px 12px rgba(139, 138, 240, .26));
}

.logo-word {
  font-size: 1.72rem;
}

.main-nav {
  margin-left: clamp(3rem, 6vw, 7rem);
  gap: clamp(.9rem, 1.8vw, 1.8rem);
}

.main-nav a {
  min-height: 80px;
  position: relative;
}

.main-nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--indigo-light);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity .22s, transform .22s var(--ease);
}

.main-nav a:hover::before,
.main-nav a[aria-current="page"]::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-header.is-stuck .header-inner {
  min-height: 68px;
}

.site-header.is-stuck .main-nav a {
  min-height: 68px;
}

.site-header.is-stuck {
  box-shadow: 0 18px 50px rgba(0,0,39,.36);
}

.market-strip {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.market-strip__label {
  box-shadow: 14px 0 30px rgba(48,45,171,.22);
}

.search-dialog {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.25);
}

/* Hero */
.home-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18rem;
  left: 42%;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,138,240,.15), transparent 68%);
  filter: blur(5px);
}

.lead-story {
  position: relative;
}

.lead-story h1 {
  max-width: 13ch;
  text-wrap: balance;
}

.lead-story .story-media {
  box-shadow: var(--shadow-soft);
}

.top-stories {
  border: 1px solid var(--gray-100);
  border-left: 3px solid var(--indigo);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.3rem;
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 42px rgba(0,0,39,.055);
  backdrop-filter: blur(10px);
}

.briefing-grid {
  overflow: hidden;
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.75);
  box-shadow: 0 14px 40px rgba(0,0,39,.045);
}

.brief-item {
  transition: background .22s, transform .22s var(--ease);
}

.brief-item:hover {
  background: var(--violet-wash);
  transform: translateY(-2px);
}

/* Premium live market card */
.market-sidebar {
  top: 92px;
}

.market-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139,138,240,.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, #060b3d, #11166a);
  box-shadow: var(--shadow-lift);
}

.market-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -60px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,138,240,.38), transparent 68%);
  pointer-events: none;
}

.market-card__head {
  position: relative;
  z-index: 2;
  padding: 1.3rem 1.35rem 1.05rem;
  background:
    linear-gradient(110deg, rgba(255,255,255,.055), transparent);
}

.market-card__label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.market-card__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(51,199,137,.12);
  animation: marketPulse 2s ease-out infinite;
}

@keyframes marketPulse {
  70%, 100% {
    box-shadow: 0 0 0 11px rgba(51,199,137,0);
  }
}

.market-card h2 {
  font-size: 1.6rem;
  letter-spacing: -.035em;
}

.market-card__widget {
  position: relative;
  height: 560px;
  min-height: 560px;
  background: var(--white);
}

.market-card__widget::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(0,0,39,.08);
}

.market-card__widget .tradingview-widget-container,
.market-card__widget .tradingview-widget-container__widget,
.market-card__widget iframe {
  width: 100% !important;
  height: 100% !important;
}

.market-card__note {
  position: relative;
  z-index: 2;
  padding: .85rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.widget-fallback--error {
  min-height: 100%;
  color: var(--red) !important;
  background: #fff6f7;
  line-height: 1.45;
}

/* Editorial cards */
.story-media {
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.story-media::after {
  padding: .28rem .5rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(0,0,39,.22);
  backdrop-filter: blur(8px);
}

.story-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 32px rgba(0,0,39,.04);
}

.story-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(139,138,240,.15), transparent 38%);
  transition: opacity .3s;
}

.story-card:hover::before {
  opacity: 1;
}

.story-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lift);
}

.story-card__body {
  position: relative;
  z-index: 4;
  padding: 1.15rem 1.15rem 1.35rem;
}

.section-head {
  padding-top: 1rem;
}

.section-head h2 {
  text-wrap: balance;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: transform .2s var(--ease), color .2s;
}

.section-link:hover {
  color: #514dde;
  transform: translateX(4px);
}

.category-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(139,138,240,.20), transparent 24rem),
    linear-gradient(135deg, var(--navy), #090d4a);
}

.category-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background-image: linear-gradient(120deg, transparent 0 48%, rgba(255,255,255,.035) 48% 49%, transparent 49% 100%);
  background-size: 36px 36px;
}

.category-band > .wrap {
  position: relative;
}

.live-news-panel,
.funding-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.live-news-widget {
  height: 540px;
  min-height: 540px;
}

.live-news-widget .tradingview-widget-container,
.live-news-widget .tradingview-widget-container__widget,
.live-news-widget iframe {
  width: 100% !important;
  height: 100% !important;
}

.funding-list li {
  transition: background .2s, padding-left .2s var(--ease);
}

.funding-list li:hover {
  padding-left: 1.35rem;
  background: var(--violet-wash);
}

.newsletter {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 0%, rgba(139,138,240,.32), transparent 24rem),
    linear-gradient(120deg, var(--ink), var(--navy-2));
}

.newsletter::after {
  content: "T";
  position: absolute;
  right: 3vw;
  bottom: -9rem;
  color: rgba(255,255,255,.035);
  font-family: var(--font-head);
  font-size: clamp(18rem, 34vw, 34rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  z-index: 2;
}

/* Category and article pages */
.category-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(139,138,240,.34), transparent 26rem),
    linear-gradient(120deg, var(--navy), #15126e);
}

.category-hero::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(255,255,255,.025),
    0 0 0 8rem rgba(255,255,255,.018);
}

.category-hero__inner {
  position: relative;
  z-index: 2;
}

.category-topics .tag {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
  transition: background .2s, color .2s, transform .2s var(--ease);
}

.category-topics .tag:hover {
  color: var(--white);
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

.category-feature {
  border-bottom-width: 3px;
}

.article-list article {
  border-radius: var(--radius-md);
  transition: background .22s, padding .22s var(--ease), box-shadow .22s;
}

.article-list article:hover {
  padding-inline: 1rem;
  background: rgba(255,255,255,.8);
  box-shadow: 0 12px 38px rgba(0,0,39,.055);
}

.sidebar-newsletter,
.author-box,
.inline-data {
  border-radius: var(--radius-md);
}

.article-header {
  position: relative;
}

.article-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -14rem;
  right: 8%;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,138,240,.12), transparent 70%);
}

.article-body p:first-of-type::first-letter {
  float: left;
  margin: .08em .11em 0 0;
  color: var(--indigo);
  font-family: var(--font-head);
  font-size: 4.5em;
  font-weight: 700;
  line-height: .76;
}

/* Scroll cue */
.scroll-cue {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .8rem;
  margin: 2rem auto 0;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s, transform .2s var(--ease);
}

.scroll-cue:hover {
  color: var(--indigo);
  transform: translateY(3px);
}

.scroll-cue__mouse {
  position: relative;
  display: block;
  width: 25px;
  height: 39px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
}

.scroll-cue__mouse span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: var(--indigo);
  transform: translateX(-50%);
  animation: scrollCue 1.9s ease-in-out infinite;
}

@keyframes scrollCue {
  0% {
    opacity: 0;
    transform: translate(-50%, -2px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 13px);
  }
}

/* Professional scroll reveal */
.reveal-ready .reveal {
  opacity: 0;
  filter: blur(4px);
  transition:
    opacity .78s var(--ease) var(--reveal-delay, 0ms),
    transform .86s var(--ease) var(--reveal-delay, 0ms),
    filter .7s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-ready .reveal--up {
  transform: translate3d(0, 42px, 0);
}

.reveal-ready .reveal--left {
  transform: translate3d(-48px, 18px, 0);
}

.reveal-ready .reveal--right {
  transform: translate3d(48px, 18px, 0);
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

/* Scrollbar */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 11px;
  }

  ::-webkit-scrollbar-track {
    background: #eff0f5;
  }

  ::-webkit-scrollbar-thumb {
    border: 3px solid #eff0f5;
    border-radius: 999px;
    background: linear-gradient(var(--indigo-light), var(--indigo));
  }
}

@media (max-width: 1120px) {
  .main-nav {
    margin-left: clamp(1.5rem, 3vw, 3rem);
  }

  .logo::after {
    right: -.9rem;
  }

  .market-card__widget {
    height: 500px;
    min-height: 500px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    margin-left: 0;
  }

  .main-nav a {
    min-height: auto !important;
  }

  .logo::after {
    display: none;
  }

  .header-inner {
    min-height: 70px;
  }

  .top-stories {
    border-left: 1px solid var(--gray-100);
    border-top: 3px solid var(--indigo);
  }

  .scroll-cue {
    margin-top: 1.4rem;
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 32px 32px;
  }

  .logo-word {
    font-size: 1.5rem;
  }

  .market-card__widget {
    height: 520px;
    min-height: 520px;
  }

  .lead-story h1 {
    max-width: none;
  }

  .scroll-cue__label {
    display: none;
  }

  .article-body p:first-of-type::first-letter {
    font-size: 3.8em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .scroll-cue__mouse span,
  .market-card__label::before {
    animation: none !important;
  }
}

/* ============================================================
   TILTEED — SVG BRAND MARK
   No white panel: the mark is rendered directly on the navy UI.
   ============================================================ */

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: .82rem;
  min-width: max-content;
  isolation: isolate;
}

.logo::after {
  content: "";
  position: absolute;
  right: -1.75rem;
  width: 1px;
  height: 34px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,.28),
    transparent
  );
}

.logo-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 42px;
  flex: 0 0 38px;
  place-items: center;
  filter: drop-shadow(0 8px 15px rgba(112, 105, 255, .28));
  transform: translateZ(0);
}

.tilteed-mark-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tilteed-line {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform .35s var(--ease),
    opacity .35s ease,
    filter .35s ease;
}

.logo:hover .tilteed-line--one {
  transform: translate(1.5px, -1px);
}

.logo:hover .tilteed-line--two {
  transform: translate(3px, 0);
}

.logo:hover .tilteed-line--three {
  transform: translate(4.5px, 1px);
}

.logo-word {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.82rem;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
  text-shadow: 0 6px 22px rgba(0,0,39,.24);
}

.logo--footer {
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.logo--footer::after {
  display: none;
}

.logo--footer .logo-mark {
  width: 46px;
  height: 50px;
  flex-basis: 46px;
}

.logo--footer .logo-word {
  font-size: 2.15rem;
}

.footer-brand p {
  margin-top: 0;
}

.site-header.is-stuck .logo-mark {
  transform: scale(.94);
  transform-origin: left center;
}

.site-header.is-stuck .logo-word {
  font-size: 1.72rem;
}

@media (max-width: 1120px) {
  .logo-mark {
    width: 35px;
    height: 39px;
    flex-basis: 35px;
  }

  .logo-word {
    font-size: 1.68rem;
  }
}

@media (max-width: 900px) {
  .logo::after {
    right: -1.25rem;
  }

  .logo-mark {
    width: 33px;
    height: 37px;
    flex-basis: 33px;
  }

  .logo-word {
    font-size: 1.58rem;
  }

  .site-header.is-stuck .logo-mark {
    transform: none;
  }
}

@media (max-width: 640px) {
  .logo {
    gap: .62rem;
  }

  .logo::after {
    display: none;
  }

  .logo-mark {
    width: 30px;
    height: 34px;
    flex-basis: 30px;
  }

  .logo-word,
  .site-header.is-stuck .logo-word {
    font-size: 1.42rem;
  }

  .logo--footer .logo-mark {
    width: 40px;
    height: 44px;
    flex-basis: 40px;
  }

  .logo--footer .logo-word {
    font-size: 1.9rem;
  }
}

@media (max-width: 390px) {
  .logo-mark {
    width: 27px;
    height: 31px;
    flex-basis: 27px;
  }

  .logo-word,
  .site-header.is-stuck .logo-word {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tilteed-line,
  .site-header.is-stuck .logo-mark {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================
   WORDPRESS CONTENT AND EMPTY STATES
   ============================================================ */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: .8rem 1rem;
  clip: auto;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.main-nav ul,
.main-nav li {
  display: contents;
  list-style: none;
}

.story-media img,
.story-media .wp-post-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

a:hover .story-media img,
a:hover .story-media .wp-post-image {
  transform: scale(1.045);
}

.story-media.has-image::after {
  background: rgba(0, 0, 39, .54);
  color: rgba(255, 255, 255, .9);
}

.empty-state {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 255, 255, .68);
}

.empty-state--hero {
  display: grid;
  min-height: 360px;
  align-content: center;
  background:
    radial-gradient(circle at 80% 10%, rgba(139, 138, 240, .23), transparent 32%),
    var(--white);
}

.empty-state--dark {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .68);
}

.empty-state h1,
.empty-state h2,
.empty-state h3 {
  margin: .6rem 0;
}

.empty-state--dark h2,
.empty-state--dark h3 {
  color: var(--white);
}

.empty-state p {
  max-width: 58ch;
  color: var(--gray-500);
}

.empty-state--dark p {
  color: rgba(255, 255, 255, .62);
}

.pipeline-list li {
  grid-template-columns: 1.2fr .8fr auto;
  align-items: center;
}

.pipeline-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--green) !important;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-align: right;
}

.pipeline-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 2rem;
}

.pagination .page-numbers {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  padding: .5rem;
  place-items: center;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
}

.pagination .current,
.pagination a:hover {
  border-color: var(--indigo);
  background: var(--indigo);
  color: var(--white);
}

.article-body > .wp-block-image,
.article-body > figure,
.article-body > .wp-block-embed,
.article-body > .wp-block-gallery {
  max-width: 100%;
}

.article-body img {
  height: auto;
  border-radius: var(--radius-md, 12px);
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body a {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

.article-body .wp-block-table {
  overflow-x: auto;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: .9rem;
}

.article-body th,
.article-body td {
  padding: .75rem;
  border: 1px solid var(--gray-300);
  text-align: left;
}

.article-body figcaption {
  margin-top: .55rem;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: .7rem;
}

.search-page {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.search-page__header {
  margin-bottom: 2rem;
}

.search-page__header h1 {
  margin-top: .55rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.search-dialog form {
  display: flex;
  gap: .6rem;
}

.search-dialog .search-input {
  flex: 1;
  min-width: 0;
}

.search-dialog .button {
  flex: none;
}

.newsletter-note {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .68rem;
}

.wp-caption,
.alignnone,
.aligncenter,
.alignwide,
.alignfull {
  max-width: 100%;
}

.aligncenter {
  margin-inline: auto;
}

@media (max-width: 640px) {
  .pipeline-list li {
    grid-template-columns: 1fr auto;
  }

  .pipeline-list li span:nth-child(2) {
    display: none;
  }

  .search-dialog form {
    display: grid;
  }
}
