:root {
  --blue: #1b5c8f;
  --navy: #0d3b66;
  --forest: #1f4d2b;
  --forest-dark: #163a20;
  --mist: #eef4f3;
  --paper: #ffffff;
  --ink: #1b2a33;
  --muted: #5a6b74;
  --line: #d9e3e6;
  --danger: #b3261e;
  --ok: #1e7a3c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 59, 102, 0.06), 0 8px 24px rgba(13, 59, 102, 0.08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; font-weight: 600; }
a:hover { color: var(--navy); }
.ul-word { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
[id] { scroll-margin-top: 84px; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
[hidden] { display: none !important; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 0.25rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); padding: 0.5rem 0.8rem; border-radius: 999px; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.nav a.cta { background: var(--forest); color: #fff; }
.nav a.cta:hover { background: var(--forest-dark); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 0.75rem; font: inherit; cursor: pointer; color: var(--navy); }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 0.75rem 1rem 1rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 1rem; }
}

/* hero */
.hero { position: relative; color: #fff; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, #2c7a8c 100%); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300'%3E%3Cpath d='M0 300 L120 120 L190 210 L290 60 L400 220 L470 140 L600 300 Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right bottom; background-size: min(900px, 120%) auto;
}
.hero.hero-photo { background: linear-gradient(100deg, rgba(13, 59, 102, 0.9) 0%, rgba(13, 59, 102, 0.78) 50%, rgba(13, 59, 102, 0.6) 100%), url("/images/tents.jpg") center / cover no-repeat; }
@media (min-width: 761px) {
  .hero.hero-photo { background: linear-gradient(100deg, rgba(13, 59, 102, 0.88) 0%, rgba(13, 59, 102, 0.62) 50%, rgba(13, 59, 102, 0.3) 100%), url("/images/tents.jpg") center / cover no-repeat; }
}
.hero.hero-photo::before { display: none; }
.hero.hero-photo h1, .hero.hero-photo .lead { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.hero .credit { position: absolute; right: 0; bottom: 0.6rem; margin: 0; font-size: 0.8rem; opacity: 0.9; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.photo-banner { margin: 0; background: var(--mist); }
.photo-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 55%; max-height: 460px; }
.photo-banner figcaption { font-size: 0.85rem; color: var(--muted); padding: 0.5rem 0; text-align: right; }
.hero .wrap { position: relative; padding-block: clamp(3rem, 9vw, 6.5rem); }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; opacity: 0.85; margin-bottom: 0.8rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 46ch; opacity: 0.95; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-hero p { max-width: 68ch; color: var(--muted); margin-bottom: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.3rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; background: var(--forest); color: #fff; }
.btn:hover { background: var(--forest-dark); color: #fff; }
.btn.light { background: #fff; color: var(--navy); }
.btn.light:hover { background: var(--mist); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.danger { background: var(--danger); }
.btn.small { padding: 0.4rem 0.85rem; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* sections */
section.block { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
section.tint { background: var(--mist); }
.grid { display: grid; gap: 1.25rem; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }
.stats strong { display: block; font-size: 1.9rem; color: #fff; line-height: 1.1; }
.stats span { font-size: 0.9rem; opacity: 0.85; }

/* guidance */
.guidance { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: stretch; }
.guidance .card { display: grid; gap: 0.5rem; }

/* register */
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 1.25rem; }
.tabs button { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--navy); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.filters { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1rem; }

label.field { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.92rem; color: var(--navy); }
input, select, textarea { font: inherit; padding: 0.65rem 0.8rem; border: 1px solid #b8c7cc; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.count { color: var(--muted); margin: 0.25rem 0 1rem; }
.advisers { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.adviser { display: flex; flex-direction: column; gap: 0.75rem; }
.adviser header { display: grid; gap: 0.85rem; }
.avatar { width: 68px; height: 68px; border-radius: 50%; flex: none; object-fit: cover; background: linear-gradient(135deg, var(--blue), var(--forest)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.35rem; }
.adviser h3 { margin: 0; font-size: 1.15rem; }
.adviser .role { color: var(--muted); font-size: 0.95rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { background: var(--mist); color: var(--navy); border-radius: 999px; padding: 0.15rem 0.65rem; font-size: 0.82rem; font-weight: 500; }
.chip.org { background: #e3eef7; }
.adviser .bio { font-size: 0.97rem; margin: 0; white-space: pre-line; color: var(--muted); line-height: 1.55; }
.adviser .quals { font-size: 0.9rem; color: var(--muted); margin: 0; }
.adviser .contact { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.after { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.notice { background: #fff8e1; border: 1px solid #f0dca0; border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.95rem; }

/* forms */
.form { display: grid; gap: 1rem; }
.row2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 0.35rem; }
.hp { position: absolute; left: -9999px; }
.msg { padding: 0.8rem 1rem; border-radius: 10px; font-weight: 500; }
.msg.ok { background: #e6f4ea; color: var(--ok); }
.msg.err { background: #fdecea; color: var(--danger); }

/* footer */
.site-footer { background: var(--navy); color: #d6e4ef; padding-block: 2.5rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer address { font-style: normal; }
.site-footer .supporters { margin-top: 2rem; }
.site-footer .logos { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }
.site-footer .logos a { background: #fff; border-radius: 12px; padding: 0.6rem 0.9rem; display: flex; align-items: center; }
.site-footer .logos img { height: 76px; width: auto; display: block; }
.site-footer .legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* admin */
body.admin { background: var(--mist); font-size: 1rem; }
.admin-bar { background: var(--navy); color: #fff; }
.admin-bar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 60px; gap: 1rem; flex-wrap: wrap; }
.admin-bar a { color: #fff; }
.admin-bar strong { font-size: 1.05rem; }
.admin-main { padding-block: 1.5rem 4rem; }
.signin { max-width: 440px; margin: 4rem auto; }
.admin-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.admin-tabs button { border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; padding: 0.55rem 1rem; border-radius: 999px; cursor: pointer; color: var(--navy); }
.admin-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge { display: inline-block; min-width: 1.4rem; padding: 0 0.45rem; border-radius: 999px; background: #f2b705; color: #3a2d00; font-size: 0.8rem; text-align: center; margin-left: 0.3rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; align-items: end; }
.toolbar .grow { flex: 1 1 220px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #f7fafb; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.actions { white-space: nowrap; display: flex; gap: 0.4rem; }
.status { font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; }
.status.published { background: #e6f4ea; color: var(--ok); }
.status.pending { background: #fff4d6; color: #7a5600; }
.status.hidden { background: #eceff1; color: #4d5b62; }
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(720px, 100% - 1.5rem); max-height: 92vh; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
dialog::backdrop { background: rgba(13, 59, 102, 0.55); }
dialog form { padding: 1.4rem; }
dialog .dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
dialog .dialog-foot { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.photo-edit { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.photo-edit .avatar { width: 84px; height: 84px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; }
.checks .tick { font-weight: 800; }
.checks .tick.ok { color: var(--ok); }
.checks .tick.bad { color: var(--danger); }
pre.sample { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem; overflow-x: auto; font-size: 0.85rem; }
.preview td, .preview th { font-size: 0.85rem; padding: 0.4rem 0.6rem; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details { margin-top: 1.2rem; }
summary { cursor: pointer; color: var(--blue); font-weight: 600; }
details .form { margin-top: 0.8rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .filters, .tabs { display: none; } }

/* Useful links */
.grid.links { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.link-card { display: flex; gap: 1.1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); color: var(--ink); font-weight: 400; transition: transform 0.15s ease, border-color 0.15s ease; }
.link-card:hover, .link-card:focus-visible { border-color: var(--blue); transform: translateY(-2px); }
.link-card .logo-tile { flex: none; width: 104px; height: 104px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.link-card .logo-tile img { max-width: 80%; max-height: 80%; width: auto; height: auto; }
.link-card .mark { font-weight: 700; font-size: 1.15rem; color: var(--blue); letter-spacing: 0.02em; }
.link-body { display: grid; gap: 0.25rem; min-width: 0; }
.link-body strong { color: var(--navy); font-size: 1.05rem; }
.link-body .host { color: var(--blue); font-size: 0.85rem; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 420px) { .link-card .logo-tile { width: 84px; height: 84px; } }

.gcard .ghead { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.3rem; }
.gcard .ghead h2 { font-size: 1.15rem; margin: 0; }
.gcard .logo-tile { flex: none; width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.gcard .mark { font-weight: 700; font-size: 1rem; color: var(--blue); }
.gcard { display: flex; flex-direction: column; }
.gcard > p:last-child { margin-top: auto; padding-top: 0.5rem; }

.menu-btn { flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 42px; padding: 0; align-items: center; }
.menu-btn .bar { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.hero.hero-photo.hero-city { background: linear-gradient(100deg, rgba(13, 59, 102, 0.9) 0%, rgba(13, 59, 102, 0.78) 50%, rgba(13, 59, 102, 0.6) 100%), url("/images/crowd.jpg") center / cover no-repeat; }
@media (min-width: 761px) { .hero.hero-photo.hero-city { background: linear-gradient(100deg, rgba(13, 59, 102, 0.88) 0%, rgba(13, 59, 102, 0.62) 50%, rgba(13, 59, 102, 0.3) 100%), url("/images/crowd.jpg") center / cover no-repeat; } }
.guidance .gcard { display: flex; flex-direction: column; gap: 0.5rem; }

.adviser .logo-tile { height: 92px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; }
.adviser .logo-tile img { display: block; max-width: 100%; max-height: 70px; width: auto; height: auto; object-fit: contain; }
.adviser .logo-tile.initials { border: 0; background: linear-gradient(135deg, var(--blue), var(--forest)); color: #fff; font-weight: 700; font-size: 1.7rem; letter-spacing: 0.04em; }
.adviser h3 { line-height: 1.25; }

/* Standard adviser card */
.adviser .contacts { display: grid; gap: 0.5rem; min-width: 0; }
.adviser .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 10px; }
.adviser .slides::-webkit-scrollbar { display: none; }
.adviser .slides:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.adviser .slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; display: grid; gap: 0.35rem; align-content: start; }
.adviser .crow { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.adviser .crow .k { color: var(--muted); font-weight: 500; margin-right: 0.15rem; }
.adviser .crow .v { color: var(--ink); font-weight: 600; }
.adviser .crow .none { color: var(--muted); font-weight: 400; }
.adviser .crow a { font-weight: 600; }
.adviser .crow .role { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 400; margin-top: 0.1rem; }
.adviser .cnav { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 0.55rem; }
.adviser .cnav .pos { color: var(--muted); font-size: 0.9rem; }
.adviser .arrow { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.adviser .arrow:hover:not(:disabled) { border-color: var(--blue); }
.adviser .arrow:disabled { opacity: 0.35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .adviser .slides { scroll-behavior: auto; } }

.contacts-edit { border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem; display: grid; gap: 0.75rem; margin: 0; min-width: 0; }
.contacts-edit legend { font-weight: 600; padding: 0 0.4rem; }
.crow-edit { display: grid; gap: 0.6rem; grid-template-columns: 1fr; padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.crow-edit:last-child { border-bottom: 0; margin-bottom: 0; }
@media (min-width: 640px) { .crow-edit { grid-template-columns: 1fr 1fr; } .crow-edit > .btn { justify-self: start; } }
.memfs { border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 0.9rem; margin: 0; min-width: 0; }
.memfs legend { font-weight: 600; padding: 0 0.4rem; }
.memgrid { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding-top: 0.25rem; }
.memgrid .check { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.adviser:nth-child(even) { background: #e8f1fa; border-color: #cddfee; }
.adviser:nth-child(even) .chip { background: #fff; }

/* icons and gentle motion */
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 12px; background: #e3eef7; color: var(--blue); margin-bottom: 0.9rem; }
.card, .link-card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
@media (hover: hover) {
  .card:hover, .link-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13, 59, 102, 0.08), 0 14px 32px rgba(13, 59, 102, 0.14); border-color: #bfd3e2; }
  .btn { transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
  .btn:hover { transform: translateY(-1px); }
}
.motion [data-rv] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.motion [data-rv].in { opacity: 1; transform: none; }
@media (hover: hover) { .motion .card[data-rv].in:hover, .motion .link-card[data-rv].in:hover { transform: translateY(-3px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .wrap > * { animation: rise 0.8s ease both; }
.hero .wrap > *:nth-child(2) { animation-delay: 0.1s; }
.hero .wrap > *:nth-child(3) { animation-delay: 0.2s; }
.hero .wrap > *:nth-child(4) { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { .hero .wrap > * { animation: none; } .card, .link-card, .btn { transition: none; } }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; }
.fold > summary::after { content: ""; flex: none; width: 0.65rem; height: 0.65rem; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); transition: transform 0.25s ease; margin-right: 0.4rem; }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.fold[open] > summary { margin-bottom: 1rem; }
.gcard .logo-tile img { max-width: 80%; max-height: 80%; width: auto; height: auto; }

/* personality: contour lines, amber accent, ridge line, stats */
:root { --sun: #e3a02f; }
.ul-word { text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
section.tint, .page-hero {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='320' viewBox='0 0 520 320' fill='none' stroke='%231b5c8f' stroke-opacity='0.09' stroke-width='1.4'%3E%3Cpath d='M-20 250c70-60 130-10 200-50s90-110 180-100 120 70 180 30'/%3E%3Cpath d='M-20 270c70-60 130-10 200-50s90-110 180-100 120 70 180 30'/%3E%3Cpath d='M-20 290c70-60 130-10 200-50s90-110 180-100 120 70 180 30'/%3E%3Cpath d='M-20 230c70-60 130-10 200-50s90-110 180-100 120 70 180 30'/%3E%3Cpath d='M-20 210c70-60 130-10 200-50s90-110 180-100 120 70 180 30'/%3E%3Cpath d='M-20 190c70-60 130-10 200-50s90-110 180-100 120 70 180 30'/%3E%3Cpath d='M-20 170c70-60 130-10 200-50s90-110 180-100 120 70 180 30'/%3E%3C/svg%3E");
  background-size: 520px 320px;
}
section.block h2::before { content: ""; display: block; width: 2.6rem; height: 4px; border-radius: 4px; background: var(--sun); margin-bottom: 0.7rem; }
.fold > summary h2::before { display: none; }
.eyebrow::before { content: ""; display: inline-block; width: 1.6rem; height: 3px; border-radius: 3px; background: var(--sun); margin-right: 0.6rem; vertical-align: middle; }
.site-footer { position: relative; margin-top: 2.5rem; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -34px; height: 35px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 35' preserveAspectRatio='none'%3E%3Cpath d='M0 35 L0 24 L110 10 L190 22 L300 4 L400 20 L520 12 L640 26 L760 8 L880 22 L980 6 L1090 20 L1200 12 L1200 35 Z' fill='%230d3b66'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.btn.ghost, .card h3 { transition: color 0.2s ease; }
.card:hover h3 { color: var(--blue); }

/* ===== Register v2: search hero, toolbar, list view, neater cards ===== */
.reg-hero .eyebrow { margin: 0 0 0.6rem; }
.hero-search { position: relative; max-width: 640px; margin-top: 1.4rem; }
.hero-search svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.hero-search input { padding: 1rem 1.1rem 1rem 3rem; font-size: 1.05rem; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 6px 22px rgba(13,59,102,.16); }
.hero-search input:focus-visible { outline: 3px solid var(--sun, #e3a02f); outline-offset: 2px; }
.tabs .n { display: inline-block; min-width: 1.6em; margin-left: 0.35rem; padding: 0 0.45em; border-radius: 999px; background: var(--mist); color: var(--navy); font-size: 0.82rem; line-height: 1.6; }
.tabs button[aria-selected="true"] .n { background: rgba(255,255,255,.2); color: #fff; }
.type-note { margin: 0 0 1rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.5rem; padding: 0.8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.9rem; }
.tb-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; min-width: 0; }
.tb-label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.mf { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mf button { border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-size: 0.88rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 999px; cursor: pointer; }
.mf button:hover { border-color: var(--blue); }
.mf button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sortsel { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.sortsel select { width: auto; padding: 0.4rem 0.6rem; font-size: 0.9rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { display: inline-flex; align-items: center; gap: 0.4rem; border: 0; background: #fff; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--navy); padding: 0.4rem 0.8rem; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg svg, .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.az { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.6rem; }
.az a, .az span { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 8px; font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.az a { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.az a:hover { background: var(--navy); color: #fff; }
.az span { color: #b8c7cc; }
.adviser { scroll-margin-top: 90px; }

/* cards */
.advisers.cards { align-items: stretch; }
.adviser .crow { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 0.55rem; align-items: start; }
.adviser .crow .ic { margin-top: 0.28rem; color: var(--blue); }
.adviser .crow .k { display: none; }
.adviser .crow .v, .adviser .crow a { overflow-wrap: anywhere; }
.adviser .crow .val { min-width: 0; }
.adviser .crow .role { display: block; }
.adviser .copy { border: 0; background: transparent; color: var(--blue); cursor: pointer; padding: 0 0 0 0.35rem; vertical-align: middle; }
.adviser .copy:hover { color: var(--navy); }
.adviser .copy.done { color: var(--ok, #1e7a3c); }
.adviser .contacts { flex: 1; align-content: start; }
.cnav .dots { display: flex; gap: 6px; }
.cnav .dots i { width: 7px; height: 7px; border-radius: 50%; background: #c3d2d8; }
.cnav .dots i.on { background: var(--navy); }

/* list view */
.advisers.rows { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.advisers.rows .adviser { display: grid; grid-template-columns: 64px minmax(170px, 1.2fr) minmax(0, 2fr) auto; grid-template-areas: "logo name contact web" ". chips more more"; gap: 0.4rem 1rem; align-items: center; border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); padding: 0.8rem 1rem; transition: none; transform: none; }
.advisers.rows .adviser:last-child { border-bottom: 0; }
.advisers.rows .adviser header { display: contents; }
.advisers.rows .adviser .logo-tile { grid-area: logo; height: 48px; width: 64px; padding: 4px; border-radius: 8px; }
.advisers.rows .adviser .logo-tile img { max-height: 38px; }
.advisers.rows .adviser .logo-tile.initials { font-size: 1.05rem; }
.advisers.rows .adviser h3 { grid-area: name; font-size: 1.02rem; }
.advisers.rows .adviser .chips { grid-area: chips; grid-column: 2; }
.advisers.rows .adviser .contacts { grid-area: contact; }
.advisers.rows .adviser .slides { display: block; overflow: visible; }
.advisers.rows .adviser .slide { display: none; grid-template-columns: repeat(3, minmax(0, auto)); gap: 0.3rem 1.4rem; justify-content: start; }
.advisers.rows .adviser .slide:first-child { display: grid; }
.advisers.rows .adviser .cnav { display: none; }
.advisers.rows .adviser .crow { grid-template-columns: 18px auto; }
.advisers.rows .adviser .contact { grid-area: web; margin: 0; }
.advisers.rows .adviser .morebtn { grid-area: more; justify-self: start; }
.advisers.rows .adviser.open .slides .slide { display: grid; padding-top: 0.5rem; border-top: 1px dashed var(--line); margin-top: 0.5rem; }
.adviser .morebtn { display: none; }
.advisers.rows .adviser .morebtn { display: inline-flex; border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; padding: 0; }
.advisers.rows .adviser:nth-child(even) { background: #e8f1fa; }
@media (max-width: 860px) {
  .advisers.rows .adviser { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "logo name" "contact contact" "chips chips" "more web"; }
  .advisers.rows .adviser .chips { grid-column: 1 / -1; }
  .advisers.rows .adviser .slide { grid-template-columns: minmax(0, 1fr); }
  .advisers.rows .adviser .contact { justify-self: end; }
}
@media (max-width: 560px) { .toolbar { padding: 0.7rem; } .tb-group.right { width: 100%; justify-content: space-between; } .tabs { display: flex; } .tabs button { flex: 1; padding-inline: 0.5rem; font-size: 0.9rem; } }
.advisers.rows .adviser { grid-template-columns: 64px minmax(180px, 1fr) minmax(0, 2.6fr) auto; }
.advisers.rows .adviser .slide { grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.7fr) minmax(130px, 1fr); }
.advisers.rows .adviser .crow .v, .advisers.rows .adviser .crow a { overflow-wrap: normal; word-break: normal; }
.advisers.rows .adviser .crow .val { overflow-wrap: anywhere; }
.advisers.rows .adviser .slide:not(:first-child) { grid-column: 1 / -1; }
@media (max-width: 860px) { .advisers.rows .adviser .slide { grid-template-columns: minmax(0, 1fr); } }
.advisers.rows .adviser .slide { grid-template-columns: minmax(110px, 0.7fr) minmax(0, 2fr) minmax(0, 1.1fr); }
.advisers.rows .adviser .crow .role { display: none; }
.advisers.rows .adviser .crow .val { overflow-wrap: normal; }
.advisers.rows .adviser .slide .crow:nth-child(2) .val { white-space: nowrap; }
.advisers.rows .adviser .copy { padding-left: 0.3rem; }
.advisers.rows .adviser .morebtn { grid-column: 3 / 4; }
.advisers.rows .adviser .slide { grid-template-columns: 170px minmax(0, 1fr) 200px; }
.advisers.rows .adviser .morebtn { grid-column: 2 / 3; margin-left: 0; }
@media (max-width: 860px) {
  .advisers.rows .adviser .slide { grid-template-columns: minmax(0, 1fr); }
  .advisers.rows .adviser .slide .crow:nth-child(2) .val { white-space: normal; overflow-wrap: anywhere; }
  .advisers.rows .adviser .crow .val { overflow-wrap: anywhere; }
  .advisers.rows .adviser .morebtn { grid-column: auto; }
  .advisers.rows .adviser .contact { justify-self: start; }
}
@media (min-width: 861px) {
  .advisers.rows .adviser { grid-template-columns: 64px 200px minmax(0, 1fr) 96px; }
  .advisers.rows .adviser .slide { grid-template-columns: 150px minmax(0, 1fr) 172px; gap: 0.3rem 1rem; font-size: 0.95rem; }
  .advisers.rows .adviser .crow .v { font-size: 0.95rem; }
  .advisers.rows .adviser .contact { min-width: 96px; }
}
.toolbar { justify-content: flex-end; }
.toolbar { background: none; border: 0; padding: 0; }

/* Register: home page personality (navy hero, amber accents) */
.reg-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #2c7a8c 100%); border-bottom: 0; position: relative; overflow: hidden; }
.reg-hero h1, .reg-hero p { color: #fff; }
.reg-hero p { opacity: 0.92; }
.reg-hero .eyebrow { color: var(--sun); font-weight: 700; }
.reg-hero .ul-word { text-decoration-color: var(--sun); }
.reg-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--sun), #f2c36b 50%, var(--sun)); }
.hero-search input { border-color: var(--sun); }
.tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--sun); }
.tabs .n { background: var(--sun); color: #3a2a05; font-weight: 700; }
.tabs button[aria-selected="true"] .n { background: var(--sun); color: #3a2a05; }
.az a:hover { background: var(--sun); border-color: var(--sun); color: #3a2a05; }
.seg button[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--sun); }
.advisers.cards .adviser { position: relative; border-top: 4px solid var(--sun); }
.advisers.cards .adviser:hover { border-color: var(--line); border-top-color: var(--sun); }
.advisers.rows .adviser { border-left: 4px solid transparent; }
.advisers.rows .adviser:hover { border-left-color: var(--sun); }
.adviser .crow .ic { color: var(--sun); }
.adviser .cnav .dots i.on { background: var(--sun); }
.adviser .btn.small { box-shadow: 0 2px 0 var(--sun); }
.count { font-weight: 600; color: var(--navy); }
