/* Perfect Wedding Tips — Studio Atlas design system
   Cool porcelain + charcoal ink + sapphire accent.
   Not cream/wine, not purple gradients, not Inter defaults. */

:root {
  --ink: #0e1520;
  --ink-soft: #3a4556;
  --porcelain: #f3f5f8;
  --paper: #fbfcfd;
  --line: #d5dde8;
  --sapphire: #2456a8;
  --sapphire-deep: #1a3f7a;
  --mist: #e8eef7;
  --mist-2: #dce6f4;
  --success-quiet: #2d6a5a;
  --font-display: 'Syne', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Figtree', 'Segoe UI', sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius: 2px;
  --max: 1180px;
  --sidebar: 300px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

/* Room for Auto ads bottom anchor until Overlay formats are off in AdSense. */
@media (min-width: 1001px) {
  body:has(ins.adsbygoogle[data-anchor-status='displayed']) {
    padding-bottom: 140px;
  }
}

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

a {
  color: var(--sapphire);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sapphire-deep);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* ——— Site chrome ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  /* Clip Auto-ads siblings so chrome never grows past one nav row */
  overflow: hidden;
  max-height: calc(var(--header-h) + 1px);
  contain: layout style;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: var(--space-5);
  min-height: var(--header-h);
  overflow: hidden;
}

/*
  AdSense Auto ads injects .google-auto-placed into .site-header__inner as a flex sibling.
  That inflates sticky chrome (~300px desktop / ~520px mobile) and shoves brand+nav aside —
  most visible on home (no reserved .ad-slot, so Auto ads prefers the header).
  Auto ads CSS can also force min-height:0 on the injection host; restore chrome height.
  Only brand + nav belong in the header row; hide any injected siblings.
  Overlay OFF does not stop in-page Auto ads from targeting the header.
*/
.site-header__inner > :not(.brand):not(.nav),
.site-header .google-auto-placed,
.site-header ins.adsbygoogle,
.site-header [id^='google_ads_iframe'],
.site-header iframe[id^='aswift_'] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.site-header,
.site-header__inner {
  min-height: var(--header-h) !important;
}

.site-header .brand,
.site-header .nav {
  flex: 0 1 auto;
  position: relative;
  z-index: 1;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}

.brand span {
  color: var(--sapphire);
}

.nav {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--sapphire);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.site-footer {
  margin-top: var(--space-8);
  padding: var(--space-7) 0 var(--space-6);
  background: var(--ink);
  color: #e8edf5;
}

.site-footer a {
  color: #c9d6ea;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-6);
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  color: #a8b4c7;
  max-width: 36ch;
}

/* ——— Hero (full-bleed, one composition) ——— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(14, 21, 32, 0.82) 0%, rgba(14, 21, 32, 0.35) 48%, rgba(36, 86, 168, 0.28) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(36, 86, 168, 0.35), transparent 55%),
    linear-gradient(160deg, #1a2a44 0%, #0e1520 55%, #243b66 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero__media.has-image {
  background-image:
    linear-gradient(115deg, rgba(14, 21, 32, 0.78) 0%, rgba(14, 21, 32, 0.28) 50%, rgba(14, 21, 32, 0.45) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__copy {
  padding: var(--space-8) 0 var(--space-7);
  max-width: 38rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 var(--space-4);
}

.hero__brand em {
  font-style: normal;
  color: #9ec0ff;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  max-width: 22ch;
}

.hero__support {
  margin: 0 0 var(--space-5);
  font-size: 1.1rem;
  color: #d7e0ef;
  max-width: 34ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: #fff;
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--mist);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--sapphire {
  background: var(--sapphire);
  color: #fff;
}

.btn--sapphire:hover {
  background: var(--sapphire-deep);
  color: #fff;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

/* ——— Sections ——— */
.section {
  padding: var(--space-7) 0;
}

.section--mist {
  background:
    linear-gradient(180deg, var(--mist) 0%, var(--porcelain) 100%);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sapphire);
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0;
}

.lede {
  color: var(--ink-soft);
  max-width: 48ch;
  margin: var(--space-3) 0 0;
}

/* Catalog grid — interactive browsing only */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.catalog-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

/* Author `display:block` beats UA [hidden] in some engines — force collapse. */
.catalog-item[hidden] {
  display: none !important;
}

.catalog-empty {
  margin: 0 0 var(--space-5);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.catalog-filter-status {
  margin: -0.5rem 0 var(--space-4);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.catalog-item:hover {
  border-color: var(--sapphire);
  transform: translateY(-2px);
  color: inherit;
}

.catalog-item__media {
  aspect-ratio: 3 / 4;
  background: var(--mist-2);
  overflow: hidden;
}

.catalog-item__media img {
  width: 100%;
  height: 100%;
  /* Fill the card frame; bias to face/hair (bridal portraits). Full photo: style hero. */
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s var(--ease);
}

.catalog-item:hover .catalog-item__media img {
  transform: scale(1.03);
}

.catalog-item__body {
  padding: var(--space-4);
}

.catalog-item__meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sapphire);
  margin-bottom: var(--space-2);
}

.catalog-item h2,
.catalog-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  line-height: 1.2;
}

.catalog-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--line);
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.filters select {
  min-height: 40px;
  min-width: 8.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  color: var(--ink);
  font: 600 0.9rem var(--font-body);
  padding: 0 0.6rem;
}

/* Breadcrumbs + article layout */
.crumbs {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: var(--space-5) 0 var(--space-4);
}

.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--sapphire);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 var(--space-3);
}

