/*
Theme Name: Sinaubisnis Fresh
Theme URI: https://sinaubisnis.com
Description: Child theme Astra untuk sinaubisnis.com — magazine bisnis: merah logo, charcoal, tipografi Manrope + Inter, hero bernomor dan indeks rubrik.
Author: Homelab Ops
Template: astra
Version: 1.0.0
Text Domain: sb-magazine
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */
:root {
  /* Palette from the Sinaubisnis logo (#e82028 red badge) */
  --sb-red: #e82028;
  --sb-red-dark: #c2171f;
  --sb-red-deep: #96121a;
  --sb-red-soft: #fdeaea;
  --sb-red-tint: #fff7f7;
  --sb-ink: #17181c;
  --sb-ink-soft: #2b2d33;
  --sb-muted: #63666e;
  --sb-paper: #ffffff;
  --sb-soft: #f8f7f4;
  --sb-line: #e8e6e1;
  --sb-max: 1240px;
  --sb-gap: 28px;
  --sb-radius: 8px;
  --sb-radius-lg: 12px;
  --sb-shadow: 0 10px 28px rgba(23, 24, 28, 0.07);
  --sb-shadow-hover: 0 14px 34px rgba(23, 24, 28, 0.11);
  --sb-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --sb-font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, sans-serif;
}

/* ==========================================================================
   3. Astra base overrides
   ========================================================================== */
body,
body.ast-separate-container,
body.ast-plain-container {
  font-family: var(--sb-font-body);
  color: var(--sb-ink-soft);
  background: var(--sb-paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title {
  font-family: var(--sb-font-head);
  color: var(--sb-ink);
  letter-spacing: -0.02em;
}

a {
  color: var(--sb-red-dark);
}

a:hover,
a:focus {
  color: var(--sb-red-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.sb-template.ast-separate-container .site-content,
.sb-template .site-content {
  background: var(--sb-paper) !important;
  padding: 0 !important;
}

.sb-template #content > .ast-container {
  max-width: none !important;
  padding: 0 !important;
}

.sb-template #primary,
.sb-template.ast-right-sidebar #primary,
.sb-template.ast-left-sidebar #primary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: block;
}

.sb-template .ast-container {
  padding-inline: 0;
}

.sb-content-area {
  display: block;
  width: 100%;
}

.sb-wrap {
  width: 100%;
  max-width: var(--sb-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.sb-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--sb-red-soft);
  color: var(--sb-red-deep);
}

/* ==========================================================================
   4. Header (Astra)
   ========================================================================== */
.sb-template .site-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--sb-line);
  box-shadow: none;
}

.site-header .ast-primary-header-bar,
.site-header .main-header-bar {
  background: transparent !important;
  border-bottom: 0;
}

.site-header .ast-container,
.site-header .ast-builder-grid-row-container {
  max-width: var(--sb-max);
}

.site-header .ast-builder-grid-row {
  min-height: 76px;
  align-items: center;
}

.custom-logo,
.site-header .custom-logo {
  height: 30px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}

.main-header-menu {
  gap: 2px;
}

.main-header-menu > li > .menu-link,
.main-header-menu > li > a {
  font-family: var(--sb-font-body) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sb-ink) !important;
  padding: 9px 12px !important;
  border-radius: 6px;
  line-height: 1.2 !important;
  transition: color 0.16s ease, background 0.16s ease;
}

.main-header-menu > li > .menu-link:hover,
.main-header-menu > li > a:hover,
.main-header-menu > li.current-menu-item > .menu-link,
.main-header-menu > li.current-menu-item > a,
.main-header-menu > li.current-menu-ancestor > .menu-link {
  background: var(--sb-red-tint) !important;
  color: var(--sb-red-dark) !important;
}

.main-header-menu .sub-menu {
  border: 1px solid var(--sb-line) !important;
  border-radius: 8px;
  box-shadow: var(--sb-shadow);
  padding: 8px;
  background: #fff;
}

.main-header-menu .sub-menu .menu-link {
  border-radius: 6px;
  font-size: 12px !important;
  text-transform: none;
  letter-spacing: 0;
}

.main-header-menu .sub-menu .menu-link:hover {
  background: var(--sb-red-tint);
}

