/* The Equity Edit — Ghost theme
   Layout: magazine grid on ivory — main column + right rail, deep-green feature panels, gold as the single accent. */
:root{
  --bg:#f6f3ee; --surface:#fbf9f5; --line:#e2ddd3; --ink:#18201d; --muted:#5d6661;
  --green:#0f2b25; --green-ink:#f1ece2; --green-muted:#b9c4bd;
  --gold:#b98635; --up:#1d7a4b; --down:#c23a2b; --flash:rgba(185,134,53,.18);
  --display:var(--gh-font-heading, "Newsreader", "Iowan Old Style", Georgia, serif);
  --ui:var(--gh-font-body, "Instrument Sans", "Helvetica Neue", Arial, sans-serif);
  --maxw:1240px;
}
@media (prefers-color-scheme: dark){:root{
  --bg:#0f1513; --surface:#151d1a; --line:#27312d; --ink:#ebe6dc; --muted:#9aa49e;
  --green:#0b201b; --green-ink:#efe9de; --green-muted:#a3b1a9;
  --gold:#d3a35a; --up:#4cc185; --down:#f0705f; --flash:rgba(211,163,90,.2); color-scheme:dark}}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--ui);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.wrap{max-width:var(--maxw);margin:0 auto;padding-inline:clamp(16px,3vw,32px)}
.eyebrow{font-family:var(--ui);font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.more{font-size:10.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.more::after{content:"→";color:var(--gold)}
h1,h2,h3{font-family:var(--display);font-weight:400;text-wrap:balance;margin:0}
p{margin:0}

/* Header */
.site-header{border-bottom:1px solid var(--line);background:var(--bg)}
.util{display:flex;justify-content:flex-end;align-items:center;gap:22px;font-size:12.5px;color:var(--muted);padding-top:14px}
.util ul{list-style:none;display:flex;gap:22px;margin:0;padding:0}
.util a:hover{color:var(--ink)}
.mast{display:flex;align-items:center;gap:28px;padding-block:6px 20px;flex-wrap:wrap}
.logo{display:block;margin-right:auto}
.logo img{max-height:72px;width:auto}
.logo .the{font-family:var(--ui);font-weight:500;letter-spacing:.32em;font-size:15px;display:block;line-height:1}
.logo .name{font-family:var(--display);font-size:clamp(34px,4.6vw,48px);letter-spacing:-.01em;line-height:1;display:block;margin-top:2px;font-weight:450}
.logo .name b{color:var(--gold);font-weight:inherit}
.logo .tag{display:block;font-size:9.5px;letter-spacing:.3em;color:var(--muted);margin-top:10px;text-transform:uppercase}
.main-nav ul{list-style:none;display:flex;gap:24px;margin:0;padding:0;font-size:14px;font-weight:500}
.main-nav a{display:block;padding-block:4px;border-bottom:1.5px solid transparent}
.main-nav a:hover,.main-nav .nav-current a{border-color:var(--gold)}
.mast-actions{display:flex;align-items:center;gap:18px}
.icon-btn{background:none;border:0;padding:6px;display:grid;place-items:center}
.vr{width:1px;height:28px;background:var(--line)}
.cta{display:inline-block;background:var(--green);color:var(--green-ink);border:0;padding:12px 26px;font-weight:500;font-size:14px;border-radius:2px}
.cta:hover{filter:brightness(1.18)}

/* Ticker */
.ticker{border-bottom:1px solid var(--line)}
.ticker-row{display:flex;overflow-x:auto;scrollbar-width:none}
.ticker-row::-webkit-scrollbar{display:none}
.tk{flex:1 0 auto;min-width:112px;padding:16px 14px 14px;border-right:1px solid var(--line)}
.tk:first-child{padding-left:0}
.tk .sym{font-size:10.5px;font-weight:600;letter-spacing:.12em}
.tk .row{display:flex;gap:10px;align-items:baseline;margin-top:6px;font-variant-numeric:tabular-nums;font-size:13px;white-space:nowrap}
.tk .px{transition:background .6s}
.tk .px.flash{background:var(--flash)}
.chg.up{color:var(--up)} .chg.down{color:var(--down)}
.chg.up::after{content:" ▲";font-size:10px} .chg.down::after{content:" ▼";font-size:10px}
.glance{flex:0 0 auto;border:0;background:none;text-align:left;padding:16px 0 14px 14px;font-size:10.5px;font-weight:600;letter-spacing:.12em;line-height:1.6;white-space:nowrap}
.glance span{color:var(--gold);display:block;font-size:14px}
.ticker-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted);padding-block:0 10px}
.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--up);margin-right:6px;vertical-align:1px;animation:pulse 2s infinite}
@keyframes pulse{50%{opacity:.35}}
.hours{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1px;background:var(--line);border-top:1px solid var(--line);margin-bottom:12px}
.hours div{background:var(--surface);padding:12px 14px;font-size:12.5px}
.hours b{display:block;font-size:10.5px;letter-spacing:.12em;font-weight:600}
.pill{display:inline-block;font-size:10.5px;font-weight:600;letter-spacing:.06em;padding:2px 8px;border-radius:20px;margin-top:6px}
.pill.open{background:color-mix(in srgb,var(--up) 15%,transparent);color:var(--up)}
.pill.closed{background:color-mix(in srgb,var(--muted) 15%,transparent);color:var(--muted)}
[hidden]{display:none!important}

