:root{--bg:#fff;--surface:#fff;--muted:#666;--text:#111;--line:#d8d8d8;--soft:#f4f4f4;--accent:#111;--accent-contrast:#fff;--max:1180px;--serif:Georgia,'Times New Roman',serif;--sans:Arial,Helvetica,sans-serif;--shadow:0 10px 30px rgba(0,0,0,.08)}
html[data-theme='dark']{--bg:#0b0b0b;--surface:#121212;--muted:#aaa;--text:#f5f5f5;--line:#303030;--soft:#181818;--accent:#f5f5f5;--accent-contrast:#111}
html[data-accent='red']{--accent:#c5162e;--accent-contrast:#fff}html[data-accent='cyan']{--accent:#00a8b5;--accent-contrast:#071718}html[data-accent='blue']{--accent:#1267d6;--accent-contrast:#fff}html[data-accent='purple']{--accent:#6d36c8;--accent-contrast:#fff}html[data-accent='green']{--accent:#176b45;--accent-contrast:#fff}html[data-accent='sunset']{--accent:#e86a17;--accent-contrast:#fff}html[data-accent='black'][data-theme='dark']{--accent:#fff;--accent-contrast:#111}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.45}a{color:inherit;text-decoration:none}img,video{max-width:100%;display:block}button,input,textarea,select{font:inherit;color:inherit}.shell{width:min(calc(100% - 32px),var(--max));margin-inline:auto}.skip{position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--accent-contrast);padding:10px 14px;z-index:999}.skip:focus{left:10px}.icon{width:22px;height:22px;vertical-align:middle}.site-header{background:var(--bg);position:sticky;top:0;z-index:50;border-top:1px solid var(--text)}.topbar{height:72px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}.logo-wrap{display:flex;justify-content:center}.logo{width:158px;height:auto}.logo-dark{display:none}html[data-theme='dark'] .logo-light{display:none}html[data-theme='dark'] .logo-dark{display:block}.header-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px}.icon-btn{border:0;background:transparent;padding:8px;display:inline-grid;place-items:center;cursor:pointer}.icon-btn:hover{background:var(--soft)}.text-link{font-size:14px;font-weight:700}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:var(--accent-contrast);border:1px solid var(--accent);padding:11px 18px;font-weight:700;cursor:pointer;transition:.16s}.button:hover{background:var(--bg);color:var(--accent)}.button.compact{padding:8px 12px;font-size:13px}.button.ghost{background:transparent;color:var(--text);border-color:var(--line)}.button.danger{--accent:#b42318}.main-nav{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--bg)}.nav-scroll{display:flex;gap:0;overflow-x:auto;scrollbar-width:none}.nav-scroll::-webkit-scrollbar{display:none}.nav-scroll>a,.nav-more{border:0;background:transparent;padding:11px 10px;font-weight:700;font-size:14px;white-space:nowrap;cursor:pointer}.nav-scroll>a:hover,.nav-more:hover{box-shadow:inset 0 -3px var(--accent)}
.drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.48);z-index:79}.drawer{position:fixed;left:0;top:0;bottom:0;width:min(360px,88vw);background:var(--bg);z-index:80;transform:translateX(-102%);transition:.22s;overflow:auto;border-right:1px solid var(--line)}.drawer.open{transform:none}.drawer-head{height:72px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.drawer-logo{width:140px}.drawer-search{display:flex;margin:14px;border:1px solid var(--text)}.drawer-search input{flex:1;border:0;background:transparent;padding:12px;min-width:0}.drawer-search button{width:48px;border:0;background:var(--text);color:var(--bg)}.drawer-nav{display:flex;flex-direction:column}.drawer-nav a{padding:13px 18px;border-top:1px solid var(--line);font-weight:700}.drawer-nav a:hover{padding-left:22px}.drawer-social,.footer-social{display:flex;gap:14px;padding:20px}.accent-row{border-top:1px solid var(--line);display:flex;align-items:center;gap:9px;padding:16px 18px;font-size:13px}.accent-dot{width:19px;height:19px;border-radius:50%;border:1px solid var(--line);cursor:pointer}.accent-black{background:#111}.accent-red{background:#c5162e}.accent-cyan{background:#00a8b5}.accent-blue{background:#1267d6}.accent-purple{background:#6d36c8}.accent-green{background:#176b45}.accent-sunset{background:#e86a17}
.hero{padding:26px 0 34px}.hero-grid{display:grid;grid-template-columns:1fr 1.8fr 1fr;gap:18px}.hero-col{display:grid;gap:18px}.story-card{border-bottom:1px solid var(--line);padding-bottom:16px}.story-card .card-media{aspect-ratio:16/9;overflow:hidden;background:var(--soft)}.story-card .card-media img{width:100%;height:100%;object-fit:cover}.story-card h1,.story-card h3{font-family:var(--serif);line-height:1.05;margin:8px 0}.story-card h1{font-size:clamp(30px,4vw,48px)}.story-card h3{font-size:21px}.story-card.lead .card-media{aspect-ratio:4/3}.story-card p{margin:8px 0;color:var(--text)}.story-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:12px;text-transform:capitalize;margin-top:10px}.story-meta span+span,.story-meta time+span{border-left:1px solid var(--line);padding-left:10px}.story-card.compact h3{font-size:18px}.story-card.compact .card-media{aspect-ratio:3/2}.editorial-section{padding:26px 0}.section-heading{display:flex;align-items:center;justify-content:space-between;border-top:2px solid var(--text);padding-top:8px;margin-bottom:16px}.section-heading h2{font-size:14px;letter-spacing:.04em;text-transform:uppercase;margin:0;font-weight:800}.section-heading a{font-size:13px;font-weight:700;display:flex;gap:5px;align-items:center}.section-heading .icon{width:17px}.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.grid-5{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.dark-band{background:#111;color:#fff}.dark-band .section-heading{border-color:#fff}.dark-band .story-card{border-color:#3c3c3c}.dark-band .story-meta{color:#bbb}.story-list{display:grid;grid-template-columns:1fr 180px;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.story-list h3{font-family:var(--serif);font-size:21px;line-height:1.15;margin:5px 0}.story-list p{margin:7px 0;color:var(--muted)}.story-list-image{aspect-ratio:16/9;overflow:hidden}.story-list-image img{width:100%;height:100%;object-fit:cover}.list-page{padding:28px 0 60px}.page-title{font-family:var(--serif);font-size:clamp(34px,5vw,56px);line-height:1;margin:0 0 20px}.page-intro{max-width:760px;color:var(--muted);margin-bottom:24px}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:40px}.sidebar-box{border-top:2px solid var(--text);padding-top:10px;margin-bottom:24px}.sidebar-box h3{margin:0 0 10px;font-size:14px;text-transform:uppercase}.sidebar-box .story-list{grid-template-columns:1fr;padding:11px 0}.sidebar-box .story-list-image{display:none}
.ad{margin:18px auto;text-align:center;width:min(100%,var(--ad-w,970px));min-height:var(--ad-h,auto)}.ad img,.ad video{margin:auto;max-height:320px;object-fit:contain}.ad-label{display:block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:5px}.ad-square{max-width:300px}.ad-mobile{max-width:360px}
.article-wrap{padding:28px 0 60px}.article-head{max-width:920px;margin:auto}.article-kicker{text-transform:uppercase;font-size:13px;font-weight:800;color:var(--accent);margin-bottom:8px}.article-head h1{font-family:var(--serif);font-size:clamp(38px,6vw,70px);line-height:.98;letter-spacing:-.025em;margin:0}.article-dek{font-family:var(--serif);font-size:21px;max-width:850px;margin:18px 0}.article-byline{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 0;font-size:13px}.article-hero{max-width:1120px;margin:22px auto}.article-hero img,.article-hero video{width:100%;max-height:720px;object-fit:cover}.article-layout{display:grid;grid-template-columns:minmax(0,720px) 280px;gap:50px;max-width:1060px;margin:26px auto}.article-body{font-family:var(--serif);font-size:19px;line-height:1.62}.article-body p{margin:0 0 20px}.article-body h2{font-size:30px;line-height:1.1;margin:36px 0 12px}.article-body h3{font-size:23px;margin:28px 0 10px}.article-body a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}.article-body blockquote{border-left:4px solid var(--accent);margin:25px 0;padding-left:18px;font-style:italic}.article-body ul,.article-body ol{padding-left:24px}.source-box{font-family:var(--sans);font-size:13px;border-top:2px solid var(--text);padding-top:10px;margin-top:35px}.source-box a{text-decoration:none;font-weight:700}.tags{display:flex;gap:7px;flex-wrap:wrap;margin:20px 0}.tags span,.pill{font-family:var(--sans);font-size:11px;text-transform:uppercase;border:1px solid var(--line);padding:5px 7px}.media-embed{margin:22px 0}.media-embed video,.media-embed audio{width:100%}
.site-footer{border-top:1px solid var(--line);padding:28px 0 16px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.footer-logo{width:145px}.site-footer nav{display:flex;flex-direction:column;gap:8px;font-size:14px}.footer-social{padding:0;justify-content:flex-end}.legal{border-top:1px solid var(--line);margin-top:24px;padding-top:13px;color:var(--muted);font-size:11px}
.search-form{display:flex;max-width:650px;border:1px solid var(--text);margin-bottom:28px}.search-form input{flex:1;padding:13px;border:0;background:transparent}.search-form button{width:54px;background:var(--text);color:var(--bg);border:0}.empty-state{padding:40px 0;color:var(--muted);border-top:1px solid var(--line)}
.map-shell{height:calc(100vh - 118px);min-height:620px;position:relative}.map-controls{position:absolute;left:18px;top:18px;z-index:4;background:var(--surface);box-shadow:var(--shadow);padding:12px;width:min(320px,calc(100% - 36px))}.map-controls h1{font-family:var(--serif);font-size:24px;margin:0 0 9px}.map-filter-row{display:flex;gap:6px;flex-wrap:wrap}.map-filter-row button{background:var(--bg);border:1px solid var(--line);padding:6px 8px;font-size:11px;cursor:pointer}.map-filter-row button.active{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent)}#ddc-map{height:100%;background:var(--soft)}.maplibregl-popup-content{font-family:Arial,Helvetica,sans-serif;color:#111}.map-popup h3{font-family:Georgia,serif;margin:4px 0 8px}.map-popup a{font-weight:700;text-decoration:underline}
.market-strip{display:flex;gap:0;overflow:auto;border-bottom:1px solid var(--line);background:var(--bg)}.market-strip .quote{min-width:150px;padding:10px 13px;border-right:1px solid var(--line)}.quote strong{display:block;font-size:13px}.quote span{font-size:12px;color:var(--muted)}.positive{color:#147d47!important}.negative{color:#b42318!important}.market-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.market-card{border:1px solid var(--line);padding:16px}.market-card h3{margin:0 0 8px}.market-price{font-family:var(--serif);font-size:30px}.weather-card{border:1px solid var(--line);padding:18px;max-width:620px}.weather-temp{font-size:54px;font-family:var(--serif)}
.opportunities-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.opportunity-card{border-top:2px solid var(--text);padding:14px 0}.opportunity-card h3{font-family:var(--serif);font-size:22px;line-height:1.15;margin:8px 0}.opportunity-card p{color:var(--muted)}.op-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;margin:12px 0}.op-meta span{border-left:1px solid var(--line);padding-left:8px}.op-meta span:first-child{border-left:0;padding-left:0}
.form-grid{display:grid;gap:14px}.field{display:grid;gap:6px}.field label{font-size:13px;font-weight:700}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);background:var(--bg);padding:10px}.field textarea{min-height:120px;resize:vertical}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.check-row{display:flex;gap:14px;flex-wrap:wrap}.notice{padding:12px;border-left:4px solid var(--accent);background:var(--soft)}
.admin-body{background:#f6f6f6;color:#111}.admin-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.admin-side{background:#111;color:#fff;padding:20px 14px;position:sticky;top:0;height:100vh;overflow:auto}.admin-side img{width:150px;margin:0 auto 28px}.admin-side nav{display:grid;gap:4px}.admin-side a{padding:10px 11px}.admin-side a:hover{background:#292929}.admin-main{padding:28px;min-width:0}.admin-main h1{font-family:var(--serif);font-size:38px;margin:0 0 20px}.admin-card{background:#fff;border:1px solid #ddd;padding:18px;margin-bottom:18px}.admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{background:#fff;border:1px solid #ddd;padding:16px}.stat strong{font-size:28px;display:block}.admin-table{width:100%;border-collapse:collapse;background:#fff}.admin-table th,.admin-table td{text-align:left;padding:10px;border-bottom:1px solid #ddd;font-size:13px;vertical-align:top}.admin-actions{display:flex;gap:6px}.admin-login{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f3f3f3}.login-card{width:min(440px,100%);background:#fff;border:1px solid #ddd;padding:28px}.login-card img{width:170px;margin:auto auto 24px}.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.admin-tabs a{background:#fff;border:1px solid #ddd;padding:8px 10px;font-size:13px}.code-block{background:#111;color:#fff;padding:12px;overflow:auto;font:12px/1.5 ui-monospace,Consolas,monospace}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr 1fr}.hero-grid>.hero-col:last-child{grid-column:1/-1;grid-template-columns:repeat(2,1fr)}.content-layout,.article-layout{grid-template-columns:1fr}.article-layout{max-width:760px}.article-sidebar{display:none}.grid-4,.grid-5{grid-template-columns:repeat(2,1fr)}.grid-3,.opportunities-grid,.market-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr 1fr}.footer-social{justify-content:flex-start}.admin-shell{grid-template-columns:1fr}.admin-side{position:relative;height:auto}.admin-side nav{grid-template-columns:repeat(3,1fr)}.admin-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.shell{width:min(calc(100% - 20px),var(--max))}.topbar{height:62px;grid-template-columns:44px 1fr 80px}.logo{width:128px}.header-actions .button,.desktop-only{display:none}.main-nav{display:none}.hero{padding-top:14px}.hero-grid{display:block}.hero-col{display:block}.hero-col .story-card{margin-bottom:18px}.hero-grid>.hero-col:last-child{display:block}.story-card.lead h1{font-size:34px}.grid-2,.grid-3,.grid-4,.grid-5,.opportunities-grid,.market-grid{grid-template-columns:1fr}.story-list{grid-template-columns:1fr 112px;gap:12px}.story-list h3{font-size:18px}.story-list p{display:none}.article-head h1{font-size:41px}.article-dek{font-size:18px}.article-layout{margin-top:18px}.article-body{font-size:18px}.article-byline{align-items:flex-start;flex-direction:column}.footer-grid{grid-template-columns:1fr}.map-shell{height:calc(100vh - 62px);min-height:560px}.map-controls{top:10px;left:10px;width:calc(100% - 20px)}.two-col{grid-template-columns:1fr}.admin-main{padding:16px}.admin-grid{grid-template-columns:1fr}.admin-side nav{grid-template-columns:repeat(2,1fr)}.admin-table{display:block;overflow:auto}.nav-scroll{display:none}}

/* Production editorial refinements */
.breaking-bar{background:var(--text);color:var(--bg);border-bottom:1px solid var(--line)}.breaking-bar .shell{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;min-height:40px}.breaking-bar strong{font-size:12px;text-transform:uppercase;letter-spacing:.06em}.breaking-items{display:flex;gap:24px;overflow:hidden;white-space:nowrap}.breaking-items a{font-family:var(--serif);font-weight:700;text-overflow:ellipsis;overflow:hidden}.home-market{padding-top:2px}.latest-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px}.most-read{border-top:2px solid var(--text)}.most-read h3{text-transform:uppercase;font-size:13px;letter-spacing:.05em}.most-read a{display:grid;grid-template-columns:36px 1fr;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-family:var(--serif);line-height:1.15}.most-read a span{font-family:var(--sans);font-size:24px;color:var(--accent)}.category-lead{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);gap:22px;margin-bottom:26px}.category-support{display:grid;grid-template-columns:1fr 1fr;gap:16px}.category-support .story-card{min-width:0}.data-panel{padding:14px 0 24px}.spaced-heading{margin-top:34px}.filter-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 26px}.filter-tabs a{border:1px solid var(--line);padding:7px 10px;font-size:12px;text-transform:capitalize;font-weight:700}.filter-tabs a.active,.filter-tabs a:hover{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent)}.inline-form{display:flex;gap:8px;margin-bottom:16px}.inline-form input{border:1px solid var(--line);background:var(--bg);padding:9px 10px;width:110px}.archive-note{display:flex;gap:12px;align-items:center;margin:14px 0;padding:10px 12px;background:var(--soft);font-size:13px}.archive-note strong{color:var(--accent)}.prose-narrow{max-width:760px}.video-frame{position:relative;aspect-ratio:16/9;margin:24px 0;background:#000}.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.article-body img{height:auto;margin:22px auto}.article-body hr{border:0;border-top:1px solid var(--line);margin:32px 0}.honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.muted{color:#666}.admin-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.admin-title-row h1{margin-bottom:4px}.admin-title-row p{margin:0}.admin-filter .button{justify-self:start}.table-wrap{overflow:auto;background:#fff}.status-pill{display:inline-block;border:1px solid #ccc;padding:3px 7px;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.status-pill.ok{border-color:#16824d;color:#106a3e}.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.article-editor{min-height:500px!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;line-height:1.5}.sticky-submit{position:sticky;bottom:12px;display:flex;justify-content:flex-end;z-index:10;pointer-events:none}.sticky-submit .button{pointer-events:auto;box-shadow:0 8px 30px rgba(0,0,0,.18)}.admin-ad-preview{max-width:520px;max-height:180px;object-fit:contain;margin:10px 0 16px;border:1px solid #ddd}.ad-edit-card{border-top:1px solid #eee;padding-top:14px}.category-manager{display:grid;gap:10px}.category-row{display:grid;grid-template-columns:1fr 1fr 1fr 90px 1.7fr auto auto auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}.category-row input,.category-row select{min-width:0;border:1px solid #ccc;padding:8px;background:#fff}.category-row label{font-size:12px;white-space:nowrap}.media-library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.media-item{background:#fff;border:1px solid #ddd;padding:10px;min-width:0}.media-item img{width:100%;aspect-ratio:16/10;object-fit:cover;margin-bottom:8px}.media-item code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;margin:7px 0}.media-file{aspect-ratio:16/10;background:#eee;display:grid;place-items:center;margin-bottom:8px;font-size:12px}.check-row.vertical{display:grid;gap:10px}.source-config .stat{min-height:86px}.small-status{font-size:14px!important;margin-top:8px}.small-status.ok{color:#16824d}.small-status.off{color:#777}.map-intro{margin:0 0 9px;font-size:12px}.map-legend{display:flex;flex-wrap:wrap;gap:7px}.map-count{font-size:11px;color:var(--muted);margin-top:8px}.markets-main{margin-top:16px}.quote .quote-value{font-weight:800}.quote .quote-change{font-size:11px}.weather-card p{text-transform:capitalize}.story-card a:hover,.story-list a:hover{color:var(--accent)}.site-footer a:hover,.drawer-nav a:hover{color:var(--accent)}

@media(max-width:1000px){.category-lead{grid-template-columns:1fr}.category-support{grid-template-columns:repeat(4,1fr)}.latest-layout{grid-template-columns:1fr}.most-read{margin-top:8px}.media-library{grid-template-columns:repeat(3,1fr)}.category-row{grid-template-columns:1fr 1fr 1fr 80px}.category-row input[name="description"]{grid-column:1/-1}.category-row label,.category-row button{justify-self:start}}
@media(max-width:760px){.breaking-bar .shell{grid-template-columns:auto minmax(0,1fr)}.breaking-items a:not(:first-child){display:none}.category-support{grid-template-columns:repeat(2,1fr)}.three-col{grid-template-columns:1fr}.media-library{grid-template-columns:repeat(2,1fr)}.admin-title-row{align-items:stretch;flex-direction:column}.category-row{grid-template-columns:1fr}.category-row input[name="description"]{grid-column:auto}.admin-actions{flex-wrap:wrap}.sticky-submit{bottom:8px}.archive-note{align-items:flex-start;flex-direction:column;gap:3px}}
@media(max-width:480px){.category-support{grid-template-columns:1fr}.media-library{grid-template-columns:1fr}.breaking-bar{font-size:13px}.page-title{font-size:38px}.article-head h1{font-size:38px}.map-filter-row{max-height:112px;overflow:auto}}

/* DDC News — center desktop navigation */
@media (min-width: 641px) {
  .main-nav .nav-scroll {
    justify-content: center;
  }
}


/* Dose AI branding */
.dose-ai-nav {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-weight:700;
  font-size:13px;
  white-space:nowrap;
}
.dose-ai-nav img {
  width:30px;
  height:30px;
  object-fit:contain;
}
.dose-icon-dark { display:none; }
html[data-theme="dark"] .dose-icon-light { display:none; }
html[data-theme="dark"] .dose-icon-dark { display:block; }

/* DDC auth */
.auth-shell{
  max-width:760px;
  margin:40px auto;
  padding:0 16px;
}
.auth-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:20px;
  padding:24px;
  background:var(--surface,#fff);
}
.auth-brand h1{margin:0 0 8px}
.auth-brand p{margin:0 0 18px;opacity:.75}
.auth-form{
  display:grid;
  gap:10px;
}
.auth-form input{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  background:transparent;
}
.btn-dark{
  padding:14px 18px;
  border-radius:14px;
  border:0;
  cursor:pointer;
  background:#111;
  color:#fff;
  font-weight:700;
}
.pref-box,.donation-box,.follow-box{
  margin-top:16px;
  padding:16px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
}
.category-checks,.donation-options,.social-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.social-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  text-decoration:none;
  color:inherit;
}
.auth-links{
  display:flex;
  gap:16px;
  margin-top:16px;
}
.auth-message{margin-top:14px;min-height:20px}