.main-header-menu-toggle,
.main-header-menu-toggle .mobile-menu-toggle-icon,
.main-header-menu-toggle svg {
  color: var(--sb-ink) !important;
  fill: var(--sb-ink) !important;
}

.main-header-menu-toggle:hover,
.main-header-menu-toggle:hover svg {
  color: var(--sb-red) !important;
  fill: var(--sb-red) !important;
}

/* Header layout: logo + single-line menu + search */
.sb-template .site-header .ast-builder-grid-row,
.site-header .ast-builder-grid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-header .site-branding {
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.site-header .site-branding::after {
  content: "belajar ilmu bisnis online";
  font-family: var(--sb-font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--sb-muted);
}

/* The logo already contains the brand name. */
.site-header .ast-site-title-wrap {
  display: none;
}

.main-header-menu {
  margin-left: auto !important;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
}

.main-header-menu > li {
  flex: 0 0 auto;
}

.sb-menu-search {
  display: flex;
  align-items: center;
  margin-left: 10px;
  flex: 0 0 auto;
}

.sb-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 3px 3px 3px 10px;
  background: var(--sb-soft);
  border: 1px solid var(--sb-line);
  border-radius: 6px;
}

.sb-search:focus-within {
  outline: 2px solid var(--sb-red);
  outline-offset: 2px;
}

.sb-search input {
  width: 124px;
  border: 0;
  background: transparent;
  font-family: var(--sb-font-body);
  font-size: 12px;
  color: var(--sb-ink);
  outline: none;
}

.sb-search input::placeholder {
  color: var(--sb-muted);
}

.sb-search button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: var(--sb-red-ui);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.sb-search button:hover {
  background: var(--sb-red-dark);
}

/* Dropdown indicator */
.main-header-menu .menu-item-has-children > a::after {
  content: "\25BE";
  font-size: 9px;
  margin-left: 5px;
  opacity: 0.6;
}

@media (max-width: 1180px) {
  .site-header .ast-builder-grid-row {
    gap: 16px;
  }

  .main-header-menu > li > a {
    font-size: 11px !important;
    padding: 8px 8px !important;
  }

  .sb-search {
    height: 34px;
  }

  .sb-search input {
    width: 96px;
  }

  .sb-search button {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   5. Top bar
   ========================================================================== */
.sb-topbar {
  background: var(--sb-red-ui);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.sb-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
  padding-block: 6px;
}

.sb-topbar__tagline {
  color: rgba(255, 255, 255, 0.88);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.sb-topbar a {
  color: #fff;
  text-decoration: none;
}

.sb-topbar a:hover,
.sb-topbar a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sb-topbar__links {
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.sb-hero {
  background: linear-gradient(
    180deg,
    var(--sb-red-tint) 0%,
    var(--sb-soft) 55%,
    var(--sb-paper) 100%
  );
  padding: 30px 0 34px;
}

.sb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.sb-hero__lead {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-lg);
  overflow: hidden;
  box-shadow: var(--sb-shadow);
}

.sb-hero__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sb-soft);
}

.sb-hero__media .sb-pic,
.sb-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.sb-hero__lead:hover .sb-hero__media img {
  transform: scale(1.03);
}

.sb-hero__body {
  padding: 20px 24px 24px;
}

.sb-hero__title {
  margin: 8px 0 10px;
  font-family: var(--sb-font-head);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.sb-hero__title a {
  color: var(--sb-ink);
  text-decoration: none;
}

.sb-hero__title a:hover {
  color: var(--sb-red-dark);
}

.sb-hero__excerpt {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--sb-muted);
  max-width: 62ch;
}

.sb-hero__side {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  background: #fff;
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-lg);
  box-shadow: var(--sb-shadow);
  min-width: 0;
}

.sb-hero__side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sb-ink);
}

.sb-hero__side-label {
  font-family: var(--sb-font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sb-ink);
}

.sb-hero__side-more {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sb-red-dark);
  text-decoration: none;
}

.sb-hero__side-more:hover {
  color: var(--sb-red-dark);
}

.sb-hero__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.sb-hero__list li {
  display: flex;
  flex: 1;
  border-bottom: 1px solid var(--sb-line);
}

