/* ========================================================================
   IX6 FRESH FIELD-GUIDE THEME
   Medium content width: a 1240px editorial shell with full-width page bands.
   Grav/PHP remains unchanged. Page bands, responsive media and the popup
   are controlled here. Search "IX6" to review every custom section.
   ======================================================================== */

:root,
:root[data-theme="dark"] {
  color-scheme: light;
  --ix6-canvas: #f5fbfa;
  --ix6-paper: #ffffff;
  --ix6-mist: #eaf7f5;
  --ix6-sky: #e9f3ff;
  --ix6-ink: #17333d;
  --ix6-copy: #415b63;
  --ix6-muted: #6b8389;
  --ix6-line: #cfdfdc;
  --ix6-blue: #246fc5;
  --ix6-blue-dark: #174e8e;
  --ix6-mint: #3ebaa5;
  --ix6-coral: #ed765f;
  --ix6-sun: #f6b85c;
  --ix6-shell: 1240px;
  --ix6-reading: 760px;
  --ix6-header: 78px;
  --q2-accent: var(--ix6-blue);
  --q2-link: var(--ix6-blue-dark);
  --q2-focus-ring: rgba(36, 111, 197, 0.24);
}

* {
  box-sizing: border-box;
}

html,
:root[data-theme="dark"] {
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--ix6-canvas) !important;
}

body,
:root[data-theme="dark"] body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ix6-ink) !important;
  background: var(--ix6-canvas) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(36, 111, 197, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 111, 197, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

a {
  color: var(--ix6-blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--ix6-coral);
}

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

figure,
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ix6-ink) !important;
  font-family: "Cal Sans", Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

h1 {
  font-size: clamp(2.6rem, 4.3vw, 3.65rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.9rem, 2.7vw, 2.55rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}

p,
li {
  color: var(--ix6-copy);
}

::selection {
  color: var(--ix6-ink);
  background: rgba(62, 186, 165, 0.24);
}

:focus-visible {
  outline: 3px solid rgba(36, 111, 197, 0.28);
  outline-offset: 3px;
}

.ix6-shell {
  width: min(var(--ix6-shell), calc(100% - 64px));
  margin-inline: auto;
}

/* ===== IX6 HEADER: compact white navigation with a slim blue accent ===== */

#header,
#header.section {
  position: fixed !important;
  z-index: 50;
  top: 0;
  width: 100%;
  height: var(--ix6-header);
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(23, 51, 61, 0.1) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 30px rgba(23, 51, 61, 0.06);
  backdrop-filter: blur(14px);
}

#header::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ix6-blue) 0 34%, var(--ix6-mint) 34% 67%, var(--ix6-sun) 67% 100%);
}

#header > .container {
  width: min(var(--ix6-shell), calc(100% - 48px));
  max-width: none;
  height: 100%;
  margin: 0 auto;
  padding: 0;
}

#header .navbar {
  height: 100%;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ix6-ink) !important;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(23, 51, 61, 0.12);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-copy strong {
  font-family: "Cal Sans", Inter, sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--ix6-muted);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

#header .desktop-menu {
  margin-left: auto;
}

#header ul.navigation {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header ul.navigation > li > a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ix6-ink) !important;
  font-size: 0.85rem;
  font-weight: 760;
  text-decoration: none;
}

#header ul.navigation > li > a:hover,
#header ul.navigation > li.active > a,
#header ul.navigation > li > a.active {
  color: var(--ix6-blue-dark) !important;
  background: var(--ix6-sky);
}

#header ul.navigation > li.header-cta-item {
  margin-left: 9px;
}

#header ul.navigation > li.header-cta-item > a.header-cta {
  min-width: 124px;
  justify-content: center;
  padding-inline: 18px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--ix6-blue);
  box-shadow: 0 9px 22px rgba(36, 111, 197, 0.2);
}

#header ul.navigation > li.header-cta-item > a.header-cta:hover {
  background: var(--ix6-blue-dark);
}

#header .actions,
.theme-toggle,
[data-theme-toggle],
.theme-toggle-wrapper {
  display: none !important;
}

.mobile-menu {
  display: none;
}

/* ===== IX6 GRAV RESET: remove the default 960px centered content card ===== */

main {
  padding-top: var(--ix6-header);
}

#body-wrapper,
#body-wrapper.section {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent !important;
}

#body-wrapper > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

#body-wrapper > .container > .content-item {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.ix6-page {
  width: 100%;
  max-width: none;
  color: var(--ix6-ink);
}

/* ===== IX6 HERO: medium-width editorial split with a compact visual ===== */

