/* HiMark Windows — styled to match the previous www.himarkwindows.com (Lato body, Neuton headings, olive/teal). */
@font-face { font-family: "Neuton"; src: url("../fonts/Neuton-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Neuton"; src: url("../fonts/Neuton-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/Lato-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/Lato-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/Lato-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/Lato-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/Lato-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --primary: #515c29;       /* HiMark olive */
  --primary-deep: #3d4520;
  --accent: #4f8386;        /* teal */
  --accent-text: #3e6a6d;   /* teal dark enough for small text on white */
  --sage: #babe8b;
  --ink: #4e4e4e;
  --text: #555555;
  --grey-bg: #f4f4ef;
  --line: #cccccc;
  --footer-bg: #2f3519;
  --error: #b0261b;
  --font: "Lato", "Segoe UI", Calibri, Arial, sans-serif;
  --font-head: "Neuton", Georgia, "Times New Roman", serif;
  --wrap: 90rem;            /* 1440px, as on the old site */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }   /* in-page links land below the sticky header */
body { margin: 0; font-family: var(--font); font-weight: 300; font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: #fff; overflow-x: clip; }
img, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 400; font-family: var(--font-head); color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin: 0 0 0.5rem; color: var(--primary); }
h2 { color: var(--primary); }
h2 { font-size: 1.75rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 1.5rem 0 0.4rem; }
h4, h5 { font-size: 1.05rem; font-weight: 400; margin: 1rem 0 0.3rem; }
p { margin: 0 0 1rem; }
address { font-style: normal; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0.5rem; background: var(--primary); color: #fff; padding: 0.5rem 1rem; z-index: 30; }
.skip-link:focus { left: 0.5rem; }

.button {
  display: inline-block; background: var(--primary); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 300; font-size: 1.1rem; text-transform: uppercase;
  padding: 0.8rem 1.25rem; text-decoration: none; transition: background-color 0.2s;
}
.button:hover { background: var(--primary-deep); color: #fff; }
.button.light { background: #fff; color: var(--primary); }
.button.light:hover { background: var(--sage); color: var(--primary-deep); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 30; }   /* menu stays in reach while scrolling */
.header-row { display: flex; align-items: stretch; min-height: 84px; }
.brand { display: flex; align-items: center; margin-right: auto; padding-block: 0.5rem; }
.brand img { display: block; height: 60px; width: auto; }
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0 1.9rem; border-left: 1px solid var(--line); line-height: 1.1;
  color: var(--ink); text-decoration: none; text-transform: uppercase; font-weight: 400; font-size: 1rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); }
.search-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  width: 87px; background: #f1f1f1; color: var(--primary); text-decoration: none;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  font-size: 0.75rem; font-weight: 400; text-transform: uppercase; margin-left: 1.9rem;
}
.search-tile:hover, .search-tile[aria-current="page"] { background: var(--primary); color: #fff; }

/* Home hero: photo with a serif headline on the right, as on the old slider's first slide */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero > img { display: block; width: 100%; height: clamp(22rem, 44vw, 46rem); object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.45) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.6rem); max-width: 16em; margin-bottom: 1.5rem; text-shadow: 0 1px 10px rgba(0,0,0,.35); }

/* Why HiMark: white panel over a full-width photo */
.why-band { position: relative; padding-block: clamp(2rem, 6vw, 6rem); }
.why-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-panel { position: relative; background: rgba(255,255,255,.95); width: min(100%, 38rem); padding: 2.5rem 3rem; }
.why-panel h2 { margin-top: 0; color: var(--sage); font-size: clamp(2rem, 3.4vw, 2.8rem); }
.why-panel .lede { font-weight: 700; color: var(--ink); font-size: 1.1rem; }

/* Energy efficient call-out */
.energy-band { background: var(--grey-bg); }
.energy { display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; align-items: center; padding-block: 3.5rem; }
.energy h2 { margin-top: 0; color: var(--accent-text); font-size: clamp(2rem, 3.4vw, 2.8rem); }
.energy h2::after { content: ""; display: block; width: 3rem; height: 2px; background: var(--accent); margin-top: 0.9rem; }
.energy p { font-size: 1.15rem; }
.energy em { font-family: var(--font-head); font-size: 1.4rem; color: var(--primary); }

/* Product tiles */
.product-tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.product-tiles li { flex: 1 1 20%; min-width: 0; }   /* a short last row stretches to fill */
.product-tiles a { position: relative; display: block; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; overflow: hidden; background: var(--ink); }
.product-tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-tiles a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(30,34,15,.1) 0%, rgba(30,34,15,.6) 40%, rgba(30,34,15,.92) 100%); }
.product-tiles .tile-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.5rem; }
.product-tiles h3 { color: #fff; margin: 0 0 0.5rem; font-size: 1.6rem; }
.product-tiles p { font-size: 0.95rem; line-height: 1.45; margin: 0; }
.product-tiles a:hover img, .product-tiles a:focus-visible img { transform: scale(1.05); }

/* Interior page banner: full-width photo, centered white title */
.page-banner { position: relative; width: 100vw; margin: 0 0 2.5rem calc(50% - 50vw); background: var(--ink); text-align: center; }
.page-banner img { display: block; width: 100%; height: clamp(14rem, 30vw, 28rem); object-fit: cover; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); pointer-events: none; }
.page-banner h1, .page-banner p { position: absolute; left: 50%; transform: translateX(-50%); color: #fff; margin: 0; z-index: 1; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.page-banner h1 { top: 40%; transform: translate(-50%, -50%); font-size: clamp(2.2rem, 5vw, 3.75rem); border-bottom: 3px solid #fff; padding: 0 1rem 0.6rem; white-space: nowrap; }
.page-banner p { top: calc(40% + 3.5rem); font-size: 1.25rem; width: min(90%, 40rem); }
.page-banner:not(:has(img)) { background: none; }
.page-banner:not(:has(img))::before { display: none; }
.page-banner:not(:has(img)) h1 { position: static; transform: none; color: var(--ink); border: 0; padding-top: 2rem; text-shadow: none; }
.page-head { padding-block: 2.5rem 1rem; }
.page-head h1 { color: var(--ink); }
.page-head p { font-size: 1.15rem; max-width: 60ch; }

/* Content pages */
.cms-page { padding-bottom: 4rem; }
.cms-page > p, .cms-page > ul, .cms-page > ol, .split-cell p { max-width: 72ch; }
.cms-page h2 { color: var(--accent-text); font-weight: 300; }
.cms-page h2 strong { font-weight: 300; }
.cms-page ul li::marker { color: var(--accent); }


.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-block: 2rem 2rem; border-bottom: 1px solid #ddd; margin-bottom: 1rem; }
.product-hero > img { order: 2; width: 100%; }
.product-summary { order: 1; font-size: 1rem; }
.product-summary h1 { color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.3rem); }
.product-summary h2 { font-size: 1rem; font-weight: 400; color: var(--ink); margin: 1rem 0 0.2rem; }
.product-summary h2 a { color: var(--accent-text); text-decoration: none; font-weight: 700; }
.product-summary p a { color: var(--ink); font-weight: 700; text-decoration: none; }
.product-summary p a:hover, .product-summary h2 a:hover { color: var(--primary); }
.cms-page > h2 { font-size: 1.6rem; padding-bottom: 0.75rem; position: relative; }
.cms-page > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.5rem; height: 2px; background: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.75rem; margin: 1rem 0 2.5rem; }
.card { margin: 0; background: #fafafa; border: 1px solid #e3e3e3; display: flex; flex-direction: column; }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.card figcaption { padding: 0.9rem 1rem 1.1rem; font-size: 0.9rem; }
.card figcaption h2, .card figcaption h3 { font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--ink); }
.card figcaption h2::after { display: none; }
.card figcaption h4, .card figcaption h5 { margin: 0; font-size: 0.95rem; }
.card figcaption p:last-child { margin-bottom: 0; }
.card figcaption a { display: inline-block; margin-top: 0.5rem; background: var(--primary); color: #fff; text-decoration: none; text-transform: uppercase; padding: 0.5rem 1rem; font-size: 0.95rem; }
.card figcaption a:hover { background: var(--accent); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; margin: 2.5rem 0; }
.split-cell > img:only-child, .split-cell > p > img { width: 100%; }
.split-cell h2:first-child { margin-top: 0; }

/* FAQ */
.toc { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 0 1.5rem; border-bottom: 1px solid #ddd; }
.toc a { display: inline-block; padding: 0.6rem 0; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.toc a::after { content: " ›"; }
.toc a:hover { color: var(--primary); }
.faq-item { border-bottom: 1px solid #ddd; max-width: 60rem; }
.faq-item summary { cursor: pointer; padding: 1.25rem 3.5rem 1.25rem 0; font-size: 1.2rem; color: var(--ink); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 0 1rem; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); gap: 3rem; padding-bottom: 4rem; align-items: start; }
.form-layout > div > h2:first-child { color: var(--accent-text); margin-top: 0; }
.inquiry { max-width: 44rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-short { max-width: 14rem; }
label { font-weight: 400; color: var(--ink); margin-bottom: 0.3rem; }
.optional { font-weight: 300; color: #777; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 0.6rem 0.7rem; width: 100%; }
input::placeholder, textarea::placeholder { color: #888; }
input[type="file"] { border-style: dashed; }
input.input-validation-error, select.input-validation-error, textarea.input-validation-error { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.95rem; margin-top: 0.25rem; font-weight: 400; }
.hint { color: #6a6d74; font-size: 0.95rem; margin: 0.3rem 0 0; }
.inquiry .button { background: var(--accent); color: #fff; padding-inline: 2.5rem; }
.inquiry .button:hover { background: var(--primary); }
.form-group { border: 1px solid #ddd; padding: 0 1rem; margin-bottom: 1rem; }
.form-group summary { cursor: pointer; font-weight: 400; color: var(--ink); padding: 0.8rem 0; }
.form-group[open] { padding-bottom: 0.5rem; }
fieldset.form-group { padding: 0.25rem 1rem 0.5rem; margin-inline: 0; }
.form-group legend { font-weight: 400; color: var(--ink); padding: 0 0.4rem; }

/* Contact Us: the window box and the service-order details only show for the subject they belong to.
   No script needed; browsers without :has() show both, and the server drops whatever doesn't apply. */
@supports selector(:has(*)) {
  .inquiry [data-show-for] { display: none; }
  .inquiry:has(#Input_Subject option[value="Find a Dealer for More Information"]:checked) [data-show-for="find-dealer"] { display: flex; }
  .inquiry:has(#Input_Subject option[value="Service on Existing Order"]:checked) [data-show-for="service"] { display: block; }
}
.form-alert { color: var(--error); border-left: 4px solid var(--error); padding: 0.5rem 1rem; margin-bottom: 1rem; }
.form-alert.validation-summary-valid { display: none; }
.form-alert ul { margin: 0; padding-left: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { background: var(--grey-bg); padding: 1.5rem 2rem; border-left: 4px solid var(--accent); }
.thanks h2 { margin-top: 0; color: var(--ink); }
.form-aside { background: var(--grey-bg); padding: 1.75rem; }
.form-aside h2 { margin: 0 0 0.5rem; font-size: 1.3rem; font-style: italic; }
.form-aside h2 + address, .form-aside p + h2 { margin-top: 1.25rem; }
.form-aside address { font-style: italic; font-weight: 400; margin-bottom: 0.75rem; }
.form-aside .phone { font-size: 1.4rem; text-decoration: none; }

/* Search */
.search-page-form { display: flex; gap: 0.5rem; max-width: 36rem; }
.search-results ol { padding-left: 1.2rem; max-width: 60rem; }
.search-results li { margin-bottom: 1.25rem; }
.search-results li > a { font-weight: 400; font-size: 1.15rem; }
.search-results li p { margin: 0.2rem 0 0; }

/* Fixed "Request More Information" tab (links to Contact Us) */
.info-tab {
  position: fixed; left: 2em; bottom: 0; width: 350px; height: 70px; z-index: 25;
  display: flex; align-items: center; justify-content: center; padding: 0 25px;
  background: var(--primary); color: #fff; text-decoration: none; font-size: 1.35rem; font-weight: 300;
  box-shadow: 0 -2px 14px rgba(0,0,0,.15);
}
.info-tab:hover, .info-tab:focus-visible { background: var(--primary-deep); color: #fff; }

/* Footer */
.site-footer { background: var(--footer-bg); color: #e3e3e3; padding: 4.5rem 0 6.5rem; font-size: 0.95rem; }
.site-footer a { color: #e3e3e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 2rem; }
.site-footer h2 { font-size: 1.3rem; margin: 0 0 0.9rem; color: var(--sage); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.25rem; }
.footer-windows ul { columns: 2; column-gap: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.7rem; }
.ico { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sage); color: var(--footer-bg); display: grid; place-items: center; }
.ico svg { width: 1rem; height: 1rem; }
.site-footer address { margin-top: 1rem; color: #bdbdbd; }
.legal { margin-top: 2.5rem; font-size: 0.85rem; color: #bdbdbd; }

@media (max-width: 80rem) {
  .product-tiles li { flex-basis: 33.34%; }
  .product-tiles a { aspect-ratio: 4 / 3; }
}
@media (max-width: 75rem) {
  .main-nav a { padding: 0 1rem; font-size: 0.9rem; }
  .search-tile { margin-left: 1rem; }
}
@media (max-width: 60rem) {
  .header-row { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; border-top: 1px solid #eee; overflow-x: auto; }
  .main-nav a { padding: 0.8rem 1rem; white-space: nowrap; }
  .main-nav li:first-child a { border-left: 0; padding-left: 0; }
  .product-hero, .split, .energy { grid-template-columns: 1fr; }
  .product-hero > img { order: 0; }
  .product-tiles li { flex-basis: 50%; }
  .product-tiles a { aspect-ratio: 4 / 3; }
  .form-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 40rem) {
  .hero > img { height: 24rem; }
  .hero-content { align-items: flex-start; text-align: left; }
  .why-panel { padding: 1.75rem 1.5rem; }
  .page-banner h1 { white-space: normal; width: 90%; }
  .page-banner p { display: none; }
  .field-row, .footer-grid { grid-template-columns: 1fr; }
  .product-tiles li { flex-basis: 100%; }
  .info-tab { left: 0; width: 100%; height: 60px; font-size: 1.15rem; }
  html { scroll-padding-top: 9rem; }
  .header-row { min-height: 64px; }
  .brand img { height: 44px; }
  .search-tile { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Series pages (400/500/600/800/Patio Door): photo with title graphic overlaid, blue band, row listing */
.series-banner { width: 100vw; margin-left: calc(50% - 50vw); }
.series-photo { position: relative; margin: 0; background: var(--ink); }
.series-photo > img:first-child { display: block; width: 100%; height: clamp(16rem, 34vw, 32rem); object-fit: cover; }
.series-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(66%, 62rem); height: auto; pointer-events: none; }
.series-band { background: var(--primary); text-align: center; padding: 1.6rem 1rem; }
.series-band h1 { color: #fff; font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.6rem); text-transform: none; margin: 0; }

.breadcrumb ol { list-style: none; margin: 0; padding: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-size: 1rem; }
.breadcrumb li + li::before { content: "\25C6"; color: var(--accent); font-size: 0.7em; margin: 0 0.7rem; vertical-align: 0.15em; }
.breadcrumb a { color: var(--accent-text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-banner .breadcrumb { position: absolute; left: 0; right: 0; top: calc(40% + 3.2rem); z-index: 1; }
.page-banner .breadcrumb ol { justify-content: center; padding: 0; color: #fff; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.page-banner .breadcrumb a { color: #fff; text-decoration: underline; }
.page-banner .breadcrumb li + li::before { color: #fff; }
.page-banner p ~ .breadcrumb { top: calc(40% + 6.5rem); }
.page-banner + .breadcrumb, .product-hero + .breadcrumb { border-bottom: 1px solid #ddd; margin-bottom: 1rem; }

.gallery.listing { grid-template-columns: 1fr; gap: 2rem; background: var(--grey-bg); width: 100vw; margin: 0 0 3rem calc(50% - 50vw); padding: 2rem max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.listing .card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; background: #fff; border: 0; }
.listing .card img { aspect-ratio: 16 / 11; height: 100%; }
.listing .card figcaption { padding: 2.5rem 3rem; font-size: 1rem; }
.listing .card figcaption h2 { font-size: 1.6rem; font-weight: 300; text-transform: uppercase; margin-bottom: 0.9rem; }
.listing .card figcaption a { padding: 0.7rem 1.4rem; margin-top: 0.75rem; }

@media (max-width: 60rem) {
  .listing .card { grid-template-columns: 1fr; }
  .listing .card figcaption { padding: 1.5rem; }
  .page-banner .breadcrumb { display: none; }
}

/* Products landing page: bottom-left banner title, 3-column cards on grey */
.page-banner.banner-left { margin-bottom: 0; text-align: left; }
.page-banner.banner-left::before { display: none; }
.page-banner.banner-left h1 {
  top: auto; bottom: 12%; transform: none; text-shadow: 0 1px 10px rgba(0,0,0,.3);
  left: max(1.25rem, calc((100vw - var(--wrap)) / 2)); padding: 0 1rem 0.6rem 0;
}
.page-banner.banner-left + .breadcrumb {
  width: 100vw; margin: 0 0 0 calc(50% - 50vw); border: 0; background: var(--grey-bg);
  padding-inline: max(1.25rem, calc((100vw - var(--wrap)) / 2));
}
.page-banner.banner-left + .breadcrumb ol { padding: 1.1rem 0 0.4rem; font-size: 0.9rem; }
.gallery.landing {
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; background: var(--grey-bg);
  width: 100vw; margin: 0 0 0 calc(50% - 50vw); padding: 0.75rem max(1.25rem, calc((100vw - var(--wrap)) / 2)) 4rem;
}
.landing .card { background: #fff; border: 0; padding: 3px 3px 0; }
.landing .card img { aspect-ratio: auto; object-fit: initial; height: auto; }
.landing .card figcaption { text-align: center; padding: 2.75rem 1.5rem 2.25rem; }
.landing .card figcaption h3 { font-size: 1.6rem; font-weight: 300; color: var(--ink); margin: 0 0 1rem; }
.landing .card figcaption a { font-size: 1.15rem; font-weight: 400; padding: 0.7rem 1.1rem; margin-top: 0; }
.page-banner.banner-left ~ .gallery.landing + * { margin-top: 0; }
.cms-page:has(.gallery.landing) { padding-bottom: 0; }

@media (max-width: 60rem) {
  .gallery.landing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .gallery.landing { grid-template-columns: 1fr; }
  .page-banner.banner-left h1 { position: absolute; }
}

/* ----- Phones and tablets: menu behind a button (site.js adds .has-menu-toggle; without it the menu stays a scrolling row) ----- */
.menu-toggle { display: none; }
@media (max-width: 60rem) {
  .has-menu-toggle .header-row { flex-wrap: nowrap; position: relative; min-height: 64px; }
  .has-menu-toggle .brand { margin-right: auto; }
  .has-menu-toggle .search-tile { order: 2; width: 52px; margin-left: 0.5rem; padding: 0; border: 0; background: none; }
  .has-menu-toggle .search-tile span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .has-menu-toggle .search-tile svg { width: 26px; height: 26px; }
  .has-menu-toggle .menu-toggle { order: 3; display: grid; place-items: center; width: 48px; height: 48px; align-self: center; margin-left: 0.25rem; background: none; border: 0; cursor: pointer; color: var(--ink); }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 26px; height: 2px; background: currentColor; position: relative; transition: transform .25s, background-color .25s; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle .bars::before { top: -8px; }
  .menu-toggle .bars::after { top: 8px; }
  .menu-open .menu-toggle .bars { background: transparent; }
  .menu-open .menu-toggle .bars::before { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle .bars::after { transform: translateY(-8px) rotate(-45deg); }
  /* The open menu drops down under the header, full width */
  .has-menu-toggle .main-nav { display: none; order: 4; position: absolute; top: 100%; left: calc(50% - 50vw); width: 100vw; max-height: calc(100vh - 64px); overflow-y: auto; background: #fff; border-top: 1px solid #ddd; box-shadow: 0 12px 24px rgba(0,0,0,.15); }
  .has-menu-toggle .menu-open .main-nav { display: block; }   /* html.has-menu-toggle > body.menu-open */
  .has-menu-toggle .main-nav ul { flex-direction: column; }
  .has-menu-toggle .main-nav a, .has-menu-toggle .main-nav li:first-child a { display: block; padding: 1rem 1.25rem; border-left: 0; border-bottom: 1px solid #eee; font-size: 1rem; line-height: 1.3; white-space: normal; }
  .has-menu-toggle .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--primary, var(--blue)); }
  /* Home tiles (OKNA): smaller blocks on narrow screens */
  .tile { padding: 1.4rem 1.5rem; }
  .tile strong { font-size: 1.35rem; }
}
@media (max-width: 40rem) {
  .has-menu-toggle .brand img { height: 40px; }
  .page-banner h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
}