/* Rustcator.com — exact dark theme for the current server-list markup
   Targets: #rusto-filters, .rusto-server-card and the classes supplied by the site.
   Load after the existing stylesheet.
*/

:root {
  color-scheme: dark;
  --rusti-bg: #0a1017;
  --rusti-bg-soft: #0d151e;
  --rusti-panel: #111a24;
  --rusti-panel-hover: #15212d;
  --rusti-input: #0d1620;
  --rusti-border: #263443;
  --rusti-border-hover: #405266;
  --rusti-text: #f5f7fa;
  --rusti-muted: #94a0ad;
  /* Lightened from the original #6f7b88 (~3.98:1 on the card background,
     just under WCAG AA's 4.5:1 for normal text — used for real informational
     text like "Last checked X ago", not purely decorative) to ~5.55:1. */
  --rusti-muted-2: #8794a1;
  --rusti-accent: #ef4c3e;
  --rusti-accent-hover: #ff624f;
  --rusti-accent-deep: #742725;
  --rusti-green: #70d66f;
  --rusti-yellow: #e9b949;
  --rusti-red: #ff675f;
  --rusti-radius: 10px;
  --rusti-radius-sm: 7px;
  --rusti-content: 1540px;
  --rusti-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }

html { background: var(--rusti-bg); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% -10%, rgba(77, 105, 132, .14), transparent 34rem),
    linear-gradient(180deg, #091018 0%, #0b121a 45%, #0a1118 100%);
  color: var(--rusti-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.site-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 2em auto 0 auto;
}

a {
  color: var(--rusti-accent);
  text-decoration: none;
}

/* -------- Page heading -------- */

h1 {
  width: min(calc(100% - 48px), var(--rusti-content));
  margin: 0;
  color: var(--rusti-text);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

/* -------- Filters -------- */

#rusto-filters.rusto-filters {
  width: min(100%, var(--rusti-content));
  margin: 0;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 16px;
  border: 1px solid var(--rusti-border);
  border-radius: var(--rusti-radius);
  background: linear-gradient(180deg, rgba(18, 28, 39, .97), rgba(14, 23, 32, .97));
  box-shadow: var(--rusti-shadow);
}

#rusto-filters > input[type="search"] {
  flex: 1 1 260px;
  min-width: 230px;
}

#rusto-filters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  color: #d9e0e7;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

#rusto-filters label:has(input[type="number"]),
#rusto-filters label:has(select) {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 5px;
  min-height: auto;
}

#rusto-filters input,
#rusto-filters select {
  font: inherit;
}

#rusto-filters input[type="search"],
#rusto-filters input[type="number"],
#rusto-filters select {
  height: 42px;
  border: 1px solid #304050;
  border-radius: var(--rusti-radius-sm);
  outline: 0;
  background: var(--rusti-input);
  color: var(--rusti-text);
  padding: 0 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#rusto-filters input[type="search"]::placeholder {
  color: #73808e;
}

#rusto-filters input[type="number"] {
  width: 110px;
}

#rusto-filters select {
  min-width: 145px;
  cursor: pointer;
}

#rusto-filters input[type="search"]:focus,
#rusto-filters input[type="number"]:focus,
#rusto-filters select:focus {
  border-color: rgba(239, 76, 62, .88);
  box-shadow: 0 0 0 3px rgba(239, 76, 62, .13);
  background: #101b27;
}

#rusto-filters input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--rusti-accent);
  cursor: pointer;
}

/* Population range slider — color-only override of server-list.css's
   structural rules (positioning/pointer-events are identical either
   theme, only colors differ), same split this page's other controls
   already use between the two files. #d9e0e7 label text is the exact
   value #rusto-filters label already uses above; --rusti-text
   (#f5f7fa) for the output readout is ~15:1 on this panel, already
   verified elsewhere in this project's dark-theme work. */
#rusto-filters .rusto-population-filter {
  color: #d9e0e7;
}

#rusto-filters .rusto-population-filter__track {
  background: var(--rusti-border);
}

#rusto-filters .rusto-population-filter__track-fill,
#rusto-filters .rusto-population-filter__range::-webkit-slider-thumb,
#rusto-filters .rusto-population-filter__range::-moz-range-thumb {
  background: var(--rusti-accent);
}

#rusto-filters .rusto-population-filter__range::-webkit-slider-thumb,
#rusto-filters .rusto-population-filter__range::-moz-range-thumb {
  border-color: var(--rusti-bg);
}

