/* GENERATED from src/css/ by scripts/build.mjs — edit the partials, not this file. */
/* ==========================================================================
   Suntic component layer
   Subpage heroes, prose, blog/city cards, FAQ, docs, and footer columns.
   ========================================================================== */

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-block;
  flex: none;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(190, 40, 120, 0.32);
}

.appstore-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
  transition: transform 0.16s ease, filter 0.16s ease;
}
.appstore-badge img {
  height: 50px;
  width: auto;
  display: block;
}
.appstore-badge:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
}
.appstore-badge:focus-visible {
  outline: 3px solid rgba(132, 88, 240, 0.5);
  outline-offset: 4px;
}

/* Subpage hero */
.subhero {
  position: relative;
  overflow: clip;
  padding-block: 58px 42px;
  background:
    linear-gradient(180deg, #fffaf1 0%, var(--paper) 100%),
    linear-gradient(130deg, rgba(244, 154, 38, 0.13), transparent 46%);
}
.subhero > .wrap {
  position: relative;
  z-index: 1;
}
.subhero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.subhero h1 {
  font-size: 54px;
  line-height: 1.06;
  margin-top: 16px;
}
.subhero .lead {
  margin-top: 16px;
}
.subhero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
/* Quiet reassurance text sitting inline beside a hero CTA button. */
.subhero-note { font-size: 14px; color: var(--muted); }
.subhero-media {
  display: grid;
  place-items: center;
}

/* Modern iPhone canvas — true-black titanium frame, thin uniform bezel,
   Dynamic Island, soft floating shadow. Radii are %-based so they scale. */
.device {
  position: relative;
  width: min(288px, 70vw);
  margin-inline: auto;
  aspect-ratio: 720 / 1561;
  background: linear-gradient(145deg, #34343c 0%, #0c0c0f 34%, #050506 100%);
  border-radius: 15.5% / 7.2%;
  padding: 3.3%;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 50px 80px -42px rgba(26, 27, 34, 0.55),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.09);
}
/* Dynamic Island */
.device::before {
  content: "";
  position: absolute;
  top: 2.4%;
  left: 50%;
  transform: translateX(-50%);
  width: 29%;
  height: 3%;
  min-height: 19px;
  background: #050506;
  border-radius: 999px;
  z-index: 2;
}
.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13% / 6%;
  display: block;
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 16px;
}
.crumbs a {
  color: var(--violet-deep);
  font-weight: 700;
}
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: 0.45; }
.crumbs [aria-current="page"] { color: var(--ink-2); }