.sb-hero__list li:last-child {
  border-bottom: 0;
}

.sb-hero__item {
  flex: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-block: 10px;
  text-decoration: none;
}

.sb-hero__rank {
  font-family: var(--sb-font-head);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sb-red-dark);
}

.sb-hero__item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sb-hero__item-title {
  font-family: var(--sb-font-head);
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--sb-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-hero__item:hover .sb-hero__item-title {
  color: var(--sb-red-dark);
}

.sb-hero__item-date {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sb-muted);
}

/* ==========================================================================
   7. Category index strip
   ========================================================================== */
.sb-index {
  background: var(--sb-paper);
  border-bottom: 1px solid var(--sb-line);
}

.sb-index__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 13px;
  min-width: 0;
}

.sb-index__label {
  flex: 0 0 auto;
  font-family: var(--sb-font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sb-red-dark);
}

.sb-index__list {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.sb-index__list::-webkit-scrollbar {
  display: none;
}

.sb-index__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sb-ink);
  text-decoration: none;
  white-space: nowrap;
}

.sb-index__list a:hover {
  color: var(--sb-red-dark);
}

.sb-index__list span {
  font-family: var(--sb-font-head);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--sb-red-dark);
}

/* ==========================================================================
   8. Home layout + section headings
   ========================================================================== */
.sb-home {
  padding-block: 34px 56px;
}

.sb-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.sb-home__main {
  counter-reset: sbsec;
}

.sb-sec {
  margin-bottom: 40px;
  counter-increment: sbsec;
}

.sb-sec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sb-line);
}

.sb-sec__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--sb-font-head);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sb-ink);
}

.sb-sec__title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--sb-red-ui);
  flex: 0 0 auto;
}

.sb-home__main .sb-sec__title::before {
  content: counter(sbsec, decimal-leading-zero);
  width: auto;
  height: auto;
  padding: 3px 6px;
  background: var(--sb-red-ui);
  color: #fff;
  font-family: var(--sb-font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.sb-sec__more {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sb-red-dark);
  text-decoration: none;
}

.sb-sec__more:hover {
  color: var(--sb-red-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   9. Cards
   ========================================================================== */
.sb-grid {
  display: grid;
  gap: 30px 22px;
}

.sb-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sb-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sb-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sb-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sb-card__mediawrap {
  position: relative;
}

.sb-card__media {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--sb-radius);
  background: var(--sb-soft);
}

.sb-card__media img,
.sb-card__media .sb-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sb-card:hover .sb-card__media img {
  transform: scale(1.04);
}

.sb-card__cat {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--sb-red-ui);
  color: #fff;
  font-family: var(--sb-font-head);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sb-hero__media .sb-card__cat {
  top: 14px;
  left: 14px;
  font-size: 10px;
  padding: 5px 10px;
}

.sb-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 12px;
}

.sb-card__title {
  margin: 0;
  font-family: var(--sb-font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.sb-card__title a {
  color: var(--sb-ink);
  text-decoration: none;
}

.sb-card__title a:hover,
.sb-card__title a:focus-visible {
  color: var(--sb-red-dark);
}

.sb-card__excerpt {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--sb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-card--wide {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.sb-card--wide .sb-card__media {
  aspect-ratio: 4 / 3;
}

.sb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sb-muted);
}

.sb-meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sb-red-ui);
  opacity: 0.8;
}

.sb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--sb-red-ui);
  color: #fff;
  font-family: var(--sb-font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
}

.sb-kicker:hover {
  background: var(--sb-red-dark);
  color: #fff;
}

/* Typographic placeholder covers */
.sb-cover {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #1c1d22 0%, #2b2d34 58%, #6b1a1e 100%);
}

.sb-cover::before {
  content: "";
  position: absolute;
  width: 58%;
  height: 58%;
  right: -8%;
  bottom: -14%;
  border-radius: 50%;
  background: rgba(232, 32, 40, 0.35);
}

.sb-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.06) 0 1px,
    transparent 1px 24px
  );
}

.sb-cover__cat {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--sb-red-ui);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sb-cover__mark {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: -16px;
  font-family: var(--sb-font-head);
  font-size: 108px;
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.26);
  text-transform: uppercase;
}