#rusto-filters .rusto-population-filter__output {
  color: var(--rusti-text);
}

/* -------- Server-card parent --------
   Your bare screenshot indicates cards are sibling articles. This makes the
   common wrappers work without requiring a new class in PHP.
*/

:where(main, .site-main, #content, .content, .entry-content):has(> .rusto-server-card) {
  width: min(calc(100% - 48px), var(--rusti-content));
  margin-inline: auto;
}

:where(main, .site-main, #content, .content, .entry-content):has(> .rusto-server-card) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* If there is a dedicated wrapper around the articles, give it this class.
   This is preferable to :has() for maximum compatibility. */
.rusto-server-grid {
  width: min(calc(100% - 48px), var(--rusti-content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* -------- Server cards (server-card-v2-draft/) -------- */

.rusto-server-card {
  --wipe-progress: 0%;

  position: relative;
  min-width: 0;
  overflow: hidden;

  background: linear-gradient(180deg, rgba(18, 28, 39, .98), rgba(14, 23, 32, .98));

  border: 1px solid var(--rusti-border);
  border-radius: var(--rusti-radius);

  box-shadow: 0 7px 22px rgba(0, 0, 0, .17);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.rusto-server-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, var(--rusti-accent), #ff8057 62%, transparent);
}

/* The (optional) header_url image — a real <img loading="lazy"> rather than
   a CSS background-image, specifically so the browser can defer fetching it
   until the card nears the viewport (background-images get no such native
   deferral). Painted behind .rusto-server-card__overlay's tint/gradient. */
.rusto-server-card__bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative atmosphere over the (optional) header image — doesn't affect
   legibility since it sits behind .rusto-server-card__content. The first
   gradient layer here is the same dark diagonal tint that used to be part
   of .rusto-server-card's own `background`; moved here so it still paints
   over the header image now that the image is a sibling element rather
   than the card's own CSS background (which would otherwise paint behind
   it, not over it). */
.rusto-server-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(10, 17, 23, .97) 0%, rgba(10, 17, 23, .91) 45%, rgba(10, 17, 23, .78) 100%),
    linear-gradient(to bottom, rgba(9, 15, 20, .05), rgba(9, 15, 20, .4)),
    radial-gradient(circle at 85% 20%, rgba(255, 145, 70, .11), transparent 35%);
}

.rusto-server-card__content {
  position: relative;
  z-index: 2;
}

.rusto-server-card:hover {
  transform: translateY(-2px);
  border-color: var(--rusti-border-hover);
  box-shadow: 0 15px 34px rgba(0, 0, 0, .26);
}

/* Glow-on-black icons (assets/icons/*.jpg) — mix-blend-mode: screen drops
   the black background, leaving just the glowing icon. `isolation:
   isolate` + this wrapper's own explicit dark background give the blend
   a guaranteed local backdrop to work against — nested several levels
   inside .rusto-server-card__content's own z-index:1 stacking context,
   an unwrapped blend has nothing reliable behind it and just renders
   faint/invisible instead of dropping the black. */
.rusto-icon-glow {
  display: inline-flex;
  margin-right: 6px;
  vertical-align: -3px;
  flex-shrink: 0;
  isolation: isolate;
  background: var(--rusti-bg-soft);
  border-radius: 3px;
}

.rusto-icon-glow img {
  display: block;
  mix-blend-mode: screen;
}

/* -- First row: icon + name + location + trust badge -- */

.rusto-server-card__header {
  padding: 16px 16px 10px;
}

.rusto-server-card__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Separate from .rusto-server-card__icon below specifically so the
   online-indicator dot (a sibling of the icon, not a child — see the
   markup) can sit outside its overflow:hidden without being clipped,
   while the icon itself keeps clipping its own image to the rounded
   corners. Same size/position as the icon it wraps, so the indicator's
   absolute offsets below line up with the icon's actual corner either
   way. */
.rusto-server-card__icon-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
}

.rusto-server-card__icon {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .08);
}

.rusto-server-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rusto-server-card__icon-wrap > .rusto-server-online-indicator {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: contain;
  /* Real glow, not a black square — mix-blend-mode would flatten this
     one's own colored ring, so it's just placed directly instead. */
  background: var(--rusti-bg);
  box-shadow: 0 0 0 2px var(--rusti-bg);
}

