/* Fatwa reference: src/app/globals.css, final rounded-system cascade.
   The original lattice (including its SVG stroke opacity), font files,
   gradient stops, header geometry and breakpoints are shared verbatim.
   Institution palettes share the same geometry, with colours from the
   original logos and separate surface, reading and action tokens. */
.fatwa-release {
  --font-serif: "DTI Seasons", "Cormorant Garamond", Georgia, serif;
  --font-sans: "DTI Montserrat", Montserrat, Arial, sans-serif;
  --ink: #18343a;
  --ink-soft: #41565a;
  --paper: #f3f1eb;
  --paper-bright: #faf9f6;
  --gold-500: #f5b84f;
  --gold-700: #956514;
  --gold-bright: #ffc964;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --header-offset: 124px;
  --header-height: 124px;
  --teal-950: rgb(var(--fatwa-deep));
  --teal-900: rgb(var(--fatwa-mid));
  --teal-700: var(--fatwa-accent);
  --shadow-elevated: 0 24px 70px rgb(var(--fatwa-deep) / 11%);
  --shadow-card: 0 14px 40px rgb(var(--fatwa-deep) / 8%);
  background: var(--paper);
}
.fatwa-release h1, .fatwa-release h2, .fatwa-release h3 { font-family: var(--font-serif); font-weight: 600; }
.fatwa-release h1 { letter-spacing: -.045em; }
.fatwa-release h2, .fatwa-release h3 { letter-spacing: -.025em; }
.fatwa-release .button { border-radius: 999px; min-height: 52px; padding-inline: 24px; }
.fatwa-shell, .fatwa-release .shell { margin-inline: auto; max-width: 1264px; padding-inline: 32px; width: 100%; }

