: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); }
.site-footer .legal .credit { margin-left: auto; font-size: 0.78rem; opacity: 0.7; }
.hero .credit { font-size: 0.68rem; opacity: 0.55; letter-spacing: 0.02em; text-shadow: 0 1px 3px rgba(0,0,0,.5); bottom: 0.4rem; }

/* Memberships per contact */
.cmem { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; }
.cmem-l { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.cmem .check { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.cmem .check input { margin: 0; }
.adviser .slide .chips { margin-top: 0.15rem; }
.advisers.rows .adviser .slide .chips { grid-column: 1 / -1; }
.crow-edit .matchmsg { align-self: center; }
.chips .chips-l { flex-basis: 100%; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.advisers.rows .adviser .slide .chips .chips-l { flex-basis: auto; align-self: center; margin-right: 0.2rem; }

/* Contact switcher sits at the same place on every card, just above the Website button */
.advisers.cards .adviser .contacts { display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.advisers.cards .adviser .slides { flex: 1 1 auto; align-items: flex-start; }
.advisers.cards .adviser .cnav { margin-top: auto; }
.emv { display: flex; align-items: flex-start; gap: 0.3rem; }
.emv a { min-width: 0; overflow-wrap: anywhere; }
.emv .copy { flex: none; margin-top: 0.1rem; padding-left: 0; }
.advisers.cards .emv a { font-size: 0.93rem; letter-spacing: -0.005em; }
.adviser .contact.ph { visibility: hidden; }
.advisers.rows .adviser .contact.ph { display: none; }
.reg-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 0.9rem; }

/* Cards view: fixed rows so name, email, phone, memberships and buttons line up across a row of cards */
.advisers.cards .adviser h3 { min-height: 2.5em; }
.advisers.cards .adviser .slide { gap: 0.35rem; }
.advisers.cards .adviser .slide .crow:nth-child(1) { min-height: 4.1rem; }
.advisers.cards .adviser .slide .crow:nth-child(2) { min-height: 1.6rem; }
.advisers.cards .adviser .slide .crow:nth-child(3) { min-height: 1.6rem; }
.advisers.cards .adviser .slide .chips { min-height: 4.1rem; align-content: flex-start; }
.advisers.cards .adviser .slide:not(:has(.chips))::after { content: ""; display: block; min-height: 4.1rem; }
.advisers.cards .adviser .crow .role { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Missing details stay blank; emails stay on one line (shrunk to fit, wrapping only as a last resort at the @) */
.adviser .crow.blank svg { visibility: hidden; }
.adviser .emv a { white-space: nowrap; overflow: hidden; overflow-wrap: normal; word-break: normal; text-overflow: clip; }
.advisers.rows .adviser .emv a { white-space: normal; overflow-wrap: anywhere; }

/* Main contact tick: the ticked contact shows first, the rest are alphabetical */
.cmain { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; font-weight: 600; }

/* Admin dialog on phones: keep Save/Cancel/Delete reachable above the browser's bottom toolbar */
dialog { max-height: 92vh; max-height: 88dvh; overflow-y: auto; }
dialog form { padding-bottom: 1.4rem; }
dialog .dialog-foot { position: sticky; bottom: 0; background: #fff; padding: 0.8rem 0 calc(0.8rem + env(safe-area-inset-bottom, 0px)); margin: 1.2rem 0 0; border-top: 1px solid var(--line); z-index: 2; }
@media (max-width: 640px) {
  dialog { max-height: 80dvh; }
  dialog .dialog-foot { padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
}

/* Pointer to AAOLEV, underneath the home page banner wording */
.hero-note { display: inline-block; max-width: 36rem; margin: 1.4rem 0 0; padding: 0.6rem 0.9rem; font-size: 0.88rem; line-height: 1.45; color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 12px; backdrop-filter: blur(6px); }
.hero-note a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.hero-note a:hover { color: var(--amber, #e3a02f); }

/* Membership pills: initials only, full name on hover or tap */
.chip[title] { cursor: help; }
.chip:focus-visible { outline: 2px solid var(--amber, #e3a02f); outline-offset: 2px; }
.chips-note { flex-basis: 100%; font-size: 0.8rem; color: var(--muted, #5a6b7b); min-height: 0; }
.chips-note:empty { display: none; }
.memgrid, .cmem { flex-wrap: wrap; }

/* ---------- in-page website editor ---------- */
.ed-on body { padding-bottom: 14rem; }
.ed-on [data-edit]:not(img) { outline: 2px dashed transparent; outline-offset: 3px; border-radius: 4px; cursor: text; transition: outline-color .15s ease, background-color .15s ease; }
.ed-on [data-edit]:not(img):hover { outline-color: rgba(27, 92, 143, .55); }
.ed-on [data-edit]:not(img):focus { outline: 2px solid var(--blue); background-color: rgba(255, 255, 255, .12); }
.ed-on .ed-img, .ed-on .ed-card { cursor: pointer; transition: outline-color .15s ease, transform .15s ease; outline: 2px dashed transparent; outline-offset: 3px; }
.ed-on .ed-img:hover, .ed-on .ed-card:hover { outline-color: rgba(27, 92, 143, .55); }
.ed-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; margin: 0 auto; width: min(960px, 100% - 1rem); margin-bottom: max(.5rem, env(safe-area-inset-bottom, 0px));
  padding: .7rem .8rem; border-radius: 18px; color: var(--ink); background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 10px 40px rgba(13, 59, 102, .28); max-height: 70vh; overflow: auto; }
.ed-hint { margin: 0 0 .5rem; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.ed-row, .ed-line { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.ed-line { margin-top: .5rem; }
.ed-ctx { margin-top: .6rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.ed-lab { display: grid; gap: .25rem; font-size: .8rem; font-weight: 600; color: var(--navy); margin-top: .4rem; }
.ed-in { flex: 1 1 12rem; min-width: 0; font: inherit; font-size: 16px; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .9); color: var(--ink); }
.ed-page { flex: 0 1 11rem; }
.ed-file { font-size: .85rem; }
.ed-btn { font: inherit; font-size: .88rem; font-weight: 650; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease; }
.ed-btn:hover { box-shadow: 0 4px 14px rgba(13, 59, 102, .3); color: #fff; }
.ed-btn:active { transform: scale(.95); }
.ed-btn.ghost { background: rgba(255, 255, 255, .7); color: var(--navy); }
.ed-btn.ghost:hover { color: var(--navy); }
.ed-btn.bold { font-weight: 900; min-width: 2.4rem; background: rgba(255, 255, 255, .7); color: var(--navy); }
.ed-btn.done { margin-left: auto; background: var(--forest); border-color: var(--forest); }
.ed-btn.small { padding: .35rem .7rem; }
.ed-key { color: var(--muted); font-size: .72rem; margin-right: auto; }
.ed-hist { margin-top: .6rem; padding-top: .5rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.ed-hrow { display: flex; gap: .7rem; align-items: flex-start; justify-content: space-between; font-size: .85rem; }
.ed-htext { min-width: 0; overflow-wrap: anywhere; }
.ed-was { color: var(--muted); }
.ed-empty { margin: 0; color: var(--muted); }
.ed-toast { position: fixed; left: 50%; bottom: 0; z-index: 9100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: .55rem 1rem; border-radius: 999px; background: var(--forest); color: #fff; font-size: .9rem; font-weight: 600;
  margin-bottom: calc(max(.5rem, env(safe-area-inset-bottom, 0px)) + 8.5rem); transition: opacity .2s ease, transform .2s ease; max-width: calc(100% - 2rem); text-align: center; }
.ed-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ed-toast.bad { background: var(--danger); }
.ed-login { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 9000; display: flex; gap: .7rem; align-items: center; padding: .7rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 40px rgba(13, 59, 102, .28); }
@media (prefers-reduced-motion: reduce) { .ed-btn, .ed-toast, .ed-on [data-edit] { transition: none; } }
.ed-hist[hidden], .ed-ctx[hidden] { display: none; }

/* ---------- members area ---------- */
.mtabs { margin-top: 1rem; }
.m-hero { display: grid; gap: .8rem; justify-items: start; }
.m-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.m-tools input, .m-tools select, .m-cpdform input, .m-cpdform textarea { font: inherit; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-width: 100%; }
.m-tools input { flex: 1 1 14rem; }
.m-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin-bottom: 1.5rem; }
.m-res, .m-event, .m-cpd { display: grid; gap: .5rem; align-content: start; }
.m-tag { justify-self: start; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--mist); color: var(--navy); padding: .15rem .6rem; border-radius: 999px; }
.m-event { margin-bottom: 1rem; }
.m-when { display: flex; flex-wrap: wrap; gap: .2rem .8rem; color: var(--forest); }
.m-month { margin: 1.5rem 0 .6rem; color: var(--navy); font-size: 1.1rem; }
.m-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.m-evres { display: grid; gap: .25rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .95rem; }
.m-link { display: block; color: inherit; }
.m-past { margin-top: 1.5rem; }
.m-past summary { cursor: pointer; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.m-cpdform { margin: 1rem 0; max-width: 40rem; }
.m-sum { margin: 0; font-weight: 700; color: var(--navy); flex: 1 1 auto; }
.m-cpdlist { display: grid; gap: .8rem; margin-top: 1rem; }
.m-cpd { grid-template-columns: 1fr auto; align-items: start; }
.m-cpd p { margin: .3rem 0 0; }
@media (max-width: 560px) { .m-cpd { grid-template-columns: 1fr; } }

/* admin: members area tab */
.ma { display: grid; gap: 1.2rem; }
.ma-row { display: flex; gap: .8rem; justify-content: space-between; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ma-main { min-width: 0; overflow-wrap: anywhere; }
.ma-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ma-form { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.ma-form input, .ma-form textarea, .ma-form select { font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }

/* members home icon cards */
.m-home { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-top: 1rem; }
.m-tile { display: grid; gap: .5rem; align-content: start; color: inherit; padding: 1.6rem 1.4rem; background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(238,244,243,.85)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.m-tile h3 { margin: .3rem 0 0; }
.m-tile p { margin: 0; color: var(--muted); font-size: .95rem; font-weight: 400; }
.m-tile:hover { color: inherit; }
.m-ico { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 16px; color: #fff; box-shadow: 0 6px 16px rgba(13, 59, 102, .22), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .25s ease; background: var(--navy); }
.m-tile:hover .m-ico { transform: translateY(-2px) rotate(-4deg) scale(1.06); }
.m-c1 .m-ico { background: linear-gradient(145deg, #1b5c8f, #0d3b66); }
.m-c2 .m-ico { background: linear-gradient(145deg, #2f7a45, #1f4d2b); }
.m-c3 .m-ico { background: linear-gradient(145deg, #e0a526, #b87c0b); }
.m-c4 .m-ico { background: linear-gradient(145deg, #3c8fb5, #1b5c8f); }
.m-c5 .m-ico { background: linear-gradient(145deg, #7b5ea7, #4d3a78); }
.m-back { margin: .4rem 0 .6rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .m-ico { transition: none; } }

/* forum */
.f-top { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; }
.f-top h2 { margin: 0; }
.f-search { display: flex; gap: .5rem; flex-wrap: wrap; }
.f-search input, .f-reply select, .form select, .f-linkrow input { font: inherit; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-width: 100%; }
.f-grp { margin: 1.8rem 0 .7rem; color: var(--navy); }
.f-boards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.f-board { display: flex; gap: 1rem; align-items: flex-start; color: inherit; }
.f-board:hover { color: inherit; }
.f-board h4 { margin: 0 0 .2rem; color: var(--navy); font-size: 1.1rem; }
.f-board p { margin: .15rem 0 0; }
.f-bico { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #1b5c8f, #0d3b66); box-shadow: 0 5px 14px rgba(13, 59, 102, .2); transition: transform .25s ease; }
.f-bico svg { width: 24px; height: 24px; }
.f-board:hover .f-bico { transform: rotate(-5deg) scale(1.07); }
.f-bmain { min-width: 0; }
.f-meta { font-size: .82rem; color: var(--muted); font-weight: 500; }
.f-last { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.f-crumbs { font-size: .9rem; margin-bottom: .6rem; color: var(--muted); }
.f-list { display: grid; gap: .6rem; margin: 1rem 0; }
.f-row { display: flex; gap: 1rem; justify-content: space-between; align-items: center; color: inherit; padding: 1rem 1.2rem; }
.f-row:hover { color: inherit; }
.f-rmain { display: grid; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.f-count { flex: none; font-size: .82rem; font-weight: 700; color: var(--navy); background: var(--mist); padding: .2rem .7rem; border-radius: 999px; }
.f-pin { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #8a5a00; }
.f-pager { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.f-pager a { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.f-pager a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.f-post { margin: 1rem 0; display: grid; gap: .8rem; }
.f-who { display: flex; gap: .8rem; align-items: center; }
.f-av { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: #fff; font-weight: 800; font-size: .95rem; flex: none; }
.av0 { background: #1b5c8f; } .av1 { background: #2f7a45; } .av2 { background: #b87c0b; } .av3 { background: #7b5ea7; } .av4 { background: #c0504d; } .av5 { background: #3c8fb5; }
.f-body { overflow-wrap: anywhere; }
.f-body p, .f-body ul, .f-body ol, .f-body blockquote { margin: 0 0 .8em; }
.f-body blockquote { border-left: 4px solid var(--line); padding: .2rem 1rem; color: var(--muted); background: var(--mist); border-radius: 0 10px 10px 0; }
.f-body table { border-collapse: collapse; display: block; overflow-x: auto; }
.f-body td, .f-body th { border: 1px solid var(--line); padding: .3rem .6rem; }
.f-files { display: flex; flex-wrap: wrap; gap: .5rem; }
.f-file { padding: .35rem .8rem; border-radius: 999px; background: var(--mist); font-size: .88rem; }
.f-file.off { color: var(--muted); font-weight: 500; }
.f-like.on { background: var(--mist); }
.f-editor { display: grid; gap: .5rem; }
.f-tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.f-tool { font: inherit; font-size: .85rem; font-weight: 700; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); cursor: pointer; transition: transform .12s ease, background-color .15s ease; }
.f-tool:hover { background: var(--mist); }
.f-tool:active { transform: scale(.95); }
.f-box { min-height: 9rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow-wrap: anywhere; }
.f-box:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.f-box:empty::before { content: attr(data-ph); color: var(--muted); }
.f-linkrow { display: flex; gap: .5rem; flex-wrap: wrap; }
.f-linkrow[hidden] { display: none; }
.f-attached { display: flex; gap: .4rem; flex-wrap: wrap; }
.f-chip { padding: .2rem .7rem; border-radius: 999px; background: #e6f4ea; color: var(--ok); font-size: .85rem; font-weight: 600; }
.f-reply { margin-top: 1.5rem; display: grid; gap: .8rem; }

/* dashboard and CPD additions */
.m-hello { margin: .6rem 0 1rem; }
.m-sub { margin: 2rem 0 .2rem; color: var(--navy); }
.m-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.m-stat { display: grid; gap: .2rem; align-content: center; color: inherit; background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(238,244,243,.85)); }
.m-stat:hover { color: inherit; }
.m-stat strong { font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.m-stat span { color: var(--muted); font-size: .9rem; font-weight: 500; overflow-wrap: anywhere; }
.m-mems { grid-column: 1 / -1; display: grid; gap: .5rem; }
.m-cols { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: 1rem; }
.m-panel { display: grid; gap: .3rem; align-content: start; }
.m-phead { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.m-phead h3 { margin: 0; }
.m-more { font-size: .85rem; }
.m-li { display: grid; padding: .55rem 0; border-top: 1px solid var(--line); color: inherit; }
.m-li:first-of-type { border-top: 0; }
.m-li:hover { color: var(--blue); }
.m-li strong { font-size: .98rem; overflow-wrap: anywhere; }
.m-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.m-chip { font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--mist); color: var(--navy); border: 1px solid var(--line); }
.m-cpdhead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.m-cpdhead h2 { margin: 0; }
.m-memfield { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: 0; }
.m-memfield legend { font-weight: 600; font-size: .92rem; color: var(--navy); padding: 0 .4rem; }
.m-memgrid { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.m-memgrid .check { font-weight: 600; cursor: pointer; }
.m-cpdbar { display: grid; gap: .8rem; margin: 1rem 0 .4rem; }
.m-filters { display: flex; flex-wrap: wrap; gap: .8rem; }
.m-filters select, .m-filters input { font: inherit; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.m-cpdform[hidden] { display: none; }

/* icon tab bar */
.mtabs-icons { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1.4rem; }
.mtabs-icons button { display: grid; justify-items: center; gap: .3rem; padding: .7rem .3rem; border-radius: 16px; font-size: .82rem; line-height: 1.2; text-align: center; background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
.mtabs-icons button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,59,102,.14); }
.mtabs-icons button:active { transform: scale(.96); }
.m-tico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--mist); color: var(--navy); transition: background-color .2s ease, color .2s ease; }
.m-tico svg { width: 22px; height: 22px; }
.mtabs-icons button[aria-selected="true"] .m-tico { background: rgba(255,255,255,.18); color: #fff; }
.mtabs-icons button[aria-selected="true"] { box-shadow: 0 8px 22px rgba(13,59,102,.28); }
@media (max-width: 720px) { .mtabs-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .mtabs-icons button { transition: none; } }

/* ---- forum: matches the old Adviser Hub look ---- */
.pc0 { --pc: #80d097; } .pc1 { --pc: #d49fc7; } .pc2 { --pc: #7ec8e8; } .pc3 { --pc: #fdae60; } .pc4 { --pc: #dbb257; } .pc5 { --pc: #ec7650; }
.pc6 { --pc: #7fa3b8; } .pc7 { --pc: #d09c9c; } .pc8 { --pc: #a09cca; } .pc9 { --pc: #4fb0b9; } .pc10 { --pc: #ee9aa9; } .pc11 { --pc: #a8c4aa; }
.f-banner { position: relative; overflow: hidden; border-radius: 18px; margin: 1rem 0; padding: clamp(1.4rem, 5vw, 3rem); color: #fff; background: linear-gradient(120deg, rgba(27, 92, 143, .88), rgba(13, 59, 102, .92)), radial-gradient(circle at 80% 20%, #4a8a5c, #1b4a3a); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.f-banner .f-bw1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 300; }
.f-banner strong { font-size: clamp(1.1rem, 3vw, 1.9rem); text-transform: uppercase; letter-spacing: .02em; max-width: 14ch; line-height: 1.1; text-align: right; }
.f-note { background: #eef3fa; border: 1px solid #dbe4f0; border-radius: 14px; text-align: center; padding: 1rem; color: var(--ink); }
.f-cats { font-size: 1.5rem; margin: 1.6rem 0 .6rem; color: var(--navy); }
.f-grpbox { background: #eef3fa; border: 1px solid #dbe4f0; border-radius: 18px; padding: 1rem 1.2rem 1.3rem; margin: 0 0 1.2rem; }
.f-grpbox .f-grp { margin: 0 0 .8rem; font-size: 1.05rem; font-weight: 600; color: #1b5c8f; }
.f-boards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.f-board, .f-tile { background: var(--pc); color: #111; border-radius: 16px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; min-width: 0; }
.f-board:hover, .f-tile:hover { color: #111; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(13, 59, 102, .18); }
.f-board h4, .f-tile h4 { margin: 0; font-size: 1.1rem; font-weight: 700; color: #111; overflow-wrap: anywhere; }
.f-badge { display: inline-block; margin-left: .5rem; padding: 0 .5rem; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: .75rem; line-height: 1.5; vertical-align: middle; }
.f-bdesc { margin: 0; font-size: .82rem; }
.f-blast { display: grid; grid-template-columns: 1fr auto; column-gap: .6rem; font-size: .82rem; align-items: center; margin-top: auto; }
.f-bt { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-bw { grid-column: 1; text-align: right; }
.f-blast .f-av { grid-column: 2; grid-row: 1 / span 2; }
.f-avs { width: 2.2rem; height: 2.2rem; font-size: .8rem; }
.f-stats { display: flex; gap: 1rem; align-items: center; font-size: .85rem; font-weight: 600; }
.f-stat { display: inline-flex; align-items: center; gap: .25rem; }
.f-sico svg { width: 15px; height: 15px; }
.f-sorts { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0; }
.f-sort { font: inherit; font-weight: 700; padding: .55rem 1.6rem; border: 0; border-radius: 999px; background: #e8edf3; color: #333; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.f-sort:hover { transform: translateY(-1px); }
.f-sort.on { background: #1b5c8f; color: #fff; }
.f-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); background: #eef3fa; border: 1px solid #dbe4f0; border-radius: 18px; padding: 1rem; margin-bottom: 1rem; }
.f-tile { min-height: 14rem; }
.f-by { margin: 0; font-size: .8rem; }
.f-snip { margin: 0; font-size: .85rem; line-height: 1.4; flex: 1; overflow-wrap: anywhere; }
.f-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.f-tag { padding: .05rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .45); font-size: .75rem; color: #fff; }
.f-tag2 { background: #1b5c8f; margin: .2rem 0 .8rem; }
.f-prow { display: flex; gap: .9rem; align-items: flex-start; margin: 1rem 0; }
.f-pside { flex: none; width: 5.2rem; display: grid; justify-items: center; gap: .3rem; text-align: center; }
.f-pside .f-av { width: 3.4rem; height: 3.4rem; font-size: 1.2rem; }
.f-role { font-size: .72rem; color: var(--muted); }
.f-bubble { flex: 1; min-width: 0; display: grid; gap: .6rem; border-radius: 18px; padding: 1rem 1.2rem; background: var(--pc); color: #fff; position: relative; margin: 0; }
.f-bubble.f-first { background: #eef3fa; color: var(--ink); border: 1px solid #dbe4f0; }
.f-bubble .f-who { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.f-bubble .f-when { font-size: .78rem; opacity: .85; font-style: italic; }
.f-bubble a { color: inherit; text-decoration: underline; }
.f-bubble .btn.ghost, .f-bubble .f-like { background: transparent; border-color: transparent; color: inherit; box-shadow: none; }
.f-bubble.f-first .f-who strong { color: #1b5c8f; }
@media (max-width: 560px) { .f-prow { flex-direction: column; gap: .4rem; } .f-pside { width: auto; grid-auto-flow: column; justify-content: start; align-items: center; } .f-banner strong { text-align: left; } }

/* coloured home tiles and tabs */
.mtabs[hidden] { display: none; }
.m-home-top { margin: .6rem 0 1.6rem; }
.m-tile.pc0, .m-tile.pc1, .m-tile.pc2, .m-tile.pc3, .m-tile.pc4, .m-tile.pc5 { background: var(--pc); border: 0; border-radius: 18px; box-shadow: 0 6px 18px rgba(13, 59, 102, .08); transition: transform .2s ease, box-shadow .2s ease; }
.m-tile.pc0:hover, .m-tile.pc1:hover, .m-tile.pc2:hover, .m-tile.pc3:hover, .m-tile.pc4:hover, .m-tile.pc5:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(13, 59, 102, .2); }
.m-tile[class*="pc"] h3 { color: #111; }
.m-tile[class*="pc"] p { color: rgba(0, 0, 0, .72); }
.m-tile[class*="pc"] .m-ico { background: rgba(255, 255, 255, .55); color: #111; box-shadow: none; }
.mtabs-icons button[class*="pc"]:not([aria-selected="true"]) { background: var(--pc); border-color: transparent; color: #111; }
.mtabs-icons button[class*="pc"]:not([aria-selected="true"]) .m-tico { background: rgba(255, 255, 255, .55); color: #111; }
.m-stat { display: grid; gap: .3rem; align-content: start; }
.m-stat .m-stitle { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1b5c8f; }
.m-stat .m-slabel { font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.m-stat .m-more { margin-top: .4rem; justify-self: start; font-weight: 700; }
.m-home-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .m-home-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .m-home-top { grid-template-columns: 1fr; } }

/* bubble tails, action icons, round pager, reply bubble */
.f-bubble::before { content: ""; position: absolute; left: -12px; top: 22px; border: 10px solid transparent; border-right-color: var(--pc, #eef3fa); border-left-width: 2px; }
.f-bubble.f-first::before { border-right-color: #dbe4f0; }
.f-bubble.f-first::after { content: ""; position: absolute; left: -9px; top: 23px; border: 9px solid transparent; border-right-color: #eef3fa; border-left-width: 1px; }
.f-actions { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }
.f-act { font: inherit; font-size: .88rem; display: inline-flex; gap: .35rem; align-items: center; padding: .2rem .1rem; border: 0; background: none; color: inherit; cursor: pointer; opacity: .92; transition: transform .15s ease, opacity .15s ease; }
.f-act:hover { opacity: 1; transform: translateY(-1px); }
.f-act.on { font-weight: 800; }
.f-aico svg { width: 17px; height: 17px; }
.f-pager { display: flex; justify-content: flex-end; align-items: center; gap: .4rem; margin: 1rem 0; }
.f-pinfo { margin-right: .5rem; font-size: .9rem; }
.f-pager a.f-pbtn { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: #1b5c8f; color: #fff; font-size: 1.3rem; line-height: 1; transition: transform .15s ease, opacity .15s ease; }
.f-pager a.f-pbtn:hover { transform: scale(1.08); color: #fff; }
.f-pager a.f-pbtn.off { opacity: .35; pointer-events: none; }
.f-rrow .f-reply { gap: .8rem; }
.f-rrow .f-box { background: transparent; border: 0; padding: .2rem 0; min-height: 5rem; }
@media (max-width: 560px) { .f-bubble::before, .f-bubble.f-first::after { display: none; } }
.f-reply .btn { justify-self: start; }
.f-replybar { display: flex; justify-content: flex-end; margin: .8rem 0; }
.f-postreply { letter-spacing: .06em; font-weight: 800; }
.f-prow[hidden] { display: none; }
.f-hl { outline: 3px solid #e0a526; outline-offset: 3px; }

/* compact home row */
.m-home-top { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; margin: .6rem 0 0; }
.m-home-top .m-tile { padding: .9rem .5rem; justify-items: center; text-align: center; gap: .35rem; align-content: center; }
.m-home-top .m-tile h3 { margin: 0; font-size: .92rem; }
.m-home-top .m-tile .m-ico { width: 2.6rem; height: 2.6rem; }
.m-home-top .m-tile .m-ico svg { width: 22px; height: 22px; }
.m-divider { border: 0; height: 1px; background: var(--line, #dbe4f0); margin: 1.4rem 0; }
@media (max-width: 900px) { .m-home-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .m-home-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.f-search { flex-wrap: nowrap; align-items: center; }
.f-search input { min-width: 0; width: min(100%, 20rem); }

/* help guide and 8-tab bar */
.mtabs-icons { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.m-home-top { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.m-help { background: var(--pc); border: 0; border-radius: 16px; margin: .7rem 0; padding: .2rem 1.2rem; color: #111; }
.m-help summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; padding: .9rem 0; list-style-position: outside; }
.m-help ul { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .5rem; }
.m-help[open] summary { border-bottom: 1px solid rgba(0, 0, 0, .12); margin-bottom: .8rem; }
.m-tile.pc6 { background: var(--pc); border: 0; border-radius: 18px; box-shadow: 0 6px 18px rgba(13, 59, 102, .08); }
.m-tile.pc6 h3 { color: #111; } .m-tile.pc6 .m-ico { background: rgba(255, 255, 255, .55); color: #111; }
@media (max-width: 900px) { .mtabs-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); } .m-home-top { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .m-home-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ma-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin: .6rem 0; }
.ma-bar input, .ma-bar select { font: inherit; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.ma-table { overflow-x: auto; }
.ma-tab { border-collapse: collapse; width: 100%; font-size: .88rem; }
.ma-tab th { text-align: left; padding: .5rem .6rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.ma-tab td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ma-tab tr:hover td { background: var(--mist); }
.f-quoted { position: relative; opacity: .62; border-left: 4px solid #9bb3cc; background: rgba(27, 92, 143, .06); border-radius: 0 12px 12px 0; padding: .6rem 3rem .6rem 1rem; font-size: .9rem; }
.f-quoted blockquote { margin: 0; padding: 0; border: 0; background: none; color: inherit; }
.f-quoted-x { position: absolute; top: .3rem; right: .4rem; font: inherit; font-size: .72rem; border: 0; background: none; color: #1b5c8f; cursor: pointer; text-decoration: underline; }

/* topic header breathing room */
.f-crumbs { margin-bottom: 1.1rem; }
.f-top + .m-actions { margin-top: 1.1rem; margin-bottom: 1.6rem; gap: .8rem; }
.f-top h2 { padding-bottom: .15rem; }

.m-cpdfile { display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; padding: .3rem .8rem; border-radius: 999px; background: var(--mist); font-size: .88rem; font-weight: 700; color: var(--navy); transition: transform .15s ease, background-color .15s ease; }
.m-cpdfile::before { content: ""; width: .9rem; height: .9rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.5l-8.6 8.6a5.5 5.5 0 01-7.8-7.8l9-9a3.7 3.7 0 015.2 5.2l-9 9a1.8 1.8 0 01-2.6-2.6l8.4-8.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.5l-8.6 8.6a5.5 5.5 0 01-7.8-7.8l9-9a3.7 3.7 0 015.2 5.2l-9 9a1.8 1.8 0 01-2.6-2.6l8.4-8.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.m-cpdfile:hover { transform: translateY(-1px); background: #dbe8f4; }
.m-havefile { margin-top: -.3rem; }

/* help guide: simple white and blue cards */
.m-help { background: #fff; border: 1px solid #cfdceb; border-left: 4px solid #1b5c8f; border-radius: 14px; box-shadow: 0 4px 14px rgba(13, 59, 102, .06); color: var(--ink, #1a2733); transition: box-shadow .2s ease, transform .2s ease; }
.m-help:hover { box-shadow: 0 8px 20px rgba(13, 59, 102, .12); transform: translateY(-1px); }
.m-help summary { color: #0d3b66; }
.m-help[open] { background: #f4f8fc; }
.m-help[open] summary { border-bottom-color: #cfdceb; }

/* listing cards: breathing room */
.m-sub { margin: 2rem 0 1.1rem; }
.m-grid { gap: 1.2rem; }
.m-grid .card { display: grid; gap: .9rem; align-content: start; }
.m-grid .card h3, .m-grid .card p { margin: 0; }
.m-grid .card .m-chips { margin: .2rem 0 .4rem; }
.m-grid .card .btn { justify-self: start; margin-top: .5rem; }

/* app version (app.outdooradvisers.co.uk) */
.app-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(.6rem + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) .6rem max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(135deg, #14568c, #0d3b66); color: #fff; box-shadow: 0 4px 16px rgba(13, 59, 102, .25); }
.app-bar img { display: block; height: 2.2rem; width: auto; }
.app-install { font: inherit; font-weight: 700; font-size: .85rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.app-install:hover { background: rgba(255, 255, 255, .24); }
.app-install:active { transform: scale(.95); }
.app-main { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.app-main .page-hero { display: none; }

/* New topic button: one clean line, never squashed */
.f-search { align-items: center; flex-wrap: nowrap; }
.f-search input { flex: 1 1 12rem; min-width: 0; }
.f-search .btn, .f-top .btn { flex: none; white-space: nowrap; padding: .6rem 1.3rem; border-radius: 999px; line-height: 1.2; }
@media (max-width: 420px) { .f-search { flex-wrap: wrap; } .f-search .btn { width: 100%; justify-content: center; } }

/* Members area: subtle liquid glass */
#app .card, #app .m-help, #app .f-bubble, #app .f-board, #app .f-row {
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 8px 24px rgba(13, 59, 102, .08), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(255, 255, 255, .35);
}
#app .m-home > *, #app .pc0, #app .pc1, #app .pc2, #app .pc3, #app .pc4, #app .pc5, #app .pc6, #app .pc7, #app .pc8, #app .pc9, #app .pc10, #app .pc11 { position: relative; }
#app .mtabs-icons button { -webkit-backdrop-filter: blur(8px) saturate(1.3); backdrop-filter: blur(8px) saturate(1.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 12px rgba(13, 59, 102, .1); }
.app-bar { -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }

/* Glossy sheen that sweeps across buttons and tiles on hover */
#app .btn, #app .m-home > a, #app .mtabs-icons button, #app .f-tool, #app .f-act { position: relative; overflow: hidden; isolation: isolate; }
#app .btn::after, #app .m-home > a::after, #app .mtabs-icons button::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease;
}
#app .btn:hover::after, #app .m-home > a:hover::after, #app .mtabs-icons button:hover::after { transform: translateX(120%); }

/* Micro interactions */
#app .btn, #app .f-tool, #app .f-act, #app .mtabs-icons button, #app .m-home > a, #app .f-board, #app .f-row, #app .m-chip, #app .f-file { transition: transform .18s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s ease, background-color .2s ease; }
#app .btn:hover, #app .f-tool:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(13, 59, 102, .22); }
#app .btn:active, #app .f-tool:active, #app .f-act:active, #app .mtabs-icons button:active, #app .m-home > a:active { transform: scale(.94); }
#app .m-home > a:hover, #app .f-board:hover, #app .f-row:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(13, 59, 102, .16), inset 0 1px 0 rgba(255, 255, 255, .9); }
#app .mtabs-icons button:hover { transform: translateY(-2px); }
#app .m-chip:hover, #app .f-file:hover { transform: translateY(-1px) scale(1.04); }
#app .f-act:hover { transform: scale(1.1); }
#app .f-like.on svg { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
#app input:focus, #app select:focus, #app textarea:focus, #app .f-box:focus { box-shadow: 0 0 0 4px rgba(27, 92, 143, .18); transition: box-shadow .2s ease; }
#app .m-help summary { transition: padding-left .2s ease, color .2s ease; }
#app .m-help summary:hover { padding-left: .35rem; color: var(--blue); }

/* Gentle entrance animations */
#pane > *, #pane .m-home > *, #pane .f-list > *, #pane .f-prow, #pane .m-cpd, #pane .m-help { animation: rise .45s cubic-bezier(.2, .8, .3, 1) both; }
#pane .m-home > *:nth-child(2), #pane .f-prow:nth-child(2), #pane .m-help:nth-child(2) { animation-delay: .05s; }
#pane .m-home > *:nth-child(3), #pane .f-prow:nth-child(3), #pane .m-help:nth-child(3) { animation-delay: .1s; }
#pane .m-home > *:nth-child(4), #pane .f-prow:nth-child(4), #pane .m-help:nth-child(4) { animation-delay: .15s; }
#pane .m-home > *:nth-child(5), #pane .f-prow:nth-child(5), #pane .m-help:nth-child(5) { animation-delay: .2s; }
#pane .m-home > *:nth-child(n+6), #pane .f-prow:nth-child(n+6), #pane .m-help:nth-child(n+6) { animation-delay: .25s; }
.f-hl { animation: glow 1.6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-8deg); } 100% { transform: scale(1); } }
@keyframes glow { 0%, 60% { box-shadow: 0 0 0 4px rgba(224, 160, 48, .55); } 100% { box-shadow: 0 0 0 0 rgba(224, 160, 48, 0); } }
@media (prefers-reduced-motion: reduce) {
  #pane > *, #pane .m-home > *, #pane .f-prow, #pane .m-cpd, #pane .m-help, #app .f-like.on svg, .f-hl { animation: none !important; }
  #app .btn::after, #app .m-home > a::after, #app .mtabs-icons button::after { display: none; }
  #app * { transition-duration: .01ms !important; }
}

/* Liquid glass carried through every surface in the members area */
#main { background: radial-gradient(60rem 30rem at 8% 0%, rgba(126, 200, 232, .22), transparent 60%), radial-gradient(50rem 30rem at 95% 25%, rgba(212, 159, 199, .18), transparent 60%), radial-gradient(50rem 30rem at 40% 100%, rgba(253, 174, 96, .14), transparent 60%); background-attachment: fixed; }
#app .f-tile, #app .f-board, #app .f-bubble[class*="pc"], #app .m-home > [class*="pc"], #app .m-help[class*="pc"] {
  background-color: transparent;
  background-image: linear-gradient(155deg, color-mix(in srgb, var(--pc) 62%, #fff) 0%, color-mix(in srgb, var(--pc) 80%, #fff) 55%, color-mix(in srgb, var(--pc) 92%, transparent) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 10px 26px rgba(13, 59, 102, .12), inset 0 1.5px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .35);
}
#app .f-tile::before, #app .f-board::before, #app .m-home > [class*="pc"]::before {
  content: ""; position: absolute; inset: 0 0 55% 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0));
}
#app .f-tile, #app .f-board, #app .f-bubble { position: relative; }
#app .f-tile > *, #app .f-board > *, #app .f-bubble > * { position: relative; }
#app .f-grpbox, #app .f-tiles {
  background: linear-gradient(160deg, rgba(255, 255, 255, .6), rgba(236, 244, 252, .45));
  border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 32px rgba(13, 59, 102, .09), inset 0 1.5px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(219, 228, 240, .6);
}
#app .f-sort { background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 10px rgba(13, 59, 102, .08); }
#app .f-sort.on { background: linear-gradient(160deg, #2a76ae, #134a78); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px rgba(19, 74, 120, .3); }
#app .f-banner { box-shadow: 0 14px 34px rgba(13, 59, 102, .25), inset 0 1.5px 0 rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
#app .f-banner::after { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent); pointer-events: none; }
#app .f-search input, #app .f-box, #app .form input, #app .form select, #app .form textarea, #app .f-reply select { background: rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 1px 2px rgba(13, 59, 102, .06); }
#app .m-stat, #app .m-tile, #app .m-cpd, #app .m-prof, #app .m-cpdbar { background-image: linear-gradient(160deg, rgba(255, 255, 255, .8), rgba(236, 244, 252, .5)); }
#app .f-note, #app .f-intro { background: rgba(236, 244, 252, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#app .m-chip, #app .f-file, #app .f-tag { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }

/* Richer glass colours and readable text */
#app .f-tile, #app .f-board, #app .f-bubble[class*="pc"], #app .m-home > [class*="pc"], #app .m-help[class*="pc"] {
  background-image: linear-gradient(155deg, color-mix(in srgb, var(--pc) 86%, #fff) 0%, var(--pc) 60%, color-mix(in srgb, var(--pc) 90%, #0d3b66) 100%);
}
#app .f-tile::before, #app .f-board::before, #app .m-home > [class*="pc"]::before { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)); }
#app .f-bubble[class*="pc"], #app .f-bubble[class*="pc"] .f-body, #app .f-bubble[class*="pc"] .f-who strong, #app .f-bubble[class*="pc"] .f-act, #app .f-bubble[class*="pc"] .f-when { color: #111; }
#app .f-bubble[class*="pc"] .f-when { opacity: .7; }
#app .f-bubble[class*="pc"] .f-act { opacity: .85; }
#app .f-bubble[class*="pc"] .f-act:hover { opacity: 1; }
#app .f-bubble[class*="pc"] .f-body a { color: #0d3b66; }
#main { background: radial-gradient(60rem 30rem at 8% 0%, rgba(126, 200, 232, .3), transparent 60%), radial-gradient(50rem 30rem at 95% 25%, rgba(212, 159, 199, .26), transparent 60%), radial-gradient(50rem 30rem at 40% 100%, rgba(253, 174, 96, .2), transparent 60%); background-attachment: fixed; }

.m-code { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-weight: 700; }
