/* Ndangira News — homepage, archive, cards, author box.
   Authored on the theme's dark palette; the light-mode block in main.css flips it to a white site. */
.tn-wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.tn-home{padding-top:calc(var(--toa-nav-h,88px) + 8px);color:var(--white,#f5f5f3);font-family:var(--font-body)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* ticker */
.tn-ticker{display:flex;align-items:center;gap:14px;background:#b3001b;color:#fff;padding:10px 24px;font-size:14px;overflow:hidden}
.tn-ticker__lbl{flex:none;font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:11px;background:#fff;color:#b3001b;border-radius:4px;padding:3px 8px}
.tn-ticker__list{display:flex;gap:28px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.tn-ticker__list::-webkit-scrollbar{display:none}
.tn-ticker a{color:#fff;text-decoration:none;font-weight:600}
.tn-ticker a:hover{text-decoration:underline}

/* masthead */
.tn-masthead{padding:40px 0 22px;border-bottom:1px solid var(--gray-2,rgba(245,245,243,.12))}
.tn-masthead__kicker{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--gray-4,rgba(245,245,243,.45));margin-bottom:10px}
.tn-masthead__kicker a{color:inherit;text-decoration:none}
.tn-masthead__title{font-family:var(--font-display);font-size:clamp(38px,6vw,72px);line-height:1.04;font-weight:900;letter-spacing:-.02em;margin:0}
.tn-masthead__sub{margin-top:10px;font-size:17px;color:var(--gray-5,rgba(245,245,243,.7));max-width:720px}
.tn-masthead--archive{padding-bottom:18px}
.tn-toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin-top:22px}
.tn-chips{display:flex;flex-wrap:wrap;gap:8px}
.tn-chips--cats{margin-top:14px}
.tn-chip{display:inline-block;padding:8px 16px;border-radius:100px;border:1px solid var(--gray-3,rgba(245,245,243,.25));color:var(--gray-5,rgba(245,245,243,.7));font-size:13px;font-weight:700;text-decoration:none;transition:.2s}
.tn-chip:hover{border-color:#fff;color:#fff}
.tn-chip.is-on{background:var(--accent,#c8ff00);border-color:var(--accent,#c8ff00);color:#08080a}
.tn-search{display:flex;align-items:center;border:1px solid var(--gray-3,rgba(245,245,243,.25));border-radius:100px;overflow:hidden;background:var(--gray-1,rgba(245,245,243,.06))}
.tn-search input{background:transparent;border:0;outline:0;color:inherit;padding:10px 16px;font-size:14px;width:210px;font-family:inherit}
.tn-search button{background:transparent;border:0;color:inherit;padding:0 14px;cursor:pointer;font-size:14px}

/* cards */
.tn-card{display:flex;flex-direction:column;gap:14px;min-width:0}
.tn-card__img{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:var(--gray-1,rgba(245,245,243,.06))}
.tn-card__img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s var(--ease-out,ease)}
.tn-card:hover .tn-card__img img{transform:scale(1.04)}
.tn-card__ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:64px;font-weight:900;color:var(--gray-3,rgba(245,245,243,.25))}
.tn-card__meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:800}
.tn-tag{color:var(--accent,#c8ff00);text-decoration:none}
.tn-tag--breaking{background:#b3001b;color:#fff;border-radius:4px;padding:2px 7px}
.tn-loc{color:var(--gray-4,rgba(245,245,243,.45));font-weight:700}
.tn-card__title{font-family:var(--font-display);font-size:22px;line-height:1.22;font-weight:800;margin:0}
.tn-card__title a{color:inherit;text-decoration:none}
.tn-card__title a:hover{text-decoration:underline;text-underline-offset:3px}
.tn-card__ex{margin-top:8px;color:var(--gray-5,rgba(245,245,243,.7));font-size:15px;line-height:1.55}
.tn-card__by{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px;font-size:12px;color:var(--gray-4,rgba(245,245,243,.45))}
.tn-card--lead .tn-card__title{font-size:clamp(28px,3.4vw,42px);line-height:1.12}
.tn-card--lead .tn-card__ex{font-size:17px}
.tn-card--side{flex-direction:row;gap:16px;align-items:flex-start;padding-bottom:20px;border-bottom:1px solid var(--gray-2,rgba(245,245,243,.12))}
.tn-card--side .tn-card__img{flex:0 0 42%;aspect-ratio:4/3}
.tn-card--side .tn-card__title{font-size:19px}

/* layout */
.tn-top{padding:34px 0 10px}
.tn-top__grid{display:grid;grid-template-columns:1.7fr 1fr;gap:36px}
.tn-top__side{display:flex;flex-direction:column;gap:20px}
.tn-latest{padding:34px 0 70px}
.tn-sec-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:22px;border-top:3px solid var(--white,#f5f5f3);padding-top:14px}
.tn-sec-head__t{font-family:var(--font-display);font-size:28px;font-weight:900;margin:0}
.tn-sec-head__more{color:var(--accent,#c8ff00);font-weight:700;font-size:14px;text-decoration:none}
.tn-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px 28px}
.tn-more{text-align:center;margin-top:44px}
.tn-btn{display:inline-block;background:var(--accent,#c8ff00);color:#08080a;font-weight:800;padding:14px 30px;border-radius:100px;text-decoration:none;font-size:14px}
.tn-btn:hover{opacity:.88}
.tn-pager{margin-top:44px;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.tn-pager .page-numbers{padding:9px 15px;border:1px solid var(--gray-3,rgba(245,245,243,.25));border-radius:100px;color:inherit;text-decoration:none;font-size:14px;font-weight:700}
.tn-pager .page-numbers.current{background:var(--accent,#c8ff00);border-color:var(--accent,#c8ff00);color:#08080a}
.tn-empty{padding:70px 0;text-align:center}
.tn-empty h2{font-family:var(--font-display);font-size:30px;margin-bottom:8px}

/* article extras (single.php) */
.toa-dateline{font-weight:800;letter-spacing:.04em}
.toa-sl-meta__loc{display:inline-block;margin-right:6px}
.tn-author{display:flex;gap:18px;align-items:flex-start;margin:34px 0 10px;padding:22px;border:1px solid var(--gray-2,rgba(245,245,243,.12));border-radius:14px;background:var(--gray-1,rgba(245,245,243,.06))}
.tn-author__av img{width:72px;height:72px;border-radius:50%;display:block}
.tn-author__lbl{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--gray-4,rgba(245,245,243,.45));margin-bottom:2px}
.tn-author__name{font-family:var(--font-display);font-size:20px;font-weight:800;color:inherit;text-decoration:none}
.tn-author__bio{margin-top:6px;font-size:14px;line-height:1.6;color:var(--gray-5,rgba(245,245,243,.7))}

@media (max-width:980px){
  .tn-top__grid{grid-template-columns:1fr}
  .tn-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:620px){
  .tn-wrap{padding:0 16px}
  .tn-grid{grid-template-columns:1fr;gap:28px}
  .tn-card--side .tn-card__img{flex-basis:38%}
  .tn-search{width:100%}.tn-search input{width:100%}
  .tn-toolbar{flex-direction:column;align-items:stretch}
  .tn-card__title{font-size:21px}
}

/* ═══════════════ FINISHING TOUCHES — Ndangira brand palette ═══════════════
   Brand: purple #3B1F5E + gold #C9A227 (from the logo).
   Because the white-site mode inverts colours, the values below are the "pre-flip" equivalents:
   #e7cbff → renders purple, #855e00 → renders gold, #9d7a0f → renders readable dark gold,
   #000 → renders white, #0e0a12 → renders a soft lilac tint. */
::selection{background:#e7cbff;color:#000}
html body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:focus-visible{outline:2px solid #855e00;outline-offset:3px;border-radius:4px}

/* chips, tags, buttons, pager → brand purple */
.tn-tag{color:#e7cbff}
.tn-chip:hover{border-color:#e7cbff;color:#e7cbff}
.tn-chip.is-on,.tn-pager .page-numbers.current{background:#e7cbff;border-color:#e7cbff;color:#000}
.tn-btn{background:#e7cbff;color:#000;box-shadow:0 8px 22px rgba(255,255,255,.14);transition:transform .2s,box-shadow .2s,opacity .2s}
.tn-btn:hover{opacity:1;transform:translateY(-2px);box-shadow:0 12px 28px rgba(255,255,255,.2)}
.tn-sec-head{border-top-color:#e7cbff}
.tn-sec-head__more{color:#9d7a0f}
.tn-sec-head__more:hover{text-decoration:underline;text-underline-offset:4px}
.tn-pager .page-numbers:hover{border-color:#e7cbff}

/* masthead: gold accent bar */
.tn-masthead__title{position:relative;padding-bottom:18px}
.tn-masthead__title::after{content:"";position:absolute;left:0;bottom:0;width:72px;height:5px;border-radius:5px;background:#855e00}
.tn-masthead{background:linear-gradient(180deg,#0e0a12 0,transparent 100%)}

/* cards: soft lift on hover */
.tn-card:not(.tn-card--side) .tn-card__img{transition:box-shadow .3s,transform .3s}
.tn-card:not(.tn-card--side):hover .tn-card__img{box-shadow:0 16px 38px rgba(255,255,255,.16);transform:translateY(-3px)}
.tn-card--side:hover .tn-card__title a{text-decoration:underline;text-underline-offset:3px}
.tn-card__title{text-wrap:balance}

/* gentle entrance */
@keyframes tn-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.tn-card{animation:tn-in .55s cubic-bezier(.22,1,.36,1) both}
.tn-grid .tn-card:nth-child(3n+2){animation-delay:.06s}
.tn-grid .tn-card:nth-child(3n+3){animation-delay:.12s}
@media (prefers-reduced-motion:reduce){.tn-card{animation:none}.tn-card__img img,.tn-btn{transition:none}}

/* author box */
.tn-author{border-left:4px solid #855e00;background:#0e0a12}
.tn-author__name:hover{text-decoration:underline;text-underline-offset:3px}

/* ── article pages ── */
.toa-dateline{color:#e7cbff}
html body .toa-sl-title{letter-spacing:-.02em;text-wrap:balance}
html body #toa-sl-progress{background:linear-gradient(90deg,#e7cbff,#855e00)!important;height:4px}
html body .toa-sl-content{font-size:1.06rem;line-height:1.82}
html body .toa-sl-content h2,html body .toa-sl-content h3{font-family:var(--font-display);letter-spacing:-.01em;line-height:1.2}
html body .toa-sl-content a{color:#e7cbff;text-decoration:underline;text-decoration-color:#855e00;text-decoration-thickness:2px;text-underline-offset:3px}
html body .toa-sl-content a:hover{text-decoration-color:#e7cbff}
html body .toa-sl-content blockquote{margin:1.8em 0;padding:.4em 0 .4em 22px;border-left:4px solid #855e00;font-family:var(--font-display);font-style:italic;font-size:1.18em;line-height:1.6}
html body .toa-sl-content img,html body .toa-sl-content figure img{border-radius:10px;height:auto;max-width:100%}
html body .toa-sl-content figcaption{margin-top:8px;font-size:.82rem;color:rgba(245,245,243,.55);text-align:center}
html body .toa-sl-content hr{border:0;height:1px;background:linear-gradient(90deg,#855e00,transparent);margin:2.2em 0}
html body .toa-sl-share-btn{border-radius:100px;transition:transform .2s,opacity .2s}
html body .toa-sl-share-btn:hover{transform:translateY(-2px)}
html body .toa-sl-related__title{font-family:var(--font-display)}
