/* Khabar Jeti theme. Loaded after style.css; system fonts only, so pages stay light on weak signal. */
:root{
  --laut:#0e3b4d;--teal:#1b7f8c;--teal-soft:#e3f1f2;--pasir:#f6eedd;--pasir-dark:#e9dcc0;
  --coral:#d8603f;--coral-dark:#a8432a;--ink:#17262e;--muted:#56656c;--line:#dfe5e4;
  --cream:#fbf8f1;--mint:#e3f1f2;--white:#fff;
  --heading:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Helvetica Neue",Arial,sans-serif;
  --body:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Helvetica Neue",Arial,sans-serif;
}
body{font-size:17px;line-height:1.65;background:#fff;color:var(--ink)}
h1,h2,h3,h4{letter-spacing:-.02em}
a:hover{color:var(--teal)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--teal)}

/* Wordmark */
.wordmark{display:inline-flex;align-items:center;gap:10px;font-size:34px;letter-spacing:-1.2px;color:var(--laut);font-weight:800}
.logo-jetty{color:var(--teal);flex-shrink:0}
.logo-word{line-height:1}
.logo-jeti{color:var(--coral)}
.footer .wordmark,.admin-sidebar .wordmark{font-size:30px;letter-spacing:-1px}
.brand>span:not(.wordmark){font-size:13px;color:var(--muted)}

