@charset "UTF-8";
/**
 * state-page.css
 *
 * The design system for the state-level matrimony pages
 * (/matrimony/{state}/).
 *
 * The state page used to carry every measurement, colour and spacing
 * rule in an inline style="" attribute on each element. That made the
 * page impossible to restyle: a change to the card background meant
 * finding every copy of the same hex value across the markup.
 *
 * Everything the page needs now lives here, behind a small set of
 * classes:
 *
 *   .sp-section   one spacing rhythm for every block on the page
 *   .sp-card      one card style, shared by the trend, religion and
 *                 city cards
 *   .sp-chip      a small link chip
 *   .sp-chip-row  the row a chip list lives in
 *   .sp-tile      a tile with a fixed-height title slot, so the counts
 *                 under a row of tiles line up
 *
 * Colours are CSS variables, so the teal the page is built around is
 * changed in one place.
 *
 * Loaded by views/matrimony/state-listing.php.
 */

/* ── Tokens ──────────────────────────────────────────────────────────────── */

.sp-page {
  /* Brand */
  --sp-teal:        #2F5E5A;
  --sp-teal-dark:   #234846;
  --sp-teal-light:  #E8F3F1;
  --sp-teal-tint:   #F3F9F8;

  /* Surfaces */
  --sp-surface:     #FFFFFF;
  --sp-surface-alt: #FAFCFB;
  --sp-border:      #DCE8E6;
  --sp-border-soft: #EAF1EF;

  /* Text
     Every text colour below meets WCAG AA (4.5:1) on the surfaces it
     is used on. The muted colour is the darkest one that still passes:
     #5A6B6A on #FFFFFF is 5.4:1. */
  --sp-text:        #2D3138;
  --sp-text-soft:   #454F4E;
  --sp-muted:       #5A6B6A;
  --sp-muted-light: #6B7B7A;

  /* Accents */
  --sp-blue:        #1E4DB7;
  --sp-blue-light:  #EEF3FC;
  --sp-amber:       #9A5407;
  --sp-amber-light: #FDF3E4;
  --sp-purple:      #6B34C7;
  --sp-purple-light:#F4EEFC;
  --sp-green:       #12703A;
  --sp-green-light: #E9F6EE;
  --sp-red:         #B3261E;
  --sp-red-light:   #FCEEEC;

  /* Metrics */
  --sp-radius:      10px;
  --sp-radius-sm:   8px;
  --sp-gap:         1rem;
  --sp-gap-sm:      .625rem;
  --sp-section-gap: 3rem;

  /* Type scale */
  --sp-h1: 40px;
  --sp-h2: 30px;
  --sp-h3: 22px;
  --sp-body: 18px;
  --sp-caption: 14px;

  --sp-shadow: 0 1px 3px rgba(15, 35, 33, .06), 0 4px 14px rgba(15, 35, 33, .05);
  --sp-shadow-hover: 0 4px 10px rgba(15, 35, 33, .09), 0 10px 26px rgba(15, 35, 33, .07);
}

/* ── Page shell ──────────────────────────────────────────────────────────── */

.sp-page {
  font-size: var(--sp-body);
  line-height: 1.6;
  color: var(--sp-text);
}

.sp-page h1 {
  font-size: var(--sp-h1);
  line-height: 1.2;
  font-weight: 700;
  color: var(--sp-text);
  margin: 0 0 .75rem;
}

.sp-page h2 {
  font-size: var(--sp-h2);
  line-height: 1.25;
  font-weight: 700;
  color: var(--sp-text);
  margin: 0 0 .5rem;
}

.sp-page h3 {
  font-size: var(--sp-h3);
  line-height: 1.3;
  font-weight: 600;
  color: var(--sp-text);
  margin: 0 0 .5rem;
}

.sp-page p {
  font-size: var(--sp-body);
  color: var(--sp-text-soft);
  margin: 0 0 1rem;
}

/* The generic paragraph rule above sets a margin on every paragraph.
   These components carry their own spacing, so they are matched a
   little more specifically and win over it. */
.sp-page .sp-tile-title,
.sp-page .sp-tile-count,
.sp-page .sp-religion-city,
.sp-page .sp-lede,
.sp-page .sp-insight,
.sp-page .sp-metric-label,
.sp-page .sp-metric-value,
.sp-page .sp-metric-caption,
.sp-page .sp-profile-name,
.sp-page .sp-profile-meta {
  margin: revert;
}

.sp-page .sp-tile-title {
  margin: 0 0 .35rem;
}

.sp-page .sp-tile-count {
  margin: 0;
}

.sp-page .sp-religion-city {
  margin: 0 0 1rem;
}

.sp-page .sp-lede,
.sp-page .sp-section > .sp-lede {
  margin: -.25rem 0 1.25rem;
}

.sp-page .sp-insight {
  margin: 1rem 0 0;
}

.sp-page .sp-metric-label,
.sp-page .sp-metric-caption {
  margin: 0;
}

