:root {
  color-scheme: light;
  /* Metrokini brand colors */
  --primary-color: #f58600;
  --primary-color-2: #ffd200;
  --secondary-color: #141f35;
  --secondary-color-2: #1c2b4a;
  --scheme-color: #f58600;
  --secondscheme-color: #ffd200;
  --mainmenu-bgcolor: #f58600;
  --mainmenu-secondbgcolor: #ffd200;
  --mainmenu-color: #fff;
  --mainmenu-hovercolor: #ffd200;
  --brand-gradient-menu: linear-gradient(90deg, var(--mainmenu-bgcolor) 0%, var(--mainmenu-secondbgcolor) 100%);
  --brand-gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-2) 100%);
  --brand-gradient-dongker: linear-gradient(180deg, var(--secondary-color) 0%, var(--secondary-color-2) 100%);
  --background-color: #f8f8f8;
  --content-bgcolor: #fff;
  --main-color: #333;
  --link-color-body: #000;
  --hoverlink-color-body: #d9091b;
  --border-color: #ccc;
  --button-bgcolor: #f58600;
  --button-color: #fff;
  --header-bgcolor: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
  --topnav-color: #000;
  --content-greycolor: #555;
  --footer-bgcolor: #fff;
  --footer-color: #666;
  --footer-linkcolor: #212121;
  --footer-hover-linkcolor: #f58600;
  --greybody-bgcolor: #eee;
  --sidebar-accent: #141f35;
  --headline-thumbs-bg: linear-gradient(90deg, #f3f3f3 0%, #ffffff 100%);
  --picks-bg: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  --popular-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --header-fg: #141f35;
  --picks-fg: #141f35;
  --popular-fg: #141f35;
  --headline-fg: #141f35;
  --brand-gradient-header: var(--header-bgcolor);
  --brand-gradient-picks: var(--picks-bg);
  --brand-gradient-popular: var(--popular-bg);
  --brand-gradient-headline: var(--headline-thumbs-bg);
  --max: 1050px;
  --page-gutter: 1rem;
  --card-pad: 0.85rem;
  --skin-gap: 0.75rem;
  /* Clear header + main nav, then leave a visible gap under the menu */
  --skin-top: calc(7.75rem + 46px + 1.25rem);
  --font: "Open Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* clip unsupported on some Android WebViews */
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--main-color);
  background: var(--background-color);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.site,
.site-content,
.container,
.home-layout,
.home-primary,
.home-sidebar,
.headline-slider,
.home-picks,
.home-latest,
.home-section,
.widget,
.story-layout,
.story,
.page-story,
.list-heading,
.related,
.footer-grid {
  max-width: 100%;
  min-width: 0;
}

.site {
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--link-color-body);
  text-decoration: none;
  font-weight: 700;
}
a:hover { color: var(--hoverlink-color-body); }

img, video, svg, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.list-flex {
  display: flex;
  align-items: center;
}

/* ===== Header (Singgalang-style) ===== */
.topnav-wrap {
  background: var(--header-bgcolor);
  color: var(--header-fg, var(--topnav-color));
  border-bottom: 1px solid #eee;
}
.topnav-wrap .top-date,
.topnav-wrap .top-date-text,
.topnav-wrap .site-search input,
.topnav-wrap .site-search input::placeholder {
  color: var(--header-fg, var(--topnav-color));
}
.topnav-wrap .site-search input {
  border-color: color-mix(in srgb, var(--header-fg, #141f35) 22%, transparent);
  background: color-mix(in srgb, var(--header-fg, #141f35) 6%, #fff);
}

.site-header {
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  color: var(--header-fg, var(--topnav-color));
}

.header-left { display: flex; align-items: center; }
.header-right {
  margin-left: auto;
  gap: 0.85rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 78px; width: auto; }
.brand-footer .brand-logo { height: 52px; }

.top-date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(22rem, 42vw);
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--header-fg, var(--content-greycolor)) 82%, transparent);
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid color-mix(in srgb, var(--header-fg, var(--border-color)) 28%, transparent);
  padding-right: 0.85rem;
  line-height: 1.2;
}
.top-date-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--primary-color, #f58600);
  background: color-mix(in srgb, var(--primary-color, #f58600) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-color, #f58600) 28%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 35%, transparent);
}
.top-date-icon {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
}
.top-date-text {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
}

.site-search input {
  outline: 0;
  width: min(250px, 42vw);
  height: 34px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 40px 8px 16px;
  font: inherit;
  background: #fff;
}

.site-search.wide {
  max-width: 32rem;
  margin-top: 0.75rem;
}
.site-search.wide input { width: 100%; max-width: none; }

.site-search button {
  position: absolute;
  right: 2px;
  top: 0;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--content-greycolor);
  cursor: pointer;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 34px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--secondary-color);
}

