/* Bank Alkair — public site base and shared components. Every value comes from tokens.css (--s-*). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; } }
body.site {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--s-font); font-size: var(--s-text-base); font-weight: var(--s-weight-body);
  line-height: var(--s-line); color: var(--s-text); background: var(--s-page-bg);
  position: relative; overflow-x: hidden;
}
body.site.has-pattern::before {
  content: ""; position: fixed; inset: 0; z-index: var(--s-z-pattern); pointer-events: none;
  background-color: var(--s-primary); opacity: var(--s-pattern-opacity);
  -webkit-mask-image: var(--s-pattern-url); mask-image: var(--s-pattern-url);
  -webkit-mask-size: var(--s-pattern-size); mask-size: var(--s-pattern-size);
}
/* Zero specificity: lifts page blocks above the pattern without overriding fixed/absolute/sticky components. */
:where(body.site > *) { position: relative; z-index: var(--s-z-content); }
a { color: var(--s-primary-text); text-decoration: none; transition: color var(--s-fast) var(--s-ease); }
a:hover { color: var(--s-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: var(--s-line-heading); font-weight: var(--s-weight-title); color: var(--s-text); }
p { margin: 0 0 var(--s-space-4); }
:focus-visible { outline: var(--s-focus-w) solid var(--s-focus); outline-offset: var(--s-border-w); border-radius: var(--s-radius-sm); }
.icon { width: var(--s-icon); height: var(--s-icon); flex: none; fill: currentColor; vertical-align: var(--s-icon-align); }
.num { font-family: var(--s-font-num); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: var(--s-space-4); top: calc(-1 * var(--s-space-10)); background: var(--s-primary); color: var(--s-on-primary); padding: var(--s-space-2) var(--s-space-4); border-radius: var(--s-radius-sm); z-index: var(--s-z-toast); }
.skip-link:focus { top: var(--s-space-4); color: var(--s-on-primary); }
[hidden] { display: none !important; }
.muted { color: var(--s-muted); }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--s-container); margin-inline: auto; padding-inline: var(--s-space-6); }
.container.is-narrow { max-width: var(--s-container-narrow); }
@media (max-width: 760px) { .container { padding-inline: var(--s-space-4); } }
.site-main { flex: 1; }
.section { padding-block: var(--s-space-9); }
.section.is-alt { background: var(--s-card-bg); }
@media (max-width: 760px) { .section { padding-block: var(--s-space-7); } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-space-4); margin-bottom: var(--s-space-7); flex-wrap: wrap; }
.section-title { font-size: var(--s-text-section); font-weight: var(--s-weight-strong); position: relative; padding-bottom: var(--s-space-3); }
.section-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: var(--s-space-9); height: var(--s-space-1); border-radius: var(--s-radius-pill); background: linear-gradient(90deg, var(--s-accent), var(--s-primary)); }
.section-desc { color: var(--s-muted); max-width: var(--s-container-narrow); margin: var(--s-space-2) 0 0; }
/*
  Card grids. Each one is drawn on twice the columns it shows and every card spans two of them, so a
  last line that does not fill the row can be pushed half a card and come out centred instead of
  clinging to one side (owner report 2026-09-21). The card width and the spaces between cards are
  exactly what they were with plain columns.

  Each width is a closed band, so no rule of a wider screen reaches a narrower one. A media query
  adds no weight to a selector and these offsets weigh more than a plain reset, so an open band that
  only said "go back to one column" would lose to them and leave a phone card half off its row
  (external audit 2026-09-21, CSS-001).
*/
.grid { display: grid; gap: var(--s-space-6); }
/* One card a row: the width a phone has, where no half column and no offset exists at all. */
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

/* Two cards a row. The two-card grid keeps this shape on every screen above a phone. */
@media (min-width: 601px) {
  .grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-2 > * { grid-column: span 2; }
  .grid-2 > *:last-child:nth-child(2n + 1) { grid-column: 2 / span 2; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-3 > *, .grid-4 > * { grid-column: span 2; }
  .grid-3 > *:last-child:nth-child(2n + 1),
  .grid-4 > *:last-child:nth-child(2n + 1) { grid-column: 2 / span 2; }
}

/* Three cards a row. */
@media (min-width: 901px) {
  .grid-3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-3 > * { grid-column: span 2; }
  .grid-3 > *:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
  .grid-3 > *:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-4 > * { grid-column: span 2; }
  .grid-4 > *:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
  .grid-4 > *:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }
}