/* Dose AI floating launcher */
.dose-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  width:66px;
  height:66px;
  border:0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:9999;
}
.dose-fab img{
  width:38px;
  height:38px;
  object-fit:contain;
}
.dose-fab-dark{display:none}
html[data-theme="dark"] .dose-fab{
  background:#111;
}
html[data-theme="dark"] .dose-fab-light{display:none}
html[data-theme="dark"] .dose-fab-dark{display:block}
.dose-fab-badge{
  position:absolute;
  top:8px;
  right:8px;
  width:10px;
  height:10px;
  border-radius:999px;
  background:#ff3b30;
  box-shadow:0 0 0 0 rgba(255,59,48,.7);
  animation:dosePulse 1.6s infinite;
}
@keyframes dosePulse{
  0%{box-shadow:0 0 0 0 rgba(255,59,48,.7)}
  70%{box-shadow:0 0 0 10px rgba(255,59,48,0)}
  100%{box-shadow:0 0 0 0 rgba(255,59,48,0)}
}

/* Dose AI modal */
.dose-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:none;
  align-items:flex-end;
  justify-content:flex-end;
  z-index:9998;
  padding:16px;
}
.dose-modal.open{display:flex}
.dose-modal-panel{
  width:min(420px,100%);
  height:min(640px,82vh);
  background:#fff;
  border-radius:22px;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
html[data-theme="dark"] .dose-modal-panel{
  background:#111;
  color:#fff;
}
.dose-modal-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:16px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
html[data-theme="dark"] .dose-modal-top{border-bottom-color:rgba(255,255,255,.08)}
.dose-modal-brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.dose-modal-brand h3{margin:0}
.dose-modal-brand p{margin:2px 0 0;opacity:.7}
.dose-modal-brand-icon img{
  width:38px;height:38px;object-fit:contain
}
.dose-modal-brand .dose-fab-dark{display:none}
html[data-theme="dark"] .dose-modal-brand .dose-fab-light{display:none}
html[data-theme="dark"] .dose-modal-brand .dose-fab-dark{display:block}
.dose-modal-actions{
  display:flex;
  gap:8px;
}
.dose-icon-btn{
  width:34px;height:34px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.08);
  color:inherit;
  background:transparent;
  cursor:pointer;
}
html[data-theme="dark"] .dose-icon-btn{border-color:rgba(255,255,255,.12)}
.dose-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:12px 16px;
}
.dose-tab{
  border:1px solid rgba(0,0,0,.08);
  background:transparent;
  border-radius:14px;
  padding:12px;
  cursor:pointer;
}
.dose-tab.active{
  background:#111;
  color:#fff;
}
html[data-theme="dark"] .dose-tab{
  border-color:rgba(255,255,255,.12);
}
html[data-theme="dark"] .dose-tab.active{
  background:#fff;color:#111;
}
.dose-chat-area{
  flex:1;
  overflow:auto;
  padding:12px 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.dose-welcome,.dose-history-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:14px;
}
html[data-theme="dark"] .dose-welcome,
html[data-theme="dark"] .dose-history-card{
  border-color:rgba(255,255,255,.08);
}
.dose-bubble{
  display:flex;
}
.dose-bubble.user{justify-content:flex-end}
.dose-bubble.assistant{justify-content:flex-start}
.dose-bubble-inner{
  max-width:84%;
  padding:12px 14px;
  border-radius:16px;
  background:#f3f3f3;
}
.dose-bubble.user .dose-bubble-inner{
  background:#111;
  color:#fff;
}
html[data-theme="dark"] .dose-bubble.assistant .dose-bubble-inner{
  background:#1a1a1a;
  color:#fff;
}
.dose-chat-form{
  display:grid;
  grid-template-columns:1fr 52px;
  gap:10px;
  padding:16px;
  border-top:1px solid rgba(0,0,0,.08);
}
html[data-theme="dark"] .dose-chat-form{border-top-color:rgba(255,255,255,.08)}
.dose-chat-form input{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.12);
  padding:14px 16px;
}
.dose-chat-form button{
  border:0;
  border-radius:16px;
  background:#111;
  color:#fff;
  cursor:pointer;
}

