/*
Theme Name: CGS
Theme URI: https://www.cgs.wa.edu.au/
Author: Codex
Description: A modern Elementor-friendly WordPress theme for Court Grammar School using current CGS imagery, typography, and content structure.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.9
Text Domain: cgs
*/

:root {
  --paper: #f8f7f3;
  --white: #ffffff;
  --ink: #24313c;
  --muted: #66727d;
  --mist: #dbe1e5;
  --line: rgba(36, 49, 60, 0.14);
  --navy: #153b59;
  --teal: #2a9fb0;
  --teal-deep: #0f6d79;
  --orange: #df6f3a;
  --sand: #ece4d7;
  --forest: #344936;
  --shadow-lg: 0 28px 70px rgba(10, 28, 45, 0.18);
  --shadow-md: 0 18px 44px rgba(10, 28, 45, 0.12);
  --radius-sm: 16px;
  --radius-md: 28px;
  --radius-lg: 40px;
  --shell: min(1280px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "museo-sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-is-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

p {
  margin: 0 0 1.4rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "museo-sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--navy);
}

h1 {
  font-size: clamp(3.4rem, 8vw, 7rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

h3 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

h4 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

ul,
ol {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-label {
  margin-bottom: 1rem;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.82);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  transition: transform 0.24s ease, background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button--solid {
  background: var(--navy);
  color: var(--white);
}

.button--solid:hover,
.button--solid:focus {
  background: #0f2f48;
}

.button--ghost,
.button--ghost-dark {
  background: transparent;
  border-color: currentColor;
}

.button--ghost {
  color: var(--white);
}

.button--ghost:hover,
.button--ghost:focus {
  background: rgba(255, 255, 255, 0.08);
}

.button--ghost-dark {
  color: var(--navy);
}

.button--ghost-dark:hover,
.button--ghost-dark:focus {
  background: rgba(21, 59, 89, 0.06);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transform: translateY(0);
  transition: transform 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 12px));
}

.site-header.is-scrolled .site-header__bar,
.site-header.is-scrolled .site-header__inner {
  backdrop-filter: blur(14px);
}

.site-header__bar {
  background: rgba(15, 33, 48, 0.18);
}

.site-header__bar-inner {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0 0.35rem;
}

.site-header__quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 96px;
  padding: 0.8rem 0 1rem;
  background: linear-gradient(180deg, rgba(13, 27, 39, 0.5), rgba(13, 27, 39, 0));
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-brand img {
  width: clamp(190px, 23vw, 320px);
}

.site-nav--desktop {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  display: grid;
  min-width: 290px;
  padding: 14px 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.site-nav__dropdown a {
  padding: 0.85rem 1.25rem;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.35;
}

.site-nav__dropdown a:hover,
.site-nav__dropdown a:focus {
  background: rgba(42, 159, 176, 0.1);
}

.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-toggle,
.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  color: var(--white);
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.menu-toggle__icon {
  display: inline-grid;
  gap: 5px;
}

.menu-toggle__icon span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(9, 18, 27, 0.62);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__panel {
  width: min(94vw, 560px);
  height: 100%;
  margin-left: auto;
  padding: 1.4rem 1.25rem 2rem;
  background: #102d43;
  color: var(--white);
  overflow-y: auto;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 1.6rem;
}

.mobile-menu__brand img {
  width: min(240px, 52vw);
}

.mobile-menu__group + .mobile-menu__group {
  margin-top: 1.4rem;
}

.mobile-menu__group h2 {
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: 1.35rem;
}

.mobile-menu__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__group li + li {
  margin-top: 0.5rem;
}

.mobile-menu__group a {
  color: rgba(255, 255, 255, 0.84);
}

.hero {
  position: relative;
  overflow: clip;
  background: #0d1d28;
}

.hero__slides {
  position: relative;
  min-height: min(100svh, 900px);
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(8, 18, 26, 0.22), rgba(8, 18, 26, 0.62));
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 900px);
  padding: 12rem 0 11rem;
}

.hero__copy {
  width: min(760px, 100%);
  color: var(--white);
}

.hero__eyebrow {
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__copy h1 {
  color: var(--white);
  text-shadow: 0 20px 42px rgba(0, 0, 0, 0.16);
}

.hero__copy strong {
  font-weight: 700;
}

.hero__meta {
  margin: 1.45rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.hero__controls {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding-bottom: 2.4rem;
}

.hero__track {
  display: grid;
  grid-template-columns: 1.3fr 2.9fr 1.1fr;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
}

.hero__accent--coral {
  background: var(--orange);
}

.hero__accent--orange {
  background: #d7aa33;
}

.hero__accent--plum {
  background: #6d4a80;
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 1.25rem;
}

.hero__nav > button,
.hero__dot {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.hero__nav > button {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 2rem;
  line-height: 1;
}

.hero__dots {
  display: flex;
  gap: 10px;
}

.hero__dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  opacity: 0.5;
}

.hero__dot.is-active {
  opacity: 1;
  background: var(--white);
}

.intro-section {
  position: relative;
  padding: 7rem 0 6rem;
}

.intro-section::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: min(18vw, 220px);
  height: min(18vw, 220px);
  background: radial-gradient(circle at 40% 40%, rgba(42, 159, 176, 0.22), transparent 68%);
  pointer-events: none;
}

.intro-section__grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.03fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.intro-section__panel {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow-md);
}

.intro-section__panel h2 {
  max-width: 14ch;
}

.intro-section__panel h2 strong {
  font-weight: 700;
}

.intro-section__panel p:not(.section-label) {
  max-width: 38rem;
  margin-top: 1.4rem;
  color: var(--muted);
}

.intro-section__panel .button-row {
  margin-top: 2rem;
}

.intro-section__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.learning-grid {
  padding: 1rem 0 7rem;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.8rem;
}

.section-heading h2 {
  max-width: 14ch;
}

.section-heading p:last-child {
  max-width: 44rem;
  color: var(--muted);
}

.section-heading--row {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.learning-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(20, 47, 70, 0.12);
  border-radius: 34px;
  overflow: hidden;
}

.learning-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.learning-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.learning-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2rem 1.9rem 2.1rem;
}

.learning-card__body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.learning-card__body .button {
  margin-top: auto;
  align-self: flex-start;
}

.doorways {
  position: relative;
  padding: 7rem 0;
  background: linear-gradient(135deg, #26415b 0%, #122332 100%);
  color: rgba(255, 255, 255, 0.9);
}

.doorways::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(20vw, 260px);
  height: min(22vw, 300px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.doorways__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.doorways__intro h2,
.doorways__intro p {
  color: var(--white);
}

.doorways__intro h2 strong {
  font-weight: 700;
}

.doorways__intro p {
  margin-top: 1.2rem;
  max-width: 22rem;
  opacity: 0.84;
}

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

.doorway-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: 1.8rem;
  border-radius: 32px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-lg);
}

.doorway-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 25, 0.08), rgba(8, 16, 25, 0.82));
}

