:root {
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --soft-shadow: 0 2px 10px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shell-max: 1180px;
  --shell-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  --content-pad-x: 1.75rem; /* desktop: squeeze content inside the shell */
}

/* Borderless panel that reads through its shadow alone (footer menu, group description). */
.soft-box {
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

body {
  font-family: var(--font-sans);
  background: #f1f5f9;
}

/* ===== WIDE DESKTOP SHELL (jamnagar-style) =====
   Mobile keeps the original full-bleed phone layout.
   Desktop (md+) gets the centered wide card. */
.page-wrap {
  min-height: 100vh;
  padding: 0;
}
.app-shell {
  max-width: 28rem; /* same as previous max-w-md on phones */
  margin-left: auto;
  margin-right: auto;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}
@media (min-width: 768px) {
  body {
    background: #e8edf3;
  }
  .page-wrap {
    padding: 14px 16px 16px;
  }
  .app-shell {
    max-width: var(--shell-max);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shell-shadow);
    overflow: hidden; /* clips util-bar so TOP corners curve like the bottom */
  }

  /* Squeeze page content from both sides — shell width stays wide */
  .app-shell > main {
    padding-left: var(--content-pad-x);
    padding-right: var(--content-pad-x);
  }
  /* Keep page top/bottom padding; horizontal inset comes from main */
  .app-shell > main > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .site-header {
    padding-left: var(--content-pad-x) !important;
    padding-right: var(--content-pad-x) !important;
  }
  .top-nav {
    padding-left: calc(var(--content-pad-x) - 0.35rem);
    padding-right: calc(var(--content-pad-x) - 0.35rem);
  }
  .util-bar {
    padding-left: var(--content-pad-x);
    padding-right: var(--content-pad-x);
  }
  .site-footer {
    padding-left: var(--content-pad-x) !important;
    padding-right: var(--content-pad-x) !important;
  }
}

/* Top utility strip — desktop only */
.util-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 28px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 12px;
}
@media (min-width: 768px) {
  .util-bar {
    display: flex;
  }
}
.util-bar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.util-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.util-pill i {
  font-size: 6px;
}
.util-bar__count {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.util-bar__links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.util-bar__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.15s ease;
}
.util-bar__links a i {
  font-size: 11px;
}
.util-bar__links a:hover,
.util-bar__links a.active {
  color: #fff;
}

/* Horizontal primary nav — desktop only (phones use bottom tab bar) */
.top-nav {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
  background: #0f172a;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.top-nav::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .top-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .top-nav a {
    flex: 1 1 0;
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
  }
}
.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.top-nav a i {
  font-size: 14px;
  color: var(--icon-color, #64748b);
}
.top-nav a:hover {
  color: #fff;
}
.top-nav a.active {
  color: #fff;
  border-bottom-color: #10b981;
  font-weight: 700;
}
.top-nav a.active i {
  color: #10b981;
}

/* Sticky bottom tab bar — mobile only */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 28rem;
  margin: 0 auto;
  padding: 10px 8px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.font-display {
  font-family: var(--font-display);
}

/* ===== GLOBAL HEADER =====
   Four functional areas on desktop; search moves to its own row on phones. */
.site-header {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 12px;
}
@media (min-width: 768px) {
  .site-header {
    gap: 20px;
    grid-template-columns: auto minmax(140px, 1fr) auto;
  }
  .site-header__search {
    max-width: 18rem; /* ~40% narrower than a full middle column */
    width: 100%;
    justify-self: center;
  }
  .site-header__search input {
    height: 44px;
  }
  .header-btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }
}
.site-header__brand {
  min-width: 0;
}
.site-header__search {
  position: relative;
  min-width: 0;
}
.site-header__search i {
  position: absolute;
  top: 50%;
  left: 12px;
  color: #059669;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 13px;
}
.site-header__search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: var(--card-shadow);
}
.site-header__search input:focus {
  border-color: #10b981;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.header-btn--ghost {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  box-shadow: var(--card-shadow);
}
.header-btn--ghost i {
  color: #8b5cf6;
}
.header-btn--ghost:hover {
  border-color: #c4b5fd;
  color: #0f172a;
}
@media (max-width: 639px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 8px;
  }
  .site-header__search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .site-header__actions {
    gap: 6px;
  }
  .header-btn {
    min-height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }
  .header-btn i {
    display: none;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.15s ease;
}