/* Prevent overlapping news content */
.hero-grid,
.hero-grid>*,
.hero-col,
.latest-layout,
.latest-layout>*,
.grid-2,
.grid-3,
.grid-4,
.grid-5,
.story-card,
.story-list,
.story-list>*{
  min-width:0;
  max-width:100%;
}

.story-card,
.story-list,
.opportunity-card{
  overflow-wrap:anywhere;
}

.story-card h1,
.story-card h2,
.story-card h3,
.story-list h3,
.most-read strong{
  overflow-wrap:anywhere;
  line-height:1.24;
  hyphens:auto;
}

.story-card img,
.story-list img,
.card-media img{
  display:block;
  max-width:100%;
  object-fit:cover;
}

.grid-2,
.grid-3,
.grid-4,
.grid-5,
.hero-grid,
.opportunities-grid{
  align-items:start;
}

/* Careers and grant directories */
.ddcn-jobs-grid,
.ddcn-source-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin:24px 0 36px;
}

.ddcn-job-card,
.ddcn-source{
  border:1px solid var(--line);
  padding:20px;
  min-width:0;
  overflow-wrap:anywhere;
  background:var(--bg);
  color:var(--text);
}

.ddcn-job-card h3{
  font-family:var(--serif);
  font-size:22px;
  line-height:1.2;
}

