@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #151916;
  --paper: #f7f5ef;
  --gold: #efc14c;
  --muted: #5c655e;
  --border: #e3e4dc;
  --green: #197246;
  /* Apple system font (San Francisco) first; Inter matches it elsewhere. */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radius: 14px;
  --shadow-soft: 0 1px 2px #1519160a, 0 8px 24px #1519160d;
  --shadow-lift: 0 2px 4px #1519160d, 0 18px 40px #15191617;
  /* Amazigh-inspired diamond band, used as a thin ornament. */
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 6 6 0l6 6-6 6Zm12 0 6-6 6 6-6 6Z' fill='none' stroke='%23efc14c' stroke-width='1.2'/%3E%3Ccircle cx='6' cy='6' r='1.4' fill='%23efc14c'/%3E%3Ccircle cx='18' cy='6' r='1.4' fill='%23efc14c'/%3E%3C/svg%3E");
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0 0 18px;
}
h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
}
h1 {
  font-size: clamp(40px, 6.4vw, 82px);
}
h2 {
  font-size: clamp(30px, 4vw, 46px);
}
h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.wrap {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}
.site-header {
  height: 88px;
  background: var(--ink);
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #ffffff16;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 51px;
  height: 51px;
  border-radius: 12px;
}
.brand span {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-ligatures: no-common-ligatures;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 23px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.35;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #f7d06b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px #efc14c33;
}
.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.15s;
}
.btn:hover .icon {
  transform: translateX(2px);
}
.btn-outline {
  background: transparent;
  border-color: #cfd1c7;
  color: var(--ink);
}
.btn-outline:hover {
  background: #eeeae0;
  border-color: #b9bcae;
  box-shadow: none;
}
.btn-small {
  min-height: 44px;
  padding: 9px 16px;
  font-size: 14px;
}
.btn-wide {
  width: 100%;
}
.link-button {
  border: 0;
  background: none;
  text-decoration: underline;
  color: var(--ink);
  padding: 10px 0;
  min-height: 44px;
}
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #94711c;
  display: block;
  margin-bottom: 10px;
}
.section {
  padding: 96px 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 30px;
  background: #eeeae0;
  font-size: 12px;
  font-weight: 650;
  color: #5f645c;
  line-height: 1.5;
}
.badge-gold {
  background: #f8edc6;
  color: #7a5b12;
}
.filter {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition:
    background 0.15s,
    border-color 0.15s;
  border: 1px solid var(--border);
  padding: 9px 17px;
  min-height: 44px;
  border-radius: 30px;
  background: white;
  font-size: 14px;
}
.filter:hover {
  border-color: #b9bcae;
}
.filter.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.page {
  padding: 58px 0 85px;
  min-height: 65vh;
}
.page-heading {
  margin-bottom: 35px;
}
.page-heading h1 {
  font-size: clamp(35px, 5vw, 58px);
}
.page-heading p {
  max-width: 620px;
}
.page-narrow {
  max-width: 570px;
  margin: auto;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px;
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 30px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.field label,
.field legend {
  font-size: 14px;
  font-weight: 600;
}
.other-field {
  margin: 16px 0 0;
}
.other-field[hidden] {
  display: none;
}
fieldset.field {
  border: 0;
  padding: 0;
  margin-inline: 0;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cdd2c8;
  background: #fff;
  border-radius: 10px;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: #b18b26;
  box-shadow: 0 0 0 4px #efc14c33;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input[type="file"] {
  font-size: 13px;
}
.field small {
  color: var(--muted);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-error {
  color: #a23829;
  background: #fff1ef;
  padding: 12px;
  border-radius: 7px;
  margin-bottom: 18px;
}
.text-link {
  color: #74601f;
}
.demo-banner {
  background: #f3e7be;
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.demo-banner button {
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  min-height: 28px;
}
.site-footer {
  position: relative;
  background: var(--ink);
  color: white;
  padding: 64px 0 48px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--motif) repeat-x center / auto 12px;
  opacity: 0.35;
}
.site-footer .btn-outline {
  color: white;
  border-color: #ffffff40;
}
.site-footer .btn-outline:hover {
  background: #ffffff12;
  border-color: var(--gold);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ffffff1a;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #98a293;
}
.footer-bottom a {
  color: #d4d9cf;
}
.site-footer p {
  font-size: 14px;
  color: #b5bfb0;
  margin: 16px 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}
.footer-links a {
  color: #c5cebf;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--gold);
}
.icon {
  width: 21px;
  height: 21px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 15px 12px;
  border-bottom: 1px solid var(--border);
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
td small {
  display: block;
  color: var(--muted);
}
.prose {
  max-width: 760px;
}
.prose h2 {
  margin-top: 36px;
  font-size: 29px;
}
.membership-steps {
  padding-left: 1.4em;
}
.membership-steps li {
  padding-left: 0.25em;
  margin: 0 0 1em;
  line-height: 1.65;
}
.prose p {
  white-space: pre-line;
}
.loading {
  padding: 80px;
  text-align: center;
}
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 99;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #b18b26;
  outline-offset: 4px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  background: var(--ink);
  color: white;
  border: 1px solid #69725d;
  padding: 14px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #0003;
  z-index: 100;
  display: none;
}
#toast.visible {
  display: block;
}
.spacer {
  margin-top: 25px;
}
.subtle {
  font-size: 13px;
  color: var(--muted);
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.admin-header h2 {
  font-size: 30px;
  margin: 0;
}
@media (max-width: 1000px) {
  .brand span {
    font-size: 17px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    height: 76px;
  }
  .brand img {
    width: 43px;
    height: 43px;
  }
  .brand span {
    font-size: 18px;
  }
  .section {
    padding: 56px 0;
  }
  .page {
    padding: 34px 0 55px;
  }
  .page-heading {
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 38px;
  }
  .panel {
    padding: 22px;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .site-footer {
    padding: 35px 0;
  }
  .admin-header {
    align-items: start;
    gap: 15px;
  }
  .admin-header h2 {
    font-size: 27px;
  }
  .demo-banner {
    font-size: 11px;
    padding: 8px 20px;
    gap: 4px 12px;
  }
  #toast {
    bottom: 95px;
  }
  .filter {
    padding: 9px 14px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
[hidden] {
  display: none !important;
}

/* Phone layout: iOS-like sizes, big tap targets, edge-to-edge carousels. */
@media (max-width: 760px) {
  body {
    font-size: 17px;
    line-height: 1.5;
  }
  .wrap {
    width: auto;
    margin: 0 max(20px, env(safe-area-inset-left)) 0
      max(20px, env(safe-area-inset-right));
  }
  .site-header {
    height: 60px;
  }
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand span {
    font-size: 15px;
    font-weight: 600;
  }
  h1,
  .page-heading h1 {
    font-size: 34px;
  }
  h2,
  .section-head h2 {
    font-size: 28px;
  }
  h3 {
    font-size: 19px;
  }
  .btn {
    min-height: 52px;
    font-size: 17px;
  }
  .btn-small {
    min-height: 44px;
    font-size: 15px;
  }
  .section {
    padding: 48px 0;
  }
  .panel {
    padding: 20px;
    border-radius: 16px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 17px;
    min-height: 52px;
  }
  .filter {
    flex-shrink: 0;
    font-size: 15px;
  }
  .site-footer {
    padding: 40px 0 calc(32px + env(safe-area-inset-bottom));
  }
  .site-footer .btn {
    width: 100%;
  }
  #toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
    border-radius: 14px;
  }
}


@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}


/* Simple footer: brand on the left, one row of links on the right. */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a {
  color: #d4d9cf;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #ffffff1a;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #98a293;
}


/* ======================================================================
   Experience layer: cinematic home, scroll reveals, phone-first details.
   ====================================================================== */
:root {
  --night: #0c0f0d;
  --night-2: #161b17;
  --ivory: #f5f2ea;
  --gold-deep: #94711c;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html,
body {
  overflow-x: clip;
}
body {
  background: var(--ivory);
}

/* Reveal on scroll (only when JS runs; see html.motion). */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.motion .reveal:not(.in),
.motion .reveal-stagger:not(.in) > * {
  opacity: 0;
}
.motion .reveal.in,
.motion .reveal-stagger.in > * {
  animation: rise 0.9s var(--ease-out) backwards;
}
.motion .reveal-stagger.in > :nth-child(2) {
  animation-delay: 0.1s;
}
.motion .reveal-stagger.in > :nth-child(3) {
  animation-delay: 0.2s;
}
.motion .reveal-stagger.in > :nth-child(4) {
  animation-delay: 0.3s;
}

/* Buttons */
.btn-glow {
  background: linear-gradient(135deg, #f6d77e, #efc14c 55%, #e0ab2c);
  color: var(--night);
  box-shadow: 0 12px 36px -12px #efc14caa;
}
.btn-glow:hover {
  background: linear-gradient(135deg, #f9e09a, #f3c95a 55%, #e6b43a);
  box-shadow: 0 16px 44px -10px #efc14ccc;
}

/* Header: transparent over the home hero, glass once scrolled. */
.site-header {
  transition:
    background 0.35s,
    border-color 0.35s,
    backdrop-filter 0.35s;
}
.has-hero .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.has-hero .site-header.scrolled,
.menu-open .site-header {
  background: color-mix(in srgb, var(--night) 92%, transparent);
  border-bottom-color: #ffffff14;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

/* Hero */
.hx {
  position: relative;
  isolation: isolate;
  min-height: max(620px, 100svh);
  display: flex;
  align-items: flex-end;
  color: white;
  background: var(--night);
  overflow: hidden;
}
.hx-media {
  position: absolute;
  inset: -6% 0 0;
  z-index: -3;
  will-change: transform;
}
.hx-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/hero.jpg") 64% 35% / cover;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.16) translate3d(-1.5%, -1%, 0);
  }
}
.hx::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, #0c0f0d99 0%, #0c0f0d1a 32%, #0c0f0dd9 78%, var(--night) 100%),
    linear-gradient(90deg, #0c0f0dcc 0%, #0c0f0d33 60%, transparent 100%);
}
.hx::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hx-inner {
  padding: 150px 0 clamp(88px, 13vh, 140px);
}
.hx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px 8px 12px;
  border: 1px solid #efc14c4d;
  border-radius: 999px;
  background: #0c0f0d66;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f6d77e;
  font-size: 15px;
  font-weight: 600;
  animation: fadeUp 0.9s var(--ease-out) backwards;
}
.hx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 #efc14c99;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px #efc14c00;
  }
  100% {
    box-shadow: 0 0 0 0 #efc14c00;
  }
}
.hx-title {
  margin: 24px 0 22px;
  font-size: clamp(54px, 10.5vw, 148px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: white;
  max-width: none;
}
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.07em;
}
.ln > span {
  display: inline-block;
  animation: lineUp 1.15s var(--ease-out) 0.1s backwards;
}
.ln + .ln > span {
  animation-delay: 0.24s;
}
@keyframes lineUp {
  from {
    transform: translateY(110%);
  }
}
.hx-title em,
.footer-big em {
  font-style: normal;
  background: linear-gradient(100deg, #f6d77e 0%, #efc14c 35%, #c9971f 55%, #f6d77e 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShift 7s ease-in-out infinite alternate;
}
@keyframes goldShift {
  to {
    background-position: 100% 0;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
.hx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hx .hx-actions {
  animation: fadeUp 1s var(--ease-out) 0.55s backwards;
}
.hx-actions .btn {
  min-height: 56px;
  padding-inline: 26px;
  font-size: 17px;
}


/* Footer */
.site-footer {
  background: var(--night);
  padding: clamp(72px, 10vw, 120px) 0 calc(28px + env(safe-area-inset-bottom));
}
.site-footer .footer-bottom {
  margin-top: 36px;
}

/* Every inner page opens on a dark band. */
.page:has(> .wrap > .page-heading) {
  padding-top: 0;
}
/* The band reaches the screen edges with a shadow, which never adds scroll width. */
.page > .wrap > .page-heading {
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 5vw, 60px);
  margin-bottom: clamp(32px, 4vw, 48px);
  color: white;
  background:
    radial-gradient(30% 120% at 70% 0%, #3b3015 0%, transparent 70%),
    var(--night);
  box-shadow: 0 0 0 100vmax var(--night);
  clip-path: inset(0 -100vmax);
}
.page > .wrap > .page-heading .eyebrow {
  color: var(--gold);
}
.page > .wrap > .page-heading h1 {
  margin-bottom: 14px;
  color: white;
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.page > .wrap > .page-heading p {
  color: #c9cec4;
}

@media (max-width: 760px) {
  .hx {
    min-height: max(600px, 100svh);
  }
  .hx-inner {
    padding: 120px 0 104px;
  }
  .hx-title {
    font-size: clamp(50px, 15vw, 76px);
  }
  .hx-actions {
    flex-direction: column;
  }
  .hx-actions .btn {
    width: 100%;
  }
  .page > .wrap > .page-heading h1 {
    font-size: clamp(40px, 12vw, 56px);
  }
}

/* Respect "reduce motion": no animation, everything visible. */
@media (prefers-reduced-motion: reduce) {
  .motion .reveal:not(.in),
  .motion .reveal-stagger:not(.in) > * {
    opacity: 1;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

/* ======================================================================
   About, activities and the activity pages.
   ====================================================================== */
#apropos,
#activites {
  scroll-margin-top: 72px;
}



/* Administration editor */
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.admin-row:last-child {
  border-bottom: 0;
}
.admin-row small {
  display: block;
  color: var(--muted);
}
.admin-header {
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .admin-row {
    flex-direction: column;
    align-items: stretch;
  }
}





@media (max-width: 760px) {
  /* More air. */
  .wrap {
    margin: 0 max(24px, env(safe-area-inset-left)) 0
      max(24px, env(safe-area-inset-right));
  }
  .hx {
    min-height: max(580px, 88svh);
  }
  .hx-inner {
    padding-bottom: 72px;
  }

  #toast {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }



}

/* ======================================================================
   Membership form and its review in the administration.
   ====================================================================== */
.badge-green {
  background: #e4f3e9;
  color: #197246;
}
.badge-red {
  background: #fce9e6;
  color: #a23829;
}
.text-red {
  color: #a23829;
}
.notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f2f3ee;
  font-size: 15px;
}
.notice-gold {
  border-color: #ecdfb4;
  background: #fbf2d7;
  color: #6e540e;
}
.notice-red {
  border-color: #f5d5cf;
  background: #fff1ef;
  color: #a23829;
}
.notice a {
  color: inherit;
  font-weight: 600;
}

/* Form */
.join-panel {
  margin-bottom: clamp(40px, 6vw, 80px);
}
.field legend {
  margin-bottom: 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cdd2c8;
  border-radius: 999px;
  background: white;
  font-size: 16px;
  font-weight: 500;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.chip input:checked + span {
  border-color: var(--night);
  background: var(--night);
  color: var(--gold);
}
.chip input:focus-visible + span {
  outline: 3px solid #b18b26;
  outline-offset: 2px;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  margin: 14px 0 0;
  font-size: 14px;
  text-align: center;
}
.application-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.application-acceptance input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--gold);
}
.join-success {
  padding: 12px 0;
  text-align: center;
  outline: none;
}
.join-success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night);
}
.join-success-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}
.join-success h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 32px);
}
.join-success p {
  max-width: 480px;
  margin: 0 auto 24px;
}