/* Four cards a row: the widest grid on the widest screen. */
@media (min-width: 1101px) {
  .grid-4 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .grid-4 > * { grid-column: span 2; }
  .grid-4 > *:nth-last-child(3):nth-child(4n + 1) { grid-column: 2 / span 2; }
  .grid-4 > *:nth-last-child(2):nth-child(4n + 1) { grid-column: 3 / span 2; }
  .grid-4 > *:last-child:nth-child(4n + 1) { grid-column: 4 / span 2; }
}
.stack > * + * { margin-top: var(--s-space-6); }

/*
  A wrapping row of equal cards whose last line is centred instead of clinging to one side
  (owner report 2026-09-21). A screen sets --s-row-cols (how many fit on one line) and --s-row-gap
  (the space between them), and changes them in its own media queries exactly as it changed
  grid-template-columns before. Currently used only by the board members row (.sc-members-grid
  in site-content.css sets --s-row-cols/--s-row-gap).
*/
.s-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-row-gap, var(--s-space-6)); }
.s-row > * { flex: 0 1 calc((100% - (var(--s-row-cols, 3) - 1) * var(--s-row-gap, var(--s-space-6))) / var(--s-row-cols, 3)); max-width: 100%; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--s-primary-dark), var(--s-primary)); color: var(--s-on-primary); padding-block: var(--s-space-9); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: calc(-1 * var(--s-space-10)); top: calc(-1 * var(--s-space-10)); width: calc(var(--s-space-10) * 4); height: calc(var(--s-space-10) * 4); border-radius: 50%; background: radial-gradient(circle, var(--s-glass), transparent var(--s-glow-stop)); }
.page-hero h1 { color: var(--s-on-primary); font-size: var(--s-text-page); font-weight: var(--s-weight-strong); }
.page-hero p { margin: var(--s-space-3) 0 0; opacity: var(--s-opacity-soft); max-width: var(--s-container-narrow); }
.breadcrumbs { display: flex; gap: var(--s-space-2); flex-wrap: wrap; font-size: var(--s-text-sm); margin-bottom: var(--s-space-3); opacity: var(--s-opacity-muted); }
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-space-2);
  min-height: var(--s-control); padding: 0 var(--s-space-6); border-radius: var(--s-radius);
  border: var(--s-border-w) solid transparent; font: inherit; font-weight: var(--s-weight-title);
  cursor: pointer; white-space: nowrap; text-decoration: none; user-select: none;
  transition: background var(--s-fast) var(--s-ease), color var(--s-fast) var(--s-ease), transform var(--s-fast) var(--s-ease), box-shadow var(--s-fast) var(--s-ease), border-color var(--s-fast) var(--s-ease);
}
.btn:active { transform: translateY(var(--s-press)); }
.btn-lg { min-height: var(--s-control-lg); padding: 0 var(--s-space-7); font-size: var(--s-text-md); }
.btn-sm { min-height: var(--s-touch); padding: 0 var(--s-space-4); font-size: var(--s-text-sm); }
.btn-block { width: 100%; }
.btn-primary { background: var(--s-primary); color: var(--s-on-primary); box-shadow: var(--s-shadow-sm); }
.btn-primary:hover { background: var(--s-primary-dark); color: var(--s-on-primary); box-shadow: var(--s-shadow); }
.btn-accent { background: var(--s-accent); color: var(--s-on-accent); box-shadow: var(--s-shadow-sm); }
.btn-accent:hover { filter: var(--s-hover-darken); color: var(--s-on-accent); box-shadow: var(--s-shadow); }
.btn-outline { background: transparent; color: var(--s-primary-text); border-color: var(--s-primary); }
.btn-outline:hover { background: var(--s-primary); color: var(--s-on-primary); }
.btn-ghost { background: transparent; color: var(--s-text); border-color: var(--s-muted); }
.btn-ghost:hover { border-color: var(--s-primary); color: var(--s-primary-text); }
.btn[disabled], .btn.is-disabled { opacity: var(--s-opacity-disabled); cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: var(--s-icon); height: var(--s-icon); border-radius: 50%; border: var(--s-border-w) solid currentColor; border-color: var(--s-on-primary) transparent var(--s-on-primary) transparent; animation: s-spin var(--s-spin) linear infinite; }
@keyframes s-spin { to { transform: rotate(360deg); } }
.icon-btn { width: var(--s-touch); height: var(--s-touch); border-radius: 50%; display: inline-grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; transition: background var(--s-fast) var(--s-ease); }
.icon-btn:hover { background: var(--s-primary-light); color: var(--s-primary-dark); }

