/* Montserrat: SIL Open Font License 1.1, https://openfontlicense.org. Copyright 2011 The Montserrat Project Authors. */
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(montserrat-400.woff) format("woff"); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(montserrat-600.woff) format("woff"); }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(montserrat-800.woff) format("woff"); }
:root {
  --indigo: #2e3192; --indigo-dark: #20236b; --crimson: #be1e2d; --maroon: #7a0000;
  --ink: #1b1b29; --soft: #5b5c70; --line: #dcdde9; --tint: #f3f3fa; --paper: #fff;
  --ok: #17663f; --warn: #8a5200; --radius: 14px;
  --font: Montserrat, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--indigo); }
a:hover { color: var(--crimson); }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; }
small, .muted { color: var(--soft); font-size: .875rem; }
.skip, .sr { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.trap { position: absolute; left: -9999px; }

/* Buttons and forms */
.btn { display: inline-block; font: inherit; font-weight: 600; padding: .55em 1.1em; border-radius: var(--radius); border: 2px solid var(--indigo); background: var(--indigo); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--indigo); }
.btn.ghost:hover { background: var(--tint); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--indigo); text-decoration: underline; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.inline { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
label { display: block; font-weight: 600; margin-bottom: 14px; }
label small { display: block; font-weight: 400; margin-top: 4px; }
.req { color: var(--crimson); }
input, select, textarea { font: inherit; font-weight: 400; width: 100%; display: block; margin-top: 4px; padding: .55em .7em; border: 1px solid #a9abc2; border-radius: 6px; background: #fff; color: var(--ink); }
form.inline select { width: auto; margin: 0; }
label.check { font-weight: 400; }
label.check input { width: auto; display: inline-block; margin: 0 6px 0 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.grid .wide { grid-column: 1 / -1; }

/* Messages */
.flash { padding: 12px 16px; border-left: 4px solid var(--indigo); background: var(--tint); margin-bottom: 16px; border-radius: 4px; }
.flash.ok { border-color: var(--ok); background: #edf7f1; }
.flash.warn { border-color: #d98a00; background: #fff6e3; }
.flash.err { border-color: var(--crimson); background: #fdeeee; }
.note { background: var(--tint); padding: 10px 14px; border-radius: 6px; }
.ready { color: var(--ok); font-weight: 600; }
.secret { font: 600 1.1rem/1.5 ui-monospace, Consolas, monospace; background: var(--tint); padding: 10px 14px; border-radius: 6px; overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 99px; background: var(--tint); font-size: .85rem; white-space: nowrap; }
.t-active, .t-passed, .t-approved, .t-paid, .t-confirmed, .t-accepted, .t-completed, .t-adopted, .t-held { background: #e0f2e8; color: var(--ok); }
.t-failed, .t-removed, .t-reversed, .t-revoked, .t-declined, .t-suspended { background: #fbe3e3; color: var(--maroon); }
.t-open, .t-new, .t-submitted, .t-scheduled, .t-under_review { background: #fff0cf; color: var(--warn); }

/* Tables */
.scroll { overflow-x: auto; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--tint); font-size: .875rem; }
tfoot td { font-weight: 700; border-top: 2px solid var(--indigo); }
.num { text-align: right; white-space: nowrap; }

/* Portal */
.portal { background: var(--tint); }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px; }
.topbar .brand img { height: 44px; width: auto; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; text-align: right; line-height: 1.25; }
.who small { display: block; }
.menu { display: none; font: inherit; font-weight: 600; padding: .5em .9em; border: 2px solid var(--indigo); border-radius: var(--radius); background: #fff; color: var(--indigo); }
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 66px); }
.shell > nav { background: #17194f; padding: 14px 0; font-size: .93rem; }
.shell > nav a, .shell > nav summary { display: block; margin: 1px 10px; border-radius: 10px; padding: 8px 12px; color: #fff; text-decoration: none; cursor: pointer; }
.shell > nav summary { display: list-item; list-style-position: inside; font-weight: 600; }
.shell > nav details a { padding-left: 28px; }
.shell > nav a:hover, .shell > nav summary:hover { background: rgba(255, 255, 255, .12); }
.shell > nav a[aria-current] { background: #fff; color: var(--indigo-dark); font-weight: 600; }
.shell > nav :focus-visible { outline-color: #fff; outline-offset: -3px; }
.shell > main { padding: 26px clamp(16px, 3vw, 40px) 60px; max-width: 1200px; }
.portal main > .scroll { background: #fff; border-radius: var(--radius); }
.pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pagehead h1 { margin: 0; }
.pagehead p { margin: 2px 0 0; }
.card, .tile, .portal main > .scroll, .portal main > form.grid, .empty { border: 1px solid var(--line); }
.card { background: #fff; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.portal main > form.grid { background: #fff; border-radius: var(--radius); padding: 22px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: #fff; border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.tile strong { display: block; font-size: 1.45rem; color: var(--indigo); font-variant-numeric: tabular-nums; }
.tile span { color: var(--soft); font-size: .9rem; }
.figure { font-size: 1.6rem; font-weight: 700; color: var(--indigo); }
.search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search input { width: min(320px, 100%); margin: 0; }
.empty { background: #fff; padding: 28px; border-radius: var(--radius); text-align: center; color: var(--soft); }
dl { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; margin: 0; }
dt, dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--soft); padding-right: 16px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.checks { list-style: none; padding: 0; margin: 0 0 14px; }
ul.checks li { padding: 9px 12px; border-left: 4px solid var(--line); margin-bottom: 6px; background: var(--tint); }
ul.checks .stop, ul.checks .action { border-color: var(--crimson); }
ul.checks .warn, ul.checks .soon { border-color: #d98a00; }
ul.checks .ok { border-color: var(--ok); }
.lvl { display: inline-block; min-width: 108px; font-size: .8rem; font-weight: 700; }
.action .lvl { color: var(--crimson); } .soon .lvl { color: var(--warn); } .ok .lvl { color: var(--ok); }

/* Public website */
.site { --gutter: clamp(16px, 5vw, 80px); --gold: #e8a33d; }
.site, .auth { font-size: 1.0625rem; line-height: 1.65; }
.site [id] { scroll-margin-top: 110px; }
.site h1, .site h2 { font-weight: 800; letter-spacing: -.025em; }
.site .btn, .auth .btn { border-radius: 99px; padding: .75em 1.5em; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.site .btn:hover { transform: translateY(-1px); }
.site .btn.light { background: #fff; border-color: #fff; color: var(--indigo-dark); }
.site .btn.light:hover { background: #ffe9d1; border-color: #ffe9d1; }
.site .btn.outline { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.site .btn.outline:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.sitehead { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 10px var(--gutter); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(23, 25, 79, .08); }
.sitehead .brand img { width: 168px; }
.sitehead nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 1rem; }
.sitehead nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 99px; }
.sitehead nav a:not(.btn):hover, .sitehead nav a[aria-current] { background: var(--tint); color: var(--indigo); }
.sitehead nav .btn { margin-left: 10px; padding: .55em 1.3em; }
.sitehead .menu { border-radius: 99px; }
.site main > .flash { margin: 16px var(--gutter); }
.kicker, .eyebrow { margin: 0 0 .7em; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--crimson); }
.lead { font-size: 1.2rem; max-width: 58ch; }

/* Full-width photo at the top of the home page */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(860px, calc(100vh - 66px)); padding: clamp(72px, 9vh, 120px) var(--gutter) 0; color: #fff; background: #17194f; overflow: hidden; }
.heroimg, .mottoimg, .ctaimg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.heroimg { object-position: 50% 30%; animation: settle 14s ease-out both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 16, 52, .88) 0%, rgba(15, 16, 52, .55) 45%, rgba(15, 16, 52, .05) 80%), linear-gradient(0deg, rgba(15, 16, 52, .85) 0%, transparent 45%); }
.herotext { max-width: 700px; padding-bottom: clamp(28px, 5vh, 56px); }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: .4em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero .lead { color: #eceaf6; margin-bottom: 1.8em; }
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 clamp(24px, 4vh, 40px); padding: 22px 6px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 22px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px); max-width: 980px; }
.milestones div { padding: 0 22px; }
.milestones div + div { border-left: 1px solid rgba(255, 255, 255, .22); }
.milestones dt, .milestones dd { padding: 0; border: 0; }
.milestones dt { font-size: .85rem; color: #d8d6ec; }
.milestones dd { font-size: 1.2rem; font-weight: 800; color: #fff; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

.band { padding: clamp(56px, 8vw, 112px) var(--gutter); }
.band h2, .cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.1; color: var(--indigo-dark); }
.tint { background: #f6f3ee; }
.sectionhead { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sectionhead p:last-child { margin-bottom: 0; color: var(--soft); }
.more { font-weight: 700; color: var(--crimson); text-decoration: none; }

/* About, with a photo and a badge */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.aboutimg { position: relative; margin: 0; }
.aboutimg img, .feature img { width: 100%; border-radius: 28px; object-fit: cover; }
.aboutimg img { aspect-ratio: 4 / 5; object-position: 50% 45%; }
.aboutimg figcaption { position: absolute; right: -18px; bottom: 32px; max-width: 220px; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(23, 25, 79, .18); font-size: .95rem; }
.aboutimg figcaption strong { display: block; font-size: 1.3rem; color: var(--crimson); }

/* What the Trust supports */
.supports { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: stretch; }
.feature { position: relative; margin: 0; min-height: 460px; overflow: hidden; border-radius: 28px; }
.feature img { position: absolute; inset: 0; height: 100%; object-position: 50% 60%; border-radius: 0; transition: transform .6s; }
.feature:hover img { transform: scale(1.04); }
.feature figcaption { position: absolute; inset: auto 0 0; padding: 90px 28px 28px; color: #eceaf6; background: linear-gradient(0deg, rgba(15, 16, 52, .92), transparent); }
.feature figcaption strong { display: block; font-size: 1.5rem; line-height: 1.2; color: #fff; margin-bottom: .3em; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pillar { display: flex; flex-direction: column; padding: 28px; border-radius: 24px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 0 rgba(23, 25, 79, .06); transition: transform .25s, box-shadow .25s; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(23, 25, 79, .12); color: var(--ink); }
.pillar h3 { font-size: 1.25rem; font-weight: 800; color: var(--indigo-dark); margin: 18px 0 .35em; }
.pillar p { flex: 1; margin-bottom: 1em; color: var(--soft); }
.icon { width: 52px; height: 52px; padding: 12px; border-radius: 16px; color: var(--crimson); background: #fbeceb; }

/* Motto band */
.motto { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: 460px; padding: 80px var(--gutter); text-align: center; color: #fff; }
.motto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 50%, rgba(15, 16, 52, .55), rgba(15, 16, 52, .85)); }
.mottoimg { object-position: 50% 45%; }
.motto .mark { font-size: 6rem; line-height: .6; margin: 0; color: var(--gold); font-weight: 800; }
.motto blockquote { margin: .1em 0 .3em; font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 800; font-style: italic; letter-spacing: -.03em; line-height: 1.05; }
.motto p { margin: 0; color: #e4e2f2; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; font-weight: 700; }

.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.meters strong { display: block; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--indigo); }
.meter { display: block; height: 10px; margin: 18px 0; border-radius: 99px; }
.m10 { background: linear-gradient(90deg, var(--crimson) 10%, #e2e0ea 10%); }
.m25 { background: linear-gradient(90deg, var(--crimson) 25%, #e2e0ea 25%); }
.m40 { background: linear-gradient(90deg, var(--crimson) 40%, #e2e0ea 40%); }

/* How the Trust works */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; counter-reset: none; }
.steps li { position: relative; padding: 28px; border-radius: 24px; background: #fff; }
.steps li span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 800; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -22px; width: 22px; border-top: 2px dashed #c9c6d9; }
.steps h3 { font-size: 1.15rem; font-weight: 800; color: var(--indigo-dark); margin: 16px 0 .3em; }
.steps p { margin: 0; color: var(--soft); }

/* Call to action with a photo */
.cta { position: relative; isolation: isolate; overflow: hidden; margin: clamp(56px, 8vw, 112px) var(--gutter); padding: clamp(40px, 6vw, 80px); border-radius: 32px; color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 16, 52, .92) 0%, rgba(15, 16, 52, .7) 55%, rgba(15, 16, 52, .35) 100%); }
.ctaimg { object-position: 50% 40%; }
.cta > div { max-width: 620px; }
.cta h2 { color: #fff; }
.cta p { color: #e4e2f2; margin-bottom: 1.6em; }

/* Inner pages: a photo banner */
.intro { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 12vw, 150px) var(--gutter) clamp(48px, 7vw, 88px); color: #fff; background: #17194f center 45% / cover no-repeat; }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 16, 52, .9), rgba(15, 16, 52, .55) 60%, rgba(15, 16, 52, .25)); }
.intro h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.06; margin-bottom: .3em; }
.intro p { margin: 0; max-width: 60ch; color: #eceaf6; }
.p-objectives { background-image: url(photos/family-hilltop.jpg); }
.p-governance { background-image: url(photos/walk-sunset.jpg); background-position: center 30%; }
.p-forms { background-image: url(photos/walk-together.jpg); background-position: center 35%; }
.p-notices { background-image: url(photos/hand-in-hand.jpg); background-position: center 30%; }
.p-contact { background-image: url(photos/hands-held.jpg); }
.p-privacy { background-image: url(photos/hands-gentle.jpg); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; color: var(--indigo-dark); margin-top: 1.8em; }
.prose > h2:first-child, .prose > article:first-child h2 { margin-top: 0; }
.withmenu { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: clamp(32px, 6vw, 96px); }
.pagemenu { position: sticky; top: 120px; align-self: start; display: grid; gap: 2px; font-size: 1rem; }
.pagemenu a { padding: 8px 14px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.pagemenu a:hover { background: var(--tint); }
.objectives { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 18px; }
.objectives article { padding: 28px; border-radius: 24px; background: #f6f3ee; transition: transform .25s, box-shadow .25s; }
.objectives article:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(23, 25, 79, .1); }
.objectives article:target { background: #fde9d7; }
.objectives h2 { font-size: 1.35rem; color: var(--indigo-dark); margin-bottom: .4em; }
.objectives p { margin: 0; }
.objectives .clause { font-size: .85rem; font-weight: 700; color: var(--crimson); margin-bottom: .5em; letter-spacing: .06em; text-transform: uppercase; }
.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.panel { padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(23, 25, 79, .08); }
.contact aside { padding: 28px; border-radius: 24px; background: #f6f3ee; }
.contact aside h2 { font-size: 1.1rem; margin-bottom: .3em; color: var(--indigo-dark); }
.contact address { font-style: normal; margin-bottom: 1.4em; }
.site input, .site select, .site textarea, .auth input { padding: .75em .9em; border-radius: 12px; }
/* Footer */
.sitefoot { background: #100d33; color: #c9c6e0; font-size: .98rem; }
.footmain { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 64px); padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(40px, 5vw, 64px); }
.footlogo { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-size: 1.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.footlogo img { width: 64px; height: auto; }
.footmotto { margin: 18px 0 10px; color: var(--gold); font-size: 1.05rem; font-weight: 700; font-style: italic; }
.footbrand p:last-child { max-width: 36ch; }
.sitefoot h2 { margin: 0 0 16px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.sitefoot nav { display: grid; align-content: start; justify-items: start; gap: 10px; }
.sitefoot a { color: #e8e6f5; text-decoration: none; }
.sitefoot a:hover { color: #ffd9a8; text-decoration: underline; text-underline-offset: 4px; }
.sitefoot address { font-style: normal; margin-bottom: 14px; }
.sitefoot p { margin: 0; }
.footfacts { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px var(--gutter); border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footfacts span { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; color: #d8d6ec; }
.footbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 20px var(--gutter); font-size: .85rem; color: #9d99bd; }

/* Clause references */
.clauselink, .cref { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--crimson); text-decoration: none; }
.clauselink { margin-top: 2px; padding: 4px 12px; border-radius: 99px; background: #fbeceb; }
.clauselink:hover { background: var(--crimson); color: #fff; }
.cref { margin-left: 4px; white-space: nowrap; }
.steps .clauselink { margin-top: 14px; }
.moreline { margin: clamp(28px, 4vw, 44px) 0 0; }

/* Constitution page */
.p-constitution { background-image: url(photos/family-hilltop.jpg); background-position: center 35%; }
.p-constitution .eyebrow { color: var(--gold); }
.keyrules { background: #f6f3ee; }
.rulegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rulegrid div { padding: 26px; border-radius: 22px; background: #fff; }
.rulegrid strong { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--indigo); margin-bottom: 10px; }
.rulegrid p { margin: 0 0 12px; color: var(--ink); }
.rulegrid span { font-size: .8rem; font-weight: 700; color: var(--crimson); letter-spacing: .04em; }
.cbody { grid-template-columns: 260px minmax(0, 820px); }
.ctoc { max-height: calc(100vh - 150px); overflow-y: auto; font-size: .92rem; }
.ctoc a { display: flex; gap: 10px; padding: 7px 12px; }
.ctoc a span { min-width: 1.6em; color: var(--crimson); font-weight: 700; }
.csec { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.csec:first-child { padding-top: 0; }
.cnum { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--indigo); color: #fff; font-weight: 800; font-size: 1rem; }
.csec h2 { font-size: 1.45rem; margin: 4px 0 2px; color: var(--indigo-dark); }
.clauseref { margin: 0 0 12px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--crimson); }
.csec p { max-width: 68ch; }
.csec:target .cnum { background: var(--crimson); }
.hero :focus-visible, .cta :focus-visible, .motto :focus-visible, .feature:focus-visible, .sitefoot :focus-visible, .intro :focus-visible { outline-color: #ffd9a8; }

/* Sections ease into view. Without JavaScript, or with reduced motion, everything simply shows. */
.reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* Sign-in pages */
.auth { position: relative; isolation: isolate; min-height: 100vh; display: grid; align-items: center; padding: 24px 16px; background: #17194f url(photos/family-tree.jpg) center 60% / cover no-repeat; }
.auth::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 16, 52, .25), rgba(15, 16, 52, .8) 65%); }
.authbox { width: min(460px, 100%); margin: 0 clamp(0px, 8vw, 140px) 0 auto; background: #fff; padding: clamp(24px, 4vw, 40px); border-radius: 28px; box-shadow: 0 24px 70px rgba(10, 11, 45, .35); }
.authbox h1 { margin-top: 24px; font-weight: 800; letter-spacing: -.025em; }
.authbox .btn { margin-bottom: 14px; }

/* Dashboards */
.dashgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 0 18px; align-items: start; }
.dashactions { margin-bottom: 18px; }
.cardhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: .6em; }
.cardhead h2 { margin: 0; }
.cardhead a:not(.btn) { font-size: .9rem; font-weight: 600; }
.card.urgent { border-left: 5px solid var(--crimson); }
.member .tiles { margin: 14px 0 6px; }
.member .tile { background: var(--tint); border: 0; }
.member h3 { margin-top: 1em; }
.dashlist { list-style: none; margin: 0; padding: 0; }
.dashlist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dashlist li:last-child { border-bottom: 0; }
.dashlist .num { margin-left: auto; font-variant-numeric: tabular-nums; }
.dashlist .in { color: var(--ok); }
.late { color: var(--crimson); font-weight: 600; }
.tile strong { overflow-wrap: anywhere; }
.assetbar { display: block; width: 100%; height: 22px; border-radius: 99px; overflow: hidden; background: var(--tint); }
.a-cash { fill: var(--indigo); background: var(--indigo); }
.a-investments { fill: var(--crimson); background: var(--crimson); }
.a-property { fill: #c98a14; background: #c98a14; }
.assetkey { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0; padding: 0; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; }
.register tr.group th { background: var(--tint); color: var(--indigo-dark); }
.register tr.uncounted td { color: var(--soft); }

/* Online forms */
.capture fieldset { margin: 0 0 18px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: #fff; min-width: 0; }
.capture legend { padding: 0 8px; font-size: 1.15rem; font-weight: 800; color: var(--indigo-dark); }
.capture .grid { align-items: start; }
.capture input[readonly] { background: var(--tint); }
.capture input[type=file] { padding: .5em; font-size: .95rem; }
.rowlabel { font-weight: 600; margin: 0 0 4px; }
.entry th, .entry td { padding: 5px; border: 0; }
.entry input { margin: 0; min-width: 130px; }
.formband { max-width: 1180px; }
.formband > .actions { margin-bottom: 20px; }
.formlist { list-style: none; margin: 0; padding: 0; }
.formlist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.formlist li:last-child { border-bottom: 0; }
.formlist li > div:first-child { flex: 1 1 260px; }
.formlist .muted { display: block; }
.formlist .btn { padding: .4em .9em; }
.formlist.public p { margin: .4em 0 0; max-width: 70ch; }
#share form { margin-right: 8px; }
#share input[type=email] { width: 260px; max-width: 100%; margin: 0; }
#share form, #share .btn { vertical-align: middle; }

/* Printed pages */
.fill { display: flex; align-items: flex-end; gap: 10px; margin: 14px 0; break-inside: avoid; }
.fill span { max-width: 55%; }
.fill i { flex: 1; border-bottom: 1px solid #555; min-height: 1.5em; }
.fill.tall { display: block; }
.fill.tall span { max-width: none; }
.fill.tall i { display: block; height: 84px; margin-top: 6px; border: 1px solid #555; }
.opt { display: inline-block; margin-right: 18px; }
.boxes th, .boxes td { border: 1px solid #555; height: 34px; }
.print h2 { margin-top: 1.4em; }
@media print { .a-cash, .a-investments, .a-property, .swatch { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.print { max-width: 820px; margin: 24px auto; padding: 0 20px; }
.print > header { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 3px solid var(--crimson); margin-bottom: 24px; }
.print > header p { text-align: right; font-size: .85rem; }
.sig { margin-top: 64px; border-top: 1px solid var(--ink); width: 300px; max-width: 100%; padding-top: 6px; }

@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .feature { grid-column: span 2; grid-row: auto; }
  .footmain { grid-template-columns: 1fr 1fr; }
  .footbrand { grid-column: 1 / -1; }
  .rulegrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu { display: block; }
  .js #nav { display: none; }
  .js #nav.open { display: block; }
  .shell, .split, .grid, .contact, .withmenu, .meters { grid-template-columns: minmax(0, 1fr); }
  .shell { min-height: 0; }
  .sitehead .brand img { width: 136px; }
  .sitehead nav { width: 100%; }
  .js .sitehead #nav.open { display: grid; gap: 2px; justify-items: start; padding-bottom: 8px; }
  .sitehead nav .btn { margin: 8px 0 0; }
  .topbar { flex-wrap: wrap; padding: 8px 16px; }
  .topbar .brand img { height: 34px; }
  .who span { display: none; }
  .hero { min-height: 0; padding-top: 34vh; }
  .hero::before { background: linear-gradient(0deg, rgba(15, 16, 52, .95) 0%, rgba(15, 16, 52, .7) 55%, rgba(15, 16, 52, .15) 100%); }
  .milestones { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .milestones div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 12px; }
  .about, .supports { grid-template-columns: minmax(0, 1fr); }
  .aboutimg img { aspect-ratio: 4 / 3; }
  .aboutimg figcaption { right: 12px; bottom: 12px; }
  .feature { min-height: 380px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .pagemenu { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .ctoc { max-height: none; }
  .cbody { grid-template-columns: minmax(0, 1fr); }
  .pagemenu a { background: var(--tint); }
  .callout { display: block; }
  .callout .btn { margin-top: 24px; }
  .callout { border-radius: 24px; }
  .cta { border-radius: 24px; margin-left: 12px; margin-right: 12px; }
  .auth::before { background: rgba(15, 16, 52, .6); }
  .authbox { margin: 0 auto; }
  dl:not(.milestones) { grid-template-columns: 1fr; }
  dl:not(.milestones) dt { border: 0; padding-bottom: 0; }
}
@media (max-width: 560px) {
  .pillars, .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .feature, .bento .wide { grid-column: auto; }
  .bento a { min-height: 170px; }
  .bento .feature { min-height: 250px; }
  .footmain, .rulegrid { grid-template-columns: 1fr; }
  .csec { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .noprint { display: none; }
  .print { margin: 0; max-width: none; }
  tr, h2, h3 { break-inside: avoid; }
}
