* { box-sizing: border-box; }
body { margin: 0; background: #f4f6f0; color: #20352e; font: 16px/1.55 system-ui, sans-serif; }
header, footer { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; padding: 1.1rem max(1rem, calc((100% - 64rem)/2)); }
header { background: #143c31; color: #e0eee5; }
header a { color: white; font-weight: 750; text-decoration: none; }
main { max-width: 66rem; margin: auto; padding: clamp(1rem, 5vw, 3rem) 1rem; min-height: 65vh; }
h1 { font-family: Georgia, serif; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; margin: .4em 0; }
h2 { font-size: 1.25rem; margin: 0 0 .65rem; }
.intro { font-size: 1.13rem; margin-bottom: 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1rem; }
section { background: white; border: 1px solid #dbe4da; border-radius: 1rem; padding: clamp(1rem, 4vw, 2rem); }
label { display: grid; gap: .4rem; font-weight: 650; }
input, select, button, .button { font: inherit; border-radius: .5rem; padding: .65rem .8rem; min-height: 44px; }
input, select { border: 1px solid #83988d; width: 100%; background: white; color: inherit; }
button, .button { display: inline-block; margin: .65rem 0; border: 0; background: #176047; color: white; text-decoration: none; cursor: pointer; font-weight: 700; }
a { color: #176047; }
.status { color: #176047; font-weight: 750; margin-top: 0; }
code { overflow-wrap: anywhere; }
small { color: #496257; }

.status-panel { margin-block: 1rem; scroll-margin-top: 1rem; }
.status-panel form { max-width: 35rem; }
.guide { padding-top: 0; }
.guide-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-block: .85rem .5rem;
  background: white;
}
.guide-heading h2 { margin: 0; }
.guide-hint { margin: .25rem 0 .65rem; }
.steps-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.steps-nav a { padding-block: .4rem; }
.steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84%, 23rem);
  gap: .85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: .2rem;
  padding: .35rem .2rem .8rem;
  margin: .4rem 0 0;
  list-style: none;
}
.steps li {
  scroll-snap-align: start;
  scroll-margin-top: 3.5rem;
  min-height: 12rem;
  padding: 1.15rem;
  background: #edf4eb;
  border: 1px solid #ceded1;
  border-radius: .75rem;
}
.steps li:target { border-color: #176047; }
.steps h3 { margin: 0; }
a:focus-visible, button:focus-visible, .steps:focus-visible {
  outline: 3px solid #9a5c16;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .steps { scroll-behavior: smooth; }
  @supports (animation-timeline: view()) {
    @keyframes landscape-drift {
      from { transform: translateY(-4%); }
      to { transform: translateY(13%); }
    }
  }
}

body:has(.welcome-card) { background: #f4f6f9; color: #212529; font-family: 'Segoe UI', Tahoma, sans-serif; }
body:has(.welcome-card, .service-menu) > header { display: none; }
main:has(.welcome-card) { max-width: 56rem; }
.welcome-card { max-width: 520px; margin: auto; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 25px #00000014; background: white; }
.welcome-banner { display: block; text-align: center; background: linear-gradient(135deg,#0d7a42,#054022); padding: 24px 20px; color: white; }
.welcome-banner h1 { font: 700 1.5rem/1.2 'Segoe UI', Tahoma, sans-serif; margin: 0 0 .25rem; }
.welcome-icon { display: block; font-size: 2rem; margin-bottom: .25rem; }
.welcome-content { text-align: center; padding: 24px; }
.welcome-content h2 { color: #0d7a42; font-size: 1.25rem; }
.welcome-content p { font-size: .9rem; }
.welcome-note { background: #e4f5fc; color: #174352; text-align: left; padding: .75rem; border-radius: .65rem; }
.welcome-content .button { display: block; background: #0d7a42; border-radius: 12px; }
.status-panel { max-width: 520px; margin: 1rem auto 2rem; }
.guide-art { height: 4.75rem; overflow: clip; position: relative; border-radius: .7rem; }
.guide-art span { position: absolute; inset: -25% 0; background: radial-gradient(ellipse at 20% 140%,#0d7a42 53%,transparent 54%),radial-gradient(ellipse at 80% 180%,#478f6d 66%,transparent 67%),#dcefe4; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .guide-art { view-timeline: --guide-art block; }
    .guide-art span { animation: landscape-drift linear both; animation-timeline: --guide-art; animation-range: entry 0% exit 100%; }
  }
}
main:has(.welcome-card) { padding-top: 0; }
.welcome-stage { min-height: min(100svh, 44rem); display: grid; place-items: center; padding: 1.5rem 0; }
.welcome-card { width: 100%; }
.welcome-icon { position: relative; width: 29px; height: 30px; margin: 0 auto .65rem; border: 2px solid currentColor; border-radius: 3px; }
.welcome-icon::before { content: ''; position: absolute; width: 4px; height: 4px; top: 5px; left: 5px; background: currentColor; box-shadow: 11px 0 currentColor, 0 8px currentColor, 11px 8px currentColor; }
.welcome-icon::after { content: ''; position: absolute; width: 7px; height: 7px; bottom: -1px; left: 9px; border: 1px solid currentColor; border-radius: 2px 2px 0 0; }
.welcome-content > p { margin: .65rem 0 1.4rem; color: #52606b; }
.welcome-content .welcome-note { color: #174352; font-size: .8rem; margin-bottom: 1rem; }
.welcome-content > a:last-child { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
@media (max-width: 575px) {
  .welcome-stage { min-height: auto; padding: .75rem 0 .25rem; }
  .welcome-card { border-radius: 16px; }
  .welcome-banner { padding: 20px 16px; }
  .welcome-content { padding: 18px; }
}
main:has(.service-menu) { max-width: 56rem; padding-top: 1.5rem; }
.portal-menu-banner { border-radius: 20px 20px 0 0; }
.service-menu { display: grid; gap: .45rem; }
.service-sheet { border-radius: 0; background: var(--sheet); color: var(--sheet-text); }
.service-sheet:nth-child(1) { --sheet: #e3f0e7; --sheet-text: #164834; }
.service-sheet:nth-child(2) { --sheet: #f5ead5; --sheet-text: #65491d; }
.service-sheet:nth-child(3) { --sheet: #e4ebf4; --sheet-text: #243f61; border-radius: 0 0 20px 20px; }
.service-sheet summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.65rem; padding: .9rem clamp(1rem, 4vw, 1.75rem); font-size: clamp(1.2rem, 3.5vw, 1.85rem); font-weight: 750; }
.service-sheet summary::-webkit-details-marker { display: none; }
.service-sheet summary::after { content: '+'; display: grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 2rem; border-radius: 50%; border: 1px solid currentColor; font-size: 1.15rem; line-height: 1; }
.service-sheet[open] summary::after { content: '-'; }
.service-sheet summary:focus-visible { outline: 3px solid currentColor; outline-offset: -5px; }
.service-sheet-body { padding: 0 clamp(1rem, 4vw, 1.75rem) 1rem; }
.service-sheet-body p { margin: 0 0 .6rem; }
.service-sheet-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; }
.service-sheet-actions a:not(.button) { color: inherit; padding-block: .65rem; }
@media (prefers-reduced-motion: no-preference) {
  .service-sheet[open] .service-sheet-body { animation: sheet-reveal .28s ease-out both; }
  @keyframes sheet-reveal { from { opacity: 0; transform: translateY(-.45rem); } to { opacity: 1; transform: translateY(0); } }
}
.service-menu { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; margin-top: .85rem; align-items: start; }
.service-sheet, .service-sheet:nth-child(3) { border-radius: 18px; overflow: hidden; }
.service-sheet:nth-child(3) { grid-column: 1 / -1; }
.service-sheet summary { position: relative; flex-direction: column; justify-content: center; text-align: center; min-height: 9.5rem; gap: .65rem; padding: 1rem .6rem; font-size: clamp(.96rem, 3.5vw, 1.45rem); }
.service-sheet:nth-child(3) summary { min-height: 8rem; }
.service-sheet summary::after { width: 1.5rem; height: 1.5rem; position: absolute; top: .55rem; right: .55rem; font-size: .95rem; }
.service-sheet summary:focus-visible { border-radius: 18px; }
.service-symbol { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 13px; background: #ffffffbd; font-size: 1.45rem; }
.service-sheet-body { background: #fff; margin: 0 .65rem .65rem; padding: .85rem; border-radius: 12px; font-size: .9rem; overflow-wrap: anywhere; }
.service-sheet-actions { gap: 0 .75rem; }
.service-sheet-actions a { max-width: 100%; }
@media (max-width: 450px) {
  .service-menu { gap: .55rem; }
  .service-sheet summary::after { width: 1.1rem; height: 1.1rem; font-size: .75rem; top: .45rem; right: .45rem; }
  .service-sheet-body { margin: 0 .35rem .35rem; padding: .6rem; }
  .service-sheet-actions .button { padding-inline: .4rem; }
}
body:has(.service-menu) { background: #102d25; }
main:has(.service-menu) { position: relative; isolation: isolate; max-width: none; min-height: 100svh; padding: clamp(.8rem,3vw,2rem) 1rem clamp(2rem,6vw,5rem); }
main:has(.service-menu)::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,#081b1770,#081b17b0),url('/images/kampong-hero.jpg') center 48% / cover no-repeat,#102d25; }
main:has(.service-menu) > .portal-menu-banner, main:has(.service-menu) > .service-menu { max-width: 54rem; margin-inline: auto; }
main:has(.service-menu) > .service-menu { margin-top: clamp(2rem,10vh,6.5rem); }
body:has(.service-menu) > footer { background: #102d25; }
body:has(.service-menu) > footer a { color: #edf5ef; }
.service-sheet { border: 1px solid #ffffff80; box-shadow: 0 12px 28px #071a1645; }
@media (max-width: 575px) {
  main:has(.service-menu) > .service-menu { margin-top: 2rem; }
  .service-sheet summary { min-height: 7.25rem; }
  .service-sheet:nth-child(3) summary { min-height: 6rem; }
}
body:has(.service-menu) { background:#10241d; }
main:has(.service-menu) { display:grid; grid-template-columns:minmax(11rem,19%) minmax(0,1fr); min-height:100svh; padding:0; }
main:has(.service-menu)::before { content:none; }
main:has(.service-menu) > .portal-menu-banner { width:100%; max-width:none; margin:0; border-radius:0; padding:clamp(1.25rem,4vw,3rem) 1rem; display:flex; flex-direction:column; align-items:center; }
.portal-menu-banner .welcome-icon { flex:none; }
.portal-menu-banner h1 { font-size:clamp(1.15rem,2vw,1.6rem); }
.panel-nav { align-self:stretch; margin-top:2rem; padding-top:1.2rem; border-top:1px solid #ffffff5c; display:grid; gap:.4rem; }
.panel-nav a { color:white; padding:.4rem; }
main:has(.service-menu) > .service-menu { display:grid; width:100%; max-width:none; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; align-items:stretch; margin:0; }
.service-sheet, .service-sheet:nth-child(3) { grid-column:auto; position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:center; border:0; border-radius:0; box-shadow:none; min-width:0; color:white; background:var(--panel-tint); }
.service-sheet::before { content:''; position:absolute; z-index:-1; inset:0; background:linear-gradient(180deg,#101e2370,var(--panel-tint)),url('/images/kampong-hero.jpg') var(--panel-position) / cover no-repeat; }
.service-sheet:nth-child(1) { --panel-tint:#0e3b37df; --panel-position:12% center; }
.service-sheet:nth-child(2) { --panel-tint:#353b1fde; --panel-position:51% center; }
.service-sheet:nth-child(3) { --panel-tint:#233049e8; --panel-position:90% center; }
.service-sheet + .service-sheet { border-inline-start:1px solid #ffffff45; }
.service-sheet summary, .service-sheet:nth-child(3) summary { min-height:13rem; padding:1.5rem .75rem; color:white; font-size:clamp(1.25rem,3.15vw,3.15rem); font-family:'Arial Narrow','Segoe UI',sans-serif; font-weight:800; line-height:1.05; gap:.75rem; }
.service-sheet summary::after { position:static; flex:0 0 auto; width:1.7rem; height:1.7rem; font-size:1rem; margin-top:.25rem; }
.service-sheet summary:focus-visible { border-radius:0; }
.service-symbol { background:#152820b0; border:1px solid #ffffff70; }
.service-sheet-body { background:#101d21eb; color:white; border:1px solid #ffffff50; margin:0 .75rem 1rem; padding:1rem; }
.service-sheet-body .button { background:#26765d; }
@media(max-width:700px) {
  main:has(.service-menu), main:has(.service-menu) > .service-menu { grid-template-columns:minmax(0,1fr); }
  .panel-nav { display:flex; justify-content:center; flex-wrap:wrap; margin-top:.75rem; padding-top:.5rem; }
  .service-sheet + .service-sheet { border-inline-start:0; border-block-start:1px solid #ffffff45; }
  .service-sheet summary, .service-sheet:nth-child(3) summary { min-height:11rem; font-size:1.85rem; }
}
:root { --action:#176047; --ink:#20352e; --surface:#fff; --focus:#a44e00; --radius:.85rem; --space:1rem; }
.skip-link { position:absolute; left:1rem; top:1rem; z-index:10; padding:.65rem; background:white; transform:translateY(-180%); }
.skip-link:focus { transform:none; }
:where(a, button, input, select, summary):focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.service-sheet summary:focus-visible, .panel-nav a:focus-visible { outline-color:white; outline-offset:-4px; }
.breadcrumb { display:flex; gap:.6rem; align-items:center; flex-wrap:wrap; font-size:.9rem; }
.breadcrumb a, .mobile-nav a { display:inline-flex; align-items:center; min-height:44px; }
.application-progress { max-width:34rem; margin-bottom:var(--space); }
.application-progress progress { display:block; width:100%; accent-color:var(--action); margin-top:.35rem; }
.field-error { background:#fff1f0; color:#8b2620; padding:.65rem; border-radius:var(--radius); }
input[aria-invalid=true] { border:2px solid #a02f28; }
.mobile-nav { display:none; }
.dashboard-search { margin-bottom:var(--space); max-width:34rem; }
.pager { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; margin-block:1rem; }
.status { display:inline-block; background:#e4f2e9; border-radius:999px; padding:.2rem .65rem; }
@media(max-width:700px) {
  body { padding-bottom:calc(3.5rem + env(safe-area-inset-bottom)); }
  .mobile-nav { display:flex; position:fixed; z-index:3; inset:auto 0 0; justify-content:space-around; gap:.4rem; padding:.2rem .5rem calc(.2rem + env(safe-area-inset-bottom)); background:#123c30; }
  .mobile-nav a { color:white; text-align:center; font-size:.875rem; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto !important; animation:none !important; } }


body:has(.home-carousel) { background:#f4f7ef; }
body:has(.home-carousel) > header { display:none; }
main:has(.home-carousel) { max-width:none; padding:0; }
.carousel-brand { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.35rem 1rem; padding:.85rem 1rem; background:#115438; color:white; }
.carousel-brand h1 { margin:0; font:700 clamp(1.05rem,3vw,1.5rem)/1.25 system-ui,sans-serif; }
.carousel-intro { max-width:68rem; margin:auto; padding:clamp(1rem,4vw,2.5rem) 1rem .5rem; text-align:center; }
.carousel-intro h2 { font-size:clamp(1.6rem,4vw,2.75rem); line-height:1.12; margin:0; }
.carousel-intro p { margin:.35rem 0; }
.carousel-stage { max-width:48rem; margin-inline:auto; }
.carousel-track { --card-width: min(76vw,23rem); display:grid; grid-auto-flow:column; grid-auto-columns:var(--card-width); gap:clamp(.55rem,2vw,1rem); padding:1rem calc((100% - var(--card-width))/2) 1.25rem; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-inline:contain; }
.carousel-slide { min-width:0; padding:0; border:0; border-radius:0; background:transparent; scroll-snap-align:center; text-align:center; }
.slide-art { display:block; border-radius:1.35rem; width:100%; height:clamp(14rem,49svh,27rem); object-fit:cover; box-shadow:0 8px 22px #13291b26; background:#dce9cf; }
.carousel-slide h3 { margin:.85rem 0 .2rem; font-size:clamp(1.2rem,3vw,1.65rem); }
.carousel-slide p { margin:.2rem 0; }
.carousel-actions { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:0 .75rem; }
.carousel-actions a { padding-block:.6rem; }
.carousel-nav { display:flex; justify-content:center; flex-wrap:wrap; gap:.35rem .6rem; padding:.15rem 1rem .9rem; }
.carousel-nav a { display:inline-flex; align-items:center; min-height:44px; padding:.2rem .85rem; border:1px solid #a6bca9; border-radius:999px; text-decoration:none; }
.carousel-slide:focus-visible { outline:3px solid #176047; outline-offset:3px; }
@media(prefers-reduced-motion:no-preference) { .carousel-track { scroll-behavior:smooth; } }

body:has(.home-carousel){padding:0;background:#f4f7ef}
main:has(.home-carousel){max-width:none;min-height:100svh;padding:clamp(.65rem,3vw,2rem) 0;display:grid;align-items:center}
.home-carousel{min-width:0;width:100%}
.carousel-track{--card-width:min(76vw,26rem);scrollbar-width:none}
.carousel-track::-webkit-scrollbar{display:none}
.carousel-track:focus-visible{outline:2px solid #176047;outline-offset:-3px}
.slide-frame{overflow:hidden;border-radius:1.35rem;background:#dce9cf}
.slide-frame .slide-art{border-radius:0;height:clamp(10rem,56svh,30rem);box-shadow:none;transform:scale(1)}
.carousel-slide[data-active] .slide-art{transform:scale(1.1)}
.carousel-nav button{background:#e4ede4;color:#173c30;border:1px solid #a6bca9;border-radius:999px;margin:0;padding:.35rem .7rem;min-height:44px}
.carousel-nav button[aria-current=true]{background:#176047;color:white}
@media(prefers-reduced-motion:no-preference){.slide-art{transition:transform .7s ease-out}}
@media(prefers-reduced-motion:reduce){.carousel-slide[data-active] .slide-art{transform:none}}
@media(max-height:480px) and (orientation:landscape){.slide-frame .slide-art{height:44svh}.carousel-track{padding-block:.35rem}.carousel-slide h3{margin-top:.4rem}}

.home-carousel .slide-frame .slide-art,
.home-carousel .carousel-slide[data-active] .slide-frame .slide-art {
  transform: none;
  transition: none;
}
@media (prefers-reduced-motion: no-preference) {
  .home-carousel .carousel-slide {
    scale: .88;
    transform-origin: center;
    transition: scale .45s cubic-bezier(.22,.61,.36,1);
  }
  .home-carousel .carousel-slide[data-active] { scale: 1; }
}

main:has(.home-carousel){min-height:100vh;min-height:100svh;padding:0;display:block}
.home-carousel{position:relative}
.carousel-stage{max-width:none}
.carousel-track{--card-width:min(86vw,110rem);height:100vh;height:100svh;padding-block:0;align-items:stretch}
.carousel-slide{position:relative;display:grid;align-items:end;overflow:hidden;border-radius:clamp(.75rem,2vw,1.6rem);margin-block:clamp(.35rem,1.5svh,1rem);isolation:isolate}
.slide-frame{position:absolute;inset:0;z-index:-2;border-radius:0}
.slide-frame .slide-art{height:100%;width:100%;object-fit:cover}
.carousel-slide::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent 30%,#071c18ed)}
.slide-caption{color:#fff;text-align:left;padding:clamp(1rem,4vw,4rem);padding-right:clamp(3.35rem,8vw,7rem)}
.slide-caption h2{font-size:clamp(1.5rem,5vw,4rem);line-height:1.05;margin:.35rem 0}
.slide-caption p{margin:0}
.carousel-next{position:absolute;z-index:2;top:50%;right:clamp(.5rem,3vw,3rem);transform:translateY(-50%);width:clamp(2.75rem,5vw,4rem);height:clamp(2.75rem,5vw,4rem);margin:0;padding:0;border:1px solid #fff;border-radius:50%;background:#123d30;color:#fff;font-size:1.7rem;line-height:1}
.carousel-next[hidden]{display:none}
@media(max-height:360px){.slide-caption{padding-block:.65rem}}

@media (any-pointer: coarse), (pointer: coarse) { .carousel-next { display: none; } }

body:has(.home-carousel){background:#0a1019;color:#fff}
.home-carousel .carousel-track{--card-width:min(65vw,23rem,70svh);gap:clamp(.6rem,3vw,2rem);align-items:center}
.home-carousel .carousel-slide{overflow:visible;display:grid;align-items:end;aspect-ratio:4/5;margin-block:0;min-height:0;isolation:auto;border-radius:0}
.home-carousel .carousel-slide::after{content:none}
.home-carousel .slide-frame{inset:0;z-index:0;border-radius:clamp(.65rem,2vw,1rem);background:#1b2837}
.home-carousel .slide-frame::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 26%,#09111ae8)}
.home-carousel .slide-caption{position:relative;z-index:1;text-align:center;padding:clamp(.65rem,3vw,1.5rem);text-shadow:0 2px 8px #000}
.home-carousel .slide-caption h2{font-size:clamp(1.05rem,3.4vw,1.9rem)}
.home-carousel .slide-caption p{font-size:clamp(.72rem,1.7vw,.95rem);line-height:1.25}
.gallery-reflection{position:absolute;top:calc(100% + .35rem);left:0;width:100%;height:24%;border-radius:inherit;object-fit:cover;object-position:center bottom;transform:scaleY(-1);filter:blur(2px);opacity:.27;mask-image:linear-gradient(to top,#000,transparent);pointer-events:none}
.home-carousel .carousel-prev{left:clamp(.5rem,3vw,3rem);right:auto}
@media(prefers-reduced-motion:no-preference){
 .home-carousel .carousel-slide:not([data-active]){scale:.8;opacity:.56}
 .home-carousel .carousel-slide{transition:scale .45s cubic-bezier(.22,.61,.36,1),opacity .45s ease}
}
@media(max-height:440px){.home-carousel .carousel-track{--card-width:min(60vw,18rem,66svh)}}

.home-carousel .carousel-slide { perspective: 800px; }
.home-carousel .slide-frame {
  border: 1px solid #ffffff42;
  box-shadow: 0 2px 0 #263650, 0 6px 0 #111d30, 0 16px 35px #0009;
}
.home-carousel .slide-frame::after {
  background: linear-gradient(165deg,#ffffff2b,transparent 25%),linear-gradient(transparent 26%,#09111ae8);
  box-shadow: inset 0 1px 0 #ffffff60, inset -1px 0 0 #ffffff25;
}
.home-carousel .carousel-slide[data-active] { z-index: 1; }
.home-carousel .carousel-slide[data-active] .slide-frame {
  border-color: #ffffff65;
  box-shadow: 0 2px 0 #607590, 0 8px 0 #273a53, 0 12px 0 #152337, 0 23px 38px #000b, 0 4px 28px #729cd02b;
}
@media(prefers-reduced-motion:no-preference) {
  .home-carousel .carousel-slide { --card-tilt: -12deg; }
  .home-carousel .carousel-slide:has(~ [data-active]) { --card-tilt: 12deg; }
  .home-carousel .carousel-slide[data-active] { --card-tilt: 0deg; }
  .home-carousel .slide-frame, .home-carousel .slide-caption {
    transform: rotateY(var(--card-tilt));
    transition: transform .45s cubic-bezier(.22,.61,.36,1);
  }
  .home-carousel .slide-frame { transition-property: transform, box-shadow; }
  .home-carousel .carousel-slide[data-active] .slide-caption { transform: translateZ(12px); }
}

body:has(.home-carousel){background:#3d76d9;color:#20352e}
.home-carousel .carousel-track{
 position:relative;display:grid;place-items:center;overflow:hidden;padding:0;
 width:100%;height:100vh;height:100svh;background:#1d4f9b40;
 touch-action:pan-y pinch-zoom;cursor:grab;user-select:none
}
.home-carousel .carousel-track.is-dragging{cursor:grabbing}
.home-carousel .carousel-slide{
 position:absolute;inset:auto;display:flex;flex-direction:column;justify-content:center;align-items:center;
 width:min(76vw,23rem);height:min(82svh,28rem);aspect-ratio:auto;min-height:0;margin:0;
 padding:clamp(.65rem,3vw,1.5rem);border-radius:1.15rem;background:#f9faf6;color:#213b34;
 box-shadow:0 .55rem 1.35rem #10245960;text-align:center;opacity:1;scale:1;perspective:none;
 transform:translateX(var(--card-shift,0px)) scale(var(--card-scale,1));filter:brightness(var(--card-light,1));
 transition:transform .46s cubic-bezier(.22,.8,.32,1),filter .42s ease-out;
}
.home-carousel .carousel-slide:not([data-active]){opacity:1;scale:1}
.home-carousel .carousel-slide[data-active]{z-index:2}
.home-carousel .carousel-track.is-dragging .carousel-slide,.home-carousel .carousel-slide[data-wrap]{transition:none}
.home-carousel .slide-frame{
 position:relative;inset:auto;flex:none;width:min(36vw,9rem,27svh);aspect-ratio:1;
 border:4px solid #eff5f0;border-radius:50%;overflow:hidden;box-shadow:0 0 0 2px #244e4933;
 transform:none;transition:none;
}
.home-carousel .slide-frame::after{content:none}
.home-carousel .slide-frame .slide-art{height:100%;width:100%;object-fit:cover}
.home-carousel .slide-caption,.home-carousel .carousel-slide[data-active] .slide-caption{
 color:inherit;padding:clamp(.45rem,2svh,1rem) 0 0;text-align:center;text-shadow:none;transform:none;transition:none
}
.home-carousel .slide-caption h2{font-size:clamp(1.05rem,4vw,1.55rem)}
.home-carousel .slide-caption p{line-height:1.3}
.home-carousel .slide-caption p:first-child{color:#526761;font-weight:650}
.home-carousel .carousel-next{background:#173d77;box-shadow:0 3px 12px #10245965}
@media(prefers-reduced-motion:reduce){.home-carousel .carousel-slide{transition:none}}

.home-carousel .carousel-track { overflow: clip; scroll-snap-type: none; }
.home-carousel .carousel-slide {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) translateX(var(--card-shift, 0px)) scale(var(--card-scale, 1));
}

/* Shared portal styling */
:root {
  --portal-bg: #f5f7f4;
  --portal-ink: #172e25;
  --portal-muted: #4b6256;
  --portal-line: #d8e2da;
  --portal-green: #176047;
}
body, body:has(.welcome-card) { background:var(--portal-bg); color:var(--portal-ink); font-family:system-ui,sans-serif; }
main > h1 { font:750 clamp(1.9rem,4vw,3rem)/1.14 system-ui,sans-serif; letter-spacing:-.035em; margin:0 0 1.2rem; }
main > section, main > .grid > section { border:1px solid var(--portal-line); border-radius:1rem; box-shadow:0 2px 8px #172e2509; }
main > section + section { margin-top:1rem; }
main :where(form) :where(label + label, label + input + label) { margin-top:.8rem; }
main :where(input, select) { border-color:#84998c; border-radius:.65rem; }
main :where(input, select):focus-visible { outline:2px solid var(--portal-green); outline-offset:2px; }
main :where(button, .button) { border-radius:.65rem; }
main > footer, body > footer { color:var(--portal-muted); }
.welcome-card { border:1px solid var(--portal-line); box-shadow:0 4px 16px #172e250b; }
.welcome-banner:not(.portal-menu-banner) { background:#e7f0e9; color:#174333; }
.welcome-content .welcome-note { background:#eef3ef; color:#344e40; }

/* Keep sizing and positioning in the carousel's existing rules. */
body:has(.home-carousel) { background:var(--portal-bg); color:var(--portal-ink); }
.home-carousel .carousel-track { background:transparent; }
.home-carousel .carousel-slide {
  background:#fff;
  color:var(--portal-ink);
  border:1px solid var(--portal-line);
  box-shadow:0 4px 12px #172e2516;
}
.home-carousel .carousel-slide[data-active] {
  border-color:#aac3b3;
  box-shadow:0 12px 32px #172e2524;
}
.home-carousel .slide-frame,
.home-carousel .carousel-slide[data-active] .slide-frame {
  border:3px solid #fff;
  box-shadow:0 0 0 1px #c6d8cb;
  background:#e7f0e9;
}
.home-carousel .slide-caption p:first-child { color:var(--portal-muted); }
.home-carousel .slide-caption h2 { letter-spacing:-.025em; }
.home-carousel .carousel-next {
  color:var(--portal-green);
  background:#fff;
  border-color:#9db5a6;
  box-shadow:0 2px 8px #172e2518;
}
.home-carousel .carousel-next:hover { background:#e7f0e9; }

* { -webkit-tap-highlight-color: transparent; }
:is(a,button,input,select,textarea,summary,label,img,[role="button"],[role="link"],[tabindex],[onclick]):focus:not(:focus-visible) { outline: none; box-shadow: none; }