.rusto-server-card__title {
  flex: 1;
  min-width: 0;
}

.rusto-server-card__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rusto-server-card h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--rusti-accent-hover);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rusto-server-card h2 a {
  color: inherit;
  text-decoration: none;
}

.rusto-server-card h2 a:hover {
  color: #ff7b67;
}

.rusto-server-card p {
  margin: 0;
}

.rusto-server-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(91, 139, 255, .35);
  border-radius: 999px;
  background: rgba(36, 78, 166, .24);
  color: #dfe8ff;
  font-size: 11px;
  font-weight: 700;
}

.rusto-server-flag {
  display: block;
  width: 16px;
  height: auto;
  border-radius: 2px;
}

/* The rest of the server's name past the first few words (server-list.js's
   PRIMARY_NAME_WORDS split) — a "reverse eyebrow": same small-caps-adjacent
   treatment as an eyebrow label, just sitting under the heading instead of
   above it. Own single-line ellipsis truncation, independent of the h2's. */
.rusto-server-card__name-rest {
  margin-top: 2px;
  color: var(--rusti-muted-2);
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Icon-only (server.trust_badge has no `label` anymore — see
   ServerInsights::trustBadgeFor()) — just enough positioning for the
   icon to sit under the name row. */
.rusto-trust-badge {
  display: inline-flex;
  margin-top: 6px;
}

/* -- Second row: population + last checked -- */

.rusto-server-card__status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 0;
}

.rusto-server-players {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.rusto-server-players__current {
  color: var(--rusti-green);
  font-size: 15px;
}

.rusto-server-players__separator {
  margin: 0 3px;
  color: var(--rusti-muted);
  font-weight: 650;
}

.rusto-server-players__max,
.rusto-server-players__queue {
  color: var(--rusti-muted);
  font-weight: 650;
}

.rusto-server-players__queue {
  margin-left: 4px;
  font-size: 11px;
}

.rusto-server-checked {
  margin-left: auto;
  color: var(--rusti-muted-2);
  font-size: 11px;
}

/* -- Third row: last wipe / progress / next wipe -- */

.rusto-server-card__wipe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(5, 10, 14, .13);
}

.rusto-server-card__wipe-info {
  min-width: 120px;
}

.rusto-server-card__wipe-info p {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--rusti-text);
}

.rusto-server-card__wipe-info time {
  margin-left: 22px;
  color: var(--rusti-muted-2);
  font-size: 10px;
}

.rusto-server-card__wipe-info--next {
  margin-left: auto;
  text-align: right;
}

.rusto-server-card__wipe-info--next time {
  margin-left: 0;
}

.rusto-server-card__wipe-progress {
  flex: 1 1 140px;
  min-width: 100px;
}

.rusto-server-card__wipe-track {
  position: relative;
  height: 7px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(136, 151, 165, .25);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
}

.rusto-server-card__wipe-elapsed {
  width: var(--wipe-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b45be, #c268ef);
  box-shadow: 0 0 10px rgba(185, 89, 235, .2);
}

.rusto-server-card__wipe-marker {
  position: absolute;
  top: 50%;
  left: var(--wipe-progress);
  width: 2px;
  height: 15px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}

.rusto-server-card__wipe-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--rusti-muted-2);
  font-size: 9px;
  font-weight: 650;
}

.rusto-server-card__wipe-labels span:first-child {
  color: #c268ef;
}

/* -- Fourth row: badges + map -- */

.rusto-server-card__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
}

.rusto-server-tag,
.rusto-server-map {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  background: rgba(16, 24, 31, .72);
  color: #ced5db;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.rusto-server-tag--gather {
  border-color: rgba(187, 100, 244, .3);
  background: rgba(101, 47, 133, .22);
}

.rusto-server-tag--gather strong {
  margin-right: 3px;
  color: #c268ef;
  font-size: 12px;
}

.rusto-server-tag--team {
  border-color: rgba(225, 166, 69, .25);
  background: rgba(123, 84, 25, .17);
}

.rusto-server-tag--type {
  border-color: rgba(88, 174, 235, .25);
  background: rgba(32, 84, 121, .17);
}

.rusto-server-tag--peak {
  border-color: rgba(100, 207, 113, .3);
  background: rgba(45, 110, 53, .2);
}

.rusto-server-tag--peak strong {
  margin-right: 3px;
  color: #7be08a;
  font-size: 12px;
}

