:root {
  --rlg-black: #070604;
  --rlg-ink: #21170f;
  --rlg-copper: #d8793a;
  --rlg-copper-dark: #9f4f25;
  --rlg-cream: #fbf3e8;
  --rlg-sand: #ead7be;
  --rlg-paper: #fffaf3;
  --rlg-sage: #6d7d67;
  --rlg-blue: #546a7b;
  --rlg-muted: #755f4c;
  --rlg-line: rgba(33, 23, 15, 0.14);
  --rlg-shadow: 0 24px 64px rgba(33, 23, 15, 0.16);
  --rlg-max: 1180px;
  --rlg-radius: 8px;
  --rlg-surface-paper: #fffaf3;
  --rlg-surface-cream: #fbf3e8;
  --rlg-surface-dark: #070604;
  --rlg-surface-dark-raised: #1a100b;
  --rlg-text-primary: #21170f;
  --rlg-text-muted: #755f4c;
  --rlg-text-inverse: #fff6ea;
  --rlg-text-inverse-muted: #e9ded1;
  --rlg-accent: #d8793a;
  --rlg-accent-strong: #9f4f25;
  --rlg-border-light: rgba(33, 23, 15, 0.14);
  --rlg-border-dark: rgba(255, 246, 234, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--rlg-surface-paper);
  color: var(--rlg-text-primary);
  font-family: "DM Sans", "Trebuchet MS", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY POLISH RULES
   Keep heading numerals aligned and imported content links clean site-wide.
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-feature-settings: "lnum" 1;
  font-variant-numeric: lining-nums;
}

u:has(a) {
  text-decoration: none;
}

.rlg-surface-paper {
  background: var(--rlg-surface-paper);
  color: var(--rlg-text-primary);
}

.rlg-surface-cream {
  background: var(--rlg-surface-cream);
  color: var(--rlg-text-primary);
}

.rlg-surface-dark {
  background: var(--rlg-surface-dark);
  color: var(--rlg-text-inverse);
}

.rlg-surface-dark-raised {
  background: var(--rlg-surface-dark-raised);
  color: var(--rlg-text-inverse);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  background: var(--rlg-accent);
  border-radius: 999px;
  color: var(--rlg-text-inverse);
  display: block;
  font-weight: 800;
  height: auto;
  left: 18px;
  padding: 10px 16px;
  top: 18px;
  width: auto;
  z-index: 100000;
}

