/*
 * The website's own layout. The pieces come from glass.css.
 */

:root {
  --header-height: 84px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-bottom: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 60px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius-pill);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.nav__links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav__links a,
.nav__panel > a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.nav__links a:hover,
.nav__panel > a:hover {
  background: var(--wash-hover);
  color: var(--ink);
}

.langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--wash-strong);
}

/* Each language names itself in its own script, in the system face: in the
   brand stack, the one word "ಕನ್ನಡ" in the menu made every English page
   download the Kannada font. */
.lang {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.lang[aria-current="page"] {
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--raised-shadow);
}

.nav__menu {
  display: none;
  margin-left: 4px;
}

/* The theme button: both links are drawn and one is shown, the one that leads
   away from the theme on screen. The server knows what somebody chose; only
   the browser knows what "same as this device" means tonight. */
.theme-switch--to-light {
  display: none;
}

:root[data-theme="dark"] .theme-switch--to-dark {
  display: none;
}

:root[data-theme="dark"] .theme-switch--to-light {
  display: inline-flex;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .theme-switch--to-dark {
    display: none;
  }

  :root[data-theme="system"] .theme-switch--to-light {
    display: inline-flex;
  }
}

.themes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--wash-strong);
}

.theme-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: var(--text-xs);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.theme-choice .icon {
  width: 15px;
  height: 15px;
}

.theme-choice[aria-current="true"] {
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--raised-shadow);
}

/* One row on a phone: the third choice wrapping inside a pill read as a
   broken control. The icons go first, the words stay. */
@media (max-width: 440px) {
  .themes {
    flex-wrap: nowrap;
    width: 100%;
  }

  .theme-choice {
    flex: 1 1 auto;
    justify-content: center;
    padding: 6px 8px;
  }

  .theme-choice .icon {
    display: none;
  }
}

.nav__menu summary {
  list-style: none;
}

.nav__menu summary::-webkit-details-marker {
  display: none;
}

.nav__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 2px;
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 10px;
  border-radius: var(--radius-lg);
  /* Inside the nav's own glass, this panel's backdrop blur sees only the nav,
     so the page under it showed through sharp: the hero's headline read
     straight through the menu. Solid instead. */
  background-color: var(--canvas);
}

.nav__panel .langs {
  justify-content: space-between;
  margin-top: 8px;
}

/* Five links and three languages need about 1080px in Kannada without a
   label breaking over two lines; narrower than that, they go in the menu. */
@media (max-width: 1080px) {
  .nav__links,
  .nav__languages {
    display: none;
  }

  .nav__theme {
    margin-left: auto;
  }

  .nav__menu {
    display: block;
  }
}

/* --- Hero ---------------------------------------------------------------- */

/* The photograph runs up behind the header, so the glass bar sits on the sky
   rather than on a strip of plain page. */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(94vh, 880px);
  margin-top: calc(-1 * var(--header-height));
  padding: calc(var(--header-height) + var(--space-7)) 0 var(--space-8);
  overflow: hidden;
}

/* The <picture> around the photograph (a portrait crop for phones) is no box
   of its own, so the grid above still has the one item it was laid out for. */
.hero > picture {
  display: contents;
}

/* The photograph fades out rather than fading to a colour: fading to the page
   colour leaves a seam wherever the backdrop behind it is not that colour, and
   the backdrop moves. */
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}

/* A wash at the top, where the header's glass sits on the sky: light by day,
   and deeper at night so the photograph does not glare out of a dark page. */
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--veil) 0%, var(--veil-clear) 26%);
}

.hero__inner {
  position: relative;
}

.hero__card {
  max-width: 720px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-xl);
  animation: rise var(--duration-slow) var(--ease) both;
}

.hero__title {
  margin: 12px 0 16px;
  font-size: var(--text-3xl);
}

/* "In collaboration with", under the two doors: a quiet line of credit, so
   the doors stay the first thing a reader acts on. */
.hero__partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--glass-edge);
}

.hero__partners-label {
  margin: 0;
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
}

.hero__partner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero__partner-mark {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--on-solid);
  box-shadow: var(--shadow-sm);
}