.sp-page .sp-metric-value {
  margin: .2rem 0 .15rem;
}

.sp-page .sp-profile-name {
  margin: 0 0 .25rem;
}

.sp-page .sp-profile-meta {
  margin: 0;
}

.sp-page a {
  color: var(--sp-teal);
}

/* ── Sections ──────────────────────────────────────────────────────────────
   One spacing rhythm: every block on the page is separated by the same
   gap and starts with the same heading offset. */

.sp-section {
  margin: var(--sp-section-gap) 0 0;
}

.sp-section:first-of-type {
  margin-top: 0;
}

.sp-section > .sp-lede {
  color: var(--sp-muted);
  margin: -.25rem 0 1.25rem;
}

.sp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: .35rem;
}

.sp-section-head .sp-count {
  font-size: var(--sp-caption);
  font-weight: 600;
  color: var(--sp-muted);
  white-space: nowrap;
}

/* ── Cards ─────────────────────────────────────────────────────────────────
   One card style for the trend tiles, the religion panels and the city
   tiles. */

.sp-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
  padding: .875rem 1rem;
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

a.sp-card:hover,
a.sp-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-hover);
  border-color: var(--sp-teal);
  color: inherit;
}

/* The metric cards carry a label, a value and a caption. */
.sp-metric-label {
  font-size: var(--sp-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sp-muted);
}

.sp-metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sp-teal);
  margin: .2rem 0 .15rem;
}

.sp-metric-caption {
  font-size: var(--sp-caption);
  color: var(--sp-muted);
}

.sp-metric-value--blue   { color: var(--sp-blue); }
.sp-metric-value--amber  { color: var(--sp-amber); }
.sp-metric-value--purple { color: var(--sp-purple); }
.sp-metric-value--green  { color: var(--sp-green); }

/* ── Grids ───────────────────────────────────────────────────────────────── */

.sp-grid {
  display: grid;
  gap: var(--sp-gap);
}

.sp-grid--metrics {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .75rem;
}

.sp-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.sp-grid--tiles {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sp-grid--tiles-wide {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* ── Chips ─────────────────────────────────────────────────────────────────
   A chip is a small link. It is never rendered as a plain <span> that
   looks like a chip: an unlinkable destination is omitted instead. */

.sp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-gap-sm);
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
}

/* Pico sets `list-style-type` on the <li> itself, and a marker set on
   the item wins over the "none" inherited from the list. The markers
   are cleared on both levels so the row stays a clean chip row. */
.sp-chip-row li {
  list-style: none;
  margin: 0;
  padding: 0;
  /* The item is a flex row, so a count that is a sibling of the chip
     sits beside it instead of dropping onto a second line. */
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: var(--sp-caption);
  font-weight: 500;
  line-height: 1.4;
  color: var(--sp-teal);
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.sp-chip:hover,
.sp-chip:focus-visible {
  background: var(--sp-teal-light);
  border-color: var(--sp-teal);
  color: var(--sp-teal-dark);
}

.sp-chip-count {
  font-weight: 600;
  color: var(--sp-muted);
  /* The count sits inside the pill, in front of the label, separated by
     a hairline so the two read as two parts of one chip. */
  padding: 0 .4rem 0 0;
  border-right: 1px solid var(--sp-border);
  font-variant-numeric: tabular-nums;
  /* The count is the first part of the chip, the label comes after it. */
  order: -1;
}

.sp-chip:hover .sp-chip-count {
  color: var(--sp-teal-dark);
  border-right-color: var(--sp-teal);
}

/* ── Tiles ─────────────────────────────────────────────────────────────────
   A tile has a fixed-height title slot so the counts under a row of
   tiles line up, however long the titles are. */

.sp-tile {
  display: flex;
  flex-direction: column;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
  padding: .875rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

a.sp-tile:hover,
a.sp-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-hover);
  border-color: var(--sp-teal);
  color: inherit;
}

.sp-tile-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sp-teal);
  /* The fixed slot. Two lines' worth of room, so a one-line title and a
     two-line title leave the count in the same place. */
  min-height: 2.7em;
  margin: 0 0 .35rem;
}

.sp-tile-count {
  font-size: var(--sp-caption);
  color: var(--sp-muted);
  margin: 0;
}

/* A tile that carries chips is taller than one that does not. The
   chips are pinned to the bottom so the counts of a row stay level. */
.sp-tile .sp-chip-row {
  margin-top: .75rem;
}

.sp-tile-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
  margin-bottom: .5rem;
}

/* A tile whose title is a link: the link fills the tile, so the whole
   card is the hit target and the title keeps its own line height. */
.sp-tile-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.sp-tile-link:hover,
a.sp-tile-link:focus-visible {
  color: inherit;
  text-decoration: underline;
}

.sp-tile-link .sp-tile-title {
  color: var(--sp-teal);
}

.sp-tile-link:hover .sp-tile-title {
  text-decoration: underline;
}

/* ── Religion blocks ─────────────────────────────────────────────────────── */

