/*
Theme Name: Sinautani Fresh
Theme URI: https://sinautani.com
Description: Child theme Astra untuk sinautani.com — magazine pertanian: hijau logo, krem hangat, tipografi Nunito, hero bertumpuk dan indeks rubrik.
Author: Homelab Ops
Template: astra
Version: 1.0.0
Text Domain: st-magazine
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-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;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */
 :root {
  /* Palette from the Sinautani logo (#208860 green) */
  --st-green: #208860;
  --st-green-dark: #17654a;
  --st-green-ui: #1a7a55;
  --st-green-deep: #0e3a2b;
  --st-green-soft: #e6f4ee;
  --st-green-tint: #f2faf6;
  --st-cream: #faf7ef;
  --st-cream-2: #f4efe3;
  --st-earth: #8a5522;
  --st-ink: #16241e;
  --st-ink-soft: #2a3a33;
  --st-muted: #5c6f67;
  --st-paper: #fffdf8;
  --st-line: #e2e9e3;
  --st-max: 1240px;
  --st-gap: 28px;
  --st-radius: 16px;
  --st-radius-lg: 20px;
  --st-shadow: 0 12px 30px rgba(14, 58, 43, 0.08);
  --st-shadow-hover: 0 16px 38px rgba(14, 58, 43, 0.13);
  --st-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --st-font-head: "Nunito", 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(--st-font-body);
  color: var(--st-ink-soft);
  background: var(--st-paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--st-green-dark);
}

a:hover,
a:focus {
  color: var(--st-green-dark);
}

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

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

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

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

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

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

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

.st-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(--st-green-soft);
  color: var(--st-green-deep);
}

/* ==========================================================================
   4. Header (Astra)
   ========================================================================== */
.st-template .site-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--st-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(--st-max);
}

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

.custom-logo,
.site-header .custom-logo {
  height: 40px;
  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(--st-font-body) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-ink) !important;
  padding: 9px 12px !important;
  border-radius: 10px;
  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(--st-green-tint) !important;
  color: var(--st-green-dark) !important;
}

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

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

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

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

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

/* Header layout: logo + single-line menu + search */
.st-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;
}


/* 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;
}

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

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

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

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

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

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

.st-search button:hover {
  background: var(--st-green-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;
  }

  .st-search {
    height: 34px;
  }

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

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

/* One search only: hide Astra's duplicate search menu item */
.site-header .search-custom-menu-item,
.site-header .ast-masthead-custom-menu-items.search-custom-menu-item {
  display: none !important;
}

/* True vertical centering in the header bar */
.site-header .ast-primary-header-bar {
  padding-top: 0;
  padding-bottom: 0;
}

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

.site-header .site-branding {
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-header .custom-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header .custom-logo {
  display: block;
  margin: 0;
}

.site-header .ast-builder-menu-1 {
  height: 76px;
  display: flex;
  align-items: center;
}

.site-header .main-header-bar-navigation,
.site-header .ast-main-header-bar-alignment,
.site-header .main-navigation {
  height: 100%;
  display: flex;
  align-items: center;
}

.site-header .main-header-menu {
  height: 100%;
  align-items: center;
}

.site-header .main-header-menu > li {
  height: 100%;
  display: flex;
  align-items: center;
}

.site-header .main-header-menu > li > a {
  display: flex;
  align-items: center;
}

.site-header .st-menu-search {
  height: 100%;
  align-items: center;
}

/* Mobile header centering */
#ast-mobile-header .ast-builder-grid-row {
  height: 76px;
  min-height: 76px;
  align-items: center;
}

#ast-mobile-header .site-branding {
  height: 100%;
  display: flex;
  align-items: center;
}

#ast-mobile-header .custom-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

/* ==========================================================================
   5. Top bar
   ========================================================================== */