.sb-cover--hero .sb-cover__mark {
  font-size: 210px;
  bottom: -40px;
  right: 24px;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   10. Sidebar
   ========================================================================== */
.sb-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 96px;
}

.sb-widget {
  background: #fff;
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-lg);
  padding: 18px 20px;
  box-shadow: var(--sb-shadow);
}

.sb-widget__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sb-ink);
  font-family: var(--sb-font-head);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sb-ink);
}

.sb-pop {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sbpop;
}

.sb-pop li {
  counter-increment: sbpop;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--sb-line);
}

.sb-pop li:first-child {
  padding-top: 0;
}

.sb-pop li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sb-pop li::before {
  content: counter(sbpop, decimal-leading-zero);
  font-family: var(--sb-font-head);
  font-size: 12px;
  font-weight: 800;
  color: var(--sb-red-dark);
  line-height: 1.4;
}

.sb-pop a {
  font-family: var(--sb-font-head);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sb-ink);
  text-decoration: none;
}

.sb-pop a:hover {
  color: var(--sb-red-dark);
}

.sb-pop__meta {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sb-muted);
}

.sb-cats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-cats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--sb-line);
}

.sb-cats li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sb-cats a {
  font-family: var(--sb-font-head);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--sb-ink);
  text-decoration: none;
}

.sb-cats a:hover {
  color: var(--sb-red-dark);
}

.sb-cats span {
  font-size: 11px;
  font-weight: 600;
  color: var(--sb-red-dark);
}

.sb-widget--dark {
  background: linear-gradient(160deg, #1b1c21 0%, #121317 100%);
  border-color: transparent;
  color: #d8d9de;
}

.sb-widget--dark .sb-widget__title {
  color: #fff;
  border-bottom-color: var(--sb-red-dark);
}

.sb-widget--dark p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #b9bbc2;
}

.sb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 4px;
  background: var(--sb-red-ui);
  color: #fff !important;
  font-family: var(--sb-font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.sb-btn:hover {
  background: var(--sb-red-dark);
  color: #fff !important;
}

/* ==========================================================================
   11. Archive
   ========================================================================== */
.sb-archive {
  padding-block: 34px 56px;
}

.sb-archive__head {
  padding: 24px 26px;
  margin-bottom: 26px;
  border-radius: var(--sb-radius-lg);
  background: linear-gradient(135deg, var(--sb-red-tint) 0%, var(--sb-soft) 70%, #fff 100%);
  border: 1px solid var(--sb-line);
  border-left: 4px solid var(--sb-red);
}

.sb-archive__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--sb-red-ui);
  color: #fff;
  font-family: var(--sb-font-head);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sb-archive__title {
  margin: 0;
  font-family: var(--sb-font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.sb-archive__desc {
  max-width: 70ch;
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sb-muted);
}

.sb-archive__desc p {
  margin: 0;
}

.sb-archive__count {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sb-red-dark);
}

.sb-archive .sb-grid {
  row-gap: 34px;
}

.sb-pagination {
  margin-top: 40px;
}

.sb-pagination .page-numbers,
.sb-pagination a.page-numbers,
.sb-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  margin-right: 6px;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
  font-family: var(--sb-font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sb-ink);
  text-decoration: none;
  background: #fff;
}

.sb-pagination .page-numbers:hover {
  border-color: var(--sb-red-dark);
  color: var(--sb-red-dark);
  background: var(--sb-red-tint);
}

.sb-pagination .page-numbers.current {
  background: var(--sb-red-ui);
  border-color: var(--sb-red-dark);
  color: #fff;
}

.sb-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ==========================================================================
   12. Single article
   ========================================================================== */
.sb-single {
  padding-block: 30px 56px;
}

.sb-single__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.sb-single__grid--full {
  grid-template-columns: minmax(0, 1fr);
}

.sb-article {
  min-width: 0;
}

.sb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sb-muted);
}

.sb-breadcrumb a {
  color: var(--sb-muted);
  text-decoration: none;
}

.sb-breadcrumb a:hover {
  color: var(--sb-red-dark);
}