/* ---------- Cards ---------- */
.card { background: var(--s-card-bg); border: var(--s-hairline) solid var(--s-border); border-radius: var(--s-radius-lg); box-shadow: var(--s-shadow-sm); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform var(--s-normal) var(--s-ease), box-shadow var(--s-normal) var(--s-ease); }
.card.is-hover:hover { transform: translateY(var(--s-lift)); box-shadow: var(--s-shadow-lg); }
.card-media { position: relative; aspect-ratio: var(--s-wide-ratio); background: var(--s-primary-light); overflow: hidden; }
.card-media.is-square { aspect-ratio: var(--s-card-media-ratio); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--s-slow) var(--s-ease); }
.card.is-hover:hover .card-media img { transform: scale(var(--s-zoom-media)); }
.card-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--s-primary-text); background: linear-gradient(135deg, var(--s-primary-light), var(--s-card-bg)); }
.card-media .placeholder .icon { width: var(--s-icon-xl); height: var(--s-icon-xl); }
.card-body { padding: var(--s-space-5); display: flex; flex-direction: column; gap: var(--s-space-2); flex: 1; }
.card-title { font-size: var(--s-text-card-title); font-weight: var(--s-weight-title); line-height: var(--s-line-tight); }
.card-title a { color: var(--s-text); }
.card-title a:hover { color: var(--s-primary-text); }
.card-text { color: var(--s-muted); font-size: var(--s-text-sm); margin: 0; }
.card-meta { display: flex; gap: var(--s-space-3); flex-wrap: wrap; align-items: center; color: var(--s-muted); font-size: var(--s-text-xs); }
.card-footer { padding: 0 var(--s-space-5) var(--s-space-5); margin-top: auto; display: flex; gap: var(--s-space-2); flex-wrap: wrap; }
.card-link { position: absolute; inset: 0; z-index: 1; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: var(--s-space-1); padding: var(--s-space-1) var(--s-space-3); border-radius: var(--s-radius-pill); font-size: var(--s-text-xs); font-weight: var(--s-weight-label); background: var(--s-primary-light); color: var(--s-primary-dark); white-space: nowrap; }
.badge .icon { width: var(--s-text-sm); height: var(--s-text-sm); }
.badge.is-accent { background: var(--s-accent); color: var(--s-on-accent); }
.badge.is-success { background: var(--s-success); color: var(--s-on-status); }
.badge.is-warning { background: var(--s-warning); color: var(--s-on-status); }
.badge.is-error { background: var(--s-error); color: var(--s-on-status); }
.badge.is-dark { background: var(--s-overlay-strong); color: var(--s-on-primary); }
.badge-float { position: absolute; top: var(--s-space-3); inset-inline-start: var(--s-space-3); z-index: 2; }
.chips { display: flex; gap: var(--s-space-2); flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: var(--s-touch); padding: 0 var(--s-space-4); border-radius: var(--s-radius-pill); border: var(--s-hairline) solid var(--s-border); background: var(--s-card-bg); color: var(--s-text); font-weight: var(--s-weight-label); cursor: pointer; }
.chip:hover, .chip.is-active { border-color: var(--s-primary); background: var(--s-primary); color: var(--s-on-primary); }