.ix6-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 108px);
  border-bottom: 1px solid var(--ix6-line);
  background:
    radial-gradient(circle at 86% 18%, rgba(62, 186, 165, 0.15), transparent 28rem),
    linear-gradient(135deg, #fffdf8 0%, #f4fbfa 55%, #edf6ff 100%);
}

.ix6-hero::before {
  content: "IX6";
  position: absolute;
  right: max(24px, calc((100vw - var(--ix6-shell)) / 2));
  bottom: -58px;
  color: rgba(36, 111, 197, 0.045);
  font-family: "Cal Sans", Inter, sans-serif;
  font-size: clamp(9rem, 22vw, 22rem);
  font-weight: 700;
  line-height: 0.75;
  pointer-events: none;
}

.ix6-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: clamp(44px, 6vw, 86px);
}

.ix6-hero-grid > * {
  min-width: 0;
}

.ix6-hero-grid--solo {
  grid-template-columns: minmax(0, 900px);
}

.ix6-hero-copy {
  max-width: 720px;
}

.ix6-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--ix6-blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.3;
}

.ix6-kicker::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 99px;
  background: var(--ix6-mint);
}

.ix6-hero h1 {
  max-width: 700px;
  margin-bottom: 24px;
}

.ix6-lead {
  max-width: 690px;
  margin-bottom: 17px;
  color: var(--ix6-ink) !important;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
}

.ix6-hero-copy > p:not(.ix6-lead) {
  max-width: 680px;
}

.ix6-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.ix6-button,
.red-btn,
.ghost-btn,
.ix6-footer-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.ix6-button--primary,
.red-btn,
.ix6-footer-cta {
  color: #fff !important;
  background: var(--ix6-blue);
  box-shadow: 0 11px 25px rgba(36, 111, 197, 0.17);
}

.ix6-button--primary:hover,
.red-btn:hover,
.ix6-footer-cta:hover {
  color: #fff !important;
  background: var(--ix6-blue-dark);
}

.ix6-button--quiet,
.ghost-btn {
  border-color: rgba(23, 51, 61, 0.2);
  color: var(--ix6-ink) !important;
  background: rgba(255, 255, 255, 0.72);
}

.ix6-button--quiet:hover,
.ghost-btn:hover {
  border-color: var(--ix6-mint);
  background: var(--ix6-mist);
}

.ix6-hero-visual {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16 / 11;
  justify-self: end;
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px 68px 10px 68px;
  background: #dceae8;
  box-shadow: 0 28px 65px rgba(23, 51, 61, 0.16);
}

.ix6-hero-visual img,
.ix6-section-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== IX6 TOPIC RAIL: compact in-page navigation ===== */

.ix6-topic-rail {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--ix6-line);
  background: rgba(255, 255, 255, 0.94);
}

.ix6-topic-rail > .ix6-shell {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ix6-topic-rail strong {
  flex: 0 0 auto;
  color: var(--ix6-ink);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ix6-topic-rail a {
  flex: 0 0 auto;
  padding-block: 18px;
  color: var(--ix6-muted);
  font-size: 0.8rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.ix6-topic-rail a:hover {
  color: var(--ix6-blue-dark);
}

/* ===== IX6 CONTENT: numbered field-guide rows, no centered article cards ===== */

.ix6-main {
  width: 100%;
}

.ix6-section {
  width: 100%;
  padding-block: clamp(64px, 8vw, 102px);
  border-bottom: 1px solid var(--ix6-line);
  background: rgba(255, 255, 255, 0.88);
}

.ix6-section--mist {
  background: var(--ix6-mist);
}

.ix6-section-grid {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: clamp(30px, 4vw, 58px);
  align-items: start;
}

.ix6-section-grid--visual {
  grid-template-columns: 86px minmax(0, 1fr) minmax(280px, 360px);
}

.ix6-section-grid > * {
  min-width: 0;
}

.ix6-section-mark {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
  border-top: 4px solid var(--ix6-blue);
}

.ix6-section-mark span {
  color: var(--ix6-blue);
  font-family: "Cal Sans", Inter, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.ix6-section-mark small {
  color: var(--ix6-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

.ix6-section-content {
  max-width: 820px;
}

.ix6-section-content h2 {
  max-width: 780px;
  margin-bottom: 25px;
}

.ix6-prose {
  max-width: var(--ix6-reading);
}

.ix6-prose p {
  margin-bottom: 16px;
}

.ix6-prose p:last-child {
  margin-bottom: 0;
}

.ix6-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid rgba(23, 51, 61, 0.18);
  list-style: none;
}

.ix6-checklist li {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 12px 4px 12px 24px;
  border-bottom: 1px solid rgba(23, 51, 61, 0.14);
}

.ix6-checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ix6-coral);
}

.ix6-checklist a {
  color: var(--ix6-blue-dark) !important;
  font-weight: 760;
}

.ix6-section-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  align-self: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 51, 61, 0.12);
  border-radius: 44px 8px 44px 8px;
  background: #dceae8;
  box-shadow: 0 20px 48px rgba(23, 51, 61, 0.11);
}

/* ===== IX6 RELATED ROUTE ===== */

.ix6-related {
  width: 100%;
  padding-block: 34px;
  border-bottom: 1px solid rgba(23, 51, 61, 0.12);
  background: linear-gradient(90deg, var(--ix6-blue-dark), var(--ix6-blue));
}

.ix6-related > .ix6-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ix6-related p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  font-weight: 730;
}