/* Breadcrumb nav (Servers/Breadcrumbs.php) — shared across every
 * server-rendered page this file's own --rusti-* palette already
 * covers (list, detail, connect, hub, upcoming-wipes, graveyard).
 * Plain text trail, not a card/panel — sits directly on the page
 * background above each page's own heading. */
.rusto-breadcrumbs {
  width: min(640px, 100vw);
  margin: 0 0 14px;
  max-width: 92vw;
}

.rusto-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.rusto-breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--rusti-muted-2);
}

.rusto-breadcrumbs__item:not(:first-child)::before {
  content: "/";
  color: var(--rusti-border-hover);
}

.rusto-breadcrumbs__item a {
  color: var(--rusti-muted-2);
  text-decoration: none;
}

.rusto-breadcrumbs__item a:hover {
  color: var(--rusti-accent-hover);
  text-decoration: underline;
}

.rusto-breadcrumbs__item [aria-current="page"] {
  color: var(--rusti-text);
  font-weight: 600;
}

.rusto-server-map {
  color: var(--rusti-muted);
  text-transform: none;
  letter-spacing: normal;
  font-style: italic;
}

/*
 * Discord's own brand color (#5865F2, "blurple"), not the site palette —
 * a deliberate visual break from the informational tags, since this one
 * is a real outbound link rather than a fact about the server. Sized
 * down here to sit at ease alongside the other badges in this row.
 */
.rusto-server-card__badges .rusto-discord-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .03em;
}

/* -- Fifth row: ping / jitter / copy -- */

.rusto-server-card__network {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 14px;
}

.rusto-server-ping,
.rusto-server-jitter {
  display: flex;
  align-items: center;
  margin: 0;
}

.rusto-server-ping {
  color: #c7d0da;
  font-size: 12px;
}

.rusto-server-ping strong {
  margin-right: 4px;
  color: var(--rusti-green);
  font-size: 13px;
  font-weight: 800;
}

.rusto-server-ping span {
  color: var(--rusti-muted-2);
}

.rusto-server-jitter {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .1);
  font-size: 11px;
}

.rusto-server-jitter span {
  margin-right: 4px;
  color: var(--rusti-muted-2);
}

.rusto-jitter-excellent strong { color: var(--rusti-green); }
.rusto-jitter-good strong { color: #a3d96d; }
.rusto-jitter-fair strong { color: var(--rusti-yellow); }
.rusto-jitter-poor strong { color: var(--rusti-red); }

.rusto-server-card a:focus-visible,
#rusto-filters input:focus-visible,
#rusto-filters select:focus-visible {
  outline: 2px solid var(--rusti-accent-hover);
  outline-offset: 2px;
}

/* -------- Responsive -------- */

@media (max-width: 900px) {
  #rusto-filters.rusto-filters {
    align-items: stretch;
  }

  #rusto-filters > input[type="search"] {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  h1,
  #rusto-filters.rusto-filters,
  .rusto-server-grid,
  :where(main, .site-main, #content, .content, .entry-content):has(> .rusto-server-card) {
    width: min(100%, var(--rusti-content));
  }

  h1 {
    margin-top: 24px;
  }

  #rusto-filters.rusto-filters {
    padding: 14px;
    gap: 11px;
  }

  #rusto-filters label:has(input[type="number"]),
  #rusto-filters label:has(select) {
    width: 100%;
  }

  #rusto-filters input[type="number"],
  #rusto-filters select {
    width: 100%;
  }

  .rusto-server-grid,
  :where(main, .site-main, #content, .content, .entry-content):has(> .rusto-server-card) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .rusto-server-card__status {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .rusto-server-checked {
    margin-left: 0;
  }

  .rusto-server-card__wipe {
    flex-direction: column;
    align-items: stretch;
  }

  /* flex-basis is a WIDTH in the desktop row layout above but becomes a
     HEIGHT once flex-direction switches to column here — without this
     reset, the 140px basis meant to size the track's row-layout width
     instead forces 140px of vertical height (a mostly-empty gap, since
     the actual track is ~7px tall). */
  .rusto-server-card__wipe-progress {
    flex: none;
  }

  .rusto-server-card__wipe-info--next {
    margin-left: 0;
    text-align: left;
  }

  .rusto-server-card__wipe-info--next time {
    margin-left: 22px;
  }

  .rusto-server-card__network {
    flex-wrap: wrap;
  }
}