.site-header {
  background: var(--rlg-surface-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 20;
}

.nav {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  margin: 0 auto;
  max-width: var(--rlg-max);
  min-height: 86px;
  padding: 14px 22px;
}

.brand {
  align-items: center;
  display: inline-flex;
  min-width: 0;
  text-decoration: none;
}

.brand-logo-header {
  display: block;
  flex: 0 0 auto;
  height: auto;
  max-width: 360px;
  object-fit: contain;
  width: min(360px, 30vw);
}

.nav-toggle {
  align-items: center;
  background: rgba(159, 79, 37, 0.08);
  border: 1px solid rgba(181, 93, 45, 0.58);
  border-radius: 999px;
  color: var(--rlg-text-inverse);
  cursor: pointer;
  display: none;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 48px;
  min-width: 112px;
  padding: 0 22px;
  text-align: center;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-toggle:is(:hover, :focus-visible) {
  background: rgba(159, 79, 37, 0.18);
  border-color: rgba(181, 93, 45, 0.82);
  box-shadow: 0 0 0 4px rgba(159, 79, 37, 0.18);
  outline: none;
}

.nav-links .menu {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 246, 234, 0.82);
  display: inline-flex;
  font-size: 0.91rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a {
  color: #fff6ea;
}

/* Shared navigation cue: primary and dropdown links receive the same quiet
   copper line. The consultation CTA intentionally does not use this treatment. */
.nav-links .menu > .menu-item > a {
  padding-bottom: 6px;
  position: relative;
}

.nav-links .menu > .menu-item > a::after {
  background: var(--rlg-accent-strong);
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
  width: 100%;
}

.nav-links .menu > .menu-item > a:hover::after,
.nav-links .menu > .menu-item > a:focus-visible::after,
.nav-links .menu > .current-menu-item > a::after,
.nav-links .menu > .current-menu-ancestor > a::after,
.nav-links .menu-item-has-children:hover > a::after,
.nav-links .menu-item-has-children:focus-within > a::after {
  transform: scaleX(1);
}

.nav-links .menu-item-has-children {
  position: relative;
}

.nav-links .menu > .menu-item > .sub-menu {
  background: linear-gradient(135deg, #0b0806 0%, #120c08 100%);
  border: 1px solid rgba(255, 246, 234, 0.1);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.58);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  left: 50%;
  list-style: none;
  min-width: min(920px, calc(100vw - 44px));
  opacity: 0;
  padding: 22px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 80;
}

.nav-links .menu > .menu-item > .sub-menu::before {
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: -8px;
  width: 100%;
}

.nav-links .menu > .menu-item-has-children:hover > .sub-menu,
.nav-links .menu > .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-links .sub-menu {
  list-style: none;
  margin: 0;
}

.nav-links .sub-menu a {
  color: rgba(255, 246, 234, 0.76);
  position: relative;
  border-radius: 12px;
  padding: 9px 10px;
  white-space: normal;
}

.nav-links .menu > .menu-item > .sub-menu > .menu-item-has-children > a {
  color: #fff6ea;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 6px;
  padding: 8px 10px 10px;
}

.nav-links .sub-menu .sub-menu {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 2px;
  left: auto;
  min-width: 0;
  opacity: 1;
  padding: 4px 0 0;
  pointer-events: auto;
  position: static;
  transform: none;
}

.nav-links .sub-menu .sub-menu a {
  color: rgba(255, 246, 234, 0.68);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  padding: 8px 10px;
}

.nav-links .sub-menu a::after {
  content: "";
  content: none;
}

.nav-links .sub-menu a:is(:hover, :focus-visible),
.nav-links .sub-menu .current-menu-item > a,
.nav-links .sub-menu .current-menu-ancestor > a {
  background: rgba(159, 79, 37, 0.13);
  box-shadow: inset 2px 0 0 var(--rlg-accent-strong);
  color: var(--rlg-text-inverse);
}

.nav-links .sub-menu a:hover::after,
.nav-links .sub-menu a:focus-visible::after,
.nav-links .sub-menu .current-menu-item > a::after,
.nav-links .sub-menu .current-menu-ancestor > a::after {
  transform: none;
}

.button,
button.button,
input[type="submit"] {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-family: "DM Sans", "Trebuchet MS", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  white-space: normal;
}

.button:hover,
button.button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
}

.button-primary,
input[type="submit"] {
  background: var(--rlg-accent-strong);
  box-shadow: none;
  color: var(--rlg-text-inverse);
}

.button-primary:hover,
input[type="submit"]:hover {
  background: #b55d2d;
  box-shadow: none;
}

/*
 * Shared Elementor primary-button baseline. Page-surface components deliberately
 * use a more specific selector to set their approved contrast treatment.
 */
:where(.elementor-widget-button[class*="button-primary"] .elementor-button) {
  background: var(--rlg-accent-strong);
  box-shadow: none;
  color: var(--rlg-text-inverse);
}

:where(.elementor-widget-button[class*="button-primary"] .elementor-button:hover) {
  background: #b55d2d;
  box-shadow: none;
  color: var(--rlg-text-inverse);
}

.button-dark {
  background: var(--rlg-surface-dark);
  color: var(--rlg-text-inverse);
}

.button-light {
  background: var(--rlg-surface-paper);
  color: var(--rlg-text-primary);
}

.section-inner {
  margin: 0 auto;
  max-width: var(--rlg-max);
  padding: 0 22px;
}

.section-inner.narrow {
  max-width: 860px;
}

.archive-hero,
.single-hero {
  background:
    radial-gradient(circle at 78% 22%, rgba(216, 121, 58, 0.18), transparent 34%),
    linear-gradient(135deg, var(--rlg-surface-dark), var(--rlg-surface-dark-raised) 72%, #2b170e);
  color: var(--rlg-text-inverse);
  padding: 86px 0;
}

.archive-hero-grid,
.single-hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.58fr);
}

.single-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
}

.archive-hero h1,
.single-hero h1,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.footer-cta h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.98;
}

.archive-hero h1,
.single-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  margin: 10px 0 18px;
  max-width: 900px;
}

.archive-hero p,
.single-hero p {
  color: rgba(255, 246, 234, 0.78);
  font-size: 1.08rem;
  max-width: 760px;
}