.ix6-related > .ix6-shell > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.ix6-related a {
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 820;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

/* ===== IX6 FAQ: clean ruled list ===== */

.ix6-faq {
  padding-block: clamp(70px, 9vw, 112px);
  background: var(--ix6-paper);
}

.ix6-faq-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(50px, 8vw, 110px);
}

.ix6-faq-grid > * {
  min-width: 0;
}

.ix6-faq-heading h2 {
  max-width: 380px;
  margin-bottom: 0;
}

.ix6-faq-list {
  border-top: 1px solid var(--ix6-line);
}

.ix6-faq-item {
  border-bottom: 1px solid var(--ix6-line);
}

.ix6-faq-question {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border: 0;
  color: var(--ix6-ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.ix6-faq-question b {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ix6-line);
  border-radius: 8px;
  color: var(--ix6-blue);
  background: var(--ix6-canvas);
  font-size: 1.05rem;
}

.ix6-faq-answer {
  display: none;
  max-width: 720px;
  padding: 0 54px 22px 0;
}

.ix6-faq-item.open .ix6-faq-answer {
  display: block;
}

.ix6-faq-answer p {
  margin-bottom: 0;
}

/* ===== IX6 FOOTER: open columns, fresh mint canvas ===== */

#footer.site-footer {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ix6-ink);
  background: var(--ix6-mist);
}

.ix6-footer-main {
  padding-block: 74px 64px;
  border-top: 1px solid var(--ix6-line);
}

.ix6-footer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.6fr) repeat(3, minmax(130px, 0.7fr));
  gap: clamp(38px, 6vw, 78px);
}

.ix6-footer-brand {
  max-width: 430px;
}

.ix6-footer-kicker,
.ix6-modal-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--ix6-blue-dark);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ix6-footer-brand h2 {
  margin-bottom: 15px;
  font-size: 2.8rem;
}

.ix6-footer-brand p {
  max-width: 400px;
  margin-bottom: 24px;
}

.ix6-footer-grid nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.ix6-footer-grid nav h3 {
  margin-bottom: 8px;
  color: var(--ix6-ink) !important;
  font-size: 0.9rem;
}

.ix6-footer-grid nav a {
  color: var(--ix6-copy) !important;
  font-size: 0.84rem;
  text-decoration: none;
}

.ix6-footer-grid nav a:hover {
  color: var(--ix6-blue-dark) !important;
}

.ix6-footer-bottom {
  border-top: 1px solid var(--ix6-line);
  background: rgba(255, 255, 255, 0.46);
}

.ix6-footer-bottom > .ix6-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ix6-footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
}