.sp-religion {
  background: var(--sp-teal-tint);
  border-radius: var(--sp-radius);
  padding: 1.25rem;
  margin-bottom: var(--sp-gap);
}

.sp-religion:last-child {
  margin-bottom: 0;
}

.sp-religion-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-bottom: .15rem;
}

.sp-religion-head h3 {
  margin: 0;
}

.sp-religion-head h3 a {
  color: var(--sp-teal);
  text-decoration: none;
}

.sp-religion-head h3 a:hover {
  text-decoration: underline;
}

.sp-religion-count {
  font-size: var(--sp-caption);
  font-weight: 600;
  color: var(--sp-muted);
}

.sp-religion-city {
  font-size: var(--sp-caption);
  color: var(--sp-muted);
  margin: 0 0 1rem;
}

.sp-religion-city strong {
  color: var(--sp-text-soft);
  font-weight: 600;
}

.sp-page a.sp-btn {
  color: #fff;
}

.sp-btn {
  display: inline-block;
  background: var(--sp-teal);
  color: #fff;
  border-radius: 999px;
  padding: .6rem 1.5rem;
  font-size: var(--sp-caption);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background .16s ease;
}

.sp-btn:hover,
.sp-btn:focus-visible {
  background: var(--sp-teal-dark);
  color: #fff;
}

.sp-religion-cta {
  margin-top: 1rem;
  text-align: center;
}

/* ── Profile cards ─────────────────────────────────────────────────────────
   One image treatment for the three states a member photo can be in:
   a real photo, a blurred photo, or no photo at all. */

.sp-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: var(--sp-gap);
}

.sp-profile {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
  overflow: hidden;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.sp-profile:hover {
  transform: translateY(-3px);
  box-shadow: var(--sp-shadow-hover);
}

.sp-profile-media {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--sp-surface-alt);
}

.sp-profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* No photo: the stock image is scaled to fit, because its subject is
   not centred and it carries its own label. */
.sp-profile-media--placeholder img {
  object-fit: contain;
  padding: .5rem;
}

/* Blurred photo, shown to a visitor who is not signed in.
   The photo that reaches us is already blurred by the image service,
   so no extra darkening is applied here: a second layer of scrim only
   made the picture read as a black block. */
.sp-profile-media--blurred img {
  filter: blur(10px);
  transform: scale(1.08);
}

.sp-profile-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* No fill of its own, so the blurred photo underneath keeps its
     brightness and colour. */
  background: transparent;
  cursor: pointer;
}

.sp-profile-lock span {
  /* A light pill on the photo: it stays legible over a light picture
     and over a dark one. */
  background: rgba(255, 255, 255, .92);
  color: var(--sp-teal-dark);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 2px 8px rgba(15, 35, 33, .28);
  font-size: var(--sp-caption);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 999px;
}

.sp-profile-body {
  padding: .75rem .75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* The tag rows and the button sit at the bottom of the card, so a card
     with a longer name does not push them out of line with its
     neighbours. */
  min-height: 14rem;
}

.sp-profile-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--sp-text);
  line-height: 1.3;
  margin: 0 0 .1rem;
}

.sp-profile-meta {
  font-size: var(--sp-caption);
  color: var(--sp-muted);
  margin: 0;
  /* A reserved two-line slot, so a long city name can wrap without
     pushing the tag rows and the button of that card out of line with
     its neighbours. */
  min-height: 2.8em;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
}

.sp-profile-badge {
  display: inline-block;
  background: var(--sp-teal-light);
  color: var(--sp-teal-dark);
  border-radius: 999px;
  padding: .1rem .6rem;
  font-size: var(--sp-caption);
  margin-top: .4rem;
}

/* The religion, community and sub-community of a member. Each row is a
   key and its value, so a visitor can see which branch of the hub the
   profile belongs to without leaving the card.

   The rows are a plain definition list with hairline dividers rather
   than three separate boxes: stacked borders read as a stripe, and the
   card already has enough of them. */
.sp-profile-tags {
  width: 100%;
  margin: .6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  /* A reserved slot for the three rows, so the button of every card in a
     row sits on the same line. */
  min-height: 7.2rem;
}

.sp-profile-tag {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  /* A fixed row height that fits two lines of a value, so a long
     community name wraps inside its row instead of making that card
     taller than its neighbours. */
  min-height: 34px;
  padding: .28rem 0;
  border-top: 1px solid var(--sp-border-soft);
}

.sp-profile-tag:first-child {
  border-top: 0;
}

/* A closing hairline, so the list reads as one framed block rather than
   three loose lines. */
.sp-profile-tag:last-child {
  border-bottom: 1px solid var(--sp-border-soft);
}

.sp-profile-tag-key {
  flex: 0 0 auto;
  margin: 0;
  font-size: var(--sp-caption);
  font-weight: 600;
  color: var(--sp-muted);
  white-space: nowrap;
}

