/* Warta Malaysia: light and dark themes share these tokens. */
:root {
  --bg: #FFFFFF; --surface: #F5F3EF; --ink: #111111; --ink2: #44403C; --body: #1C1917;
  --muted: #57534E; --meta: #6B6B6B; --line: #E7E5E4; --border: #D6D3D1; --ph: #E7E3DC;
  --btn: #FFFFFF; --inv: #FFFFFF; --accent: #CC0000; --accent-ui: #CC0000; --yellow: #FFD100;
  --tick: #FFF7D6; --tickline: #F0E3A8; --band: #111111; --bandline: #111111; --hib: #3F3B37;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0F0F10; --surface: #1A1A1C; --ink: #F4F4F5; --ink2: #D4D4D8; --body: #E4E4E7;
  --muted: #B4B4BB; --meta: #A1A1AA; --line: #2A2A2E; --border: #3F3F46; --ph: #26262A;
  --btn: #18181B; --inv: #0F0F10; --accent: #FF5C5C; --tick: #211C0B; --tickline: #3B3216;
  --band: #050505; --bandline: #2A2A2E; --hib: #26262A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Inter, system-ui, sans-serif; transition: background .2s, color .2s; }
img { max-width: 100%; display: block; }
img.broken { visibility: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent-ui); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--inv); padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hd { font-family: 'Inter Tight', Inter, sans-serif; letter-spacing: -.02em; }


/* Utility bar */
.util { background: var(--band); color: #F5F5F4; border-bottom: 1px solid var(--bandline); font-size: 13px; }
.util .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; }
.util nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.util .wrap > span, .util nav a { line-height: 1; }
.util .hl { color: var(--yellow); font-weight: 600; }

