/* ==========================================================================
   Tajukrakyat — Header, Sidebar & Footer refresh (2026-11-29)
   Loaded last; overrides legacy rules in app.min.css / tajukrakyat.css / responsive-fix.css
   ========================================================================== */
:root {
  --tr-green: #169a35;
  --tr-red: #d71920;
  --tr-ink: #0b0f14;
  --tr-nav-h: 52px;
  --tr-accent: linear-gradient(90deg, var(--tr-green) 0 33%, #ffffff 33% 34%, var(--tr-red) 34% 100%);
}

/* ---------- Topbar ---------- */
.topbar { background: var(--tr-ink) !important; color: rgba(255,255,255,.78); font-size: 12px; padding: 6px 0 !important; }
.topbar a, .topbar button { color: rgba(255,255,255,.78); }
.topbar a:hover, .topbar button:hover { color: #fff; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- Masthead (desktop) ---------- */
.masthead { display: none; background: var(--color-bg-card); border-bottom: 1px solid var(--color-border); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; padding-top: 14px; padding-bottom: 14px; }
.masthead__brand img { height: 64px; width: auto; display: block; border-radius: 6px; }
.masthead__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.masthead__ad { max-width: 728px; min-height: 90px; width: 100%; overflow: hidden; }
.masthead__tagline { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--color-text-muted); }
.masthead__search { display: flex; width: 360px; max-width: 100%; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; background: var(--color-surface); }
.masthead__search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 16px; font-size: 14px; color: var(--color-text); outline: none; }
.masthead__search button { border: 0; background: var(--tr-red); color: #fff; width: 46px; cursor: pointer; }
.masthead__search:focus-within { border-color: var(--tr-red); box-shadow: 0 0 0 3px rgba(215,25,32,.12); }
@media (min-width: 1024px) { .masthead { display: block; } }

/* ---------- Main nav ---------- */
.nav, .header__nav {
  position: sticky !important; top: 0 !important; z-index: 300 !important;
  background: var(--color-bg-card) !important; border-bottom: 0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .25s ease, box-shadow .2s;
}
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--tr-accent); pointer-events: none; }
.nav__inner { display: flex; align-items: center; gap: 4px; min-height: var(--tr-nav-h); overflow: visible !important; }
.nav__menu { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; flex: 1 1 auto; min-width: 0; }
.nav__link { display: flex; align-items: center; height: var(--tr-nav-h); padding: 0 13px !important; font-size: 14px; font-weight: 600;
  color: var(--color-text); border-bottom: 0 !important; white-space: nowrap; background: none !important; }
.nav__link:hover { color: var(--tr-red) !important; }
.nav__link--active { color: var(--tr-red) !important; box-shadow: inset 0 -3px 0 var(--tr-red); }
.nav__item--home .nav__link { padding: 0 12px !important; }
.nav__home-text { display: none; }
.nav__search { margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: var(--color-text); font-size: 17px; cursor: pointer; border-radius: 50%; flex: 0 0 auto; }
.nav__search:hover { background: var(--color-surface); color: var(--tr-red); }
.nav__drawer-head, .nav__drawer-foot { display: none; }
.nav-backdrop { display: none; }

/* Desktop dropdowns */
.nav__item { position: relative; }
.nav__dropdown { list-style: none; margin: 0; padding: 6px 0 !important; border-top: 3px solid var(--tr-red) !important; border-radius: 0 0 8px 8px !important; }
.nav__dropdown a[aria-current="page"] { color: var(--tr-red); font-weight: 700; }