.sp-profile-tag-value {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  font-size: var(--sp-caption);
  font-weight: 600;
  color: var(--sp-text);
  text-align: right;
  /* A long community name wraps onto a second line inside its row, so
     the visitor can still read it and the row height never changes. */
  overflow-wrap: anywhere;
  line-height: 1.35;
  /* Three lines are enough for the longest community name. */
  max-height: 4.1em;
}

.sp-page a.sp-profile-cta {
  color: #fff;
}

.sp-profile-cta {
  display: block;
  width: 100%;
  margin-top: auto;
  background: var(--sp-red);
  color: #fff;
  border-radius: var(--sp-radius-sm);
  padding: .55rem .5rem;
  font-size: var(--sp-caption);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background .16s ease;
  /* A comfortable tap target. */
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-profile-cta:hover {
  background: #8F1E18;
  color: #fff;
}

.sp-profile-cta--muted {
  background: var(--sp-muted-light);
  cursor: default;
}

/* ── Trust strip ─────────────────────────────────────────────────────────── */

.sp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.sp-trust li {
  list-style: none;
  background: var(--sp-teal-light);
  color: var(--sp-teal-dark);
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: var(--sp-caption);
  font-weight: 600;
}

.sp-trust li.sp-trust--blue {
  background: var(--sp-blue-light);
  color: var(--sp-blue);
}

.sp-trust li.sp-trust--amber {
  background: var(--sp-amber-light);
  color: var(--sp-amber);
}

.sp-trust li.sp-trust--purple {
  background: var(--sp-purple-light);
  color: var(--sp-purple);
}

.sp-trust li.sp-trust--neutral {
  background: var(--sp-surface-alt);
  color: var(--sp-muted);
  font-weight: 500;
  border: 1px solid var(--sp-border-soft);
}

/* ── Trends panel ────────────────────────────────────────────────────────── */

.sp-trends {
  background: var(--sp-teal-tint);
  border-left: 4px solid var(--sp-teal);
  border-radius: 0 var(--sp-radius) var(--sp-radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: var(--sp-section-gap);
}

.sp-trends .sp-insight {
  font-size: var(--sp-caption);
  color: var(--sp-muted);
  margin: 1rem 0 0;
}

/* ── Table ───────────────────────────────────────────────────────────────── */

.sp-table-wrap {
  overflow-x: auto;
}

.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--sp-caption);
}

.sp-table th {
  background: var(--sp-teal-light);
  text-align: left;
  padding: .625rem .875rem;
  border-bottom: 2px solid var(--sp-border);
  font-weight: 700;
  color: var(--sp-text);
  white-space: nowrap;
}

.sp-table th.sp-table-num,
.sp-table td.sp-table-num {
  text-align: right;
}

.sp-table td {
  padding: .625rem .875rem;
  border-bottom: 1px solid var(--sp-border-soft);
  color: var(--sp-text-soft);
}

.sp-table tbody tr:nth-child(even) {
  background: var(--sp-surface-alt);
}

.sp-table tbody tr:hover {
  background: var(--sp-teal-light);
}

.sp-table a {
  color: var(--sp-teal);
  font-weight: 600;
  text-decoration: none;
}

.sp-table a:hover {
  text-decoration: underline;
}

/* ── Articles ────────────────────────────────────────────────────────────── */

.sp-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-gap);
}

.sp-article {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
  padding: 1.125rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sp-article:hover {
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-hover);
  border-color: var(--sp-teal);
  color: inherit;
}

.sp-article h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 .5rem;
}

.sp-article p {
  font-size: var(--sp-caption);
  color: var(--sp-muted);
  margin: 0 0 .75rem;
}

.sp-article-more {
  font-size: var(--sp-caption);
  font-weight: 600;
  color: var(--sp-teal);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.sp-faq details {
  border-bottom: 1px solid var(--sp-border-soft);
  padding: .85rem 0;
}

.sp-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--sp-body);
  color: var(--sp-teal);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sp-faq summary::-webkit-details-marker {
  display: none;
}

.sp-faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--sp-muted);
  flex-shrink: 0;
}

.sp-faq details[open] summary::after {
  content: '\2212';
}

.sp-faq p {
  margin: .6rem 0 0;
  color: var(--sp-text-soft);
  line-height: 1.65;
}

/* ── Prose (the culture / traditions block) ─────────────────────────────── */

.sp-prose {
  color: var(--sp-text-soft);
  line-height: 1.75;
}

.sp-prose p {
  margin: 0 0 1rem;
}

/* ── Skip link ───────────────────────────────────────────────────────────── */

.sp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--sp-teal);
  color: #fff;
  padding: .625rem 1rem;
  border-radius: 0 0 var(--sp-radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}

.sp-skip:focus {
  left: 0;
}

/* ── Floating WhatsApp button ─────────────────────────────────────────────
   Aligned to the right edge of the content column, with the same offset
   the container uses, so it no longer floats in the empty gutter. */