/* -------- FAQ (list page) -------- */

.rusto-faq {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--rusti-panel);
  border: 1px solid var(--rusti-border);
  border-radius: var(--rusti-radius);
  box-shadow: var(--rusti-shadow);
}

.rusto-faq h2 {
  margin: 0 0 16px;
  color: var(--rusti-text);
  font-size: 1.05rem;
}

.rusto-faq-item {
  padding: 14px 0;
  border-top: 1px solid var(--rusti-border);
}

.rusto-faq-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.rusto-faq-item h3 {
  margin: 0 0 6px;
  color: var(--rusti-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.rusto-faq-item p {
  margin: 0;
  color: var(--rusti-muted-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

/** Single type-post */
article.type-post {
  display: grid;
  place-items: center;
  margin-top: 2em;
}
article header.entry-header {
  max-width: 840px;
}
article header.entry-header h1 {
  width: unset;
  margin: 0;
}
article.type-post .entry-content {
  max-width: 840px;
}

/* Featured-image hero (single.php, has_post_thumbnail() only — posts with
   no featured image keep the plain .entry-header above). Contained at the
   same 840px width as the title/content below rather than full-bleed —
   this theme's articles are always centered/max-width, and a viewport-
   width breakout risks a horizontal-scrollbar overflow bug for one banner
   that isn't worth it here. The overlay gradient's bottom stop is a very
   dark near-opaque rgba (not a lighter tint like the server card's — see
   rusto-server-card__overlay above) specifically because this is
   editorial photography of unknown brightness, not this codebase's own
   dark-UI imagery — failing WCAG AA on a bright uploaded photo isn't
   acceptable, so the tint is strong enough to guarantee white-text
   contrast regardless of what's underneath, not just typical cases. */
.rusto-post-hero {
  position: relative;
  width: min(calc(100% - 48px), 840px);
  margin: 0 auto 32px;
  border-radius: var(--rusti-radius);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  min-height: 220px;
}

.rusto-post-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rusto-post-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(8, 13, 18, .1) 0%,
    rgba(8, 13, 18, .35) 55%,
    rgba(8, 13, 18, .93) 100%);
}

.rusto-post-hero__content {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  max-width: none;
  padding: 28px 28px 22px;
}

.rusto-post-hero__content .entry-title {
  width: unset;
  margin: 0 0 8px;
  color: #fff;
  font-size: 2.1rem;
  line-height: 1.15;
}

.rusto-post-hero__content .entry-meta {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: .92rem;
}

@media (max-width: 640px) {
  .rusto-post-hero {
    aspect-ratio: 4 / 3;
    border-radius: 0;
    width: 100%;
  }
  .rusto-post-hero__content .entry-title {
    font-size: 1.5rem;
  }
}

/* -------- How it works (methodology page) --------
   page.php has no <main> wrapper at all, so this page uses its own
   template (template-how-it-works.php) purely for that grid/width
   treatment — the actual prose still comes from the Page's own
   post_content via the_content(), so it stays editable from wp-admin. */

.rusto-content-page {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 48px;
}

.rusto-content-page .entry-title {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--rusti-text);
}

.rusto-content-page .entry-content {
  color: #c9d1d9;
  font-size: 1rem;
  line-height: 1.7;
}

.rusto-content-page .entry-content h2 {
  margin: 40px 0 12px;
  color: var(--rusti-text);
  font-size: 1.3rem;
  letter-spacing: -.012em;
}

.rusto-content-page .entry-content h2:first-child {
  margin-top: 0;
}

.rusto-content-page .entry-content p {
  margin: 0 0 16px;
}

.rusto-content-page .entry-content ul,
.rusto-content-page .entry-content ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.rusto-content-page .entry-content li {
  margin-bottom: 8px;
}

.rusto-content-page .entry-content li::marker {
  color: var(--rusti-muted);
}

.rusto-content-page .entry-content a {
  color: var(--rusti-accent-hover);
  text-decoration: underline;
  text-decoration-color: rgba(255, 98, 79, .4);
}

.rusto-content-page .entry-content a:hover {
  text-decoration-color: var(--rusti-accent-hover);
}

.rusto-content-page .entry-content strong {
  color: var(--rusti-text);
}

@media (max-width: 640px) {
  .rusto-content-page {
    padding-left: 18px;
    padding-right: 18px;
  }
}