/* ---------- Progress ---------- */
.progress { height: var(--s-progress-h); border-radius: var(--s-radius-pill); background: var(--s-primary-light); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--s-primary), var(--s-accent)); width: 0; transition: width var(--s-slow) var(--s-ease); }
.progress-meta { display: flex; justify-content: space-between; gap: var(--s-space-2); font-size: var(--s-text-sm); margin-top: var(--s-space-2); }
.progress-meta strong { font-family: var(--s-font-num); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-space-4); }
.form-row { display: grid; gap: var(--s-space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--s-space-2); min-width: 0; }
.field-label { font-weight: var(--s-weight-label); font-size: var(--s-text-sm); }
.field-label .req { color: var(--s-error); }
.field-hint { font-size: var(--s-text-xs); color: var(--s-muted); }
.field-error { font-size: var(--s-text-xs); color: var(--s-error); }
.input, .select, .textarea { width: 100%; min-height: var(--s-control); border: var(--s-hairline) solid var(--s-muted); border-radius: var(--s-radius); background: var(--s-card-bg); color: var(--s-text); font: inherit; padding: var(--s-space-3) var(--s-space-4); transition: border-color var(--s-fast) var(--s-ease), box-shadow var(--s-fast) var(--s-ease); }
.textarea { min-height: calc(var(--s-control) * 3); resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--s-primary); box-shadow: var(--s-ring); }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--s-error); }
.input-affix { position: relative; display: block; }
.input-affix .affix { position: absolute; inset-inline-end: var(--s-space-4); top: 50%; transform: translateY(-50%); color: var(--s-muted); font-size: var(--s-text-sm); pointer-events: none; }
/* The affix sits at the page end (left in Arabic); numeric LTR inputs start there too, so reserve that side. */
.input-affix .input { padding-inline-end: var(--s-affix-space); }
.input-affix .input[dir="ltr"] { padding-inline-end: var(--s-space-4); padding-left: var(--s-affix-space); }
.check { display: flex; gap: var(--s-space-2); align-items: flex-start; cursor: pointer; min-height: var(--s-touch); padding-block: var(--s-space-3); }
.check input { width: var(--s-icon); height: var(--s-icon); accent-color: var(--s-primary); margin-top: var(--s-space-1); }
/* The bots trap stays in place, clipped to nothing: an offset far to the side made the page wider on phones (p06). */
.hp-field { position: absolute !important; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ---------- Alerts & states ---------- */
.alert { display: flex; gap: var(--s-space-3); padding: var(--s-space-4) var(--s-space-5); border-radius: var(--s-radius); background: var(--s-primary-light); color: var(--s-primary-dark); margin-bottom: var(--s-space-5); }
.alert.is-success { background: var(--s-success); color: var(--s-on-status); }
.alert.is-error { background: var(--s-error); color: var(--s-on-status); }
.alert.is-warning { background: var(--s-warning); color: var(--s-on-status); }
.empty-state { text-align: center; padding: var(--s-space-9) var(--s-space-5); color: var(--s-muted); }
.empty-state .icon { width: var(--s-icon-xl); height: var(--s-icon-xl); color: var(--s-primary-text); margin-bottom: var(--s-space-3); }
.test-banner { background: var(--s-warning); color: var(--s-on-status); text-align: center; font-size: var(--s-text-sm); padding: var(--s-space-2) var(--s-space-4); font-weight: var(--s-weight-label); }

/* ---------- Rich text ---------- */
.prose { font-size: var(--s-text-base); line-height: var(--s-line); overflow-wrap: anywhere; }
.prose h2 { font-size: var(--s-text-section); margin: var(--s-space-8) 0 var(--s-space-3); scroll-margin-top: calc(var(--s-header-h) + var(--s-space-4)); }
.prose h3 { font-size: var(--s-text-card-title); margin: var(--s-space-6) 0 var(--s-space-2); scroll-margin-top: calc(var(--s-header-h) + var(--s-space-4)); }
.prose h4 { font-size: var(--s-text-md); margin: var(--s-space-5) 0 var(--s-space-2); scroll-margin-top: calc(var(--s-header-h) + var(--s-space-4)); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: var(--s-space-6); margin: 0 0 var(--s-space-4); }
.prose li { margin-bottom: var(--s-space-2); }
.prose hr { border: 0; height: var(--s-hairline); background: var(--s-border); margin: var(--s-space-7) 0; }
.prose a { text-decoration: underline; text-underline-offset: var(--s-underline-offset); }
.toc { position: sticky; top: calc(var(--s-header-h) + var(--s-space-4)); background: var(--s-card-bg); border: var(--s-hairline) solid var(--s-border); border-radius: var(--s-radius-lg); padding: var(--s-space-5); font-size: var(--s-text-sm); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc ol ol { padding-inline-start: var(--s-space-4); }
.toc a { display: block; padding: var(--s-space-1) 0; color: var(--s-muted); }
.toc a:hover { color: var(--s-primary-text); }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) var(--s-toc-w); gap: var(--s-space-8); align-items: start; }
@media (max-width: 900px) { .with-aside { grid-template-columns: 1fr; } .with-aside .toc { position: static; } }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: var(--s-space-2); flex-wrap: wrap; margin-top: var(--s-space-8); }
.pagination a, .pagination span { min-width: var(--s-touch); min-height: var(--s-touch); display: inline-grid; place-items: center; padding: 0 var(--s-space-3); border-radius: var(--s-radius); border: var(--s-hairline) solid var(--s-border); background: var(--s-card-bg); color: var(--s-text); font-family: var(--s-font-num); }
.pagination a:hover { border-color: var(--s-primary); color: var(--s-primary-text); }
.pagination .is-current { background: var(--s-primary); border-color: var(--s-primary); color: var(--s-on-primary); }
.pagination .is-gap { border: 0; background: transparent; }

