/* biblesociety.tn, the site of the institution. Second charter (2026-11-06): the colours of the new emblem of The Bible
   House Tunisia (deep navy, royal blue, cyan), Manrope for Latin headings, Source Sans 3 for the text and IBM Plex Sans
   Arabic for Arabic. The signature is the V where the two pages of the emblem meet, at the foot of the dark headers.
   Nothing is shared with the bookshop's stylesheet. society.css is the first charter, kept for the rollback. */

@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/ibm-plex-sans-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/ibm-plex-sans-arabic-500.woff2") format("woff2"); font-weight: 500 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/ibm-plex-sans-arabic-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

/* Until the web fonts arrive, system fonts scaled to the same proportions, so that the text does not move when they do.
   Manrope 800 measured 2.2 % wider than Arial Bold (Arimo) on this site's headings. */
@font-face { font-family: "Source Sans Fallback"; src: local("Arial"), local("Liberation Sans"), local("Arimo"), local("Roboto"), local("Helvetica"); size-adjust: 93.76%; ascent-override: 109.2%; descent-override: 42.7%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"), local("Roboto Bold"), local("Helvetica Bold"); font-weight: 600 800; size-adjust: 102%; ascent-override: 104.5%; descent-override: 29.4%; line-gap-override: 0%; }

:root {
    --navy: #052b54;
    --navy-deep: #031a33;
    --royal: #04579e;
    --ocean: #0775c1;
    --sky: #109dd6;
    --cyan: #28b1e7;
    --ice: #eaf6fc;
    --mist: #f4f8fb;
    --line: #d6e4ef;
    --ink: #0b2440;
    --muted: #4a6178;
    --danger: #a4231c;
    --gradient: linear-gradient(120deg, var(--cyan) 0%, var(--royal) 100%);
    --dark: radial-gradient(60% 85% at 88% 8%, rgba(40, 177, 231, .30) 0, rgba(40, 177, 231, 0) 62%), radial-gradient(45% 70% at 0% 100%, rgba(16, 157, 214, .20) 0, rgba(16, 157, 214, 0) 62%), linear-gradient(160deg, #063666 0%, var(--navy) 46%, var(--navy-deep) 100%);
    --radius: 18px;
    --shadow: 0 1px 2px rgba(5, 43, 84, .05), 0 14px 34px -18px rgba(5, 43, 84, .22);
    --shadow-lift: 0 2px 6px rgba(5, 43, 84, .06), 0 26px 50px -22px rgba(5, 43, 84, .34);
    --gutter: clamp(18px, 4vw, 44px);
    --font: "Source Sans 3", "Source Sans Fallback", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
    --font-head: "Manrope", "Manrope Fallback", var(--font);
}
html[lang="ar"] {
    --font: "IBM Plex Sans Arabic", "Source Sans 3", "Source Sans Fallback", "Segoe UI", system-ui, sans-serif;
    --font-head: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: clamp(18px, .3vw + 16.8px, 20px); line-height: 1.55; }
html[lang="ar"] body { line-height: 1.8; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
h2 { font-size: clamp(32px, 2.4vw + 18px, 52px); }
h3 { font-size: clamp(21px, .7vw + 17px, 25px); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; line-height: 1.35; letter-spacing: 0; }
[id] { scroll-margin-top: 100px; }

.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.narrow.wrap { margin-inline: max(var(--gutter), calc((100% - 1240px) / 2)) auto; width: min(100% - 2 * var(--gutter), 860px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 40; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; }
.skip:focus { top: 8px; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.icon { flex: none; }
.lead { font-size: clamp(21px, .8vw + 16px, 26px); line-height: 1.45; }

/* ---------- Buttons, links, labels ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button--primary, .button--ink { background: var(--royal); color: #fff; box-shadow: 0 14px 26px -14px rgba(4, 87, 158, .85); }
.button--primary:hover, .button--ink:hover { background: var(--ocean); }
.button--light { background: var(--cyan); color: var(--navy-deep); box-shadow: 0 16px 32px -16px rgba(40, 177, 231, .95); }
.button--light:hover { background: #fff; }
.button--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.button--ghost:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); }
.button[disabled] { opacity: .65; cursor: progress; transform: none; }
.textlink { display: inline-flex; align-items: center; gap: 8px; color: var(--royal); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(40, 177, 231, .7); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.textlink:hover { color: var(--navy); text-decoration-color: var(--cyan); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--royal); }
.kicker::before { content: ""; flex: none; width: 28px; height: 3px; border-radius: 3px; background: var(--gradient); }
.kicker--light { color: var(--cyan); }
html[lang="ar"] .kicker { font-size: 16px; letter-spacing: 0; }
.chip { display: inline-grid; flex: none; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--ice); color: var(--royal); transition: background-color .2s, color .2s; }
.chip--small { width: 44px; height: 44px; border-radius: 12px; }

/* ---------- Header ---------- */
.masthead { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(5, 43, 84, .09); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .masthead { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(1.8) blur(16px); backdrop-filter: saturate(1.8) blur(16px); }
}
.masthead__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(14px, 2vw, 28px); min-height: 76px; padding-block: 10px; }
.masthead__logo { flex: none; display: block; }
.masthead__logo img { width: auto; height: clamp(40px, 1vw + 34px, 50px); }
.masthead__nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); margin-inline-start: auto; }
.masthead__nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px clamp(10px, 1.5vw, 24px); }
.masthead__nav a { position: relative; display: block; padding-block: 8px; font-size: 16.5px; font-weight: 600; line-height: 1.2; text-decoration: none; color: var(--ink); transition: color .15s; }
.masthead__nav a:hover { color: var(--royal); }
.masthead__links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--gradient); transform: scaleX(0); transition: transform .2s; }
.masthead__links a:hover::after, .masthead__links a[aria-current="page"]::after { transform: scaleX(1); }
.masthead__languages { gap: 2px !important; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--mist); }
.masthead__languages a { min-width: 40px; padding: 5px 10px !important; border-radius: 999px; font-size: 14px; font-weight: 700; text-align: center; color: var(--muted); }
.masthead__languages a[aria-current="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(5, 43, 84, .16); }
.shoplink { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .15s; }
.shoplink:hover { background: var(--royal); }
.shoplink .icon { color: var(--cyan); }
.masthead__toggle { display: none; order: 3; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.masthead__burger, .masthead__burger::before, .masthead__burger::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); }
.masthead__burger { position: relative; margin-inline: auto; }
.masthead__burger::before, .masthead__burger::after { content: ""; position: absolute; inset-inline-start: 0; }
.masthead__burger::before { top: -6px; }
.masthead__burger::after { top: 6px; }
@media (max-width: 1039.98px) {
    .masthead__toggle { display: block; }
    .shoplink { order: 2; margin-inline-start: auto; }
    .masthead__nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; margin: 0; padding-block: 8px 16px; border-top: 1px solid var(--line); }
    .masthead__toggle[aria-expanded="true"] ~ .masthead__nav { display: flex; }
    .masthead__nav ul { flex-direction: column; align-items: stretch; }
    .masthead__nav a { padding-block: 12px; font-size: 18px; }
    .masthead__links a::after { display: none; }
    .masthead__links a[aria-current="page"] { color: var(--royal); }
    .masthead__languages { flex-direction: row !important; align-self: flex-start; }
}
@media (max-width: 479.98px) {
    .masthead__bar { column-gap: 10px; min-height: 68px; }
    .masthead__logo img { height: 38px; }
    .shoplink { width: 44px; height: 44px; padding: 0; justify-content: center; }
    .shoplink span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .shoplink .arrow { display: none; }
}

