/* Extends the same tokens and components used by the registration pages. */
.home-page{min-width:20rem}.home-page [hidden]{display:none!important}.home-icon{width:1.15rem;height:1.15rem;flex:none;vertical-align:middle}.home-header .site-header{gap:1.6rem;flex-wrap:wrap;padding-top:1rem;padding-bottom:1rem;min-height:5rem}.home-header .brand{font-size:1.45rem;font-weight:800;letter-spacing:-.06em}.home-brand-dot{color:#b9e7ce}.home-header .home-primary-nav{display:flex;align-items:center;gap:1.3rem;margin:0;flex-wrap:wrap;font-size:.88rem;font-weight:650}.home-primary-nav a{text-decoration:none;display:inline-flex;align-items:center;gap:.25rem;padding:.35rem 0}.home-primary-nav a:hover,.home-primary-nav a[aria-expanded=true]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.5em}.home-primary-nav .home-icon{width:.9rem;height:.9rem}.home-primary-nav a[aria-expanded=true] .home-icon{transform:rotate(180deg)}.home-header .home-account{margin-left:auto;display:flex;align-items:center;gap:.8rem;font-size:.83rem}.home-account a{text-decoration:none}.home-account-action{display:inline-flex;align-items:center;gap:.7rem;padding:.55rem .85rem;border:1px solid #ffffff60;border-radius:.55rem;background:#ffffff0c}.home-account-action:hover{background:#ffffff20}.home-account button{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .5rem;border-color:#ffffff50;color:inherit;background:transparent;font-size:.78rem}.home-secondary-nav{border-bottom:1px solid var(--line);background:var(--surface);box-shadow:0 5px 12px #00000006}.home-secondary-inner{width:min(76rem,calc(100% - 2rem));margin:auto;display:flex;gap:.5rem 1.5rem;flex-wrap:wrap;padding:.85rem 0}.home-secondary-inner a{display:inline-flex;align-items:center;gap:.6rem;text-decoration:none;font-size:.84rem;font-weight:700;padding:.35rem 0}.home-secondary-inner a:hover{text-decoration:underline}.home-secondary-inner .home-icon{width:.9rem;height:.9rem;opacity:.55}.home-shell{margin-top:0;margin-bottom:3.5rem}.home-hero{position:relative;padding:clamp(2.7rem,6vw,5.25rem) 0 clamp(2.4rem,4vw,3.5rem);margin:0;max-width:65rem}.home-hero h1{font-weight:800;max-width:18ch;font-size:clamp(2.6rem,5.4vw,4.75rem);line-height:1.06;margin:.75rem 0 1.15rem;letter-spacing:-.055em;overflow-wrap:anywhere}.home-hero-text{max-width:47rem;font-size:1.08rem;color:var(--muted);margin:0 0 1.65rem;line-height:1.8}.home-actions{display:flex;flex-wrap:wrap;gap:.75rem}.home-button{display:inline-flex;align-items:center;justify-content:space-between;gap:1rem;min-height:2.9rem;padding:.7rem 1rem;border:1px solid var(--line);border-radius:.55rem;text-decoration:none;font-size:.88rem;font-weight:750}.home-button-secondary{background:var(--surface);color:var(--text)}.home-button-secondary:hover{border-color:var(--primary);background:var(--surface-2)}.home-section{margin:0 0 3.5rem;scroll-margin-top:1.5rem}.home-section-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;flex-wrap:wrap;margin-bottom:1.35rem;border-top:1px solid var(--line);padding-top:1.8rem}.home-section-heading h2{font-size:clamp(1.55rem,3vw,2rem);letter-spacing:-.035em;line-height:1.2;margin:.4rem 0 .55rem}.home-section-heading p.muted{margin:0;font-size:.95rem}.home-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem;align-items:stretch}.home-card{padding:0;overflow:hidden;position:relative;display:flex;flex-direction:column;box-shadow:0 8px 24px #141c2809;transition:box-shadow .15s,border-color .15s}.home-card:hover{border-color:color-mix(in srgb,var(--line) 50%,var(--primary));box-shadow:var(--shadow)}.home-card-image{display:block;aspect-ratio:16/9;border-bottom:1px solid var(--line);text-decoration:none;background:var(--surface-2);overflow:hidden}.home-card-image img{display:block;width:100%;height:100%;object-fit:cover}.home-card-fallback{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:1rem;padding:1.5rem;background:linear-gradient(115deg,color-mix(in srgb,var(--primary) 80%,#000),var(--primary) 57%,color-mix(in srgb,var(--accent) 32%,var(--primary)));color:var(--on-primary)}.home-card-fallback>span{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;opacity:.65}.home-card-fallback strong{font-size:clamp(1.4rem,2.4vw,2.1rem);line-height:1.15;letter-spacing:-.04em;max-width:15ch}.home-card-body{display:flex;flex:1;flex-direction:column;padding:1.3rem}.home-card .eyebrow{font-size:.65rem;letter-spacing:.11em}.home-card h3{font-size:1.12rem;letter-spacing:-.025em;line-height:1.4;margin:.4rem 0 .55rem}.home-card h3 a{text-decoration:none;color:var(--text)}.home-card h3 a:hover{text-decoration:underline}.home-card-body>p.muted{font-size:.88rem;line-height:1.7;margin:0 0 1.2rem;flex:1}.home-card-links{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;border-top:1px solid var(--line);padding-top:.85rem}.home-card-links a{display:inline-flex;align-items:center;gap:.5rem;font-size:.8rem;font-weight:750;text-decoration:none}.home-card-links a:hover{text-decoration:underline}.home-card-links .home-icon{width:1rem;height:1rem}.home-register-link{color:var(--muted);font-weight:550!important}.home-explore{display:grid;grid-template-columns:1.35fr repeat(3,1fr);gap:1.4rem;align-items:center;box-shadow:none;padding:1.6rem}.home-explore h2{font-size:1.15rem;letter-spacing:-.025em;line-height:1.4;margin:.35rem 0 0}.home-explore>a{display:flex;align-items:center;gap:.65rem;font-size:.85rem;font-weight:700;text-decoration:none}.home-explore>a>.home-icon:last-child{margin-left:auto;width:.9rem}.home-explore>a:hover{text-decoration:underline}.home-footer{border-top:1px solid var(--line);background:var(--surface)}.home-footer-inner{width:min(76rem,calc(100% - 2rem));margin:auto;padding:2.5rem 0;display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem}.home-footer .brand{font-size:1.4rem;font-weight:800;letter-spacing:-.05em;text-decoration:none;color:var(--text)}.home-footer p{max-width:24rem;font-size:.85rem;color:var(--muted);margin:.55rem 0 1.4rem}.home-footer small{font-size:.75rem;color:var(--muted)}.home-footer nav{display:flex;flex-direction:column;align-items:start;gap:.5rem;padding-top:.25rem;font-size:.82rem}.home-footer nav a{text-decoration:none}.home-footer nav a:hover{text-decoration:underline}.home-skip{position:absolute;top:-8rem;left:1rem;z-index:10;padding:.8rem 1rem;background:var(--surface);border-radius:.4rem}.home-skip:focus{top:1rem}.home-page a:focus-visible{outline:2px solid var(--success);outline-offset:4px;border-radius:3px}.home-announcement{display:flex;align-items:start;gap:1rem;margin:0 0 2rem;padding:1.1rem 1.25rem}.home-announcement p{margin:.35rem 0}.home-announcement a{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;font-weight:700}.home-announcement .home-edit-control{margin-left:auto;white-space:nowrap}
/* Editing is opt-in; the normal page remains the visitor's view. */
.home-edit-control{display:none}.home-is-editing .home-edit-control{display:inline-flex;align-items:center;gap:.35rem}.home-edit-control{font-size:.73rem;padding:.35rem .55rem;line-height:1.4}.home-edit-control .home-icon{width:.9rem;height:.9rem}.home-hero>.home-edit-control{position:absolute;top:1rem;right:0}.home-card>.home-edit-control{position:absolute;top:.65rem;right:.65rem;background:var(--surface);box-shadow:0 2px 7px #0002}.home-section-tools{display:flex;gap:.5rem;flex-wrap:wrap}.home-is-editing .home-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:1rem 0 0;padding:.75rem 1rem;border:1px dashed var(--line);border-radius:.65rem;background:var(--surface);font-size:.8rem;flex-wrap:wrap}.home-editor-toolbar>span{display:flex;align-items:center;gap:.5rem;font-weight:700}.home-editor-toolbar>div{display:flex;gap:.4rem;flex-wrap:wrap}.home-editor-toolbar button{padding:.35rem .55rem;font-size:.75rem}.home-edit-dot{width:.5rem;height:.5rem;border-radius:50%;background:var(--success)}.home-hidden-label{display:block;color:var(--danger);margin-top:.3rem;font-size:.65rem}.home-unpublished{border-style:dashed;opacity:.7}.home-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem;margin-top:1rem}.home-fields label{display:grid;gap:.35rem;font-size:.85rem;font-weight:700;align-content:start}.home-field-wide{grid-column:1/-1}.home-fields small{font-weight:400;color:var(--muted)}.home-fields textarea{min-height:7rem}.home-fields .check{align-items:center}.home-fields .check input{margin:0}.home-image-tools{grid-column:1/-1;border:1px dashed var(--line);border-radius:.6rem;padding:.8rem}.home-image-tools input{font-size:.8rem;margin-top:.4rem}.home-image-tools p{font-size:.8rem;margin:.45rem 0 0;color:var(--muted)}#home-editor-dialog,#home-history-dialog{max-height:92dvh;overflow:auto}#home-editor-dialog{width:min(48rem,calc(100% - 1.5rem))}#home-history-dialog{width:min(40rem,calc(100% - 1.5rem))}.home-danger{margin-right:auto;color:var(--danger)}.home-revision{display:flex;align-items:center;gap:1rem;justify-content:space-between;padding:1rem 0;border-bottom:1px solid var(--line)}.home-revision small{display:block;color:var(--muted)}.home-revision button{font-size:.8rem;white-space:nowrap}.home-page dialog .dialog-card header{top:-1.2rem}.home-page dialog h2{font-size:1.2rem;letter-spacing:-.025em}.home-page .form-status.error{color:var(--danger)}
@media(min-width:85rem){.home-header .site-header{flex-wrap:nowrap}}@media(max-width:68rem){.home-header .site-header{gap:.8rem 1.5rem}.home-header .home-primary-nav{order:3;flex-basis:100%;gap:1.35rem}.home-explore{grid-template-columns:1fr 1fr}.home-explore>div{grid-column:1/-1}.home-explore>a:last-child{grid-column:1/-1;max-width:50%}}
@media(max-width:48rem){.home-header .site-header{padding:.85rem 1rem}.home-header .home-account{margin-left:auto;gap:.65rem}.home-header .home-primary-nav{font-size:.82rem;gap:.25rem 1rem}.home-primary-nav>a{min-height:2.3rem}.home-header .brand{font-size:1.35rem}.home-account a,.home-account button{font-size:.75rem}.home-account-action{padding:.45rem .65rem}.home-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}.home-shell{width:calc(100% - 2rem)}.home-hero-text{font-size:1rem}.home-footer-inner{grid-template-columns:1fr 1fr;gap:1.5rem}.home-footer-inner>div{grid-column:1/-1}.home-secondary-inner{display:grid;gap:.3rem}.home-card-fallback strong{font-size:1.55rem}}
@media(max-width:34rem){.home-card-grid{grid-template-columns:1fr}.home-section{margin-bottom:2.5rem}.home-card-body{padding:1.15rem}.home-explore{grid-template-columns:1fr;gap:1.25rem}.home-explore>a:last-child{max-width:none;grid-column:auto}.home-explore>div{grid-column:auto}.home-actions{align-items:stretch;flex-direction:column}.home-button{justify-content:space-between}.home-fields{grid-template-columns:1fr}.home-field-wide{grid-column:auto}.home-page dialog .dialog-card footer{flex-wrap:wrap}.home-page dialog .dialog-card footer button{font-size:.8rem}.home-account #home-edit-toggle{font-size:0;width:2rem;height:2rem;padding:.5rem}.home-account #home-edit-toggle .home-icon{width:1rem;height:1rem}.home-header .home-account{gap:.45rem}.home-announcement{flex-wrap:wrap}.home-announcement .home-edit-control{margin-left:0}}
@media(prefers-reduced-motion:reduce){.home-page *{scroll-behavior:auto!important;transition:none!important}}
/* The registration palette uses muted primary colours in dark mode. Keep the
   homepage's small labels and links readable, and white action text on green. */
@media(prefers-color-scheme:dark){
  .home-page .eyebrow{color:var(--muted)}
  .home-page main a:not(.primary-action):not(.home-card-image),
  .home-page .home-footer nav a,
  .home-page .home-secondary-nav a{color:#e0e6ee}
  .home-page .primary-action{background:linear-gradient(135deg,#086333,#08783e);border-color:#119250;color:#fff}
}

/* Keep the complete header, including an open secondary menu, on screen. */
.home-header{position:sticky;top:0;z-index:20}
.home-card-image picture{display:block;width:100%;height:100%}
.home-header .brand,.home-footer .brand{font-weight:300;letter-spacing:.025em;overflow-wrap:anywhere;max-width:100%;min-width:0}
.home-primary-nav a,.home-secondary-inner a,.home-footer nav a{white-space:normal;overflow-wrap:anywhere;max-width:100%;min-width:0}
.home-secondary-nav{max-height:40dvh;overflow-y:auto;overscroll-behavior:contain}
.home-section,#main{scroll-margin-top:calc(var(--home-header-height,7rem) + 1.25rem)}
.home-skip{position:fixed;z-index:40}
.home-footer .home-edit-control{margin-left:.75rem;vertical-align:middle}
.home-navigation-editor>p{margin:.4rem 0}
.home-navigation-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.home-navigation-heading h3{margin:.4rem 0;font-size:1rem}
.home-navigation-heading button,.home-nav-actions button{padding:.4rem .6rem;font-size:.75rem}
.home-nav-row{min-width:0;margin:1rem 0 0;padding:.8rem;border:1px solid var(--line);border-radius:.65rem;background:var(--surface-2)}
.home-nav-row legend{padding:0 .3rem;margin:0;font-size:.8rem;font-weight:750}
.home-nav-actions{display:flex;gap:.4rem;justify-content:flex-end;flex-wrap:wrap;margin-bottom:.65rem}
.home-nav-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.home-nav-grid label{min-width:0}
.home-nav-children{margin-top:.85rem;border-top:1px solid var(--line);padding-top:.7rem}
.home-nav-children summary{cursor:pointer;font-size:.85rem;font-weight:700}
.home-nav-children .home-navigation-editor{margin-top:.8rem}
.home-nav-children .home-nav-row{background:var(--surface)}
@media(max-width:34rem){.home-nav-grid{grid-template-columns:1fr}.home-navigation-heading button{width:100%}.home-nav-actions{justify-content:flex-start}.home-nav-row{padding:.65rem}}

.home-explore{grid-template-columns:minmax(12rem,1.35fr) minmax(0,3fr)}
.home-explore-heading .home-edit-control{margin-top:.65rem}
.home-explore-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem 1.4rem;align-items:center;min-width:0}
.home-explore-links a{display:flex;align-items:center;gap:.65rem;font-size:.85rem;font-weight:700;text-decoration:none;overflow-wrap:anywhere;min-width:0}
.home-explore-links a>.home-icon:last-child{margin-left:auto;width:.9rem}
.home-explore-links a:hover{text-decoration:underline}
.home-explore{scroll-margin-top:calc(var(--home-header-height,7rem) + 1.25rem)}
.home-section-unpublished,.home-explore-unpublished{opacity:.65}
#home-sections-dialog{width:min(54rem,calc(100% - 1.5rem));max-height:92dvh;overflow:auto}
.home-section-row{display:flex;gap:1rem;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:1rem 0;flex-wrap:wrap}
.home-section-row>div:first-child{min-width:0;flex:1 1 14rem;overflow-wrap:anywhere}
.home-section-row small{display:block;font-size:.75rem;color:var(--muted);margin-top:.3rem}
.home-section-row-actions{display:flex;flex-wrap:wrap;gap:.35rem}
.home-section-row-actions button{font-size:.75rem;padding:.4rem .55rem}
@media(max-width:68rem){.home-explore{grid-template-columns:1fr}}
@media(max-width:48rem){.home-explore-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:34rem){.home-explore-links{grid-template-columns:1fr}}

.home-meta-group{border:1px solid var(--line);border-radius:.65rem;padding:.8rem;background:var(--surface)}
.home-meta-group>summary{cursor:pointer;font-weight:750;font-size:.95rem}
.home-meta-group>button{font-size:.8rem;margin:.5rem .5rem 0 0}
.home-meta-group>p{margin:.7rem 0}
.home-meta-check{border-left:3px solid var(--line);padding:.5rem .75rem;margin:.65rem 0;background:var(--surface-2);font-size:.82rem;overflow-wrap:anywhere}
.home-meta-check p{margin:.2rem 0 0;color:var(--muted)}
.home-meta-pass{border-color:var(--success)}.home-meta-warning{border-color:var(--danger)}
html[data-home-color-scheme="light"]{color-scheme:light;--bg:#f3f5f8;--surface:#fff;--surface-2:#f7f8fa;--text:#171a20;--muted:#616975;--line:#d7dce2;--danger:#a81424;--success:#08783e;--shadow:0 18px 45px rgba(20,28,40,.10)}
html[data-home-color-scheme="dark"]{color-scheme:dark;--bg:#101318;--surface:#191e26;--surface-2:#222832;--text:#f4f6f8;--muted:#b2bac5;--line:#3a424e;--danger:#ff8995;--success:#73d9a1;--shadow:0 18px 45px rgba(0,0,0,.28)}
html[data-home-color-scheme="light"] .home-page .eyebrow{color:color-mix(in srgb,var(--primary) 72%,var(--text))}
html[data-home-color-scheme="light"] .home-page main a:not(.primary-action):not(.home-card-image),html[data-home-color-scheme="light"] .home-footer nav a,html[data-home-color-scheme="light"] .home-secondary-nav a{color:color-mix(in srgb,var(--primary) 74%,var(--text))}
html[data-home-color-scheme="dark"] .home-page .eyebrow{color:var(--muted)}
html[data-home-color-scheme="dark"] .home-page main a:not(.primary-action):not(.home-card-image),html[data-home-color-scheme="dark"] .home-footer nav a,html[data-home-color-scheme="dark"] .home-secondary-nav a{color:#e0e6ee}
.home-page .primary-action{background:linear-gradient(135deg,#086333,#08783e);border-color:#119250;color:#fff}
.home-card-extra-links{display:flex;flex-wrap:wrap;gap:.45rem 1rem;padding-top:.65rem;margin-top:.65rem;border-top:1px solid var(--line)}
.home-card-extra-links a{font-size:.8rem;font-weight:650;text-decoration:none;overflow-wrap:anywhere}
.home-card-extra-links a:hover{text-decoration:underline}