/* Prose and articles */
.prose h1 {
  font-size: 46px;
  line-height: 1.08;
}
.prose h2 {
  font-size: 31px;
  line-height: 1.14;
  margin-top: 46px;
}
.prose h3 {
  font-size: 21px;
  margin-top: 30px;
}
.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.72;
}
.prose > p:first-of-type {
  font-size: 19px;
  color: var(--ink);
  line-height: 1.6;
}
.prose p { margin: 16px 0; }
.prose ul,
.prose ol {
  margin: 18px 0;
  padding-left: 24px;
}
.prose li { margin: 9px 0; }
.prose strong {
  color: var(--ink);
  font-weight: 750;
}
.prose a {
  color: var(--violet-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(50, 22, 95, 0.28);
  text-underline-offset: 2px;
}
.prose a:hover { text-decoration-color: var(--violet-deep); }
.prose .feature-list { padding-left: 0; }
.prose .feature-list li { color: var(--ink-2); }

.post-meta {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-top: 12px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 22px 0;
}
.steps li {
  position: relative;
  padding-left: 46px;
  margin: 0;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}
/* Number badges cycle the UV-spectrum accents (green → amber → orange → violet). */
.steps li:nth-child(4n + 1)::before { background: rgba(79, 168, 106, 0.14); color: #3f8a57; }
.steps li:nth-child(4n + 2)::before { background: rgba(232, 185, 49, 0.18); color: #9a7110; }
.steps li:nth-child(4n + 3)::before { background: rgba(238, 154, 58, 0.16); color: #b55b00; }
.steps li:nth-child(4n)::before     { background: rgba(132, 88, 240, 0.14); color: #5b35c4; }

.note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px;
  margin: 26px 0;
  box-shadow: 0 18px 40px -30px rgba(26, 27, 34, 0.4);
}
.note-ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: rgba(232, 185, 49, 0.16); /* amber chip — callouts */
  color: #c99a1e; /* amber icon (currentColor) */
}
.note--shield .note-ic { background: rgba(132, 88, 240, 0.14); color: var(--violet); } /* violet chip — disclaimer */
.note p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

.link-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}
.link-list li {
  border-bottom: 1px solid var(--line);
}
.link-list li:first-child {
  border-top: 1px solid var(--line);
}
.link-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 650;
  font-size: 16px;
  padding: 15px 4px;
  transition: color 0.15s ease, padding 0.15s ease;
}
.link-list a::before {
  content: "->";
  font-family: var(--font-mono);
  color: var(--violet-deep);
  transition: transform 0.15s ease;
}
.link-list a:hover {
  color: var(--violet-deep);
  padding-left: 10px;
}
.link-list a:hover::before {
  transform: translateX(2px);
}
.prose .link-list { margin-top: 14px; }

/* Key takeaways — the front-loaded, self-contained answer box (GEO citability).
   Sits high in the article so the core facts land in the first 30% of the page. */
.key-takeaways {
  background: var(--lavender);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px 24px;
  margin: 28px 0;
}
.key-takeaways__h {
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--label);
  margin: 0 0 12px !important;
  font-weight: 700;
}
.prose .key-takeaways ul {
  margin: 0;
  padding-left: 22px;
  list-style: none;
}
.prose .key-takeaways li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}
.prose .key-takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--logo-grad, var(--violet));
}

/* Comparison table — AI engines extract tabular facts well. */
.prose-table {
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.prose-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.prose-table th,
.prose-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.5;
  vertical-align: top;
}
.prose-table thead th {
  background: var(--lavender);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prose-table tbody tr:last-child td { border-bottom: 0; }
.prose-table td:first-child { color: var(--ink); font-weight: 650; }

/* UV scale table */
.uv-scale-block { margin: 26px 0; }
.uv-scale-block .uv-ruler { margin-bottom: 26px; }
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.uv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 480px;
}
.uv-table th,
.uv-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.uv-table tbody tr:last-child td { border-bottom: 0; }
.uv-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  border-bottom-color: var(--line-2);
  background: var(--paper);
}
.uv-table td { color: var(--ink-2); }
.uv-table tbody strong { color: var(--ink); }
.uv-chip {
  display: inline-block;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}
.src-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 12px;
}

/* UV risk bands as colour-swatch rows (guide prose, from {uvBands} blocks) */
.uv-bands {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}
.uv-band {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.uv-band__sw {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-top: 8px;
}
.prose .uv-band p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}
.uv-band strong { margin-right: 2px; }

