/* TAAN Gandaki — site styles
   Brand colours come from Site settings in the admin and are injected as
   --brand / --night / --accent in base.html. Everything else derives from them. */

:root {
  --brand: #0faa51;   /* TAAN green, from the logo */
  --night: #0b3b2a;   /* rhododendron forest at dusk */
  --accent: #ea651a;  /* prayer-flag orange */

  --brand-ink: color-mix(in srgb, var(--brand) 62%, #001018);
  --accent-ink: color-mix(in srgb, var(--accent) 80%, #3a0d00);
  --mist: color-mix(in srgb, var(--brand) 7%, #fff);
  --mist-2: color-mix(in srgb, var(--brand) 14%, #fff);
  --ink: #10212e;
  --muted: #4f6475;
  --line: #d5e3ec;
  --paper: #fff;

  --font-display: "Plus Jakarta Sans", "Mukta", system-ui, sans-serif;
  --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.375rem;
  --step-3: 1.625rem;
  --step-4: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem);
  --step-5: clamp(2rem, 1.4rem + 2.8vw, 3.25rem);

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--night);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 700; }
h2 { font-size: var(--step-4); font-weight: 680; }
h3 { font-size: var(--step-2); font-weight: 650; }
h4 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--night); color: #fff; padding: 8px 14px; border-radius: var(--radius-s);
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  font: 600 var(--step-0)/1.1 var(--font-body);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  background: var(--night); color: #fff;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--brand-ink); color: #fff; }
.btn--accent { background: var(--accent-ink); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent-ink) 82%, #000); }
.btn--ghost { background: transparent; color: var(--night); border-color: currentColor; }
.btn--ghost:hover { background: var(--night); color: #fff; }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: var(--mist-2); color: var(--night); }
.btn--small { min-height: 38px; padding: 6px 14px; font-size: var(--step--1); }

.link-more { font-weight: 600; white-space: nowrap; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--night); color: #d9e9f3; font-size: var(--step--1); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__today { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }




.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--night); margin-right: auto; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font: 800 1.2rem/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.brand__sub { font-size: var(--step--1); color: var(--muted); }

.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: block; padding: 10px 12px; border-radius: var(--radius-s);
  font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav__link:hover { background: var(--mist); color: var(--night); }
.nav__link[aria-current="page"] { color: var(--brand-ink); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav__group { position: relative; }
.nav__menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: 0 18px 40px -18px rgba(10, 58, 92, .35);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: 9px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.nav__menu a:hover { background: var(--mist); }
.header__cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--night);
  font: 600 var(--step--1) var(--font-body); cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.mobile-nav a { display: block; padding: 12px 0; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--mist-2); }
.mobile-nav .sub a { padding-left: 16px; font-weight: 500; color: var(--muted); }
.mobile-nav .btn { margin-top: 16px; width: 100%; }

@media (min-width: 1080px) and (max-width: 1239px) {
  .header .wrap { gap: 12px; }
  .nav__link { padding-inline: 8px; }
}
@media (min-width: 1080px) {
  .header__cta { white-space: nowrap; }
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
}

/* ---------- Messages ---------- */
.flash { background: color-mix(in srgb, #1f9d55 12%, #fff); border-bottom: 1px solid color-mix(in srgb, #1f9d55 35%, #fff); color: #0d4f2a; }
.flash .wrap { padding-block: 12px; font-weight: 600; }

/* ---------- Ridge motif ---------- */
/* Mountain skyline at the foot of dark banners and the top of the footer.
   The range is filled with --ridge-fill (the colour of the section below)
   and outlined in brand blue; a faint far range behind it adds depth. The
   SVG spans the full width at --ridge-h tall, in proportion up to the cap;
   the outline keeps its width however it is stretched. */
:root { --ridge-h: min(11.7vw, 180px); } /* 11.7vw keeps the 1200×140 drawing in proportion */
.ridge { --ridge-fill: var(--paper); --ridge-back: rgba(255, 255, 255, .1); --ridge-stroke: var(--brand); display: block; height: var(--ridge-h); pointer-events: none; }
.ridge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ridge__back { fill: var(--ridge-back); }
.ridge__fill { fill: var(--ridge-fill); }
.ridge__detail { fill: none; stroke: var(--ridge-stroke); stroke-width: 1.2; stroke-linecap: round; opacity: .35; vector-effect: non-scaling-stroke; }
.ridge__line { fill: none; stroke: var(--ridge-stroke); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--night); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__media img.is-active { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 30, 48, .15) 0%, rgba(6, 30, 48, .35) 45%, rgba(6, 30, 48, .82) 100%),
    linear-gradient(90deg, rgba(6, 30, 48, .55) 0%, rgba(6, 30, 48, 0) 70%);
}
.hero__body { padding-block: clamp(72px, 14vw, 150px) calc(var(--ridge-h) * .8 + 32px); max-width: 760px; }
.hero__title { color: #fff; font-size: var(--step-5); margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero__lead { font-size: var(--step-1); max-width: 58ch; color: #e9f3f9; margin-bottom: 28px; }
/* Search box, used on the 404 page */
.hero__search {
  display: flex; gap: 8px; padding: 6px; max-width: 620px;
  background: #fff; border-radius: 999px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55);
}
.hero__search input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 18px;
  font: 500 var(--step-0) var(--font-body); color: var(--ink);
}
.hero__search input:focus { outline: none; }
.hero__search:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero__caption { position: absolute; right: var(--gutter); top: 16px; font-size: .8rem; color: rgba(255, 255, 255, .78); }
.hero .ridge { position: absolute; left: 0; right: 0; bottom: -1px; }
.btn--large { min-height: 54px; padding-inline: 28px; font-size: var(--step-1); }