.updated {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}

.layout-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: var(--space-7);
  align-items: start;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  margin: 2em 0 0.6em;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.6em 0 0.5em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}
.prose th,
.prose td {
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: color-mix(in srgb, var(--mist) 80%, white);
  font-family: var(--font-display);
  font-weight: 600;
}
.prose ul {
  padding-left: 1.2rem;
}

.prose img {
  margin: var(--space-5) 0;
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

.hero-figure {
  margin: 0 0 var(--space-5);
  background: var(--mist-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cap frame so tall portraits fit on-screen without looking “cut off” */
  max-height: min(72vh, 820px);
}

.hero-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 820px);
  /* Uniform scale — entire photo visible (letterbox OK on mist) */
  object-fit: contain;
  object-position: center center;
}

.aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.aside__box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--space-4);
}

.aside__box h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 var(--space-3);
}

.aside__box a {
  display: block;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.aside__box a:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.attr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: var(--space-4) 0;
}

.attr-chip {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.35rem 0.55rem;
  background: var(--paper);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: var(--space-3) 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.ad-slot {
  min-height: 90px;
  background: color-mix(in srgb, var(--mist) 70%, transparent);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: #8a96a8;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}

.ad-slot:has(ins.adsbygoogle) {
  border-style: solid;
  color: transparent;
  background: transparent;
}

.ad-slot--sidebar {
  min-height: 250px;
}

.ad-slot--inarticle {
  margin: var(--space-6) 0;
  min-height: 120px;
}

.related-strip {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .layout-article {
    grid-template-columns: 1fr;
  }
  .aside {
    position: static;
  }
  .ad-slot--sidebar {
    display: none;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: var(--space-3);
  }
}

/* ——— Hub redesign (money / method / topic) ——— */
.hub-hero {
  position: relative;
  min-height: min(62vh, 520px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hub-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(118deg, rgba(14, 21, 32, 0.88) 0%, rgba(14, 21, 32, 0.42) 52%, rgba(36, 86, 168, 0.32) 100%),
    linear-gradient(165deg, #152238 0%, #0e1520 58%, #1e3a66 100%);
  transform: scale(1.03);
  animation: heroDrift 20s var(--ease) infinite alternate;
}

.hub-hero--method .hub-hero__media {
  background:
    linear-gradient(120deg, rgba(14, 21, 32, 0.82) 0%, rgba(26, 63, 122, 0.45) 55%, rgba(14, 21, 32, 0.55) 100%),
    linear-gradient(160deg, #1a3358 0%, #0e1520 60%, #2456a8 120%);
}

.hub-hero--topic .hub-hero__media {
  background:
    linear-gradient(115deg, rgba(14, 21, 32, 0.86) 0%, rgba(14, 21, 32, 0.5) 45%, rgba(45, 106, 90, 0.28) 100%),
    linear-gradient(170deg, #14202f 0%, #0e1520 55%, #243447 100%);
}

.hub-hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hub-hero__copy {
  padding: var(--space-7) 0 var(--space-6);
  max-width: 40rem;
  animation: riseIn 0.85s var(--ease) both;
}

.hub-hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 var(--space-3);
}

.hub-hero__brand em {
  font-style: normal;
  color: #9ec0ff;
}

.hub-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.6vw, 2.45rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 var(--space-3);
  max-width: 18ch;
}

.hub-hero__support {
  margin: 0 0 var(--space-3);
  color: #d5deec;
  font-size: 1.05rem;
  max-width: 38ch;
}

.hub-hero__meta {
  margin: 0;
  font-size: 0.85rem;
  color: #9aa8bd;
}

.crumbs--on-dark,
.crumbs--on-dark a {
  color: #b8c4d6;
}

.crumbs--on-dark a:hover {
  color: #fff;
}

.eyebrow--on-dark {
  color: #9ec0ff;
}

.hub-path {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hub-path__list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.hub-path__list a {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}

.hub-path__list a:hover {
  color: var(--sapphire);
}

.hub-path__n {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sapphire);
  font-family: var(--font-body);
}

.hub-path__label {
  font-size: 1.05rem;
}

.hub-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hub-rail--home {
  grid-template-columns: repeat(4, 1fr);
}

.hub-rail__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 4.5rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hub-rail__item:hover,
.hub-rail__item[aria-current='page'] {
  border-color: var(--sapphire);
  transform: translateY(-1px);
  color: inherit;
}

.hub-rail__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.hub-rail__hint {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.hub-rail__item--all {
  background: var(--mist);
}

.hub-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.hub-topic {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.hub-topic strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.hub-topic span:last-child {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 42ch;
}

.hub-topic:hover strong {
  color: var(--sapphire);
}

.hub-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.hub-inline-links a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
}

.hub-faq-wrap {
  max-width: 52rem;
}

.hub-section-rail {
  padding-bottom: var(--space-5);
}

.site-footer__grid {
  grid-template-columns: 1.4fr 1fr 1fr;
}

@media (max-width: 900px) {
  .hub-path__list {
    grid-template-columns: 1fr 1fr;
  }
  .hub-rail,
  .hub-rail--home {
    grid-template-columns: 1fr 1fr;
  }
  .hub-topic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .hero,
  .hub-hero {
    min-height: min(70vh, 560px);
  }
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 0.35rem;
  }
  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding-bottom: 0.35rem;
  }
  .nav a:not(.nav__priority) {
    display: inline;
  }
  .hub-path__list,
  .hub-rail,
  .hub-rail--home {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