/* ===== Main menu (gradient from branding settings) ===== */
.main-navigation {
  background: var(--brand-gradient-menu, linear-gradient(90deg, var(--mainmenu-bgcolor) 0%, var(--mainmenu-secondbgcolor, var(--mainmenu-bgcolor)) 100%));
  position: relative;
  z-index: 99;
  max-width: 100%;
  overflow: visible;
}

.main-navigation .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  min-height: 46px;
  max-width: 100%;
  min-width: 0;
}

.main-navigation .menu > .menu-item {
  position: relative;
  flex: 0 0 auto;
  height: 46px;
}

.main-navigation .menu > .menu-item > a,
.main-navigation .menu > .menu-item > .menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mainmenu-color);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 transparent;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}
.main-navigation .menu > .menu-item > a:hover,
.main-navigation .menu > .menu-item > a:focus,
.main-navigation .menu > .menu-item > .menu-trigger:hover,
.main-navigation .menu > .menu-item > .menu-trigger:focus,
.main-navigation .menu > .menu-item.is-open > a,
.main-navigation .menu > .menu-item.is-open > .menu-trigger {
  color: var(--mainmenu-hovercolor);
  box-shadow: inset 0 -2px 0 0 var(--mainmenu-hovercolor);
}
.main-navigation .menu-caret {
  font-size: 12px;
  line-height: 1;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.main-navigation .menu > .menu-item.is-open .menu-caret {
  transform: rotate(180deg);
}
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  background: var(--secondary-color);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  z-index: 120;
}
.main-navigation .menu > .menu-item:last-child > .sub-menu,
.main-navigation .menu > .menu-item:nth-last-child(2) > .sub-menu {
  left: auto;
  right: 0;
}
.main-navigation .menu > .menu-item.has-children.is-open > .sub-menu {
  display: block;
}
@media (hover: hover) and (pointer: fine) {
  .main-navigation .menu > .menu-item.has-children:hover > .sub-menu,
  .main-navigation .menu > .menu-item.has-children:focus-within > .sub-menu {
    display: block;
  }
}
.main-navigation .sub-menu > .menu-item > a {
  display: block;
  padding: 0.55rem 1rem;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-navigation .sub-menu > .menu-item > a:hover,
.main-navigation .sub-menu > .menu-item > a:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--mainmenu-hovercolor);
}

.site-content { padding: 1.1rem 0 2.5rem; }

/* ===== Ads / widgets ===== */
.ad-band { margin: 0.85rem 0 1rem; }

/* Skin ads: fill leftover viewport beside centered .container, with small gaps */
.skin-ads {
  display: none;
  position: fixed;
  top: var(--skin-top);
  z-index: 40;
  box-sizing: border-box;
  width: calc((100vw - var(--max)) / 2 - (var(--skin-gap) * 2));
  max-width: calc((100vw - var(--max)) / 2 - (var(--skin-gap) * 2));
  max-height: calc(100vh - var(--skin-top) - var(--skin-gap));
  max-height: calc(100dvh - var(--skin-top) - var(--skin-gap));
  overflow: hidden;
  pointer-events: none;
}
.skin-ads-left { left: var(--skin-gap); }
.skin-ads-right { right: var(--skin-gap); }
.skin-ads .ad-slot,
.skin-ads .skin-ads-slot {
  margin: 0 0 0.65rem;
  pointer-events: auto;
  width: 100%;
}
.skin-ads .ad-slot:last-child,
.skin-ads .skin-ads-slot:last-child { margin-bottom: 0; }
.skin-ads img,
.skin-ads iframe,
.skin-ads ins,
.skin-ads .ad-link {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
.skin-ads img {
  object-fit: contain;
  object-position: top center;
}
@media (min-width: 1240px) {
  /* Show only when leftover space is useful (~80px+ per side after gaps) */
  .skin-ads { display: block; }
}

.ad-slot {
  display: block;
  margin: 0.55rem 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.ad-slot img,
.ad-slot picture,
.ad-slot a {
  display: block;
  width: 100%;
  max-width: 100%;
}
.ad-slot img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: unset;
  margin: 0;
}
.ad-slot iframe,
.ad-slot ins {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
.ad-widget {
  padding: 0 !important;
  overflow: hidden;
}
.ad-widget .ad-slot {
  margin: 0;
  width: 100%;
}
.ad-slot-mid {
  margin: 1.25rem 0;
  padding: 0;
  border-top: 1px dashed #e5e5e5;
  border-bottom: 1px dashed #e5e5e5;
}
.ad-link { display: block; width: 100%; max-width: 100%; }

/* ===== Home layout ===== */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

.home-primary > *:not(:last-child),
.home-sidebar > *:not(:last-child) {
  margin-bottom: 1rem;
}

/* ===== Headline slider (Singgalang-style) ===== */
.headline-slider {
  margin-bottom: 1rem;
  background: var(--content-bgcolor);
  border: 1px solid #eee;
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.headline-stage {
  position: relative;
  background: #111;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.headline-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  pointer-events: none;
  z-index: 1;
}
.headline-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.headline-media {
  display: block;
  width: 100%;
  height: 100%;
}
.headline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.headline-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.15rem 2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.92), rgba(0,0,0,0));
  color: #fff;
  z-index: 3;
}
.headline-info a { color: #fff; }
.headline-info .meta { color: rgba(255,255,255,0.85); margin: 0.2rem 0 0; }
.headline-title {
  margin: 0.4rem 0 0.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  line-height: 1.28;
  font-weight: 700;
}

.headline-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.65rem;
  z-index: 4;
  pointer-events: none;
}
.headline-prev,
.headline-next {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.headline-prev:hover,
.headline-next:hover {
  opacity: 1;
  background: var(--scheme-color);
}

.headline-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  z-index: 4;
  pointer-events: none;
}
.headline-dots button {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}
.headline-dots button.is-active {
  background: var(--scheme-color);
  width: 18px;
  border-radius: 999px;
}

