/*
  The public website's look, drawn from the school's brand sheet:

  - Three colours: turquoise, dark yellow and brown, on warm paper.
  - The mark (an open notebook) sits beside the school's name; a school with
    its own drawn logo puts it in public/brand/logo.svg instead.
  - Headings are heavy and geometric. Shapes are plain: rounded bars and circles.

  House rules this sheet keeps:
  - The menu sits on one row on a computer; on a phone it folds behind a button.
  - Calls to action live in the top bar, which shows icons only on a phone.
  - The hero fits the first screen. Text never sits on a picture or a pattern.
  - Cards: four to a row on computers and tablets, two on phones.
  - Pictures have plain rounded corners. Every button is a pill.
  - Nothing slides in slowly, and nothing waits for a script to show.

  Every colour, size and font comes from the list below, so the whole site
  can be restyled from this one block.
*/
:root {
    --teal: #009d94; /* the brand turquoise: large surfaces and shapes */
    --teal-deep: #007a73; /* the same hue, darker: links and small text stay readable */
    --teal-dark: #00544f;
    --yellow: #f6be00;
    --brown: #754c29;

    --tint: var(--teal-deep);
    --page: #fffdf8;
    --soft: #f8f1e4;
    --mint: #e4f4f2;
    --card: #ffffff;
    --ink: #3a2616;
    --ink-soft: #6b5443;
    --line: rgb(117 76 41 / 0.18);
    --fill: rgb(117 76 41 / 0.08);
    --bad: #b3261e;
    --good: #1f7a3a;
    --on-yellow: #3a2616;
    --glass: rgb(255 253 248 / 0.82);
    --shadow: 0 1px 2px rgb(58 38 22 / 0.05), 0 10px 30px rgb(58 38 22 / 0.08);
    --radius: 1.25rem;
    --width: 76rem;
    --font: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
    --display: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --tint: #55d3c9;
        --page: #062422;
        --soft: #0b302d;
        --mint: #0f3a37;
        --card: #123f3b;
        --ink: #f6f0e4;
        --ink-soft: #bcd0cc;
        --line: rgb(255 255 255 / 0.16);
        --fill: rgb(255 255 255 / 0.08);
        --bad: #ff8a80;
        --good: #6fdc8c;
        --glass: rgb(6 36 34 / 0.82);
        --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.75 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, .menu-open:focus-visible + .menu-button { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 0.4rem; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.35; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
time, .muted { color: var(--ink-soft); font-size: 0.9rem; }
small { font-weight: 400; color: var(--ink-soft); }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.block { padding-top: 4rem; padding-bottom: 1.75rem; }
.tint { background: var(--soft); padding-bottom: 4rem; }
.row { display: flex; align-items: baseline; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* A short two-colour bar under every heading. */
.title { text-align: center; font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 2.25rem; color: var(--ink); }
.title::after, .block > h1::after {
    content: ''; display: block; width: 3.2rem; height: 0.4rem; margin: 0.9rem auto 0; border-radius: 1rem;
    background: linear-gradient(90deg, var(--yellow) 0 40%, var(--teal) 40%);
}
.block > h1::after { margin-inline: 0; }

/* ---- Top bar: contact on one side, what to do on the other */
.strip { background: var(--teal-deep); font-size: 0.85rem; color: #fff; }
.strip-in { display: flex; align-items: center; gap: 0.4rem 1.25rem; min-height: 2.75rem; }
.strip .gap { flex: 1; }
.strip a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.25rem; color: #fff; font-weight: 500; white-space: nowrap; }
.strip a:hover { text-decoration: underline; }
.strip .cta { background: var(--yellow); color: var(--on-yellow); padding: 0 1rem; border-radius: 999px; font-weight: 700; }
.strip .cta.quiet { background: rgb(255 255 255 / 0.16); color: #fff; }
.strip .cta:hover { text-decoration: none; filter: brightness(1.08); }

/* ---- The bar: full width, frosted, the logo and one row of menu */
.bar { position: sticky; top: 0; z-index: 8; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.brand img { display: block; height: 3.75rem; width: auto; }
.brand img.mark { height: 3rem; border-radius: 0.75rem; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.25; max-width: 14rem; }
.foot .brand { color: #fff; }
.foot .brand img.mark { height: 3.5rem; }
.brand .on-dark { display: none; }
.menu-open { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-button { display: none; }
.bar nav { flex: 1; display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 0.1rem; font-size: 0.98rem; font-weight: 600; white-space: nowrap; }
.bar nav a, .bar nav summary { color: var(--ink); padding: 0.5rem 0.85rem; border-radius: 999px; cursor: pointer; transition: color 0.15s; }
.bar nav a:hover, .bar nav summary:hover { text-decoration: none; color: var(--tint); }
.bar nav a[aria-current='page'], .bar nav details[data-current] > summary { color: var(--tint); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.bar nav .lang { margin-inline-start: 0.5rem; border: 1.5px solid var(--line); padding-block: 0.3rem; }
.more { position: relative; }
.more summary { list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ''; width: 0.45rem; height: 0.45rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.more > div { position: absolute; inset-block-start: calc(100% + 0.6rem); inset-inline-start: 50%; transform: translateX(-50%); min-width: 13rem; display: grid; padding: 0.5rem; background: var(--card); border-radius: 1rem; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
[dir='rtl'] .more > div { transform: translateX(50%); }
.more > div a { border-radius: 0.7rem; }
.more > div a:hover { background: var(--mint); }
.more > div a[aria-current='page'] { box-shadow: none; border-radius: 0.7rem; background: var(--mint); }

/* ---- Hero: the whole of it fits the first screen. Plain turquoise behind the words. */
.hero { background: var(--teal); color: #fff; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: 'name photo' 'lead photo' 'actions photo'; grid-template-rows: 1fr auto 1fr; align-items: center; column-gap: 3rem; min-height: min(calc(100svh - 7.5rem), 34rem); padding-top: 2.5rem; padding-bottom: 2.5rem; }
.hero.plain .hero-in { grid-template-columns: 1fr; grid-template-areas: 'name' 'lead' 'actions'; text-align: center; justify-items: center; }
.hero h1 { grid-area: name; align-self: end; color: #fff; font-size: clamp(2rem, 4.8vw, 3.6rem); font-weight: 900; line-height: 1.3; margin: 0; }
.lead { grid-area: lead; font-size: clamp(1.15rem, 2.1vw, 1.4rem); font-weight: 600; max-width: 34rem; margin: 0.75rem 0 1.5rem; color: #fff; line-height: 1.7; }
.actions { grid-area: actions; align-self: start; display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 0; }
.hero.plain .actions { justify-content: center; }
.hero-photo { grid-area: photo; display: block; width: 100%; height: auto; max-height: min(26rem, calc(100svh - 13rem)); aspect-ratio: 16 / 10; object-fit: cover; border-radius: 1.5rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; background: var(--yellow); color: var(--on-yellow); border: 0; border-radius: 999px; padding: 0.7rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer; transition: filter 0.15s, background-color 0.15s; }
.button:hover { text-decoration: none; filter: brightness(1.07); }
.button:active { filter: brightness(0.96); }
.button.ghost { background: transparent; color: var(--tint); box-shadow: inset 0 0 0 2px currentColor; }
.button.ghost:hover { background: var(--mint); filter: none; }
.hero .button.ghost, .band.dark .button.ghost { color: #fff; }
.hero .button.ghost:hover, .band.dark .button.ghost:hover { background: rgb(255 255 255 / 0.18); }
:lang(en) .button, :lang(en) .bar nav a, :lang(en) .bar nav summary, :lang(en) .strip a span { text-transform: capitalize; }

.prose { font-size: 1.08rem; }
.intro { text-align: center; max-width: 44rem; margin: 0 auto; color: var(--ink-soft); font-size: 1.2rem; line-height: 1.9; }

/* ---- Rows of cards: four across on computers and tablets, two on phones */
.panels, .reasons, .grid, .facts-row, .shots { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Stage cards: a picture, the stage's name on a turquoise foot */
.panel { position: relative; isolation: isolate; min-height: 18rem; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: start; gap: 0.2rem; padding: 1.25rem; color: #fff; border-radius: var(--radius); overflow: hidden; background: var(--teal) center / cover no-repeat; box-shadow: var(--shadow); }
.panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgb(0 84 79 / 0) 35%, rgb(0 84 79 / 0.94) 80%); }
.panel h3 { font-size: 1.3rem; font-weight: 800; }
.panel p { margin: 0; font-size: 0.95rem; font-weight: 600; color: #fff; }

/* At a glance: numbers on turquoise */
.glance { background: var(--teal); color: #fff; padding-bottom: 4rem; }
.glance .title { color: #fff; }
.glance .title::after { background: linear-gradient(90deg, var(--yellow) 0 40%, #fff 40%); }
.facts-row { text-align: center; }
.facts-row > div { display: grid; place-content: center; padding: 1.25rem 0.75rem; border-radius: var(--radius); background: rgb(255 255 255 / 0.12); transition: background-color 0.15s; }
.facts-row > div:hover { background: rgb(255 255 255 / 0.24); }
.facts-row strong { display: block; font-family: var(--display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; color: var(--yellow); }
.facts-row span { color: #fff; font-size: 1.1rem; font-weight: 700; }

/* News and albums */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: block; box-shadow: var(--shadow); border-bottom: 4px solid var(--teal); transition: border-color 0.15s, box-shadow 0.15s; }
.card:hover { text-decoration: none; border-color: var(--yellow); box-shadow: 0 2px 4px rgb(58 38 22 / 0.06), 0 16px 36px rgb(58 38 22 / 0.14); }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card h3 { margin-top: 0.25rem; font-size: 1.05rem; }
.card time { color: var(--tint); font-weight: 700; }
.pad { padding: 1rem 1.15rem 1.2rem; }
.photo { display: block; width: 100%; max-height: 26rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-top: 1.25rem; }
.pager { display: flex; gap: 0.75rem; justify-content: center; margin-top: 2rem; }

.year { margin: 2.5rem 0 1rem; color: var(--brown); font-size: 1.3rem; display: flex; align-items: center; gap: 0.6rem; }
.year::before { content: ''; width: 0.75rem; height: 0.75rem; background: var(--yellow); border-radius: 50%; }
.photos { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin-top: 1.5rem; }
.photos a { display: block; background: var(--soft); border-radius: 1rem; overflow: hidden; color: var(--ink-soft); font-size: 0.85rem; }
.photos a:hover { text-decoration: none; }
.photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photos span { display: block; padding: 0.45rem 0.7rem; }
.shots a { display: block; overflow: hidden; border-radius: var(--radius); }
.shots img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.3s; }
.shots a:hover img { transform: scale(1.04); }

/* A grouped list: rows on one card, hairlines between them. */
.facts { list-style: none; padding: 0; margin: 0 0 2rem; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-inline-start: 5px solid var(--teal); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.3rem; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--ink-soft); font-weight: 600; }

/* ---- The school on the map */
.map { margin: 0 0 2rem; }
.map-view { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--mint); box-shadow: var(--shadow); }
.map-tiles { position: absolute; left: calc(50% - var(--x)); top: calc(50% - var(--y)); display: grid; grid-template-columns: repeat(var(--columns), 256px); width: calc(var(--columns) * 256px); direction: ltr; }
.map-tiles img { display: block; width: 256px; height: 256px; max-width: none; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--bad); filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.35)); }
.map figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.map figcaption small { margin-inline-start: 0.5rem; font-size: 0.75rem; }

/* ---- Forms */
.form { background: var(--soft); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 1rem; margin-top: 1.75rem; border-top: 5px solid var(--yellow); }
.form h2 { font-size: 1.5rem; }
.form label { display: grid; gap: 0.4rem; font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 0.8rem; padding: 0.7rem 0.9rem; width: 100%; min-height: 46px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 4px solid color-mix(in srgb, var(--teal) 28%, transparent); border-color: var(--teal); }
.form .button { justify-self: start; }
.two { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.trap { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.notice { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); border-radius: 1rem; padding: 0.9rem 1.1rem; margin: 1.25rem 0 0; font-weight: 600; }
.notice.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }

/* ---- Footer: dark turquoise, the white logo, the map */
.foot { margin-top: 4.5rem; background: var(--teal-dark); color: rgb(255 255 255 / 0.92); font-size: 0.92rem; }
.foot a { color: #fff; }
.foot a:hover { color: var(--yellow); }
.foot-in { display: grid; gap: 2rem; grid-template-columns: 1.1fr 1fr 1fr 1.3fr; padding-top: 2.75rem; padding-bottom: 2rem; }
.foot h2 { font-size: 1rem; color: var(--yellow); margin-bottom: 0.6rem; font-weight: 700; }
.foot p { margin: 0.25rem 0; }
.foot .brand img { height: 5rem; }
.foot-brand p { margin-top: 0.75rem; font-weight: 600; }
.foot .map { margin: 0; }
.foot .map-view { box-shadow: none; }
.foot .map figcaption { display: none; }
.social { display: flex; gap: 1rem; flex-wrap: wrap; }
.legal { border-top: 1px solid rgb(255 255 255 / 0.18); text-align: center; padding: 1rem 1.25rem; font-size: 0.82rem; margin: 0; }

/* ---- WhatsApp: on every page, small enough not to sit on the content */
.whatsapp { position: fixed; inset-block-end: 1.1rem; inset-inline-end: 1.1rem; z-index: 6; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); }
.whatsapp:hover { filter: brightness(1.06); }

/* ---- What sets the school apart: each number sits in a circle */
.reason { background: var(--card); border-radius: var(--radius); padding: 1.4rem 1.25rem 1.25rem; box-shadow: var(--shadow); }
.reason .num { position: relative; z-index: 0; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: 0.3rem 0.3rem 1rem; color: var(--on-yellow); font-family: var(--display); font-weight: 800; }
.reason .num::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--yellow); border-radius: 50%; }
.reason:nth-child(even) .num { color: #fff; }
.reason:nth-child(even) .num::before { background: var(--teal-deep); }
.reason h3 { margin-bottom: 0.35rem; color: var(--ink); }
.reason p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---- The principal's word */
.quote { margin: 0; background: var(--card); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); border-inline-start: 6px solid var(--yellow); }
.quote blockquote { margin: 0; font-size: clamp(1.05rem, 2.1vw, 1.25rem); line-height: 1.95; }
.quote blockquote::before { content: '\201C'; display: block; font-family: Georgia, serif; font-size: 4.5rem; line-height: 0.6; color: var(--teal); margin-bottom: 0.4rem; }
[dir='rtl'] .quote blockquote::before { content: '\201D'; }
.quote figcaption { margin-top: 1.25rem; color: var(--brown); font-weight: 700; }

/* ---- A wide band with one thing to do: plain brand colour, nothing behind the words */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; background: var(--mint); border-radius: calc(var(--radius) * 1.4); padding: clamp(1.5rem, 4vw, 2.5rem); }
.band > div { flex: 1 1 22rem; }
.band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.4rem; }
.band p { margin: 0; color: var(--ink-soft); }
.band.dark { background: var(--brown); color: #fff; }
.band.dark p { color: rgb(255 255 255 / 0.92); }


/* ---- Stories: round pictures in a row under the hero */
.stories { padding-top: 1.5rem; }
.stories-plain { display: flex; justify-content: center; gap: 1rem; overflow-x: auto; padding: 0.5rem 0.25rem; scrollbar-width: none; }
.stories-plain a { flex: 0 0 auto; display: grid; justify-items: center; gap: 0.4rem; width: 5.25rem; color: var(--ink-soft); font-size: 0.75rem; text-align: center; }
.stories-plain img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--teal); padding: 2px; background: var(--page); }
.stories-plain span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isle .text-xs { font-size: 0.75rem; }

/* ---- The app on a phone: screenshots side by side, in a plain frame */
.phones { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 56rem; margin: 0 auto; }
.phone { margin: 0; text-align: center; }
.phone img { display: block; width: 100%; height: auto; border-radius: 1.75rem; border: 6px solid var(--ink); box-shadow: var(--shadow); background: var(--soft); }
.phone figcaption { margin-top: 0.75rem; font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }

/* Content shows at once, with one quick fade. Nothing slides in. */
@keyframes show { from { opacity: 0.35; } to { opacity: 1; } }
main { animation: show 0.2s ease-out; }

/* ---- Below a wide laptop the menu folds behind a button */
@media (max-width: 64rem) {
    .bar-in { flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; min-height: 4.25rem; }
    .menu-button { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; color: var(--ink); cursor: pointer; }
    .menu-open:checked + .menu-button { background: var(--mint); color: var(--tint); }
    .bar nav { display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0; white-space: normal; padding: 0.25rem 0 1rem; max-height: calc(100svh - 8rem); overflow-y: auto; }
    .menu-open:checked ~ nav { display: flex; }
    .bar:has(.menu-open:checked) { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .bar nav a, .bar nav summary { padding: 0.8rem 0.5rem; border-radius: 0; border-top: 1px solid var(--line); }
    .bar nav a[aria-current='page'], .bar nav details[data-current] > summary { box-shadow: inset 4px 0 0 var(--yellow); }
    [dir='rtl'] .bar nav a[aria-current='page'], [dir='rtl'] .bar nav details[data-current] > summary { box-shadow: inset -4px 0 0 var(--yellow); }
    .bar nav .lang { margin: 0; border: 0; border-top: 1px solid var(--line); }
    .more summary { display: flex; justify-content: space-between; }
    .more > div, [dir='rtl'] .more > div { position: static; transform: none; min-width: 0; padding: 0 1rem; box-shadow: none; background: none; }
}

/* ---- Phones */
@media (max-width: 47.99rem) {
    body { font-size: 16px; }
    .block { padding-top: 3rem; }
    .tint, .glance { padding-bottom: 3rem; }
    .title, .block > h1 { text-align: center; }
    .block > h1::after { margin-inline: auto; }

    /* The top bar: icons only. */
    .strip-in { gap: 0.5rem; min-height: 3rem; }
    .strip a > span, .strip a > bdi { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .strip a { width: 2.6rem; height: 2.6rem; justify-content: center; border-radius: 50%; background: rgb(255 255 255 / 0.14); }
    .strip .cta { padding: 0; }
    .strip svg { width: 20px; height: 20px; }
    .brand img { height: 3.1rem; }
    .brand img.mark { height: 2.6rem; }
    .brand-name { font-size: 1rem; max-width: 11rem; }

    /* The hero: centred; the picture straight after the name, and not oversized. */
    .hero-in, .hero.plain .hero-in { grid-template-columns: 1fr; grid-template-areas: 'name' 'photo' 'lead' 'actions'; grid-template-rows: none; text-align: center; justify-items: center; row-gap: 0.9rem; min-height: 0; padding-top: 1.5rem; padding-bottom: 1.75rem; }
    .hero h1 { align-self: auto; font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
    .hero-photo { aspect-ratio: 16 / 9; max-height: 30svh; border-radius: 1.1rem; }
    .lead { margin: 0; font-size: 1.08rem; }
    .actions { justify-content: center; }
    .button { min-height: 44px; padding: 0.6rem 1.25rem; }

    /* Two cards to a row. */
    .panels, .reasons, .grid, .facts-row, .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .panel { min-height: 11rem; padding: 0.9rem; }
    .panel h3 { font-size: 1.05rem; }
    .panel p { font-size: 0.82rem; }
    .reason { padding: 1rem 0.9rem; }
    .reason .num { width: 2.2rem; height: 2.2rem; margin-bottom: 0.7rem; font-size: 0.9rem; }
    .reason h3 { font-size: 1rem; }
    .reason p { font-size: 0.86rem; line-height: 1.6; }
    .facts-row strong { font-size: 1.9rem; }
    .facts-row span { font-size: 0.95rem; }
    .card h3 { font-size: 0.95rem; }
    .pad { padding: 0.75rem 0.85rem 0.9rem; }
    .intro { font-size: 1.05rem; }

    /* Latest posts: a row to swipe, fading at the edges so it is clear there is more. */
    .grid.swipe { display: flex; gap: 0.85rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -1.25rem; padding: 0.25rem 1.25rem 1rem; -webkit-mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); }
    .grid.swipe::-webkit-scrollbar { display: none; }
    .grid.swipe > * { flex: 0 0 74%; scroll-snap-align: center; }

    .phones { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -1.25rem; padding: 0.25rem 1.25rem 1rem; -webkit-mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); }
    .phones::-webkit-scrollbar { display: none; }
    .phone { flex: 0 0 62%; scroll-snap-align: center; }
    .stories-plain { justify-content: flex-start; }

    /* Footer: the short columns side by side. */
    .foot-in { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
    .foot-brand, .foot-map { grid-column: 1 / -1; }
    .foot-brand { text-align: center; }
    .foot-brand .brand { justify-content: center; }
    .legal { padding-bottom: 5rem; }
    .whatsapp { width: 3rem; height: 3rem; }
    .facts li { flex-direction: column; gap: 0.15rem; }
}

@media (min-width: 48rem) and (max-width: 64rem) {
    .foot-in { grid-template-columns: 1fr 1fr 1fr; }
    .foot-map { grid-column: 1 / -1; max-width: 32rem; }
}

@media (prefers-color-scheme: dark) {
    .bar .brand .on-light { display: none; }
    .bar .brand .on-dark { display: block; }
    .quote figcaption, .year { color: var(--yellow); }
    .button.ghost:hover { background: var(--fill); }
}

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

@media (prefers-reduced-transparency: reduce) {
    .bar { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
    :root { --teal: #007a73; --line: rgb(58 38 22 / 0.5); --ink-soft: #4a3626; --glass: var(--page); }
}

@media print {
    .strip, .bar nav, .menu-button, .whatsapp, .map, .ribbon { display: none; }
    .bar { position: static; }
    .hero, .glance, .foot { background: none; color: #000; }
    .hero h1, .lead, .glance .title, .facts-row span { color: #000; }
}
