:root {
    --tdmi-bg: #07111f;
    --tdmi-bg-deep: #040a12;
    --tdmi-surface: #0c192a;
    --tdmi-surface-2: #10223a;
    --tdmi-border: rgba(154, 178, 215, .16);
    --tdmi-border-strong: rgba(126, 101, 255, .32);
    --tdmi-text: #f4f7fb;
    --tdmi-muted: #9fb0c7;
    --tdmi-muted-2: #71849d;
    --tdmi-accent: #7c66ff;
    --tdmi-accent-2: #4d9cff;
    --tdmi-green: #38d996;
    --tdmi-orange: #ffad5b;
    --tdmi-radius: 18px;
    --tdmi-shadow: 0 24px 80px rgba(0,0,0,.28);
}

body.tdmi-public {
    background: var(--tdmi-bg-deep);
    color: var(--tdmi-text);
}

.tdmi-public .wp-site-blocks { min-height: auto; }
.tdmi-main { background: linear-gradient(180deg, #07111f 0%, #06101c 55%, #040a12 100%); color: var(--tdmi-text); min-height: 70vh; }
.tdmi-shell { width: min(100% - 32px, 1180px); margin-inline: auto; }
.tdmi-shell--wide { width: min(100% - 40px, 1180px); }
.tdmi-shell--media { width: min(100% - 40px, 1040px); }
.tdmi-shell--article { width: min(100% - 40px, 820px); }

.tdmi-fallback-site-header, .tdmi-fallback-site-footer { background:#0a1422; border-bottom:1px solid var(--tdmi-border); padding:18px 0; }
.tdmi-fallback-site-footer { border-top:1px solid var(--tdmi-border); border-bottom:0; }
.tdmi-fallback-site-header a { color:#fff; font-weight:800; text-decoration:none; }

/* Archive */
.tdmi-archive-hero { position:relative; overflow:hidden; padding:92px 0 54px; border-bottom:1px solid var(--tdmi-border); }
.tdmi-archive-hero::before { content:""; position:absolute; inset:-30% 40% auto -10%; height:420px; background:radial-gradient(circle, rgba(124,102,255,.24), transparent 66%); pointer-events:none; }
.tdmi-archive-hero::after { content:""; position:absolute; inset:auto -5% -45% 55%; height:360px; background:radial-gradient(circle, rgba(77,156,255,.13), transparent 65%); pointer-events:none; }
.tdmi-archive-hero .tdmi-shell { position:relative; z-index:1; }
.tdmi-archive-hero__eyebrow, .tdmi-article-hero__eyebrow, .tdmi-featured__label, .tdmi-section-heading > div > span { color:#a8b7ff; font-size:12px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.tdmi-archive-hero h1 { margin:10px 0 12px; max-width:850px; font-size:clamp(48px,7vw,86px); line-height:.96; letter-spacing:-.045em; }
.tdmi-archive-hero p { max-width:700px; margin:0; color:var(--tdmi-muted); font-size:clamp(17px,2vw,21px); line-height:1.65; }
.tdmi-archive-hero__signal { display:inline-flex; align-items:center; gap:8px; margin-top:28px; color:#9fb0c7; font-size:11px; letter-spacing:.12em; font-weight:800; }
.tdmi-archive-hero__signal span { width:8px; height:8px; border-radius:50%; background:var(--tdmi-green); box-shadow:0 0 0 6px rgba(56,217,150,.08); }

.tdmi-filter-bar { position:sticky; top:0; z-index:8; border-bottom:1px solid var(--tdmi-border); background:rgba(5,13,23,.92); backdrop-filter:blur(16px); }
.admin-bar .tdmi-filter-bar { top:32px; }
.tdmi-filter-bar__inner { display:flex; gap:8px; overflow-x:auto; padding:14px 0; scrollbar-width:none; }
.tdmi-filter-bar__inner::-webkit-scrollbar { display:none; }
.tdmi-filter-chip, .tdmi-pill { display:inline-flex; align-items:center; white-space:nowrap; border:1px solid var(--tdmi-border); color:#b9c6d8; text-decoration:none; border-radius:999px; font-size:12px; font-weight:700; }
.tdmi-filter-chip { padding:9px 14px; }
.tdmi-filter-chip:hover, .tdmi-filter-chip.is-active { color:#fff; border-color:var(--tdmi-border-strong); background:rgba(124,102,255,.14); }
.tdmi-feed { padding:42px 0 88px; }

.tdmi-featured { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr); overflow:hidden; border:1px solid var(--tdmi-border); border-radius:24px; background:linear-gradient(145deg, rgba(14,29,48,.96), rgba(8,19,33,.97)); box-shadow:var(--tdmi-shadow); }
.tdmi-featured__visual-link { min-height:100%; }
.tdmi-featured__content { display:flex; flex-direction:column; justify-content:center; padding:46px; }
.tdmi-featured .tdmi-pills { margin:18px 0 16px; }
.tdmi-featured h2 { margin:0; font-size:clamp(30px,3.6vw,49px); line-height:1.04; letter-spacing:-.035em; }
.tdmi-featured h2 a { color:#fff; text-decoration:none; }
.tdmi-featured p { margin:20px 0 0; color:var(--tdmi-muted); font-size:17px; line-height:1.65; }
.tdmi-featured__meta { display:flex; gap:8px; flex-wrap:wrap; margin:22px 0; color:var(--tdmi-muted-2); font-size:12px; font-weight:700; letter-spacing:.08em; }
.tdmi-button { display:inline-flex; width:max-content; align-items:center; gap:10px; padding:12px 17px; border:1px solid var(--tdmi-border-strong); border-radius:11px; background:rgba(124,102,255,.14); color:#fff; text-decoration:none; font-size:13px; font-weight:800; }
.tdmi-button:hover { background:rgba(124,102,255,.22); }

.tdmi-latest { margin-top:58px; }
.tdmi-section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.tdmi-section-heading h2 { margin:4px 0 0; font-size:clamp(30px,4vw,46px); letter-spacing:-.035em; }
.tdmi-section-heading p { max-width:470px; margin:0; color:var(--tdmi-muted); line-height:1.55; }
.tdmi-section-heading > a { color:#a8b7ff; text-decoration:none; font-weight:700; }

.tdmi-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.tdmi-card { overflow:hidden; border:1px solid var(--tdmi-border); border-radius:var(--tdmi-radius); background:linear-gradient(180deg, rgba(13,27,45,.96), rgba(8,20,34,.98)); transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tdmi-card:hover { transform:translateY(-4px); border-color:rgba(124,102,255,.4); box-shadow:0 18px 55px rgba(0,0,0,.24); }
.tdmi-card__visual-link { display:block; text-decoration:none; }
.tdmi-card__body { padding:20px 20px 18px; }
.tdmi-pills { display:flex; flex-wrap:wrap; gap:7px; }
.tdmi-pill { padding:6px 9px; border-color:rgba(124,102,255,.25); background:rgba(124,102,255,.08); color:#b8c0ff; font-size:10px; letter-spacing:.04em; text-transform:uppercase; }
.tdmi-card__title { margin:14px 0 10px; font-size:22px; line-height:1.13; letter-spacing:-.025em; }
.tdmi-card__title a { color:#fff; text-decoration:none; }
.tdmi-card__excerpt { margin:0; color:var(--tdmi-muted); font-size:14px; line-height:1.6; }
.tdmi-card__meta { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-top:18px; color:var(--tdmi-muted-2); font-size:11px; font-weight:700; }
.tdmi-card__meta a { margin-left:auto; color:#a8b7ff; text-decoration:none; }

/* Visuals */
.tdmi-visual { position:relative; overflow:hidden; background:linear-gradient(135deg,#111d32,#0b1424); isolation:isolate; }
.tdmi-visual--image img { width:100%; height:100%; object-fit:cover; display:block; }
.tdmi-visual--card { aspect-ratio:16/9; }
.tdmi-visual--featured { min-height:100%; aspect-ratio:16/10; }
.tdmi-visual--hero { aspect-ratio:16/8.7; border-radius:24px; border:1px solid var(--tdmi-border); box-shadow:var(--tdmi-shadow); }
.tdmi-visual--placeholder::before { content:""; position:absolute; inset:-20%; z-index:-2; background:radial-gradient(circle at 22% 25%, rgba(124,102,255,.36), transparent 33%), radial-gradient(circle at 85% 72%, rgba(77,156,255,.24), transparent 30%), linear-gradient(135deg,#0b1423,#08111e 55%,#0d1a2c); }
.tdmi-visual--placeholder::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg, transparent 49.7%, rgba(255,255,255,.035) 50%, transparent 50.3%), linear-gradient(transparent 49.7%, rgba(255,255,255,.035) 50%, transparent 50.3%); background-size:42px 42px; mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent); }
.tdmi-visual__content { position:absolute; inset:auto 24px 22px; display:flex; flex-direction:column; gap:5px; }
.tdmi-visual__brand { color:#a8b7ff; font-size:9px; font-weight:900; letter-spacing:.16em; }
.tdmi-visual__content strong { color:#fff; font-size:clamp(18px,2.2vw,30px); letter-spacing:-.02em; }
.tdmi-visual__content > span:last-child { color:#8fa2ba; font-size:10px; letter-spacing:.1em; }
.tdmi-visual__chart { position:absolute; right:7%; top:18%; width:44%; height:45%; display:flex; align-items:flex-end; gap:4%; opacity:.9; transform:skewY(-8deg); }
.tdmi-visual__chart span { display:block; width:16%; border-radius:4px 4px 0 0; background:linear-gradient(to top, rgba(77,156,255,.05), rgba(124,102,255,.58)); border-top:1px solid rgba(255,255,255,.28); }
.tdmi-visual__chart span:nth-child(1){height:24%}.tdmi-visual__chart span:nth-child(2){height:48%}.tdmi-visual__chart span:nth-child(3){height:36%}.tdmi-visual__chart span:nth-child(4){height:73%}.tdmi-visual__chart span:nth-child(5){height:88%}

/* Single */
.tdmi-article-hero { padding-top:78px; padding-bottom:32px; }
.tdmi-article-hero__eyebrow { margin-bottom:14px; }
.tdmi-article-hero .tdmi-pills { margin-bottom:18px; }
.tdmi-article-hero h1 { max-width:980px; margin:0; font-size:clamp(44px,6vw,78px); line-height:1.01; letter-spacing:-.048em; text-wrap:balance; }
.tdmi-article-hero__lead { max-width:820px; margin:24px 0 0; color:#c0cbd9; font-size:clamp(18px,2.1vw,22px); line-height:1.6; }
.tdmi-article-hero__meta { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:25px; color:var(--tdmi-muted); font-size:12px; }
.tdmi-author-mark { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:8px; background:linear-gradient(135deg,var(--tdmi-accent),var(--tdmi-accent-2)); color:white; font-size:10px; font-weight:900; }
.tdmi-article-media { padding:16px 0 50px; }
.tdmi-article-body { padding-bottom:40px; }
.tdmi-article__content { font-size:18px; line-height:1.78; color:#d6deea; }
.tdmi-article__content > p { margin:0 0 22px; }
.tdmi-section { margin:0 0 34px; }
.tdmi-section > h2 { margin:0 0 18px; color:#fff; font-size:clamp(28px,4vw,40px); line-height:1.12; letter-spacing:-.035em; }
.tdmi-section p { margin:0 0 20px; }
.tdmi-section a { color:#a8b7ff; text-underline-offset:3px; }
.tdmi-section ul, .tdmi-section ol { padding-left:1.2em; }
.tdmi-section li { margin-bottom:10px; }

.tdmi-section--summary { padding:28px 30px; border:1px solid var(--tdmi-border); border-radius:20px; background:linear-gradient(145deg,rgba(17,35,57,.95),rgba(11,24,40,.95)); }
.tdmi-section--summary > h2 { font-size:13px; letter-spacing:.15em; text-transform:uppercase; color:#a8b7ff; }
.tdmi-section--summary p:first-of-type { font-size:21px; line-height:1.55; color:#f2f6fb; }

.tdmi-section--key-facts { padding:28px; border:1px solid rgba(124,102,255,.26); border-radius:20px; background:linear-gradient(145deg,rgba(124,102,255,.09),rgba(77,156,255,.05)); }
.tdmi-section--key-facts > h2 { font-size:13px; letter-spacing:.15em; text-transform:uppercase; color:#b9c0ff; }
.tdmi-section--key-facts ul { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; padding:0; }
.tdmi-section--key-facts li { margin:0; padding:16px; border:1px solid var(--tdmi-border); border-radius:13px; background:rgba(5,13,23,.35); color:#eef3f9; }

.tdmi-section--why-matters, .tdmi-section--context, .tdmi-section--watch { padding-left:22px; border-left:2px solid rgba(124,102,255,.45); }

.tdmi-section--reaction { width:min(100%, 980px); margin-left:50%; transform:translateX(-50%); }
.tdmi-section--reaction > h2 { padding-left:0; }
.tdmi-table-wrap { overflow-x:auto; margin:18px 0 16px; border:1px solid var(--tdmi-border); border-radius:16px; background:rgba(7,17,31,.6); }
.tdmi-table-wrap table { width:100%; min-width:620px; border-collapse:collapse; margin:0; color:#e8eef7; font-size:14px; }
.tdmi-table-wrap th, .tdmi-table-wrap td { padding:14px 16px; border-bottom:1px solid rgba(154,178,215,.11); text-align:right; }
.tdmi-table-wrap th:first-child, .tdmi-table-wrap td:first-child { text-align:left; font-weight:800; }
.tdmi-table-wrap thead th { background:rgba(124,102,255,.08); color:#aebcff; font-size:11px; letter-spacing:.08em; text-transform:uppercase; }

.tdmi-asset-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:18px; }
.tdmi-asset-card { min-width:0; padding:20px; border:1px solid var(--tdmi-border); border-radius:16px; background:linear-gradient(180deg,rgba(15,31,51,.95),rgba(9,22,37,.95)); }
.tdmi-asset-card h3 { margin:0 0 11px; color:#fff; font-size:15px; letter-spacing:.08em; text-transform:uppercase; }
.tdmi-asset-card p { margin:0; color:var(--tdmi-muted); font-size:14px; line-height:1.62; }

.tdmi-section--sources ul { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.tdmi-section--sources li { margin:0; padding:15px 17px; border:1px solid var(--tdmi-border); border-radius:13px; background:rgba(12,25,42,.6); }
.tdmi-section--sources li:first-child { border-color:rgba(56,217,150,.28); }
.tdmi-section--sources li:first-child::before { content:"FUENTE PRIMARIA"; display:block; margin-bottom:4px; color:var(--tdmi-green); font-size:9px; font-weight:900; letter-spacing:.12em; }

.tdmi-article-footer { padding-bottom:72px; }
.tdmi-editorial-signature { display:flex; gap:16px; align-items:flex-start; padding:22px; border-top:1px solid var(--tdmi-border); border-bottom:1px solid var(--tdmi-border); }
.tdmi-editorial-signature__mark { display:grid; place-items:center; flex:0 0 42px; height:42px; border-radius:12px; background:linear-gradient(135deg,var(--tdmi-accent),var(--tdmi-accent-2)); font-weight:900; }
.tdmi-editorial-signature strong { color:#fff; }
.tdmi-editorial-signature p { margin:4px 0 0; color:var(--tdmi-muted); font-size:13px; line-height:1.5; }
.tdmi-related { padding:54px 0 88px; border-top:1px solid var(--tdmi-border); }

.tdmi-pagination { margin-top:36px; }
.tdmi-pagination ul { list-style:none; display:flex; gap:8px; justify-content:center; padding:0; }
.tdmi-pagination a, .tdmi-pagination span { display:grid; place-items:center; min-width:40px; height:40px; padding:0 12px; border:1px solid var(--tdmi-border); border-radius:10px; color:#c1ccdc; text-decoration:none; }
.tdmi-pagination .current { background:rgba(124,102,255,.16); border-color:var(--tdmi-border-strong); color:#fff; }

.tdmi-empty-state { max-width:720px; margin:60px auto; padding:50px; border:1px solid var(--tdmi-border); border-radius:24px; text-align:center; background:var(--tdmi-surface); }
.tdmi-empty-state > span { color:#a8b7ff; font-size:11px; font-weight:900; letter-spacing:.15em; }
.tdmi-empty-state h2 { font-size:36px; margin:12px 0; }
.tdmi-empty-state p { color:var(--tdmi-muted); }
.tdmi-empty-state .tdmi-button { margin:14px auto 0; }

@media (max-width: 960px) {
    .tdmi-featured { grid-template-columns:1fr; }
    .tdmi-featured__visual-link { min-height:0; }
    .tdmi-featured__content { padding:30px; }
    .tdmi-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .tdmi-asset-grid { grid-template-columns:1fr; }
    .tdmi-section--reaction { width:100%; margin-left:0; transform:none; }
}

@media (max-width: 782px) {
    .admin-bar .tdmi-filter-bar { top:46px; }
}

@media (max-width: 640px) {
    .tdmi-shell, .tdmi-shell--wide, .tdmi-shell--media, .tdmi-shell--article { width:min(100% - 28px, 1180px); }
    .tdmi-archive-hero { padding:62px 0 38px; }
    .tdmi-archive-hero h1 { font-size:48px; }
    .tdmi-featured__content { padding:24px 20px 26px; }
    .tdmi-featured h2 { font-size:32px; }
    .tdmi-card-grid { grid-template-columns:1fr; }
    .tdmi-section-heading { align-items:flex-start; flex-direction:column; }
    .tdmi-section-heading p { max-width:none; }
    .tdmi-article-hero { padding-top:52px; }
    .tdmi-article-hero h1 { font-size:42px; }
    .tdmi-article-hero__lead { font-size:18px; }
    .tdmi-article-media { padding-bottom:34px; }
    .tdmi-visual--hero { border-radius:16px; aspect-ratio:16/10; }
    .tdmi-article__content { font-size:17px; line-height:1.72; }
    .tdmi-section--summary, .tdmi-section--key-facts { padding:21px; }
    .tdmi-section--key-facts ul { grid-template-columns:1fr; }
    .tdmi-filter-bar__inner { padding-left:0; }
}

/* 0.2.1 — Legion integration, visual harmony and News SEO polish */
.tdmi-site-header {
    position:relative;
    z-index:30;
    background:#050d17;
    border-bottom:1px solid var(--tdmi-border);
}
.tdmi-site-header__inner {
    min-height:76px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:28px;
}
.tdmi-site-brand {
    display:inline-flex;
    align-items:center;
    gap:11px;
    color:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:850;
    letter-spacing:.05em;
    white-space:nowrap;
}
.tdmi-site-brand__mark {
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border:1px solid rgba(124,102,255,.4);
    border-radius:10px;
    background:linear-gradient(145deg,rgba(124,102,255,.22),rgba(77,156,255,.08));
    color:#c9ceff;
    font-size:14px;
    font-weight:900;
}
.tdmi-site-nav { justify-self:center; min-width:0; }
.tdmi-site-nav__menu {
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:4px 6px;
    margin:0;
    padding:0;
}
.tdmi-site-nav__menu li { margin:0; padding:0; }
.tdmi-site-nav__menu a {
    display:inline-flex;
    padding:9px 11px;
    border-radius:9px;
    color:#aab8ca;
    text-decoration:none;
    font-size:13px;
    font-weight:650;
}
.tdmi-site-nav__menu a:hover,
.tdmi-site-nav__menu a.is-active,
.tdmi-site-nav__menu .current-menu-item > a {
    color:#fff;
    background:rgba(124,102,255,.10);
}
.tdmi-site-header__news {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 14px;
    border:1px solid var(--tdmi-border-strong);
    border-radius:10px;
    color:#fff;
    text-decoration:none;
    font-size:12px;
    font-weight:800;
    background:rgba(124,102,255,.12);
}
.admin-bar .tdmi-site-header { margin-top:0; }

.tdmi-archive-hero { padding:68px 0 44px; }
.tdmi-archive-hero h1 { max-width:980px; font-size:clamp(42px,5.3vw,72px); line-height:1.01; }
.tdmi-archive-hero p { max-width:830px; font-size:clamp(16px,1.65vw,19px); }
.tdmi-archive-hero__signal { margin-top:22px; }
.tdmi-feed { padding-top:34px; }

.tdmi-featured {
    grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr);
    min-height:410px;
    border-radius:20px;
    box-shadow:0 20px 62px rgba(0,0,0,.22);
}
.tdmi-featured__content {
    order:1;
    padding:38px 38px 36px;
    border-right:1px solid var(--tdmi-border);
}
.tdmi-featured__visual-link {
    order:2;
    display:block;
    min-height:410px;
}
.tdmi-visual--featured { width:100%; height:100%; min-height:410px; aspect-ratio:auto; }
.tdmi-featured h2 { font-size:clamp(29px,3.1vw,43px); line-height:1.06; }
.tdmi-featured p { font-size:15px; line-height:1.65; }
.tdmi-featured__meta { margin:19px 0 21px; }

.tdmi-latest { margin-top:50px; }
.tdmi-section-heading { align-items:center; }
.tdmi-section-heading h2 { font-size:clamp(29px,3.3vw,42px); }
.tdmi-section-heading p { font-size:14px; }
.tdmi-card-grid {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));
    gap:18px;
    align-items:stretch;
}
.tdmi-card {
    display:flex;
    flex-direction:column;
    height:100%;
    border-radius:16px;
}
.tdmi-card__body { display:flex; flex:1; flex-direction:column; padding:18px; }
.tdmi-card__title { font-size:20px; min-height:2.28em; }
.tdmi-card__excerpt { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; }
.tdmi-card__meta { margin-top:auto; padding-top:16px; }
.tdmi-visual--card { aspect-ratio:16/8.8; }

.tdmi-article-hero { padding-top:58px; padding-bottom:28px; }
.tdmi-article-hero h1 { max-width:1040px; font-size:clamp(40px,5.1vw,68px); }
.tdmi-article-hero__lead { margin-top:20px; }
.tdmi-article-hero__meta { margin-top:22px; }
.tdmi-author-chip { display:inline-flex; align-items:center; gap:8px; color:#dbe3ef; text-decoration:none; }
.tdmi-author-chip:hover { color:#fff; }
.tdmi-article-media { padding-top:10px; padding-bottom:42px; }
.tdmi-visual--hero { aspect-ratio:16/8.4; border-radius:20px; }
.tdmi-article__content { font-size:17px; line-height:1.74; }
.tdmi-section { margin-bottom:30px; }
.tdmi-section > h2 { font-size:clamp(27px,3.2vw,36px); }

.tdmi-site-footer {
    border-top:1px solid var(--tdmi-border);
    background:#040a12;
}
.tdmi-site-footer__inner {
    min-height:170px;
    display:grid;
    grid-template-columns:minmax(230px,1.2fr) minmax(280px,1fr) auto;
    align-items:center;
    gap:36px;
    padding-block:42px;
}
.tdmi-site-footer strong { color:#fff; font-size:18px; }
.tdmi-site-footer p { max-width:390px; margin:8px 0 0; color:var(--tdmi-muted); font-size:13px; line-height:1.55; }
.tdmi-site-footer nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px 20px; }
.tdmi-site-footer nav a { color:#b5c2d4; text-decoration:none; font-size:13px; }
.tdmi-site-footer nav a:hover { color:#fff; }
.tdmi-site-footer__copy { color:var(--tdmi-muted-2); font-size:11px; white-space:nowrap; }

@media (max-width: 960px) {
    .tdmi-site-header__inner { grid-template-columns:auto 1fr; min-height:70px; }
    .tdmi-site-nav { justify-self:end; }
    .tdmi-site-header__news { display:none; }
    .tdmi-featured { grid-template-columns:1fr; min-height:0; }
    .tdmi-featured__content { order:2; border-right:0; border-top:1px solid var(--tdmi-border); }
    .tdmi-featured__visual-link { order:1; min-height:0; }
    .tdmi-visual--featured { min-height:0; aspect-ratio:16/8.7; }
    .tdmi-site-footer__inner { grid-template-columns:1fr 1fr; }
    .tdmi-site-footer__copy { grid-column:1/-1; }
}

@media (max-width: 720px) {
    .tdmi-site-header__inner { display:flex; min-height:64px; justify-content:space-between; }
    .tdmi-site-nav { max-width:58vw; overflow-x:auto; scrollbar-width:none; }
    .tdmi-site-nav::-webkit-scrollbar { display:none; }
    .tdmi-site-nav__menu { flex-wrap:nowrap; justify-content:flex-start; }
    .tdmi-site-nav__menu a { white-space:nowrap; font-size:12px; padding:8px 9px; }
    .tdmi-site-brand > span:last-child { display:none; }
    .tdmi-archive-hero { padding:48px 0 34px; }
    .tdmi-archive-hero h1 { font-size:43px; }
    .tdmi-featured__content { padding:24px 20px 26px; }
    .tdmi-card__title { min-height:0; }
    .tdmi-site-footer__inner { grid-template-columns:1fr; gap:26px; }
    .tdmi-site-footer nav { grid-template-columns:1fr 1fr; }
    .tdmi-site-footer__copy { grid-column:auto; }
}

/* 0.2.2 — Legion Academy visual alignment */
:root {
    --tdmi-legion-ink:#10162f;
    --tdmi-legion-muted:#5e667c;
    --tdmi-legion-line:#e7e9f2;
    --tdmi-legion-purple:#635bff;
    --tdmi-legion-blue:#2da8ff;
}

body.tdmi-public { background:#06101c; }
.tdmi-main {
    background:#07111f;
}

/* Header — mirrors Legion Academy's public navigation */
.tdmi-site-header {
    position:sticky;
    top:0;
    z-index:60;
    background:rgba(255,255,255,.97);
    border-bottom:1px solid var(--tdmi-legion-line);
    box-shadow:0 8px 28px rgba(28,35,64,.045);
    backdrop-filter:blur(18px) saturate(150%);
    -webkit-backdrop-filter:blur(18px) saturate(150%);
}
.admin-bar .tdmi-site-header { top:32px; }
.tdmi-site-header__inner {
    min-height:82px;
    display:grid;
    grid-template-columns:230px minmax(0,1fr) 230px;
    align-items:center;
    gap:24px;
}
.tdmi-site-brand {
    display:inline-flex;
    align-items:center;
    gap:10px;
    width:max-content;
    color:var(--tdmi-legion-ink);
    text-decoration:none;
}
.tdmi-site-brand__logo {
    display:block;
    width:48px;
    height:48px;
    object-fit:contain;
    flex:0 0 48px;
}
.tdmi-site-brand__wordmark {
    display:flex;
    flex-direction:column;
    line-height:1;
    color:var(--tdmi-legion-ink);
}
.tdmi-site-brand__wordmark strong {
    font-size:20px;
    font-weight:850;
    letter-spacing:.24em;
}
.tdmi-site-brand__wordmark small {
    margin-top:6px;
    font-size:8px;
    font-weight:800;
    letter-spacing:.42em;
    color:#737b92;
}
.tdmi-site-nav { justify-self:center; min-width:0; }
.tdmi-site-nav__menu {
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin:0;
    padding:0;
}
.tdmi-site-nav__menu li { margin:0; padding:0; }
.tdmi-site-nav__menu a {
    position:relative;
    display:flex;
    align-items:center;
    min-height:42px;
    padding:0 8px;
    border-radius:0;
    background:transparent !important;
    color:#60687d;
    text-decoration:none;
    font-size:13px;
    font-weight:650;
    white-space:nowrap;
    transition:color .18s ease;
}
.tdmi-site-nav__menu a::after {
    content:"";
    position:absolute;
    left:8px;
    right:8px;
    bottom:-20px;
    height:2px;
    border-radius:2px;
    background:linear-gradient(90deg,var(--tdmi-legion-purple),var(--tdmi-legion-blue));
    transform:scaleX(0);
    transform-origin:center;
    transition:transform .18s ease;
}
.tdmi-site-nav__menu a:hover,
.tdmi-site-nav__menu a.is-active,
.tdmi-site-nav__menu .current-menu-item > a { color:var(--tdmi-legion-ink); }
.tdmi-site-nav__menu a:hover::after,
.tdmi-site-nav__menu a.is-active::after,
.tdmi-site-nav__menu .current-menu-item > a::after { transform:scaleX(1); }

.tdmi-site-account { justify-self:end; min-width:0; }
.tdmi-account-chip,
.tdmi-account-login {
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:#50586d;
    text-decoration:none;
    font-size:12px;
    font-weight:650;
}
.tdmi-account-chip__avatar {
    display:grid;
    width:38px;
    height:38px;
    place-items:center;
    overflow:hidden;
    border:1px solid #dfe3ef;
    border-radius:999px;
    background:#fff;
    box-shadow:0 4px 14px rgba(62,70,101,.06);
}
.tdmi-account-avatar { display:block; width:100%; height:100%; object-fit:cover; }
.tdmi-account-chip__name {
    max-width:145px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.tdmi-account-login {
    min-height:40px;
    padding:0 16px;
    border:1px solid #dddff1;
    border-radius:12px;
    background:#fff;
    color:var(--tdmi-legion-ink);
}
.tdmi-nav-toggle { display:none; }

/* Archive hero — one continuous gradient system, no hard blocks */
.tdmi-archive-hero {
    position:relative;
    overflow:hidden;
    padding:74px 0 52px;
    border-bottom:1px solid rgba(145,166,196,.14);
    background:
        radial-gradient(circle at 14% 6%, rgba(105,91,255,.18), transparent 36%),
        radial-gradient(circle at 88% 8%, rgba(47,176,255,.11), transparent 33%),
        linear-gradient(180deg,#091524 0%,#07111f 100%);
}
.tdmi-archive-hero::before,
.tdmi-archive-hero::after { display:none; }
.tdmi-archive-hero .tdmi-shell { position:relative; z-index:2; }
.tdmi-archive-hero__eyebrow,
.tdmi-article-hero__eyebrow,
.tdmi-featured__label,
.tdmi-section-heading > div > span {
    color:#aeb9ff;
    font-size:11px;
    font-weight:850;
    letter-spacing:.17em;
}
.tdmi-archive-hero h1 {
    max-width:900px;
    margin:14px 0 14px;
    font-size:clamp(48px,5.7vw,76px);
    line-height:1.02;
    letter-spacing:-.047em;
    text-wrap:balance;
}
.tdmi-archive-hero p {
    max-width:790px;
    color:#aab9ce;
    font-size:clamp(16px,1.55vw,19px);
    line-height:1.62;
}
.tdmi-archive-hero__signal { margin-top:24px; }

/* Filter bar no longer competes with the Legion header */
.tdmi-filter-bar {
    position:relative;
    top:auto;
    z-index:8;
    background:#07111f;
    border-bottom:1px solid rgba(145,166,196,.14);
    backdrop-filter:none;
}
.admin-bar .tdmi-filter-bar { top:auto; }
.tdmi-filter-bar__inner { padding:15px 0; gap:8px; }
.tdmi-filter-chip {
    min-height:36px;
    padding:0 14px;
    border-color:rgba(157,178,208,.18);
    background:rgba(255,255,255,.012);
    color:#acb9cc;
}
.tdmi-filter-chip:hover,
.tdmi-filter-chip.is-active {
    border-color:rgba(125,104,255,.48);
    background:rgba(105,91,255,.14);
    color:#fff;
}

/* Feed rhythm and consistent geometry */
.tdmi-feed { padding:38px 0 84px; }
.tdmi-featured {
    grid-template-columns:minmax(0,1fr) minmax(380px,.92fr);
    min-height:360px;
    border-radius:22px;
    border-color:rgba(150,174,209,.18);
    background:linear-gradient(145deg,rgba(12,27,46,.98),rgba(8,19,33,.99));
    box-shadow:0 24px 70px rgba(0,0,0,.20);
}
.tdmi-featured__content { padding:36px 38px; border-right:1px solid rgba(145,166,196,.12); }
.tdmi-featured__visual-link { min-height:360px; }
.tdmi-visual--featured { min-height:360px; }
.tdmi-featured h2 { font-size:clamp(31px,3.25vw,44px); }
.tdmi-featured p { max-width:660px; font-size:15px; line-height:1.68; }
.tdmi-featured__meta { margin:18px 0 20px; }

.tdmi-latest { margin-top:54px; }
.tdmi-section-heading { margin-bottom:22px; }
.tdmi-section-heading h2 { font-size:clamp(29px,3.4vw,42px); }
.tdmi-card-grid {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));
    gap:20px;
    align-items:stretch;
}
.tdmi-card {
    height:100%;
    display:flex;
    flex-direction:column;
    border-radius:20px;
    border-color:rgba(150,174,209,.17);
    background:linear-gradient(180deg,rgba(12,27,46,.98),rgba(8,20,34,.99));
}
.tdmi-card__visual-link { flex:0 0 auto; }
.tdmi-card__body { display:flex; flex:1; flex-direction:column; padding:20px 20px 18px; }
.tdmi-card__title {
    min-height:3.35em;
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    font-size:21px;
}
.tdmi-card__excerpt {
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:4;
    min-height:6.35em;
}
.tdmi-card__meta { margin-top:auto; padding-top:17px; }
.tdmi-visual--card { aspect-ratio:16/9; }

/* Placeholder visual — soft Legion lightfield + market wave */
.tdmi-visual--placeholder {
    background:
        radial-gradient(circle at 14% 17%,rgba(103,91,255,.25),transparent 34%),
        radial-gradient(circle at 86% 77%,rgba(44,169,255,.19),transparent 34%),
        linear-gradient(145deg,#0b1729 0%,#081321 54%,#0b1b30 100%);
}
.tdmi-visual--placeholder::before,
.tdmi-visual--placeholder::after { display:none; }
.tdmi-visual__grid {
    position:absolute;
    inset:0;
    opacity:.22;
    background-image:
        linear-gradient(rgba(171,192,220,.07) 1px,transparent 1px),
        linear-gradient(90deg,rgba(171,192,220,.07) 1px,transparent 1px);
    background-size:48px 48px;
    mask-image:linear-gradient(180deg,rgba(0,0,0,.75),rgba(0,0,0,.18) 70%,transparent);
    -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.75),rgba(0,0,0,.18) 70%,transparent);
}
.tdmi-visual__wave {
    position:absolute;
    inset:8% 4% 2% 26%;
    width:70%;
    height:82%;
    opacity:.92;
    filter:drop-shadow(0 12px 26px rgba(88,91,255,.12));
}
.tdmi-visual__wave-line {
    stroke:#8f8aff;
    stroke-width:2.1;
    stroke-linecap:round;
}
.tdmi-visual__content { inset:auto 24px 22px; max-width:70%; }
.tdmi-visual__brand { color:#b9c1ff; font-size:8.5px; }
.tdmi-visual__content strong { font-size:clamp(18px,2vw,28px); }

/* Single article uses the same brand rhythm */
.tdmi-article-hero { padding-top:62px; padding-bottom:30px; }
.tdmi-article-hero h1 { max-width:1020px; font-size:clamp(42px,5.3vw,70px); }
.tdmi-article-hero__lead { max-width:850px; }
.tdmi-author-mark {
    width:30px;
    height:30px;
    border-radius:999px;
    background:linear-gradient(135deg,var(--tdmi-legion-purple),var(--tdmi-legion-blue));
}
.tdmi-article-media { padding-top:8px; }
.tdmi-visual--hero { aspect-ratio:16/8.8; border-radius:22px; }
.tdmi-section--summary,
.tdmi-section--key-facts,
.tdmi-table-wrap,
.tdmi-asset-card { border-radius:18px; }

/* Footer integrated with the academy, not the starter theme */
.tdmi-site-footer {
    border-top:1px solid rgba(145,166,196,.14);
    background:#050d17;
}
.tdmi-site-footer__inner {
    min-height:190px;
    grid-template-columns:minmax(270px,1.25fr) minmax(310px,1fr) minmax(210px,.7fr);
    gap:42px;
    padding-block:46px;
}
.tdmi-site-footer__brand p { max-width:430px; }
.tdmi-site-brand--footer .tdmi-site-brand__wordmark { color:#fff; }
.tdmi-site-brand--footer .tdmi-site-brand__wordmark strong { color:#fff; }
.tdmi-site-brand--footer .tdmi-site-brand__wordmark small { color:#8e9cb0; }
.tdmi-site-footer nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 22px; }
.tdmi-site-footer__edition { display:flex; flex-direction:column; align-items:flex-end; gap:5px; text-align:right; }
.tdmi-site-footer__edition span { color:#93a5bd; font-size:10px; font-weight:800; letter-spacing:.16em; }
.tdmi-site-footer__edition strong { color:#eef3fa; font-size:13px; letter-spacing:.08em; }
.tdmi-site-footer__edition small { margin-top:9px; color:#667a94; font-size:10px; }

@media (max-width: 1080px) {
    .tdmi-site-header__inner { grid-template-columns:200px minmax(0,1fr) 180px; gap:12px; }
    .tdmi-site-nav__menu { gap:3px; }
    .tdmi-site-nav__menu a { padding-inline:6px; font-size:12px; }
    .tdmi-account-chip__name { max-width:105px; }
}

@media (max-width: 880px) {
    .tdmi-site-header { position:sticky; }
    .tdmi-site-header__inner {
        position:relative;
        display:grid;
        grid-template-columns:1fr auto auto;
        min-height:72px;
        gap:12px;
    }
    .tdmi-site-brand__logo { width:42px; height:42px; flex-basis:42px; }
    .tdmi-site-brand__wordmark strong { font-size:17px; }
    .tdmi-site-brand__wordmark small { font-size:7px; }
    .tdmi-nav-toggle {
        display:grid;
        width:42px;
        height:42px;
        place-content:center;
        gap:4px;
        border:1px solid #dfe3ed;
        border-radius:12px;
        background:#fff;
        cursor:pointer;
    }
    .tdmi-nav-toggle > span:not(.screen-reader-text) { display:block; width:18px; height:2px; border-radius:2px; background:#343b50; }
    .tdmi-site-nav {
        position:absolute;
        top:calc(100% - 1px);
        left:20px;
        right:20px;
        display:none;
        overflow:hidden;
        padding:10px;
        border:1px solid #e1e4ed;
        border-radius:16px;
        background:rgba(255,255,255,.99);
        box-shadow:0 18px 50px rgba(27,34,61,.14);
    }
    .tdmi-site-header.is-nav-open .tdmi-site-nav { display:block; }
    .tdmi-site-nav__menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; }
    .tdmi-site-nav__menu a { min-height:42px; padding:0 12px; border-radius:10px; }
    .tdmi-site-nav__menu a::after { display:none; }
    .tdmi-site-nav__menu a.is-active { background:#f2f1ff !important; color:#282149; }
    .tdmi-account-chip__name { display:none; }
    .tdmi-featured { grid-template-columns:1fr; min-height:0; }
    .tdmi-featured__content { order:2; border-top:1px solid rgba(145,166,196,.12); border-right:0; }
    .tdmi-featured__visual-link { order:1; min-height:0; }
    .tdmi-visual--featured { min-height:0; aspect-ratio:16/8.8; }
    .tdmi-site-footer__inner { grid-template-columns:1fr 1fr; }
    .tdmi-site-footer__edition { grid-column:1/-1; align-items:flex-start; text-align:left; }
}

@media (max-width: 782px) {
    .admin-bar .tdmi-site-header { top:46px; }
}

@media (max-width: 620px) {
    .tdmi-shell,
    .tdmi-shell--wide,
    .tdmi-shell--media,
    .tdmi-shell--article { width:min(100% - 28px,1180px); }
    .tdmi-site-header__inner { grid-template-columns:1fr auto auto; }
    .tdmi-site-brand__wordmark { display:none; }
    .tdmi-site-nav { left:14px; right:14px; }
    .tdmi-site-nav__menu { grid-template-columns:1fr; }
    .tdmi-archive-hero { padding:50px 0 36px; }
    .tdmi-archive-hero h1 { font-size:clamp(40px,12vw,54px); }
    .tdmi-featured__content { padding:26px 21px 28px; }
    .tdmi-featured h2 { font-size:32px; }
    .tdmi-card__title,
    .tdmi-card__excerpt { min-height:0; }
    .tdmi-site-footer__inner { grid-template-columns:1fr; }
    .tdmi-site-footer nav { grid-template-columns:1fr 1fr; }
    .tdmi-site-footer__edition { grid-column:auto; }
}


/* 0.2.3 — Sticky dark news navigation + responsive article polish */
:root {
    --tdmi-news-header:#07111f;
    --tdmi-news-header-2:#0a1628;
    --tdmi-news-purple:#7367ff;
    --tdmi-news-blue:#34b7ff;
    --tdmi-news-header-border:rgba(147,166,206,.16);
}

/* The news area owns its own dark Legion navigation. */
body.tdmi-public .tdmi-site-header {
    position:-webkit-sticky !important;
    position:sticky !important;
    top:0;
    z-index:1000;
    background:
        radial-gradient(circle at 20% -80%, rgba(115,103,255,.16), transparent 45%),
        linear-gradient(180deg, rgba(8,20,35,.985), rgba(5,14,25,.985));
    border-bottom:1px solid var(--tdmi-news-header-border);
    box-shadow:0 10px 32px rgba(0,0,0,.12);
    backdrop-filter:blur(18px) saturate(135%);
    -webkit-backdrop-filter:blur(18px) saturate(135%);
    transition:box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
body.tdmi-public .tdmi-site-header.is-scrolled {
    background:rgba(5,14,25,.965);
    border-color:rgba(126,107,255,.24);
    box-shadow:0 14px 38px rgba(0,0,0,.28);
}
body.admin-bar.tdmi-public .tdmi-site-header { top:32px; }

body.tdmi-public .tdmi-site-header__inner { min-height:76px; }
body.tdmi-public .tdmi-site-brand { color:#f7f9ff; }
body.tdmi-public .tdmi-site-brand__logo {
    width:44px;
    height:44px;
    flex-basis:44px;
    filter:drop-shadow(0 7px 18px rgba(54,151,255,.10));
}
body.tdmi-public .tdmi-site-brand__wordmark,
body.tdmi-public .tdmi-site-brand__wordmark strong { color:#f8f9ff; }
body.tdmi-public .tdmi-site-brand__wordmark small { color:#8d9cb6; }

body.tdmi-public .tdmi-site-nav__menu a {
    color:#99a8bf;
    min-height:44px;
}
body.tdmi-public .tdmi-site-nav__menu a:hover,
body.tdmi-public .tdmi-site-nav__menu a.is-active,
body.tdmi-public .tdmi-site-nav__menu .current-menu-item > a { color:#fff; }
body.tdmi-public .tdmi-site-nav__menu a::after {
    bottom:-16px;
    height:2px;
    background:linear-gradient(90deg,var(--tdmi-news-purple),var(--tdmi-news-blue));
    box-shadow:0 0 16px rgba(76,157,255,.30);
}

body.tdmi-public .tdmi-account-chip,
body.tdmi-public .tdmi-account-login { color:#c7d0df; }
body.tdmi-public .tdmi-account-chip__avatar {
    border-color:rgba(152,168,197,.23);
    background:linear-gradient(145deg,#0c1a2d,#0a1524);
    box-shadow:none;
}
body.tdmi-public .tdmi-account-login {
    border-color:rgba(126,107,255,.35);
    background:rgba(111,92,255,.10);
    color:#f6f7ff;
}
body.tdmi-public .tdmi-account-login:hover { background:rgba(111,92,255,.18); }

/* Real Legion logo is used as editorial identity, not generated initials. */
.tdmi-brand-eyebrow {
    display:flex;
    align-items:center;
    gap:9px;
}
.tdmi-brand-eyebrow img {
    width:22px;
    height:22px;
    object-fit:contain;
    flex:0 0 22px;
}
.tdmi-author-mark {
    display:grid;
    place-items:center;
    width:32px;
    height:32px;
    padding:4px;
    overflow:hidden;
    border:1px solid rgba(128,112,255,.28);
    border-radius:999px;
    background:linear-gradient(145deg,rgba(111,92,255,.16),rgba(50,172,255,.09));
}
.tdmi-author-mark img { display:block; width:100%; height:100%; object-fit:contain; }
.tdmi-editorial-signature__mark {
    display:grid;
    place-items:center;
    width:52px;
    height:52px;
    padding:8px;
    border:1px solid rgba(127,111,255,.25);
    border-radius:16px;
    background:linear-gradient(145deg,rgba(112,91,255,.14),rgba(47,171,255,.08));
}
.tdmi-editorial-signature__mark img { width:100%; height:100%; object-fit:contain; }
.tdmi-visual__brand {
    display:flex;
    align-items:center;
    gap:7px;
}
.tdmi-visual__brand-logo {
    width:17px;
    height:17px;
    object-fit:contain;
    flex:0 0 17px;
}

/* Article rhythm across desktop/tablet/mobile. */
.tdmi-article-hero { padding-top:54px; }
.tdmi-article-hero h1 {
    max-width:1040px;
    font-size:clamp(42px,5vw,68px);
    line-height:1.015;
    overflow-wrap:anywhere;
}
.tdmi-article-hero__lead { max-width:880px; }
.tdmi-article-hero__meta { row-gap:10px; }
.tdmi-article-media { overflow:hidden; }
.tdmi-article-body img,
.tdmi-article__content img { max-width:100%; height:auto; }
.tdmi-article__content table { width:100%; }
.tdmi-table-wrap { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.tdmi-related { overflow:hidden; }

/* Mobile navigation switches to a dark floating panel. */
@media (max-width: 880px) {
    body.tdmi-public .tdmi-site-header__inner { min-height:66px; }
    body.tdmi-public .tdmi-site-brand__logo { width:38px; height:38px; flex-basis:38px; }
    body.tdmi-public .tdmi-site-brand__wordmark strong { font-size:15px; }
    body.tdmi-public .tdmi-site-brand__wordmark small { color:#7f90aa; }
    body.tdmi-public .tdmi-nav-toggle {
        border-color:rgba(146,163,194,.22);
        background:#0a1728;
        box-shadow:none;
    }
    body.tdmi-public .tdmi-nav-toggle > span:not(.screen-reader-text) { background:#eaf0f8; }
    body.tdmi-public .tdmi-site-nav {
        top:calc(100% + 8px);
        border-color:rgba(135,151,184,.20);
        background:rgba(7,17,31,.985);
        box-shadow:0 20px 50px rgba(0,0,0,.34);
    }
    body.tdmi-public .tdmi-site-nav__menu a {
        color:#aebbd0;
        border:1px solid transparent;
    }
    body.tdmi-public .tdmi-site-nav__menu a:hover { background:rgba(255,255,255,.035) !important; color:#fff; }
    body.tdmi-public .tdmi-site-nav__menu a.is-active {
        border-color:rgba(126,107,255,.35);
        background:linear-gradient(90deg,rgba(112,91,255,.16),rgba(48,170,255,.09)) !important;
        color:#fff;
    }
    body.tdmi-public .tdmi-account-chip__avatar { width:36px; height:36px; }

    .tdmi-article-hero { padding-top:42px; padding-bottom:24px; }
    .tdmi-article-hero h1 { font-size:clamp(36px,7.4vw,52px); }
    .tdmi-article-hero__lead { font-size:18px; line-height:1.55; }
    .tdmi-article-media { padding-top:4px; }
    .tdmi-visual--hero { border-radius:18px; }
}

@media (max-width: 782px) {
    body.admin-bar.tdmi-public .tdmi-site-header { top:46px; }
}

@media (max-width: 620px) {
    body.tdmi-public .tdmi-site-header__inner {
        min-height:62px;
        grid-template-columns:minmax(0,1fr) auto auto;
        gap:8px;
    }
    body.tdmi-public .tdmi-site-brand { gap:7px; }
    body.tdmi-public .tdmi-site-brand__logo { width:36px; height:36px; flex-basis:36px; }
    body.tdmi-public .tdmi-site-brand__wordmark { display:flex; }
    body.tdmi-public .tdmi-site-brand__wordmark strong { font-size:12px; letter-spacing:.16em; }
    body.tdmi-public .tdmi-site-brand__wordmark small { margin-top:4px; font-size:5.8px; letter-spacing:.28em; }
    body.tdmi-public .tdmi-site-account { display:none; }
    body.tdmi-public .tdmi-nav-toggle { width:40px; height:40px; }
    body.tdmi-public .tdmi-site-nav { left:12px; right:12px; }

    .tdmi-archive-hero { padding:42px 0 30px; }
    .tdmi-archive-hero h1 {
        margin-top:12px;
        font-size:clamp(38px,11.2vw,48px);
        line-height:1.02;
    }
    .tdmi-archive-hero p { font-size:16px; line-height:1.55; }
    .tdmi-filter-bar__inner {
        overflow-x:auto;
        flex-wrap:nowrap;
        scrollbar-width:none;
        -webkit-overflow-scrolling:touch;
    }
    .tdmi-filter-bar__inner::-webkit-scrollbar { display:none; }
    .tdmi-filter-chip { flex:0 0 auto; }

    .tdmi-feed { padding-top:26px; }
    .tdmi-featured { border-radius:18px; }
    .tdmi-featured__content { padding:24px 19px 25px; }
    .tdmi-featured h2 { font-size:30px; line-height:1.08; }
    .tdmi-featured p { font-size:15px; }
    .tdmi-button { width:100%; justify-content:center; }
    .tdmi-card-grid { grid-template-columns:1fr; gap:16px; }
    .tdmi-card { border-radius:17px; }
    .tdmi-card__body { padding:18px 17px; }

    .tdmi-article-hero { padding-top:34px; }
    .tdmi-brand-eyebrow { gap:7px; font-size:9.5px; letter-spacing:.12em; }
    .tdmi-brand-eyebrow img { width:19px; height:19px; flex-basis:19px; }
    .tdmi-article-hero .tdmi-pills { gap:6px; margin-bottom:14px; }
    .tdmi-article-hero h1 { font-size:clamp(32px,9.3vw,42px); line-height:1.035; letter-spacing:-.035em; }
    .tdmi-article-hero__lead { margin-top:18px; font-size:17px; }
    .tdmi-article-hero__meta { gap:7px; margin-top:20px; font-size:11px; }
    .tdmi-author-chip { width:100%; }
    .tdmi-meta-divider { display:none; }
    .tdmi-article-hero__meta > time,
    .tdmi-article-hero__meta > span:not(.tdmi-meta-divider) { margin-left:39px; }
    .tdmi-article-media { width:min(100% - 20px,1040px); }
    .tdmi-visual--hero { aspect-ratio:16/10; border-radius:16px; }
    .tdmi-article-body { padding-top:30px; }
    .tdmi-article__content { font-size:17px; line-height:1.7; }
    .tdmi-section { margin-top:38px; }
    .tdmi-section h2 { font-size:28px; }
    .tdmi-section--summary,
    .tdmi-section--key-facts,
    .tdmi-table-wrap,
    .tdmi-asset-card { border-radius:16px; }
    .tdmi-editorial-signature { align-items:flex-start; }
    .tdmi-related { margin-top:56px; }
    .tdmi-section-heading { align-items:flex-start; gap:14px; }
    .tdmi-section-heading > p { max-width:none; }
    .tdmi-site-footer__inner { padding-block:38px; }
}

@media (max-width: 420px) {
    .tdmi-shell,
    .tdmi-shell--wide,
    .tdmi-shell--media,
    .tdmi-shell--article { width:min(100% - 22px,1180px); }
    body.tdmi-public .tdmi-site-brand__wordmark { display:none; }
    .tdmi-archive-hero h1 { font-size:36px; }
    .tdmi-featured h2 { font-size:27px; }
    .tdmi-article-hero h1 { font-size:31px; }
    .tdmi-article-hero__lead { font-size:16px; }
    .tdmi-article__content { font-size:16px; }
    .tdmi-section h2 { font-size:25px; }
    .tdmi-article-hero__meta > time,
    .tdmi-article-hero__meta > span:not(.tdmi-meta-divider) { margin-left:0; width:100%; }
}

/* 0.2.4 — Header remains at the top of the document and scrolls away with content. */
body.tdmi-public .tdmi-site-header,
body.admin-bar.tdmi-public .tdmi-site-header {
    position:relative !important;
    top:auto !important;
    z-index:60;
}
body.tdmi-public .tdmi-site-header.is-scrolled {
    background:
        radial-gradient(circle at 20% -80%, rgba(115,103,255,.16), transparent 45%),
        linear-gradient(180deg, rgba(8,20,35,.985), rgba(5,14,25,.985));
    border-color:var(--tdmi-news-header-border);
    box-shadow:0 10px 32px rgba(0,0,0,.12);
}