.sp-wa {
  position: fixed;
  right: max(1rem, calc(50vw - 600px));
  bottom: 110px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: .55rem .9rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .35);
  font-size: var(--sp-caption);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.sp-wa img {
  width: 30px;
  height: 30px;
  display: block;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .sp-page {
    --sp-h1: 30px;
    --sp-h2: 24px;
    --sp-h3: 19px;
    --sp-body: 16px;
    --sp-caption: 14px;
    --sp-section-gap: 2.25rem;
  }

  .sp-religion {
    padding: 1rem;
  }

  .sp-trends {
    padding: 1rem 1.125rem;
  }

  /* A chip row is a set of buttons side by side. Each chip is only as
     wide as its own label, and the row wraps onto the next line when
     the chips run out of room. */
  .sp-chip-row {
    flex-direction: row;
    flex-wrap: wrap;
    /* The chips on one line share a height, so their tops line up even
       when one of them carries a longer name. */
    align-items: stretch;
    justify-content: flex-start;
    gap: .3rem;
    overflow-x: visible;
    padding-bottom: 0;
    margin-inline: 0;
    /* The row reaches the edge of the screen, so the chips carry the
       gutter of their own. */
    padding-inline: var(--sp-gutter, 0px);
    scroll-snap-type: none;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .sp-chip-row::-webkit-scrollbar {
    display: none;
  }

  .sp-chip-row li {
    /* Each chip takes the width of its own label, but never more than
       half the row, so two of them always fit side by side. */
    flex: 0 1 auto;
    width: auto;
    max-width: calc(50% - .35rem);
    min-width: 0;
    /* The item fills the height of its line, so a chip with a shorter
       label is as tall as the one beside it and their tops line up. */
    align-items: stretch;
  }

  .sp-chip {
    /* The chip is as wide as the label it carries, and never wider
       than the item it sits in. */
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    /* The chip fills the height of its line, so a shorter label does
       not make it shorter than the one beside it. */
    height: 100%;
    align-items: center;
    scroll-snap-align: start;
    /* A chip is only as wide as the label it carries. */
    white-space: normal;
    text-align: left;
    /* The label takes the room it needs and the count sits right after
       it. */
    justify-content: flex-start;
    gap: 0;
    /* A comfortable tap target on a tablet. */
    min-height: 40px;
    padding: .4rem .8rem;
    /* The chips carry long names ("Hindu Matrimony in Pune"), so they
       are set a little tighter. */
    font-size: .75rem;
    /* A longer label wraps inside its own chip, at a word boundary,
       instead of pushing the next one onto a new line. */
    overflow-wrap: break-word;
  }

  /* The count carries its own padding, so the gap in front of it is
     dropped and the number keeps its distance from the border. */
  .sp-chip-count {
    padding: 0 .3rem 0 0;
    flex: 0 0 auto;
  }

  /* The sub-community chips under a community tile are short names, so
     they sit side by side and each one is only as wide as its own text.
     They wrap onto the next line when they run out of room, but they
     never break inside a chip. */
  .sp-tile .sp-chip-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .375rem;
    /* The row is inside a tile, which already has a padding of its own.
       The gutter of the row is dropped, so the chips line up with the
       name and the number above them and the border of the chip is
       never clipped by the edge of the tile. */
    padding-inline: 0;
    margin-inline: 0;
  }

  .sp-tile .sp-chip-row li {
    /* The chip takes the width of its own name. A name longer than half
       the row drops to a line of its own: the item is allowed to grow
       to the full width of the tile, and the chip that is too long for
       one column simply sits on a line by itself. */
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  .sp-tile .sp-chip {
    width: auto;
    min-height: 34px;
    padding: .3rem .7rem;
    font-size: .8125rem;
    /* The chip does not shrink: a name that is too long for the line
       moves to the next line instead of being squeezed. */
    flex: 0 0 auto;
    /* The name wraps inside its own chip when it does not fit on one
       line, so the text never spills out past the border. */
    white-space: normal;
    overflow-wrap: break-word;
    justify-content: flex-start;
    gap: 0;
    padding-right: .7rem;
    /* A short name is never held back by the half-row limit. */
    max-width: 100%;
  }

  .sp-wa {
    right: 1rem;
  }
}

@media (max-width: 560px) {
  /* ── Mobile: a two-column, app-like layout ───────────────────────────────
     On a phone every grid used to fall back to a single column, which
     made the page 37,000px tall. The grids below keep two columns so
     the page stays scannable, and the tap targets stay large enough to
     hit with a thumb. */

  .sp-page {
    --sp-body: 16px;
    --sp-caption: 14px;
    --sp-section-gap: 1.75rem;
    /* The height of the sticky site header, so the jump bar sits below
       it and a jumped-to heading clears both. */
    --sp-site-header-h: 84px;
    /* The gutter the content column is inset by. A bar that scrolls
       sideways is pulled out by this much and given the padding back,
       so it reaches the edge of the screen without any chip running
       past it. */
    --sp-gutter: 16px;
  }

  /* Every grid keeps two columns; only the very tight ones drop to one. */
  .sp-grid--metrics,
  .sp-grid--cards,
  .sp-grid--tiles,
  .sp-grid--tiles-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
  }

  /* The tile grids reach the edge of the screen, so their cards keep a
     small inset of their own and are not flush against the bezel. */
  .sp-grid--tiles,
  .sp-grid--tiles-wide {
    padding-inline: var(--sp-gutter, 0px);
  }

  /* A profile card is not wide enough for two columns: at 146px the
     religion, community and sub-community rows clipped their values.
     The cards therefore run one per row, and the card itself turns
     sideways, the way a profile is presented in a mobile app. */
  .sp-profile-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
      /* The cards keep a comfortable inset from the edge of the screen,
         so the photo is not flush against the bezel. */
      padding-inline: var(--sp-gutter, 0px);
  }

  /* The photo and the details share the card equally. The photo is a
     column of its own, so it never sits over the content and never
     covers the button. */
  .sp-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    /* The card itself is the row: the photo is a fixed block on the
       left and the details take the rest of the width. */
    padding: 0;
  }

  .sp-profile-media {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 148px;
    max-height: none;
    aspect-ratio: auto;
    border-right: 1px solid var(--sp-border);
  }

  .sp-profile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* The lock label sits in the middle of the photo block. */
  .sp-profile-lock span {
    font-size: .625rem;
    padding: .3rem .55rem;
    /* The label stays on one line, so it does not break over the photo
       and cover more of it than it needs to. */
    white-space: nowrap;
  }

  .sp-profile-body {
    min-width: 0;
    min-height: 0;
    padding: .625rem .75rem;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
    /* The details column is its own grid cell, so the photo never
       overlaps it. */
    display: flex;
    flex-direction: column;
  }

  /* The name and the age sit on one line in the sideways card. */
  .sp-page .sp-profile-name {
    margin: 0;
    text-align: left;
    font-size: 1rem;
  }

  .sp-page .sp-profile-meta {
    min-height: 0;
    justify-content: flex-start;
    text-align: left;
    margin-top: .05rem;
  }

  /* The key and the value sit on one line, so a long community name
     wraps under the value instead of squeezing the row. The cards run
     one per row on a phone, so they do not have to match in height. */
  .sp-page .sp-profile-tags {
    min-height: 0;
    margin-top: .45rem;
    width: 100%;
  }

  .sp-profile-tag {
    min-height: 0;
    padding: .14rem 0;
    gap: .4rem;
  }

  .sp-profile-tag-value {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    /* A long community name wraps inside its own row, so it is never
       cut off. */
    overflow-wrap: anywhere;
  }

  /* The key is a fixed column, so the value always starts at the same
     place and the three rows line up under each other. */
  .sp-profile-tag-key {
    flex: 0 0 4.75rem;
    font-size: .625rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--sp-muted);
    line-height: 1.2;
  }

  .sp-profile-tag-key,
  .sp-profile-tag-value {
    font-size: .8125rem;
  }

  .sp-profile-tag-key {
    /* The key takes the width it needs and the value gets the rest,
       so the two sit on one line as long as the card allows. */
    flex: 0 0 auto;
  }

  .sp-profile-tag-value {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
  }

  /* The button is sized to its own label, so it reads as a link into
     the profile rather than as a second block of the card. */
  .sp-profile-cta {
    margin-top: .5rem;
    width: auto;
    align-self: flex-start;
    min-height: 34px;
    padding: .35rem .85rem;
    font-size: .8125rem;
    border-radius: 999px;
  }

  /* Below 420px the details column is narrow, so the key column is a
     little shorter and the value keeps the rest of the line. */
  @media (max-width: 420px) {
    .sp-profile-tag {
      display: flex;
      gap: .35rem;
    }

    .sp-profile-tag-key {
      flex: 0 0 4.25rem;
      font-size: .625rem;
    }

    .sp-profile-tag-value {
      display: block;
      flex: 1 1 auto;
      text-align: right;
      font-size: .8125rem;
      overflow-wrap: anywhere;
    }

    /* On the narrowest phones the photo is a little smaller, so the
       details keep enough room to breathe. */
    .sp-profile-media {
      min-height: 132px;
    }

    .sp-profile-body {
      padding: .5rem .5rem;
    }

    /* The details column is narrow here, so the key is given a
       narrower fixed column and the value gets the rest of the line. */
    .sp-profile-tag-key {
      flex: 0 0 3.5rem;
      font-size: .5625rem;
      letter-spacing: .02em;
    }

    .sp-profile-tag {
      gap: .3rem;
    }
  }

  /* At the narrowest width the value column is too narrow for a
     community name, so the value sits under its key instead of being
     squeezed into a handful of pixels. */
  @media (max-width: 340px) {
    .sp-profile-tag {
      display: block;
      padding: .2rem 0;
    }

    .sp-profile-tag-key {
      display: block;
      flex: none;
      width: auto;
      font-size: .5625rem;
      line-height: 1.3;
      margin-bottom: .05rem;
    }

    .sp-profile-tag-value {
      display: block;
      width: auto;
      text-align: left;
      font-size: .8125rem;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    /* The photo gives up a little more room to the details. */
    .sp-profile-media {
      min-height: 120px;
    }
  }

  /* The article grid is a list of long excerpts, so it stays one
     column and reads like a feed. */
  .sp-articles,
  .sp-article-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: var(--sp-gutter, 0px);
  }

  /* The comparison table becomes a set of cards: a wide table has to be
     scrolled sideways, which is awkward on a phone. */
  .sp-table-wrap {
    overflow-x: visible;
    padding-inline: var(--sp-gutter, 0px);
  }

  .sp-table {
    display: block;
    width: 100%;
  }

  .sp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .sp-table tbody,
  .sp-table tr,
  .sp-table td {
    display: block;
  }

  .sp-table tbody,
  .sp-table tr {
    /* The table is no longer a table, so each part is sized on its
       own. Without this the row collapses to the width of its own
       content. */
    width: 100%;
  }

  .sp-table td {
    width: 100%;
  }

  .sp-table tr {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    margin-bottom: .625rem;
    padding: .25rem .75rem;
    box-shadow: var(--sp-shadow);
  }

  .sp-table td {
    border: 0;
    padding: .45rem 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
  }

  /* The first cell of a row is its heading, so it keeps the left edge
     and reads as the title of the card. */
  .sp-table td:first-child {
    text-align: left;
    font-weight: 700;
    color: var(--sp-text);
    flex: 1 1 auto;
  }

  /* The cell label comes from the header, which is now hidden, so it is
     repeated as a data attribute on the cell. */
  .sp-table td:not(:first-child)::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: var(--sp-caption);
    font-weight: 600;
    color: var(--sp-muted);
    text-align: left;
  }

  /* ── Tap targets ─────────────────────────────────────────────────────────
     Everything a finger reaches for is at least 44px tall, the size the
     platform guidelines ask for. */

  .sp-chip {
    min-height: 44px;
    padding: .45rem .55rem;
    /* The chips sit side by side, so they are set a little tighter
       than on a wide screen. */
    font-size: .75rem;
  }

  .sp-trust li {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  /* ── Sections ────────────────────────────────────────────────────────────
     On a phone the content runs edge to edge: the sections and the
     religion blocks lose their horizontal padding, so a card starts at
     the edge of the screen and uses the whole width. Only the vertical
     rhythm is kept. */
  .sp-section {
    padding: 1rem 0;
    /* The section is pulled out to the edge of the screen, so a card
       uses the whole width of the phone. */
    margin-inline: calc(-1 * var(--sp-gutter, 0px));
    margin-top: 1.25rem;
  }

  .sp-religion {
    padding: .75rem 0;
    margin-bottom: .75rem;
  }

  .sp-trends {
    padding: .875rem 0;
    margin-bottom: 1.25rem;
    /* The panel reaches the edge of the screen, so its text carries the
       gutter of its own. */
    margin-inline: calc(-1 * var(--sp-gutter, 0px));
  }

  .sp-trends > h2,
  .sp-trends > .sp-lede,
  .sp-trends > .sp-insight,
  .sp-trends > .sp-grid {
    padding-inline: var(--sp-gutter, 0px);
  }

  /* The section intro is one short sentence on a phone, so it does not
     need a full line of space under it. The selector matches the base
     rule, so it has to be as specific as that one. */
  .sp-page .sp-lede,
  .sp-page .sp-section > .sp-lede {
    margin: 0 0 .75rem;
    font-size: .9375rem;
    line-height: 1.55;
  }

  .sp-section-head {
    margin-bottom: .35rem;
  }

  /* The section reaches the edge of the screen, so the text inside it
     carries the gutter of its own. */
  .sp-section-head,
  .sp-page .sp-lede,
  .sp-page .sp-section > .sp-lede {
    padding-inline: var(--sp-gutter, 0px);
  }

  .sp-section-head h2 {
    margin-bottom: .2rem;
  }

  /* The religion heading sits close to the count beside it. */
  .sp-religion-head {
    margin-bottom: .1rem;
    /* The block reaches the edge of the screen, so the heading carries
       the gutter of its own. */
    padding-inline: var(--sp-gutter, 0px);
  }

  .sp-page .sp-religion-city {
    margin-bottom: .6rem;
    font-size: .875rem;
    padding-inline: var(--sp-gutter, 0px);
  }

  /* The primary button is a full-width tap target, but it does not
     need the desktop height to be usable. */
  .sp-religion-cta {
    margin-top: .75rem;
    padding-inline: var(--sp-gutter, 0px);
  }

  .sp-btn {
    min-height: 44px;
    padding: .6rem .875rem;
    font-size: .875rem;
  }

  /* A chip row sits close under the block it belongs to. */
  .sp-chip-row {
    margin-top: .5rem;
  }

  /* ── Cards ────────────────────────────────────────────────────────────────
     A tile on a phone is a compact list item: the title, the count and
     the chips are one block, not three separate ones. */
  .sp-tile {
    padding: .75rem;
  }

  /* A community tile is a row of two columns on a phone: the symbol
     stands in the first column, and the name and the number sit one
     above the other in the second. The city chips run under both. */
  .sp-grid--tiles-wide .sp-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: .625rem;
    row-gap: .35rem;
  }

  .sp-grid--tiles-wide .sp-tile-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    align-self: center;
  }

  .sp-grid--tiles-wide .sp-tile-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 0;
  }

  .sp-grid--tiles-wide .sp-tile-count {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-bottom: 0;
  }

  /* The chips belong to neither column: they run under the whole tile. */
  .sp-grid--tiles-wide .sp-tile .sp-chip-row {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .sp-page .sp-tile-title {
    margin-bottom: .25rem;
    font-size: .9375rem;
  }

  .sp-page .sp-tile-count {
    margin-bottom: .5rem;
    font-size: .8125rem;
  }

  /* The two rules above carry the spacing of the stacked tile, so the
     grid placement is repeated here with the same weight, to keep the
     name and the number tight against each other. */
  .sp-page .sp-grid--tiles-wide .sp-tile-title {
    margin-bottom: 0;
    /* The fixed slot of the wide tile is not needed here: the name and
       the number share a column, so they are always together. */
    min-height: 0;
  }

  .sp-page .sp-grid--tiles-wide .sp-tile-count {
    margin-bottom: 0;
  }

  .sp-tile-icon {
    width: 36px;
    height: 36px;
    margin-bottom: .4rem;
  }

  /* The metric cards are two to a row, so their labels need the room
     they get; only the vertical padding is trimmed. */
  .sp-card {
    padding: .625rem .75rem;
  }

  .sp-page .sp-metric-label {
    font-size: .6875rem;
    line-height: 1.3;
  }

  .sp-page .sp-metric-value {
    font-size: 1.25rem;
    margin: .15rem 0 .1rem;
  }

  .sp-page .sp-metric-caption {
    font-size: .6875rem;
    line-height: 1.3;
  }

  .sp-page .sp-insight {
    margin-top: .75rem;
    font-size: .875rem;
    line-height: 1.6;
  }

  /* The article cards are one per row, so they get their padding back. */
  .sp-article {
    padding: .875rem;
  }

  .sp-article h3 {
    margin-bottom: .3rem;
    font-size: 1rem;
  }

  .sp-article p {
    margin-bottom: .4rem;
  }

  /* The prose of the traditions block is read on a phone, so it is set
     a little tighter than on a wide screen. */
  .sp-prose {
    font-size: .9375rem;
    line-height: 1.65;
    padding-inline: var(--sp-gutter, 0px);
  }

  .sp-prose p {
    margin-bottom: .75rem;
  }

  /* The FAQ answers are read on a phone, so they are set a little
     tighter than on a wide screen. */
  .sp-faq {
    /* The block reaches the edge of the screen, so the rule under each
       question and the text carry the gutter of their own. */
    padding-inline: var(--sp-gutter, 0px);
  }

  .sp-faq details {
    padding: .6rem 0;
  }

  .sp-faq p {
    margin-top: .4rem;
    line-height: 1.6;
    font-size: .9375rem;
  }

  .sp-religion-head {
    gap: .5rem;
  }

  .sp-religion h3 {
    font-size: 1.125rem;
  }

  /* A tile with its own chips is a compact card on a phone: the symbol
     stands beside the name and the number, and the chips run under
     both, so two of them fit side by side in a row. */
  .sp-grid--tiles-wide .sp-tile {
    grid-column: auto;
  }

  /* The floating WhatsApp button shrinks to an icon, so it stops
     covering the content next to it. */
  .sp-wa {
    right: .75rem;
    bottom: 84px;
    padding: .6rem;
    width: 52px;
    height: 52px;
    justify-content: center;
  }

  .sp-wa span {
    display: none;
  }

  .sp-wa img {
    width: 28px;
    height: 28px;
  }

  /* ── Room for the fixed bars ────────────────────────────────────────────
     The login bar and the WhatsApp button float over the bottom of
     the page. The page keeps that space clear, so the last section can
     always be scrolled out from under them. */
  .sp-page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  /* The question of an FAQ item is the whole row, and the row is a
     comfortable tap target on a phone. */
  .sp-faq summary {
    min-height: 44px;
    padding: .5rem 0;
  }

  /* The trust strip sits a clear step below the intro copy, so the two
     read as separate groups rather than one block of small text. */
  .sp-trust {
    margin: 0 0 1.25rem;
    gap: .5rem;
  }

  .sp-trust li {
    padding: .3rem .7rem;
  }
}

/* ── Print ───────────────────────────────────────────────────────────────── */

@media print {
  .sp-skip,
  .sp-wa {
    display: none;
  }
}