/* Scrolling strip of the latest news and notices under the home banner.
   The list is rendered twice so the loop is seamless; it pauses on hover or
   keyboard focus and stays still for visitors who prefer reduced motion. */
.ticker { border-bottom: 1px solid var(--line); background: #fff; }
.ticker__inner { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.ticker__label { flex-shrink: 0; padding: 4px 12px; border-radius: 999px; background: var(--accent-ink); color: #fff; font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .04em; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ticker 60s linear infinite; }
.ticker__track li { display: flex; align-items: center; gap: 8px; padding-right: 40px; white-space: nowrap; }
.ticker__track a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ticker__track a:hover { color: var(--brand-ink); text-decoration: underline; }
.ticker__kind { font-size: var(--step--1); font-weight: 700; color: var(--brand-ink); }
.ticker__kind::after { content: "·"; margin-left: 8px; color: var(--muted); }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
  .ticker__track li[aria-hidden] { display: none; }
}
@media (max-width: 640px) {
  .hero__search { flex-direction: column; border-radius: var(--radius-m); }
  .hero__search .btn { width: 100%; }
  .hero__caption { display: none; }
}

/* ---------- Page head (inner pages) ---------- */
.page-head { --ridge-h: min(11.7vw, 150px); position: relative; background: var(--night); color: #e6f1f8; padding-block: clamp(40px, 7vw, 76px) calc(var(--ridge-h) * .7 + 12px); overflow: hidden; }
.page-head h1 { color: #fff; font-size: var(--step-4); margin-bottom: 10px; }
.page-head p { max-width: 62ch; margin: 0; font-size: var(--step-1); }
.page-head .ridge { position: absolute; left: 0; right: 0; bottom: -1px; }
.crumbs { font-size: var(--step--1); margin-bottom: 14px; }
.crumbs a { color: #b9d8ea; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.section__lead { color: var(--muted); max-width: 60ch; margin-top: -12px; margin-bottom: 28px; font-size: var(--step-1); }

.split { display: grid; gap: clamp(28px, 5vw, 64px); }
.split > *, .stack > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--aside { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
}

/* ---------- Notices ---------- */
.notice-board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li + li { border-top: 1px solid var(--line); }
.notice { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: start; padding-block: 16px; text-decoration: none; color: inherit; }
.notice:hover .notice__title { color: var(--brand-ink); text-decoration: underline; }
.notice__date { text-align: center; border-radius: var(--radius-s); background: var(--mist-2); color: var(--night); padding: 8px 4px; line-height: 1.05; }
.notice__day { display: block; font: 800 1.5rem/1 var(--font-display); }
.notice__month { display: block; font-size: .8rem; font-weight: 600; }
.notice__title { font-weight: 600; font-size: var(--step-0); line-height: 1.35; margin: 2px 0 6px; color: var(--ink); }
.notice__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--step--1); color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--mist-2); color: var(--night); white-space: nowrap; }
.badge--pin { background: var(--night); color: #fff; }
.badge--file { background: #fff; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Leaders ---------- */
.leader { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.leader img { width: 120px; height: 140px; object-fit: cover; border-radius: var(--radius-m); background: var(--mist-2); }
.leader__name { font: 700 var(--step-1)/1.2 var(--font-display); color: var(--night); margin: 0; }
.leader__role { color: var(--accent-ink); font-weight: 600; margin: 2px 0 6px; }
.leader__org { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* Message from the President: photo beside an opening excerpt */
.message-teaser { display: grid; gap: 24px; align-items: center; margin-top: 48px; padding: clamp(20px, 4vw, 40px); background: var(--mist-2); border-radius: var(--radius-l); }
.message-teaser img { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius-m); }
.message-teaser h2, .prose .message-teaser h2 { font-size: var(--step-3); margin: 0 0 10px; }
.message-teaser blockquote, .prose .message-teaser blockquote { margin: 0 0 16px; font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.section .wrap > .message-teaser { margin-top: 0; }
@media (min-width: 640px) { .message-teaser { grid-template-columns: 160px 1fr; } }

/* Vision and mission on the About page */
.vm { display: grid; gap: 16px; margin-block: 40px; }
.vm__card { border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 28px); background: #fff; }
.vm__card h2, .prose .vm__card h2 { font-size: var(--step-2); margin: 0 0 10px; }
.vm__card p:last-child, .vm__card ul:last-child { margin-bottom: 0; }
.vm__card--vision { background: var(--night); border-color: var(--night); color: #e6f1f8; }
.vm__card--vision h2 { color: #fff; }
.vm__card--vision p { font-size: var(--step-1); line-height: 1.5; }

.people { display: grid; gap: 28px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); list-style: none; margin: 0; padding: 0; }
.people--fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 760px) { .people { gap: 32px 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .people--fit { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.person__photo { object-position: 50% 20%; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius-m); background: var(--mist-2); margin-bottom: 12px; }
.person__photo--empty { display: grid; place-items: center; color: var(--night); font: 800 2.2rem var(--font-display); }
.person__name { font: 700 var(--step-1)/1.2 var(--font-display); margin: 0 0 2px; color: var(--night); }
.person__role { font-weight: 600; color: var(--accent-ink); margin: 0 0 6px; }
.person__org { font-size: var(--step--1); color: var(--muted); margin: 0 0 6px; line-height: 1.35; }
.person__org a { color: inherit; }
.person__contact { font-size: var(--step--1); margin: 0; }
.person__contact a { display: block; overflow-wrap: anywhere; }

.president {
  display: grid; gap: clamp(20px, 4vw, 48px); align-items: center;
  background: var(--mist); border-radius: var(--radius-l); padding: clamp(20px, 4vw, 40px);
}
.president img { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-m); }
@media (min-width: 760px) { .president { grid-template-columns: 300px 1fr; } }

/* ---------- Member directory ---------- */
.filters { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(16px, 3vw, 24px); margin-bottom: 24px; }
.filters__row { display: grid; gap: 12px; }
@media (min-width: 760px) { .filters__row { grid-template-columns: 1fr 220px auto; align-items: end; } }
.letters { display: flex; flex-wrap: wrap; gap: 4px; border: 0; padding: 0; margin: 0; }
.letters legend { font-size: var(--step--1); font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.letters label { position: relative; }
.letters input { position: absolute; opacity: 0; inset: 0; }
.letters span {
  display: grid; place-items: center; min-width: 36px; height: 36px; padding-inline: 8px;
  border-radius: var(--radius-s); border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: var(--step--1); cursor: pointer;
}
.letters input:checked + span { background: var(--night); color: #fff; border-color: var(--night); }
.letters input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.letters span:hover { border-color: var(--brand); }

.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 46px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--night); }

.results-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); margin-bottom: 12px; }
.htmx-request .results-meta::after { content: "Updating…"; color: var(--brand-ink); }

.members { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.member { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.member__mark {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--mist-2); color: var(--night);
  font: 800 1.15rem var(--font-display);
}
.member__mark img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-weight: 700; font-size: var(--step-0); line-height: 1.3; margin: 0; }
.member__name a { color: var(--night); text-decoration: none; }
.member__name a:hover { text-decoration: underline; color: var(--brand-ink); }
.member__md { font-size: var(--step--1); color: var(--muted); }
.member__info { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: var(--step--1); color: var(--ink); }
.member__info a { color: var(--brand-ink); }
@media (min-width: 900px) {
  .member { grid-template-columns: 48px minmax(0, 1.4fr) minmax(0, 1fr) 170px; align-items: center; }
  .member__mark { grid-row: auto; }
  .member__info { display: contents; }
}

@media (min-width: 900px) {
  .members--compact .member { grid-template-columns: 48px 1fr; }
  .members--compact .member__mark { grid-row: span 2; }
  .members--compact .member__info { display: flex; }
}

.empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-l); color: var(--muted); }

.detail-card { border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); background: #fff; }
.facts { display: grid; gap: 14px; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Explore tiles ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 900px) {
  .tiles--mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
  .tiles--mosaic .tile:first-child { grid-column: span 2; grid-row: span 2; }
  .tiles--mosaic .tile:first-child .tile__title { font-size: var(--step-3); }
}
.tile { position: relative; display: block; min-height: 220px; border-radius: var(--radius-m); overflow: hidden; color: #fff; text-decoration: none; background: var(--night); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 30, 48, .85)); }
a.tile:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { a.tile:hover img { transform: none; } }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; }
.tile__kind { font-size: .8rem; font-weight: 600; color: #ffd7c2; }
.tile__title { font: 750 var(--step-1)/1.15 var(--font-display); margin: 2px 0 0; color: #fff; }

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius-m); }

/* Media section */
.media-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.media-tile { display: grid; gap: 8px; height: 100%; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.media-tile:hover { border-color: var(--brand); box-shadow: 0 14px 30px -20px rgba(10, 58, 92, .5); }
.media-tile__title { font: 700 var(--step-1)/1.2 var(--font-display); color: var(--night); }
.media-tile:hover .media-tile__title { color: var(--brand-ink); text-decoration: underline; }
.media-tile__text { color: var(--muted); font-size: var(--step--1); }
.media-tile__count { align-self: end; font-weight: 700; font-size: var(--step--1); color: var(--accent-ink); }

.gallery--photos figure a { display: block; border-radius: var(--radius-m); overflow: hidden; }
.gallery--photos img { transition: transform .4s ease; }
.gallery--photos a:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 6px; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 18, 30, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(4, 18, 30, .94); }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; object-fit: contain; border-radius: var(--radius-s); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; margin: 0; padding-inline: 70px; color: #d9e9f3; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

.video { display: flex; flex-direction: column; }
.video__frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--night); margin-bottom: 14px; }
.video__frame img, .video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 999px; background: var(--accent-ink); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); transition: transform .2s; }
.video__play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.video__frame:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video .card__title { margin-top: 4px; }