/* Masthead */
.mast { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.mast-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
/* Brand bar: the old site's purple */
.brandbar { background: #2E025F; color: #fff; }
.brandbar .iconbtn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.brandbar .iconbtn:hover { background: rgba(255,255,255,.16); }
.brandbar .inkbtn { background: var(--yellow); color: #111; }
.mast-row .logo { grid-column: 2; }
.mast-row .tools { grid-column: 3; justify-self: end; }
.mast-row .tools-l { grid-column: 1; grid-row: 1; justify-self: start; }
.mast .logo { display: flex; justify-content: center; min-width: 0; }
.mast-home .mast-row { padding-top: 20px; padding-bottom: 20px; }
.mast .logo img { display: block; height: 44px; width: auto; max-width: 100%; }
.mast-home .logo img { height: 60px; }
.tools { display: flex; gap: 8px; align-items: center; }
.iconbtn { width: 44px; height: 44px; border: 1px solid var(--border); background: var(--btn); color: var(--ink); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.iconbtn svg { width: 20px; height: 20px; }
.inkbtn { background: var(--ink); color: var(--inv); font: 700 14px/1 'Inter Tight', sans-serif; padding: 0 18px; min-height: 44px; border-radius: 8px; display: inline-flex; align-items: center; }
.inkbtn:hover { text-decoration: none; opacity: .9; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.catnav { border-top: 0; }
.catnav .wrap { display: flex; gap: 28px; overflow-x: auto; justify-content: center; scrollbar-width: none; }
.navlink { font: 700 15px/1 'Inter Tight', sans-serif; padding: 15px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.navlink[aria-current="page"] { border-bottom-color: var(--accent-ui); }
.navlink:hover { text-decoration: none; border-bottom-color: var(--border); }
.progress { height: 3px; background: var(--line); }
.progress span { display: block; height: 3px; width: 0; background: var(--accent-ui); }

/* Drawer menu */

/* Search overlay */
.search { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: none; overflow-y: auto; }
.search.open { display: block; }
.search .wrap { padding-top: 24px; padding-bottom: 48px; }
.search-row { display: flex; gap: 12px; align-items: center; }
.search input { flex: 1; font: 700 24px/1.2 'Inter Tight', sans-serif; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--bg); color: var(--ink); min-width: 0; }
.search ul { list-style: none; margin: 24px 0 0; padding: 0; }
.search li a { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Ticker */
.ticker { background: var(--tick); border-bottom: 1px solid var(--tickline); }
.ticker .wrap { display: flex; align-items: center; gap: 16px; min-height: 48px; overflow: hidden; }
.ticker .lbl { background: var(--accent-ui); color: #fff; font: 800 12px/1 'Inter Tight', sans-serif; letter-spacing: .1em; padding: 7px 10px; border-radius: 4px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.ticker .lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.ticker .lbl::before { --glow: rgba(255,209,0,.6); animation: pulse 2.4s ease-in-out infinite; }
.ticker .items { flex: 1; min-width: 0; overflow: hidden; font: 600 14px/1.3 Inter, sans-serif; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent); }
.ticker .track { display: flex; width: max-content; white-space: nowrap; animation: roll 180s linear infinite; }
.ticker .items:hover .track, .ticker .items:focus-within .track { animation-play-state: paused; }
.ticker .track a { padding-right: 28px; }
.ticker .track a::after { content: "•"; color: var(--meta); margin-left: 28px; }
.ticker-m { display: none; }
@keyframes roll { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 var(--glow); } 50% { opacity: .6; transform: scale(.85); box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) {
  .ticker .lbl::before, .dot::before { animation: none; }
  .ticker .items { overflow-x: auto; }
  .ticker .track { animation: none; }
  .ticker .track a[aria-hidden] { display: none; }
}

/* Shared bits */
.kick { font: 800 11px/1 'Inter Tight', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.meta { font: 500 12px/1.4 Inter, sans-serif; color: var(--meta); }
.thumb { background: var(--ph); border-radius: 6px; overflow: hidden; display: block; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.r16x9 { aspect-ratio: 16 / 9; } .r3x2 { aspect-ratio: 3 / 2; } .r1x1 { aspect-ratio: 1 / 1; } .r4x3 { aspect-ratio: 4 / 3; }
.sechead { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 24px; }
.sechead h2 { margin: 0; font: 900 28px/1 'Inter Tight', sans-serif; letter-spacing: -.02em; }
.more { font: 700 14px/1 'Inter Tight', sans-serif; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.rule { border-top: 3px solid var(--ink); padding-top: 12px; }
.rule h2 { margin: 0; font: 900 20px/1 'Inter Tight', sans-serif; }
.dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ui); margin-right: 10px; vertical-align: middle; --glow: rgba(204,0,0,.55); animation: pulse 2.4s ease-in-out infinite; }
.section { padding: 0 0 56px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.split { display: flex; flex-wrap: wrap; gap: 32px; }
.split > .main { flex: 999 1 620px; min-width: 0; }
.split > .side { flex: 1 1 300px; min-width: 0; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font: 700 19px/1.25 'Inter Tight', sans-serif; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row .t { font: 700 17px/1.25 'Inter Tight', sans-serif; }
.row .txt { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.row .thumb { flex: 0 0 96px; height: 72px; border-radius: 4px; }
.lead { display: flex; flex-direction: column; gap: 16px; }
.lead h1, .lead h2 { margin: 0; font: 800 clamp(30px, 4vw, 44px)/1.06 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.lead p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink2); max-width: 760px; }

/* Bands */
.band { background: var(--band); color: #FAFAF9; padding: 56px 0; border-top: 1px solid var(--bandline); border-bottom: 1px solid var(--bandline); margin-bottom: 56px; }
.band .kick { color: var(--yellow); }
.band h2 { margin: 0; font: 900 40px/1 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.band .card h3 { font-size: 18px; color: #FAFAF9; }
.band .thumb { background: #2A2826; }
.band .meta { color: #A8A29E; }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.soft { background: var(--surface); padding: 56px 0; margin-bottom: 56px; }

/* Fakta cards */
.fakta { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.fakta a { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border-radius: 10px; padding: 22px; min-height: 200px; }
.fakta .stat { font: 900 52px/.95 'Inter Tight', sans-serif; letter-spacing: -.04em; color: var(--accent); }
.fakta .t { font: 700 16px/1.3 'Inter Tight', sans-serif; }
.fakta .meta { margin-top: auto; }

/* Global list */
.dl { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dl .meta { flex: 0 0 84px; }
.dl .t { font: 700 17px/1.3 'Inter Tight', sans-serif; }

/* Story cards */
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.story { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 9 / 14; background: var(--hib); border-radius: 12px; overflow: hidden; padding: 16px; color: #fff; }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.85)); }
.story span { position: relative; z-index: 1; }
.story .t { font: 700 16px/1.25 'Inter Tight', sans-serif; }
.story .d { font: 500 12px/1.4 Inter, sans-serif; color: #E7E5E4; margin-top: 8px; }

/* Follow box */
.follow { border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.follow .who { display: flex; align-items: center; gap: 20px; max-width: 640px; }
.follow .who img { height: 56px; width: auto; }
.follow h2 { margin: 0 0 6px; font: 900 30px/1.05 'Inter Tight', sans-serif; letter-spacing: -.02em; }
.follow p { margin: 0; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--ink); color: var(--inv); font: 700 15px/1 'Inter Tight', sans-serif; padding: 0 20px; min-height: 46px; border-radius: 999px; display: inline-flex; align-items: center; }
.pill:hover { text-decoration: none; opacity: .9; }

/* Article */
.crumbs { display: flex; gap: 8px; align-items: center; font: 600 13px/1 Inter, sans-serif; color: var(--muted); margin-bottom: 20px; }
.crumbs a:last-child { color: var(--accent); }
.art { max-width: 800px; }
.art h1 { margin: 0 0 18px; font: 800 clamp(32px, 4.4vw, 48px)/1.06 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.art .dek { margin: 0 0 24px; font-size: 21px; line-height: 1.5; color: var(--ink2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.byline .who { display: flex; align-items: center; gap: 12px; }
.byline .av { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; }
.byline .av img { width: 32px; height: auto; }
.byline b { font: 700 14px/1 'Inter Tight', sans-serif; display: block; margin-bottom: 4px; }
.share { display: flex; gap: 8px; }
.share a, .share button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 999px; background: var(--btn); display: inline-flex; align-items: center; justify-content: center; font: 700 13px/1 'Inter Tight', sans-serif; color: var(--ink); cursor: pointer; padding: 0; }
.share a:hover { text-decoration: none; border-color: var(--ink); }
.hero-fig { margin: 0 0 32px; }
.hero-fig .thumb { aspect-ratio: 16 / 9; }
.hero-fig img { width: 100%; height: 100%; object-fit: cover; }
.prose { font: 400 20px/1.65 'Source Serif 4', Georgia, serif; color: var(--body); }
.prose p { margin: 0 0 22px; }
.prose img { height: auto; border-radius: 6px; margin: 8px 0 24px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose blockquote { margin: 8px 0 28px; padding: 0 0 0 0; font: 700 26px/1.3 'Inter Tight', sans-serif; letter-spacing: -.01em; color: var(--ink); }
.prose blockquote::before { content: "“"; display: block; font: 900 64px/.5 'Inter Tight', sans-serif; color: var(--accent); height: 28px; }
.prose h2, .prose h3 { font-family: 'Inter Tight', sans-serif; color: var(--ink); letter-spacing: -.02em; }
.prose figure { margin: 0 0 24px; }
.prose figcaption { font: 500 13px/1.4 Inter, sans-serif; color: var(--meta); }
.prose iframe, .prose video { max-width: 100%; }
.notice { background: var(--surface); border-radius: 10px; padding: 16px 18px; font-size: 15px; margin-bottom: 24px; }
.notice a { color: var(--accent); text-decoration: underline; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.tag { font: 600 13px/1 Inter, sans-serif; border: 1px solid var(--border); border-radius: 999px; padding: 0 14px; min-height: 36px; display: inline-flex; align-items: center; }
.followbox { margin-top: 32px; background: var(--surface); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.followbox b { font: 800 20px/1.2 'Inter Tight', sans-serif; }
.followbox .pill { font-size: 14px; min-height: 44px; }
.rank { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rank .n { font: 900 28px/1 'Inter Tight', sans-serif; color: var(--accent); flex: 0 0 28px; }
.rank .t { font: 700 15px/1.3 'Inter Tight', sans-serif; }

/* Category */
.listrow { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.listrow .thumb { flex: 0 0 240px; aspect-ratio: 3 / 2; }
.listrow .txt { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.listrow h3 { margin: 0; font: 700 22px/1.2 'Inter Tight', sans-serif; letter-spacing: -.01em; }
.listrow p { margin: 0; font-size: 15px; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pager a, .pager span { min-width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font: 700 15px/1 'Inter Tight', sans-serif; padding: 0 14px; background: var(--btn); }
.pager [aria-current] { background: var(--ink); color: var(--inv); border-color: var(--ink); }
.pager a:hover { text-decoration: none; border-color: var(--ink); }
.sidecard { background: var(--surface); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.sidecard img { height: 40px; width: auto; }
.sidecard b { font: 800 18px/1.2 'Inter Tight', sans-serif; }
.sidecard a.s { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font-weight: 600; }

/* Footer */
.foot { background: var(--band); color: #D6D3D1; padding: 48px 0 32px; border-top: 1px solid var(--bandline); }
.foot .wrap { display: flex; flex-direction: column; gap: 32px; }
.foot .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.foot .top img { height: 40px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font: 600 14px/1 Inter, sans-serif; }
.foot nav a { min-height: 32px; display: inline-flex; align-items: center; }
.collab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: #1C1B1A; border-radius: 12px; padding: 20px 24px; }
.collab b { font: 800 18px/1.2 'Inter Tight', sans-serif; color: #FAFAF9; display: block; margin-bottom: 6px; }
.collab span { font-size: 14px; color: #D6D3D1; }
.collab a { background: var(--yellow); color: #111; font: 700 15px/1 'Inter Tight', sans-serif; padding: 0 20px; min-height: 44px; border-radius: 999px; display: inline-flex; align-items: center; }
.foot .bottom { border-top: 1px solid #3A3836; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 500 13px/1.4 Inter, sans-serif; color: #A8A29E; }
.foot .bottom nav { font-weight: 500; gap: 18px; }

@media (max-width: 720px) {
  .ticker-m { display: block; }
  .ticker .wrap { gap: 10px; }
  .ticker .lbl { padding: 6px 8px; font-size: 11px; }
  .ticker .track { animation-duration: 160s; }
  .util .soc-link { display: none; }
  .wrap { padding: 0 16px; }
  .mast-row { grid-template-columns: 44px 1fr 44px; gap: 10px; }
  .mast .logo img, .mast-home .logo img { height: auto; max-height: 36px; }
  .mast .tools .inkbtn, .mast .tools .search-btn-desk { display: none; }
  .catnav .wrap { justify-content: flex-start; }
  .listrow .thumb { flex-basis: 100%; }
  .row .thumb { flex-basis: 80px; height: 60px; }
}

/* Section pages: lead story as a photo hero with the headline on a purple fade (option 3) */
.hero3 { position: relative; border-radius: 14px; overflow: hidden; }
.hero3 .thumb { display: block; border-radius: 0; }
.hero3 .thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.hero3::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(46,2,95,.95) 0%, rgba(46,2,95,.55) 40%, transparent 70%); pointer-events: none; }
.hero3 .ov { position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 1; }
.hero3 .ov h2, .hero3 .ov h2 a { color: #fff; margin: 0; }
@media (max-width: 560px) {
  .hero3 .ov { left: 14px; right: 14px; bottom: 12px; }
  .hero3 .ov h2 { font-size: 21px; line-height: 1.15; }
  .hero3::after { background: linear-gradient(to top, rgba(46,2,95,.97) 0%, rgba(46,2,95,.7) 55%, transparent 90%); }
}
/* Bigger brand bar on every page (Ian 2026-10-27) */
.mast .mast-row { padding-top: 22px; padding-bottom: 22px; }
.mast .logo img, .mast-home .logo img { height: 64px; }
@media (max-width: 560px) { .mast .mast-row { padding-top: 14px; padding-bottom: 14px; } .mast .logo img, .mast-home .logo img { height: auto; max-height: 46px; } }
/* Theme toggle sits next to search; on phones the logo moves left */
@media (max-width: 560px) {
  .mast-row { grid-template-columns: 1fr auto; }
  .mast-row .tools-l { display: none; }
  .mast-row .logo { grid-column: 1; justify-content: flex-start; }
  .mast-row .tools { grid-column: 2; }
  .mast .logo img, .mast-home .logo img { max-height: 38px; }
}
@media (max-width: 560px) {
  .mast-row .logo { justify-content: flex-start; }
  .mast .logo img, .mast-home .logo img { max-height: 42px; }
}
/* Phones: story summaries stop at 3 lines */
@media (max-width: 560px) {
  .lead p, .row p, .card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Photo note at the end of an article */
.credit { margin: 28px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