/* Desktop: brand only in the compact (stuck) state */
@media (min-width: 1024px) {
  .nav__toggle { display: none !important; }
  .nav__brand { display: flex !important; align-items: center; max-width: 0; overflow: hidden; opacity: 0; margin-right: 0 !important;
    transition: max-width .3s ease, opacity .2s ease, margin .3s ease; }
  .nav--stuck .nav__brand { max-width: 140px; opacity: 1; margin-right: 10px !important; }
  .nav__brand-img { height: 30px !important; padding: 0 !important; background: none !important; border-radius: 4px; }
  .cat-chips { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav__link { padding: 0 9px !important; font-size: 13.5px; }
}

/* ---------- Phones & tablets: slim header + off-canvas drawer ---------- */
@media (max-width: 1023px) {
  .topbar { display: none !important; }
  .nav__inner { justify-content: space-between; min-height: 56px; }
  .nav__toggle { display: inline-flex !important; align-items: center; justify-content: center; order: 0; margin: 0 !important;
    width: 44px; height: 44px; font-size: 20px; color: var(--color-text); background: none; border: 0; }
  .nav__brand { order: 1; position: absolute; left: 50%; transform: translateX(-50%); margin: 0 !important; display: flex; }
  .nav__brand-img { height: 34px !important; padding: 0 !important; background: none !important; }
  .nav__search { order: 2; margin-left: auto; }
  .nav .container { position: relative; }
  .nav--hidden { transform: translateY(calc(-100% - 4px)); }

  .nav__menu {
    display: flex !important; flex-direction: column; position: fixed !important; top: 0 !important; left: 0 !important; bottom: 0 !important; right: auto !important;
    width: min(86vw, 340px); max-height: none !important; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--color-bg-card) !important; box-shadow: 8px 0 30px rgba(0,0,0,.25); z-index: 1001;
    transform: translateX(-105%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s;
    padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px)) !important; border: 0 !important;
  }
  .nav__menu--open { transform: translateX(0); visibility: visible; transition: transform .28s ease, visibility 0s; }
  .nav__drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 3px solid transparent;
    border-image: var(--tr-accent) 1; position: sticky; top: 0; background: var(--color-bg-card); z-index: 1; }
  .nav__drawer-head img { height: 36px; width: auto; border-radius: 4px; }
  .nav__drawer-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--color-surface); color: var(--color-text); font-size: 18px; cursor: pointer; }
  .nav__item { border-bottom: 1px solid var(--color-border); }
  .nav__link { height: auto; padding: 14px 20px !important; font-size: 15px; box-shadow: none !important; }
  .nav__link--active { background: var(--color-surface) !important; border-left: 4px solid var(--tr-red); }
  .nav__home-text { display: inline; margin-left: 10px; }
  .nav__item--has-children > .nav__link::after { margin-left: auto !important; }
  .nav__dropdown { position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; box-shadow: none !important;
    border: 0 !important; border-radius: 0 !important; background: var(--color-surface) !important; min-width: 0 !important; padding: 4px 0 8px !important; }
  .nav__dropdown li a { padding: 10px 20px 10px 36px !important; font-size: 14px; }
  .nav__drawer-foot { display: block; padding: 18px 20px; border: 0 !important; }
  .nav__drawer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; font-size: 13px; margin-bottom: 16px; }
  .nav__drawer-links a { color: var(--color-text-muted); }
  .nav__drawer-social { display: flex; gap: 10px; margin-bottom: 16px; }
  .nav__drawer-social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface); color: var(--color-text); }
  .nav__drawer-theme { width: 100%; padding: 11px; border-radius: 8px; border: 1px solid var(--color-border); background: none; color: var(--color-text); font-weight: 600; cursor: pointer; }

  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(5,8,12,.55); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }

  .cat-chips { top: 56px !important; transition: top .25s ease; z-index: 250; }
  body.nav-hidden .cat-chips { top: 0 !important; }
}