.hero__partner-text {
  display: grid;
  line-height: 1.25;
}

.hero__partner-text strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
}

.hero__partner-text span {
  max-width: 260px;
  color: var(--ink-3);
  font-size: var(--text-xs);
}

/* Two doors, one per reader. Each names who it is for and holds one button,
   so a partner never has to work out which of several buttons is theirs. */
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.path {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--wash);
}

.path__who {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.path__who .icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent-ink);
}

/* Allowed to wrap: "Get the Partner app" runs long in Kannada, and a button
   that will not wrap pushes out of its box on a phone. */
.path__button {
  width: 100%;
  height: auto;
  padding: 12px 18px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.path__note {
  color: var(--ink-3);
  font-size: var(--text-sm);
}

.path__note a {
  color: var(--accent-ink);
  font-weight: 650;
}

@media (max-width: 600px) {
  .paths {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The partner's own solid button: as firm as the visitor's blue, and not
   mistaken for it. Ink on the page colour, so it flips with the theme. */
.btn--ink {
  --btn-bg: var(--ink);
  --btn-ink: var(--canvas);
  --btn-edge: transparent;
  box-shadow: var(--solid-sheen), var(--shadow-sm);
}

.btn--ink:hover {
  --btn-bg: var(--ink-2);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* --- Sections ------------------------------------------------------------ */

.section {
  padding: var(--space-8) 0;
}

.section__head {
  --gap: var(--space-3);
  max-width: 680px;
}

.section__head--center {
  margin: 0 auto var(--space-6);
  text-align: center;
  align-items: center;
}

.section__title {
  font-size: var(--text-2xl);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.split--wide {
  margin-bottom: var(--space-6);
}

.split__text {
  --gap: var(--space-4);
}

.photo {
  margin: 0;
  padding: 8px;
  border-radius: var(--radius-xl);
}

.photo img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 8px);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  #partners .split__media {
    order: 2;
  }
}

/* --- Cards ---------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-4);
}

.feature,
.kind,
.step {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: var(--space-5);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.feature:hover,
.kind:hover {
  transform: translateY(-2px);
  box-shadow: var(--highlight), 0 0 0 1px var(--hairline), var(--shadow-lg);
}

.feature h3,
.kind h3,
.step h3 {
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.35;
}

.feature p,
.kind p,
.step p {
  color: var(--ink-2);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tint-accent);
  color: var(--accent-ink);
  box-shadow: var(--highlight);
}

.feature__icon .icon {
  width: 22px;
  height: 22px;
}

.feature__icon--danger {
  background: var(--tint-danger);
  color: var(--danger-ink);
}

.kinds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.kind {
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
}

.kind > div {
  display: grid;
  gap: 6px;
}

/* What a partner does next: start in the app, or, already registered, sign
   in on a computer. The first is a solid card with the section's one solid
   button; the second is plain text with a link, quieter on purpose. */
.partner-next {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-5);
}

.partner-next__new {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
}

.partner-next h3 {
  font-size: var(--text-lg);
  font-weight: 750;
}

.partner-next p {
  color: var(--ink-2);
}

.partner-next__desk {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  padding: 0 var(--space-2);
}

.partner-next__desk h3 {
  font-size: var(--text-md);
}

.partner-next__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.partner-next__link:hover {
  text-decoration: underline;
}

.partner-next__link .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .partner-next {
    grid-template-columns: 1fr;
  }

  .partner-next__new {
    padding: var(--space-5);
  }
}

@media (max-width: 700px) {
  .kinds {
    grid-template-columns: 1fr;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.step__number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.promise {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
}

.promise__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--success-soft);
  color: var(--success-ink);
}

.promise__icon .icon {
  width: 26px;
  height: 26px;
}

.promise__title {
  margin-bottom: 4px;
  font-size: var(--text-lg);
  font-weight: 750;
}

.promise p:not(.promise__title) {
  color: var(--ink-2);
}

@media (max-width: 560px) {
  .promise {
    align-items: flex-start;
    padding: var(--space-5);
  }
}