.doorway-card__content {
  position: relative;
  z-index: 1;
}

.doorway-card h3,
.doorway-card p,
.doorway-card__cta {
  color: var(--white);
}

.doorway-card h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.75rem, 2.6vw, 2.55rem);
}

.doorway-card p {
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.88;
}

.doorway-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.doorway-card__cta::after {
  content: "→";
  font-size: 1.1rem;
}

.tour-band {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  margin: 7rem 0;
  background: var(--white);
}

.tour-band__image {
  min-height: 620px;
  background-position: center;
  background-size: cover;
}

.tour-band__panel {
  padding: clamp(2.5rem, 6vw, 5rem);
  background: linear-gradient(180deg, #14748a 0%, #0f5a68 100%);
  color: var(--white);
}

.tour-band__panel h2,
.tour-band__panel p {
  color: var(--white);
}

.tour-band__panel h2 {
  max-width: 12ch;
}

.tour-band__panel p:not(.section-label) {
  margin-top: 1.35rem;
  max-width: 30rem;
  opacity: 0.88;
}

.tour-band__panel .button-row {
  margin-top: 2rem;
}

.news-strip {
  padding: 1rem 0 7rem;
}

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

.news-card {
  border-radius: 30px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.news-card--list {
  border-radius: 28px;
}

.news-card__link {
  display: block;
  height: 100%;
}

.news-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card__body {
  padding: 1.65rem 1.5rem 1.75rem;
}

.news-card__meta {
  margin-bottom: 0.8rem;
  color: var(--teal-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h2,
.news-card h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.news-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.empty-state {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.site-footer {
  color: #55636f;
  background: #c7d1d7;
}

.site-footer__main {
  background: rgba(181, 193, 202, 0.82);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 120px minmax(220px, 0.9fr) minmax(280px, 1.1fr) auto;
  gap: 2rem;
  align-items: start;
  padding: 3.25rem 0 2.4rem;
}

.site-footer__brand img {
  width: 100%;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.4rem;
}

.site-footer__links a,
.site-footer__social a,
.site-footer__legal a {
  color: var(--teal-deep);
  font-weight: 700;
}

.site-footer__acknowledgement {
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-footer__bottom {
  border-top: 1px solid rgba(21, 59, 89, 0.12);
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.4rem;
  font-size: 0.78rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-shell {
  min-height: 100vh;
  padding-top: 0;
}

.page-hero {
  position: relative;
  padding-top: 144px;
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 25, 0.18), rgba(8, 16, 25, 0.56));
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0 8rem;
}

.page-hero__label {
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 14ch;
  color: var(--white);
}

.breadcrumb-bar {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 -34px auto;
  padding: 1rem 1.45rem;
  border-radius: 24px;
  background: var(--navy);
  color: var(--white);
  transform: translateY(34px);
}

.breadcrumb-bar__divider {
  width: 2px;
  height: 1.05rem;
  background: rgba(82, 188, 205, 0.92);
}

.page-shell__content {
  display: grid;
  gap: 3rem;
  padding: 6rem 0 6.5rem;
}

.page-shell__content.has-sidebar {
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  align-items: start;
}

.page-sidebar {
  position: sticky;
  top: 140px;
}

.page-sidebar__title {
  margin-bottom: 2rem;
}

.page-sidebar__title a {
  color: #8b9bb6;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.page-sidebar__nav {
  display: grid;
  gap: 0.85rem;
}

.page-sidebar__nav a {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.35;
}

.page-sidebar__nav a.is-current {
  color: var(--navy);
  font-weight: 700;
}

.page-sidebar__nav a.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 28px;
  background: var(--teal);
  transform: translateY(-50%);
}

.page-article {
  max-width: 860px;
}

.page-article--news {
  max-width: 920px;
}

.entry-content,
.elementor-widget-text-editor,
.elementor-widget-theme-post-content {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.85;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.elementor-widget-text-editor h2,
.elementor-widget-theme-post-content h2 {
  margin: 2.3rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.entry-content h3,
.elementor-widget-text-editor h3,
.elementor-widget-theme-post-content h3 {
  margin: 2rem 0 0.85rem;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.06;
}

.entry-content h4,
.elementor-widget-text-editor h4,
.elementor-widget-theme-post-content h4 {
  margin: 1.5rem 0 0.6rem;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.entry-content a,
.elementor-widget-text-editor a,
.elementor-widget-theme-post-content a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.entry-content hr {
  margin: 2.3rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.elementor-full-width-page {
  display: block;
  padding-top: 0;
}

.elementor {
  color: inherit;
}

.elementor-section.elementor-section-boxed > .elementor-container,
.elementor-container,
.e-con-boxed > .e-con-inner {
  width: var(--shell);
  max-width: none;
}

.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4 {
  letter-spacing: -0.04em;
}

.elementor-widget-button .elementor-button {
  border-radius: 999px;
  padding: 0.9rem 1.45rem;
  font-weight: 700;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .site-nav--desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .learning-grid__cards,
  .news-grid,
  .doorways__cards {
    grid-template-columns: 1fr;
  }

  .doorways__layout,
  .tour-band,
  .page-shell__content.has-sidebar,
  .intro-section__grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    position: static;
  }

  .site-footer__brand img {
    width: 88px;
  }

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

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 28px, 1280px);
  }

  body {
    font-size: 16px;
  }

  .site-header__bar {
    display: none;
  }

  .site-header__inner {
    min-height: 82px;
    padding: 0.75rem 0;
  }

  .site-brand img {
    width: min(210px, 54vw);
  }

  .hero__slides,
  .hero__content {
    min-height: 720px;
  }

  .hero__content {
    padding: 8rem 0 9rem;
  }

  .hero__nav > button {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .breadcrumb-bar {
    display: flex;
    width: auto;
    margin: 0;
    transform: translateY(22px);
    font-size: 0.92rem;
  }

  .page-hero {
    padding-top: 112px;
  }

  .page-hero__inner {
    padding: 3.6rem 0 5.8rem;
  }

  .page-shell__content {
    padding-top: 4.6rem;
  }

  .section-heading--row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
  }
}
