/* Mufti of Australia: site styles */
:root {
  --green-900: #0b3d22;
  --green-800: #0f4f2c;
  --green-700: #146b3a;
  --green-100: #e6f1ea;
  --maroon: #8e1b22;
  --gold: #c8a24a;
  --gold-soft: #f3e7c6;
  --cream: #faf6ec;
  --ink: #1d2420;
  --muted: #5b655f;
  --line: #e3ddcd;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 40, 25, .06), 0 8px 24px rgba(15, 40, 25, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Amiri", sans-serif;
  --arabic: "Amiri", "Traditional Arabic", "Noto Naskh Arabic", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.7 var(--sans); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--maroon); }
h1, h2, h3, h4, h5 { font-family: var(--serif); color: var(--green-900); line-height: 1.15; margin: 1.6em 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
[dir="rtl"], :lang(ar) { font-family: var(--arabic); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }

/* ---------- header */
.topbar { background: var(--green-900); color: #d9e7de; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.tb-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.social { display: inline-flex; gap: .5rem; align-items: center; }
.social a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: inherit; }
.social svg { width: 16px; height: 16px; }
.site-head { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-head .topbar { position: relative; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--green-900); }
.brand img { width: 60px; height: 60px; }
.brand strong { display: block; font: 700 1.5rem/1.1 var(--serif); }
.brand small { display: block; font-size: .82rem; color: var(--muted); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: .25rem; }
.site-nav > ul > li { position: relative; display: flex; align-items: center; }
.site-nav a { display: block; padding: .6rem .9rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.site-nav > ul > li > a.active { color: var(--green-700); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.site-nav a:hover { color: var(--green-700); background: var(--green-100); }
.sub-toggle { display: none; }
.site-nav .sub { position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.site-nav > ul > li:nth-last-child(-n+2) .sub { left: auto; right: 0; }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub a { font-weight: 400; }
.site-nav .sub a[aria-current] { color: var(--green-700); font-weight: 600; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .topbar .wrap > span:first-child { display: none; }
  .tb-links { width: 100%; justify-content: space-between; gap: .75rem; font-size: .8rem; }
  .tb-links > a[href^="mailto"] { display: none; }
  .bar { min-height: 70px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 1.25rem; }
  .brand small { font-size: .72rem; max-width: 210px; }
  .menu-toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
  .menu-toggle span:first-child, .menu-toggle span:first-child::before, .menu-toggle span:first-child::after { display: block; width: 20px; height: 2px; background: var(--green-900); position: relative; content: ""; transition: .2s; }
  .menu-toggle span:first-child::before { position: absolute; top: -6px; }
  .menu-toggle span:first-child::after { position: absolute; top: 6px; }
  .menu-toggle[aria-expanded="true"] span:first-child { background: transparent; }
  .menu-toggle[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow-y: auto; display: none; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; padding: .5rem 16px 1rem; }
  .site-nav > ul > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .site-nav > ul > li > a { flex: 1; padding: .9rem .25rem; }
  .site-nav > ul > li > a.active { box-shadow: none; }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
  .sub-toggle::before { content: ""; width: 9px; height: 9px; border: solid var(--green-900); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: .2s; }
  .sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
  .site-nav .sub { position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .6rem .75rem; }
  .site-nav .has-sub.open .sub { display: block; }
}

/* ---------- buttons */
.btn { display: inline-block; padding: .7rem 1.35rem; border-radius: 999px; background: var(--green-700); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--green-700); cursor: pointer; font: inherit; font-weight: 600; line-height: 1.3; transition: .15s; }
.btn:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
.btn.gold:hover { background: #d9b65e; border-color: #d9b65e; color: var(--green-900); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn.ghost-dark { background: transparent; border-color: var(--green-700); color: var(--green-700); }
.btn.ghost-dark:hover { background: var(--green-700); color: #fff; }

/* ---------- page header band */
.page-head { background: radial-gradient(1000px 300px at 85% -20%, rgba(200, 162, 74, .25), transparent 70%), linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; padding: 2.4rem 0 2.6rem; position: relative; }
.page-head::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 22px); opacity: .55; }
.page-head h1 { color: #fff; margin: .3rem 0 0; }
.crumbs { font-size: .9rem; color: #cfe1d5; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- generic content */
.content { padding: 2.5rem 0 4rem; max-width: 900px; }
.content.wide { max-width: none; width: 100%; padding: 0; }
.content > :first-child { margin-top: 0; }
.content blockquote { margin: 1.5em 0; padding: 1em 1.25em; background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; }
.content ul, .content ol { padding-left: 1.25em; }
.content h5 a { text-decoration: none; }
.content h5 a::before { content: "→ "; color: var(--gold); }
.content iframe { width: 100%; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; min-height: 360px; background: var(--white); }
.back { margin-top: 3rem; }

/* figures & galleries */
figure.m { margin: 1.5rem 0; position: relative; }
figure.m img { border-radius: 10px; box-shadow: var(--shadow); }
figure.m figcaption { font-size: .92rem; color: var(--muted); margin-top: .55rem; line-height: 1.45; }
.content > figure.m { max-width: 560px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; align-items: start; }
.gallery figure.m { margin: 0; }
.gallery figure.m img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery.tight { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.gallery.shelf { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.5rem 1.25rem; }
.gallery.shelf figure.m img { aspect-ratio: 389 / 550; object-fit: cover; transition: transform .2s, box-shadow .2s; }
.gallery.shelf figure.m a:hover img { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 40, 25, .18); }
.gallery.shelf figcaption { font-weight: 600; color: var(--ink); }
.badge { position: absolute; top: .5rem; right: .5rem; z-index: 2; background: var(--maroon); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: .15rem .5rem; border-radius: 999px; }
a[href$=".jpg"] img, a[href$=".png"] img, a[href$=".jpeg"] img { cursor: zoom-in; }

/* video */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: var(--shadow); margin: 1.5rem 0; }
.video-grid .yt { margin: 0; }
.yt button { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 50px; border-radius: 14px; background: var(--maroon); }
.yt .play::after { content: ""; position: absolute; left: 29px; top: 15px; border: 10px solid transparent; border-left: 16px solid #fff; }
.yt button:hover .play, .yt button:focus-visible .play { background: #b3232c; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; min-height: 0; border-radius: 0; }

/* ---------- forms */
.gm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin: 1.5rem 0 2rem; padding: 1.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.gm-form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.req { color: var(--maroon); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #cdc6b4; border-radius: 8px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green-700); border-color: var(--green-700); }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-ok { grid-column: 1 / -1; background: var(--green-100); border-radius: 8px; padding: .8rem 1rem; margin: 0; }
@media (max-width: 640px) { .gm-form { grid-template-columns: 1fr; padding: 1.1rem; } }

/* contact */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; margin-bottom: 2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h2 { margin-top: 0; }
.card.info { background: linear-gradient(160deg, var(--green-900), var(--green-700)); color: #fff; border: 0; }
.card.info h2, .card.info a { color: #fff; }
.card .gm-form { grid-template-columns: 1fr; background: none; border: 0; padding: 0; margin: 0; }
.contact-list dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-soft); margin-top: 1rem; }
.contact-list dd { margin: .1rem 0 0; font-size: 1.15rem; }
.social.big a { width: 40px; height: 40px; background: rgba(255, 255, 255, .12); }
.social.big svg { width: 20px; height: 20px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Qur'an player */
.quran-player { margin: 1.5rem 0 2rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quran-player .now { background: var(--green-900); color: #fff; padding: 1rem 1.25rem; }
.quran-player .now .eyebrow { color: var(--gold-soft); margin: 0; }
.now-title { font: 700 1.4rem/1.2 var(--serif); margin: .2rem 0 .6rem; }
.quran-player audio { width: 100%; }
.sura-list { list-style: none; margin: 0; padding: .5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .25rem; max-height: 560px; overflow-y: auto; }
.sura-list li { display: flex; align-items: center; border-radius: 8px; }
.sura-list li:hover, .sura-list li.playing { background: var(--green-100); }
.sura { all: unset; flex: 1; display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; cursor: pointer; }
.sura:focus-visible { outline: 2px solid var(--green-700); border-radius: 8px; }
.sura .n { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 50%; background: var(--cream); border: 1px solid var(--gold); font-size: .8rem; font-weight: 700; color: var(--green-900); }
.sura-list li.playing .n { background: var(--gold); }
.dl { font-size: .8rem; padding: .3rem .6rem; color: var(--muted); }

/* ---------- home */
.hero { background: radial-gradient(900px 420px at 90% 10%, rgba(200, 162, 74, .28), transparent 65%), linear-gradient(140deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-700) 100%); color: #fff; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 3rem; align-items: center; padding: 4.5rem 0; }
.hero h1 { color: #fff; margin: .4rem 0 1rem; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.hero h1 span { color: var(--gold); }
.bismillah { font-family: var(--arabic); font-size: 2rem; color: var(--gold-soft); margin: 0 0 .75rem; }
.lead { font-size: 1.2rem; color: #e4efe8; max-width: 38em; }
.ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.portrait { margin: 0; justify-self: center; position: relative; }
.portrait::before { content: ""; position: absolute; inset: -14px; border: 2px solid var(--gold); border-radius: 50% 50% 18px 18px; opacity: .7; }
.portrait img { border-radius: 50% 50% 14px 14px; width: min(380px, 80vw); aspect-ratio: 434 / 425; object-fit: cover; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--maroon); margin: 0 0 .25rem; }
.eyebrow.light { color: var(--gold); }
.band { padding: 4.5rem 0; }
.band.cream { background: var(--cream); }
.band.green { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; }
.band.green h2 { color: #fff; margin-top: 0; }
.arabic { font-family: var(--arabic); font-size: 2rem; color: var(--green-900); margin-bottom: .5rem; line-height: 1.8; }
.arabic.small { font-size: 1.35rem; color: var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tile { display: flex; flex-direction: column; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.tile:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--ink); }
.tile svg { width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--green-100); fill: var(--green-700); stroke: var(--green-700); }
.tile h3 { margin: 1rem 0 .4rem; }
.tile p { color: var(--muted); flex: 1; }
.tile .more { color: var(--green-700); font-weight: 700; }
.tile .more::after { content: " →"; }
.feature { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; padding: 1.5rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); margin-bottom: 2.5rem; }
.feature h3 { margin-top: 0; }
.feature-img img { border-radius: 10px; box-shadow: var(--shadow); }
.news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.news { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.news h3 { margin: .2rem 0 .6rem; }
.news .when { font-size: .82rem; font-weight: 700; color: var(--maroon); letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.news .gallery { margin-bottom: 0; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta p { margin: 0; }
.cta > div { max-width: 640px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr 1fr; } .news-list { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; padding: 3rem 0; gap: 2.5rem; }
  .portrait { order: -1; }
  .portrait img { width: min(280px, 70vw); }
  .band { padding: 3rem 0; }
  .feature { grid-template-columns: 1fr; }
  .feature-img { max-width: 220px; }
}
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .video-grid { grid-template-columns: 1fr; } .gallery.shelf { grid-template-columns: 1fr 1fr; } }

/* ---------- design-review additions */
.content, .news { overflow-wrap: break-word; }
.intro { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.content .ctas { margin: 0 0 2rem; }

/* linked cards (e.g. khutbah index) */
.gallery.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
figure.m.linkcard a { display: block; height: 100%; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
figure.m.linkcard a:hover { transform: translateY(-4px); border-color: var(--gold); }
figure.m.linkcard img { border-radius: 0; box-shadow: none; aspect-ratio: 3 / 2; }
figure.m.linkcard figcaption { font: 700 1.3rem/1.25 var(--serif); color: var(--green-900); margin: 0; padding: 1rem 1.1rem 1.2rem; }
figure.m.linkcard figcaption::after { content: "Read more →"; display: block; margin-top: .5rem; font: 700 .85rem var(--sans); color: var(--green-700); }

/* video titles */
.video { margin: 1.5rem 0; }
.video-grid .video { margin: 0; }
.video .yt { margin: 0; }
.vt { font-weight: 600; margin: .6rem 0 0; line-height: 1.4; }

/* prayer times */
.prayer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.content:has(.prayer-grid) { max-width: none; }
figure.prayer { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
figure.prayer figcaption { background: var(--green-800); color: #fff; font: 700 1.25rem var(--serif); padding: .6rem 1rem; }
.content figure.prayer iframe { border: 0; border-radius: 0; height: 360px; min-height: 0; display: block; }

/* contact card label on green */
.card.info .eyebrow { color: var(--gold); }

/* home news: three photos, the rest behind a toggle */
.news .gallery.tight { grid-template-columns: repeat(3, 1fr); }
.news .gallery.n1 { grid-template-columns: minmax(0, 1fr); max-width: 60%; }
.news .gallery.n2 { grid-template-columns: repeat(2, 1fr); }
.news .gallery.tight figure.m img { aspect-ratio: 4 / 3; }
.news .gallery.tight figcaption { font-size: .8rem; }
.more-photos { margin-top: .9rem; }
.more-photos summary { cursor: pointer; font-weight: 700; color: var(--green-700); font-size: .92rem; }
.more-photos summary:hover { color: var(--maroon); }
.more-photos .gallery { margin-top: .75rem; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.svc { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.svc svg, .svc-head svg { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: var(--green-100); fill: var(--green-700); }
.svc h3 { margin: .9rem 0 .2rem; }
.svc-sub { font-weight: 600; color: var(--maroon); font-size: .95rem; }
.svc p:last-child { margin: 0; }
.svc-wide { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; padding: 1.5rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.svc-wide figure.m { margin: 0; }
.svc-head { display: flex; align-items: center; gap: .9rem; }
.svc-head h3 { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 1.25rem; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border: solid var(--green-700); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
@media (max-width: 700px) { .svc-grid, .svc-wide { grid-template-columns: 1fr; } .svc-wide figure.m { max-width: 200px; } }

/* literature hub */
.lit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.content:has(.lit-grid) { max-width: 1100px; }
.lit { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.lit:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--ink); }
.lit-img { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--green-900), var(--green-700)); overflow: hidden; }
.lit-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.lit-img svg { width: 64px; height: 64px; fill: var(--gold); }
.lit-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.3rem; }
.lit-body h3 { margin: 0 0 .35rem; }
.lit-body p { color: var(--muted); flex: 1; }
.lit .more { color: var(--green-700); font-weight: 700; }
.lit .more::after { content: " →"; }

/* ---------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 20, 12, .92); display: grid; place-items: center; padding: 2rem; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- footer */
.site-foot { background: var(--green-900); color: #cfe1d5; padding: 3.5rem 0 0; font-size: .97rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-foot h2 { color: var(--gold); font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 1rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: var(--gold); text-decoration: underline; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .45rem; }
.foot-logo { border-radius: 50%; background: #fff; margin-bottom: 1rem; }
.site-foot .social a { background: rgba(255, 255, 255, .1); width: 34px; height: 34px; }
.legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding: 1.25rem 0 1.5rem; font-size: .85rem; color: #9fb8a8; }
@media (max-width: 900px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .page-head::after { display: none; } .page-head { background: none; color: var(--ink); } .page-head h1 { color: var(--ink); } }

/* Image positions and generated PDF covers (set by the Site Editor) */
.img-float-left { float: left; max-width: min(45%, 360px); margin: .3rem 1.5rem 1rem 0 !important; }
.img-float-right { float: right; max-width: min(45%, 360px); margin: .3rem 0 1rem 1.5rem !important; }
.img-center { margin-left: auto !important; margin-right: auto !important; text-align: center; max-width: 560px; }
.img-center img { margin: 0 auto; }
figure.m.img-full, img.img-full { max-width: none !important; width: 100%; }
img.img-center { display: block; }
.img-full img { width: 100%; }
.content::after { content: ""; display: table; clear: both; }
.pdf-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 389 / 550; padding: 1.25rem; border-radius: 10px; text-align: center; background: linear-gradient(160deg, var(--green-d, #0b3d22), #146b3a); color: #fff; box-shadow: var(--shadow); border: 3px solid #c8a24a; outline: 1px solid rgba(255,255,255,.35); outline-offset: -9px; transition: transform .2s, box-shadow .2s; }
.pdf-cover span { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
a:hover > .pdf-cover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 40, 25, .18); }
@media (max-width: 560px) { .img-float-left, .img-float-right { float: none; max-width: 100%; margin: 1rem 0 !important; } }