.ddcn-source{
  display:flex;
  flex-direction:column;
  gap:8px;
  text-decoration:none;
}

.ddcn-source span,
.ddcn-source-name{
  color:var(--muted);
}

.ddcn-expired{
  color:#ae4336;
}

.ddcn-source-directory{
  margin:42px 0;
}

@media(max-width:850px){
  .ddcn-jobs-grid,
  .ddcn-source-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:640px){
  .ddcn-jobs-grid,
  .ddcn-source-grid{
    grid-template-columns:1fr;
  }
}

/* Dose AI floating logo */
.ddcn-dose-fab{
  position:fixed;
  bottom:20px;
  right:20px;
  width:64px;
  height:64px;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  z-index:9000;
  filter:drop-shadow(0 5px 8px #0002);
}

.ddcn-dose-fab img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.ddcn-dose-fab .dark-logo{
  display:none;
}

html[data-theme=dark] .ddcn-dose-fab .light-logo{
  display:none;
}

html[data-theme=dark] .ddcn-dose-fab .dark-logo{
  display:block;
}

.ddcn-dose-pulse{
  position:absolute;
  top:2px;
  right:2px;
  width:11px;
  height:11px;
  border-radius:50%;
  background:#dc4343;
  animation:ddcnPulse 1.7s infinite;
}

@keyframes ddcnPulse{
  50%{box-shadow:0 0 0 9px #dc434300}
  0%,100%{box-shadow:0 0 0 2px #dc43434d}
}

/* Dose AI popup */
.ddcn-dose-overlay{
  position:fixed;
  inset:0;
  z-index:9001;
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
  padding:16px;
  background:#0006;
}

.ddcn-dose-overlay[hidden]{
  display:none;
}

.ddcn-dose-root{
  color:var(--text);
  background:var(--bg);
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  border:1px solid var(--line);
  overflow:hidden;
  font-family:var(--sans);
}

.ddcn-dose-popup{
  width:min(440px,100%);
  height:min(650px,85dvh);
  grid-template-columns:125px minmax(0,1fr);
  border-radius:18px;
  box-shadow:0 14px 55px #0003;
}

.ddcn-dose-page{
  max-width:1450px;
  margin:24px auto 50px;
  padding:0 18px;
}

.ddcn-dose-page .ddcn-dose-root{
  height:min(790px,83dvh);
  min-height:500px;
}

.ddcn-dose-side{
  padding:13px;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:13px;
  overflow:auto;
  min-width:0;
}

.ddcn-dose-head{
  display:flex;
  gap:10px;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:12px;
}

.ddcn-dose-head strong{
  display:block;
  font-size:16px;
}

.ddcn-dose-head small{
  color:var(--muted);
  font-size:11px;
}

.ddcn-dose-head img{
  width:35px;
  height:35px;
  object-fit:contain;
}

.ddcn-dose-head img.dark-logo{
  display:none;
}

html[data-theme=dark] .ddcn-dose-head img.light-logo{
  display:none;
}

html[data-theme=dark] .ddcn-dose-head img.dark-logo{
  display:block;
}

.ddcn-dose-main{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
}

.ddcn-dose-messages{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:13px;
  padding:18px;
  overflow:auto;
}

.ddcn-dose-bubble{
  padding:12px 15px;
  border:1px solid var(--line);
  border-radius:14px;
  max-width:87%;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:14px;
  line-height:1.6;
}

.ddcn-dose-bubble.user{
  align-self:flex-end;
  color:var(--bg);
  background:var(--text);
}

.ddcn-dose-bubble.assistant{
  align-self:flex-start;
}

.ddcn-dose-empty{
  margin:auto;
  text-align:center;
  color:var(--muted);
  padding:15px;
}

.ddcn-dose-empty strong{
  font-family:var(--serif);
  font-size:27px;
  color:var(--text);
}

.ddcn-dose-form{
  display:flex;
  gap:9px;
  padding:13px;
  border-top:1px solid var(--line);
}

.ddcn-dose-form input{
  flex:1;
  min-width:0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--text);
  background:var(--bg);
}

.ddcn-dose-form button,
.ddcn-dose-btn{
  border:0;
  border-radius:10px;
  padding:11px 14px;
  background:var(--text);
  color:var(--bg);
  cursor:pointer;
  font:inherit;
}

.ddcn-dose-toolbar{
  margin-left:auto;
  display:flex;
  gap:6px;
}

.ddcn-dose-toolbar a,
.ddcn-dose-toolbar button{
  font-size:21px;
  border:0;
  background:transparent;
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  padding:5px;
}

.ddcn-dose-history{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.ddcn-dose-history button{
  border:0;
  background:transparent;
  text-align:left;
  color:var(--text);
  cursor:pointer;
  padding:9px;
  border-radius:8px;
  overflow-wrap:anywhere;
  font-size:12px;
}

.ddcn-dose-history button:hover{
  background:var(--soft);
}

.ddcn-dose-status{
  padding:0 14px 8px;
  margin:0;
  font-size:11px;
  color:var(--muted);
}

.ddcn-dose-signup{
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--soft);
  line-height:1.5;
}

.ddcn-dose-signup a{
  font-weight:700;
  color:var(--text);
}

/* Firebase authentication pages */
.auth-card{
  background:var(--bg);
  color:var(--text);
  max-width:680px;
  margin:auto;
}

.auth-card input{
  color:var(--text);
}

.category-checks label,
.donation-options label{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 9px;
}

.category-checks input,
.donation-options input{
  width:auto;
  accent-color:var(--text);
}

@media(max-width:640px){
  .ddcn-dose-page{
    padding:0;
    margin:0 auto;
  }

  .ddcn-dose-page .ddcn-dose-root{
    height:calc(100dvh - 75px);
    min-height:450px;
  }

  .ddcn-dose-root{
    grid-template-columns:95px minmax(0,1fr);
  }

  .ddcn-dose-popup{
    height:min(600px,85dvh);
    grid-template-columns:88px minmax(0,1fr);
  }

  .ddcn-dose-side{
    padding:7px;
  }

  .ddcn-dose-messages{
    padding:10px;
  }

  .ddcn-dose-fab{
    right:12px;
    bottom:12px;
  }
}

/* DDC NEWS: EDITORIAL GRID REPAIR */

.hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1.7fr) minmax(0,1fr) !important;
  align-items: start !important;
  gap: 18px;
}

