/* Al Raheem CCB — site styles
   Identity: madder red + Sindhi indigo on unbleached cotton, arch-framed photographs,
   ajrak-inspired star band. Fonts: Fraunces (headings), Public Sans (text). */

:root {
  --madder: #9E2B25;
  --madder-deep: #7A1F1A;
  --indigo: #1D244D;
  --indigo-2: #2B3570;
  --saffron: #E8B04A;
  --cotton: #F7EFE2;
  --cotton-2: #EFE3CF;
  --paper: #FFFDF8;
  --ink: #1B1A22;
  --soft: #55525F;
  --line: #E2D5BF;
  --ok: #1E6B45;
  --err: #A3241C;
  --r: 14px;
  --arch: 999px 999px 14px 14px;
  --shadow: 0 1px 2px rgba(29,36,77,.06), 0 10px 30px -12px rgba(29,36,77,.22);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--cotton); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--madder); }
a:hover { color: var(--madder-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--indigo); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.soft { color: var(--soft); }
.al { color: var(--madder); text-decoration: underline; text-underline-offset: 3px; }
.kick { font: 700 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--madder); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; }
.kick::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lede { font-size: 1.15rem; color: var(--soft); max-width: 62ch; }
section { padding: clamp(56px, 8vw, 96px) 0; }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head.c { margin-inline: auto; text-align: center; }
.sec-head.c .kick::after { content: ""; width: 26px; height: 2px; background: currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-p { background: var(--madder); color: #fff; }
.btn-p:hover { background: var(--madder-deep); color: #fff; }
.btn-o { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-o:hover { background: var(--indigo); color: #fff; }
.btn-l { background: var(--cotton); color: var(--indigo); }
.btn-l:hover { background: #fff; color: var(--madder); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top strip + header */
.strip { background: var(--indigo); color: #D9DCEF; font-size: .86rem; }
.strip .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; flex-wrap: wrap; }
.strip a { color: #fff; text-decoration: none; }
.strip a:hover { text-decoration: underline; color: #fff; }
.strip span + span::before { content: "·"; margin: 0 10px; opacity: .6; }
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(247,239,226,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--indigo); }
.brand img { width: 46px; height: 46px; }
.brand b { font: 700 1.25rem/1 var(--serif); display: block; }
.brand small { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 8px 12px; border-radius: 999px; font-size: .97rem; }
.nav a:hover { background: var(--cotton-2); color: var(--indigo); }
.nav a[aria-current="page"] { color: var(--madder); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.nav .btn { margin-left: 8px; padding: 11px 18px; }
.nav .btn:hover { background: var(--madder-deep); color: #fff; }
.tog { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--indigo); cursor: pointer; }
.drawer { border-top: 1px solid var(--line); background: var(--cotton); }
.drawer nav { display: grid; padding: 10px 0 18px; }
.drawer a { padding: 13px 4px; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer a[aria-current="page"] { color: var(--madder); }
.drawer .btn { margin-top: 14px; justify-content: center; border: 0; }
@media (max-width: 980px) { .nav { display: none; } .tog { display: inline-flex; } }
@media (min-width: 981px) { .drawer { display: none !important; } }
@media (max-width: 640px) { .strip .hide-s { display: none; } }

/* Ajrak-inspired band */
.ajrak { height: 22px; background-color: var(--madder); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Crect width='44' height='22' fill='%239E2B25'/%3E%3Cpath d='M22 2l3 6 6 3-6 3-3 6-3-6-6-3 6-3z' fill='%231D244D'/%3E%3Ccircle cx='22' cy='11' r='1.8' fill='%23F7EFE2'/%3E%3Cpath d='M0 0h44M0 22h44' stroke='%231D244D' stroke-width='2'/%3E%3Ccircle cx='0' cy='11' r='2' fill='%23E8B04A'/%3E%3Ccircle cx='44' cy='11' r='2' fill='%23E8B04A'/%3E%3C/svg%3E"); background-repeat: repeat-x; }

/* Photos */
.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--cotton-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.arch { border-radius: var(--arch); }
.ph .tag { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(29,36,77,.82); color: #fff; font-size: .7rem; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ph figcaption:not(.tag) { padding: 10px 2px 0; font-size: .9rem; color: var(--soft); }

/* Hero */
.hero { padding: clamp(44px, 6vw, 80px) 0 clamp(56px, 7vw, 90px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -180px; top: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(232,176,74,.28), rgba(232,176,74,0) 65%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--madder); }
.hero .lede { margin-bottom: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--soft); }
.facts b { color: var(--indigo); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; position: relative; padding-bottom: 20px; }
.trio .ph { aspect-ratio: 3/4.1; box-shadow: var(--shadow); }
.trio .ph:nth-child(2) { margin-top: 56px; }
.trio .ph:nth-child(3) { margin-top: 18px; }
.chip { position: absolute; left: -18px; bottom: -34px; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; max-width: 250px; }
.chip b { font: 700 2rem/1 var(--serif); color: var(--madder); }
.chip span { font-size: .88rem; line-height: 1.35; color: var(--ink); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .trio { max-width: 560px; }
  .chip { left: 8px; bottom: -30px; }
}

/* Tagline band */
.tagband { background: var(--indigo); color: #fff; padding: 34px 0; }
.tagband p { font: italic 500 clamp(1.25rem, 2.4vw, 1.7rem)/1.35 var(--serif); margin: 0; text-align: center; }
.tagband p span { color: var(--saffron); }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.r > :first-child { order: 2; }
.split .ph { aspect-ratio: 4/5; max-width: 440px; width: 100%; justify-self: center; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.r > :first-child { order: 0; } .split .ph { max-width: 380px; } }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.mv div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.mv h3 { font-size: 1.1rem; margin-bottom: 6px; }
.mv p { margin: 0; font-size: .96rem; color: var(--soft); }
@media (max-width: 560px) { .mv { grid-template-columns: 1fr; } }

/* Programme cards */
.bg-paper { background: var(--paper); }
.bg-c2 { background: var(--cotton-2); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 999px 999px var(--r) var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.pcard .ph { aspect-ratio: 3/3.4; border-radius: 999px 999px 0 0; margin: 10px 10px 0; }
.pcard .tx { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard .n { font: 700 .78rem/1 var(--sans); color: var(--madder); letter-spacing: .12em; }
.pcard h3 { font-size: 1.08rem; margin: 8px 0; }
.pcard p { font-size: .92rem; color: var(--soft); margin: 0 0 12px; }
.pcard .more { margin-top: auto; font-weight: 600; color: var(--madder); font-size: .92rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.steps li::before { content: counter(s); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: #fff; font: 700 1.15rem/1 var(--serif); }
.steps b { display: block; color: var(--indigo); }
.steps span { color: var(--soft); font-size: .95rem; }

/* Values */
.vals { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.vals div { border-top: 3px solid var(--madder); background: var(--paper); padding: 18px; border-radius: 0 0 var(--r) var(--r); }
.vals b { font: 600 1.12rem/1.2 var(--serif); color: var(--indigo); display: block; margin-bottom: 6px; }
.vals span { font-size: .94rem; color: var(--soft); }

/* Goals */
.goals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: g; }
.goals li { counter-increment: g; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 18px 70px; position: relative; }
.goals li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font: 700 1.5rem/1 var(--serif); color: var(--madder); }
.goals h3 { font-size: 1.05rem; margin-bottom: 4px; }
.goals p { margin: 0; font-size: .94rem; color: var(--soft); }
@media (max-width: 760px) { .goals { grid-template-columns: 1fr; } }

/* Involve */
.inv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.inv article { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.inv .ph { aspect-ratio: 4/3; border-radius: 0; }
.inv .tx { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.inv .tx p { color: var(--soft); font-size: .95rem; }
.inv .tx a.btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .inv { grid-template-columns: 1fr; max-width: 520px; } }

/* Gallery */
.gal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gal .ph { aspect-ratio: 3/4; }
.gal-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.gal-full figure { margin: 0; }
.gal-full .ph { aspect-ratio: 3/3.9; }
.gal-full h3 { font-size: 1.02rem; margin: 12px 0 2px; }
.gal-full p { font-size: .88rem; color: var(--soft); margin: 0; }
@media (max-width: 860px) { .gal { grid-template-columns: repeat(3, 1fr); } .gal .ph:nth-child(n+7) { display: none; } }
@media (max-width: 520px) { .gal { grid-template-columns: repeat(2, 1fr); } .gal .ph:nth-child(n+5) { display: none; } }

.note { background: #fff; border-left: 4px solid var(--saffron); border-radius: 0 var(--r) var(--r) 0; padding: 14px 18px; font-size: .93rem; color: var(--soft); margin: 22px 0 0; }
.note b { color: var(--ink); }

/* Commitment band with photo */
.sunset { color: #fff; background: var(--indigo) radial-gradient(circle at 85% 30%, rgba(232,176,74,.22), transparent 55%); }
.sunset .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.sunset .ph { aspect-ratio: 3/3.7; max-width: 340px; width: 100%; justify-self: center; border: 6px solid rgba(255,255,255,.08); }
.sunset h2 { color: #fff; }
.sunset .kick { color: var(--saffron); }
.sunset p { color: #E4E6F3; }
@media (max-width: 800px) { .sunset .wrap { grid-template-columns: 1fr; } .sunset .ph { max-width: 300px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 600; color: var(--indigo); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--cotton); display: grid; place-items: center; font-size: 1.2rem; color: var(--madder); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--soft); }

/* CTA */
.cta { background: var(--madder); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 54px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #F6DDD8; margin: 0; }
.cta .btns { justify-content: flex-end; }
.cta .btn-o { border-color: #fff; color: #fff; }
.cta .btn-o:hover { background: #fff; color: var(--madder); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta .btns { justify-content: flex-start; } }

/* Page header */
.phd { background: var(--indigo); color: #fff; padding: clamp(44px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.phd .wrap { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.phd h1 { color: #fff; margin-bottom: 10px; }
.phd .kick { color: var(--saffron); }
.phd p { color: #D9DCEF; max-width: 62ch; margin: 0; font-size: 1.08rem; }
.phd .ph { width: 170px; aspect-ratio: 3/4; border: 4px solid rgba(255,255,255,.14); }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #B9BEDD; }
.crumbs a { color: #fff; }
@media (max-width: 700px) { .phd .wrap { grid-template-columns: 1fr; } .phd .ph { display: none; } }

/* Programme detail */
.pnav { display: flex; flex-wrap: wrap; gap: 8px; }
.pnav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--indigo); font-size: .92rem; font-weight: 500; }
.pnav a:hover { border-color: var(--madder); color: var(--madder); }
.prog { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 52px); padding: 46px 0; border-top: 1px solid var(--line); }
.prog:first-of-type { border-top: 0; }
.prog .pics { display: grid; gap: 14px; align-content: start; position: sticky; top: 100px; }
.prog .pics .ph { aspect-ratio: 3/3.9; }
.prog .pics .ph.sm { aspect-ratio: 4/3; }
.prog .n { font: 700 .8rem/1 var(--sans); letter-spacing: .14em; color: var(--madder); }
.prog h2 { margin-top: 8px; }
.prog h3 { font-size: 1.08rem; margin: 22px 0 10px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--madder) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.impact { background: var(--indigo); color: #fff; border-radius: var(--r); padding: 18px 20px; margin-top: 22px; }
.impact b { color: var(--saffron); display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.impact p { margin: 0; color: #E4E6F3; }
@media (max-width: 820px) { .prog { grid-template-columns: 1fr; } .prog .pics { position: static; grid-template-columns: 1fr 1fr; } .prog .pics .ph, .prog .pics .ph.sm { aspect-ratio: 3/3.6; } }

/* Fill boxes */
.fill { border: 2px dashed #C9A15A; background: #FFF8E8; border-radius: var(--r); padding: 18px 20px; margin: 16px 0; }
.fill b { display: inline-block; background: #C9A15A; color: #fff; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.fill h4 { font-family: var(--sans); font-size: 1rem; margin: 0 0 4px; color: var(--ink); }
.fill p { margin: 0; font-size: .93rem; color: #6A5730; }
.fill i { display: block; margin-top: 8px; font-size: .9rem; color: #806A3D; }

/* Info table */
.info { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.info th, .info td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info th { width: 36%; color: var(--soft); font-weight: 500; background: var(--paper); }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }

.leader { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.leader .av { width: 72px; height: 72px; border-radius: 50%; background: var(--indigo); color: var(--saffron); display: grid; place-items: center; font: 700 1.5rem/1 var(--serif); flex: none; }
.leader b { font: 600 1.2rem/1.2 var(--serif); color: var(--indigo); display: block; }
.leader span { color: var(--soft); font-size: .94rem; }

/* Contact & forms */
.cgrid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .cgrid { grid-template-columns: 1fr; } }
.clist { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.clist li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.clist .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--cotton); color: var(--madder); display: grid; place-items: center; }
.clist small { display: block; color: var(--soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.clist a, .clist span.v { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.clist a:hover { color: var(--madder); }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--cotton-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.fld label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
.fld label span { color: var(--soft); font-weight: 400; }
.fld input, .fld select, .fld textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #CFC2AA; border-radius: 10px; background: var(--paper); color: var(--ink); }
.fld textarea { min-height: 140px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--indigo); outline: 3px solid rgba(43,53,112,.18); outline-offset: 0; }
.fld [aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-size: .88rem; margin-top: 5px; }
.chk { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .93rem; }
.chk input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--madder); }
.hp { position: absolute; left: -9999px; }
.alert { background: #FCEBE9; border: 1px solid #E9B7B1; border-radius: 12px; padding: 14px 16px; font-size: .94rem; }
.alert strong { display: block; color: var(--err); margin-bottom: 4px; }
.success { background: #EAF4EE; border: 1px solid #B6D8C3; border-radius: 14px; padding: 22px; }
.success h3 { color: var(--ok); }
.success button { margin-top: 10px; font: inherit; font-weight: 600; background: var(--indigo); color: #fff; border: 0; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.u1 { margin: 0; }

/* Legal */
.law { max-width: 780px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0; }
.law h2 { font-size: 1.45rem; margin-top: 2em; }
.psum { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--madder); border-radius: 0 var(--r) var(--r) 0; padding: 18px 22px; margin: 22px 0; }
.psum h2, .ptoc h2 { margin-top: 0; font-size: 1.15rem; }
.psum ul { margin: 0; }
.ptoc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.ptoc ol { columns: 2; margin: 0; }
@media (max-width: 560px) { .ptoc ol { columns: 1; } }
.paddr { font-style: normal; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }

/* Footer */
.ftr { background: #141936; color: #C5C9E2; padding: 0 0 24px; font-size: .95rem; }
.ftr .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; padding: 54px 0 34px; }
.ftr h2 { font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); margin-bottom: 16px; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; color: #fff; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr .brand { color: #fff; margin-bottom: 14px; }
.ftr .brand small { color: #9EA4C8; }
.ftr address { font-style: normal; display: grid; gap: 8px; }
.ftr .bot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .86rem; color: #9EA4C8; }
@media (max-width: 900px) { .ftr .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr .top { grid-template-columns: 1fr; } }

.btt { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--madder); color: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; z-index: 40; }
.btt[hidden] { display: none; }
.btt:hover { background: var(--madder-deep); }

.e404 { text-align: center; padding: 90px 0; }
.e404 b { font: 700 6rem/1 var(--serif); color: var(--madder); display: block; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s ease both; }
  .trio .ph { animation: rise .8s ease both; }
  .trio .ph:nth-child(2) { animation-delay: .12s; }
  .trio .ph:nth-child(3) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.nav a.btn-p, .drawer a.btn-p { color: #fff; }
.phd p.kick { font-size: .78rem; color: var(--saffron); }
.phd p.crumbs { font-size: .85rem; color: #B9BEDD; }
@media (max-width: 560px) { .ph .tag { font-size: .58rem; padding: 3px 7px; bottom: 6px; letter-spacing: .02em; } .trio .ph .tag { display: none; } .trio::after { content: "Illustrative images"; position: absolute; right: 0; top: -22px; font-size: .7rem; color: var(--soft); } }