/* Home */
.site-main{padding-block:24px 0}
.hero{display:grid;grid-template-columns:1.9fr 1fr;gap:10px}
.hero.solo{grid-template-columns:1fr}
.lead{position:relative;display:grid;grid-template-columns:1fr 1fr;background:var(--green);color:var(--green-ink);min-height:380px;overflow:hidden}
.lead .txt{position:relative;z-index:2;padding:28px 0 28px 26px;display:flex;flex-direction:column;gap:18px}
.lead .eyebrow{color:var(--green-muted)}
.lead h1{font-size:clamp(32px,3.6vw,44px);line-height:1.04;letter-spacing:-.01em;width:135%}
.lead p{font-size:14px;color:var(--green-muted);max-width:44ch;margin-top:auto}
.lead .img{position:relative}
.lead .img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lead .img::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,var(--green) 0%,color-mix(in srgb,var(--green) 40%,transparent) 35%,transparent 70%)}
.lead:hover h1{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.side{display:grid;grid-template-rows:auto 1fr;gap:10px}
.trade{background:#0e1412;color:#f1ece2;padding:18px 18px 16px;display:grid;grid-template-columns:1fr 110px;gap:12px;align-items:center}
.trade .eyebrow{color:#d9d4ca}
.trade h2{font-size:22px;line-height:1.15;margin:12px 0 10px}
.trade p{font-size:12.5px;color:#b9c0bc}
.trade .more{margin-top:14px}
.trade img{width:110px;height:110px;object-fit:cover}
.m60{background:var(--surface);border:1px solid var(--line);padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.m60 h2{font-size:22px;line-height:1.15;margin:12px 0 10px}
.m60 p{font-size:12.5px;color:var(--muted);margin-bottom:14px}
.thumb{position:relative;overflow:hidden;min-height:150px;background:var(--line)}
.thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thumb .play{position:absolute;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:rgba(0,0,0,.55);display:grid;place-items:center}
.thumb .play::after{content:"";border-left:16px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent;margin-left:4px}

.band{display:grid;grid-template-columns:1fr 280px;gap:24px;margin-top:36px}
.band > *{min-width:0}
.rail{display:flex;flex-direction:column;gap:20px}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px}
.sec-head h2{font-family:var(--ui);font-size:15px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.sec-head p{font-size:13px;color:var(--muted);margin-top:2px}

.watch{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.wl{position:relative;display:flex;flex-direction:column;min-height:214px;background:#e9e4da;overflow:hidden;color:#18201d}
.wl img{position:absolute;inset:auto 0 0 0;width:100%;height:54%;object-fit:cover}
.wl .wl-t{position:relative;z-index:1;padding:16px 14px}
.wl h3{font-size:19px;line-height:1.08}
.wl small{display:block;font-size:12px;margin-top:6px;color:#4c544f;max-width:18ch}
.wl .more{position:absolute;z-index:1;left:14px;bottom:12px;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.wl:first-child{background:var(--green);color:var(--green-ink)}
.wl:first-child small{color:var(--green-muted)}
.wl:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}

.quote{background:var(--green);color:var(--green-ink);padding:30px 30px 26px;display:flex;flex-direction:column}
.quote .mark{font-family:var(--display);color:var(--gold);font-size:64px;line-height:.6;height:30px}
.quote blockquote{margin:22px 0 0;font-family:var(--display);font-size:31px;line-height:1.08}
.quote hr{border:0;border-top:1.5px solid var(--gold);width:48px;margin:26px 0 18px}
.quote .sig{font-size:12px;letter-spacing:.26em;margin-top:auto;text-transform:uppercase}

.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.card{display:flex;flex-direction:column;padding-inline:10px;border-left:1px solid var(--line);min-width:0}
.card:first-child{padding-left:0;border-left:0}
.card:last-child{padding-right:0}
.card .ph{aspect-ratio:16/10;overflow:hidden;max-width:100%;background:var(--line)}
.card .ph img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.card:hover .ph img{transform:scale(1.03)}
.card .eyebrow{font-size:9.5px;margin-top:12px}
.card h3{font-size:19px;line-height:1.15;margin-top:6px}
.card:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.card p{font-size:12.5px;color:var(--muted);margin-top:8px}
.rt{font-size:9.5px;letter-spacing:.14em;color:var(--muted);text-transform:uppercase;margin-top:auto;padding-top:14px}

.nl{background:var(--surface);border:1px solid var(--line);padding:22px 20px}
.nl .eyebrow{color:var(--gold);font-size:9.5px}
.nl h2{font-size:28px;margin:12px 0 10px}
.nl p{font-size:13px}
.nl form{display:grid;gap:8px;margin-top:18px}
.nl input{width:100%;font:inherit;font-size:13.5px;padding:11px 12px;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:2px}
.nl button{background:var(--green);color:var(--green-ink);border:0;padding:12px;font-weight:500;border-radius:2px}
.nl .fine{font-size:12px;color:var(--muted);margin-top:16px}
.nl .ok{display:none;border-left:2px solid var(--gold);padding:8px 12px;font-size:13.5px}
.nl form.loading button{opacity:.6}
.nl form.success input,.nl form.success button{display:none}
.nl form.success .ok{display:block}
.nl [data-members-error]{font-size:13px;color:var(--down)}
.nl .member{border-left:2px solid var(--gold);padding:8px 12px;margin-top:16px;font-size:13.5px}

.brighter{position:relative;background:#dfe4e2;color:#16201c;display:flex;flex-direction:column;align-items:center;text-align:center;padding:48px 20px 150px;overflow:hidden}
.brighter p{font-size:17px;letter-spacing:.24em;line-height:1.45;font-weight:500;text-transform:uppercase}
.brighter hr{border:0;border-top:1.5px solid var(--gold);width:40px;margin:22px 0}
.brighter small{font-size:11px;letter-spacing:.26em;text-transform:uppercase}
.brighter img{position:absolute;left:0;right:0;bottom:0;width:100%;height:150px;object-fit:cover;-webkit-mask-image:linear-gradient(transparent,#000 40%);mask-image:linear-gradient(transparent,#000 40%)}

/* Footer */
.site-footer{margin-top:56px;background:var(--green);color:var(--green-muted);padding-block:40px 32px;font-size:13px}
.fgrid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:28px}
.site-footer .logo .name,.site-footer .logo .the{color:var(--green-ink)}
.site-footer .logo .name{font-size:32px}
.site-footer h4{margin:0 0 10px;font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--green-ink);font-weight:600}
.site-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.site-footer a:hover{color:var(--green-ink)}
.legal{border-top:1px solid color-mix(in srgb,var(--green-muted) 25%,transparent);margin-top:30px;padding-top:18px;font-size:11.5px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* Article */
.progress{position:fixed;left:0;top:0;height:3px;background:var(--gold);width:0;z-index:30}
.article{max-width:740px;margin:0 auto;padding-block:36px 0}
.article .kicker{color:var(--gold);display:block}
.article h1{font-size:clamp(34px,5vw,54px);line-height:1.04;letter-spacing:-.015em;margin-top:12px}
.article .dek{font-family:var(--display);font-size:21px;line-height:1.4;color:var(--muted);margin-top:16px;font-style:italic;font-weight:300}
.byline{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);border-block:1px solid var(--line);padding-block:12px;margin-top:24px}
.byline b{color:var(--ink);font-weight:600}
.article .feature{margin:28px 0 0}
.article .feature img{width:100%;aspect-ratio:16/9;object-fit:cover}
.article figcaption{font-size:12px;color:var(--muted);margin-top:8px}
.gh-content{font-family:var(--display);font-size:20px;line-height:1.62;margin-top:30px}
.gh-content > *{margin:0 0 1.1em}
.post-template .gh-content > p:first-of-type::first-letter{float:left;font-size:4.1em;line-height:.82;padding:.06em .1em 0 0;color:var(--green)}
@media (prefers-color-scheme: dark){.post-template .gh-content > p:first-of-type::first-letter{color:var(--gold)}}
.gh-content h2{font-size:28px;margin:1.4em 0 .5em}
.gh-content h3{font-size:23px;margin:1.3em 0 .4em}
.gh-content a{color:var(--green);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
@media (prefers-color-scheme: dark){.gh-content a{color:var(--gold)}}
.gh-content blockquote{padding-left:20px;border-left:2px solid var(--gold);font-style:italic;font-size:23px;line-height:1.4;margin-inline:0}
.gh-content ul,.gh-content ol{padding-left:1.3em}
.gh-content figure{margin-inline:0}
.gh-content figcaption{font-family:var(--ui);font-size:12px;color:var(--muted);margin-top:8px;text-align:left}
.gh-content hr{border:0;border-top:1px solid var(--line);margin:2em 0}
.gh-content table{font-family:var(--ui);font-size:14px;border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.gh-content th,.gh-content td{border-bottom:1px solid var(--line);padding:8px 6px;text-align:left}
.gh-content pre{font-size:14px;overflow-x:auto;background:var(--surface);padding:14px;border:1px solid var(--line)}
.gh-content .kg-card{max-width:100%}
.kg-width-wide{position:relative;width:min(1040px,calc(100vw - 32px));left:50%;transform:translateX(-50%)}
.kg-width-full{position:relative;width:100vw;left:50%;transform:translateX(-50%)}
.kg-width-wide img,.kg-width-full img{width:100%}
.article .nl{margin-top:40px}
.related{margin-top:56px}

/* Archive (tag / author / index) */
.archive{max-width:900px;margin:0 auto;padding-block:36px 0}
.archive h1{font-size:clamp(34px,5vw,54px);line-height:1.04;margin-top:10px}
.archive .desc{color:var(--muted);margin-top:10px;font-size:15px;max-width:60ch}
.list{margin-top:20px}
.item{display:grid;grid-template-columns:220px 1fr;gap:22px;padding-block:20px;border-top:1px solid var(--line)}
.item .ph{aspect-ratio:16/10;overflow:hidden;background:var(--line)}
.item .ph img{width:100%;height:100%;object-fit:cover}
.item h3{font-size:26px;line-height:1.12;margin-top:6px}
.item p{color:var(--muted);margin-top:8px;font-size:14px}
.item:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.item.noimg{grid-template-columns:1fr}
.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:18px;margin-top:10px;font-size:13px;color:var(--muted)}
.pagination a{color:var(--ink);font-weight:500}

/* Responsive */
@media (max-width:1080px){
  .band{grid-template-columns:1fr}
  .rail{display:grid;grid-template-columns:1fr 1fr}
  .quote blockquote{font-size:28px}
}
@media (max-width:900px){
  .main-nav{order:3;width:100%;overflow-x:auto}
  .main-nav ul{gap:20px}
  .hero{grid-template-columns:1fr}
  .watch,.grid4{grid-template-columns:repeat(2,1fr)}
  .grid4{row-gap:26px}
  .card:nth-child(odd){padding-left:0;border-left:0}
  .card:nth-child(even){padding-right:0}
  .fgrid{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){
  .util{display:none}
  .mast{padding-top:16px;gap:14px}
  .mast-actions .vr,.logo .tag{display:none}
  .cta{padding:10px 14px;font-size:13px}
  .lead{grid-template-columns:1fr;min-height:0}
  .lead .txt{padding:22px 20px;order:2}
  .lead h1{width:auto}
  .lead .img{min-height:200px}
  .lead .img::before{background:linear-gradient(0deg,var(--green),transparent 50%)}
  .m60{grid-template-columns:1fr}
  .rail{grid-template-columns:1fr}
  .grid4{grid-template-columns:1fr}
  .card{padding:0 !important;border-left:0}
  .item{grid-template-columns:1fr}
  .gh-content{font-size:18.5px}
}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}

/* ---- Sections adapt to how many posts they have ---- */
/* Hero side column: one box fills the full height */
.side{display:flex;flex-direction:column}
.side > a{flex:1 1 auto}
.side > a:only-child.trade{grid-template-columns:1fr;align-content:center;padding:28px 24px}
.side > a:only-child.trade img{width:100%;height:auto;max-height:220px;aspect-ratio:auto;order:-1;justify-self:start;border-radius:6px;object-fit:cover}
.hero:not(:has(.side > a)){grid-template-columns:1fr}
.hero:not(:has(.side > a)) .side{display:none}
/* Card rows (Top Stories, Life): fill the row whatever the count */
.grid4{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
@media (min-width:601px){
  .grid4:not(:has(> :nth-child(3))) .card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20px;align-content:start}
  .grid4:not(:has(> :nth-child(3))) .card .ph{grid-row:span 6}
  .grid4:not(:has(> :nth-child(3))) .card .eyebrow{margin-top:0}
  .grid4:not(:has(> :nth-child(3))) .card h3{font-size:24px}
}
/* Watchlist tiles: fill the row; one or two tiles become wide cards */
.watch{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
@media (min-width:601px){
  .watch:not(:has(> :nth-child(3))) .wl{min-height:200px}
  .watch:not(:has(> :nth-child(3))) .wl img{inset:0 0 0 auto;width:50%;height:100%}
  .watch:not(:has(> :nth-child(3))) .wl .wl-t{max-width:50%}
  .watch:not(:has(> :nth-child(3))) .wl h3{font-size:24px}
  .watch:not(:has(> :nth-child(3))) .wl small{-webkit-line-clamp:4;max-width:none}
}
@media (max-width:900px){.grid4,.watch{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}
@media (max-width:600px){.grid4{grid-template-columns:1fr}}

/* Ghost comments: keep the embedded box transparent in dark mode (it matches the page instead of showing a blank white panel) */
.comments-wrap{margin-top:44px;padding-top:28px;border-top:1px solid var(--line)}
.comments-wrap iframe{color-scheme:normal}

/* Images placed in posts keep their natural proportions */
.gh-content .kg-image-card img,.gh-content .kg-image{width:100%;height:auto}
.gh-content .kg-image-card{margin-inline:0}
.gh-content .kg-image-card figcaption{margin-top:8px}
.gh-content .kg-width-wide,.gh-content .kg-width-full{max-width:none}

/* Watchlist tiles: text block on top, photo fills the space below — they never overlap */
.wl{min-height:0}
.wl .wl-t{flex:none;padding:16px 14px 14px;background:inherit}
.wl h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.wl small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:none}
.wl img{position:static;flex:1 1 170px;order:2;width:100%;height:0;min-height:170px;object-fit:cover}
.wl .wl-t{order:1}
@media (min-width:601px){
  .watch:not(:has(> :nth-child(3))) .wl img{position:absolute;inset:0 0 0 auto;width:50%;height:100%;min-height:0}
  .watch:not(:has(> :nth-child(3))) .wl small{-webkit-line-clamp:3}
}
/* Soft fade so "View list" stays readable on bright photos */
.wl::after{content:"";position:absolute;left:0;right:0;bottom:0;height:60px;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.55));pointer-events:none}
.wl .more{z-index:2}
/* Watchlist tiles on phones: one per row, text left and photo right */
@media (max-width:600px){
  .watch{grid-template-columns:1fr!important}
  .wl{flex-direction:row}
  .wl .wl-t{flex:1 1 auto;padding:14px}
  .wl{height:124px;min-height:0}
  .wl img{flex:0 0 46%;width:46%;height:100%;min-height:0}
  .wl .more{display:none}
  .wl::after{display:none}
}

/* Ticker: TradingView widget slot */
.ticker-row{align-items:stretch}
.tv-slot{flex:1 1 auto;min-width:0;min-height:46px;padding-top:6px}
.tv-slot .tradingview-widget-container{width:100%}
.tv-credit a{color:var(--muted);text-decoration:none;border-bottom:1px solid var(--line)}
.tv-credit a:hover{color:var(--ink)}
/* Keep the TradingView ticker see-through in dark mode (stops the browser painting a white backing behind it) */
.tv-slot iframe{color-scheme:normal;background:transparent!important}