/* Safety: six short promises in one panel rather than six more cards, so
   the page's cards stay with what a visitor can do. The element is named so
   the padding outranks the list reset in base.css. */
ul.assurances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
}

.assurance {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 4px var(--space-3);
}

.assurance .feature__icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.assurance .feature__icon .icon {
  width: 20px;
  height: 20px;
}

.assurance h3 {
  align-self: center;
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.35;
}

.assurance p {
  color: var(--ink-2);
  font-size: var(--text-sm);
}

@media (max-width: 1000px) {
  .assurances {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  ul.assurances {
    grid-template-columns: 1fr;
    padding: var(--space-5);
  }
}

/* --- A document: the privacy policy, the terms -------------------------- */

.document-page {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) 0 var(--space-6);
}

.document-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: min(46rem, 100%);
  margin-inline: auto;
  color: var(--ink-2);
  font-size: var(--text-sm);
}

.document {
  width: min(46rem, 100%);
  margin-inline: auto;
  padding: clamp(20px, 5vw, 56px);
  border-radius: var(--radius-xl);
  line-height: 1.7;
}

.document h1 {
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.document h2 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: var(--text-lg);
  line-height: 1.3;
}

.document h3 {
  margin: var(--space-5) 0 var(--space-1);
  font-size: var(--text-md);
}

.document p,
.document li {
  margin: var(--space-2) 0;
  color: var(--ink-2);
}

.document strong {
  color: var(--ink);
}

.document ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.document code {
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  background: var(--wash);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.table-wrap {
  margin: var(--space-3) 0;
  overflow-x: auto;
}

.document table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.document th,
.document td {
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.document th {
  color: var(--ink);
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  padding: var(--space-6) 0 calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
}

.footer {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-5);
}

.footer__brand {
  --gap: var(--space-2);
  max-width: 360px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px 22px;
}

.footer__links a,
.footer__contact a,
.footer__staff {
  color: var(--ink-2);
  font-weight: 650;
  text-decoration: none;
}

.footer__links a:hover,
.footer__contact a:hover,
.footer__staff:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer__heading {
  margin-bottom: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
}

.footer__legal {
  display: grid;
  gap: 4px;
  justify-items: end;
  margin-left: auto;
  text-align: end;
}

.footer__credit a {
  color: inherit;
  font-weight: 600;
}

@media (max-width: 600px) {
  .footer__legal {
    justify-items: start;
    margin-left: 0;
    text-align: start;
  }
}

.footer__staff {
  font-size: var(--text-sm);
}

/* "In collaboration with": its own band between the links and the legal line,
   so it reads as a credit rather than one more link. */
.footer__partners {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-lg);
  background: var(--tint-accent);
}

.footer__partners-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.footer__partners-eyebrow {
  margin: 0;
  color: var(--accent-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__partners-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
}

.footer__partners-list li {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--ink);
  font-weight: 700;
}

.footer__partners-list li + li::before {
  content: "";
  align-self: center;
  width: 5px;
  height: 5px;
  margin: 0 14px;
  border-radius: 50%;
  background: var(--ink-3);
}

.footer__partner-logo {
  flex: none;
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--on-solid);
  box-shadow: var(--shadow-sm);
}

.footer__partner-short {
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

@media (max-width: 600px) {
  .footer__partners {
    align-items: flex-start;
    padding: var(--space-4);
  }

  .footer__partners-list {
    display: grid;
  }

  .footer__partners-list li + li::before {
    display: none;
  }

  /* The logo to the left of the name and its short form, not above them. */
  .footer__partners-list li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 4px 12px;
  }

  .footer__partner-logo {
    grid-row: span 2;
  }

  .footer__partner-short {
    justify-self: start;
  }
}

.credits {
  flex: 1 1 100%;
  color: var(--ink-3);
  font-size: var(--text-xs);
}

.credits summary {
  cursor: pointer;
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 650;
}

.credits ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.credits a {
  color: var(--ink-2);
}

/* --- Motion --------------------------------------------------------------- */