/* An absolute, transparent header over the hero, as on the live Fatwa site. */
.fatwa-header { background: rgb(var(--fatwa-deep)); box-shadow: none; position: relative; z-index: 100; }
.fatwa-header.fatwa-header-integrated { background: transparent; left: 0; position: absolute; right: 0; top: 0; }
.fatwa-header-main { background: transparent; border-bottom: 0; }
.fatwa-header-inner { align-items: center; display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(330px, 1fr) auto; min-height: 124px; position: relative; }
.fatwa-brand { align-items: center; display: flex; gap: 18px; width: fit-content; text-decoration: none; }
.fatwa-brand { min-width: 0; }
.fatwa-brand > img { background: transparent; border-radius: 0; display: block; flex: 0 0 auto; height: auto; max-width: 100%; object-fit: contain; padding: 0; width: clamp(200px, 20vw, 270px); }
.fatwa-brand--wordmark > img { max-height: 88px; object-position: left center; }
.fatwa-brand--emblem { gap: 14px; max-width: 330px; }
.fatwa-brand--emblem > img { height: 78px; width: 68px; }
.fatwa-brand--emblem[data-brand="mustafa-college"] > img { width: 100px; }
.fatwa-brand-name { color: var(--gold-500); font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600; line-height: 1.15; text-wrap: balance; }
.fatwa-desktop-nav-shell { align-items: center; background: #fff; border: 1px solid rgb(255 255 255 / 70%); border-radius: 999px; box-shadow: 0 18px 48px rgb(0 26 34 / 18%); display: flex; gap: 8px; padding: 9px; }
.fatwa-desktop-nav { align-items: stretch; display: flex; gap: 0; justify-content: flex-end; }
.fatwa-desktop-nav a { align-items: center; border-radius: 999px; color: rgb(var(--fatwa-deep)); display: flex; font-family: var(--font-sans); font-size: .84rem; font-weight: 700; min-height: 48px; padding-inline: clamp(12px, 1.35vw, 20px); position: relative; text-decoration: none; white-space: nowrap; }
.fatwa-desktop-nav a::after { background: var(--brand-primary, var(--gold-500)); bottom: 4px; content: ""; height: 3px; left: 24%; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; width: 52%; }
.fatwa-desktop-nav a:hover, .fatwa-desktop-nav a[aria-current="page"] { color: var(--gold-700); }
.fatwa-desktop-nav a:hover::after, .fatwa-desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.fatwa-button { align-items: center; background: var(--gold-500); border: 1px solid var(--gold-500); border-radius: 999px; color: rgb(var(--fatwa-deep)); cursor: pointer; display: inline-flex; font-family: var(--font-sans); font-size: .92rem; font-weight: 650; gap: 10px; justify-content: center; letter-spacing: .01em; line-height: 1.65; min-height: 52px; padding: 13px 24px; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; white-space: nowrap; }
.fatwa-header-cta { min-height: 48px; padding: 9px 20px; }
.fatwa-button:hover, .fatwa-mobile-action:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: rgb(var(--fatwa-deep)); }
.fatwa-mobile-header-actions { align-items: center; display: none; gap: 10px; }
.fatwa-mobile-action { align-items: center; background: var(--gold-500); border: 1px solid var(--gold-500); border-radius: 999px; color: rgb(var(--fatwa-deep)); cursor: pointer; display: inline-flex; font-family: var(--font-sans); font-size: .78rem; font-weight: 800; gap: 5px; justify-content: center; min-height: 42px; padding-inline: 17px; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; white-space: nowrap; }
.fatwa-mobile-action:hover { transform: translateY(-1px); }
.fatwa-menu-toggle { align-items: center; background: #fff; border: 0; border-radius: 50%; color: rgb(var(--fatwa-deep)); cursor: pointer; display: flex; height: 50px; justify-content: center; padding: 0; width: 50px; }
.fatwa-menu-toggle .fatwa-close-icon, .fatwa-menu-toggle[aria-expanded="true"] .fatwa-menu-icon { display: none; }
.fatwa-menu-toggle[aria-expanded="true"] .fatwa-close-icon { display: block; }
/* Outrank the retained bookshop's generic button radius. */
.fatwa-release .fatwa-button, .fatwa-release .fatwa-mobile-action { border-radius: 999px; }
.fatwa-release .fatwa-menu-toggle { border-radius: 50%; }
.fatwa-mobile-nav { background: rgb(var(--fatwa-deep)); border-bottom: 0; color: #fff; display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 220ms ease; }
.fatwa-mobile-nav.is-open { grid-template-rows: 1fr; }
.fatwa-mobile-nav-inner { min-height: 0; overflow: hidden; }
.fatwa-mobile-nav-inner > a:not(.fatwa-button) { align-items: center; border-bottom: 1px solid rgb(255 255 255 / 14%); color: #fff; display: flex; font-weight: 650; justify-content: space-between; min-height: 60px; text-decoration: none; }
.fatwa-mobile-nav-inner > a[aria-current="page"] { color: var(--gold-500); }
.fatwa-mobile-nav-inner > .fatwa-button { margin-block: 20px 26px; width: 100%; }

/* Remove the older canopy's competing pseudo-elements. The SVG's own .16
   stroke opacity is deliberately retained, then multiplied by .28 below. */
.fatwa-release .fatwa-hero::before, .fatwa-release .fatwa-hero::after,
.fatwa-release.branch-site main > .fatwa-hero:first-child::before,
.fatwa-release.branch-site main > .fatwa-hero:first-child::after { content: none; display: none; }
.fatwa-release .fatwa-hero, .fatwa-release.branch-site main > .fatwa-hero:first-child {
  background: radial-gradient(circle at 18% 30%, rgb(var(--fatwa-glow) / 22%), transparent 34%), linear-gradient(112deg, rgb(var(--fatwa-deep)) 0%, rgb(var(--fatwa-mid)) 57%, rgb(var(--fatwa-deep)) 100%);
  color: #fff; isolation: isolate; min-height: 690px; overflow: hidden; padding: var(--header-offset) 0 0; position: relative;
}
.fatwa-release .fatwa-hero-wash { background: linear-gradient(90deg, rgb(var(--fatwa-wash) / 72%) 0%, rgb(var(--fatwa-wash) / 30%) 54%, rgb(var(--fatwa-wash) / 4%) 100%); inset: 0; pointer-events: none; position: absolute; z-index: 0; }
.fatwa-release .fatwa-hero-wash::before { background-image: url("/assets/patterns/islamic-girih-lattice.svg"); background-position: center top; background-repeat: repeat; background-size: 720px auto; content: ""; inset: 0; opacity: .28; pointer-events: none; position: absolute; -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 30%) 0%, rgb(0 0 0 / 48%) 22%, rgb(0 0 0 / 78%) 52%, #000 100%); mask-image: linear-gradient(90deg, rgb(0 0 0 / 30%) 0%, rgb(0 0 0 / 48%) 22%, rgb(0 0 0 / 78%) 52%, #000 100%); }
.fatwa-release .fatwa-hero > .shell { min-height: 566px; padding-block: 100px 126px; position: relative; z-index: 1; }
.fatwa-release.home-page .fatwa-hero > .hero__inner { min-height: 690px; padding-block: 100px 126px; }
.fatwa-release .fatwa-hero.fatwa-hero--page { background: linear-gradient(100deg, rgb(var(--fatwa-deep) / 96%) 0%, rgb(var(--fatwa-page-mid) / 90%) 58%, rgb(var(--fatwa-deep) / 95%) 100%), rgb(var(--fatwa-deep)); border-radius: 0 0 42px 42px; min-height: 390px; }
.fatwa-release .fatwa-hero--page .fatwa-hero-wash { background: transparent; }
.fatwa-release .fatwa-hero--page > .shell { min-height: 266px; padding-block: 64px 80px; }
.fatwa-release .fatwa-hero h1 { color: var(--theme-heading, var(--gold-500)); font-size: clamp(3.25rem, 5.7vw, 5.75rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.fatwa-release .fatwa-hero .lede { border-left: 5px solid var(--gold-500); color: rgb(255 255 255 / 82%); font-size: clamp(1.06rem, 1.4vw, 1.25rem); line-height: 1.62; margin-left: 12px; max-width: 58ch; padding-left: 18px; }
.fatwa-release .fatwa-hero .eyebrow, .fatwa-release.branch-site .fatwa-hero .eyebrow { color: var(--gold-500); }
.fatwa-release .fatwa-hero .crumbs, .fatwa-release .fatwa-hero .crumbs a { color: rgb(255 255 255 / 76%); }
.fatwa-release .fatwa-hero .button--teal { background: var(--gold-500); border-color: var(--gold-500); color: rgb(var(--fatwa-deep)); }
.fatwa-release .fatwa-hero .button--outline { background: #fff; border-color: #fff; color: var(--gold-700); }
.fatwa-release .fatwa-hero .button-row { margin-left: 12px; margin-top: 46px; }
.fatwa-release .tb-hero__pattern { display: none; }
.fatwa-release .tb-hero__facts, .fatwa-release .tb-hero__facts strong { color: rgb(255 255 255 / 82%); }
.fatwa-release .branch-subnav { background: rgb(var(--fatwa-mid)); top: 0; }

/* The same paper, rounded surfaces and dark patterned footer as Fatwa. */
.fatwa-release.branch-site main { background: var(--paper); }
.fatwa-release .site-footer { background: linear-gradient(112deg, rgb(var(--fatwa-footer-start) / 98%) 0%, rgb(var(--fatwa-footer-end) / 96%) 100%), url("/assets/patterns/islamic-girih-lattice.svg") top right / 680px auto no-repeat; border: 1px solid rgb(255 255 255 / 10%); border-radius: var(--radius-lg); box-shadow: var(--shadow-elevated); color: #fff; margin: 42px 28px 28px; overflow: hidden; padding-top: 0; position: relative; }
.fatwa-release .site-footer::before { background: radial-gradient(circle at 82% 12%, rgb(var(--fatwa-glow) / 16%), transparent 34%); content: ""; inset: 0; mask: none; -webkit-mask: none; opacity: 1; pointer-events: none; position: absolute; }
.fatwa-release .site-footer > .shell { position: relative; z-index: 1; }
.fatwa-release .site-footer__main { gap: 24px; padding-block: 52px 34px; }
.fatwa-release .site-footer__main > div:not(.site-footer__brand) { align-self: stretch; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 13%); border-radius: 22px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%); padding: 26px; }
.fatwa-release .footer-links { gap: 4px; }
.fatwa-release .footer-links a { border-radius: 10px; display: flex; min-height: 40px; padding: 7px 10px; transition: background-color 180ms ease, color 180ms ease, transform 180ms ease; }
.fatwa-release .footer-links a:hover { background: rgb(255 255 255 / 8%); color: var(--gold-bright); transform: translateX(3px); }
.fatwa-release .site-footer h3 { color: var(--theme-footer-heading, var(--gold-500)); }
.fatwa-release .site-footer__base, .fatwa-release .site-footer__legal { color: rgb(255 255 255 / 76%); }

@media (max-width: 1180px) {
  .fatwa-header-inner { grid-template-columns: minmax(255px, 1fr) auto; }
  .fatwa-desktop-nav a { padding-inline: 12px; }
}
@media (max-width: 1120px) { .fatwa-header-cta { display: none; } }
@media (min-width: 961px) and (max-width: 1280px) {
  .fatwa-header-inner { gap: 18px; grid-template-columns: minmax(180px, 1fr) auto; }
  .fatwa-desktop-nav a { font-size: .78rem; padding-inline: 10px; }
  .fatwa-header-cta { font-size: .78rem; padding-inline: 20px; }
}
@media (max-width: 960px) {
  .fatwa-release { --header-offset: 94px; --header-height: 94px; }
  .fatwa-header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 94px; min-width: 0; width: 100%; }
  .fatwa-brand { max-width: 100%; min-width: 0; overflow: hidden; width: auto; }
  .fatwa-brand > img { display: block; max-width: 100%; }
  .fatwa-desktop-nav-shell { display: none; }
  .fatwa-mobile-header-actions { display: flex; flex: 0 0 auto; min-width: 0; }
  .fatwa-mobile-action, .fatwa-menu-toggle { flex: 0 0 auto; }
  .fatwa-release .fatwa-hero, .fatwa-release.branch-site main > .fatwa-hero:first-child { min-height: 640px; }
  .fatwa-release .fatwa-hero > .shell { min-height: 546px; }
  .fatwa-release.home-page .fatwa-hero > .hero__inner { min-height: 640px; }
  .fatwa-release .fatwa-hero.fatwa-hero--page { min-height: 390px; }
  .fatwa-release .fatwa-hero--page > .shell { min-height: 296px; }
}
@media (max-width: 720px) {
  .fatwa-release { --header-offset: 82px; --header-height: 82px; --radius-lg: 24px; }
  .fatwa-shell, .fatwa-release .shell { padding-inline: 20px; }
  .fatwa-header-inner { gap: 8px; min-height: 82px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .fatwa-brand { width: clamp(118px, 38vw, 162px); }
  .fatwa-brand > img { width: 100%; }
  .fatwa-brand--wordmark { width: min(100%, 190px); }
  .fatwa-brand--wordmark > img { max-height: 64px; }
  .fatwa-brand--emblem { gap: 9px; width: auto; }
  .fatwa-brand--emblem > img { height: 56px; width: 44px; }
  .fatwa-brand--emblem[data-brand="mustafa-college"] > img { width: 62px; }
  .fatwa-brand-name { font-size: .93rem; }
  .fatwa-mobile-header-actions { gap: 6px; }
  .fatwa-mobile-action { min-height: 44px; padding-inline: 12px; }
  .fatwa-menu-toggle { height: 48px; width: 48px; }
  .fatwa-release .fatwa-hero, .fatwa-release.branch-site main > .fatwa-hero:first-child { min-height: 620px; }
  .fatwa-release .fatwa-hero > .shell { min-height: 538px; padding-block: 76px 92px; }
  .fatwa-release.home-page .fatwa-hero > .hero__inner { min-height: 620px; padding-block: 76px 92px; }
  .fatwa-release .fatwa-hero-wash { background: radial-gradient(circle at 82% 24%, rgb(var(--fatwa-glow) / 10%), transparent 38%), linear-gradient(90deg, rgb(var(--fatwa-wash) / 78%) 0%, rgb(var(--fatwa-wash) / 42%) 58%, rgb(var(--fatwa-wash) / 12%) 100%); }
  .fatwa-release .fatwa-hero h1 { font-size: clamp(2.7rem, 9vw, 4.1rem); }
  .fatwa-release .fatwa-hero.fatwa-hero--page { border-radius: 0 0 28px 28px; min-height: 390px; }
  .fatwa-release .fatwa-hero--page .fatwa-hero-wash { background: transparent; }
  .fatwa-release .fatwa-hero--page > .shell { min-height: 308px; padding-block: 58px 72px; }
  .fatwa-release .site-footer { border-radius: 28px; margin: 28px 16px 16px; }
  .fatwa-release .site-footer__main { gap: 16px; grid-template-columns: 1fr; padding-block: 36px 24px; }
  .fatwa-release .site-footer__main > div:not(.site-footer__brand) { padding: 22px; }
}
@media (max-width: 430px) {
  .fatwa-header-inner { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .fatwa-brand { width: clamp(108px, 36vw, 138px); }
  .fatwa-brand--wordmark { width: min(100%, 172px); }
  .fatwa-brand--emblem { width: auto; }
  .fatwa-brand-name { font-size: .95rem; }
  .fatwa-mobile-action { font-size: .72rem; min-height: 44px; padding-inline: 10px; }
  .fatwa-menu-toggle { height: 44px; width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .fatwa-mobile-nav, .fatwa-desktop-nav a::after, .fatwa-button, .fatwa-mobile-action { transition: none; }
}

/* A direct introduction: institution, programme and next action. */
.fatwa-release.branch-site main > .fatwa-hero.fatwa-hero--simple:first-child { min-height: 0; }
.fatwa-release .fatwa-hero--simple > .shell { min-height: 0; padding-block: 72px 88px; }
.fatwa-release .fatwa-hero--simple > :is(.branch-page-hero__grid, .safa-hero__grid) { gap: 0; grid-template-columns: minmax(0, 780px); }
.fatwa-release .fatwa-hero--simple h1 { margin-top: 0; margin-bottom: 24px; max-width: 20ch; }
.fatwa-release .fatwa-hero--simple .button-row { margin-top: 32px; }
@media (max-width: 720px) {
  .fatwa-release .fatwa-hero--simple > .shell { padding-block: 48px 64px; }
}

/* Prepared transparent assets need no JPEG matte tricks or simulated crops. */
.fatwa-release img[data-logo-surface] { mix-blend-mode: normal !important; filter: none !important; }
.fatwa-release .logo-well[data-logo-surface="light"],
.fatwa-release .institution-card__logo[data-logo-surface="light"] { background: var(--paper-bright); }
.fatwa-release .hero-orbit__link[data-logo-surface="dark"] { background: #043f4e; border-color: var(--institution-logo-colour); }
.fatwa-release .hero-orbit__rosette[data-logo-surface] { background: transparent; border-radius: 0; height: 100%; overflow: visible; width: 100%; }
.fatwa-release .hero-orbit__rosette img[data-logo-surface] { height: 100%; max-width: 100%; object-position: center; position: static; width: 100%; }
.fatwa-release .release-brand--wordmark { display: block; width: 100%; }
.fatwa-release .release-brand--wordmark > img { background: transparent; border-radius: 0; display: block; height: auto; max-height: 156px; max-width: 100%; object-fit: contain; object-position: left center; padding: 0; width: var(--brand-logo-width, 280px); }

/* Light logo palettes share the same Fatwa shell and interaction states. */
.fatwa-release {
  --shadow-elevated: 0 24px 70px rgb(var(--theme-ink-rgb) / 9%);
  --shadow-card: 0 14px 40px rgb(var(--theme-ink-rgb) / 7%);
}
.fatwa-release :focus-visible { outline-color: var(--theme-action); }
.fatwa-theme--dark :is(.fatwa-header, .fatwa-hero, .site-footer) :focus-visible,
.fatwa-release :is(.application-steps, .quote-block, .programme-card--featured) :focus-visible { outline-color: var(--gold-500); }
.fatwa-theme--light :focus-visible { outline-color: var(--ink); }
.fatwa-theme--light .application-steps :focus-visible,
.fatwa-theme--light .quote-block :focus-visible { outline-color: var(--gold-500); }
.fatwa-theme--light .fatwa-brand-name,
.fatwa-theme--light .fatwa-desktop-nav a,
.fatwa-theme--light .fatwa-desktop-nav a:hover,
.fatwa-theme--light .fatwa-desktop-nav a[aria-current="page"],
.fatwa-theme--light .fatwa-menu-toggle,
.fatwa-theme--light .fatwa-hero h1,
.fatwa-theme--light .fatwa-hero .lede,
.fatwa-theme--light .fatwa-hero .crumbs,
.fatwa-theme--light .fatwa-hero .crumbs a { color: var(--ink); }
.fatwa-release.fatwa-theme--light .fatwa-hero .eyebrow { color: var(--ink); }
.fatwa-theme--light .fatwa-desktop-nav-shell { box-shadow: 0 18px 48px rgb(var(--theme-ink-rgb) / 9%); }
.fatwa-release.fatwa-theme--light .fatwa-button,
.fatwa-theme--light .fatwa-mobile-action,
.fatwa-theme--light .fatwa-mobile-action:hover,
.fatwa-theme--light .fatwa-button:hover,
.fatwa-theme--light .fatwa-hero .button--teal,
.fatwa-theme--light .fatwa-hero .button--outline { color: var(--ink); }
.fatwa-theme--light .fatwa-hero .button--teal:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.fatwa-theme--light .fatwa-hero .button--outline:hover { background: var(--theme-tint); border-color: var(--theme-tint); }
.fatwa-theme--light .fatwa-hero-wash::before { filter: brightness(0); opacity: .44; }
.fatwa-theme--light .fatwa-mobile-nav { background: var(--theme-subnav); color: var(--ink); }
.fatwa-theme--light .fatwa-mobile-nav-inner > a:not(.fatwa-button),
.fatwa-theme--light .fatwa-mobile-nav-inner > a[aria-current="page"] { border-color: rgb(var(--theme-ink-rgb) / 16%); color: var(--ink); }
.fatwa-release.fatwa-theme--light .branch-subnav { background: color-mix(in srgb, var(--theme-subnav) 72%, white); border-color: rgb(var(--theme-ink-rgb) / 12%); }
.fatwa-theme--light .branch-subnav a,
.fatwa-theme--light .branch-subnav a:hover { color: var(--ink); }
.fatwa-release.fatwa-theme--light .site-footer { border-color: rgb(var(--theme-ink-rgb) / 12%); color: var(--ink); }
.fatwa-release.fatwa-theme--light .site-footer__main > div:not(.site-footer__brand) { background: rgb(255 255 255 / 42%); border-color: rgb(var(--theme-ink-rgb) / 12%); box-shadow: none; }
.fatwa-theme--light .site-footer h3,
.fatwa-theme--light .footer-links a,
.fatwa-theme--light .footer-links a:hover,
.fatwa-theme--light .release-family-link,
.fatwa-theme--light .site-footer__base,
.fatwa-theme--light .site-footer__legal,
.fatwa-theme--light .site-footer__legal a,
.fatwa-theme--light .site-footer__legal a:hover { color: var(--ink); }
.fatwa-theme--light .site-footer__base,
.fatwa-theme--light .site-footer__legal { border-color: rgb(var(--theme-ink-rgb) / 14%); }
.fatwa-theme--light .footer-links a:hover { background: rgb(255 255 255 / 55%); }

.fatwa-theme--light .fatwa-hero .button--outline { background: var(--theme-secondary-button); border-color: var(--theme-secondary-border); color: var(--ink); }
.fatwa-theme--light .fatwa-hero .button--outline:hover { background: rgb(255 255 255 / 60%); border-color: var(--ink); }
.fatwa-theme--dark .branch-subnav { background: rgb(var(--fatwa-deep)); }
.fatwa-theme--dark .release-family-link { color: var(--gold-500); }
.fatwa-release.fatwa-theme--light .fatwa-header-cta { background: var(--theme-header-button); border-color: var(--theme-header-button); color: var(--theme-header-button-ink); }
.fatwa-release.fatwa-theme--light .fatwa-header-cta:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.fatwa-release .branch-card__arrow { background: var(--card-action, var(--theme-action)); color: #fff; }
.fatwa-release .numbered-step p { color: rgb(255 255 255 / 85%); }
/* Stateful shop controls must respect the HTML hidden attribute. */
.timbuktu-storefront [hidden] { display: none !important; }
.fatwa-release .tb-checkout { width: min(760px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 2rem); padding: clamp(20px, 2.5vw, 28px); }
.fatwa-release .tb-checkout .tb-sheet-close { margin: 0; }
.fatwa-release .tb-checkout__heading { padding-bottom: 12px; }
.fatwa-release .tb-checkout__heading h2 { font-size: 2.5rem; line-height: 1.1; margin: 0 0 16px; }
.fatwa-release .tb-checkout section h3 { font-size: 1.8rem; margin: 16px 0 12px; }
.fatwa-release .tb-checkout__status { margin: 12px 0; }
.fatwa-release .tb-checkout-actions { margin-top: 16px; }
.fatwa-release .tb-order-review > p { margin: 0 0 12px; }
.fatwa-release .tb-checkout__status:empty, .fatwa-release .tb-quote-status:empty { display: none; }

/* Static logo positions; reveal the institution on hover, tap or keyboard. */
.fatwa-release.home-page .fatwa-hero:has(.family-directory) { min-height: 100svh; }
.fatwa-release.home-page .fatwa-hero > .family-directory { display: block; height: calc(100svh - var(--header-offset)); min-height: 0; padding-block: 24px 40px; }
.family-directory nav { width: 100%; height: 100%; }
.family-directory__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); height: 100%; gap: 24px 28px; list-style: none; margin: 0; padding: 0; }
.family-flip { min-width: 0; min-height: 0; height: auto; position: relative; perspective: 1000px; }
.family-flip__front, .family-flip__back { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 420ms ease; }
.family-flip__front { display: flex; align-items: center; justify-content: center; padding: 16px 12px; cursor: pointer; border: 0; border-radius: 0; background: transparent; color: inherit; transform: rotateY(0); }
.family-flip__front img { display: block; width: 100%; height: min(100%, 220px); max-width: 260px; object-fit: contain; }
.family-flip__back { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 18px; text-align: center; transform: rotateY(-180deg); pointer-events: none; }
.family-flip.is-open .family-flip__front { transform: rotateY(180deg); pointer-events: none; }
.family-flip.is-open .family-flip__back { transform: rotateY(0); pointer-events: auto; }
.fatwa-release .family-flip__back h2 { color: #fff; font-size: 1.6rem; font-weight: 500; line-height: 1.15; margin: 0 0 12px; }
.family-flip__back p { color: #dce9ec; font-size: .875rem; line-height: 1.55; margin: 0 0 18px; max-width: 28ch; text-wrap: balance; }
.family-flip__back a { color: #fff; font-size: .875rem; font-weight: 650; text-underline-offset: 5px; }
.family-flip :focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.family-flip__fallback { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: #fff; }
@media (max-width: 1000px) {
  .family-directory__grid { gap: 16px; }
  .family-flip__front { padding-inline: 8px; }
}
@media (max-width: 760px) {
  .fatwa-release.home-page .fatwa-hero > .family-directory { height: auto; padding-block: 16px 32px; }
  .family-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; height: auto; gap: 16px; }
  .family-flip { height: 200px; }
  .family-flip__front img { height: 148px; max-width: 170px; }
  .family-flip__back { padding: 24px 6px 12px; }
  .fatwa-release .family-flip__back h2 { font-size: 1.3rem; }
  .family-flip__back p { font-size: .8125rem; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .family-flip__front, .family-flip__back { transition: none; }
}