/* Administration */
.admin-row-link {
  color: inherit;
  text-decoration: none;
}
.admin-row-link:hover strong {
  text-decoration: underline;
}
.admin-row-link .badge {
  flex: none;
}
.app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 18px 0 20px;
}
.app-head h2 {
  margin: 0;
}
.app-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  margin: 0 0 28px;
}
.app-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.app-facts dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.app-intro {
  grid-column: 1 / -1;
}
.app-intro dd {
  white-space: pre-line;
}
.track {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.track li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.track li > span:first-child {
  font-weight: 600;
}
.track-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}
@media (max-width: 760px) {
  .app-facts {
    grid-template-columns: 1fr;
  }
  .track li {
    flex-direction: column;
  }
  .track-value {
    justify-content: flex-start;
    text-align: left;
  }
  .admin-row-link {
    flex-direction: row;
    align-items: center;
  }
}

.header-inner > .btn-small {
  flex: none;
}
.hx-lead {
  max-width: 520px;
  margin: 0 0 30px;
  color: #e4e6df;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  animation: fadeUp 1s var(--ease-out) 0.4s backwards;
}

/* Home video */
.hv {
  background: var(--night);
  color: white;
  padding: clamp(64px, 10vw, 128px) 0;
}
.hv-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "text frame" "cta frame";
  column-gap: clamp(32px, 7vw, 104px);
  align-items: center;
}
.hv-text {
  grid-area: text;
  align-self: end;
}
.hv-kicker {
  margin: 0 0 12px;
  color: #f6d77e;
  font-size: 15px;
  font-weight: 600;
}
.hv h2 {
  margin: 0 0 18px;
  color: white;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hv-text p:last-child {
  max-width: 460px;
  margin: 0 0 28px;
  color: #c9cdc5;
  font-size: 18px;
  line-height: 1.55;
}
.hv-cta {
  grid-area: cta;
  align-self: start;
  justify-self: start;
  min-height: 56px;
  padding-inline: 26px;
  font-size: 17px;
}
.hv-frame {
  grid-area: frame;
  width: clamp(280px, 30vw, 380px);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px #00000080, 0 0 0 1px #efc14c33;
}
.hv-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
@media (max-width: 760px) {
  .hv-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "frame" "cta";
  }
  .hv-text p:last-child {
    margin-bottom: 26px;
  }
  .hv-frame {
    width: 100%;
    max-width: 420px;
    justify-self: center;
  }
  .hv-cta {
    width: 100%;
    max-width: 420px;
    justify-self: center;
    justify-content: center;
    margin-top: 24px;
  }
}