/* Sections settle into place as they scroll in, where the browser can tie an
   animation to scrolling without any script. Elsewhere they are simply there. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero__card {
    animation: none;
  }
}

/* --- Deleting an account without the app ------------------------------- */

.delete-account {
  margin: var(--space-5) 0;
}

.delete-account__understand {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--ink);
  cursor: pointer;
}

/* Big enough to hit with a thumb on a small phone. */
.delete-account__understand input {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  accent-color: var(--danger);
}

.document .notice {
  margin: var(--space-3) 0;
}

/* --- Downloads -------------------------------------------------------------
 * The APK cards: the visitor app's on the home page, both on /download. The second sits inside
 * a .document, whose list and paragraph rules are undone here. */

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.download {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
}

.document .downloads {
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.document .download {
  margin: 0;
  line-height: 1.5;
}

.download h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
}

.download p {
  margin: 0;
  color: var(--ink-2);
}

.download .download__meta {
  color: var(--ink-3);
  font-size: var(--text-sm);
}

.download__button {
  width: 100%;
  min-height: 52px;
  margin-top: var(--space-2);
  font-size: var(--text-md);
}

.download .download__older {
  font-size: var(--text-sm);
}

.download__older a {
  color: var(--accent-ink);
}

.download__help {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
}

.download__help summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
}

.download__help ol {
  margin: var(--space-3) 0;
  padding-inline-start: 1.4em;
  color: var(--ink-2);
}

.download__help li + li {
  margin-top: var(--space-2);
}

.download__help p {
  margin: 0;
  color: var(--ink-2);
}

.feature__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

/* --- Monuments --------------------------------------------------------------
 * /monuments and /monuments/{slug}: the list to search and a page for each. */

.explore-page {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5) 0 var(--space-7);
}

.mon-head {
  --gap: var(--space-3);
  max-width: 760px;
}

.mon-head h1 {
  font-size: var(--text-2xl);
}

.mon-search {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 8px 8px 18px;
  border-radius: var(--radius-pill);
}

.mon-search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-md);
  outline: none;
}

.mon-search .icon {
  color: var(--ink-3);
}

.mon-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.mon-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.mon-filter span {
  color: var(--ink-3);
  font-weight: 500;
}

.mon-filter[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.mon-filter[aria-current="true"] span {
  color: inherit;
  opacity: 0.8;
}

.mon-count {
  font-size: var(--text-sm);
}

.mon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mon-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.mon-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--highlight), 0 0 0 1px var(--hairline), var(--shadow-lg);
}

.mon-card__link {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.mon-card .mon-photo {
  aspect-ratio: 3 / 2;
}

.mon-card__body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.mon-card h2 {
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.3;
}

.mon-card p {
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.mon-card .mon-card__facts {
  color: var(--ink-3);
  font-size: var(--text-xs);
}

.mon-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--tint-accent);
}

.mon-photo--none {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--accent-ink);
}

.mon-photo--none .icon {
  width: 40px;
  height: 40px;
  opacity: 0.6;
}

.mon-chip {
  justify-self: start;
  align-self: flex-start;
  width: fit-content;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--tint-accent);
  color: var(--accent-ink);
  font-size: var(--text-xs);
  font-weight: 700;
}

.mon-empty {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.mon-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.mon-page {
  display: grid;
  gap: var(--space-5);
  max-width: 860px;
}

.mon-hero {
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 16 / 10;
  background: var(--tint-accent);
}

.mon-strip {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  margin-top: calc(-1 * var(--space-3));
  scrollbar-width: thin;
}

.mon-strip__item {
  flex: none;
  overflow: hidden;
  width: 120px;
  height: 84px;
  border-radius: var(--radius-sm);
}

.mon-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mon-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.mon-fact {
  display: flex;
  gap: var(--space-3);
}

.mon-fact > .icon {
  margin-top: 2px;
  color: var(--accent-ink);
}

.mon-fact__label {
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-weight: 700;
}

.mon-fact__value {
  font-weight: 650;
}

.mon-fact__note {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.mon-section {
  display: grid;
  gap: var(--space-3);
}

.mon-section.glass {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.mon-section h2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
}

.mon-section h2 .icon {
  color: var(--accent-ink);
}

.mon-about p {
  color: var(--ink-2);
  font-size: var(--text-md);
  line-height: 1.75;
}

.mon-audio audio {
  width: 100%;
}

.mon-tips ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-inline-start: 1.2em;
  color: var(--ink-2);
}

.mon-tips p {
  color: var(--ink-2);
}

.mon-map__frame {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius);
  background: var(--tint-accent);
}

