/*
Theme Name: STD Testing Online
Template: generatepress
Description: Lab brand theme for stdtesting.online (child of GeneratePress). Works with the STD Testing Online Core plugin.
Version: 1.2.2
Text Domain: stdt-theme
*/

:root {
	--navy: #0E1A35;
	--navy-2: #1A2A4D;
	--navy-3: #22365F;
	--blue: #3355E8;
	--blue-dark: #233FC0;
	--mint: #2EC4A6;
	--mint-light: #5EE0C4;
	--mint-text: #0F7F6A;
	--tint-blue: #EEF1FD;
	--tint-mint: #E6F7F3;
	--bg-alt: #F4F6FB;
	--ink: #0E1A35;
	--muted: #52607A;
	--line: #E2E7F1;
	--amber-bg: #FFF4E5;
	--amber-line: #F3C178;
	--amber-ink: #6B3A06;
	--radius: 20px;
	--font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

/* ---------- Base ---------- */
body { font-family: var(--font); color: var(--ink); background: #FFFFFF; font-size: 17px; line-height: 1.65; }
a { color: var(--blue); }
a:hover, a:focus { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font); color: inherit; letter-spacing: -0.015em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-title { color: var(--ink); }
.stdt-mono { font-family: var(--mono); }
.stdt-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* GeneratePress containers */
.grid-container { max-width: 1240px; }
.home #page, .home #content, .home .site-content { max-width: none; padding: 0; margin: 0; display: block; }
.home .site-content > .content-area { display: none; }
body:not(.home) .site-content { padding-top: 32px; padding-bottom: 72px; }
.separate-containers .inside-article { padding: 0; background: transparent; }
body:not(.home) { background: #FFFFFF; }
.entry-header { margin-bottom: 28px; }
.entry-title { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.entry-content { max-width: 1100px; }
.entry-content > p, .entry-content > ul, .entry-content > ol { max-width: 760px; }
.entry-content h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; line-height: 1.2; margin: 48px 0 16px; }
.entry-content h3 { font-size: 21px; font-weight: 800; margin: 28px 0 10px; }

/* ---------- Buttons ---------- */
.stdt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; box-sizing: border-box; border: 0; cursor: pointer; }
.stdt-btn--primary { background: var(--blue); color: #FFFFFF; }
.stdt-btn--primary:hover, .stdt-btn--primary:focus { background: var(--blue-dark); color: #FFFFFF; }
.stdt-btn--outline { background: #FFFFFF; color: var(--mint-text); border: 1.5px solid var(--mint-text); }
.stdt-btn--outline:hover { background: var(--tint-mint); color: var(--mint-text); }
.stdt-btn--block { display: flex; width: 100%; }

/* ---------- Top bar / header ---------- */
.stdt-topbar { background: var(--navy); color: #C8D4E6; font-size: 14px; }
.stdt-topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.stdt-topbar__facts { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.stdt-topbar__facts span { display: inline-flex; align-items: center; gap: 8px; }
.stdt-topbar a { color: #C8D4E6; }
.stdt-header { background: #FFFFFF; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.stdt-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.stdt-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.stdt-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.stdt-logo__name { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.stdt-logo__name em, .stdt-footer__name em { font-style: normal; color: var(--blue); }
.stdt-logo__tag { font-size: 12px; color: var(--muted); font-weight: 500; }
.stdt-nav { position: relative; }
.stdt-nav__toggle { display: none; list-style: none; cursor: pointer; width: 44px; height: 44px; border: 1px solid #D5DEEB; border-radius: 50%; align-items: center; justify-content: center; color: var(--ink); }
.stdt-nav__toggle::-webkit-details-marker { display: none; }
.stdt-nav__list { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.stdt-nav__list a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.stdt-nav__list a:hover { color: var(--blue); }
.stdt-nav:not([open]) > nav { display: block; }
.stdt-header__cta { font-size: 15px; }

@media (max-width: 960px) {
	.stdt-nav { order: 3; }
	.stdt-nav__toggle { display: flex; }
	.stdt-nav:not([open]) > nav { display: none; }
	.stdt-nav[open] > nav { position: absolute; right: 0; top: 54px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 10px 20px; box-shadow: 0 18px 40px rgba(14,26,53,0.16); min-width: 220px; }
	.stdt-nav__list { flex-direction: column; gap: 0; }
	.stdt-header__cta { order: 2; padding: 10px 16px; font-size: 14px; }
	.stdt-logo__tag { display: none; }
}
@media (max-width: 520px) {
	.stdt-header__cta { display: none; }
	.stdt-topbar__inner > a { display: none; }
}

/* ---------- Footer ---------- */
.stdt-footer { background: #09132A; color: #A9B8CE; font-size: 15px; padding: 56px 0 28px; }
.stdt-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 28px; }
.stdt-footer__name { display: block; color: #FFFFFF; font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.stdt-footer__name em { color: var(--mint-light); }
.stdt-footer__brand p { font-size: 14px; margin: 0; }
.stdt-footer__col { display: flex; flex-direction: column; gap: 8px; }
.stdt-footer__col span { color: #FFFFFF; font-weight: 700; }
.stdt-footer a { color: #A9B8CE; text-decoration: none; }
.stdt-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.stdt-footer__bottom { border-top: 1px solid #1E2C4E; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }

/* ---------- Homepage helpers ---------- */
.stdt-home a[href^="#"] { scroll-margin-top: 24px; }
.stdt-home .stdt-home-calc .stdt-calc { box-shadow: 0 24px 60px rgba(14,26,53,0.10); border-radius: 24px; }
@media (max-width: 720px) {
	.stdt-home section > div[style*="padding: 72px 24px 140px"] { padding-top: 48px !important; }
	.stdt-home [style*="min-height: 460px"] { min-height: 0 !important; }
	.stdt-home [style*="position: absolute; left: 0; top: 24px"], .stdt-home [style*="position: absolute; right: 0; bottom: 30px"] { position: static !important; margin-top: 12px; }
}

/* ---------- Page meta + breadcrumbs ---------- */
.stdt-breadcrumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stdt-breadcrumbs a { color: var(--muted); }
.stdt-meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-top: 14px; }
.stdt-meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.stdt-meta-line a { color: var(--muted); }

/* ---------- Content components ---------- */
.stdt-answer { font-size: 21px; line-height: 1.55; color: #1E2C4E; max-width: 780px; }
.stdt-keyfacts { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; margin: 28px 0; max-width: 760px; }
.stdt-keyfacts h2 { font-family: var(--mono); font-size: 14px !important; font-weight: 500 !important; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue) !important; margin: 0 0 10px !important; }
.stdt-keyfacts ul { margin: 0 0 0 20px; }
.stdt-keyfacts li { margin: 4px 0; }

.stdt-alert { background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 16px; padding: 16px 20px 16px 52px; margin: 24px 0; max-width: 760px; position: relative; color: var(--amber-ink); }
.stdt-alert::before { content: "!"; position: absolute; left: 18px; top: 16px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #8A4B08; color: #8A4B08; font-weight: 800; font-size: 14px; line-height: 19px; text-align: center; }
.stdt-alert p { margin: 0; }

.stdt-callout { background: var(--tint-mint); border-radius: var(--radius); padding: 22px 26px; margin: 32px 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.stdt-callout > div { flex: 1 1 360px; }
.stdt-callout p { margin: 4px 0 0; color: #26413A; font-size: 15px; }
.stdt-callout strong { font-size: 18px; }

.stdt-highlight { background: var(--navy); color: #FFFFFF; border-radius: var(--radius); padding: 22px 26px; margin: 20px 0; }
.stdt-highlight p { margin: 0; }
.stdt-highlight a { color: var(--mint-light); }

.stdt-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin: 24px 0; }
.stdt-two-col > div { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.stdt-two-col h3 { margin-top: 0 !important; }
.stdt-two-col ul { margin: 0 0 0 20px; }

.stdt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; margin: 24px 0; }
.stdt-card { display: flex; flex-direction: column; gap: 6px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--ink); box-shadow: 0 2px 6px rgba(14,26,53,0.04); transition: border-color .15s, transform .15s; }
.stdt-card:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.stdt-card strong { font-size: 19px; font-weight: 800; }
.stdt-card span { font-size: 15px; color: var(--muted); }
.stdt-card .stdt-card__tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mint-text); }

.stdt-steps { list-style: none; margin: 24px 0 !important; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; max-width: none !important; }
.stdt-steps li { counter-increment: s; background: var(--bg-alt); border-radius: 18px; padding: 20px 20px 20px 74px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.stdt-steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #FFFFFF; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.stdt-steps span { font-size: 15px; color: var(--muted); }

.stdt-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 24px 0; background: #FFFFFF; }
.stdt-table table { width: 100%; min-width: 640px; border-collapse: collapse; margin: 0; border: 0; font-size: 15px; }
.stdt-table th, .stdt-table td { padding: 14px 18px; border: 0; border-top: 1px solid #EDF1F7; text-align: left; vertical-align: top; }
.stdt-table thead th { background: var(--bg-alt); border-top: 0; font-weight: 700; }
.stdt-table tbody th { font-weight: 700; }

.stdt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin: 20px 0 8px; }
.stdt-stat { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.stdt-stat__label { font-size: 15px; color: var(--muted); }
.stdt-stat__value { font-family: var(--mono); font-size: 32px; font-weight: 500; line-height: 1.2; color: var(--ink); }
.stdt-stat__note { font-size: 14px; color: var(--muted); }
.stdt-data-note { font-size: 13px !important; color: var(--muted); }

.stdt-rules { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); margin: 20px 0; padding: 4px 24px; max-width: 760px; }
.stdt-rules dt { font-weight: 700; padding-top: 16px; }
.stdt-rules dd { margin: 4px 0 0; padding-bottom: 16px; border-bottom: 1px solid #EDF1F7; color: #2F3D57; font-size: 15px; }
.stdt-rules dd:last-child { border-bottom: 0; }

.stdt-list-clinics { list-style: none; margin: 20px 0 !important; padding: 0; display: grid; gap: 12px; }
.stdt-list-clinics li { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.stdt-list-clinics span { font-size: 15px; color: var(--muted); }

.stdt-expert { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; max-width: 760px; }
.stdt-expert p { font-size: 19px; line-height: 1.5; margin: 0 0 8px; }
.stdt-expert__who { font-style: normal; font-size: 14px; color: var(--muted); }

.stdt-faq { display: grid; gap: 10px; margin: 20px 0; max-width: 820px; }
.stdt-faq details { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.stdt-faq summary { cursor: pointer; font-weight: 700; }
.stdt-faq details p { margin: 10px 0 0; color: #2F3D57; }

.stdt-sources { font-size: 14px; color: var(--muted); }
.stdt-sources li { margin: 4px 0; }
.stdt-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.stdt-note { font-size: 14px; color: var(--muted); }
.stdt-price { font-family: var(--mono); }

/* Test at a glance card */
.stdt-glance { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 18px 40px rgba(14,26,53,0.08); display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.stdt-glance__title { font-weight: 800; font-size: 20px; margin: 0; }
.stdt-glance dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.stdt-glance dt { color: var(--muted); }
.stdt-glance dd { margin: 0; }
.stdt-glance__price { font-size: 18px; }
.stdt-glance__checked { font-size: 12px; color: var(--muted); margin: 0; }
@media (min-width: 1000px) {
	.entry-content .stdt-glance { float: right; width: 340px; margin: 0 0 24px 40px; }
	.entry-content h2 { clear: none; }
	.entry-content .stdt-sources, .entry-content .stdt-faq { clear: both; }
}

/* CTA + disclosure */
.stdt-cta { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; max-width: 420px; }
.stdt-glance .stdt-cta { margin: 0; max-width: none; }
.stdt-cta__disclosure { font-size: 13px; color: var(--muted); margin: 0; }
.stdt-cta__code { font-size: 14px; text-align: center; margin: 0; }
.stdt-cta__code code { background: var(--tint-mint); padding: 2px 6px; border-radius: 4px; font-family: var(--mono); }

/* Window chart */
.stdt-window { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 24px 18px; margin: 24px 0; }
.stdt-window__row, .stdt-window__axis { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 0; border-top: 1px solid #EDF1F7; }
.stdt-window__row:first-child { border-top: 0; }
.stdt-window__axis { border-top: 0; padding: 4px 0 0; }
.stdt-window__label, .stdt-window__axis > span:first-child { flex: 1 1 200px; min-width: 0; }
.stdt-window__label strong { display: block; font-size: 15px; line-height: 1.3; }
.stdt-window__label span { font-size: 13px; color: var(--muted); }
.stdt-window__track, .stdt-window__ticks { flex: 3 1 240px; }
.stdt-window__track { position: relative; height: 16px; background: #EEF2F8; border-radius: 8px; }
.stdt-window__bar { position: absolute; top: 0; bottom: 0; background: #A9E9DA; border-radius: 8px; }
.stdt-window__bar--strong { background: var(--blue); }
.stdt-window__days, .stdt-window__axis > span:last-child { flex: 0 1 110px; text-align: right; font-size: 13px; color: var(--muted); }
.stdt-window__ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.stdt-window figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Calculator */
.stdt-calc { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.stdt-calc__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.stdt-calc__field { display: flex; flex-direction: column; gap: 6px; }
.stdt-calc__field label { font-weight: 700; font-size: 15px; }
.stdt-calc__input { font: inherit; font-size: 17px; padding: 0 14px; border: 1px solid #CBD3E3; border-radius: 12px; min-height: 50px; color: var(--ink); background: #F7F8FC; }
.stdt-calc__legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.stdt-calc__legend span { display: inline-flex; align-items: center; gap: 6px; }
.stdt-swatch { display: inline-block; width: 18px; height: 10px; border-radius: 3px; }
.stdt-swatch--soft { background: #A9E9DA; }
.stdt-swatch--solid { background: var(--blue); }
.stdt-calc__row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "label label" "track dates"; align-items: center; gap: 8px 14px; padding: 12px 0; border-top: 1px solid #EDF1F7; }
.stdt-calc__label { grid-area: label; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.stdt-calc__label a, .stdt-calc__label strong { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.stdt-calc__label a:hover { color: var(--blue); text-decoration: underline; }
.stdt-calc__label span { font-size: 13px; color: var(--muted); }
.stdt-calc__track { grid-area: track; position: relative; height: 14px; background: #EEF2F8; border-radius: 7px; overflow: hidden; }
.stdt-calc__soft { position: absolute; top: 0; bottom: 0; background: #A9E9DA; }
.stdt-calc__solid { position: absolute; top: 0; bottom: 0; background: var(--blue); }
.stdt-calc__dates { grid-area: dates; display: flex; flex-direction: column; text-align: right; font-size: 12.5px; line-height: 1.35; white-space: nowrap; }
.stdt-calc__from { color: var(--muted); }
.stdt-calc__sure { color: var(--blue-dark); }
.stdt-calc__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-right: 110px; }
.stdt-calc__note { font-size: 13px; color: var(--muted); margin: 0; }
@media (min-width: 900px) {
	.entry-content .stdt-calc__row { grid-template-columns: 220px minmax(0, 1fr) 96px; grid-template-areas: "label track dates"; }
	.entry-content .stdt-calc__label { flex-direction: column; gap: 0; }
	.entry-content .stdt-calc__axis { margin-left: 234px; }
}
@media (max-width: 640px) { .stdt-calc__axis { display: none; } .stdt-calc { padding: 18px; } }

/* Provider offers inside the glance card */
.stdt-offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stdt-offers__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stdt-offers__item:first-child { border-color: var(--blue); background: #F7F8FE; }
.stdt-offers__info { display: flex; flex-direction: column; min-width: 0; }
.stdt-offers__info strong { font-size: 16px; }
.stdt-offers__info span { font-size: 13px; color: var(--muted); }
.stdt-offers__buy { display: flex; align-items: center; gap: 10px; }
.stdt-offers__price { font-size: 17px; }
.stdt-offers__buy .stdt-btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.stdt-offers__code { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.stdt-offers__code code { background: var(--tint-mint); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); }

/* Photos from the media library */
.stdt-logo__img { height: 44px; width: auto; display: block; }
.stdt-logo__img--wide { height: 64px; width: auto; max-width: 280px; object-fit: contain; }
.stdt-hero-photo { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 28px; display: block; box-shadow: 0 30px 70px rgba(3,10,25,0.45); }
.stdt-fill-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.stdt-city-photo { width: 100%; height: 120px; object-fit: cover; display: block; }
.entry-content img, .featured-image img { border-radius: 20px; }
@media (max-width: 520px) { .stdt-logo__img--wide { height: 46px; } }
.stdt-footer__logo { display: block; height: 64px; width: auto; max-width: 240px; margin-bottom: 14px; background: #FFFFFF; border-radius: 12px; padding: 6px 10px; box-sizing: content-box; }

/* ---------- Internal pages (page.php) ---------- */
body.page:not(.home) .site-content { display: block; max-width: none; padding: 0; margin: 0; }
.stdt-page { display: block; }
.stdt-phero { background: var(--bg-alt); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.stdt-phero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#D6DDEB 1.2px, transparent 1.2px); background-size: 26px 26px; opacity: .55; pointer-events: none; }
.stdt-phero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 36px; padding-bottom: 40px; }
.stdt-phero--image .stdt-phero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.stdt-phero__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stdt-phero .stdt-breadcrumbs { margin: 0; }
.stdt-phero__chip { align-self: flex-start; background: var(--tint-mint); color: var(--mint-text); border: 1px solid #BFEADF; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.stdt-phero__title { margin: 0; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; color: var(--ink); }
.stdt-phero .stdt-meta-line { margin-top: 2px; }
.stdt-phero__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 0; }
.stdt-phero__facts > div { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.stdt-phero__facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stdt-phero__facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.stdt-phero__media { min-width: 0; }
.stdt-phero__img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 24px; display: block; box-shadow: 0 24px 60px rgba(14,26,53,0.16); }

.stdt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.stdt-layout--single { grid-template-columns: minmax(0, 1fr); }
.stdt-article { min-width: 0; max-width: 800px; }
.stdt-layout--single .stdt-article { max-width: 900px; }
.stdt-article .entry-content { max-width: none; }
.stdt-article .entry-content > p, .stdt-article .entry-content > ul, .stdt-article .entry-content > ol { max-width: none; }
.stdt-article .entry-content h2 { scroll-margin-top: 24px; padding-top: 8px; }
.stdt-article .entry-content > h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--mint); margin-bottom: 14px; }
.stdt-article .entry-content > .stdt-answer:first-child { background: #FFFFFF; border-left: 5px solid var(--blue); padding: 4px 0 4px 20px; margin-top: 0; }
.stdt-article .entry-content .stdt-glance { float: none; width: auto; margin: 28px 0; }

.stdt-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.stdt-toc--side { border-left: 2px solid var(--line); padding: 2px 0 2px 18px; }
.stdt-toc__title { display: block; font-family: var(--mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.stdt-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.stdt-toc__list a { display: block; padding: 6px 0; font-size: 14.5px; line-height: 1.35; color: var(--muted); text-decoration: none; }
.stdt-toc__list a:hover { color: var(--blue); }
.stdt-toc--side .stdt-toc__list a.is-active { color: var(--ink); font-weight: 700; position: relative; }
.stdt-toc--side .stdt-toc__list a.is-active::before { content: ""; position: absolute; left: -20px; top: 6px; bottom: 6px; width: 2px; background: var(--blue); }
.stdt-aside__box { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.stdt-aside__box strong { font-size: 16px; }
.stdt-aside__box p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.stdt-aside__box .stdt-btn { font-size: 14px; min-height: 42px; margin-top: 4px; }
.stdt-aside__box--mint { background: var(--tint-mint); border-color: #BFEADF; }
.stdt-aside__link { font-weight: 700; font-size: 14px; color: var(--mint-text); }
.stdt-toc--mobile { display: none; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 24px; }
.stdt-toc--mobile summary { font-weight: 700; cursor: pointer; }
.stdt-toc--mobile .stdt-toc__list { margin-top: 8px; }

.stdt-about-page { margin-top: 48px; background: var(--tint-blue); border-radius: var(--radius); padding: 22px 26px; font-size: 15px; color: #2F3D57; }
.stdt-about-page__title { display: block; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.stdt-about-page ul { margin: 0 0 10px 20px; }
.stdt-about-page li { margin: 4px 0; }
.stdt-about-page p { margin: 0; }

.stdt-related { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 48px 0 56px; }
.stdt-related h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.stdt-related__all { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

/* Figures (diagrams from the core plugin) */
.stdt-figure { margin: 28px 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stdt-figure img { width: 100%; height: auto; display: block; border-radius: 12px; }
.stdt-figure figcaption { font-size: 14px; color: var(--muted); padding: 10px 6px 2px; line-height: 1.5; }

@media (max-width: 1000px) {
	.stdt-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
	.stdt-aside { display: none; }
	.stdt-toc--mobile { display: block; }
	.stdt-phero--image .stdt-phero__inner { grid-template-columns: minmax(0, 1fr); }
	.stdt-phero__media { order: -1; }
	.stdt-phero__img { aspect-ratio: 16 / 8; border-radius: 18px; }
}
@media (max-width: 600px) {
	.stdt-phero__inner { padding-top: 22px; padding-bottom: 28px; gap: 18px; }
	.stdt-phero__media { display: none; }
	.stdt-phero__facts { grid-template-columns: 1fr 1fr; }
}

/* Panel or separate tests picker */
.stdt-picker { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 28px 0; display: flex; flex-direction: column; gap: 14px; }
.stdt-picker__head { font-size: 19px; font-weight: 800; }
.stdt-picker__hint { margin: 0; font-size: 15px; color: var(--muted); }
.stdt-picker__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 16px; }
.stdt-picker__grid label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; background: var(--bg-alt); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.stdt-picker__grid label span { margin-left: auto; color: var(--muted); font-size: 14px; }
.stdt-picker__grid input { width: 18px; height: 18px; accent-color: var(--blue); }
.stdt-picker__rows { display: grid; gap: 8px; }
.stdt-picker__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.stdt-picker__row > div:first-child { display: flex; flex-direction: column; }
.stdt-picker__row span { font-size: 14px; color: var(--muted); }
.stdt-picker__row.is-best { border-color: var(--mint); background: var(--tint-mint); }
.stdt-picker__price { font-family: var(--mono); font-size: 20px; }
.stdt-picker__verdict { margin: 0; font-weight: 700; }
.stdt-picker__note { margin: 0; font-size: 14px; background: var(--amber-bg); border-radius: 10px; padding: 10px 12px; color: var(--amber-ink); }
.stdt-picker__small { margin: 0; font-size: 13px; color: var(--muted); }

.stdt-calc__actions { margin: 0; }
.stdt-calc__print { min-height: 40px; padding: 8px 16px; font-size: 14px; }
@media print {
	.stdt-topbar, .stdt-header, .stdt-footer, .stdt-aside, .stdt-toc, .stdt-related, .stdt-phero__media, .stdt-calc__actions, .stdt-alert, .stdt-callout, .stdt-glance { display: none !important; }
	.stdt-phero { background: none; border: 0; }
	.stdt-phero::before { display: none; }
	.stdt-layout { display: block; padding: 0; }
	.stdt-calc { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
	.stdt-calc__soft, .stdt-calc__solid { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	a { color: #000; text-decoration: none; }
}