/* Each link sets its own --icon-color inline so the bar reads as a colour set. */
.nav-item i {
  font-size: 16px;
  color: var(--icon-color, currentColor);
}

.nav-item:hover {
  color: #0f172a;
}

.nav-item.active {
  font-weight: 600;
}

/* Current page is marked with the theme gradient running across icon and label.
   The gradient lives on the link; descendants show it through a transparent fill. */
.nav-item.active,
.footer-menu a.active {
  background-image: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nav-item.active i,
.footer-menu a.active i {
  color: inherit;
  -webkit-text-fill-color: transparent;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fade-up 0.45s ease-out both;
}

@keyframes countdown-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.animate-countdown {
  animation: countdown-pulse 1s ease-in-out infinite;
}

.prose-blog h2 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  padding-top: 0.5rem;
}
.prose-blog p,
.prose-blog li {
  font-size: 0.75rem;
  line-height: 1.625;
  color: #475569;
}
.prose-blog ul,
.prose-blog ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}
.prose-blog ul { list-style: disc; }
.prose-blog ol { list-style: decimal; }
.prose-blog strong { color: #1e293b; }

/* ===== READABILITY: bigger fonts sitewide ===== */
body { font-size: 16px; }

.text-\[10px\] { font-size: 12px !important; line-height: 1.5 !important; }
.text-\[11px\] { font-size: 13px !important; line-height: 1.55 !important; }
.text-xs      { font-size: 14px !important; line-height: 1.6 !important; }
.text-sm      { font-size: 16px !important; line-height: 1.6 !important; }
.text-base    { font-size: 18px !important; line-height: 1.5 !important; }
.text-lg      { font-size: 21px !important; line-height: 1.4 !important; }
.text-xl      { font-size: 24px !important; line-height: 1.35 !important; }

.nav-item { font-size: 12px; }
.nav-item i { font-size: 18px; }
/* Beats the blanket `button { font-size: 15px !important }` rule below. */
button.nav-item { font-size: 12px !important; }

.prose-blog h2 { font-size: 1.15rem; }
.prose-blog h3,
.prose-blog h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #0f172a;
  padding-top: 0.35rem;
}
.prose-blog h3 { font-size: 1.02rem; }
.prose-blog h4 { font-size: 0.95rem; }
.prose-blog p,
.prose-blog li { font-size: 0.95rem; line-height: 1.75; }
.prose-blog li { margin-bottom: 0.35rem; }
.prose-blog a { color: #059669; text-decoration: underline; }
.prose-blog blockquote {
  margin: 0.85rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #10b981;
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
  color: #334155;
  font-style: italic;
}
.prose-blog blockquote p { margin: 0; color: #334155; }
.prose-blog .table-wrap {
  overflow-x: auto;
  margin: 0.85rem 0;
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
  background: #fff;
}
.prose-blog table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.prose-blog th,
.prose-blog td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  vertical-align: top;
}
.prose-blog th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.prose-blog .blog-figure {
  margin: 0.75rem 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.prose-blog .blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* Lead image: left column; heading + first paras wrap beside it (legal-trust fit) */
.prose-blog .blog-figure--lead {
  float: left;
  clear: left;
  width: min(44%, 19.5rem);
  max-width: 19.5rem;
  margin: 0.1rem 1.25rem 0.65rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.prose-blog .blog-figure--lead img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.prose-blog::after {
  content: "";
  display: table;
  clear: both;
}
.prose-blog > .blog-figure--lead + h2,
.prose-blog > .blog-figure--lead + h3,
.prose-blog > .blog-figure--lead + p {
  margin-top: 0 !important;
}
/* Clear only major blocks — allow first paragraphs (and short lists) to wrap beside the image */
.prose-blog > .blog-figure--lead ~ h2 ~ h2,
.prose-blog > .blog-figure--lead ~ .table-wrap,
.prose-blog > .blog-figure--lead ~ .blog-split,
.prose-blog > .blog-figure--lead ~ blockquote,
.prose-blog > .blog-figure:not(.blog-figure--lead) {
  clear: both;
}
.prose-blog--article > * + * {
  margin-top: 0.85rem;
}
.prose-blog--article > .blog-figure--lead + * {
  margin-top: 0;
}
@media (max-width: 639px) {
  .prose-blog .blog-figure--lead {
    float: none;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto 1rem;
  }
}

/* Two panels side-by-side (links | checklist) to fill blank horizontal space */
.blog-split {
  display: grid;
  gap: 12px;
  clear: both;
  margin: 0.85rem 0 1rem;
}
@media (min-width: 720px) {
  .blog-split {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }
}
.blog-split__panel {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}
.blog-split__panel h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  padding-top: 0;
}
.blog-split__panel ul,
.blog-split__panel ol {
  margin: 0;
  padding-left: 1.15rem;
}
.blog-split__panel li {
  margin-bottom: 0.35rem;
}

/* Blog archive: square fill, no grey letterbox bars */
.blog-archive-item {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  box-shadow: var(--soft-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.blog-archive-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.06);
}
.blog-archive-thumb {
  position: relative;
  width: 6.75rem;
  flex: 0 0 6.75rem;
  aspect-ratio: 1 / 1;
  height: auto;
  align-self: center;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #fff;
}
.blog-archive-thumb__img,
.blog-archive-thumb > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.blog-archive-thumb > .tile-soft {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .blog-archive-thumb {
    width: 8rem;
    flex-basis: 8rem;
  }
}

input, select, textarea, button { font-size: 15px !important; }

/* ===== SITE FOOTER (dark like header menus) ===== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
}
.site-footer__copy {
  margin: 0;
  color: #64748b;
}

/* ===== FOOTER SAFETY NOTICES ===== */
.footer-notices {
  display: grid;
  gap: 12px;
}
.footer-notice {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #1e293b;
  box-shadow: none;
}
.footer-notice__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
}
.footer-notice__title i {
  flex-shrink: 0;
  font-size: 15px;
}
.footer-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #94a3b8;
}
.footer-notice p strong {
  font-weight: 700;
  color: #f8fafc;
}
.footer-notice--warn .footer-notice__title i { color: #fbbf24; }
.footer-notice--danger .footer-notice__title i { color: #fb7185; }

@media (min-width: 768px) {
  .footer-notices {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
  }
  .footer-notice {
    padding: 12px 14px;
  }
  .footer-notice p {
    font-size: 12px;
    line-height: 1.5;
  }
  .site-footer {
    padding-top: 1rem;
    padding-bottom: 0.85rem;
  }
}

/* ===== EXPLORE CATEGORY CARDS (desktop denser) ===== */
@media (min-width: 768px) {
  .explore-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .explore-grid > a {
    padding: 0.7rem 0.55rem !important;
  }
  .explore-grid .tile-accent {
    width: 2.15rem !important;
    height: 2.15rem !important;
    margin-bottom: 0.45rem !important;
    border-radius: 0.7rem !important;
    font-size: 0.85rem !important;
  }
  .explore-grid h2 {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
  }
  .explore-grid .pill-accent {
    margin-top: 0.35rem !important;
    padding: 0.1rem 0.45rem !important;
    font-size: 10px !important;
  }
}

/* ===== FOOTER MENU =====
   Dark panel matching util-bar / top-nav. */
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: none;
}
.footer-menu a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  transition: color 0.15s ease;
}
.footer-menu a i {
  font-size: 14px;
  color: var(--icon-color, #94a3b8);
}
.footer-menu a:hover {
  color: #fff;
}
.footer-menu a.active {
  font-weight: 600;
  color: #fff;
}

/* ===== SOFT SHADOW ON EVERY CARD-LIKE BOX =====
   :where() keeps specificity at 0 so Tailwind shadow utilities still win. */
:where(.app-shell .rounded-2xl.border-slate-200, .app-shell .rounded-xl.border-slate-200) {
  box-shadow: var(--card-shadow);
}

/* ===== ACCENT SYSTEM =====
   The look from the Explore category cards, reusable anywhere. Each card sets
   its own palette through inline --accent-* variables (see accent_vars() in
   includes/functions.php); these defaults keep things sane if none are set. */
:root {
  --accent-from: #10b981;
  --accent-to: #2dd4bf;
  --accent-edge: #6ee7b7;
  --accent-soft-bg: #ecfdf5;
  --accent-soft-fg: #047857;
  --accent-glow: rgba(16, 185, 129, 0.45);
  --accent-text: #059669;
}

/* Lift + coloured border + coloured shadow on hover. */
.hover-accent {
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.hover-accent:hover,
.hover-accent:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-edge);
  box-shadow: 0 14px 26px -14px var(--accent-glow), 0 4px 10px rgba(15, 23, 42, 0.07);
}