/* ---------- Share ---------- */
.share { display: flex; gap: var(--s-space-2); flex-wrap: wrap; align-items: center; }
.share a, .share button { width: var(--s-touch); height: var(--s-touch); border-radius: 50%; display: inline-grid; place-items: center; background: var(--s-primary-light); color: var(--s-primary-dark); border: 0; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--s-primary); color: var(--s-on-primary); }

/* ---------- Default header (header module refines models) ---------- */
.site-header { background: var(--s-header-bg); color: var(--s-header-text); border-bottom: var(--s-hairline) solid var(--s-border); position: relative; z-index: var(--s-z-header); }
.site-header.is-sticky { position: sticky; top: 0; }
/* A sticky header never covers the element the keyboard moves to or a #link lands on (p17 item 61).
   site-shell.js sets its measured height; before it runs the one-row height stands in. */
html:has(.site-header.is-sticky) { scroll-padding-top: calc(var(--s-sticky-header-h, var(--s-header-h)) + var(--s-space-4)); }
/* The article headings keep the same distance they had: their own margin would add to the padding. */
html:has(.site-header.is-sticky) .prose :is(h2, h3, h4) { scroll-margin-top: 0; }
.brand { display: inline-flex; align-items: center; gap: var(--s-space-3); color: var(--s-header-text); font-weight: var(--s-weight-strong); font-size: var(--s-text-md); min-width: 0; }
.brand img { max-width: var(--s-logo-w); max-height: var(--s-logo-h); width: auto; height: auto; }
.brand .mark { width: var(--s-touch); height: var(--s-touch); border-radius: var(--s-radius); display: grid; place-items: center; background: var(--s-primary); color: var(--s-on-primary); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: var(--s-space-1); }
.nav-link { display: inline-flex; align-items: center; gap: var(--s-space-1); min-height: var(--s-touch); padding: 0 var(--s-space-3); border-radius: var(--s-radius); color: var(--s-header-text); font-weight: var(--s-weight-label); background: transparent; border: 0; font: inherit; cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--s-primary-light); color: var(--s-primary-dark); }
.nav-item { position: relative; }
.dropdown { position: absolute; top: calc(100% + var(--s-space-2)); inset-inline-start: 0; min-width: var(--s-dropdown-min); background: var(--s-card-bg); border: var(--s-hairline) solid var(--s-border); border-radius: var(--s-radius); box-shadow: var(--s-shadow-lg); padding: var(--s-space-2); z-index: var(--s-z-dropdown); }
.dropdown a { display: flex; align-items: center; min-height: var(--s-touch); padding: 0 var(--s-space-3); border-radius: var(--s-radius-sm); color: var(--s-text); white-space: nowrap; }
.dropdown a:hover { background: var(--s-primary-light); color: var(--s-primary-dark); }
.header-tools { display: flex; align-items: center; gap: var(--s-space-2); }
.cart-pill { display: inline-flex; align-items: center; gap: var(--s-space-2); min-height: var(--s-touch); padding: 0 var(--s-space-4); border-radius: var(--s-radius-pill); background: var(--s-accent); color: var(--s-on-accent); font-weight: var(--s-weight-title); font-family: var(--s-font-num); }
.cart-pill:hover { color: var(--s-on-accent); filter: var(--s-hover-darken); }
.menu-toggle { display: none; }
@media (max-width: 1023px) { .site-header .nav { display: none; } .menu-toggle { display: inline-grid; } }

