/*
Theme Name: NBT Times
Description: Health news and product review theme.
Version: 1.0.5
Text Domain: nbt-times
*/
:root{--bg:#f2f5f7;--surface:#fff;--ink:#102431;--muted:#51656f;--line:#d5dee3;--brand:#0e4f6b;--accent:#d7344b;--soft:#e2edf2;--c1:#cfe6df;--c2:#f6dcd3;--c3:#dcd9f0;--c4:#f2e8c4;--c5:#d3e4f3;--c6:#e7d5e2}
@media (prefers-color-scheme:dark){:root{color-scheme:dark;--bg:#0c171e;--surface:#13232d;--ink:#e8f0f4;--muted:#9bb0ba;--line:#26404d;--brand:#7cc4e0;--accent:#ff6f84;--soft:#173340;--c1:#1d3d38;--c2:#44282a;--c3:#2b2848;--c4:#3d3720;--c5:#1f3a50;--c6:#3d2a3a}}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.6 "DM Sans",system-ui,sans-serif}
:where(a){color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
:where(img){max-width:100%;height:auto}
.nbt-wrap{max-width:1240px;margin:0 auto;padding:0 20px}
:where(h1,h2,h3){font-family:"Source Serif 4",Georgia,serif;line-height:1.15;margin:0}
.nbt-disclose{background:var(--ink);color:var(--bg);font-size:13px;padding:8px 0;text-align:center}
.nbt-disclose a{text-decoration:underline}
.nbt-top{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.admin-bar .nbt-top{top:32px}
.nbt-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;flex-wrap:wrap}
.nbt-logo{font-family:"Source Serif 4",serif;font-weight:700;font-size:26px;letter-spacing:-.5px}
.nbt-logo b{color:var(--accent)}
.nbt-nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0;font-weight:500;font-size:15px;flex-wrap:wrap}
.nbt-nav a:hover{color:var(--accent)}
.nbt-cats{border-top:1px solid var(--line);overflow-x:auto;white-space:nowrap}
.nbt-cats .nbt-wrap{display:flex;gap:8px;padding-top:10px;padding-bottom:10px}
.nbt-chip{padding:6px 14px;border-radius:99px;background:var(--soft);font-size:14px;color:var(--brand);font-weight:500}
.nbt-chip:hover{background:var(--brand);color:var(--surface)}
.nbt-hero{display:grid;grid-template-columns:1.5fr 1fr;gap:32px;padding:44px 0 36px}
.nbt-hero h1{font-size:clamp(34px,5.2vw,56px);letter-spacing:-1px}
.nbt-hero p.nbt-lead{font-size:18px;color:var(--muted);max-width:56ch;margin:16px 0 24px}
.nbt-btns{display:flex;gap:12px;flex-wrap:wrap}
.nbt-btn{display:inline-block;padding:12px 22px;border-radius:8px;font-weight:700;background:var(--accent);color:#fff;border:0;cursor:pointer;font:inherit;font-weight:700}
.nbt-btn.nbt-alt{background:transparent;color:var(--ink);border:1.5px solid var(--ink)}
.nbt-trust{display:flex;gap:18px;flex-wrap:wrap;margin-top:22px;font-size:14px;color:var(--muted)}
.nbt-trust span::before{content:"✓ ";color:var(--accent);font-weight:700}
.nbt-today{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px;align-self:start}
.nbt-today h2{font-size:20px;margin-bottom:6px}
.nbt-today ul{list-style:none;margin:0;padding:0}
.nbt-today li{padding:13px 0;border-top:1px solid var(--line)}
.nbt-today li:first-child{border-top:0}
.nbt-today a{font-weight:500}
.nbt-today a:hover{color:var(--accent)}
.nbt-today small{display:block;color:var(--muted);font-size:13px}
section.nbt-block{padding:36px 0}
.nbt-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:22px}
.nbt-head h2{font-size:clamp(26px,3.4vw,34px)}
.nbt-head p{margin:6px 0 0;color:var(--muted);max-width:60ch}
.nbt-head a.nbt-more{color:var(--brand);font-weight:700;white-space:nowrap}
.nbt-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.nbt-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.nbt-card:hover{border-color:var(--brand)}
.nbt-thumb{aspect-ratio:16/9;display:grid;place-items:center;font-size:44px;overflow:hidden}
.nbt-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.nbt-t1{background:var(--c1)}.nbt-t2{background:var(--c2)}.nbt-t3{background:var(--c3)}.nbt-t4{background:var(--c4)}.nbt-t5{background:var(--c5)}.nbt-t6{background:var(--c6)}
.nbt-card .nbt-body{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1}
.nbt-tag{font-size:13px;color:var(--accent);font-weight:700}
.nbt-card h3{font-size:20px}
.nbt-card p{margin:0;color:var(--muted);font-size:15px}
.nbt-card .nbt-meta{margin-top:auto;padding-top:8px;font-size:13px;color:var(--muted)}
.nbt-method{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.nbt-method div{border-left:4px solid var(--brand);padding:4px 0 4px 18px}
.nbt-method h3{font-size:21px;margin-bottom:6px}
.nbt-method p{margin:0;color:var(--muted)}
.nbt-promise{background:var(--brand);color:#fff;border-radius:16px;padding:40px;display:grid;grid-template-columns:1.4fr 1fr;gap:32px;align-items:center}
@media (prefers-color-scheme:dark){.nbt-promise{color:#06151c}}
.nbt-promise h2{font-size:clamp(26px,3.4vw,36px);margin-bottom:12px}
.nbt-promise p{margin:0 0 18px;opacity:.92}
.nbt-promise a.nbt-btn{background:#fff;color:var(--brand)}
.nbt-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;text-align:center}
.nbt-stats b{display:block;font-family:"Source Serif 4",serif;font-size:36px}
.nbt-stats span{font-size:13px;opacity:.9}
.nbt-news{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:28px}
.nbt-news input[type=email],.nbt-news input[type=text]{padding:12px 14px;border:1.5px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font:inherit;max-width:100%}
/* inner pages */
.nbt-pagehead{padding:36px 0 8px}
.nbt-pagehead h1{font-size:clamp(30px,4.5vw,46px);letter-spacing:-.5px}
.nbt-pagehead p{color:var(--muted)}
.nbt-article{max-width:760px;margin:0 auto;padding:36px 20px}
.nbt-article h1{font-size:clamp(32px,5vw,48px);letter-spacing:-.8px;margin:8px 0 12px}
.nbt-article .nbt-meta{color:var(--muted);font-size:14px;margin-bottom:20px}
.nbt-article .nbt-feat img{width:100%;border-radius:12px;margin-bottom:24px}
.nbt-notice{background:var(--soft);border-left:4px solid var(--brand);padding:12px 16px;border-radius:6px;font-size:14px;margin:18px 0}
.nbt-entry{font-size:17.5px;line-height:1.75}
.nbt-entry h2{font-size:28px;margin:32px 0 10px}
.nbt-entry h3{font-size:22px;margin:26px 0 8px}
.nbt-entry a{color:var(--brand);text-decoration:underline}
.nbt-entry table{border-collapse:collapse;width:100%;display:block;overflow-x:auto}
.nbt-entry th,.nbt-entry td{border:1px solid var(--line);padding:8px 12px;text-align:left}
.nbt-entry blockquote{margin:20px 0;padding:4px 18px;border-left:4px solid var(--accent);color:var(--muted)}
.nbt-pagination{display:flex;gap:8px;justify-content:center;margin:32px 0;flex-wrap:wrap}
.nbt-pagination .page-numbers{padding:8px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.nbt-pagination .current{background:var(--brand);color:var(--surface);border-color:var(--brand)}
.nbt-footer{background:var(--ink);color:#c9d6dc;margin-top:48px;padding:44px 0 28px;font-size:14px}
@media (prefers-color-scheme:dark){.nbt-footer{background:#07110f}}
.nbt-footer .nbt-cols{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:28px}
.nbt-footer h4{margin:0 0 10px;color:#fff;font-size:15px}
.nbt-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.nbt-footer a:hover{color:#fff;text-decoration:underline}
.nbt-footer .nbt-logo{color:#fff;display:inline-block;margin-bottom:8px}
.nbt-footer .nbt-fine{border-top:1px solid #2c4350;margin-top:28px;padding-top:18px;font-size:13px}
@media (max-width:860px){.nbt-hero,.nbt-promise,.nbt-footer .nbt-cols{grid-template-columns:1fr}.nbt-grid,.nbt-method{grid-template-columns:1fr 1fr}.nbt-promise{padding:28px}.nbt-nav ul{gap:14px;font-size:14px}}
@media (max-width:782px){.admin-bar .nbt-top{top:46px}}
@media (max-width:560px){.nbt-grid,.nbt-method{grid-template-columns:1fr}.nbt-head{flex-direction:column;align-items:start}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* Dropdown submenu */
.nbt-nav>ul>li{position:relative;padding:8px 0}
.nbt-nav .menu-item-has-children>a::after{content:" ▾";font-size:12px}
.nbt-nav .sub-menu{display:none;position:absolute;top:100%;left:-12px;min-width:230px;margin:0;padding:8px;list-style:none;flex-direction:column;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.14);z-index:30}
.nbt-nav li:hover>.sub-menu,.nbt-nav li:focus-within>.sub-menu{display:flex}
.nbt-nav .sub-menu a{display:block;padding:8px 12px;border-radius:6px;white-space:nowrap}
.nbt-nav .sub-menu a:hover{background:var(--soft);color:var(--accent)}
@media (max-width:860px){
 .nbt-nav .sub-menu{display:flex;position:static;box-shadow:none;border:0;background:transparent;padding:4px 0 0 12px}
 .nbt-nav .menu-item-has-children>a::after{content:""}
}
/* Review list rows */
.nbt-narrow{max-width:820px;margin:0 auto}
.nbt-rows{display:grid;gap:18px}
.nbt-row{display:grid;grid-template-columns:150px 1fr;gap:22px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px}
.nbt-row:hover{border-color:var(--brand)}
.nbt-row .nbt-pic{aspect-ratio:1;display:grid;place-items:center;border-radius:10px;overflow:hidden;font-size:44px}
.nbt-row .nbt-pic.nbt-has-img{background:#fff}
.nbt-row .nbt-pic img{width:100%;height:100%;object-fit:contain;display:block}
.nbt-row h3{font-size:22px;margin:4px 0 6px}
.nbt-row h3 a:hover{color:var(--accent)}
.nbt-row p{margin:0 0 14px;color:var(--muted);font-size:15px}
.nbt-row .nbt-btn{padding:9px 16px;font-size:14px;background:var(--brand);color:var(--surface)}
@media (max-width:520px){.nbt-row{grid-template-columns:96px 1fr;gap:14px;padding:14px}.nbt-row h3{font-size:18px}.nbt-row p{font-size:14px}}
/* Review template blocks */
.nbt-entry .nbt-verdict{background:var(--soft);border-radius:12px;padding:20px 24px;margin:20px 0}
.nbt-entry .nbt-verdict h3{margin-top:0}
.nbt-entry .nbt-verdict ul{margin:8px 0 0;padding-left:20px}
.nbt-entry .nbt-pros,.nbt-entry .nbt-cons{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px 20px;height:100%}
.nbt-entry .nbt-pros{border-top:4px solid #2e8b57}
.nbt-entry .nbt-cons{border-top:4px solid var(--accent)}
.nbt-entry .nbt-pros h3,.nbt-entry .nbt-cons h3{margin-top:0}
.nbt-entry .nbt-buy .wp-block-button__link{background:var(--accent);color:#fff;border-radius:8px;font-weight:700;text-decoration:none;padding:13px 26px}
.nbt-entry details{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 18px;margin:10px 0}
.nbt-entry summary{cursor:pointer;font-weight:700}
.nbt-entry details p{margin:10px 0 0}
.nbt-entry .wp-block-table th{background:var(--soft)}
/* Wider posts */
.nbt-article.nbt-single{max-width:1240px}
.nbt-article.nbt-single .nbt-article-head,
.nbt-single .nbt-entry>p,.nbt-single .nbt-entry>ul,.nbt-single .nbt-entry>ol,.nbt-single .nbt-entry>h2,.nbt-single .nbt-entry>h3,.nbt-single .nbt-entry>h4,.nbt-single .nbt-entry>details,.nbt-single .nbt-entry>blockquote,.nbt-single .nbt-entry>.wp-block-buttons,.nbt-single .nbt-entry>.wp-block-heading{max-width:860px;margin-left:auto;margin-right:auto}
.nbt-single .nbt-entry>.wp-block-buttons{justify-content:flex-start}
.nbt-single .nbt-entry>h2{margin-top:40px}
.nbt-article.nbt-single .nbt-feat{max-width:1240px}
.nbt-single .nbt-entry img,.nbt-single .nbt-entry figure{max-width:100%}
.nbt-single .nbt-entry>figure.wp-block-image{max-width:900px;margin-left:auto;margin-right:auto}
/* Full width template */
main.nbt-fullwidth{width:100%;max-width:none;margin:0;padding:0}
main.nbt-fullwidth>*{max-width:100%}