/* Adds the soft gradient bloom in the top-right corner. Pair with .hover-accent. */
.card-accent {
  position: relative;
  overflow: hidden;
}
.card-accent::after {
  content: "";
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  filter: blur(26px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card-accent:hover::after,
.card-accent:focus-visible::after {
  opacity: 0.22;
}
.card-accent > * {
  position: relative;
  z-index: 1;
}

/* Gradient icon tile — for Font Awesome glyphs, which sit on the gradient in white. */
.tile-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  box-shadow: 0 8px 18px -6px var(--accent-glow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
/* Tinted tile — for emoji covers, which need a light background to stay legible. */
.tile-soft {
  color: var(--accent-text);
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-edge);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.hover-accent:hover .tile-accent,
.hover-accent:hover .tile-soft {
  transform: scale(1.06);
  box-shadow: 0 12px 22px -6px var(--accent-glow);
}

.pill-accent {
  background: var(--accent-soft-bg);
  color: var(--accent-soft-fg);
}
.pill-accent-outline {
  background: var(--accent-soft-bg);
  color: var(--accent-soft-fg);
  border: 1px solid var(--accent-edge);
}
.text-accent {
  color: var(--accent-text);
}

.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  box-shadow: 0 10px 20px -8px var(--accent-glow);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-accent:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px var(--accent-glow);
}
.btn-accent:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hover-accent,
  .tile-accent,
  .tile-soft,
  .btn-accent {
    transition: none;
  }
  .hover-accent:hover,
  .btn-accent:hover,
  .hover-accent:hover .tile-accent,
  .hover-accent:hover .tile-soft {
    transform: none;
  }
}

/* ===== CATEGORY CHIP ROWS =====
   Four per row on desktop, two on mobile. Any partial last row is centred,
   so adding a category always looks deliberate. */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chip-row > * {
  flex: 0 0 auto;
  width: calc(50% - 5px);
  border: none;
}
@media (min-width: 768px) {
  .chip-row > * {
    width: 22%;
  }
}

/* Platform browse cards — compact icons on mobile, roomier on desktop */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) {
  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (min-width: 1024px) {
  .platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (min-width: 1180px) {
  .platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.platform-card {
  border: 1px solid #e2e8f0;
  box-shadow: var(--soft-shadow);
  min-height: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.platform-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.06);
}
/* Mobile: category-chip sized icons so full names fit */
.platform-card .platform-card-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
}
.platform-card-name {
  overflow: visible;
  white-space: normal;
  word-break: break-word;
}
.platform-card-chevron {
  display: none;
}
@media (min-width: 640px) {
  .platform-card {
    min-height: 64px;
  }
  .platform-card .platform-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    font-size: 1.05rem;
  }
  .platform-card-chevron {
    display: inline-block;
  }
}