.single-hero-excerpt {
  margin: 20px 0 0;
}

.archive-hero-panel {
  background: rgba(255, 250, 243, 0.08);
  border: 1px solid rgba(255, 246, 234, 0.16);
  border-radius: var(--rlg-radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  padding: 28px;
}

.archive-hero-panel span {
  color: var(--rlg-copper);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.archive-hero-panel strong {
  color: #fff6ea;
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.02;
  margin-bottom: 14px;
}

.archive-hero-panel p {
  color: #e9ded1;
  font-size: 0.98rem;
  margin: 0 0 20px;
}

.archive-hero-panel .search-form {
  max-width: none;
}

.archive-hero-panel input[type="search"] {
  background: rgba(255, 250, 243, 0.92);
}

.eyebrow {
  align-items: center;
  color: var(--rlg-accent-strong);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0.12em;
  line-height: 1.32;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--rlg-accent);
  border-radius: 50%;
  content: "";
  flex: 0 0 10px;
  height: 10px;
  width: 10px;
}

.archive-hero .eyebrow,
.single-hero .eyebrow,
.site-footer .eyebrow {
  color: var(--rlg-text-inverse);
}

.content-section,
.page-shell,
.post-cta {
  padding: 72px 0;
}

.entry-content {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 22px;
}

.post-content {
  max-width: 780px;
  padding-bottom: 40px;
  padding-top: 58px;
}

.entry-content > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 780px;
}

.entry-content > .archive-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
}

.entry-content > .archive-hero:first-child {
  margin-top: -72px;
}

.entry-content .alignwide,
.entry-content .wp-block-cover.alignwide {
  max-width: var(--rlg-max);
}

.entry-content p,
.entry-content li {
  color: var(--rlg-muted);
  font-size: 1.02rem;
}

.post-content p,
.post-content li {
  font-size: 1.08rem;
  line-height: 1.75;
}

.post-content p:first-child {
  color: var(--rlg-ink);
  font-size: 1.15rem;
}

.post-content ul,
.post-content ol {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding-left: 1.4rem;
}

.post-content a {
  color: var(--rlg-copper-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.post-content strong {
  color: var(--rlg-ink);
}

.entry-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-top: 42px;
}

.post-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  background: #fffaf3;
  border: 1px solid var(--rlg-line);
  border-radius: var(--rlg-radius);
  box-shadow: 0 18px 44px rgba(33, 23, 15, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-card-large {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.post-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--rlg-black), var(--rlg-copper-dark));
  display: grid;
  place-items: center;
}

.post-card-large .post-card-media {
  aspect-ratio: auto;
  min-height: 100%;
}