.file-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.file-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px 16px; align-items: center; padding: 18px clamp(16px, 3vw, 24px); }
.file-row + .file-row { border-top: 1px solid var(--line); }
.file-row .btn { grid-column: 2; justify-self: start; }
@media (min-width: 640px) { .file-row { grid-template-columns: 56px 1fr auto; } .file-row .btn { grid-column: auto; } }
.file-row__ext { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-s); background: var(--mist-2); color: var(--night); font: 800 .8rem var(--font-display); }
.file-row__title { margin: 0; font-weight: 600; color: var(--ink); }
.file-row__meta { margin: 2px 0 0; font-size: var(--step--1); color: var(--muted); }
.file-row__text { margin: 6px 0 0; font-size: var(--step--1); }

.magazines { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.magazine { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.magazine__cover { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: var(--radius-s); box-shadow: 0 16px 30px -18px rgba(10, 58, 92, .6); margin-bottom: 10px; background: var(--mist-2); }
.magazine__cover--blank { display: grid; place-items: center; padding: 16px; text-align: center; font: 700 var(--step-0) var(--font-display); color: var(--night); }
.magazine:hover .card__title { text-decoration: underline; color: var(--brand-ink); }

.coverage-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.coverage-list li + li { border-top: 1px solid var(--line); }
.coverage { display: grid; gap: 16px; padding: 18px clamp(16px, 3vw, 24px); text-decoration: none; color: inherit; }
.coverage:has(.coverage__img) { grid-template-columns: 120px 1fr; }
.coverage__img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }
.coverage__meta { display: block; font-size: var(--step--1); color: var(--muted); margin-bottom: 2px; }
.coverage__meta strong { color: var(--accent-ink); }
.coverage:hover .notice__title { color: var(--brand-ink); text-decoration: underline; }

.feature-image { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-l); margin-bottom: 28px; }