/* ---------- Full-screen search ---------- */
.search-expand {
  position: fixed !important; inset: 0 !important; z-index: 2000 !important; padding: 0 !important;
  background: rgba(8,11,16,.94) !important; box-shadow: none !important; display: flex; justify-content: center; align-items: flex-start;
  transform: none !important; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s;
}
.search-expand--open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s ease; }
.search-expand__wrap { width: min(760px, calc(100% - 32px)); margin-top: 14vh; }
.search-expand__form { display: flex; align-items: center; gap: 10px; max-width: none !important; }
.search-expand__input { flex: 1; min-width: 0; font-size: clamp(1.1rem, 3.5vw, 1.6rem) !important; padding: 16px 20px !important; border-radius: 12px !important;
  border: 2px solid transparent !important; background: #fff !important; color: #111 !important; }
.search-expand__input:focus { border-color: var(--tr-red) !important; outline: none; }
.search-expand__submit, .search-expand__close { width: 54px; height: 54px; border-radius: 12px; border: 0; font-size: 18px; cursor: pointer; flex: 0 0 auto; }
.search-expand__submit { background: var(--tr-red); color: #fff; }
.search-expand__close { background: rgba(255,255,255,.12); color: #fff; }
.search-expand__hot { margin-top: 26px; color: rgba(255,255,255,.7); }
.search-expand__hot-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.search-expand__hot-label i { color: var(--tr-red); }
.search-expand__hot-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-expand__hot-list a { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 14px; }
.search-expand__hot-list a:hover { background: var(--tr-red); }
body.search-open { overflow: hidden; }

/* ---------- Breaking ticker accent ---------- */
.breaking-news__badge { background: var(--tr-red) !important; }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar { position: static !important; top: auto !important; }
.sidebar .sidebar__widget { margin-bottom: 22px; }
.sb-widget { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: 10px; padding: 16px 16px 14px; }
.sb-title { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding-bottom: 10px;
  font-family: var(--font-serif); font-size: 1.02rem; font-weight: 700; color: var(--color-text); border-bottom: 2px solid var(--color-border); }
.sb-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 52px; height: 2px; background: var(--tr-red); }
.sb-title i { color: var(--tr-red); font-size: .9em; }
.sb-title__sub { margin-left: auto; font-family: var(--font-sans); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tr-green); }
.sb-meta { font-size: .75rem; color: var(--color-text-muted); }
.sb-meta--cat { color: var(--tr-red); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .68rem; }

/* Ranked list */
.sb-rank { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.sb-rank__item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--color-border); color: inherit; }
.sb-rank li:last-child .sb-rank__item { border-bottom: 0; padding-bottom: 0; }
.sb-rank__num { flex: 0 0 34px; font-family: var(--font-serif); font-size: 1.9rem; line-height: 1; font-weight: 800; color: var(--color-border); text-align: center; }
.sb-rank li:first-child .sb-rank__num { color: var(--tr-red); }
.sb-rank__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sb-rank__title { font-size: .9rem; font-weight: 700; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sb-rank__item:hover .sb-rank__title { color: var(--tr-red); }

/* Chips */
.sb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }
.sb-chip:hover { border-color: var(--tr-red); color: var(--tr-red); }
.sb-chip--hot { background: rgba(215,25,32,.08); border-color: rgba(215,25,32,.25); color: var(--tr-red); }

/* Editor picks */
.sb-picks { display: flex; flex-direction: column; }
.sb-pick { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); color: inherit; }
.sb-pick:last-child { border-bottom: 0; padding-bottom: 0; }
.sb-pick__img { flex: 0 0 96px; height: 64px; border-radius: 6px; overflow: hidden; background: var(--color-surface); }
.sb-pick__img img { width: 100%; height: 100%; object-fit: cover; }
.sb-pick__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sb-pick__title { font-size: .88rem; font-weight: 700; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sb-pick--lead { flex-direction: column; padding-top: 0; }
.sb-pick--lead .sb-pick__img { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.sb-pick--lead .sb-pick__title { font-family: var(--font-serif); font-size: 1rem; }
.sb-pick:hover .sb-pick__title { color: var(--tr-red); }
.sb-pick:hover img { transform: scale(1.04); }
.sb-pick img { transition: transform .3s; }

/* Thumb list */
.sb-list__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); color: inherit; }
.sb-list__item:last-child { border-bottom: 0; }
.sb-list__img { flex: 0 0 88px; height: 60px; border-radius: 6px; overflow: hidden; background: var(--color-surface); }
.sb-list__img img { width: 100%; height: 100%; object-fit: cover; }
.sb-list__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sb-list__title { font-size: .87rem; font-weight: 600; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sb-list__item:hover .sb-list__title { color: var(--tr-red); }
.sb-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--tr-red); }

/* Hotline box */
.sb-hotline { position: relative; overflow: hidden; padding: 20px 18px; border-radius: 12px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.12), transparent 60%), linear-gradient(135deg, #b5121b, #7a0c12 70%, var(--tr-ink)); }
.sb-hotline__icon { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255,255,255,.16); font-size: 18px; margin-bottom: 10px; }
.sb-hotline__title { margin: 0 0 6px; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 800; color: #fff; }
.sb-hotline__text { margin: 0 0 14px; font-size: .86rem; line-height: 1.5; color: rgba(255,255,255,.86); }
.sb-hotline__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 8px; font-weight: 700; font-size: 14px;
  background: #fff; color: #9b0f16 !important; }
.sb-hotline__btn + .sb-hotline__btn { margin-top: 8px; }
.sb-hotline__btn--wa { background: #25d366; color: #fff !important; }
.sb-hotline__btn--ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.45); }