/* FAQ: hide default marker across browsers */
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item .faq-chevron { transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

/* Contact name|mobile: keep 2-col even on small phones */
@media (max-width: 340px) {
  .contact-name-phone {
    gap: 0.375rem;
  }
  .contact-name-phone input {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ===== VERIFIED MEDALLION =====
   Sized in em so it scales with the heading it sits in. The drop shadow is what
   lifts the gold rim off the page and reads as 3D. */
.verified-badge {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.28em;
}

/* ===== INLINE CAPTCHA =====
   Challenge and answer share one line so the check reads left to right. */
.captcha-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.captcha-challenge {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  background-image: repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.09) 0 6px, transparent 6px 12px);
  font-family: var(--font-display), ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0f172a;
  white-space: nowrap;
  user-select: none;
}
.captcha-challenge-img {
  flex: 0 0 auto;
  width: auto;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}
.captcha-answer {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.captcha-answer:focus {
  outline: none;
  border-color: #10b981;
}
.captcha-answer::placeholder {
  letter-spacing: normal;
  text-transform: none;
}

/* ===== RADIO CARDS (platform / category pickers) ===== */
.opt-card {
  position: relative;
  display: block;
  cursor: pointer;
}
.opt-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.opt-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  padding: 10px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.opt-card-body--row {
  flex-direction: row;
  gap: 8px;
  padding: 12px 10px;
}
.opt-card:hover .opt-card-body {
  border-color: var(--accent-edge);
  transform: translateY(-1px);
}
.opt-card input:checked + .opt-card-body {
  border-color: var(--accent-edge);
  background: var(--accent-soft-bg);
  color: var(--accent-soft-fg);
  box-shadow: 0 8px 18px -8px var(--accent-glow);
}
.opt-card input:focus-visible + .opt-card-body {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

/* ===== COOKIE CONSENT POPUP ===== */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 72px;
  z-index: 70;
  padding: 0 12px;
  pointer-events: none;
}
@media (min-width: 768px) {
  .cookie-consent {
    bottom: 16px;
  }
}
.cookie-consent[hidden] { display: none !important; }
.cookie-consent__inner {
  pointer-events: auto;
  margin: 0 auto;
  max-width: 56rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
.cookie-consent__copy { flex: 1 1 220px; text-align: left; }
.cookie-consent__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.cookie-consent__title i { color: #d97706; margin-right: 6px; }
.cookie-consent__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}
.cookie-consent__text a {
  color: #059669;
  font-weight: 600;
  text-decoration: underline;
}
.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px !important;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.cookie-consent__btn--primary {
  background: #059669;
  color: #fff;
}
.cookie-consent__btn--primary:hover { background: #047857; }
.cookie-consent__btn--ghost {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}
.cookie-consent__btn--ghost:hover { background: #e2e8f0; }

@media (max-width: 480px) {
  .cookie-consent { bottom: 76px; }
  .cookie-consent__actions { width: 100%; }
  .cookie-consent__btn { flex: 1; }
}

/* ===== SUBMIT FORM: icon dropdowns + URL affix ===== */
.form-row-2 {
  display: grid;
  gap: 12px;
}
@media (min-width: 768px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .form-row-2--top {
    align-items: start;
  }
}

.icon-select {
  position: relative;
}
.icon-select__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
}
.icon-select__btn:hover {
  border-color: #a7f3d0;
  background: #fff;
}
.icon-select__current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.icon-select__current i {
  font-size: 16px;
  width: 1.1em;
  text-align: center;
}
.icon-select__caret {
  font-size: 11px;
  color: #94a3b8;
}
.icon-select__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.icon-select__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.icon-select__list li i {
  width: 1.1em;
  text-align: center;
  font-size: 15px;
}
.icon-select__list li:hover,
.icon-select__list li.is-selected {
  background: #ecfdf5;
  color: #065f46;
}

.invite-affix {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}
.invite-affix:focus-within {
  border-color: #10b981;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.invite-affix__prefix,
.invite-affix__suffix {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0 10px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.invite-affix__prefix {
  max-width: 62%;
}
.invite-affix__input {
  flex: 1 1 0%;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}
.invite-affix__input:focus {
  outline: none;
}

/* ===== DESKTOP DENSITY (less scrolling) ===== */
@media (min-width: 768px) {
  /* Readable pages (legal, about, blog) use nearly the full shell width */
  .content-prose,
  .content-prose--wide {
    max-width: none;
    width: 100%;
  }

  .blog-archive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .blog-archive.space-y-3 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0;
  }

  .groups-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .animate-fade-up.space-y-4 > * + * {
    margin-top: 0.9rem;
  }

  .collapse-block {
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--soft-shadow);
  }
  .collapse-block > summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
  }
  .collapse-block > summary::-webkit-details-marker { display: none; }
  .collapse-block[open] > summary {
    border-bottom: 1px solid #f1f5f9;
  }
  .collapse-block > .collapse-block__body {
    padding: 12px 16px 16px;
  }
}

/* ===== UNIVERSAL SECTION HEADERS + STACK SPACING ===== */
.home-stack > * + * {
  margin-top: 1.5rem;
}
.section-intro {
  text-align: center;
  margin-bottom: 0.9rem;
}
.section-kicker {
  margin: 0 0 0.28rem;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4 !important;
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem !important;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3 !important;
}
.section-copy {
  margin: 0.45rem auto 0;
  max-width: 42rem;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}
@media (min-width: 768px) {
  .home-stack > * + * {
    margin-top: 1.85rem;
  }
  .section-title {
    font-size: 1.45rem !important;
  }
  .section-intro {
    margin-bottom: 1.05rem;
  }
}

/* ===== POPULAR HASHTAG BOX — 8 chips, 2 centered rows ===== */
.hashtag-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  justify-items: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 639px) {
  .hashtag-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.hashtag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.hashtag-mark {
  font-weight: 800;
  margin-right: 1px;
}
.hashtag-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* ===== HYBRID 404 — compact digits + soft platform orbit ===== */
.not-found {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem 1rem 2rem;
  max-width: 58rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .not-found {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    column-gap: 1.5rem;
    row-gap: 1.35rem;
    padding: 1.75rem 1.5rem 2.5rem;
  }
  .not-found__map {
    grid-column: 1 / -1;
  }
}
.not-found__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 14rem;
  max-width: 19rem;
  width: 100%;
  margin: 0.25rem auto 0.5rem;
  isolation: isolate;
}
@media (min-width: 768px) {
  .not-found__stage {
    min-height: 12.5rem;
    max-width: 16.5rem;
    width: auto;
    margin: 0;
  }
}
.not-found__digits {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(4.75rem, 22vw, 6.25rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: #2dd4bf;
  background-image: linear-gradient(
    110deg,
    #5eead4 0%,
    #38bdf8 16%,
    #818cf8 32%,
    #f472b6 48%,
    #fbbf24 64%,
    #34d399 80%,
    #67e8f9 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 24px rgba(56, 189, 248, 0.28));
  animation:
    nf-digit-in 0.7s ease-out both,
    nf-gradient-shift 6.5s ease-in-out infinite;
}
@media (min-width: 768px) {
  .not-found__digits {
    font-size: clamp(3.1rem, 5.5vw, 4.25rem);
  }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .not-found__digits {
    color: #2dd4bf;
    -webkit-text-fill-color: unset;
    background-image: none;
    filter: none;
    text-shadow: 0 12px 40px rgba(45, 212, 191, 0.25);
  }
}
.not-found__orbit {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 4% 6%;
  z-index: 2;
  pointer-events: none;
}
.not-found__planet {
  position: absolute;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  animation: nf-float 5.5s ease-in-out infinite;
  animation-delay: var(--nf-delay, 0s);
}
@media (min-width: 768px) {
  .not-found__planet {
    width: 1.9rem;
    height: 1.9rem;
  }
}
.not-found__planet-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #fff;
  color: var(--nf-color, #059669);
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  font-size: 0.92rem;
}
@media (min-width: 768px) {
  .not-found__planet-inner {
    font-size: 0.85rem;
  }
}
.not-found__planet--0 { top: 4%; left: 46%; }
.not-found__planet--1 { top: 18%; right: 8%; }
.not-found__planet--2 { top: 48%; right: 2%; }
.not-found__planet--3 { bottom: 10%; right: 18%; }
.not-found__planet--4 { bottom: 2%; left: 42%; }
.not-found__planet--5 { bottom: 16%; left: 6%; }
.not-found__planet--6 { top: 42%; left: 0%; }
.not-found__planet--7 { top: 12%; left: 12%; }
.not-found__copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.not-found__kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #059669;
}
.not-found__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}
.not-found__lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
  max-width: 36rem;
}
.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}
.not-found__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.not-found__btn:hover {
  transform: translateY(-1px);
}
.not-found__btn--primary {
  color: #fff;
}
.not-found__btn--ghost {
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.not-found__btn--ghost:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.not-found__map {
  margin-top: 0.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid #e2e8f0;
}
.not-found__map-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.not-found__map-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
}
@media (max-width: 479px) {
  .not-found__map-list {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) {
  .not-found__map-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.65rem;
  }
  .not-found__map-list li {
    flex: 0 1 auto;
    min-width: 0;
  }
  .not-found__map-list a {
    font-size: 0.72rem;
    white-space: nowrap;
  }
}
.not-found__map-list a {
  font-size: 0.8rem;
  font-weight: 500;
  color: #0f766e;
  text-decoration: none;
}
.not-found__map-list a:hover {
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .not-found__digits {
    animation: none !important;
    background-position: 40% 50%;
  }
  .not-found__planet {
    animation: none !important;
  }
}
@keyframes nf-digit-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes nf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes nf-gradient-shift {
  0%, 100% { background-position: 0% 45%; }
  50% { background-position: 100% 55%; }
}