/* Trusted sources */
.trusted .sources {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  margin-top: 18px;
}
.trusted .sources li {
  border-bottom: 1px solid var(--line);
}
.trusted .sources li:first-child {
  border-top: 1px solid var(--line);
}
.trusted .sources a {
  display: block;
  color: var(--ink);
  font-weight: 650;
  padding: 14px 4px;
  transition: color 0.15s ease;
}
.trusted .sources a:hover { color: var(--violet-deep); }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.faq-item {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 22px 26px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 26px 24px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 64ch;
}
.faq-a p { margin: 0 0 10px; }
.faq-a a {
  color: var(--violet-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Blog and city cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.post-card .eyebrow {
  font-size: 11px;
  color: var(--muted);
}
.post-card .eyebrow::before { background: var(--line-2); }
.post-card h2 {
  font-size: 21px;
  font-weight: 650;
  margin: 0;
  letter-spacing: 0;
}
.post-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  flex: 1;
  line-height: 1.55;
}
.post-card .read-more {
  font-family: var(--font-mono);
  color: var(--violet-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Audience sub-pages — factor icon cards + 2-up insight band */

/* Big lead paragraph that opens a card section */
.lead-xl {
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink-2);
  max-width: 760px;
  margin: 0 0 clamp(30px, 4vw, 56px);
}
.factors-h {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(24px, 3vw, 36px);
}

/* Icon "factor" cards (what changes UV) */
.factor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.factor-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.factor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.factor-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.factor-ic--green  { background: rgba(79, 168, 106, 0.12); color: #3f8a57; }
.factor-ic--sun    { background: var(--sun-soft);          color: var(--sun-deep); }
.factor-ic--violet { background: var(--violet-soft);       color: var(--violet); }
.factor-ic--rose   { background: rgba(226, 86, 60, 0.12);  color: #c0392b; }
.factor-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.factor-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* 2-up insight cards on the lavender band */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.insight-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(30px, 3.5vw, 44px);
}
.insight-card h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.insight-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}
.insight-card a {
  color: var(--violet-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(50, 22, 95, 0.28);
  text-underline-offset: 2px;
}
.insight-card a:hover { text-decoration-color: var(--violet-deep); }

@media (max-width: 980px) {
  .factor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .factor-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .insight-grid { grid-template-columns: 1fr; }
}
/* Guides hub (/blog/) — "Sun-Safety Guides" index: warm hero with search,
   category filter chips, a featured "Start here" banner and a filterable grid.
   Search + filtering are progressive enhancements (see main.js); without JS the
   page shows the banner + all guides. */

/* ---- hero band ---- */
.guides-hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 34px);
  background: linear-gradient(180deg, #fcf3e6 0%, rgba(244, 242, 253, 0.6) 60%, var(--paper) 100%);
}
@keyframes guidesUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.guides-hero > .wrap { animation: guidesUp 0.7s both; }
.guides-hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.02;
  margin-top: 8px;
}
.guides-hero .lead {
  margin-top: 14px;
  max-width: 620px;
}

/* ---- search field ---- */
.guide-search {
  position: relative;
  max-width: 460px;
  margin-top: clamp(22px, 3vw, 30px);
}
.guide-search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: #9a93a8;
  pointer-events: none;
}
.guide-search__icon svg { width: 100%; height: 100%; }
.guide-search input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 15px 18px 15px 46px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.guide-search input::placeholder { color: #9a93a8; }
.guide-search input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(26, 27, 34, 0.06);
}

/* ---- body / controls ---- */
.guides-body { padding-block: clamp(20px, 3vw, 32px) clamp(64px, 8vw, 104px); }
.guide-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 34px);
}
.guide-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.guide-chips .chip {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.guide-chips .chip:hover { border-color: var(--ink); }
.guide-chips .chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.guide-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* shared read-arrow nudge */
.guide-card__more .arrow,
.guide-featured__cta .arrow { display: inline-block; transition: transform 0.25s ease; }
.guide-card:hover .guide-card__more .arrow,
.guide-featured:hover .guide-featured__cta .arrow { transform: translateX(4px); }

/* ---- featured "Start here" banner ---- */
.guide-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 64px -50px rgba(26, 27, 34, 0.5);
  margin-bottom: clamp(22px, 3vw, 30px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.guide-featured[hidden] { display: none; }
.guide-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 40px 80px -50px rgba(26, 27, 34, 0.6);
}
.guide-featured__body { padding: clamp(30px, 4vw, 52px); }
.guide-featured__body .eyebrow { margin-bottom: 16px; }
.guide-featured__body h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.08;
  margin: 0 0 14px;
}
.guide-featured__body p {
  max-width: 420px;
  margin: 0 0 26px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--ink-2);
}
.guide-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}
.guide-featured__viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 3.5vw, 48px);
  background: linear-gradient(150deg, var(--paper-sink) 0%, var(--paper-violet) 100%);
}
.guide-featured__num {
  font-weight: 800;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.guide-featured__num span { font-size: 0.5em; }
.guide-featured__cap {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--label);
}
.guide-featured__ramp {
  height: 10px;
  border-radius: 999px;
  background: var(--uv-ramp);
}
.guide-featured__ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* ---- grid + cards ---- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 26px 28px 24px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.guide-card[hidden] { display: none; }
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -44px rgba(26, 27, 34, 0.55);
  border-color: rgba(132, 88, 240, 0.35);
}
.guide-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.guide-card__cat {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
/* Category badges — text darkened from the source design to clear WCAG AA on
   the tinted pill (per repo accessibility convention); hues unchanged. */
.cat--basics     { color: #2f7045;            background: rgba(79, 168, 106, 0.14); }
.cat--tanning    { color: var(--sun-deep);    background: rgba(238, 154, 58, 0.16); }
.cat--protection { color: var(--violet-deep); background: rgba(132, 88, 240, 0.12); }
.cat--myths      { color: #b5362a;            background: rgba(226, 86, 60, 0.12); }
.guide-card__read {
  font-size: 12px;
  font-weight: 500;
  color: #9a93a8;
  white-space: nowrap;
}
.guide-card h2 {
  margin: 0 0 11px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.guide-card p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.guide-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-deep);
}

/* ---- empty state ---- */
.guide-empty {
  text-align: center;
  padding: clamp(48px, 7vw, 88px) 0;
}
.guide-empty[hidden] { display: none; }
.guide-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--paper-violet);
  color: var(--violet);
}
.guide-empty__icon svg { width: 24px; height: 24px; }
.guide-empty h2 { margin: 0 0 6px; font-size: 20px; }
.guide-empty p { margin: 0 0 20px; font-size: 15px; color: var(--muted); }