.hero-grid > * {
  min-width: 0 !important;
  max-width: 100% !important;
  align-self: start;
}

.hero-grid .hero-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
}

.hero-grid .story-card,
.category-lead .story-card,
.category-support .story-card {
  display: block;
  position: relative;
  min-width: 0;
  max-width: 100%;
  height: auto !important;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.hero-grid .story-card .card-copy,
.category-lead .card-copy,
.category-support .card-copy {
  min-width: 0;
  max-width: 100%;
  position: relative;
}

.hero-grid .story-card h1,
.hero-grid .story-card h3,
.category-lead h1,
.category-lead h3,
.category-support h3 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  line-height: 1.19 !important;
  margin: 9px 0 !important;
}

.hero-grid .story-card h1,
.category-lead .story-card h1 {
  font-size: clamp(27px,2.5vw,42px) !important;
}

.hero-grid .story-card h3,
.category-support .story-card h3 {
  font-size: clamp(15px,1.18vw,20px) !important;
}

.hero-grid .story-card .card-media,
.category-lead .story-card .card-media {
  display: block;
  aspect-ratio: 16/10;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-grid .story-card img,
.category-lead .story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-lead {
  grid-template-columns: minmax(0,1.75fr) minmax(0,1fr);
  align-items: start;
}

.category-lead > *,
.category-support > *,
.story-list > *,
.latest-layout > * {
  min-width: 0;
  max-width: 100%;
}

.category-support {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 18px;
}

.story-list {
  grid-template-columns: minmax(0,1fr) 180px;
  align-items: start;
}

/* HEADER: AUTHENTICATION */

.ddcn-account {
  position: relative;
  flex: 0 0 auto;
  z-index: 55;
}

.ddcn-auth-link,
.ddcn-auth-signed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid var(--text);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: 700 12px/1.2 var(--sans);
  padding: 9px 12px;
  cursor: pointer;
}