/* ---------- News ---------- */
.cards { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card__img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: var(--radius-m); background: var(--mist-2); margin-bottom: 14px; }
.card__date { font-size: var(--step--1); color: var(--muted); }
.card__title { font: 700 var(--step-1)/1.25 var(--font-display); color: var(--night); margin: 4px 0 8px; }
.card:hover .card__title { text-decoration: underline; color: var(--brand-ink); }
.card__text { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose img { border-radius: var(--radius-m); margin-block: 18px; }
.prose h2 { font-size: var(--step-3); margin-top: 1.4em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 4px solid var(--accent); color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose a { overflow-wrap: anywhere; }

.objectives { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.objectives li { position: relative; padding-left: 30px; }
.objectives li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; background: var(--accent); clip-path: polygon(0 100%, 50% 0, 100% 100%); }

.facts-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.facts-strip div { background: #fff; padding: 20px; }
.facts-strip strong { display: block; font: 800 var(--step-3)/1 var(--font-display); color: var(--night); margin-bottom: 4px; }
.facts-strip span { color: var(--muted); font-size: var(--step--1); }

/* ---------- Steps (membership) ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: #fff; font: 800 1rem var(--font-display); margin-bottom: 12px; }
.steps strong { display: block; color: var(--night); margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 28px; max-width: 820px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(18px, 3vw, 28px); margin: 0; display: grid; gap: 18px; }
@media (min-width: 720px) { .fieldset { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.fieldset legend { font: 700 var(--step-1) var(--font-display); color: var(--night); padding-inline: 8px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; }
.field .req { color: var(--accent-ink); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field input[type=date], .field input[type=tel], .field input[type=search], .field select, .field textarea,
.input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid #b7cad6; border-radius: var(--radius-s); background: #fff;
  font: 400 var(--step-0) var(--font-body); color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input[type=file] { font: inherit; padding: 10px; border: 1.5px dashed #b7cad6; border-radius: var(--radius-s); background: var(--mist); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); border-color: var(--brand-ink); }
.field__help { font-size: var(--step--1); color: var(--muted); margin: 0; }
.file-current { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.file-current__thumb { width: 64px; height: 64px; object-fit: contain; border-radius: var(--radius-s); background: var(--mist); }
.file-current__body { display: grid; gap: 4px; }
.file-current__body > span { font-weight: 600; }
.field .file-current__clear { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--muted); cursor: pointer; }
.file-current__clear input { width: 18px; height: 18px; margin: 0; accent-color: var(--night); }
.field__error { font-size: var(--step--1); color: #b42318; font-weight: 600; margin: 0; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #b42318; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--night); }
.form-errors { border: 1px solid #f1b5af; background: #fef3f2; color: #8a1c12; padding: 14px 18px; border-radius: var(--radius-m); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pagination & tabs ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 28px; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding-inline: 12px; border-radius: var(--radius-s); border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--night); }
.pagination [aria-current] { background: var(--night); color: #fff; border-color: var(--night); }
.pagination .gap { border: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--night); }
.tabs a[aria-current] { background: var(--night); border-color: var(--night); color: #fff; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px; align-items: center; list-style: none; margin: 0; padding: 0; }
.partners a, .partners span { display: grid; place-items: center; height: 84px; padding: 10px; border-radius: var(--radius-m); background: #fff; border: 1px solid var(--line); }
.partners img { max-height: 60px; width: auto; object-fit: contain; opacity: .78; transition: .2s; }
.partners a:hover img { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--night); color: #dcebf5; border-radius: var(--radius-l); padding: clamp(24px, 5vw, 48px); display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; font-size: var(--step-3); margin-bottom: 6px; }
.cta-band p { margin: 0; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #c9deeb; margin-top: clamp(48px, 7vw, 88px); font-size: var(--step--1); }
.footer__ridge { display: block; margin-bottom: -1px; background: var(--paper); }
.footer .ridge { --ridge-fill: var(--night); --ridge-back: color-mix(in srgb, var(--brand) 12%, transparent); }
.footer a { color: #e8f3fa; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: 32px; padding-block: 40px 32px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer h2 { font-size: var(--step-0); color: #fff; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer__brand img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.footer__brand strong { display: block; color: #fff; font: 800 1.1rem/1.15 var(--font-display); }
.footer__social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.footer__social a { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #a9c5d6; }
.footer address { font-style: normal; display: grid; gap: 6px; }

.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius-l); background: var(--mist); }

.pdf-frame { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: var(--radius-m); margin-top: 20px; }

.note { font-size: var(--step--1); color: var(--muted); }
.stack > * + * { margin-top: 18px; }

/* ---- TAAN Gandaki additions: trekking, permits, verification ---- */
.topbar__sos { font-weight: 700; color: #ffd7c2 !important; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__verify { margin-top: 28px; max-width: 560px; color: #fff; }
.hero__verify label { display: block; font-weight: 600; margin-bottom: 8px; }
.hero__verify div, .verify-form div { display: flex; gap: 8px; }
.hero__verify .input, .verify-form .input { flex: 1; min-width: 0; }
.verify-form label { display: block; font-weight: 600; margin-bottom: 8px; }
@media (max-width: 520px) { .hero__verify div, .verify-form div { flex-direction: column; } }

.routes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.route-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: #fff; }
.route-card__link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.route-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--mist-2); }
.route-card__img--empty { display: grid; place-items: center; font: 800 var(--step-4) var(--font-display); color: var(--night); background: linear-gradient(160deg, var(--mist-2), var(--mist)); }
.route-card__region { padding: 14px 18px 0; font-size: var(--step--1); font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .04em; }
.route-card__title { margin: 4px 18px 0; font-size: var(--step-1); line-height: 1.25; }
.route-card__link:hover .route-card__title { color: var(--brand-ink); text-decoration: underline; }
.route-card__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: auto 0 0; padding: 14px 18px 18px; }
.route-card__facts dt { font-size: .75rem; color: var(--muted); }
.route-card__facts dd { margin: 0; font-weight: 700; font-size: var(--step--1); }

.answer { font-size: var(--step-1); line-height: 1.55; padding: 18px 22px; border-left: 4px solid var(--brand); background: var(--mist); border-radius: 0 var(--radius-m) var(--radius-m) 0; margin: 0; }
.quick-facts { padding-left: 1.1em; display: grid; gap: 10px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fee-table { width: 100%; border-collapse: collapse; background: #fff; font-size: var(--step--1); }
.fee-table th, .fee-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fee-table thead th { background: var(--night); color: #fff; font-weight: 600; }
.fee-table tbody th { font-weight: 600; }
.fee-table small { color: var(--muted); }
.fee-table--compact th, .fee-table--compact td { padding: 8px 10px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--night); }
.faq details[open] summary { margin-bottom: 8px; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.route-facts .btn { margin-top: 20px; width: 100%; }
.muted { color: var(--muted); }

.sos-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.sos-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; }
.footer__sos { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.footer__sos span { display: block; font-size: var(--step--1); opacity: .8; }

.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; }
.event__date { display: grid; place-items: center; text-align: center; border-radius: var(--radius-m); background: var(--night); color: #fff; font-size: .75rem; padding: 8px 4px; align-self: start; }
.event__date span { font: 800 1.6rem/1 var(--font-display); }
.event__title { font-weight: 700; font-size: var(--step-1); color: var(--night); }
.event__meta { margin: 2px 0 6px; color: var(--muted); font-size: var(--step--1); }
.event p:last-child { margin-bottom: 0; }

.resource-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.resource-list li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; }
.resource-list a { font-weight: 700; font-size: var(--step-1); }
.resource-list p { margin: 6px 0; color: var(--muted); }
.archived { padding: 14px 18px; border-radius: var(--radius-m); background: #fff6e8; border: 1px solid #f3d3a5; margin-bottom: 24px; }

.badge--ok { background: var(--brand); color: #fff; }
.verified-line { display: flex; gap: 8px; flex-wrap: wrap; }
.verify-result { padding: 20px; border-radius: var(--radius-l); border: 1px solid var(--line); }
.verify-result--ok { border-color: var(--brand); background: var(--mist); }
.verify-result--none { border-color: #f3d3a5; background: #fff6e8; }

/* Multi-checkbox fields on the member account form */
.field ul#id_specialties, .field ul#id_regions, .field div#id_specialties, .field div#id_regions { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.field #id_specialties label, .field #id_regions label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.topbar__contact a { overflow-wrap: anywhere; }
.hero__actions .btn { max-width: 100%; }
.route-card__credit { margin: -8px 18px 14px; font-size: .7rem; line-height: 1.3; color: var(--muted); }
.route-card__credit a { color: inherit; }
.route-photo { margin: 0; }
.route-photo .feature-image { margin-bottom: 8px; }
.route-photo figcaption { font-size: var(--step--1); color: var(--muted); }
.route-photo figcaption a { color: inherit; }