.headline-thumb-row {
  position: relative;
}
.headline-thumbs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  background: var(--headline-thumbs-bg);
  border-top: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.headline-thumb-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.headline-thumb-nav[hidden] { display: none; }
.headline-thumb-prev { left: 0.35rem; }
.headline-thumb-next { right: 0.35rem; }
.headline-thumb {
  display: grid;
  flex: 0 0 calc(100% / var(--thumb-cols, 4));
  width: calc(100% / var(--thumb-cols, 4));
  max-width: calc(100% / var(--thumb-cols, 4));
  scroll-snap-align: start;
  grid-template-columns: minmax(2.25rem, 64px) minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  text-align: left;
  border: 0;
  border-top: 3px solid transparent;
  border-right: 1px solid #e5e5e5;
  background: transparent;
  padding: 0.55rem 0.5rem;
  cursor: pointer;
  min-width: 0;
  font: inherit;
  color: var(--headline-fg, var(--main-color));
  transition: background 0.2s ease, border-color 0.2s ease;
}
.headline-thumb:last-child { border-right: 0; }
.headline-thumb img {
  width: 100%;
  max-width: 64px;
  height: 48px;
  object-fit: cover;
}
.headline-thumb span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}
.headline-thumb:hover,
.headline-thumb.is-active {
  background: rgba(0,0,0,0.04);
  border-top-color: var(--scheme-color);
}

.home-picks {
  background: var(--picks-bg, var(--content-bgcolor));
  color: var(--picks-fg, var(--main-color));
  border: 1px solid #eee;
  padding: var(--card-pad);
  margin-bottom: 1rem;
}
.home-picks .widget-title,
.home-picks .entry-title,
.home-picks .entry-title a,
.home-picks .meta {
  color: inherit;
}
.home-picks .widget-title::before {
  background: color-mix(in srgb, var(--picks-fg, var(--secondscheme-color)) 55%, var(--scheme-color));
}
.home-picks .meta {
  opacity: 0.78;
}

.ticker {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--content-bgcolor);
  border: 1px solid #eee;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.ticker-label {
  flex: 0 0 auto;
  background: var(--scheme-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
}
.ticker-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.ticker-track a {
  color: var(--main-color);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Widget titles — Singgalang left bar accent */
.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.widget-title {
  margin: 0;
  font-size: 18px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  font-weight: 700;
}
.widget-title::before {
  content: "";
  margin-right: 10px;
  width: 3px;
  height: 22px;
  background: var(--secondscheme-color);
  border-radius: 2px;
}
.more-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--scheme-color);
}

.home-latest,
.home-section,
.widget,
.list-heading,
.related,
.story,
.page-story,
.auth-panel {
  background: var(--content-bgcolor);
}

.home-latest,
.home-section,
.widget,
.list-heading,
.related {
  border: 1px solid #eee;
  padding: var(--card-pad);
}
.widget.widget-popular {
  background: var(--popular-bg, var(--content-bgcolor));
  color: var(--popular-fg, var(--main-color));
}
.widget-popular .widget-title,
.widget-popular .popular-body a,
.widget-popular .popular-title,
.widget-popular .meta {
  color: inherit;
}
.widget-popular .widget-title::before {
  background: color-mix(in srgb, var(--popular-fg, var(--secondscheme-color)) 55%, var(--scheme-color));
}
.widget-popular .meta { opacity: 0.78; }