.mon-nearby {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mon-near {
  overflow: hidden;
  border-radius: var(--radius);
}

.mon-near a {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: var(--space-3);
  color: inherit;
  text-decoration: none;
}

.mon-near .mon-photo {
  width: 84px;
  height: 72px;
  min-height: 0;
}

.mon-near span {
  display: grid;
  gap: 2px;
  padding-inline-end: var(--space-3);
}

.mon-credits {
  color: var(--ink-3);
  font-size: var(--text-xs);
}

.mon-credits summary {
  min-height: 32px;
  cursor: pointer;
}

.mon-credits ul {
  display: grid;
  gap: 4px;
  padding-inline-start: 1.2em;
}

.mon-credits a {
  color: inherit;
}

.mon-app {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: var(--text-sm);
}

.mon-app a {
  color: var(--accent-ink);
  font-weight: 700;
}

/* --- Tickets --------------------------------------------------------------- */

.ticket-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
}

.ticket-banner > span:nth-child(2) {
  display: grid;
  gap: 2px;
  font-size: var(--text-sm);
}

.ticket-banner > .icon {
  color: var(--accent-ink);
}

.ticket-places {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ticket-place {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.ticket-place:hover {
  border-color: var(--accent);
}

.ticket-box p,
.mon-section p {
  color: var(--ink-2);
}

.ticket-price-line {
  font-weight: 650;
}

.ticket-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.ticket-zones {
  display: grid;
  gap: var(--space-4);
}

.ticket-zone h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
  font-weight: 700;
}

.ticket-prices {
  width: 100%;
  border-collapse: collapse;
}

.ticket-prices th,
.ticket-prices td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--hairline);
  text-align: start;
}

.ticket-prices thead th {
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-weight: 700;
}

.ticket-prices tbody th {
  font-weight: 600;
}

.ticket-steps {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-inline-start: 1.4em;
  color: var(--ink-2);
}

.ticket-not-us {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--ink-2);
  font-weight: 600;
}

.ticket-not-us .icon {
  color: var(--success);
}

/* The ticket helper: a form that works out the ASI ticket for a group. */

.ticket-helper form {
  display: grid;
  gap: var(--space-4);
}

.ticket-fieldset {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  border: 0;
}

.ticket-fieldset legend {
  margin-bottom: var(--space-2);
  padding: 0;
  color: var(--ink);
  font-weight: 700;
}

.ticket-checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ticket-check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.ticket-check:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.ticket-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.ticket-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  gap: var(--space-3);
}

.ticket-count {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.ticket-count input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md, 12px);
  background: var(--glass-strong);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-base);
}

.ticket-count input:focus-visible,
.ticket-check:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* With the script running the answer follows the boxes, so the button that
   sends the form for an answer is not needed. */
.is-live .ticket-helper__go {
  display: none;
}

.ticket-helper__go {
  justify-self: start;
}

.ticket-answer {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--wash-strong);
}

.ticket-answer p {
  margin: 0;
}

.ticket-sum {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.ticket-sum > div {
  display: grid;
  gap: 2px;
}

.ticket-sum span {
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ticket-sum strong {
  color: var(--ink);
  font-size: var(--text-2xl);
  font-weight: 800;
}

.ticket-sum > div:first-child strong {
  color: var(--accent-ink);
}

/* --- Right now in Hampi ---------------------------------------------------- */

.now {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6, 48px);
}

.now__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.now__title {
  font-size: var(--text-xl);
  font-weight: 800;
}

.now__stamp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-3);
  font-size: var(--text-sm);
  font-weight: 650;
}

.now__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}