/* ---------- The V of the emblem, at the foot of the dark headers ---------- */
.curve { display: block; width: 100%; height: clamp(26px, 5vw, 76px); margin-top: -1px; }
.curve--paper path { fill: #fff; }
.curve--mist path { fill: var(--mist); }

/* ---------- Home: hero and film ---------- */
.hero, .pagehead { position: relative; color: #fff; background: var(--dark); }
.hero { padding-top: clamp(40px, 6vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(30px, 4vw, 56px); }
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: clamp(16px, .4vw + 14px, 19px); font-weight: 600; line-height: 1.35; color: #bfe9fb; }
.hero__eyebrow::before { content: ""; flex: none; width: 28px; height: 3px; border-radius: 3px; background: var(--cyan); }
.hero__sub { color: #8fb6d6; font-weight: 400; }
html:not([lang="ar"]) .hero__sub { flex-basis: 100%; padding-inline-start: 38px; }
.hero h1 { margin-top: 20px; font-size: clamp(46px, 4.4vw + 24px, 94px); line-height: 1; letter-spacing: -.045em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-style: normal; color: var(--cyan); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1 em { padding-bottom: .06em; background: linear-gradient(100deg, #8ae0ff 0%, var(--cyan) 45%, #4b95ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
html[lang="ar"] .hero h1 { font-size: clamp(42px, 3.6vw + 22px, 80px); line-height: 1.3; letter-spacing: 0; }
.hero__text { max-width: 33em; margin-top: 24px; color: #c9dcef; }
.film { position: relative; isolation: isolate; }
.film::before { content: ""; position: absolute; z-index: -1; inset: 10% -4% -6% 6%; border-radius: 40px; background: radial-gradient(closest-side, rgba(40, 177, 231, .55), rgba(40, 177, 231, 0)); filter: blur(28px); }
.film__frame { position: relative; overflow: hidden; border-radius: 22px; background: var(--navy-deep); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 80px -34px rgba(0, 0, 0, .7); }
.film__frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* In the middle of the poster, which shows Madame Christine. A play sign points right in every language. */
.film__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding-block: 12px; padding-inline: 14px 22px; border: 0; border-radius: 999px; background: var(--cyan); color: var(--navy-deep); font-weight: 700; font-size: clamp(16px, .4vw + 14px, 19px); line-height: 1.2; white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 8px rgba(40, 177, 231, .28), 0 18px 40px -12px rgba(0, 0, 0, .6); transition: background-color .15s, box-shadow .15s; }
.film__play:hover { background: #fff; box-shadow: 0 0 0 12px rgba(255, 255, 255, .25), 0 18px 40px -12px rgba(0, 0, 0, .6); }
@media (max-width: 479.98px) {
    /* The logo of the poster needs the room: the button keeps its spoken name. */
    .film__play { padding: 14px; }
    .film__play span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.film__play[hidden] { display: none; }
.film figcaption { margin-top: 26px; font-size: clamp(16px, .3vw + 15px, 18px); line-height: 1.5; color: #a9c4dd; }
.film figcaption strong { color: #fff; font-weight: 600; }
@media (max-width: 859.98px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- News, under the hero ---------- */
.news { padding-top: clamp(14px, 2.4vw, 30px); }
.news__card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px clamp(18px, 3vw, 40px); padding: clamp(22px, 2.8vw, 34px); border: 1px solid #cfe5f3; border-radius: 22px; background: linear-gradient(115deg, var(--ice) 0%, #fff 70%); box-shadow: var(--shadow); }
.news__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--gradient); color: #fff; box-shadow: 0 14px 28px -14px rgba(4, 87, 158, .8); }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; color: var(--muted); }
.news__label { padding: 4px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .news__label { font-size: 14px; letter-spacing: 0; }
.news h2 { margin-top: 10px; font-size: clamp(22px, 1.1vw + 17px, 31px); }
.news__body > p:not(.news__meta) { max-width: 46em; margin-top: 8px; color: var(--muted); }
@media (max-width: 859.98px) {
    .news__card { grid-template-columns: auto minmax(0, 1fr); }
    .news__card .button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 479.98px) {
    .news__card { grid-template-columns: minmax(0, 1fr); }
    .news__icon { width: 52px; height: 52px; border-radius: 15px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 7vw, 112px); }
.section--mist { background: var(--mist); }
.section--ice { background: var(--ice); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; margin-bottom: clamp(28px, 4vw, 52px); }
.section__head h2 { max-width: 17em; }
.section__intro { max-width: 30em; color: var(--muted); }

/* ---------- Mission ---------- */
.mission__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.mission__head > p:not(.kicker) { margin-top: 14px; color: var(--muted); }
.mission__mark { width: min(100%, 240px); margin-block: clamp(26px, 3vw, 44px) 24px; filter: drop-shadow(0 22px 34px rgba(16, 157, 214, .32)); }
.mission__list { counter-reset: mission; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.mission__list li { counter-increment: mission; padding: clamp(24px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.mission__list li::before { content: counter(mission, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 32px; margin-bottom: 18px; padding-inline: 12px; border-radius: 999px; background: var(--ice); color: var(--royal); font-family: var(--font-head); font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.mission__list p { margin-top: 10px; color: var(--muted); font-size: 17.5px; line-height: 1.55; }
@media (max-width: 859.98px) {
    .mission__grid { grid-template-columns: minmax(0, 1fr); }
    .mission__mark { display: none; }
}
@media (max-width: 599.98px) {
    .mission__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Activities and services, home ---------- */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.card { position: relative; grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 2.4vw, 32px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:nth-child(n+4) { grid-column: span 3; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
html[dir="rtl"] .card::before { transform-origin: right; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card:hover .chip, .card:focus-within .chip { background: var(--gradient); color: #fff; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:focus-visible { outline: none; }
.card h3 a:focus-visible::after { outline: 3px solid var(--sky); outline-offset: -3px; }
.card p { color: var(--muted); font-size: 17px; line-height: 1.5; }
.card__go { margin-top: auto; color: var(--royal); }
@media (max-width: 1039.98px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card, .card:nth-child(n+4) { grid-column: auto; }
    .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 599.98px) {
    .cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Projects ---------- */
.projects__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(14px, 1.6vw, 22px); }
.project { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: clamp(300px, 27vw, 380px); padding: clamp(26px, 3.2vw, 46px); overflow: hidden; isolation: isolate; border-radius: 24px; }
.project h3 { font-size: clamp(25px, 1.3vw + 18px, 36px); font-weight: 800; letter-spacing: -.03em; }
.project__text { max-width: 32em; font-size: clamp(17px, .3vw + 16px, 19.5px); }
.project__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: auto; border-radius: 17px; }
.project--feature { color: #fff; background: radial-gradient(80% 100% at 100% 0%, rgba(40, 177, 231, .38) 0, rgba(40, 177, 231, 0) 62%), linear-gradient(150deg, var(--royal) 0%, var(--navy) 55%, var(--navy-deep) 100%); box-shadow: 0 34px 64px -34px rgba(5, 43, 84, .8); }
.project--feature::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -34px; bottom: -46px; width: clamp(190px, 22vw, 290px); aspect-ratio: 441 / 385; background: url("brand/emblem.webp") center / contain no-repeat; opacity: .17; }
.project--feature .project__icon { border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: var(--cyan); }
.project--feature .project__text { color: #cfe3f5; }
.project--soft { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.project--soft .project__icon { background: var(--ice); color: var(--royal); }
.project--soft .project__text { color: var(--muted); }
.tag { display: inline-flex; padding: 6px 13px; border-radius: 999px; background: rgba(40, 177, 231, .18); color: #aee7ff; font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.tag--study { background: #fff1cf; color: #7a5200; }
@media (max-width: 859.98px) {
    .projects__grid { grid-template-columns: minmax(0, 1fr); }
    .project { min-height: 0; }
    .project__icon { margin-bottom: 10px; }
}

/* ---------- Partnerships ---------- */
.partners__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.partners__intro { max-width: 30em; margin-block: 18px 30px; color: var(--muted); }
.partners__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.partners__list li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(20px, 2vw, 28px); border: 1px solid #cfe5f3; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.partners__list h3 { font-size: clamp(19px, .5vw + 16px, 22px); }
.partners__list p { color: var(--muted); font-size: 17px; line-height: 1.5; }
@media (max-width: 859.98px) {
    .partners__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 519.98px) {
    .partners__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- The bookshop ---------- */
.shopband { position: relative; color: #fff; background: radial-gradient(60% 90% at 100% 0%, rgba(40, 177, 231, .28) 0, rgba(40, 177, 231, 0) 62%), linear-gradient(120deg, var(--royal) 0%, var(--navy) 62%, var(--navy-deep) 100%); }
.shopband__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(46px, 6vw, 92px); }
.shopband__photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 72%; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 34px 60px -30px rgba(0, 0, 0, .65); }
.shopband__name { font-weight: 700; color: var(--cyan); }
html[dir="rtl"] .shopband__name { text-align: end; }
.shopband h2 { margin-top: 6px; }
.shopband__copy > p:not(.shopband__name):not(.shopband__pay) { max-width: 30em; margin-block: 16px 18px; color: #d4e5f5; }
.shopband__pay { display: flex; align-items: center; gap: 10px; max-width: 30em; margin-bottom: 30px; font-size: 16.5px; font-weight: 600; line-height: 1.35; color: #bfe9fb; }
.shopband__pay .icon { color: var(--cyan); }
@media (max-width: 859.98px) {
    .shopband__grid { grid-template-columns: minmax(0, 1fr); }
    .shopband__photo { max-width: 520px; }
}

/* ---------- Visit and coordinates ---------- */
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.visit__card { display: grid; justify-items: start; gap: 12px; padding: clamp(24px, 3vw, 42px); border: 1px solid var(--line); border-radius: 24px; background: var(--mist); }
.visit__hours { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.visit__hours .icon { color: var(--royal); }
.visit__card .button { margin-top: 12px; }
.coordinates { display: grid; gap: 18px; }
.coordinates > div { position: relative; min-height: 42px; padding-inline-start: 56px; }
.coordinates dt { font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; color: var(--royal); }
.coordinates dt .chip { position: absolute; inset-inline-start: 0; top: 0; width: 42px; height: 42px; border-radius: 12px; }
.coordinates dd { margin-top: 2px; line-height: 1.45; }
html[dir="rtl"] .coordinates dd { text-align: right; }
.coordinates dd a { text-underline-offset: 4px; }
.coordinates__social { display: flex; flex-wrap: wrap; gap: 4px 16px; }
@media (max-width: 859.98px) {
    .visit__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Inner pages ---------- */
.pagehead { padding-top: clamp(40px, 5vw, 84px); }
.pagehead .wrap { padding-bottom: clamp(20px, 3vw, 40px); }
.pagehead h1 { max-width: 15em; font-size: clamp(38px, 3.6vw + 22px, 74px); line-height: 1.04; letter-spacing: -.04em; }
html[lang="ar"] .pagehead h1 { line-height: 1.3; letter-spacing: 0; }
.pagehead p:not(.kicker) { max-width: 34em; margin-top: 16px; font-size: clamp(19px, .6vw + 16px, 24px); line-height: 1.4; color: #c4dcf0; }
.story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(30px, 4vw, 64px) clamp(56px, 7vw, 104px); }
.story__text > * + * { margin-top: 18px; }
.story__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lift); }
.pair__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(22px, 3vw, 38px); }
.pair__item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(24px, 3vw, 42px); border-radius: 22px; }
.pair__item::before { content: ""; width: 48px; height: 4px; margin-bottom: 6px; border-radius: 4px; background: var(--gradient); }
.pair__item--house { border: 1px solid #cfe5f3; background: linear-gradient(160deg, var(--ice), #fff); }
.pair__item--shop { border: 1px solid var(--line); background: var(--mist); }
.pair__item p { color: var(--muted); }
.pair__item .textlink { margin-top: auto; padding-top: 6px; }
.servicelist { display: grid; gap: 14px; margin-top: clamp(28px, 4vw, 54px); }
.servicelist li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px clamp(26px, 5vw, 76px); align-items: start; padding: clamp(22px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.servicelist li:target { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(40, 177, 231, .25), var(--shadow); }
.servicelist__head { display: flex; align-items: center; gap: 16px; }
.servicelist h2 { font-size: clamp(22px, 1vw + 17px, 30px); line-height: 1.15; }
.servicelist p { color: var(--muted); }
.closing { padding-block: clamp(30px, 4vw, 56px) clamp(10px, 2vw, 24px); }
.closing .button { margin-top: 24px; }
@media (max-width: 859.98px) {
    .story, .servicelist li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599.98px) {
    .pair__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: start; padding-block: clamp(26px, 3.4vw, 52px) clamp(56px, 7vw, 96px); }
.contact h2 { margin-bottom: clamp(18px, 2vw, 28px); font-size: clamp(27px, 1.4vw + 19px, 38px); }
.form { position: relative; padding: clamp(22px, 3vw, 42px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-lift); }
.form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form__field { margin-bottom: 18px; }
.form label { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.form input:not([type="hidden"]), .form textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid #a9c1d4; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
html[dir="rtl"] .form input[dir="ltr"] { text-align: end; }
.form textarea { resize: vertical; min-height: 128px; }
.form input:focus, .form textarea:focus { border-color: var(--royal); outline: 2px solid transparent; box-shadow: 0 0 0 4px rgba(40, 177, 231, .3); }
.form [aria-invalid="true"] { border-color: var(--danger); }
.form__hint { margin-top: 4px; font-size: 15px; color: var(--muted); }
.form__error { margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--danger); }
.form__status { margin-top: 18px; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.form__status--ok { background: var(--ice); border-inline-start: 5px solid var(--cyan); }
.form__status--error { background: #fcecea; border-inline-start: 5px solid var(--danger); color: var(--danger); }
[hidden] { display: none !important; }
.map { display: block; width: 100%; height: clamp(300px, 42vw, 480px); border: 0; }
@media (max-width: 859.98px) {
    .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479.98px) {
    .form__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.colophon { color: #c9dcef; font-size: 17px; background: radial-gradient(50% 100% at 100% 0%, rgba(40, 177, 231, .14) 0, rgba(40, 177, 231, 0) 62%), var(--navy-deep); }
.colophon__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 60px); padding-block: clamp(44px, 5vw, 72px) clamp(28px, 3vw, 44px); }
.colophon__house img { width: 220px; }
.colophon__tagline { margin-top: 22px; font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
html[lang="ar"] .colophon__tagline { font-weight: 700; letter-spacing: 0; }
.colophon__house p:not(.colophon__tagline) { max-width: 28em; margin-top: 10px; line-height: 1.5; }
.colophon nav li + li { margin-top: 10px; }
.colophon a { color: #fff; text-underline-offset: 4px; }
.colophon nav a { text-decoration: none; }
.colophon nav a:hover { text-decoration: underline; }
.colophon__shop { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan) !important; font-weight: 700; }
.colophon .coordinates dt { color: var(--cyan); }
.colophon .chip { background: rgba(255, 255, 255, .08); color: var(--cyan); }
.colophon__end { padding-block: 18px 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; color: #9fb7cf; }
@media (max-width: 859.98px) {
    .colophon__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .colophon__house { grid-column: 1 / -1; }
}
@media (max-width: 519.98px) {
    .colophon__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (forced-colors: active) {
    .hero h1 em { background: none; color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .card:hover, .card:focus-within, .button:hover { transform: none; }
}
@media print {
    .masthead, .shoplink, .map, .film, .curve { display: none; }
    .hero, .pagehead, .shopband, .colophon, .project--feature { background: none; color: #000; }
}
