/* MediScanIO 2.0 — palette from the original theme: deep navy → ocean → coral, with teal. Loaded after main.css. */
:root {
	--navy: #0b1c33;
	--ocean: #1d6f8a;
	--teal: #0fb5b1;
	--teal-ink: #08736f;
	--teal-soft: #e2f6f5;
	--coral: #ff6b6b;
	--coral-2: #ff8f6b;
	--coral-ink: #b83a33;
	--coral-soft: #ffece9;
	--ink: #0f1b2d;
	--text: #3a4a60;
	--muted: #5a6b85;
	--line: #e3eaf0;
	--bg: #f6f9fb;
	--grad-hero: linear-gradient(120deg, #0b1c33 0%, #0b1c33 30%, #1d6f8a 68%, #ff7a5c 118%);
	--radius: 16px;
	--shadow: 0 14px 40px -18px rgba(11, 28, 51, .35);

	/* legacy names used by inner templates */
	--ms-green: var(--teal-ink);
	--ms-green-dark: var(--navy);
	--ms-green-soft: var(--teal-soft);
	--ms-ink: var(--ink);
	--ms-text: var(--text);
	--ms-muted: var(--muted);
	--ms-line: var(--line);
	--ms-bg: var(--bg);
	--ms-radius: var(--radius);
}

/* Tones: --t ink (text/icon, ≥4.5:1 on --t-soft and with white), --t-soft background, --t-fill bright accent */
.tone-teal   { --t: #08736f; --t-soft: #e2f6f5; --t-fill: #0fb5b1; }
.tone-coral  { --t: #b83a33; --t-soft: #ffece9; --t-fill: #ff6b6b; }
.tone-violet { --t: #5b3fc4; --t-soft: #efeafe; --t-fill: #8b6cf0; }
.tone-amber  { --t: #8a5200; --t-soft: #fff3dc; --t-fill: #f5a524; }
.tone-ocean  { --t: #165a71; --t-soft: #e2eff4; --t-fill: #1d6f8a; }
.tone-mint   { --t: #1d7656; --t-soft: #e3f6ee; --t-fill: #2fb98a; }
.tone-rose   { --t: #a8326a; --t-soft: #fdeaf2; --t-fill: #e85d9a; }
.tone-sky    { --t: #1f6aa3; --t-soft: #e5f2fb; --t-fill: #3a9bdc; }

body { background: var(--bg); color: var(--ink); }
::selection { background: #ffd2c4; color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ms-skip:focus { clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; }
svg { flex-shrink: 0; }

/* ---------- Nav ---------- */
.nav { background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); }
.brand { color: var(--navy); text-decoration: none; }
.brand-icon { background: none; box-shadow: none; overflow: hidden; }
.brand-icon img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 28px; align-items: center; white-space: nowrap; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover { color: var(--navy); border-bottom-color: var(--coral); }
.nav-links a.is-current { color: var(--navy); font-weight: 600; border-bottom-color: var(--coral); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.nav-tools .ms-search { width: 220px; }
.nav-tools .ms-search input { padding: 8px 40px 8px 14px; font-size: 14px; }
.nav-tools .ms-search button { width: 32px; height: 32px; }
.hamburger-btn { display: none; background: none; border: 0; cursor: pointer; color: var(--navy); padding: 8px; }
.mobile-menu { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--line); padding: 12px 20px 16px; }
.mobile-menu.show { display: flex; }
.mobile-menu > a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; }
.mobile-menu > a:last-child { border-bottom: 0; }
.mobile-menu .ms-search { margin-bottom: 6px; }
@media (max-width: 900px) {
	.nav-links, .nav-tools .ms-search { display: none; }
	.hamburger-btn { display: block; }
}

/* ---------- Search ---------- */
.ms-search { position: relative; display: flex; }
.ms-search input { width: 100%; padding: 12px 50px 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; color: var(--ink); }
.ms-search input::placeholder { color: #66768d; }
.ms-search input:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.ms-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--coral); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.ms-search button:hover { background: var(--coral-2); }

/* ---------- Buttons ---------- */
.ms-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; transition: background .15s, transform .15s, box-shadow .15s; }
.ms-btn svg { width: 18px; height: 18px; }
.ms-btn:hover { transform: translateY(-1px); }
.ms-btn-coral { background: var(--coral); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(255, 107, 107, .8); }
.ms-btn-coral:hover { background: var(--coral-2); }
.ms-btn-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }
.ms-btn-light:hover { background: rgba(255, 255, 255, .18); }
.ms-btn-primary { background: var(--teal-ink); color: #fff; }
.ms-btn-primary:hover { background: var(--navy); }
.ms-btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 52px 20px 28px; margin-top: 0; position: relative; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; font-family: 'Space Grotesk', sans-serif; }
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-footer p { color: #b9c8d8; font-size: .9rem; line-height: 1.6; margin-top: 12px; max-width: 34ch; }
.footer-h { font-weight: 700; font-size: .9rem; margin-bottom: 12px; color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: #c9d6e3; font-size: .9rem; }
.footer-links a:hover { color: #ffb199; }
.site-footer .footer-legal { max-width: 1140px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; color: #9fb0c3; text-align: center; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Sidebar Lab Tests box ---------- */
.ms-cta-card { background: var(--grad-hero); color: #fff; border-radius: 14px; padding: 22px 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.ms-cta-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--coral); color: var(--navy); display: grid; place-items: center; margin-bottom: 12px; }
.ms-cta-icon svg { width: 22px; height: 22px; }
.ms-cta-title { font-weight: 700; font-size: 1.08rem; margin-bottom: 6px; font-family: 'Space Grotesk', sans-serif; }
.ms-cta-card p { font-size: .87rem; line-height: 1.55; color: #d6e4ee; margin: 0 0 14px; }
.ms-cta-card a { display: block; text-align: center; background: var(--coral); color: var(--navy); padding: 10px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.ms-cta-card a:hover { background: var(--coral-2); }

.ms-ad { margin: 28px auto; max-width: 900px; text-align: center; padding: 0 16px; }
.ms-ad-label { font-size: .7rem; color: #8494a8; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }

/* ---------- Home: shared ---------- */
.ms-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.ms-section { padding: 80px 0; }
.ms-head { max-width: 680px; margin-bottom: 30px; }
.ms-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--navy); text-wrap: balance; }
.ms-head p { margin-top: 10px; color: var(--text); line-height: 1.6; font-size: 1.04rem; }
.ms-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ms-head-row > div { max-width: 680px; }
.ms-link { display: inline-flex; align-items: center; gap: 6px; color: var(--coral-ink); font-weight: 700; white-space: nowrap; }
.ms-link svg { width: 18px; height: 18px; transition: transform .15s; }
.ms-link:hover svg { transform: translateX(3px); }

/* Hero */
.hx { position: relative; padding: 128px 20px 120px; background: var(--grad-hero); color: #fff; overflow: hidden; isolation: isolate; }
.hx::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 12% 10%, rgba(15, 181, 177, .28), transparent 55%), radial-gradient(ellipse at 85% 90%, rgba(255, 107, 107, .35), transparent 50%); }
.hx-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hx h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.hx h1 em { font-style: normal; color: #ffc2ad; }
.hx-lead { margin-top: 20px; font-size: 1.12rem; line-height: 1.65; color: #d6e4ee; max-width: 54ch; }
.hx-search { margin-top: 28px; max-width: 540px; }
.hx-search .ms-search input { padding: 16px 58px 16px 22px; font-size: 1.02rem; border: 0; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); }
.hx-search .ms-search button { width: 46px; height: 46px; right: 5px; }
.hx-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.hx-common { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: #b9c8d8; }
.hx-common a { padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 500; font-size: .86rem; transition: background .15s, border-color .15s; }
.hx-common a:hover { background: rgba(255, 255, 255, .2); border-color: #ffb199; }
.hx-art { position: relative; margin: 0; }
.hx-art img { width: 100%; height: auto; border-radius: 26px; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .18); }
.hx-art figcaption { position: absolute; left: -18px; bottom: -22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hx-art figcaption span { background: #fff; color: var(--text); padding: 10px 16px; border-radius: 14px; font-size: .88rem; box-shadow: var(--shadow); }
.hx-art figcaption strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; color: var(--coral-ink); margin-right: 4px; }
.hx-art figcaption span:last-child strong { color: var(--teal-ink); }
@media (max-width: 980px) {
	.hx { padding: 100px 20px 72px; }
	.hx-grid { grid-template-columns: 1fr; gap: 44px; }
	.hx-art figcaption { position: static; margin-top: 14px; }
}

/* Result checker band */
.ck { background: linear-gradient(180deg, var(--teal-soft), #fff 85%); padding: 0 20px 72px; }
.ck-grid { max-width: 1180px; margin: -56px auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 24px 60px -28px rgba(11, 28, 51, .4); }
.ck-intro { display: grid; grid-template-columns: 112px 1fr; gap: 4px 18px; align-items: center; }
.ck-intro img { grid-row: span 2; width: 112px; height: auto; }
.ck-intro p { grid-column: 1 / -1; }
.ck-tool { padding-top: 6px; }
.ck-intro h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--navy); }
.ck-intro p { margin-top: 10px; color: var(--text); line-height: 1.6; }
.ck-tool .mlt-checker { margin: 0; border: 0; padding: 0; background: none; }
.ck-tool .mlt-checker > .mlt-h3, .ck-tool .mlt-checker > .mlt-note-muted { display: none; }
@media (max-width: 860px) { .ck-grid { grid-template-columns: 1fr; padding: 22px 18px; gap: 14px; margin-top: -40px; } .ck-intro { grid-template-columns: 72px 1fr; } .ck-intro img { width: 72px; grid-row: auto; } }

/* Panels */
.pn { background: #fff; }
.pn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pn-list a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--t-soft); border: 1px solid transparent; transition: border-color .15s, transform .15s, box-shadow .15s; height: 100%; }
.pn-list a:hover { border-color: var(--t-fill); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(11, 28, 51, .35); }
.pn-code { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; background: var(--t); color: #fff; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.pn-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pn-text strong { color: var(--navy); font-size: .98rem; line-height: 1.3; }
.pn-text small { color: var(--t); font-weight: 600; font-size: .82rem; }
@media (max-width: 960px) { .pn-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pn-list { grid-template-columns: 1fr; } }

/* Articles */
.ar { background: var(--bg); }
.ar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ar-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(11, 28, 51, .06), 0 10px 30px -22px rgba(11, 28, 51, .45); transition: transform .2s, box-shadow .2s; }
.ar-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(11, 28, 51, .06), 0 20px 40px -22px rgba(11, 28, 51, .5); }
.ar-card.is-lead { grid-column: span 2; grid-row: span 2; }
.ar-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--t-soft); }
.ar-card.is-lead .ar-img { aspect-ratio: auto; flex: 1 1 auto; min-height: 260px; }
.ar-card.is-lead .ar-body { flex: 0 0 auto; }
.ar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.ar-card:hover .ar-img img { transform: scale(1.04); }
.ar-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--t); background: linear-gradient(135deg, var(--t-soft), #fff); }
.ar-ph svg { width: 44px; height: 44px; }
.ar-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ar-cat { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: var(--t); background: var(--t-soft); padding: 4px 10px; border-radius: 999px; }
.ar-card h3 { font-family: 'Inter', sans-serif; font-size: 1rem; line-height: 1.4; letter-spacing: -.005em; }
.ar-card.is-lead h3 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em; }
.ar-card h3 a { color: var(--navy); }
.ar-card h3 a:hover { color: var(--t); }
.ar-body p { color: var(--text); line-height: 1.6; font-size: .96rem; }
.ar-card time { margin-top: auto; font-size: .8rem; color: var(--muted); }
@media (max-width: 1000px) { .ar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ar-grid { gap: 12px; } .ar-card.is-lead { grid-row: auto; } .ar-card.is-lead .ar-img { min-height: 0; aspect-ratio: 16 / 10; } .ar-card h3 { font-size: .92rem; } .ar-body { padding: 12px 12px 14px; } }

/* Topics */
.tp { background: #fff; }
.tp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tp-grid a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border-radius: 18px; background: var(--t-soft); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.tp-grid a::after { content: ''; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; background: var(--t-fill); opacity: .14; transition: transform .3s; }
.tp-grid a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(11, 28, 51, .45); }
.tp-grid a:hover::after { transform: scale(1.25); }
.tp-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--t); color: #fff; display: grid; place-items: center; margin-bottom: 8px; }
.tp-grid strong { color: var(--navy); font-size: 1rem; line-height: 1.3; }
.tp-grid small { color: var(--t); font-weight: 600; font-size: .84rem; }
@media (max-width: 960px) { .tp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .tp-grid { gap: 10px; } .tp-grid a { padding: 16px; } }

/* How we work */
.hw { background: var(--grad-hero); color: #fff; padding: 76px 0; position: relative; overflow: hidden; isolation: isolate; }
.hw::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 90% 100%, rgba(255, 107, 107, .3), transparent 55%); }
.hw-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.hw h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; color: #fff; text-wrap: balance; }
.hw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.hw-list li { display: flex; gap: 16px; align-items: flex-start; }
.hw-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--teal); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.hw-list li:nth-child(2) .hw-icon { background: #ffb199; }
.hw-list li:nth-child(3) .hw-icon { background: var(--coral); }
.hw-list strong { font-size: 1.1rem; font-family: 'Space Grotesk', sans-serif; }
.hw-list p { color: #d6e4ee; line-height: 1.6; margin-top: 4px; max-width: 60ch; }
@media (max-width: 860px) { .hw-grid { grid-template-columns: 1fr; gap: 28px; } .hw { padding: 56px 0; } }
@media (max-width: 760px) { .ms-section { padding: 52px 0; } .ms-head-row { flex-direction: column; align-items: flex-start; } }

/* ---------- Generic page / archive / 404 ---------- */
.ms-page-hero { background: var(--grad-hero); color: #fff; padding: 52px 20px; text-align: center; margin-top: 64px; position: relative; isolation: isolate; overflow: hidden; }
.ms-page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 90% 120%, rgba(255, 107, 107, .35), transparent 55%); }
.ms-page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; max-width: 820px; margin: 0 auto; line-height: 1.2; color: #fff; text-wrap: balance; }
.ms-page-hero p { color: #d6e4ee; margin-top: 10px; max-width: 640px; margin-left: auto; margin-right: auto; }
.ms-page-hero .ms-hero-tag { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .82rem; font-weight: 600; }
.ms-page { max-width: 860px; margin: 32px auto 0; padding: 0 16px 56px; }
.ms-page-body { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(11, 28, 51, .06); line-height: 1.8; color: var(--text); }
.ms-page-body h2 { font-size: 1.4rem; margin: 28px 0 12px; color: var(--navy); }
.ms-page-body h3 { font-size: 1.12rem; margin: 22px 0 8px; color: var(--navy); }
.ms-page-body p, .ms-page-body ul, .ms-page-body ol { margin: 0 0 16px; }
.ms-page-body a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.ms-page-wide { max-width: 1180px; }
@media (max-width: 600px) { .ms-page-body { padding: 20px 16px; } }

/* ---------- Lab test single ---------- */
.lt-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 20px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.lt-crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.lt-crumbs a { color: var(--teal-ink); }
.lt-body { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(11, 28, 51, .06); line-height: 1.75; color: var(--text); }
.lt-body > h2, .lt-body .wp-block-heading { font-size: 1.4rem; color: var(--navy); margin: 28px 0 10px; }
.lt-body h3 { font-size: 1.1rem; color: var(--navy); margin: 20px 0 8px; }
.lt-body p { margin: 0 0 14px; }
.lt-body ul, .lt-body ol { margin: 0 0 16px; padding-left: 22px; }
.lt-side { position: sticky; top: 84px; }
.lt-side .sb-card { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 2px 10px rgba(11, 28, 51, .06); margin-bottom: 20px; }
.lt-side .sb-title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--coral-ink); text-transform: uppercase; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--coral-soft); }
.lt-side .sb-list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--bg); color: var(--ink); font-size: .9rem; }
.lt-side .sb-list a:last-child { border-bottom: 0; }
.lt-side .sb-list a:hover, .lt-side .sb-list a.is-current { color: var(--teal-ink); font-weight: 600; }
@media (max-width: 900px) { .lt-wrap { grid-template-columns: 1fr; padding: 20px 14px 40px; } .lt-side { position: static; } .lt-body { padding: 20px 16px; } }

/* ---------- Plugin blocks re-coloured to the site palette ---------- */
.mlt-box, .mlt-index, .mlt-table-wrap, .mlt-checker {
	--mlt-accent: #08736f;
	--mlt-accent-soft: #e2f6f5;
	--mlt-border: #e3eaf0;
}
.mlt-quick { border-left: 0 !important; border: 1px solid #c9ece9 !important; }
.mlt-table thead th { background: var(--navy); }
.mlt-card-title { color: var(--navy) !important; }
.mlt-card a:hover { border-color: var(--coral) !important; }
.mlt-az-letter { color: var(--coral-ink) !important; }
.ms-page-body .mlt-index a, .ms-page-body .mlt-checker a { text-decoration: none; }
.ms-page-body .mlt-h3, .lt-body .mlt-h3 { margin-top: 0; }
.ms-page-body > p:empty, .lt-body > p:empty { display: none; }
.lt-body ul.mlt-chips, .ms-page-body .mlt-az ul, .ms-page-body .mlt-cards { padding-left: 0; }
.lt-body a { color: var(--teal-ink); }
.lt-body .mlt-partof a { text-decoration: underline; text-underline-offset: 3px; }
.mlt-chips a:hover { border-color: var(--coral) !important; color: var(--coral-ink) !important; }

/* ---------- Article content safety on phones ---------- */
.art-content, .lt-body, .ms-page-body { overflow-wrap: break-word; }
.art-content pre, .lt-body pre, .ms-page-body pre { white-space: pre-wrap; max-width: 100%; overflow-x: auto; background: var(--teal-soft); border-radius: 10px; padding: 14px 16px; font-size: .88em; line-height: 1.6; }
.art-content code, .lt-body code { overflow-wrap: anywhere; white-space: pre-wrap; }
.art-content table, .lt-body table:not(.mlt-table) { display: block; max-width: 100%; overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Health Info hub: coloured topic tiles ---------- */
.cat-card[class*="tone-"] { background: var(--t-soft) !important; border: 1px solid transparent !important; box-shadow: none !important; }
.cat-card[class*="tone-"]:hover { border-color: var(--t-fill) !important; transform: translateY(-3px); }
.cat-card[class*="tone-"] .cat-card-icon { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; background: var(--t); color: #fff; display: grid; place-items: center; font-size: 0; }
.cat-card[class*="tone-"] .cat-card-name { color: var(--navy) !important; }
.cat-card[class*="tone-"] .cat-card-count { background: #fff !important; color: var(--t) !important; }

/* Hero stat pills on phones */
@media (max-width: 980px) {
	.hx-art figcaption { flex-wrap: nowrap; }
	.hx-art figcaption span { flex: 1; padding: 8px 12px; font-size: .8rem; }
	.hx-art figcaption strong { font-size: 1.05rem; }
}

/* Quick picks under the checker */
.ck-picks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.ck-picks button { font: inherit; font-size: .86rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; background: var(--t-soft); color: var(--t); cursor: pointer; transition: border-color .15s; }
.ck-picks button:hover { border-color: var(--t-fill); }
.sb-search input { min-width: 0; }