.st-topbar {
  background: var(--st-cream-2);
  color: var(--st-green-deep);
  border-bottom: 1px solid var(--st-line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

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

.st-topbar__tagline {
  color: var(--st-green-dark);
  letter-spacing: 0.02em;
  text-align: center;
}

.st-topbar a {
  color: var(--st-green-dark);
  text-decoration: none;
}

.st-topbar a:hover,
.st-topbar a:focus-visible {
  color: var(--st-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

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

.st-hero__lead {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  overflow: visible;
}

.st-hero__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--st-cream);
  border-radius: var(--st-radius-lg);
  box-shadow: var(--st-shadow);
}

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

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

.st-hero__body {
  position: relative;
  z-index: 2;
  margin: -46px 18px 0;
  padding: 20px 22px 22px;
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
}

.st-hero__title {
  margin: 10px 0 10px;
  font-family: var(--st-font-head);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.st-hero__title a:hover {
  color: var(--st-green-dark);
}

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

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

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

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

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

.st-hero__side-more:hover {
  color: var(--st-green-dark);
}

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

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

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

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

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

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

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

.st-hero__item:hover .st-hero__item-title {
  color: var(--st-green-dark);
}

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

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

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

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

.st-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;
}

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

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

.st-index__list a:hover {
  color: var(--st-green-dark);
}

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

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

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

.st-home__main {
  counter-reset: none;
}

.st-sec {
  margin-bottom: 40px;
}

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

.st-sec__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--st-font-head);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--st-ink);
}

.st-sec__title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50% 0 50% 50%;
  background: var(--st-green);
  transform: rotate(-45deg);
  flex: 0 0 auto;
}


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

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

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

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

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

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

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

.st-card__mediawrap {
  position: relative;
}

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

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

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

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

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

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

.st-card__title {
  margin: 0;
  font-family: var(--st-font-head);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

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

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

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

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

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

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

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

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

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

/* Typographic placeholder covers */
.st-cover {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #123b2d 0%, #208860 58%, #6b4a1e 100%);
}

.st-cover--v0 {
  background: linear-gradient(145deg, #123b2d 0%, #208860 58%, #0e3a2b 100%);
}

.st-cover--v1 {
  background: linear-gradient(160deg, #1b4a36 0%, #2f7d5a 55%, #123b2d 100%);
}

.st-cover--v2 {
  background: linear-gradient(135deg, #164a37 0%, #3f7a38 60%, #0e3a2b 100%);
}

.st-cover--v3 {
  background: linear-gradient(150deg, #123b2d 0%, #6b4a1e 72%, #0e3a2b 100%);
}

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

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

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

.st-cover__mark {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: -16px;
  font-family: var(--st-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;
}

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

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

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

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

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

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

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

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

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

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

.st-pop a:hover {
  color: var(--st-green-dark);
}

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

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

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

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

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

.st-cats a:hover {
  color: var(--st-green-dark);
}

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

.st-widget--dark {
  background: linear-gradient(160deg, #164a37 0%, #0e3a2b 100%);
  border-color: transparent;
  color: #d8d9de;
}

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

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

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

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

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

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

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

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

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

.st-archive__desc p {
  margin: 0;
}

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

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

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

.st-pagination .page-numbers,
.st-pagination a.page-numbers,
.st-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(--st-line);
  border-radius: 8px;
  font-family: var(--st-font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--st-ink);
  text-decoration: none;
  background: #fff;
}

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

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

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

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

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

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

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

.st-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(--st-muted);
}

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

.st-breadcrumb a:hover {
  color: var(--st-green-dark);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.st-content p {
  margin: 0;
}

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

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

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

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

.st-content a {
  color: var(--st-green-dark);
  text-decoration: underline;
  text-decoration-color: rgba(32, 136, 96, 0.35);
  text-underline-offset: 3px;
}

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

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

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

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

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

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

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

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

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

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

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

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

.st-content th {
  background: var(--st-cream);
  font-weight: 700;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.st-404 .search-submit:hover {
  background: var(--st-green-dark);
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.st-footer {
  margin-top: 24px;
  padding-top: 46px;
  background: #0e3a2b;
  color: #d7e6de;
  border-top: 0;
  border-radius: 28px 28px 0 0;
}

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

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

.st-footer__logo::after {
  content: ".";
  color: #a8dcc4;
}

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

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

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

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

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

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

.st-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;
}

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

.st-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) {
  .st-home__grid,
  .st-single__grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 32px;
  }

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

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

@media (max-width: 921px) {
  #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;
  }

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

  .st-search {
    width: 100%;
  }

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

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

  .st-search {
    width: 100%;
  }

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

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

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

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

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

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

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

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

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

  .st-topbar__tagline {
    display: none;
  }

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

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

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

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

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

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

  .st-article__meta {
    gap: 10px;
  }

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

  .st-archive__head {
    padding: 20px;
  }

  .st-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(--st-green);
  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;
  }
}