/* Top strip and navigation */
.top-strip{background:var(--laut);color:#d8ecee;border-bottom:0;font-size:12px}
.top-strip a{color:#fff}
.nav-line{background:#fff}
#main-nav a{font-size:15px}
#main-nav a.active,#main-nav a:hover{color:var(--teal)}
.tip-link{font-size:13px}

/* Readable sizes for older eyes and small phones */
.eyebrow{font-size:12px;letter-spacing:1.2px;color:var(--teal)}
.category-label{font-size:12px;letter-spacing:.8px;color:var(--teal)}
.compact-story .category-label,.dashboard-story .category-label{font-size:11px}
.story-meta,.compact-meta{font-size:13px}
.story-card p,.hero-copy p{font-size:16px;line-height:1.6}
.first-heading h1{font-size:44px;letter-spacing:-1.5px;color:var(--laut)}
.first-heading h1>span,.title-dot,.listing-heading h1>span,.admin-heading h1>span{color:var(--coral)}
.first-heading p{font-size:14px;line-height:1.5}
.hero-tag{background:var(--pasir);color:var(--laut);font-size:11px}
.section-title span{font-size:12px}

/* Section colours: sea, river and sand */
.category-label.komuniti{color:#9a4b2e}.category-label.rezeki{color:#1b6f86}.category-label.banjir{color:#2b5ea7}
.category-label.sungai{color:#53702a}.category-label.alam{color:#2f7a52}.category-label.bantuan{color:#7a5a12}.category-label.budaya{color:#8a3f63}
.explore-item{background:var(--cream);min-height:140px}
.explore-item>span{font-size:19px}
.explore-item p{font-size:13px;max-width:none}
.explore-item.komuniti{background:#fbefe8}.explore-item.rezeki{background:#e6f2f5}.explore-item.banjir{background:#e9eff9}
.explore-item.sungai{background:#eef3e4}.explore-item.alam{background:#e6f3ec}.explore-item.bantuan{background:#f7f0dd}.explore-item.budaya{background:#f6e9f0}
.explore-item:hover{border-color:var(--teal)}

/* Reminder card and newsletter */
.local-note{background:var(--teal-soft)}
.local-note-top{font-size:11px;color:var(--teal)}
.local-note h3{color:var(--laut)}
.local-note p,.local-note a{font-size:14px;color:var(--muted)}
.newsletter{background:var(--pasir);border-color:var(--pasir-dark)}
.newsletter .eyebrow{font-size:12px;color:var(--coral-dark)}
.newsletter h2{font-size:28px;color:var(--laut)}
.newsletter p,.newsletter .consent{font-size:14px}
.newsletter .consent input{width:18px;height:18px}

/* Footer */
.footer{background:var(--laut);color:#d8ecee}
.footer a:hover{color:#fff}
.footer .wordmark{color:#fff}.footer .logo-jetty{color:#7cc6cf}.footer .logo-jeti{color:#f2a184}
.footer-top p,.footer-links,.footer-links>a:last-child,.footer-bottom{color:#b9d3d6;font-size:14px}
.footer-nav{font-size:14px}
.footer-bottom{border-color:#245466;font-size:12px}

/* Article page */
.article-heading h1{color:var(--laut)}
.article-deck{font-size:19px;line-height:1.55;color:var(--muted)}
.article-body{font-size:18px;line-height:1.75}
.article-body h2{color:var(--laut);font-size:24px;margin-top:32px}
.article-body h2:last-of-type{border-top:3px solid var(--teal);padding-top:18px}
.author-avatar{background:var(--teal-soft);color:var(--teal);font-size:15px}
.article-end>span{color:var(--coral);font-size:22px}
.article-cover figcaption{font-size:13px}
.breadcrumbs{font-size:13px}

/* Buttons */
.button{background:var(--coral)}
.button:hover{background:var(--coral-dark)}
.button-outline:hover{border-color:var(--teal);color:var(--teal)}

/* Prose pages */
.prose-page p,.prose-page li{font-size:17px}
.about-sections a span{font-size:14px}

@media(max-width:540px){
  body{font-size:16px}
  .site-header .wordmark{font-size:27px;letter-spacing:-.8px}
  .logo-jetty{width:32px;height:22px}
  .first-heading h1{font-size:34px;white-space:normal}
  .article-body{font-size:17px}
  .article-heading h1{font-size:28px}
}
@media(max-width:360px){.site-header .wordmark{font-size:24px}.first-heading h1{font-size:30px}}

/* Layout fixes, 3 Dec 2026 */
.nav-wrap nav{gap:22px;overflow-x:auto;white-space:nowrap;flex-wrap:nowrap;scrollbar-width:none}
.nav-wrap nav::-webkit-scrollbar{display:none}
.nav-wrap nav>a{flex-shrink:0}
.nav-wrap .tip-link{display:none}
.edition-line .eyebrow{margin-right:12px}
/* Thumbnails keep the 3:2 shape so text cards are never cut off. */
.compact-image img{height:auto;aspect-ratio:3/2;object-fit:cover}

/* Logo: jetty and sun badge */
.logo-jetty .lg-bg{fill:#0e3b4d}
.footer .logo-jetty .lg-bg,.admin-sidebar .logo-jetty .lg-bg{stroke:#7cc6cf;stroke-width:2.5}.logo-jetty .lg-sun{fill:#f2a184}
.logo-jetty .lg-deck{fill:none;stroke:#fff;stroke-width:3.4;stroke-linecap:round}
.logo-jetty .lg-wave{fill:none;stroke:#bfe6ea;stroke-width:3;stroke-linecap:round}
@media(max-width:540px){.logo-jetty{width:32px;height:32px}}
/* Every story picture keeps its full 3:2 frame so the flag, bottom left, is never cropped. */
.hero-image img,.card-image img,.compact-image img,.article-cover img,.story-card img,.dashboard-story img{aspect-ratio:3/2!important;height:auto!important;object-fit:cover}
/* Picture library stock on the editor's desk */
.library-stock{margin-top:24px}
.library-stock .data-table{width:100%;border-collapse:collapse;font-size:.92rem}
.library-stock .data-table th,.library-stock .data-table td{text-align:left;padding:10px 12px;border-bottom:1px solid #e3e8ea}
.library-stock .data-table th{font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:#5b6b72}
.article-cover figcaption a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* Masthead tagline: one line, capitals, centred on the logo and wordmark (owner, 3 Dec 2026). */
.brand{align-items:center}
.brand>.brand-tagline{display:inline-flex;align-items:center;align-self:center;height:34px;font-size:12px;font-weight:700;line-height:1;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;color:var(--muted)}
/* Home heading: the line sits under the title as its standfirst, in the body type. */
.first-heading{display:block}
.first-heading h1{margin:0}
.first-heading p.standfirst{margin:12px 0 0;font-family:var(--body);font-size:18px;line-height:1.5;color:var(--ink);max-width:640px}
@media(max-width:800px){.first-heading p.standfirst{font-size:16px}}
.edition-line .edition-dot{display:none}
/* Home heading on one line (owner, 3 Dec 2026); the header tagline is hidden on the home page so it is not said twice. */
.first-heading h1{white-space:nowrap}
@media(max-width:800px){.first-heading h1{font-size:clamp(24px,7.4vw,34px);letter-spacing:-1px}}
/* Topic grid: seven sections plus a tip card, four by two (owner review, 3 Dec 2026). */
.explore-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.explore-item.explore-tip{background:var(--laut);border-color:var(--laut)}
.explore-item.explore-tip>span,.explore-item.explore-tip p,.explore-item.explore-tip svg{color:#fff}
.explore-item.explore-tip p{opacity:.85}
@media(max-width:800px){.explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.launch-import{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;border-left:4px solid var(--coral)}.launch-import h2{margin:0 0 4px;font-size:18px}.launch-import p{margin:0}
/* Dengar berita: recorded voice player */
.listen-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0 0;padding:8px 18px 8px 8px;border:1px solid var(--line,#d9dde3);border-radius:999px;background:#fff;max-width:max-content}
.listen-button{display:inline-flex;align-items:center;gap:10px;border:0;background:var(--navy,#0b2545);color:#fff;font:700 15px/1 var(--body-font,inherit);padding:11px 18px 11px 12px;border-radius:999px;cursor:pointer;min-height:44px}
.listen-button:focus-visible{outline:3px solid #f2b705;outline-offset:2px}
.listen-icon{width:22px;height:22px;border-radius:50%;background:#fff;position:relative;flex:none}
.listen-icon::after{content:"";position:absolute;left:8px;top:6px;border-left:8px solid var(--navy,#0b2545);border-top:5px solid transparent;border-bottom:5px solid transparent}
.listen-button[aria-pressed="true"] .listen-icon::after{left:7px;top:6px;width:3px;height:10px;border:0;background:var(--navy,#0b2545);box-shadow:5px 0 0 var(--navy,#0b2545)}
.listen-time{font:600 14px/1 ui-monospace,monospace;color:var(--ink,#1b1f24);min-width:84px}
.listen-note{font-size:12px;color:var(--muted,#5b6470)}
@media (max-width:640px){.listen-bar{max-width:none;border-radius:16px}.listen-note{flex-basis:100%}}
.listen-time:empty{display:none}