/* Delete an application (admin) */
.app-delete {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.app-delete .subtle {
  margin: 8px 0 0;
  font-size: 13px;
}
.btn-danger {
  color: #a32222;
  border-color: #e4b9b9;
}
.btn-danger:hover {
  background: #fbecec;
  border-color: #a32222;
}

/* Five Nearby examples, shown together with a larger readable profile and offers. */
.ng-section { padding: clamp(48px, 7vw, 88px) 0; background: var(--paper); }
.ng-section > .wrap > h2 { margin: 0 0 12px; text-align: center; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; }
.ng-intro { margin: 0 0 28px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ng-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x proximity; scrollbar-color: #9c986f #e9e7df; }
.ng-photo { min-width: 0; margin: 0; scroll-snap-align: start; }
.ng-photo > a { display: block; border: 1px solid #e6e1dc; border-radius: 22px; overflow: hidden; background: #fffdfa; box-shadow: 0 5px 15px #25273306; }
.ng-photo > a > img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: contain; }
.ng-photo figcaption { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.ng-step-number { display: inline-grid; place-items: center; flex: none; width: 23px; height: 23px; border-radius: 50%; background: #ede6d1; color: #6a5424; font-size: 11px; font-weight: 650; }
.ng-photo figcaption a { text-decoration: none; }
.ng-photo figcaption a:hover { text-decoration: underline; }
.ng-caption { margin: 16px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); text-align: center; }
.ng-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 840px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid #d7dacd; }
.ng-notes p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.ng-notes strong { color: #34482d; font-weight: 600; }
.ng-notes a { display: inline-block; margin-top: 8px; color: #34482d; font-weight: 600; text-underline-offset: 4px; }

/* Native-looking website examples; all purchases remain in Nearby. */
.np-screen, .np-mini-memberships { position: relative; color: #252733; background: #fffdfa; border: 1px solid #e6e1dc; border-radius: 22px; overflow: hidden; box-shadow: 0 5px 15px #25273306; }
.ng-profile-photo .np-screen, .np-mini-memberships { aspect-ratio: 9 / 20; padding: 12px 13px 28px; }
.np-screen::after, .np-mini-memberships::after { content: ""; position: absolute; bottom: 10px; left: 34%; width: 32%; height: 3px; border-radius: 3px; background: #252733; }
.np-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 9px; font-weight: 650; line-height: 1; }
.np-status svg { width: 36px; height: 10px; }
.np-toolbar { position: relative; margin: 0 0 26px; text-align: center; font-size: 13px; line-height: 1.4; font-weight: 650; }
.np-toolbar::before { content: "‹"; position: absolute; left: 0; top: -7px; font-size: 26px; font-weight: 400; }
.np-toolbar::after { content: "···"; position: absolute; right: 0; top: -6px; font-size: 20px; letter-spacing: 1px; }
.np-profile-head { display: flex; align-items: center; gap: 9px; }
.np-profile-head > img { width: 46px; height: 46px; flex: none; border-radius: 50%; outline: 1px solid #e9e4db; outline-offset: 3px; }
.np-profile-head h3 { font-size: 16px; line-height: 1.3; margin: 0; font-weight: 650; letter-spacing: -.025em; }
.np-actions { display: flex; gap: 7px; margin: 20px 0 22px; }
.np-follow, .np-join { display: inline-flex; flex: 1; justify-content: center; align-items: center; min-height: 36px; border: 1px solid #f0aec3; border-radius: 22px; padding: 8px 10px; color: #b93563; font-size: 11px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.np-join { color: #572238; background: #ff8fae; font-weight: 650; box-shadow: 0 3px 8px #ce487c16; gap: 5px; }
.np-join svg { width: 12px; height: 12px; flex: none; }
.np-join:hover { background: #ffa4bd; }
.np-events-title { margin: 0 0 14px; padding-top: 18px; border-top: 1px solid #ebe5e8; font-size: 15px; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; }
.np-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.np-events article { min-width: 0; overflow: hidden; border: 1px solid #ece6e8; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px #25273304; }
.np-events img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; object-fit: cover; object-position: center; }
.np-events p { margin: 0; padding: 8px 5px 8px; font-size: 9px; line-height: 1.4; font-weight: 600; }
.np-event-kind { display: block; margin-bottom: 4px; font-size: 7px; line-height: 1.2; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #aa7286; }
.np-event-note { margin: 10px 0 0; color: #85818b; font-size: 8px; line-height: 1.4; }

.np-back { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.np-page-title { margin: 0; text-align: center; font-size: clamp(27px, 4vw, 38px); line-height: 1.25; letter-spacing: -.035em; }
.np-example-label { margin: 10px 0 28px; text-align: center; color: var(--muted); font-size: 12px; }
.np-full .wrap, .np-memberships .wrap { max-width: 860px; }
.np-full .np-screen { width: min(100%, 430px); min-height: 600px; margin: 0 auto; padding: 24px 24px 36px; border-radius: 26px; }
.np-full .np-status { font-size: 12px; margin-bottom: 28px; }
.np-full .np-status svg { width: 48px; height: 13px; }
.np-full .np-toolbar { font-size: 20px; margin-bottom: 32px; }
.np-full .np-profile-head { gap: 15px; }
.np-full .np-profile-head > img { width: 66px; height: 66px; }
.np-full .np-profile-head h3 { font-size: 24px; }
.np-full .np-actions { margin: 22px 0 30px; gap: 10px; }
.np-full .np-follow, .np-full .np-join { min-height: 44px; padding: 10px 22px; font-size: 14px; }
.np-full .np-events-title { font-size: 21px; padding-top: 24px; margin-bottom: 18px; }
.np-full .np-events { gap: 16px; }
.np-full .np-events img { aspect-ratio: 4 / 5; border-radius: 0; }
.np-full .np-events p { font-size: 14px; padding: 12px; }
.np-full .np-event-kind { font-size: 9px; margin-bottom: 6px; }
.np-full .np-event-note { font-size: 11px; margin-top: 20px; }

.np-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.np-offer { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: #fffdfa; border: 1px solid #e6dfe3; border-radius: 22px; }
.np-premium { background: linear-gradient(160deg, #fff9fb, #fff0f5); border-color: #f1b7cb; }
.np-offer-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.np-offer-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 22px; font-weight: 650; }
.np-tier-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: #ffe5ee; color: #b93563; }
.np-tier-icon svg { width: 17px; height: 17px; }
.np-offer-heading p { margin: 0; text-align: right; line-height: 1.25; }
.np-offer-heading strong { font-size: 24px; line-height: 1.2; }
.np-offer-heading small { display: block; font-size: 11px; color: #686b78; margin-top: 3px; }
.np-offer h3 { display: flex; align-items: baseline; gap: 7px; margin: 0; font-size: 17px; line-height: 1.5; font-weight: 600; }
.np-offer h3::before { content: "✓"; color: #bd3d6a; font-size: 12px; font-weight: 700; flex: none; }
.np-offer > p { margin: 0 0 8px; color: #686b78; font-size: 14px; line-height: 1.6; }
.np-offer-action { margin-top: auto; padding: 12px; border-radius: 18px; background: #ffe5ee; color: #252733; text-align: center; font-size: 14px; font-weight: 600; }
.np-premium .np-offer-action { background: #ff8fae; }
.np-membership-note { max-width: 620px; margin: 24px auto 0; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.np-mini-memberships .np-toolbar { margin-bottom: 22px; }
.np-mini-memberships .np-offers { grid-template-columns: 1fr; gap: 15px; }
.np-mini-memberships .np-offer { padding: 14px 11px; gap: 13px; border-radius: 17px; box-shadow: 0 4px 12px #25273304; }
.np-mini-memberships .np-offer-heading { gap: 5px; }
.np-mini-memberships .np-offer-heading h2 { font-size: 12px; gap: 6px; letter-spacing: -.025em; }
.np-mini-memberships .np-tier-icon { width: 23px; height: 23px; border-radius: 8px; }
.np-mini-memberships .np-tier-icon svg { width: 13px; height: 13px; }
.np-mini-memberships .np-offer-heading strong { font-size: 14px; }
.np-mini-memberships .np-offer-heading small { font-size: 8px; line-height: 1.2; }
.np-mini-memberships .np-offer h3 { font-size: 11px; line-height: 1.5; font-weight: 500; gap: 5px; }
.np-mini-memberships .np-offer > p { display: none; }
.np-mini-memberships .np-offer-action { padding: 11px 3px; font-size: 10px; line-height: 1.3; border-radius: 12px; }

@media (max-width: 1100px) { .ng-gallery { grid-template-columns: repeat(5, 215px); gap: 18px; } }
@media (max-width: 760px) { .ng-notes { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; } }
@media (max-width: 640px) { .np-offers { grid-template-columns: 1fr; } .np-full .np-profile-head h3 { font-size: 21px; } }