.now__tile {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.now__tile p {
  margin: 0;
}

.now__big {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: 750;
  line-height: 1.3;
}

.now__sun {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.now__sun p {
  display: grid;
  gap: 2px;
}

.now__sun span {
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.now__sun strong {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: 800;
}

.now__tile a:not(.feature__link),
.now__late a {
  color: var(--accent-ink);
  font-weight: 650;
}

.now__late {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0;
  color: var(--ink-2);
  font-size: var(--text-sm);
}

.now__late .icon {
  flex: none;
  margin-top: 2px;
}

.now__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

/* --- The map --------------------------------------------------------------- */

.map-tools {
  display: grid;
  gap: var(--space-3);
}

.map-kinds button {
  font: inherit;
  cursor: pointer;
}

.map-kinds button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.map-kinds button[aria-pressed="true"] span {
  color: inherit;
}

.map-switches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.map-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: 650;
  cursor: pointer;
}

.map-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.map-locate[hidden] {
  display: none;
}

.map-frame {
  position: relative;
  overflow: hidden;
  padding: 6px;
  border-radius: var(--radius-xl);
}

.map-canvas {
  height: min(72vh, 640px);
  min-height: 420px;
  border-radius: calc(var(--radius-xl) - 6px);
  background: var(--wash-strong);
}

/* Over the map, where the eye is, when the map has nothing to show. */
.map-note {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 900;
  width: max-content;
  max-width: calc(100% - 96px);
  margin: 0;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  transform: translateX(-50%);
}

.map-note[hidden] {
  display: none;
}

.map-canvas.leaflet-container {
  font: inherit;
}

/* Leaflet's popup is white in either theme, so its words keep light-theme
   colours. */
.map-popup {
  color: #0b1220; /* not themed: Leaflet's popup is white in both themes */
  display: grid;
  gap: 6px;
  font-family: inherit;
}

.map-popup img {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
}

.map-popup .mon-chip {
  justify-self: start;
}

.map-popup__name {
  font-size: 1rem;
  line-height: 1.3;
}

.map-popup__open,
.map-popup__closed {
  font-size: 0.8125rem;
  font-weight: 700;
}

.map-popup__open {
  color: #15803d; /* not themed: Leaflet's popup is white in both themes */
}

.map-popup__closed {
  color: #6b7280; /* not themed: Leaflet's popup is white in both themes */
}

.map-popup p {
  margin: 0 !important;
  color: #334155; /* not themed: Leaflet's popup is white in both themes */
  font-size: 0.8125rem;
}

.map-popup__links {
  display: flex;
  gap: var(--space-4);
}

.map-popup__links a {
  color: #2448c7; /* not themed: Leaflet's popup is white in both themes */
  font-weight: 700;
}

.map-list__items {
  columns: 16rem;
  column-gap: var(--space-5);
  margin: 0;
  padding: 0;
}

.map-list__items li {
  break-inside: avoid;
  padding: 4px 0;
}

.map-list__items a {
  color: var(--ink);
  font-weight: 600;
}

/* --- Plan my day ------------------------------------------------------------ */

.plan-form form {
  display: grid;
  gap: var(--space-4);
}

.plan-check input[type="radio"],
.ticket-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.plan-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-4);
}

.plan-date {
  min-width: 200px;
}

.plan-form__go {
  justify-self: start;
}

.plan-form__go .icon {
  margin-right: 8px;
}

.plan-result {
  display: grid;
  gap: var(--space-4);
  scroll-margin-top: 96px;
}

.plan-result__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.plan-result__title {
  margin: 0;
  font-size: var(--text-2xl);
}

.plan-share[hidden] {
  display: none;
}

.plan-share .icon,
.plan-day__map .btn .icon {
  margin-right: 8px;
}

.plan-warning {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  color: var(--ink-2);
}

.plan-day__head {
  display: grid;
  gap: 4px;
  margin-bottom: var(--space-4);
}

.plan-day__head h2,
.plan-day__head p {
  margin: 0;
}

.plan-day__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-5);
}

@media (max-width: 860px) {
  .plan-day__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-day__map {
    order: -1;
  }
}