/* ---- responsive (co-located) ---- */
@media (max-width: 720px) {
  .guide-featured { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .guides-hero > .wrap { animation: none; }
  .guide-card__more .arrow,
  .guide-featured__cta .arrow { transition: none; }
}
/* Legal and docs */
.doc {
  max-width: var(--maxw-text);
  margin-inline: auto;
  padding-block: clamp(42px, 7vw, 82px);
}
.doc h1 {
  font-size: 46px;
  line-height: 1.08;
}
.doc h2 {
  font-size: 25px;
  margin-top: 42px;
}
.doc h3 {
  font-size: 19px;
  margin-top: 26px;
}
.doc p,
.doc li {
  color: var(--ink-2);
  line-height: 1.7;
}
.doc a {
  color: var(--violet-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc .updated,
.doc .post-meta {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-top: 8px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--violet-deep);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Footer columns */
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 48px;
  padding-bottom: 40px;
}
.site-footer .footer-brand .brand { font-size: 19px; }
.site-footer .footer-brand p {
  color: var(--muted);
  font-size: 15px;
  max-width: 34ch;
  margin: 14px 0 0;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.social-btn:hover {
  transform: translateY(-2px);
  color: var(--violet-deep);
  border-color: var(--violet);
}
.social-btn svg {
  width: 18px;
  height: 18px;
}
.footer-cols {
  display: grid;
  /* Five fixed columns so all nav groups sit on one row at desktop — auto-fit
     orphaned the 5th group (4+1) on wide screens and staggered at mid widths.
     Collapses to 3 / 2 / 1 at the breakpoints in pages/responsive.css. */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 24px;
}
.fcol h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 14px;
}
.fcol ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}
.fcol a {
  color: var(--ink-2);
  font-weight: 550;
  font-size: 15px;
  transition: color 0.15s ease;
}
.fcol a:hover { color: var(--violet-deep); }
.site-footer .footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  gap: 6px;
}
.site-footer .footer-bottom .copyright {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0;
}
.site-footer .footer-bottom .disclaim {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  /* 5 footer columns get cramped once the links area narrows — step to 3. */
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .subhero-grid {
    grid-template-columns: 1fr;
  }
  .subhero-media { order: -1; }
  .subhero-copy {
    text-align: center;
  }
  .subhero-copy .eyebrow,
  .subhero .hero-cta {
    justify-content: center;
  }
  .subhero .lead {
    margin-inline: auto;
  }
  .post-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .site-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 640px) {
  .appstore-badge img { height: 46px; }
  .subhero {
    padding-block: 38px 28px;
  }
  .subhero h1,
  .prose h1,
  .doc h1 {
    font-size: 36px;
  }
  .prose h2 {
    font-size: 26px;
  }
  .device {
    width: min(244px, 72vw);
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .footer-cols { grid-template-columns: 1fr; }
}