.sb-article__title {
  margin: 12px 0 0;
  font-family: var(--sb-font-head);
  font-size: clamp(1.85rem, 3.1vw, 2.8rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sb-ink);
}

.sb-article__deck {
  margin: 16px 0 0;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--sb-muted);
  max-width: 72ch;
}

.sb-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--sb-line);
  border-bottom: 1px solid var(--sb-line);
}

.sb-byline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-byline__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sb-red-soft);
  flex: 0 0 auto;
}

.sb-byline__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-byline__name {
  display: block;
  font-family: var(--sb-font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sb-ink);
}

.sb-byline__role {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--sb-muted);
}

.sb-article__figure {
  margin: 26px 0 30px;
}

.sb-article__figure img,
.sb-article__figure .sb-pic {
  width: 100%;
  border-radius: var(--sb-radius-lg);
  display: block;
}

.sb-article__figure img {
  max-height: 560px;
  object-fit: cover;
}

.sb-article__caption {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--sb-muted);
}

.sb-content {
  max-width: 45rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #2a2c32;
}

.sb-content > * + * {
  margin-top: 1.35em;
}

.sb-content p {
  margin: 0;
}

.sb-content p + p {
  margin-top: 1.35em;
}

.sb-content h2 {
  font-family: var(--sb-font-head);
  font-size: 1.5rem;
  line-height: 1.25;
  margin-top: 2em;
}

.sb-content h3 {
  font-family: var(--sb-font-head);
  font-size: 1.22rem;
  line-height: 1.3;
  margin-top: 1.7em;
}

.sb-content h4 {
  font-family: var(--sb-font-head);
  font-size: 1.06rem;
  margin-top: 1.5em;
}

.sb-content a {
  color: var(--sb-red-dark);
  text-decoration: underline;
  text-decoration-color: rgba(232, 32, 40, 0.35);
  text-underline-offset: 3px;
}

.sb-content a:hover {
  color: var(--sb-red-dark);
  text-decoration-color: var(--sb-red-dark);
}

.sb-content blockquote {
  margin: 1.8em 0;
  padding: 10px 0 10px 22px;
  border-left: 4px solid var(--sb-red);
  background: var(--sb-red-tint);
  border-radius: 0 8px 8px 0;
  font-family: var(--sb-font-head);
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--sb-ink);
}

.sb-content blockquote p:last-child {
  margin-bottom: 0;
}

.sb-content ul,
.sb-content ol {
  padding-left: 1.4em;
}

.sb-content li + li {
  margin-top: 0.5em;
}

.sb-content img {
  border-radius: var(--sb-radius);
  height: auto;
}

.sb-content figure {
  margin: 1.8em 0;
}

.sb-content figcaption,
.sb-content .wp-caption-text {
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--sb-muted);
}

.sb-content iframe,
.sb-content video {
  max-width: 100%;
  border: 0;
}

.sb-content hr {
  margin: 2.2em auto;
  border: 0;
  border-top: 1px solid var(--sb-line);
}

.sb-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sb-content th,
.sb-content td {
  border: 1px solid var(--sb-line);
  padding: 9px 11px;
  text-align: left;
}

.sb-content th {
  background: var(--sb-soft);
  font-weight: 700;
}

.sb-article__foot {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--sb-line);
}

.sb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.sb-tags a {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--sb-muted);
  text-decoration: none;
}

.sb-tags a:hover {
  border-color: var(--sb-red-dark);
  color: var(--sb-red-dark);
  background: var(--sb-red-tint);
}

.sb-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.sb-share__label {
  font-family: var(--sb-font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sb-ink);
  margin-right: 2px;
}

.sb-share a,
.sb-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
  background: #fff;
  font-family: var(--sb-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--sb-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sb-share a:hover,
.sb-share button:hover {
  background: var(--sb-red-ui);
  border-color: var(--sb-red-dark);
  color: #fff;
}

.sb-author {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  margin-top: 30px;
  padding: 20px;
  background: var(--sb-soft);
  border: 1px solid var(--sb-line);
  border-left: 4px solid var(--sb-red);
  border-radius: var(--sb-radius);
}

.sb-author__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}