.plan-timeline {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-stop {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--space-3);
}

.plan-num,
.plan-pin {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8125rem;
  font-weight: 800;
}

.leaflet-marker-icon.plan-pin {
  display: grid;
  border: 2px solid var(--canvas);
  box-shadow: var(--shadow-sm);
  line-height: 1;
}

.plan-stop__body {
  display: grid;
  gap: 2px;
}

.plan-stop h3 {
  margin: 0;
  font-size: var(--text-base);
}

.plan-stop h3 a {
  color: var(--ink);
}

.plan-stop p {
  margin: 0;
  font-size: var(--text-sm);
}

.plan-time {
  color: var(--accent-ink);
  font-size: var(--text-sm);
  font-weight: 700;
}

.plan-leg {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: 13px;
  padding: 4px 0 4px 26px;
  border-left: 2px dashed var(--hairline-strong);
  color: var(--ink-3);
  font-size: var(--text-sm);
}

.plan-lunch {
  display: grid;
  gap: 2px;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--wash-strong);
}

.plan-lunch p {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-sm);
}

/* The map stays in view beside the stops only where it sits beside them. On
   a phone it sits above them, and pinned there it would cover them. */
.plan-day__map {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}

@media (min-width: 861px) {
  .plan-day__map {
    position: sticky;
    top: 96px;
  }
}

.plan-map {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  background: var(--wash-strong);
}

.plan-map.leaflet-container {
  font: inherit;
}

.plan-line {
  stroke: var(--accent);
}

/* --- Ready-made routes ------------------------------------------------------ */

.route-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.route-card {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  color: var(--ink);
  text-decoration: none;
}

.route-card strong {
  font-size: var(--text-lg);
}

.route-card__facts {
  color: var(--accent-ink);
  font-size: var(--text-sm);
  font-weight: 700;
}

.route-card:hover {
  border-color: var(--accent);
}

.route-facts {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--accent-ink);
  font-weight: 700;
}

.route-ways {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  gap: var(--space-1);
  padding: var(--space-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
}

.route-way {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-4);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.route-way.is-on {
  background: var(--accent);
  color: var(--on-accent);
}

.route-way .icon {
  width: 18px;
  height: 18px;
}

.route-tips {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  padding-left: 1.2em;
}

/* --- Meet the local partners ---------------------------------------------- */

.lp-how {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--ink-2);
  font-size: var(--text-sm);
}

.lp-how .icon,
.lp-fact .icon,
.lp-verified .icon {
  flex: none;
  width: 18px;
  height: 18px;
}

.lp-how .icon,
.lp-verified {
  color: var(--accent-ink);
}

.lp-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.lp-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.lp-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.mon-card p.lp-fact {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.lp-fact .icon {
  margin-top: 2px;
  color: var(--ink-3);
}

.lp-open {
  justify-self: start;
  align-self: end;
  margin-top: var(--space-2);
}

.lp-join__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}

/* --- Questions ------------------------------------------------------------
 * /faq: the questions visitors ask, as native <details> under a few headings,
 * a jump list, and a box faq.js shows that narrows them as you type. */

.faq-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.faq-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
}

.faq-jump a:hover {
  color: var(--accent-ink);
}

.faq-filter {
  display: grid;
  gap: var(--space-2);
}

.faq-filter__count:empty {
  display: none;
}

.faq-group {
  display: grid;
  gap: var(--space-3);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.faq-group h2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 700;
}

.faq-group h2 .icon {
  color: var(--accent-ink);
}

.faq-item {
  border-radius: var(--radius-lg);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-4) var(--space-5);
  color: var(--ink);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .icon {
  flex: none;
  color: var(--ink-3);
  transition: transform 0.2s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

.faq-answer {
  display: grid;
  gap: var(--space-3);
  padding: 0 var(--space-5) var(--space-5);
}

.faq-answer p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.7;
}

.faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.faq-links a {
  color: var(--accent-ink);
  font-weight: 700;
}

.faq-none {
  color: var(--ink-2);
  font-weight: 600;
}

.faq-ask {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary .icon {
    transition: none;
  }
}