.post-card-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-visual {
  --visual-accent: var(--rlg-copper);
  --visual-accent-2: var(--rlg-sage);
  background:
    linear-gradient(135deg, rgba(255, 246, 234, 0.08), transparent 44%),
    linear-gradient(140deg, #080604, #1e130d 68%, #321a0f);
  color: #fff6ea;
  display: grid;
  height: 100%;
  min-height: 230px;
  overflow: hidden;
  padding: 26px;
  position: relative;
  width: 100%;
}

.post-visual-seo {
  --visual-accent: #6d7d67;
  --visual-accent-2: #d8793a;
}

.post-visual-chatbot {
  --visual-accent: #546a7b;
  --visual-accent-2: #d8793a;
}

.post-visual-automation {
  --visual-accent: #d8793a;
  --visual-accent-2: #6d7d67;
}

.post-visual-agency,
.post-visual-marketing {
  --visual-accent: #d8793a;
  --visual-accent-2: #546a7b;
}

.post-visual-lines {
  display: grid;
  gap: 10px;
  opacity: 0.82;
  position: absolute;
  right: 24px;
  top: 24px;
  width: min(38%, 150px);
}

.post-visual-lines span {
  background: linear-gradient(90deg, var(--visual-accent), var(--visual-accent-2));
  border-radius: 999px;
  display: block;
  height: 4px;
}

.post-visual-lines span:nth-child(2) {
  margin-left: 22%;
}

.post-visual-lines span:nth-child(3) {
  margin-left: 44%;
}

.post-visual-content {
  align-self: end;
  position: relative;
  z-index: 1;
}

.post-visual-kicker {
  color: var(--visual-accent);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.post-visual strong {
  color: #fff6ea;
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.02;
  max-width: 470px;
}

.post-visual ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.post-visual li {
  background: rgba(255, 250, 243, 0.1);
  border: 1px solid rgba(255, 246, 234, 0.14);
  border-radius: 999px;
  color: #e9ded1;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 10px;
}

.post-visual-card {
  min-height: 100%;
}

.post-visual-single {
  min-height: 430px;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.post-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.05;
  margin: 10px 0;
}

.post-card p {
  color: var(--rlg-muted);
  flex: 1;
  margin: 0 0 18px;
}

.post-meta {
  align-items: center;
  color: var(--rlg-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 10px;
  text-transform: uppercase;
}

.text-link {
  color: var(--rlg-copper-dark);
  font-weight: 800;
}

.featured-image {
  border-radius: var(--rlg-radius);
  margin: 34px 0 0;
  max-height: 520px;
  overflow: hidden;
}

.single-featured-visual {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  margin: 0;
  max-height: none;
}

.featured-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cta-panel,
.empty-state,
.notice-band .section-inner {
  background: var(--rlg-cream);
  border: 1px solid var(--rlg-line);
  border-radius: var(--rlg-radius);
  box-shadow: var(--rlg-shadow);
  padding: 34px;
}

.cta-panel {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.cta-panel h2 {
  color: var(--rlg-ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0;
}

.archive-hero .cta-panel,
.archive-hero .rlgc-cta-block {
  color: var(--rlg-ink);
}

.post-related {
  padding: 26px 0 64px;
}

.post-related .section-inner {
  background: var(--rlg-cream);
  border: 1px solid var(--rlg-line);
  border-radius: var(--rlg-radius);
  box-shadow: 0 18px 44px rgba(33, 23, 15, 0.08);
  padding: 30px;
}

.post-related h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.02;
  margin: 0 0 18px;
}

.post-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-related-links a {
  background: #fffaf3;
  border: 1px solid rgba(216, 121, 58, 0.28);
  border-radius: 999px;
  color: var(--rlg-ink);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 14px;
}

.site-footer {
  background: var(--rlg-black);
  color: rgba(255, 246, 234, 0.72);
  padding: 56px 0 26px;
}

.footer-inner {
  display: grid;
  gap: 48px;
  grid-template-columns: 1.25fr 1fr 1fr;
  margin: 0 auto;
  max-width: var(--rlg-max);
  padding: 0 22px;
}

.site-footer .brand {
  align-items: flex-start;
}

.footer-brand > p {
  margin: 16px 0 0;
  max-width: 270px;
}

.site-footer h2 {
  color: var(--rlg-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-navigation a {
  align-items: center;
  display: inline-flex;
  gap: 9px;
}

.footer-navigation a::before {
  color: var(--rlg-accent);
  content: "›";
  font-size: 1.25em;
  font-weight: 800;
}

.footer-contact li {
  align-items: flex-start;
  display: flex;
  gap: 9px;
}

.footer-contact-icon {
  color: var(--rlg-accent);
  display: inline-flex;
  flex: 0 0 auto;
  margin-top: 3px;
}

.footer-contact-icon svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.site-footer a:hover {
  color: #fff6ea;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 36px auto 0;
  max-width: var(--rlg-max);
  padding: 22px 22px 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.footer-legal a {
  font-size: 0.75rem;
  position: relative;
  text-decoration-line: underline;
  text-decoration-color: var(--rlg-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-legal a + a {
  margin-left: 18px;
}

.footer-legal a + a::before {
  color: var(--rlg-accent);
  content: "•";
  left: -13px;
  position: absolute;
  text-decoration: none;
}

.footer-bottom p {
  color: rgba(255, 246, 234, 0.58);
  font-size: 0.82rem;
  margin: 22px 0 0;
  text-align: center;
}

.rlg-portrait,
.rlgc-founder-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--rlg-radius);
  overflow: hidden;
}

.rlg-portrait img,
.rlgc-founder-image img {
  height: 100%;
  object-fit: cover;
  object-position: var(--rlg-focal-position, 50% 50%);
  width: 100%;
}

input,
select,
textarea {
  border: 1px solid var(--rlg-line);
  border-radius: var(--rlg-radius);
  color: var(--rlg-ink);
  font: inherit;
  padding: 13px 14px;
  width: 100%;
}

label {
  color: var(--rlg-ink);
  display: grid;
  font-weight: 800;
  gap: 7px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.search-form {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 620px;
}

.search-form label {
  display: block;
  min-width: 0;
}

.search-form .search-field {
  min-height: 48px;
}

.search-form .search-submit {
  min-width: 132px;
}

@media (max-width: 1119px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-cta {
    display: none;
    grid-column: 1 / -1;
  }

  .nav-links.is-open,
  .nav-links.is-open + .nav-cta {
    display: block;
  }
  
  .site-header,
  .nav,
  .nav-links,
  .nav-links.is-open,
  .nav-links .menu,
  .nav-links .menu-item,
  .nav-links .sub-menu {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .nav-links,
  .nav-links.is-open,
  .nav-links .menu,
  .nav-links .menu-item {
    width: 100%;
  }

  .nav-links .menu {
    align-items: stretch;
    display: grid;
    gap: 8px;
  }

  .nav-links a {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--rlg-radius);
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: break-word;
    padding: 12px;
    width: 100%;
    word-break: break-word;
  }

  .nav-links .menu > .menu-item > .sub-menu {
    background: linear-gradient(135deg, #0b0806 0%, #120c08 100%);
    border-color: rgba(255, 246, 234, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 246, 234, 0.05);
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: auto;
    margin: 10px 0 0;
    max-height: min(62vh, 560px);
    min-width: 0;
    opacity: 1;
    overflow-y: auto;
    padding: 14px;
    pointer-events: auto;
    position: static;
    transform: none;
    width: 100%;
  }
  
  .nav-links .menu > .menu-item > .sub-menu,
  .nav-links .sub-menu,
  .nav-links .sub-menu .sub-menu {
    left: auto !important;
    margin-left: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  .nav-links .menu > .menu-item > .sub-menu::before {
    content: none;
  }

  .nav-links .menu > .menu-item > .sub-menu > .menu-item-has-children > a {
    background: rgba(255, 246, 234, 0.05);
    font-size: 0.88rem;
    margin-bottom: 4px;
    min-height: 42px;
  }
  
    .nav-links .sub-menu .sub-menu {
    background: transparent;
    margin: 4px 0 0;
    padding: 0 0 0 10px;
    width: 100%;
  }

  .nav-links .sub-menu .sub-menu a {
    background: transparent;
    font-size: 0.82rem;
    padding: 7px 10px;
  }
}

@media (max-width: 980px) {

  .archive-hero-grid,
  .single-hero-grid {
    grid-template-columns: 1fr;
  }

  .archive-hero-panel {
    max-width: 680px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card-large {
    display: flex;
    grid-column: auto;
  }

  .post-card-large .post-card-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .cta-panel,
  .search-form {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 768px) and (max-width: 1119px) {
  .footer-inner {
    gap: 34px;
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .nav {
    min-height: 78px;
    padding: 12px 18px;
  }

  .brand-logo-header {
    max-width: 230px;
    width: min(230px, 62vw);
  }

  .nav-toggle {
    font-size: 0.82rem;
    min-height: 44px;
    min-width: 104px;
    padding: 0 18px;
  }

  .nav-links .menu > .menu-item > .sub-menu {
    gap: 10px;
    grid-template-columns: 1fr;
    max-height: none;
    overflow-y: visible;
    padding: 12px;
  }

  .nav-links .menu > .menu-item > .sub-menu > .menu-item-has-children > a {
    font-size: 0.86rem;
    min-height: 40px;
  }

  .nav-links .sub-menu .sub-menu a {
    font-size: 0.84rem;
    padding: 7px 10px;
  }

  .footer-inner {
    gap: 30px;
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 782px) {
  .archive-hero,
  .single-hero {
    padding: 58px 0;
  }

  .archive-hero h1,
  .single-hero h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  .archive-hero-panel,
  .post-related .section-inner {
    padding: 24px;
  }

  .post-visual {
    min-height: 250px;
    padding: 22px;
  }

  .post-visual-single {
    min-height: 310px;
  }

  .post-visual-lines {
    right: 20px;
    top: 20px;
    width: 120px;
  }

  .post-visual strong {
    font-size: 1.85rem;
  }

  .post-content {
    padding-top: 46px;
  }

  .post-content p,
  .post-content li {
    font-size: 1.01rem;
  }

  .post-related-links {
    display: grid;
  }

}