.ddcn-auth-signed {
  background: var(--text);
  color: var(--bg);
}

.ddcn-auth-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  min-width: 180px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 9px 24px #0002;
  z-index: 60;
  padding: 6px;
}

.ddcn-auth-menu[hidden] {
  display: none !important;
}

.ddcn-auth-email {
  font-size: 11px;
  overflow-wrap: anywhere;
  padding: 8px 7px;
  border-bottom: 1px solid var(--line);
}

.ddcn-auth-menu button {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.ddcn-auth-menu button:hover,
.ddcn-auth-menu button:focus-visible {
  background: #111;
  color: #fff;
}

html[data-theme="dark"] .ddcn-auth-menu button:hover,
html[data-theme="dark"] .ddcn-auth-menu button:focus-visible {
  background: #fff;
  color: #111;
}

@media(max-width:900px) {
  .hero-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }

  .hero-grid > .hero-col:last-child {
    grid-column: 1/-1;
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media(max-width:640px) {
  .topbar {
    grid-template-columns: 34px minmax(0,1fr) auto;
    gap: 4px;
  }

  .header-actions { gap: 2px; }

  .ddcn-auth-link,
  .ddcn-auth-signed {
    padding: 7px 8px;
    font-size: 11px;
  }

  .hero-grid {
    display: flex !important;
    flex-direction: column;
    gap: 18px !important;
  }

  .hero-grid > * { width: 100%; }

  .hero-grid > .hero-col:last-child {
    display: flex !important;
    flex-direction: column !important;
  }

  .category-lead,
  .category-support {
    display: grid;
    grid-template-columns: 1fr;
  }

  .story-list {
    grid-template-columns: minmax(0,1fr) 110px;
  }
}


/* DDC live markets: never animate an unchanged or missing price. */
.ddc-markets-heading{min-width:235px!important;flex-shrink:0}
.ddc-markets-heading span{font-size:11px!important;white-space:nowrap}
.market-strip{scrollbar-width:thin}
.market-strip .quote{flex-shrink:0;min-width:140px}
.market-strip .quote-value{font-size:15px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums}
.market-strip .quote-change{font-size:11px}
.market-card .market-price{font-variant-numeric:tabular-nums}
@keyframes ddcnGreenTick{from{background:rgba(30,148,88,.25)}to{background:transparent}}
@keyframes ddcnRedTick{from{background:rgba(192,42,42,.23)}to{background:transparent}}
.ddc-up{animation:ddcnGreenTick 1s ease-out;color:#178d50!important}
.ddc-down{animation:ddcnRedTick 1s ease-out;color:#c92c31!important}
@media(max-width:640px){.ddc-markets-heading{min-width:205px!important}.market-strip .quote{min-width:133px}}

/* DDCN_OCT13_CARD_STYLES */
.ddcn-headline-card{height:100%;min-height:150px;background:linear-gradient(125deg,#0b1326,#254273 55%,#111827);color:#fff;padding:20px;display:flex;flex-direction:column;justify-content:space-between;gap:14px;overflow:hidden}.ddcn-headline-card span{font-size:11px;letter-spacing:.18em;font-weight:900;color:#f9d776}.ddcn-headline-card strong{line-height:1.14;font-size:clamp(15px,2vw,24px);overflow-wrap:anywhere}.ddcn-headline-card small{font-size:10px;opacity:.8}

/* DDCN_DESKTOP_TABLET_HEADER_COPYGUARD_V1 */
.topbar.shell > [data-menu-open]{justify-self:start;width:44px;min-width:44px;}
.topbar.shell > .logo-wrap{justify-self:center;}
.topbar.shell > .header-actions{justify-self:end;min-width:0;white-space:nowrap;}
.ddcn-header-social{display:flex;align-items:center;gap:11px;padding-right:12px;margin-right:8px;border-right:1px solid var(--line);}
.ddcn-header-social a{display:inline-flex;align-items:center;justify-content:center;width:27px;height:30px;color:var(--text);border-radius:5px;transition:opacity .2s ease,transform .2s ease;}
.ddcn-header-social a:hover{opacity:.65;transform:translateY(-1px)}
.ddcn-header-social .icon{width:19px;height:19px;}
@media(min-width:641px) and (max-width:1000px){.topbar.shell{grid-template-columns:minmax(55px,1fr) auto minmax(55px,1fr)}.topbar.shell>.header-actions{gap:6px}.ddcn-header-social{gap:3px;margin-right:2px;padding-right:6px}.ddcn-header-social a{width:25px}.ddcn-header-social .icon{width:17px;height:17px}}
@media(max-width:740px){.ddcn-header-social{gap:0;border:0;margin-right:0;padding-right:0}.ddcn-header-social a{width:22px;height:26px}.ddcn-header-social .icon{width:16px;height:16px}}
@media(max-width:640px){.ddcn-header-social{display:none!important}.topbar.shell > [data-menu-open]{justify-self:start}.topbar.shell > .logo-wrap{justify-self:center}}
.article-body,.article-wrap,.story-card{-webkit-user-select:none;user-select:none;}
@media print{body:not(.admin-body) #main,body:not(.admin-body) .site-header,body:not(.admin-body) .site-footer,body:not(.admin-body) .drawer,body:not(.admin-body) .ddcn-dose-fab{display:none!important}body:not(.admin-body)::before{content:'DDC News — printing of this page is disabled.';display:block!important;margin:2cm;font:bold 19px Arial,sans-serif;color:#222}}