.widget.widget-opinion {
  background: var(--opinion-bg, #fff7ed);
  color: var(--opinion-fg, #141f35);
}
.widget-opinion .widget-title,
.widget-opinion .opinion-title,
.widget-opinion .opinion-by { color: inherit; }
.widget-opinion .widget-title::before {
  background: color-mix(in srgb, var(--opinion-fg, #141f35) 55%, var(--scheme-color));
}
.opinion-head { justify-content: flex-start; }
.opinion-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-right: 0.35rem;
}
.opinion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.opinion-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.opinion-portrait {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 56px;
  background: color-mix(in srgb, var(--opinion-fg, #141f35) 12%, transparent);
}
.opinion-portrait-empty { display: block; }
.opinion-copy { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.opinion-by { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; }
.opinion-title { font-weight: 600; line-height: 1.35; }
.opinion-byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.75rem 0 0.35rem;
}
.opinion-byline img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.opinion-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--scheme-color);
}
.opinion-byline strong { font-size: 1.05rem; }

/* Box list — Singgalang flex row */
.box-list { display: grid; }
.box-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eee;
  animation: rise 0.35s ease both;
  min-width: 0;
  max-width: 100%;
}
.box-item:first-child { padding-top: 0; }
.box-item:last-child { border-bottom: 0; padding-bottom: 0; }

.box-thumb,
.post-thumbnail {
  width: 31.7%;
  min-width: 0;
  max-width: 140px;
  margin-right: 16px;
  overflow: hidden;
  flex: 0 0 auto;
}
.box-thumb img,
.post-thumbnail img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.box-body,
.box-content {
  flex: 1;
  min-width: 0;
  position: static;
}

.entry-title {
  margin: 0.2rem 0 0.3rem;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--hoverlink-color-body); }

.meta {
  color: var(--content-greycolor);
  font-size: 0.8rem;
  font-weight: 400;
  margin: 0;
}

.excerpt {
  margin: 0.35rem 0 0;
  color: var(--content-greycolor);
  font-weight: 400;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-text,
.cat-pill {
  color: var(--scheme-color);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cat-pill {
  display: inline-block;
  background: var(--scheme-color);
  color: #fff !important;
  padding: 0.22rem 0.45rem;
  border-radius: 2px;
  margin-right: 0.25rem;
}
.cat-text {
  display: inline-block;
  background: #f2f2f2;
  color: #000 !important;
  padding: 4px 6px;
  border-radius: 2px;
  margin-bottom: 6px;
  text-transform: none;
  font-size: 11px;
  letter-spacing: 0;
}
.cat-text:hover {
  background: var(--scheme-color);
  color: #fff !important;
}

.grid-4, .grid-3 {
  display: grid;
  gap: 0.85rem;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.grid-card { min-width: 0; }
.grid-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 0.45rem;
}
.grid-card .entry-title { font-size: 0.95rem; }

.popular-list, .cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.popular-list li {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
}
.widget-popular .popular-list > li {
  /* Hairline divider that tracks section ink on any popular BG. */
  border-bottom: 1px solid color-mix(in srgb, var(--popular-fg, #141f35) 16%, transparent);
}
.popular-list li:last-child { border-bottom: 0; }
.popular-list li.is-top {
  display: block;
  padding-top: 0;
  padding-bottom: 0.45rem;
}

.rp-number,
.rp-number-primary {
  flex: 0 0 auto;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 36px;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border-radius: 5px;
  text-align: center;
  /* Chip fill must stay dark enough: numbers are always white. */
  background: var(--sidebar-accent, #141f35);
}
.rp-number-primary {
  background: var(--primary-color);
}

.popular-body {
  flex: 1;
  min-width: 0;
}
.popular-body a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}
.popular-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.18rem;
  width: 100%;
}
.popular-body .meta {
  display: inline;
  margin-top: 0;
  font-size: 0.75rem;
  min-width: 0;
}
.popular-views {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  margin-left: auto;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: #fff4e6;
  color: var(--primary-color, #f58600);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.popular-views svg {
  width: 0.78rem;
  height: 0.78rem;
  fill: currentColor;
  flex-shrink: 0;
}

.popular-top {
  position: relative;
  display: block;
  color: #fff;
  overflow: hidden;
  border-radius: 2px;
  margin: 0 calc(var(--card-pad) * -1) 0.25rem;
}
.popular-top img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.popular-top .rp-number {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  margin: 0;
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 16px;
}
.popular-top-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem var(--card-pad) 0.6rem 58px;
  background: linear-gradient(0deg, rgba(0,0,0,0.88), rgba(0,0,0,0));
  z-index: 1;
}
.popular-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #fff;
}
.popular-top .meta {
  color: rgba(255,255,255,0.85);
  margin-top: 0;
  font-size: 0.75rem;
}
.popular-top .popular-meta-row {
  width: 100%;
}
.popular-top .popular-views {
  background: rgba(245, 134, 0, 0.95);
  color: #fff;
}
.popular-top:hover { color: #fff; }
.popular-top:hover .popular-title { color: var(--secondscheme-color); }

.cat-list li { border-bottom: 1px solid #eee; }
.cat-list a {
  display: block;
  padding: 0.55rem 0;
  color: inherit;
  font-weight: 600;
}
.cat-list a:hover { color: var(--hoverlink-color-body); }

/* Article / pages */
.story-layout {
  width: 100%;
  max-width: 100%;
}
.story-layout .story {
  max-width: none;
}
.side-latest {
  display: grid;
  gap: 0.75rem;
}
.side-latest-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.side-latest-thumb {
  flex: 0 0 88px;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: #f3f4f6;
}
.side-latest-thumb img {
  display: block;
  width: 88px;
  height: 66px;
  object-fit: cover;
}
.side-latest-body {
  flex: 1;
  min-width: 0;
}
.side-latest-body .entry-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}
.side-latest-body .meta {
  margin: 0.25rem 0 0;
}
.story, .page-story, .auth-panel {
  padding: 1.1rem 1.2rem 1.5rem;
  border: 1px solid #eee;
}
.story-title {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  color: var(--main-color);
}
.subtitle {
  margin: 0 0 0.75rem;
  color: var(--content-greycolor);
  font-size: 1.05rem;
  font-weight: 400;
}
.story-meta { margin-bottom: 1rem; }
.story-figure { margin: 0 0 1.1rem; }
.story-figure img { width: 100%; display: block; }
.story-caption,
.entry-content .wp-caption-text,
.entry-content figcaption {
  margin: 0.45rem 0 0;
  padding: 0 0.15rem;
  color: var(--content-greycolor, #666);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}
.entry-content .wp-caption,
.entry-content figure.wp-caption {
  display: block;
  margin: 1.1em auto;
  max-width: 100%;
}
.entry-content .wp-caption img {
  margin: 0;
  display: block;
  width: 100%;
  height: auto;
}
.entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--main-color);
  word-break: break-word;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content .baca-juga {
  margin: 1.1em 0;
  padding: 0.65em 0.85em;
  border-left: 3px solid var(--scheme-color);
  background: #fff4e6;
  font-size: 0.98em;
  line-height: 1.45;
}
.entry-content .baca-juga strong {
  color: var(--secondary-color, #141f35);
  margin-right: 0.25em;
}
.entry-content .baca-juga a {
  color: var(--scheme-color);
  font-weight: 600;
  text-decoration: none;
}
.entry-content .baca-juga a:hover {
  text-decoration: underline;
  color: var(--hoverlink-color-body);
}
.entry-content p {
  margin: 0 0 1.15em;
  font-weight: 400;
}
.entry-content p + p { margin-top: 0; }
.entry-content br { display: block; margin-bottom: 0.15em; content: ""; }
.entry-content strong,
.entry-content b { font-weight: 700; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.4em 0 0.65em;
  line-height: 1.3;
  font-weight: 700;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}
.entry-content li { margin: 0.35em 0; font-weight: 400; }
.entry-content blockquote {
  margin: 0 0 1.15em;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--scheme-color);
  background: #fafafa;
  color: var(--content-greycolor);
}
.entry-content img,
.entry-content video,
.entry-content figure,
.entry-content .wp-caption,
.entry-content .alignnone,
.entry-content .aligncenter,
.entry-content .alignleft,
.entry-content .alignright {
  max-width: 100%;
  height: auto;
}
.entry-content img { margin: 1.1em 0; border-radius: 2px; }
.entry-content figure { margin: 1.1em 0; }
.entry-content iframe,
.entry-content embed,
.entry-content object {
  width: 100% !important;
  max-width: 100%;
  min-height: 12rem;
  border: 0;
  margin: 1.1em 0;
}
.entry-content table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}
.entry-content pre,
.entry-content code {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre-wrap;
  word-break: break-word;
}
.entry-content a { color: var(--scheme-color); }
.entry-content a:hover { color: var(--hoverlink-color-body); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--content-greycolor);
}
.crumbs a { color: var(--content-greycolor); font-weight: 600; }

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 1.1rem;
}
.share-bar-bottom {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.share-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--content-greycolor);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 0.2rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff !important;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.share-btn:hover { transform: translateY(-1px); opacity: 0.92; color: #fff !important; }
.share-fb { background: #1877f2; }
.share-x { background: #111; }
.share-wa { background: #25d366; }
.share-tg { background: #229ed9; }
.share-li { background: #0a66c2; }
.share-copy { background: var(--scheme-color); }
.share-btn.is-copied { background: var(--secondary-color); }

.tag-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.tag-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--content-greycolor);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; }
.tag-row a {
  background: var(--greybody-bgcolor);
  color: #212121;
  padding: 0.3rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2px;
}
.tag-row a:hover {
  background: var(--scheme-color);
  color: #fff;
}

.related { margin-top: 1.25rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 720px) {
  .related-grid { grid-template-columns: 1fr; }
}
@media (min-width: 721px) and (max-width: 980px) {
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.list-heading { padding: 1rem 1.1rem; margin-bottom: 1rem; }
.list-heading h1 { margin: 0.2rem 0 0.35rem; font-size: 1.6rem; }
.lede { margin: 0; color: var(--content-greycolor); font-weight: 400; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
}
.pager a {
  background: var(--button-bgcolor);
  color: var(--button-color) !important;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  border-radius: 2px;
}
.empty { color: var(--content-greycolor); padding: 1rem 0; font-weight: 400; }

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0 0;
  background: var(--footer-bgcolor);
  color: var(--footer-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 1.25rem;
  padding-bottom: 1.75rem;
  width: 100%;
  max-width: 100%;
}
.footer-col { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.footer-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  font-weight: 700;
}
.footer-title::before {
  content: "";
  width: 3px;
  height: 16px;
  margin-right: 8px;
  background: var(--secondscheme-color);
  border-radius: 2px;
}
.footer-desc {
  margin: 0.75rem 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--footer-color);
}
.footer-contact,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact li,
.footer-menu li {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
}
.footer-contact span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--content-greycolor);
  margin-bottom: 0.1rem;
}
.footer-menu a,
.footer-contact a {
  color: var(--footer-linkcolor);
  font-weight: 600;
}
.footer-menu a:hover,
.footer-contact a:hover { color: var(--footer-hover-linkcolor); }
.footer-note {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}
.footer-social { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; }
.footer-chip {
  display: inline-block;
  background: var(--scheme-color);
  color: #fff !important;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 700;
}
.footer-chip:hover { background: var(--secondary-color); color: #fff !important; }
.footer-bottom {
  border-top: 1px solid #eee;
  padding: 0.9rem 0 1.4rem;
}
.footer-copy { margin: 0; font-size: 0.86rem; font-weight: 400; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.auth-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: #141f35;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(245, 134, 0, 0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(255, 210, 0, 0.16), transparent 50%),
    linear-gradient(165deg, #f7f8fb 0%, #eef2f7 55%, #f8fafc 100%);
}
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: clamp(2.5rem, calc((100dvh - 28rem) / 2), 8rem) 0.85rem 1.5rem;
}
.auth-split {
  width: min(100%, 38rem);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(20, 31, 53, 0.08);
  overflow: hidden;
  min-height: 0;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.15rem 1rem;
  background-color: #141f35;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.auth-brand .auth-logo {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: fit-content;
  box-shadow: none;
}
.auth-brand .auth-logo img {
  display: block;
  width: min(100%, 168px);
  height: auto;
  background: transparent;
}
.auth-brand-tag {
  margin: 0;
  font-family: Poppins, "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd200;
}
.auth-brand-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.4;
  max-width: 13rem;
}
.auth-panel-main {
  padding: 1.1rem 1.05rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-card-top { margin-bottom: 0.75rem; }
.auth-logo { display: inline-block; text-decoration: none; }
.auth-logo img { display: block; width: 120px; height: auto; }
.auth-eyebrow {
  margin: 0;
  color: #5b6b86;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-panel-main h1 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-family: Poppins, "Open Sans", sans-serif;
  letter-spacing: -0.02em;
}
.auth-lede {
  margin: 0.25rem 0 0;
  color: #5b6b86;
  font-size: 0.8rem;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .auth-split {
    grid-template-columns: 1fr;
    width: min(100%, 22rem);
  }
  .auth-brand {
    padding: 0.9rem 0.95rem;
    min-height: 0;
  }
}
.auth-alert {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.45rem;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.78rem;
}
.auth-form { display: grid; gap: 0.65rem; }
.auth-field {
  display: grid;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.78rem;
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d7dee8;
  border-radius: 0.55rem;
  font: inherit;
  font-weight: 400;
  background: #fff;
  color: #141f35;
}
.auth-field input:focus {
  outline: 2px solid #fff4e6;
  border-color: #f0b35a;
}
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--brand-gradient-primary, #f58600);
  color: #fff;
  padding: 0.58rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
}
.auth-submit svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}
.auth-submit:hover { background: #e07800; }
.auth-foot {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.74rem;
}
.auth-foot a {
  color: #5b6b86;
  text-decoration: none;
  font-weight: 600;
}
.auth-foot a:hover { color: #f58600; }
.auth-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.account-shell {
  display: grid;
  place-items: center;
  padding: 1.25rem 0 2rem;
}
.account-card {
  width: min(100%, 34rem);
  background: var(--content-bgcolor);
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  box-shadow: 0 14px 40px rgba(20, 31, 53, 0.07);
  overflow: hidden;
  animation: rise 0.35s ease both;
}
.account-hero {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 18%, transparent), transparent 55%),
    var(--brand-gradient-dongker, linear-gradient(180deg, #141f35 0%, #1c2b4a 100%));
  color: #fff;
}
.account-avatar {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f58600;
  color: #fff;
  font-family: Poppins, "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.account-hero-copy { min-width: 0; }
.account-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd200;
}
.account-hero h1 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  font-family: Poppins, "Open Sans", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.account-login {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}
.account-facts {
  margin: 0;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.account-facts > div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eef2f7;
}
.account-facts > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.account-facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--content-greycolor);
}
.account-facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--main-color);
}
.account-role {
  display: inline-flex;
  align-items: center;
  margin: 0.15rem 0.35rem 0 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff4e6;
  color: #c56a00;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}
.account-role.is-muted {
  background: #eef2f7;
  color: #5b6b86;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1.25rem 1.25rem;
}
.account-logout { margin: 0; }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.account-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.account-btn-primary {
  background: var(--button-bgcolor, #f58600);
  color: #fff !important;
}
.account-btn-primary:hover { filter: brightness(0.95); color: #fff !important; }
.account-btn-ghost {
  background: #eef2f7;
  color: #141f35 !important;
}
.account-btn-ghost:hover { background: #e4e9f0; color: #141f35 !important; }
.account-btn-danger {
  background: #fef2f2;
  color: #b91c1c !important;
}
.account-btn-danger:hover { background: #fee2e2; color: #991b1b !important; }
@media (max-width: 560px) {
  .account-actions { flex-direction: column; }
  .account-btn,
  .account-logout { width: 100%; }
  .account-btn { justify-content: center; }
}

.alert { color: var(--hoverlink-color-body); font-weight: 600; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .home-layout { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .headline-stage {
    aspect-ratio: auto;
    height: min(52vw, 340px);
    max-height: 360px;
  }
  .headline-thumb-nav { display: none; }
  .headline-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    width: 100%;
    max-width: 100%;
  }
  .headline-thumb {
    flex: 0 0 auto;
    width: 11.5rem;
    max-width: 70%;
    scroll-snap-align: start;
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .headline-thumb img {
    width: 56px;
    height: 42px;
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 0.75rem;
    --card-pad: 0.7rem;
  }
  .home-layout { gap: 0.75rem; }
  .home-primary > *:not(:last-child),
  .home-sidebar > *:not(:last-child) {
    margin-bottom: 0.75rem;
  }
  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 40px;
    flex: 0 0 auto;
    touch-action: manipulation;
  }
  .top-date { display: none; }
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0;
  }
  .header-left { min-width: 0; flex: 0 1 auto; }
  .brand { min-width: 0; max-width: 100%; }
  .brand-logo {
    height: 58px;
    width: auto;
    max-width: min(210px, 56vw);
    object-fit: contain;
  }
  .header-right {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0.4rem;
    min-width: 0;
    justify-content: flex-end;
  }
  .site-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 11.5rem;
  }
  .site-search input {
    width: 100%;
    max-width: none;
    font-size: 16px; /* avoid mobile browser zoom-on-focus */
  }
  .main-navigation .menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    max-height: none;
    overflow: visible;
    padding: 0.35rem 0 0.6rem;
  }
  .main-navigation.is-open .menu { display: flex; }
  .main-navigation .menu > .menu-item {
    margin-right: 0;
    height: auto;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .main-navigation .menu > .menu-item > a,
  .main-navigation .menu > .menu-item > .menu-trigger {
    width: 100%;
    justify-content: space-between;
    height: auto;
    min-height: 44px;
    padding: 0.7rem 0;
  }
  .main-navigation .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    background: rgba(0, 0, 0, 0.14);
    border-radius: 0;
    box-shadow: none;
    padding: 0.15rem 0 0.35rem 1rem;
  }
  .main-navigation .menu > .menu-item.has-children.is-open > .sub-menu {
    display: block;
  }
  .main-navigation .sub-menu > .menu-item > a {
    padding: 0.45rem 0.5rem;
    font-size: 13.5px;
    color: var(--mainmenu-color);
  }
  .grid-4,
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .grid-thumb img {
    aspect-ratio: 16 / 10;
    max-height: 132px;
  }
  .grid-card .entry-title { font-size: 0.94rem; -webkit-line-clamp: 3; }
  .grid-card .meta { font-size: 0.76rem; }
  .popular-top img {
    aspect-ratio: 16 / 10;
    max-height: 148px;
  }

  /* Taller hero + compact bottom overlay so more image stays visible */
  .headline-stage {
    aspect-ratio: auto;
    height: min(66vw, 310px);
    max-height: 320px;
  }
  .headline-info {
    padding: 1.6rem 0.75rem 0.55rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0) 100%);
  }
  .headline-info .cat-pill {
    font-size: 0.66rem;
    padding: 0.16rem 0.38rem;
  }
  .headline-info .meta { display: none; }
  .headline-title {
    font-size: clamp(0.95rem, 4vw, 1.12rem);
    margin: 0.28rem 0 0;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .headline-thumb {
    flex: 0 0 auto;
    width: 10.25rem;
    max-width: 75%;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 0.4rem 0.45rem;
  }
  .headline-thumb img {
    width: 48px;
    height: 36px;
  }
  .headline-thumb span {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
  }
  .headline-prev,
  .headline-next { opacity: 1; }

  /* List thumbs & titles a bit larger under the headline */
  .box-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    padding: 0.85rem 0;
  }
  .box-thumb,
  .post-thumbnail {
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    margin-right: 0.8rem;
    margin-bottom: 0;
    flex: 0 0 118px;
  }
  .box-thumb img,
  .post-thumbnail img {
    width: 118px;
    height: 88px;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .box-item .excerpt { display: none; }
  .box-item .entry-title,
  .entry-title { font-size: 1.02rem; -webkit-line-clamp: 3; }
  .box-item .meta { font-size: 0.78rem; }
  .box-item .cat-text { font-size: 0.72rem; padding: 0.22rem 0.4rem; }

  .story-title { font-size: clamp(1.25rem, 5.5vw, 1.7rem); }
  .story-figure {
    margin: 0 0 0.85rem;
    border-radius: 2px;
  }
  .story-figure img {
    width: 100%;
    height: 200px;
    max-height: 200px;
    object-fit: cover;
  }
  .story-caption { font-size: 0.82rem; }
  .entry-content { font-size: 16px; line-height: 1.7; }
  .entry-content img {
    width: 100%;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    margin: 0.75em auto;
  }
  .entry-content figure,
  .entry-content .wp-caption {
    max-height: none;
  }
  .entry-content .wp-caption img,
  .entry-content figure img {
    max-height: 220px;
  }
  .entry-content iframe { min-height: 10rem; max-height: 220px; }
  .site-content { padding: 0.75rem 0 1.75rem; }
  .story, .page-story, .list-heading { padding: var(--card-pad); }

  /* Ads: full width of column, height follows image ratio */
  .ad-band { margin: 0.65rem 0 0.75rem; }
  .ad-slot,
  .ad-widget .ad-slot {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .ad-slot img,
  .ad-widget .ad-slot img,
  .ad-band-header .ad-slot img,
  .ad-band-footer .ad-slot img,
  .ad-slot-mid img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
  .ad-slot iframe,
  .ad-slot ins {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
  .ad-widget { padding: 0 !important; }
  .related .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .brand-logo {
    height: 52px;
    max-width: min(190px, 52vw);
  }
  .site-search { max-width: 8.75rem; }
  .headline-stage {
    height: min(70vw, 280px);
    max-height: 290px;
  }
  .headline-info {
    padding: 1.4rem 0.65rem 0.5rem;
  }
  .headline-controls { padding: 0 0.35rem; }
  .headline-prev,
  .headline-next {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }
  .box-thumb,
  .post-thumbnail {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    flex-basis: 108px;
    margin-right: 0.7rem;
  }
  .box-thumb img,
  .post-thumbnail img {
    width: 108px;
    height: 80px;
  }
  .grid-thumb img { max-height: 118px; }
  .grid-card .entry-title { font-size: 0.9rem; }
  .box-item .entry-title,
  .entry-title { font-size: 0.98rem; }
  .story-figure img { max-height: 170px; height: 170px; }
  .entry-content img { max-height: 180px; }
  .entry-content .wp-caption img,
  .entry-content figure img { max-height: 180px; }
  .footer-contact li,
  .footer-copy { overflow-wrap: anywhere; }
}

/* Android / narrow vertical viewport (portrait phone & split-screen) */
@media (orientation: portrait) and (max-width: 480px) {
  :root {
    --page-gutter: 0.65rem;
    --card-pad: 0.65rem;
  }
  .brand-logo {
    height: 52px;
    max-width: min(190px, 52vw);
  }
  .site-search { max-width: 8.75rem; }
  .nav-toggle { width: 42px; height: 38px; }
  .headline-stage {
    height: min(72vw, 290px);
    max-height: 300px;
  }
  .headline-info {
    padding: 1.35rem 0.65rem 0.48rem;
  }
  .grid-4,
  .grid-3 { gap: 0.55rem; }
  .ad-slot img,
  .ad-widget .ad-slot img,
  .ad-band-header .ad-slot img,
  .ad-band-footer .ad-slot img,
  .ad-slot-mid img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
  .headline-thumbs { max-width: 100%; }
  .related .grid-4,
  .grid-4,
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (orientation: landscape) and (max-height: 480px) {
  .brand-logo { height: 36px; max-width: 140px; }
  .site-header { padding: 0.35rem 0; }
  .headline-stage {
    aspect-ratio: auto;
    height: min(36vh, 150px);
    max-height: 150px;
  }
  .story-figure img { max-height: 140px; height: 140px; }
}