.ix6-footer-bottom > .ix6-shell > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ix6-footer-bottom span {
  padding: 5px 9px;
  border: 1px solid var(--ix6-line);
  border-radius: 6px;
  color: var(--ix6-muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
  font-weight: 760;
}

/* ===== IX6 POPUP: fresh compact panel, actions stacked vertically ===== */

.modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  background: rgba(18, 45, 54, 0.48);
  backdrop-filter: blur(9px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop .ix6-modal {
  width: min(430px, calc(100vw - 36px));
  max-width: none;
  overflow: hidden;
  border: 1px solid rgba(23, 51, 61, 0.15);
  border-radius: 18px;
  background: var(--ix6-paper);
  box-shadow: 0 32px 90px rgba(23, 51, 61, 0.24);
  transform: translateY(14px);
  transition: transform 180ms ease;
}

.modal-backdrop.show .ix6-modal {
  transform: translateY(0);
}

.modal-top {
  position: relative;
  padding: 34px 64px 24px 30px;
  border-top: 7px solid var(--ix6-mint);
  background: linear-gradient(145deg, #fff, var(--ix6-sky));
}

.modal-top h2 {
  margin-bottom: 14px;
  font-size: 1.9rem;
  line-height: 1.08;
}

.modal-top p {
  margin-bottom: 0;
  font-size: 0.91rem;
  line-height: 1.55;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ix6-line);
  border-radius: 9px;
  color: var(--ix6-ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  cursor: pointer;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 22px 30px 30px;
  border-top: 1px solid var(--ix6-line);
}

.modal-actions > * {
  width: 100%;
}

/* ===== IX6 MOBILE NAVIGATION ===== */

.overlay {
  position: fixed;
  z-index: 45;
  inset: 0;
  padding: calc(var(--ix6-header) + 24px) 28px 32px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  background: rgba(245, 251, 250, 0.985);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.overlay.open {
  visibility: visible;
  opacity: 1;
}

.overlay .mobile-logo {
  margin-bottom: 28px;
}

.overlay ul.navigation {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.overlay ul.navigation a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ix6-line);
  color: var(--ix6-ink) !important;
  font-weight: 780;
  text-decoration: none;
}

.overlay ul.navigation .header-cta {
  justify-content: center;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  color: #fff !important;
  background: var(--ix6-blue);
}

/* ===== IX6 RESPONSIVE WIDTHS ===== */

@media (max-width: 1120px) {
  #header ul.navigation > li > a {
    padding-inline: 8px;
    font-size: 0.79rem;
  }

  .ix6-section-grid--visual {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ix6-section-grid--visual .ix6-section-visual {
    grid-column: 2;
    width: min(520px, 100%);
  }

  .ix6-footer-grid {
    grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(110px, 0.65fr));
    gap: 32px;
  }
}

@media (max-width: 960px) {
  :root,
  :root[data-theme="dark"] {
    --ix6-header: 72px;
  }

  #header .desktop-menu {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    z-index: 60;
    top: 18px;
    right: 24px;
    display: block;
  }

  .button_container {
    width: 38px;
    height: 36px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 8px;
    border: 1px solid var(--ix6-line);
    border-radius: 10px;
    background: var(--ix6-paper);
    cursor: pointer;
  }

  .button_container span {
    width: 100%;
    height: 2px;
    display: block;
    background: var(--ix6-ink);
  }

  .ix6-hero-grid,
  .ix6-hero-grid--solo {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .ix6-hero-copy {
    max-width: 800px;
  }

  .ix6-hero-visual {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 8;
    justify-self: stretch;
    border-radius: 8px 46px 8px 46px;
  }

  .ix6-section-grid,
  .ix6-section-grid--visual {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 28px;
  }

  .ix6-section-grid--visual .ix6-section-visual {
    grid-column: 2;
  }

  .ix6-faq-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

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

@media (max-width: 700px) {
  body,
  :root[data-theme="dark"] body {
    font-size: 16px;
  }

  .ix6-shell,
  #header > .container {
    width: calc(100% - 36px);
  }

  h1 {
    font-size: clamp(2.25rem, 10.5vw, 2.9rem);
    line-height: 1.07;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand-copy small {
    display: none;
  }

  .mobile-menu {
    right: 18px;
  }

  .ix6-hero {
    padding-block: 48px 56px;
  }

  .ix6-hero::before {
    display: none;
  }

  .ix6-lead {
    font-size: 1.08rem;
  }

  .ix6-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ix6-actions > * {
    width: 100%;
  }

  .ix6-hero-visual {
    aspect-ratio: 16 / 10;
    border-width: 5px;
    border-radius: 7px 30px 7px 30px;
  }

  .ix6-topic-rail > .ix6-shell {
    gap: 18px;
  }

  .ix6-section {
    padding-block: 56px;
  }

  .ix6-section-grid,
  .ix6-section-grid--visual {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ix6-section-mark {
    min-height: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
  }

  .ix6-section-mark span {
    font-size: 1.55rem;
  }

  .ix6-section-grid--visual .ix6-section-visual {
    grid-column: auto;
    width: 100%;
  }

  .ix6-checklist {
    grid-template-columns: 1fr;
  }

  .ix6-section-visual {
    aspect-ratio: 16 / 10;
    border-radius: 24px 7px 24px 7px;
  }

  .ix6-related > .ix6-shell,
  .ix6-footer-bottom > .ix6-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .ix6-related > .ix6-shell > div,
  .ix6-footer-bottom > .ix6-shell > div {
    justify-content: flex-start;
  }

  .ix6-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .ix6-footer-bottom > .ix6-shell {
    padding-block: 22px;
  }
}

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

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

  .modal-top {
    padding: 30px 54px 22px 22px;
  }

  .modal-actions {
    padding: 18px 22px 24px;
  }
}

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