/* Ads */
.sb-ad { text-align: center; }
.sb-ad__label { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 6px; }
@media (min-width: 1024px) { .sb-ad--sticky { position: sticky; top: calc(var(--tr-nav-h) + 20px); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-cta { margin-top: 40px; color: #fff; background: radial-gradient(80% 140% at 100% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(100deg, #9e0f16, var(--tr-red)); }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.footer-cta__text { display: flex; align-items: center; gap: 16px; min-width: 0; }
.footer-cta__icon { flex: 0 0 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); font-size: 20px; }
.footer-cta__title { margin: 0 0 2px; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-cta__sub { margin: 0; font-size: .9rem; color: rgba(255,255,255,.85); }
.footer-cta__btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #fff; color: #a10f17 !important; font-weight: 800; font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.footer-cta__btn:hover { transform: translateY(-1px); }

.footer.footer--pro { position: relative; margin-top: 0 !important; background: var(--tr-ink) !important; color: rgba(255,255,255,.72); padding: 48px 0 0 !important; }
.footer.footer--pro::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--tr-accent); }
.footer--pro .footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr !important; gap: 40px !important; padding-bottom: 32px !important; }
.footer--pro .footer__logo img { height: 48px; width: auto; border-radius: 6px; display: block; margin-bottom: 14px; }
.footer--pro .footer__desc { font-size: .9rem; line-height: 1.65; color: rgba(255,255,255,.7); margin: 0 0 16px; }
.footer--pro .footer__desc strong { color: #fff; }
.footer--pro .footer__title { display: block; position: relative; color: #fff !important; font-size: .8rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; padding-bottom: 10px; }
.footer--pro .footer__title::before { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--tr-red); }
.footer--pro .footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer--pro .footer__links a { color: rgba(255,255,255,.72); font-size: .9rem; transition: color .15s, padding .15s; }
.footer--pro .footer__links a:hover { color: #fff; padding-left: 4px; }
.footer--pro .footer__contact { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.footer--pro .footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer--pro .footer__contact i { color: var(--tr-red); margin-top: 3px; width: 16px; }

.footer--pro .footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.footer--pro .footer__social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff; font-size: 15px; transition: transform .15s, background .15s; }
.footer--pro .footer__social a:hover { transform: translateY(-2px); }
.footer__social-facebook:hover { background: #1877f2 !important; }
.footer__social-twitter:hover { background: #000 !important; }
.footer__social-instagram:hover { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important; }
.footer__social-youtube:hover { background: #ff0000 !important; }
.footer__social-tiktok:hover { background: #111 !important; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
.footer__social-whatsapp:hover { background: #25d366 !important; }
.footer__social-telegram:hover { background: #229ed9 !important; }

.footer__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.18); color: #fff !important; background: rgba(255,255,255,.04); }
.footer__badge--gnews i { color: #4285f4; }
.footer__badge--wa i { color: #25d366; }
.footer__badge--dp i { color: #f5c518; }
.footer__ads-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.08); color: #fff !important; }
.footer__ads-link:hover { background: var(--tr-red); }
.footer--pro .footer__regions { color: rgba(255,255,255,.7); }
.footer--pro .footer__regions a { color: #fff; }
.footer--pro .footer__identity { border-top: 1px solid rgba(255,255,255,.1); margin-top: 0; padding: 16px 0 20px; color: rgba(255,255,255,.65); }
.footer--pro .footer__identity strong { color: #fff; font-weight: 600; }

.footer--pro .footer__bottom { border-top: 1px solid rgba(255,255,255,.1) !important; padding: 18px 0 !important; background: rgba(0,0,0,.25) !important; }
.footer--pro .footer__copyright { color: rgba(255,255,255,.6); font-size: 12.5px; }
.footer--pro .footer__credit a { color: #fff; }
.footer__bottom-tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer--pro .footer__legal a { color: rgba(255,255,255,.6); }
.footer--pro .footer__legal a:hover { color: #fff; }
.footer__theme { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  background: none; color: rgba(255,255,255,.8); font-size: 12px; cursor: pointer; }
.footer__theme:hover { color: #fff; border-color: #fff; }

@media (max-width: 1023px) {
  .footer--pro .footer__grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .footer--pro .footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .footer-cta__inner { flex-direction: column; align-items: stretch; text-align: left; }
  .footer-cta__btn { justify-content: center; }
  .footer-cta__title { font-size: 1.05rem; }
  .footer.footer--pro { padding-top: 32px !important; }
  .footer--pro .footer__grid { grid-template-columns: 1fr !important; gap: 0 !important; padding-bottom: 8px !important; }
  .footer--pro .footer__col--brand { padding-bottom: 20px; }
  .footer--pro .footer__acc { border-bottom: 1px solid rgba(255,255,255,.1); }
  .footer--pro .footer__acc > summary.footer__title { margin: 0; padding: 16px 0; }
  .footer--pro .footer__acc > summary.footer__title::before { display: none; }
  .footer--pro .footer__acc > ul, .footer--pro .footer__acc > p, .footer--pro .footer__acc > a { margin-bottom: 16px; }
  .footer--pro .footer__bottom-inner { flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 12px; padding-bottom: 64px !important; }
}

/* Dark mode: keep cards readable */
html.dark .masthead { background: #0f172a; }
html.dark .sb-chip--hot { background: rgba(215,25,32,.18); }

/* ==========================================================================
   FIX 2026-11-29: menu text invisible.
   Admin theme custom_css forces `.nav__link { color: #fff !important }` (dark nav design),
   while the refresh had made the bar white. Go with the theme: dark bar, white text.
   Dropdowns & the phone drawer stay light with dark text.
   ========================================================================== */
.nav, .header__nav { background: var(--tr-ink) !important; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.nav .nav__link { color: rgba(255,255,255,.92) !important; }
.nav .nav__link:hover { color: #fff !important; background: rgba(255,255,255,.1) !important; }
.nav .nav__link--active { color: #fff !important; background: rgba(255,255,255,.06) !important; box-shadow: inset 0 -3px 0 var(--tr-red); }
.nav .nav__search, .nav .nav__toggle { color: #fff !important; }
.nav .nav__search:hover { background: rgba(255,255,255,.12); color: #fff !important; }
.nav .nav__item--has-children > .nav__link::after { color: rgba(255,255,255,.7); }

/* Desktop dropdown: light panel, dark text */
.nav .nav__dropdown { background: var(--color-bg-card) !important; }
.nav .nav__dropdown li a { color: var(--color-text) !important; background: none !important; }
.nav .nav__dropdown li a:hover { color: var(--tr-red) !important; background: var(--color-surface) !important; }
.nav .nav__dropdown li a[aria-current="page"] { color: var(--tr-red) !important; }

/* Phone/tablet drawer: light panel, dark text */
@media (max-width: 1023px) {
  .nav .nav__menu .nav__link { color: var(--color-text) !important; background: none !important; }
  .nav .nav__menu .nav__link:hover { color: var(--tr-red) !important; background: var(--color-surface) !important; }
  .nav .nav__menu .nav__link--active { color: var(--tr-red) !important; background: var(--color-surface) !important; box-shadow: none; }
  .nav .nav__item--has-children > .nav__link::after { color: var(--color-text-muted); }
}
/* Admin custom_css colors every /kategori/ link inside widgets black — keep the accent link red */
.sidebar__widget a.sb-more[href*="/kategori/"] { color: var(--tr-red) !important; }

/* ---------- Accessibility: colour contrast (PageSpeed / WCAG AA 4.5:1) — 2026-11-29 ---------- */
:root { --tr-green: #0e7a2b; --tr-meta: #556070; }
.article-list__date, .article-list__excerpt, .hb-meta, .sb-meta, .hl__meta, .category-grid__list-date, .category-grid__featured-date,
.hb-head__sub, .widget-list__date, .search-result__date { color: var(--tr-meta) !important; opacity: 1 !important; }
.article-list__category, .hb-tag--soft, .sb-meta--cat { opacity: 1 !important; }
.hl__cat:not(.hl__cat--sm), .hb-tag:not(.hb-tag--soft), .cat-chips__item--active, .breaking-news__badge { background-color: var(--tr-red) !important; color: #fff !important; }
.hl__cat--sm { color: var(--tr-red) !important; background: transparent !important; }
.hb-tag--soft { color: var(--tr-green) !important; }
.article-list__category { color: var(--tr-red) !important; }
html.dark { --tr-meta: #a3adbb; }
html.dark .article-list__category { color: #ff6b6b !important; }