/* Drawer (mobile navigation) */
.drawer { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(var(--s-drawer-w), var(--s-drawer-max)); background: var(--s-card-bg); z-index: var(--s-z-drawer); transform: translateX(100%); transition: transform var(--s-normal) var(--s-ease); display: flex; flex-direction: column; box-shadow: var(--s-shadow-lg); overflow-y: auto; }
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-space-4); border-bottom: var(--s-hairline) solid var(--s-border); }
.drawer-body { padding: var(--s-space-3); display: flex; flex-direction: column; gap: var(--s-space-1); }
.drawer-body a, .drawer-body summary { display: flex; align-items: center; min-height: var(--s-touch); padding: 0 var(--s-space-3); border-radius: var(--s-radius-sm); color: var(--s-text); font-weight: var(--s-weight-label); cursor: pointer; }
.drawer-body details a { padding-inline-start: var(--s-space-7); font-weight: var(--s-weight-body); }
.drawer-body a:hover { background: var(--s-primary-light); }
.scrim { position: fixed; inset: 0; background: var(--s-overlay); z-index: calc(var(--s-z-drawer) - 1); }

/* ---------- Default footer (footer module refines models) ---------- */
.site-footer { background: var(--s-footer-bg); color: var(--s-footer-text); margin-top: var(--s-space-9); }
.site-footer a { color: var(--s-footer-text); }
.site-footer a:hover { color: var(--s-accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--s-space-7); padding-block: var(--s-space-9); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; padding-block: var(--s-space-7); } }
.footer-brand img { max-width: var(--s-footer-logo-w); max-height: var(--s-footer-logo-h); width: auto; }
.footer-title { color: var(--s-footer-text); font-size: var(--s-text-md); font-weight: var(--s-weight-title); margin-bottom: var(--s-space-4); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-space-2); }
.footer-list li { display: flex; gap: var(--s-space-2); align-items: flex-start; }
.social { display: flex; gap: var(--s-space-2); flex-wrap: wrap; }
.social a { width: var(--s-touch); height: var(--s-touch); border-radius: 50%; display: inline-grid; place-items: center; background: var(--s-glass); border: var(--s-hairline) solid var(--s-glass-border); color: var(--s-footer-text); transition: background var(--s-fast) var(--s-ease), transform var(--s-fast) var(--s-ease); }
.social a:hover { background: var(--s-accent); color: var(--s-on-accent); transform: translateY(var(--s-lift)); }
.site-header .social a { background: var(--s-primary-light); border-color: transparent; color: var(--s-primary-dark); }

/* ---------- Floating WhatsApp (never covers donation buttons) ---------- */
.float-whatsapp { position: fixed; bottom: var(--s-space-5); inset-inline-end: var(--s-space-5); width: var(--s-control-lg); height: var(--s-control-lg); border-radius: 50%; display: grid; place-items: center; background: var(--s-success); color: var(--s-on-status); box-shadow: var(--s-shadow-lg); z-index: var(--s-z-sticky); }
.float-whatsapp .icon { width: var(--s-icon-lg); height: var(--s-icon-lg); }
.float-whatsapp:hover { color: var(--s-on-status); transform: scale(var(--s-zoom-float)); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: var(--s-space-6); inset-inline-start: 50%; transform: translateX(50%); background: var(--s-text); color: var(--s-card-bg); padding: var(--s-space-3) var(--s-space-6); border-radius: var(--s-radius-pill); box-shadow: var(--s-shadow-lg); z-index: var(--s-z-toast); font-weight: var(--s-weight-label); }

/* ---------- Reveal on scroll (hidden only once JavaScript runs, so content never stays invisible) ---------- */
html.js .reveal { opacity: 0; transform: translateY(calc(-1 * var(--s-lift) * 4)); transition: opacity var(--s-slow) var(--s-ease), transform var(--s-slow) var(--s-ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

@media print { .site-header, .site-footer, .float-whatsapp, .share, .no-print { display: none !important; } body.site { background: var(--s-card-bg); } }
