:root {
  color-scheme: light;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #172a3c;
  background: #f7f9fb;
  --line: #dce5ed;
  --muted: #4e6275;
  --blue: #dcefff;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse 860px 660px at 85% 110px, #e0f0fc, transparent), #f7f9fb; }
[hidden] { display: none !important; }
a { color: inherit; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #203a50;
  color: #fff;
}
main [id] { scroll-margin-top: 20px; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid #286ba1; outline-offset: 4px; }
.wrap { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.navigation, .footer-content { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 17px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 850; letter-spacing: .06em; }
.brand-mark { display: block; width: 32px; height: 32px; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }
.nav-links a, .site-footer a { display: inline-flex; align-items: center; gap: 6px; }
.navigation a, .site-footer a { text-decoration: none; }
.navigation a:hover, .site-footer a:hover { text-decoration: underline; }
.nav-links { display: flex; flex-wrap: wrap; gap: clamp(12px, 3vw, 28px); font-size: .9rem; font-weight: 650; }
.intro { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 25px; padding-block: clamp(36px, 7vw, 78px); }
.eyebrow { color: #365f80; font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, p { margin: 0; }
h1 { margin-block: 12px 18px; font-size: clamp(2.25rem, 5vw, 4.05rem); line-height: 1.04; letter-spacing: -.06em; text-wrap: balance; }
.intro p, .section-heading p, .operator p, dialog p { color: var(--muted); line-height: 1.6; }
.intro p { max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; font-size: .88rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.primary { background: #203a50; color: #fff; }
.primary:hover { background: #315675; }
.secondary { background: #fff; border-color: #b9cddd; color: #253e53; }
.secondary:hover { background: #edf6ff; }
.project-art { position: relative; overflow: hidden; aspect-ratio: 44 / 30; border: 1px solid #d1e3ef; border-radius: 24px; background: radial-gradient(ellipse at center, #eef8ff, #dcefff); }
.project-art img { position: absolute; width: 95%; height: auto; left: 15%; top: 50%; transform: translateY(-47%); }
.directory { border-top: 1px solid var(--line); padding-block: 32px 38px; scroll-margin-top: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { margin-block: 5px 5px; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.045em; }
.count { white-space: nowrap; color: var(--muted); font-size: .8rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.count:empty { display: none; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.filters button { border: 1px solid var(--line); background: #fff; color: #334c62; border-radius: 99px; padding: 6px 13px; cursor: pointer; font-size: .85rem; }
.filters button[aria-pressed="true"] { border-color: #a3c5df; background: var(--blue); font-weight: 750; }
.region-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 14px; padding: 12px 16px; border: 1px solid #a3c5df; border-radius: 12px; background: linear-gradient(110deg, var(--blue), #f2f8fd); }
.region-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; }
.region-icon { grid-row: span 2; width: 38px; height: 38px; padding: 8px; border: 1px solid #bfd6e8; border-radius: 10px; background: #fff; color: #28618f; }
.region-note strong { font-size: 1rem; color: #172a3c; }
.region-note p + p { margin-top: 3px; font-size: .85rem; color: var(--muted); }
.server-list { display: grid; gap: 10px; }
.server { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.server-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #e9f4ff; color: #365f80; font-size: .9rem; font-weight: 850; }
.server-icon img { display: block; width: 36px; height: 36px; object-fit: contain; }
.server h3 { margin: 0 0 4px; font-size: 1.08rem; }
.server-description { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.server-details { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.badge { border-radius: 99px; background: #e7f2fb; color: #284f6e; padding: 3px 8px; font-size: .72rem; font-weight: 750; }
.operator { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px; border: 1px solid #cbddeb; border-radius: 12px; background: #edf6ff; margin-bottom: 46px; }
.operator h2 { font-size: 1.15rem; margin-bottom: 4px; }
.operator .button { white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; background: #fff; }
.footer-content { display: grid; grid-template-columns: 1fr auto 1fr; }
.footer-content a { justify-self: end; }
.footer-copyright { font-size: .75rem; text-align: center; }
dialog { width: min(510px, calc(100% - 28px)); max-height: calc(100% - 28px); border: 1px solid var(--line); border-radius: 16px; padding: 22px; color: #172a3c; }
dialog::backdrop { background: #172a3c80; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-heading button { font-size: 1.45rem; background: transparent; border: 0; color: inherit; cursor: pointer; }
form { display: grid; gap: 12px; margin-top: 14px; }
form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 650; }
input, select { width: 100%; border: 1px solid #b9cddd; padding: 7px 9px; border-radius: 6px; background: #fff; color: inherit; }
.consent { display: flex; align-items: start; gap: 8px; }
.consent input { width: auto; }
form .button { justify-self: start; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .intro { grid-template-columns: 1fr; gap: 18px; }
  .project-art { width: min(310px, 100%); justify-self: center; }
  .operator { align-items: start; flex-direction: column; }
}
@media (max-width: 450px) {
  .region-note .button { width: 100%; }
  .server { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .server .button { grid-column: 2; justify-self: start; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .footer-content { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-content a { justify-self: center; }
}

.navigation [aria-current="page"] { color: #28618f; text-decoration: underline; text-underline-offset: .3em; }
.about-intro { padding-block: clamp(36px, 7vw, 72px); }
.about-intro p, .project-branch p { color: var(--muted); line-height: 1.6; }
.about-intro p { max-width: 62ch; }
.project-map { padding: clamp(16px, 4vw, 32px); border: 1px solid #cbddeb; border-radius: 20px; background: linear-gradient(135deg, #e9f4ff, #f6faff); }
.project-root { width: fit-content; margin-inline: auto; padding: 12px 18px; border: 1px solid #b9cddd; border-radius: 12px; background: #fff; text-align: center; }
.project-root p { margin-top: 4px; font-weight: 750; }
.project-branches::before { content: ""; position: absolute; top: 0; left: 50%; height: 14px; border-left: 1px solid #93b4cf; }
.project-branches { position: relative; padding-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-branch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: clamp(14px, 2.5vw, 24px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.project-branch img { object-fit: contain; }
.project-branch h3 { margin: 3px 0 6px; }
.project-branch a { display: inline-block; margin-top: 12px; color: #28618f; font-weight: 750; text-underline-offset: .18em; }
@media (max-width: 720px) {
  .project-branches { grid-template-columns: 1fr; padding-top: 16px; }
  .project-branches::before { display: none; }
}

.project-credits { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; }
.credit-card { padding: clamp(16px, 3vw, 24px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.credit-card h3 { margin: 0 0 6px; }
.credit-card p { color: var(--muted); line-height: 1.6; }
.credit-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.credit-list a { display: block; padding: 6px 10px; border-radius: 8px; background: #edf6ff; color: #284f6e; font-size: .85rem; text-decoration: none; overflow-wrap: anywhere; }
.credit-list a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .project-credits { grid-template-columns: 1fr; }
}
.maintainer-credit { margin-bottom: 16px; }

.project-branch { align-content: start; }

.intro-more { color: #28618f; font-weight: 750; text-underline-offset: .18em; }

.project-map {
  --connector: #93b4cf;
  background:
    radial-gradient(circle at 50% 0, #e0f1ff, transparent 75%),
    radial-gradient(circle, #aec9dd 1px, transparent 1px) 0 0 / 18px 18px,
    #f2f8fd;
}
.project-root { box-shadow: 0 5px 18px #183b5612; }
.project-branches::before { border-color: var(--connector); }
.project-branch { position: relative; background: #fff; box-shadow: 0 4px 16px #183b560d; }
.project-branch:is(:hover, :focus-within),
.project-branch:has(+ .reborn-branches li:is(:hover, :focus-within)),
.reborn-branches li:is(:hover, :focus-within) {
  --connector: #247da7;
  border-color: var(--connector);
  box-shadow: 0 7px 24px #247da721;
}
.project-map:has(.project-branch:is(:hover, :focus-within), .reborn-branches li:is(:hover, :focus-within)) .project-root {
  border-color: #247da7;
  background: #f5fbff;
}
.project-branches:has(.project-branch:is(:hover, :focus-within), .reborn-branches li:is(:hover, :focus-within))::before { border-color: #247da7; }

@media (min-width: 721px) {
  .project-branch::before {
    content: "";
    position: absolute;
    top: -15px;
    height: 14px;
    border-top: 1px solid var(--connector);
    pointer-events: none;
  }
  .project-branch:first-child::before {
    left: 50%;
    right: -9px;
    border-left: 1px solid var(--connector);
    border-top-left-radius: 7px;
  }
  .project-branch:nth-child(2)::before {
    left: -9px;
    right: 50%;
    border-right: 1px solid var(--connector);
    border-top-right-radius: 7px;
  }
}

.about-page .credit-list a:is(:hover, :focus-visible) { background: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .project-root, .project-branch, .reborn-branches li { transition: background-color 180ms, border-color 180ms, box-shadow 180ms; }
  .project-branch::before, .project-branches::before, .reborn-branches::before, .reborn-branches li::before { transition: border-color 180ms; }
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
}

.about-court {
  width: min(100%, 290px);
  justify-self: center;
  transform: perspective(420px) rotateX(38deg) rotateZ(-17deg);
}

.about-court .court-lines { fill: none; stroke: #397ea6; stroke-width: .6; }
.about-court .court-net { fill: none; stroke: #24678b; stroke-width: .8; stroke-dasharray: 1.6 .9; }
.about-court .court-post { fill: #24678b; }

@media (max-width: 800px) {
  .about-intro { grid-template-columns: 1fr; }

}

.reborn-branches {
  position: relative;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px 12px;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
}
.reborn-branches::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  height: calc(50% + 22px);
  border-left: 1px solid var(--connector);
}
.reborn-branches li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: .95rem;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 16px #183b560d;
}
.reborn-branches li span { color: var(--muted); font-size: .87rem; line-height: 1.45; }
.reborn-branches:has(li:is(:hover, :focus-within))::before { border-color: #247da7; }
.reborn-branches li::before {
  content: "";
  position: absolute;
  top: -13px;
  height: 12px;
  border-top: 1px solid var(--connector);
  pointer-events: none;
}
.reborn-branches li:nth-child(odd)::before {
  left: 50%;
  right: -7px;
  border-left: 1px solid var(--connector);
  border-top-left-radius: 6px;
}
.reborn-branches li:nth-child(even)::before {
  left: -7px;
  right: 50%;
  border-right: 1px solid var(--connector);
  border-top-right-radius: 6px;
}
.reborn-branches li:is(:hover, :focus-within)::before { z-index: 1; }
@media (max-width: 720px) {
  .reborn-branches { grid-column: 1; }
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}


.setup-checklist { margin-top: 14px; }
.setup-checklist ul { list-style: none; padding: 0; margin: 0; }
.setup-checklist li { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.5; }
.setup-checklist strong { color: #172a3c; }

.setup-checklist .credit-card { border-radius: 18px; }
.setup-checklist h3 { display: flex; align-items: center; gap: 10px; }
.setup-icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 11px;
  color: #28618f;
  background: #e7f3ff;
}
.setup-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.setup-roadmap li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid #cbddeb;
  border-radius: 18px;
  background: linear-gradient(155deg, #fff, #edf6ff);
}
.setup-step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #245779;
  background: #dcefff;
  font-weight: 800;
}
.setup-arrow {
  position: absolute;
  left: calc(100% + 6px);
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  color: #467b9f;
}
.setup-roadmap p { margin-top: 5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 850px) {
  .setup-roadmap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .setup-roadmap li { flex-direction: row; }
  .setup-step { flex: none; }
  .setup-arrow { top: calc(100% + 4px); left: 24px; transform: rotate(90deg); }
}

.project-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px clamp(24px, 5vw, 70px);
}
.project-overview .section-heading { margin: 0; }
.project-overview .button { margin-top: 16px; }
.project-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(34px, 6vw, 88px) minmax(0, 1fr);
  align-items: center;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid #d1e3ef;
  border-radius: 16px;
  background: radial-gradient(circle, #b8d3e8 1px, transparent 1px) center / 16px 16px, linear-gradient(115deg, #edf6ff, #e1f1fc);
}
.flow-node {
  display: grid;
  justify-items: center;
  align-content: center;
  align-self: stretch;
  gap: 5px;
  padding: 12px 5px;
  border: 1px solid #c7ddec;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  font-size: .92rem;
  font-weight: 750;
}
.flow-node small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.flow-court { width: 48px; height: 48px; color: #28618f; }
.connection-link {
  position: relative;
  border-top: 1px solid #6999bd;
  text-align: center;
}
.connection-link::after {
  position: absolute;
  top: -4px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #6999bd;
  border-right: 1px solid #6999bd;
  content: "";
  transform: rotate(45deg);
}
@media (max-width: 760px) {
  .project-overview { grid-template-columns: minmax(0, 1fr); }
}

/* Shared surfaces keep the directory, project map and setup guide in one visual system. */
.setup-art {
  background:
    radial-gradient(circle, #8fb8d13d 1px, transparent 1px) 0 0 / 16px 16px,
    radial-gradient(ellipse at 55% 38%, #f4fbff, #d8edfc);
}
.about-art, .setup-art {
  display: grid;
  min-height: 210px;
  border: 1px solid #cbddeb;
  border-radius: 24px;
}
.about-art { place-items: center; border-color: transparent; background: radial-gradient(ellipse at center, #dceffc, transparent 72%); }
.about-court { width: 80%; }
.setup-art {
  grid-template-columns: minmax(0, 1fr) clamp(26px, 3vw, 40px) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: clamp(14px, 2vw, 24px);
}
.setup-art-node {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px 6px;
  border: 1px solid #cbddeb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px #183b5610;
  font-size: .84rem;
  font-weight: 750;
  text-align: center;
}
.setup-art-node .icon { width: 30px; height: 30px; color: #28618f; }

.server { border-radius: 16px; }
.server:is(:hover, :focus-within) { border-color: #a3c5df; box-shadow: 0 5px 18px #183b5610; }
.project-branch, .credit-card { border-radius: 16px; }
.setup-roadmap li:focus-within { border-color: #a3c5df; }

@media (prefers-reduced-motion: no-preference) {
  .server { transition: border-color 160ms ease, box-shadow 160ms ease; }
}
@media (max-width: 800px) {
  .setup-art { min-height: 0; width: min(100%, 400px); }
  .setup-art-node { gap: 6px; padding: 10px 6px; }
  .setup-art-node .icon { width: 23px; height: 23px; }
}

@media (max-width: 500px) {
  .navigation { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 12px; }
  .nav-links { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; }
  .nav-links a { min-height: 36px; }
}

.setup-roadmap h3 { margin: 0; font-size: 1rem; }
.setup-roadmap code {
  padding: .08em .25em;
  border-radius: 4px;
  background: #e0effa;
  color: #254d6a;
  font-size: .88em;
  white-space: nowrap;
}
.setup-reference {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.setup-reference p { margin-top: 4px; color: var(--muted); line-height: 1.5; }
.project-overview .section-heading p { max-width: 55ch; }
.rally-ball { fill: #c6e85d; stroke: #526d28; stroke-width: .6; }
.rally-shadow { fill: #17394f40; }
@media (max-width: 800px) {
  .about-art { display: grid; min-height: 0; padding-block: 8px; }
  .about-court { display: block; width: min(65%, 245px); }
}
@media (prefers-reduced-motion: no-preference) {
  .court-rally .rally-ball, .court-rally .rally-shadow {
    animation: court-rally 2.25s linear infinite paused;
  }
  .court-rally .rally-shadow { animation-name: court-shadow; }
  .about-art.is-visible .court-rally > * { animation-play-state: running; }
  @keyframes court-rally {
    0%, 100% { transform: translate(0, 0); }
    22% { transform: translate(29px, -16px); }
    40% { transform: translate(53px, -1px); }
    50% { transform: translate(62px, -8px); }
    70% { transform: translate(36px, -20px); }
    89% { transform: translate(12px, 2px); }
  }
  @keyframes court-shadow {
    0%, 100% { transform: translate(0, 0); opacity: .7; }
    22% { transform: translate(29px, -3px); opacity: .35; }
    40% { transform: translate(53px, -5px); opacity: 1; }
    50% { transform: translate(62px, -6px); opacity: .7; }
    70% { transform: translate(36px, -3px); opacity: .35; }
    89% { transform: translate(12px, -1px); opacity: 1; }
  }
}

.setup-questions {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.setup-questions details + details { border-top: 1px solid var(--line); }
.setup-questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.setup-questions summary::-webkit-details-marker { display: none; }
.setup-questions summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border: solid #28618f;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.setup-questions details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.setup-questions summary:is(:hover, :focus-visible) { background: #edf6ff; }
.setup-questions summary:focus-visible { outline-offset: -3px; }
.setup-questions p { max-width: 75ch; padding: 0 20px 16px; color: var(--muted); line-height: 1.55; }

.flow-node { text-decoration: none; }
.flow-node:is(:hover, :focus-visible) {
  border-color: #7baacc;
  background: #f7fcff;
  box-shadow: 0 5px 14px #203a5012;
}
.project-flow:has(.flow-node:is(:hover, :focus-visible)) .connection-link,
.project-flow:has(.flow-node:is(:hover, :focus-visible)) .connection-link::after {
  border-color: #28618f;
}
.resource-panel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.resource-icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 12px;
  background: #dcefff;
  color: #28618f;
}
.setup-intro { padding-bottom: clamp(24px, 4vw, 42px); }
.setup-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 24px;
}
.setup-jumps a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #cbddeb;
  border-radius: 999px;
  background: #fff;
  color: #284f6e;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.setup-jumps a:is(:hover, :focus-visible) { background: #edf6ff; border-color: #a3c5df; }
@media (max-width: 720px) {
  .resource-panel { grid-template-columns: auto minmax(0, 1fr); }
  .resource-panel .button { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .flow-node, .setup-jumps a { transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
}

.project-feature {
  display: grid;
  align-items: center;
  min-height: 260px;
  margin-bottom: 44px;
  padding: clamp(24px, 5vw, 52px);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(90deg, #142a3e 5%, #142a3ef2 43%, #142a3e20 100%),
    url("reborn-woodland.png") right 28% / cover no-repeat, #142a3e;
}
.project-feature .eyebrow { color: #b6e1ff; }
.project-feature h2 { max-width: 23ch; margin-block: 8px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; }
.project-feature p { max-width: 47ch; color: #e0edf8; line-height: 1.6; }
.project-feature .button { margin-top: 20px; }
.projects-intro { margin-top: clamp(20px, 4vw, 44px); min-height: 350px; }
.projects-intro h1 { max-width: 14ch; }
.endpoint-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.endpoint-map > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf6ff;
}
.endpoint-map p { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.endpoint-map strong { display: block; margin-top: 6px; }
.project-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(20px, 5vw, 64px);
}
.project-story h2 { margin-block: 8px; font-size: clamp(1.65rem, 4vw, 2.5rem); }
.project-story p, .tool-preview figcaption { color: var(--muted); line-height: 1.6; }
.project-brand {
  display: grid;
  place-items: center;
  min-height: 200px;
  border-radius: 18px;
  background: radial-gradient(circle, #315a6c, #142a3e 80%);
}
.project-brand img { object-fit: contain; }
.tool-preview { margin: 0; }
.tool-preview a { position: relative; display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tool-preview a:is(:hover, :focus-visible) { border-color: #286ba1; }
.preview-expand {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #203a50;
  color: #fff;
}
.tool-preview img { display: block; width: 100%; height: auto; }
.tool-preview figcaption { margin-top: 8px; font-size: .85rem; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 16px 0 0; padding: 0; }
.tool-tags li { border-radius: 99px; padding: 5px 9px; color: #284f6e; background: #e7f2fb; font-size: .82rem; }
.operator-subheading { margin-block: 26px 10px; }
.operator-tables { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.operator-tables > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 18px; padding: 14px 18px; }
.operator-tables > div + div { border-top: 1px solid var(--line); }
.operator-tables dt { font-weight: 700; overflow-wrap: anywhere; }
.operator-tables dd { margin: 0; color: var(--muted); line-height: 1.55; }
.operator-note { margin-top: 14px; color: var(--muted); line-height: 1.55; }
@media (max-width: 720px) {
  .project-feature {
    background-image: linear-gradient(180deg, #142a3ebf, #142a3e 78%), url("reborn-woodland.png");
    background-position: center, center top;
    background-size: auto, max(100%, 640px) auto;
  }
  .project-story, .endpoint-map, .operator-tables > div { grid-template-columns: minmax(0, 1fr); }
}

.project-feature-home {
  min-height: 220px;
  border: 1px solid var(--line);
  color: #172a3c;
  background: linear-gradient(90deg, #edf6ff 15%, #edf6ff 48%, #edf6ff00 100%),
    url("reborn-woodland.png") right 27% / cover no-repeat, #edf6ff;
}
.project-feature-home .eyebrow { color: #365f80; }
.project-feature-home p { color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.module-grid h3 { margin: 0 0 10px; }
.module-list { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.module-list > div { padding: 13px 16px; }
.module-list > div + div { border-top: 1px solid var(--line); }
.module-list dt { color: #244f72; font-weight: 750; }
.module-list dd { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 720px) {
  .project-feature-home {
    background-image: linear-gradient(180deg, #edf6ffe8, #edf6ff 80%), url("reborn-woodland.png");
  }
  .module-grid { grid-template-columns: minmax(0, 1fr); }
}

.config-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.config-files article { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.config-files h4 { margin: 0 0 6px; font-size: 1rem; }
.config-files p { color: var(--muted); line-height: 1.55; }
.config-files code, .operator-tables code, .setup-questions code { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .config-files { grid-template-columns: minmax(0, 1fr); }
}

.tool-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.image-viewer {
  width: min(1260px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  background: #fff;
}
.image-viewer .dialog-heading {
  position: sticky;
  top: 0;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 12px 8px 16px;
  background: #fff;
}
.image-viewer h2 { flex: 1 1 220px; font-size: .95rem; line-height: 1.4; }
.viewer-actions { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; }
.viewer-actions .viewer-zoom { min-height: 40px; font-size: .8rem; }
.viewer-zoom[aria-pressed="true"] { background: var(--blue); border-color: #7baacc; }
.viewer-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.viewer-close:hover { background: var(--blue); }
.image-viewport {
  max-height: min(82dvh, calc(100dvh - 122px));
  overflow: auto;
  background: #172a3c;
}
.image-viewport:focus-visible { outline-offset: -3px; }
.image-viewport img {
  display: block;
  max-width: 100%;
  max-height: inherit;
  margin-inline: auto;
  object-fit: contain;
}
.image-viewport.is-zoomed img { max-width: none; max-height: none; }
body:has(dialog[open]) { overflow: hidden; }
/* A brief moving highlight shows which way each connection runs. */
.endpoint-arrow { display: inline-block; color: #28618f; }
@media (prefers-reduced-motion: no-preference) {
  .connection-link::before {
    position: absolute;
    top: -2px;
    width: min(58%, 30px);
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #48aace 60%, #2676a5 90%, #a8e5fc);
    filter: drop-shadow(0 0 3px #42a0cc);
    pointer-events: none;
    content: "";
    animation: connection-travel 2.8s ease-in-out infinite;
  }
  .connection-link::after { animation: connection-tip 2.8s ease-in-out infinite; }
  .setup-arrow, .endpoint-arrow { animation: connection-arrow 2.8s ease-in-out infinite; }
  .setup-roadmap li:nth-child(2) .setup-arrow, .endpoint-map > div:nth-child(2) .endpoint-arrow { animation-delay: .18s; }
  .setup-roadmap li:nth-child(3) .setup-arrow, .endpoint-map > div:nth-child(3) .endpoint-arrow { animation-delay: .36s; }

  @keyframes connection-travel {
    0%, 24% { left: 0; opacity: 0; }
    34% { opacity: 1; }
    60% { left: calc(100% - min(58%, 30px) - 5px); opacity: 1; }
    68%, 100% { left: calc(100% - min(58%, 30px) - 5px); opacity: 0; }
  }
  @keyframes connection-tip {
    56%, 70% { filter: none; }
    63% { border-color: #247da7; filter: drop-shadow(0 0 2px #42a0cc); }
  }
  @keyframes connection-arrow {
    0%, 20%, 80%, 100% { opacity: .75; translate: 0; filter: none; }
    55% { opacity: 1; translate: var(--arrow-shift, 3px 0); filter: drop-shadow(0 0 3px #75bbdf); }
  }
}
@media (max-width: 850px) {
  .setup-arrow { --arrow-shift: 0 3px; }
}
