/*
Theme Name: API Red List
Theme URI: https://api-data.net/
Description: API Red List — who's out, who's in. FDA actions, supply disruption tracker, regulatory deadlines and generic entry. Works with the "API Red List — Data" plugin.
Version: 1.0.0
Requires PHP: 7.4
Author: API Red List
Text Domain: api-red-list
*/

:root {
	--bg: #0F1B2D;
	--bg-alt: #13213A;
	--surface: #16253B;
	--surface-2: #1E2F4A;
	--line: #2A3A55;
	--text: #F2F4F7;
	--text-2: #D5DCE7;
	--muted: #A9B4C6;
	--red: #A3202B;
	--red-text: #FF7A80;
	--band: #1F3A5F;
	--footer: #0B1524;
	--display: Anton, Impact, "Arial Narrow", sans-serif;
	--sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
	--wrap: 1360px;
	--pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--red-text); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red-text); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--text); color: var(--bg); padding: 10px 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--red-text); text-transform: uppercase; }
.h-display { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.95; }
.h-xl { font-size: 72px; }
.h-l { font-size: 56px; }
.h-m { font-size: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head__title { display: flex; flex-direction: column; gap: 8px; }
.link-more { font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 2px solid var(--red-text); padding-bottom: 4px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 4px 8px; line-height: 1.3; text-transform: uppercase; }
.tag--solid { background: var(--red); color: #fff; }
.tag--outline { border: 1px solid var(--red-text); color: var(--red-text); padding: 3px 8px; }
.tag--light { background: var(--text); color: var(--bg); }
.tag--muted { border: 1px solid var(--muted); color: var(--text); padding: 3px 8px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 14px 22px; font-weight: 800; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; color: var(--bg); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--ghost { border: 1px solid var(--text); }
.placeholder-img { background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: #9AA9C0; letter-spacing: 1px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand__api { background: var(--red); color: #fff; font-family: var(--display); font-size: 22px; letter-spacing: 1px; padding: 6px 10px; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: 1px; }
.brand__tagline { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 1px; border-left: 2px solid var(--red); padding-left: 14px; text-transform: uppercase; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.main-nav .nav-cta a { background: var(--text); color: var(--bg); padding: 12px 18px; min-height: 44px; display: inline-flex; align-items: center; }

/* Ticker */
.ticker { background: var(--red); color: #fff; }
.ticker__inner { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding-top: 12px; padding-bottom: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: .5px; }
.ticker__label { font-weight: 700; background: var(--bg); padding: 4px 8px; }
.ticker a { color: #fff; }
.ticker a:hover { text-decoration: underline; color: #fff; }

/* Hero OUT/IN */
.hero { padding-top: 56px; padding-bottom: 64px; }
.hero__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.hero__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.hero__src { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.hero__grid { display: flex; flex-wrap: wrap; }
.hero__out, .hero__in { flex: 1 1 520px; min-width: 0; padding: 40px 44px 44px; display: flex; flex-direction: column; gap: 22px; }
.hero__out { background: var(--red); color: #fff; }
.hero__in { background: var(--text); color: var(--bg); }
.hero__word { font-family: var(--display); font-size: 200px; line-height: .82; letter-spacing: -2px; }
.hero__meta { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 1px; color: #FFE3E5; }
.hero__company { margin: 0; font-size: 46px; line-height: 1.02; font-weight: 800; color: #fff; }
.hero__text { margin: 0; font-size: 19px; line-height: 1.45; max-width: 520px; }
.hero__out .hero__text { color: #FFE3E5; }
.hero__in .hero__text { color: #33415A; }
.hero__out a.hero__more { align-self: flex-start; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 2px solid #fff; padding-bottom: 4px; }
.hero__nums { display: flex; flex-wrap: wrap; gap: 36px; }
.hero__num { display: flex; flex-direction: column; gap: 4px; }
.hero__num strong { font-family: var(--display); font-weight: 400; font-size: 96px; line-height: .9; }
.hero__num span { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.hero__in .btn { align-self: flex-start; background: var(--bg); color: var(--text); }

/* Tracker table */
.table-box { overflow-x: auto; border: 1px solid var(--line); background: var(--bg); }
.rl-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 16px; }
.rl-table th { background: var(--surface); text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); padding: 14px 20px; font-weight: 700; }
.rl-table td { padding: 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.rl-table .c-date { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.rl-table .c-site { font-weight: 800; font-size: 19px; }
.rl-table .c-site a { text-decoration: none; border: 0; }
.rl-table .c-in__mol { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.rl-table .c-in__none { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: normal; }
.rl-table .c-stops { color: var(--text-2); }
.rl-table .c-in { text-align: right; font-family: var(--display); font-size: 28px; white-space: nowrap; }
.rl-table .tag { margin: 2px 6px 2px 0; }
.rl-table tr.is-main td { background: #1A1420; }

/* Cards */
.lead-card { display: flex; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--line); margin-bottom: 24px; }
.lead-card__img { flex: 1 1 560px; min-height: 380px; }
.lead-card__img img { width: 100%; height: 100%; object-fit: cover; }
.lead-card__body { flex: 1 1 480px; min-width: 0; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.lead-card__title { margin: 0; font-size: 48px; line-height: 1.02; font-weight: 800; }
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 380px; min-width: 0; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card__img { height: 200px; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card__meta { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--red-text); letter-spacing: 1px; text-transform: uppercase; }
.card__title { margin: 0; font-size: 26px; line-height: 1.12; font-weight: 800; }

/* Calendars */
.cal-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.cal-col { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.gen-list { border-top: 2px solid var(--text); }
.gen-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.gen-row__when { font-family: var(--display); font-size: 30px; min-width: 170px; }
.gen-row__mol { flex: 1 1 220px; font-size: 19px; font-weight: 800; }
.gen-row__note { font-size: 16px; color: var(--text-2); }
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-row { display: flex; flex-wrap: wrap; background: var(--surface); }
.dl-row__date { flex: 0 0 150px; background: #24385A; font-family: var(--display); font-size: 34px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 8px; text-align: center; }
.dl-row:first-child .dl-row__date { background: var(--red); color: #fff; }
.dl-row__days { font-family: var(--mono); font-size: 12px; font-weight: 700; margin-top: 6px; }
.dl-row__body { flex: 1 1 280px; padding: 18px 24px; display: flex; flex-direction: column; gap: 4px; }
.dl-row__title { font-size: 19px; font-weight: 800; }
.dl-row__who { font-size: 15px; color: var(--text-2); }
.empty-note { color: var(--muted); font-size: 15px; }

/* CTA band */
.band { background: var(--band); }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.band__title { margin: 0; flex: 1 1 600px; font-family: var(--display); font-weight: 400; font-size: 88px; line-height: .92; text-transform: uppercase; color: #fff; }
.band .btn { background: var(--bg); color: var(--text); font-size: 18px; padding: 22px 32px; }

/* Archive list */
.arch-list { display: flex; flex-wrap: wrap; column-gap: 40px; border-top: 2px solid var(--text); }
.arch-item { flex: 1 1 560px; min-width: 0; display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 700; }
.arch-item__cat { font-family: var(--mono); font-size: 12px; color: var(--red-text); min-width: 120px; text-transform: uppercase; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--footer); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; padding-top: 40px; padding-bottom: 40px; }
.site-footer__about { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.site-footer__name { font-family: var(--display); font-size: 28px; letter-spacing: 1px; }
.site-footer__text { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* Case page */
.case-head { padding-top: 40px; padding-bottom: 36px; }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.case-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.case-title { margin: 0 0 16px; font-family: var(--display); font-weight: 400; font-size: 84px; line-height: .95; text-transform: uppercase; max-width: 1100px; }
.case-dek { margin: 0; font-size: 21px; line-height: 1.45; color: var(--text-2); max-width: 860px; }
.products { background: var(--bg-alt); border-top: 4px solid var(--red); padding-top: 48px; padding-bottom: 56px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.legend .tag { margin-right: 6px; padding-top: 2px; padding-bottom: 2px; }
.products .rl-table { min-width: 1040px; }
.products .btn { font-size: 13px; padding: 0 16px; white-space: nowrap; }
.note { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.found { display: flex; flex-wrap: wrap; gap: 48px; }
.found__main { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.found__aside { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.found-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--text); counter-reset: f; }
.found-list li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; counter-increment: f; }
.found-list li::before { content: counter(f); font-family: var(--display); font-size: 30px; color: var(--red-text); min-width: 36px; line-height: 1.2; }
.quote { margin: 0; padding: 32px; background: var(--surface); border-top: 4px solid var(--red); }
.quote p { margin: 0 0 16px; font-family: var(--display); font-size: 40px; line-height: 1.05; text-transform: uppercase; }
.quote cite { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.buyers { padding: 24px 32px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.timeline { display: flex; flex-wrap: wrap; border-top: 2px solid var(--text); }
.timeline__step { flex: 1 1 220px; min-width: 0; padding: 20px 24px 20px 0; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.timeline__when { font-family: var(--display); font-size: 28px; }
.timeline__step:last-child .timeline__when { color: var(--red-text); }
.timeline__what { font-size: 16px; color: var(--text-2); }
.sources { display: flex; flex-wrap: wrap; gap: 40px; }
.sources ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sources a { border-bottom: 1px solid var(--muted); }
.related { flex: 1 1 380px; padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 19px; font-weight: 800; }

/* Article (single) */
.article-head { padding-top: 48px; padding-bottom: 32px; max-width: 980px; }
.article-title { margin: 14px 0 16px; font-size: 52px; line-height: 1.05; font-weight: 800; }
.article-dek { margin: 0; font-size: 21px; color: var(--text-2); line-height: 1.45; }
.article-meta { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.article-cover { max-width: 1200px; margin: 0 auto 40px; padding: 0 var(--pad); }
.article-body { max-width: 860px; margin: 0 auto; padding: 0 var(--pad) 64px; }
.entry-content { background: #F5F7FA; color: #1F2937; padding: 48px 56px; font-size: 18px; line-height: 1.7; }
.entry-content a { color: #1F3A5F; text-decoration: underline; }
.entry-content h2, .entry-content h3 { color: #0F1B2D; line-height: 1.2; }
.entry-content img { margin: 24px auto; }
.entry-content table { border-collapse: collapse; }
.article-cta { margin-top: 32px; }

/* Archive pages */
.page-head { padding-top: 48px; padding-bottom: 28px; }
.post-list { display: flex; flex-direction: column; border-top: 2px solid var(--text); }
.post-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-row__date { font-family: var(--mono); font-size: 13px; color: var(--muted); min-width: 120px; }
.post-row__title { flex: 1 1 520px; font-size: 22px; font-weight: 800; }
.pagination { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--mono); }
.pagination .page-numbers { border: 1px solid var(--line); padding: 8px 14px; }
.pagination .current { background: var(--red); border-color: var(--red); }
.page-content { max-width: 860px; font-size: 18px; color: var(--text-2); }

/* Responsive */
@media (max-width: 900px) {
	:root { --pad: 20px; }
	.h-xl { font-size: 52px; }
	.h-l { font-size: 42px; }
	.hero__word { font-size: 130px; }
	.hero__company { font-size: 34px; }
	.hero__num strong { font-size: 72px; }
	.hero__out, .hero__in { padding: 28px 24px 32px; }
	.lead-card__img { min-height: 220px; }
	.lead-card__title { font-size: 32px; }
	.band__title { font-size: 52px; }
	.case-title { font-size: 52px; }
	.article-title { font-size: 34px; }
	.entry-content { padding: 28px 20px; }
	.brand__name { font-size: 32px; }
	.quote p { font-size: 30px; }
}

/* Tracker on narrow screens: keep WHO'S IN visible */
@media (max-width: 900px) {
	.rl-table { min-width: 0; }
	.rl-table th:nth-child(4), .rl-table td.c-stops { display: none; }
	.rl-table td { padding: 14px 10px; }
	.rl-table .c-site { font-size: 16px; }
	.rl-table .c-in { font-size: 20px; white-space: normal; }
}