.sb-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-author__name {
  margin: 0;
  font-family: var(--sb-font-head);
  font-size: 0.95rem;
  font-weight: 800;
}

.sb-author__bio {
  margin: 6px 0 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--sb-muted);
}

.sb-related {
  margin-top: 40px;
}

.sb-article #comments,
.sb-article .comments-area {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--sb-line);
}

.sb-article #comments .comments-title,
.sb-article .comment-reply-title {
  font-family: var(--sb-font-head);
  font-size: 1.05rem;
  font-weight: 800;
}

.sb-article .comment-form input[type="text"],
.sb-article .comment-form input[type="email"],
.sb-article .comment-form input[type="url"],
.sb-article .comment-form textarea {
  border: 1px solid var(--sb-line);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--sb-font-body);
}

/* Static pages / 404 */
.sb-page {
  max-width: 800px;
  margin-inline: auto;
}

.sb-page .sb-article__title {
  margin-bottom: 22px;
}

.sb-404 {
  max-width: 640px;
  margin: 40px auto 20px;
}

.sb-404 .sb-archive__desc {
  margin-bottom: 22px;
}

.sb-404 .search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.sb-404 .search-field {
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--sb-line);
  border-radius: 4px;
  font-family: var(--sb-font-body);
  font-size: 14px;
}

.sb-404 .search-submit {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--sb-red-ui);
  color: #fff;
  font-family: var(--sb-font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.sb-404 .search-submit:hover {
  background: var(--sb-red-dark);
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.sb-footer {
  margin-top: 24px;
  padding-top: 44px;
  background: #141519;
  color: #c3c5cc;
  border-top: 3px solid var(--sb-red);
}

.sb-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 34px;
}

.sb-footer__logo {
  display: inline-block;
  font-family: var(--sb-font-head);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
}

.sb-footer__logo::after {
  content: ".";
  color: #ff5a61;
}

.sb-footer__brand p {
  margin: 12px 0 0;
  max-width: 34ch;
  line-height: 1.7;
  color: #9a9da6;
}

.sb-footer__title {
  margin: 0 0 14px;
  font-family: var(--sb-font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.sb-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-footer li + li {
  margin-top: 9px;
}

.sb-footer a {
  color: #c9cbd2;
  text-decoration: none;
}

.sb-footer a:hover,
.sb-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sb-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  color: #8c8f98;
}

.sb-footer__bar a {
  color: #e6e7eb;
}

.sb-footer__social {
  display: flex;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 10.5px;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .sb-home__grid,
  .sb-single__grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 32px;
  }

  .sb-grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sb-footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 921px) {
  .site-header .site-branding::after {
    display: none;
  }

  #ast-hf-mobile-menu > li > a {
    font-size: 15px !important;
    padding: 12px 0 !important;
  }

  #ast-hf-mobile-menu .sub-menu .menu-link {
    font-size: 14px !important;
    padding: 10px 0 !important;
  }

  .sb-menu-search {
    width: 100%;
    margin: 14px 0 0;
  }

  .sb-search {
    width: 100%;
  }

  .sb-search input {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 900px) {
  .sb-menu-search {
    width: 100%;
    margin: 14px 0 0;
  }

  .sb-search {
    width: 100%;
  }

  .sb-search input {
    flex: 1;
    width: auto;
  }

  .sb-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sb-hero__side {
    padding: 16px 18px;
  }

  .sb-home__grid,
  .sb-single__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sb-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .sb-grid--3,
  .sb-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sb-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 640px) {
  :root {
    --sb-gap: 20px;
  }

  .sb-wrap {
    padding-inline: 16px;
  }

  .sb-topbar__tagline {
    display: none;
  }

  .sb-hero {
    padding-top: 18px;
  }

  .sb-hero__body {
    padding: 18px 18px 20px;
  }

  .sb-hero__list li {
    flex: 0 0 auto;
  }

  .sb-grid--2,
  .sb-grid--3,
  .sb-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .sb-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .sb-card--wide {
    grid-template-columns: 1fr;
  }

  .sb-article__meta {
    gap: 10px;
  }

  .sb-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .sb-archive__head {
    padding: 20px;
  }

  .sb-archive__title {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   15. Accessibility / motion
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sb-red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
