:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --muted-bg: #f7f8fa;
  --text: #18212f;
  --muted: #5e6878;
  --line: #d9e0e8;
  --line-strong: #c7d0dc;
  --accent: #1f6f64;
  --accent-dark: #124a44;
  --soft-accent: #e9f5f2;
  --warning-bg: #fff8e8;
  --warning-line: #ecd69b;
  --shadow: 0 14px 35px rgba(22, 33, 48, 0.07);
  --shadow-soft: 0 8px 22px rgba(22, 33, 48, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(31, 111, 100, 0.28);
  outline-offset: 2px;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 10;
  background: var(--text);
  color: #fff;
  padding: 8px 12px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.02rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 9px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--muted-bg);
  color: var(--accent-dark);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-search input,
.header-search button,
.filter-panel select,
.filter-panel input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.header-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: clamp(170px, 15vw, 230px);
  padding: 8px 10px;
  color: var(--text);
  background: #fff;
}

.header-search button {
  flex: 0 0 auto;
  border-color: var(--text);
  background: var(--text);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.hero,
.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbfa 0%, #ffffff 78%);
}

.hero-inner {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(48px, 8vw, 82px) 0;
}

.page-hero .container {
  padding: clamp(42px, 7vw, 68px) 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

h3 a {
  color: var(--text);
  text-decoration: none;
}

h3 a:hover,
h3 a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

.hero-copy,
.page-hero p,
.section-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button-secondary {
  background: #fff;
  color: var(--accent-dark);
}

.button:hover,
.button:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-secondary:hover,
.button-secondary:focus {
  background: var(--soft-accent);
  color: var(--accent-dark);
}

.affiliate-action {
  display: grid;
  gap: 8px;
  align-items: start;
}

.affiliate-note {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel,
.card,
.notice,
.search-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: clamp(22px, 4vw, 32px);
  border-color: var(--line-strong);
}

.hero-panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.notice {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 18px 20px;
  color: #293747;
  background: var(--soft-accent);
  border-left: 4px solid var(--accent);
  box-shadow: none;
}

.notice strong {
  color: var(--text);
}

.setup-notice,
.info-box {
  background: var(--soft-accent);
  border-left-color: var(--accent);
}

.warning-box {
  background: var(--warning-bg);
  border-color: var(--warning-line);
  border-left-color: var(--warning-line);
}

.section {
  padding: clamp(44px, 7vw, 72px) 0;
}

.section-muted {
  background: var(--muted-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 26px;
}

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

.card {
  min-width: 0;
  padding: 22px;
  box-shadow: none;
  overflow-wrap: break-word;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.card:hover,
.card:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.platform-grid,
.tool-grid {
  align-items: stretch;
}

.platform-card,
.tool-card,
.page-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.platform-card p,
.tool-card p,
.page-card p {
  margin: 0;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.card-meta span,
.muted-pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  background: #fff;
  font-size: 0.84rem;
  line-height: 1.2;
  max-width: 100%;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.platform-card .badge-row,
.tool-card .badge-row {
  margin-top: 0;
}

.page-updated {
  margin-top: 20px;
}

.badge-status-published,
.badge-adult-yes {
  border-color: #b8ddcf;
  background: #eef8f3;
  color: #135641;
}

.badge-adult-no {
  border-color: #d7dde7;
  background: #f5f7fa;
  color: #425066;
}

.badge-adult-restricted,
.badge-adult-check,
.badge-adult-unclear {
  border-color: #ead8a7;
  background: #fff8e5;
  color: #755a12;
}

.text-link {
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
}

.text-link:hover,
.text-link:focus {
  text-decoration: underline;
}

.prose {
  max-width: 780px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.commercial-link-list {
  align-items: flex-start;
}

.link-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.link-list a:hover,
.link-list a:focus {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent-dark);
}

.link-list .affiliate-action .button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.link-list .affiliate-action .button:hover,
.link-list .affiliate-action .button:focus {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.home-hub-links .link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.home-hub-links .link-list a {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 52px;
  text-align: center;
}

.related-links {
  border-top: 1px solid var(--line);
  background: #fff;
}

.related-links h2 {
  margin-bottom: 16px;
}

.search-panel {
  padding: clamp(18px, 4vw, 28px);
  box-shadow: none;
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.search-row input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.empty-state {
  margin-bottom: 0;
  color: var(--muted);
}

.empty-state-box {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 28px);
  background: #fff;
}

.search-results {
  display: grid;
  gap: 42px;
}

.result-group {
  display: grid;
  gap: 16px;
}

.result-group h3 {
  margin-bottom: 0;
}

.filter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(18px, 4vw, 24px);
  box-shadow: var(--shadow-soft);
}

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

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 700;
}

.filter-grid select,
.filter-grid input {
  width: 100%;
  background: #fff;
  color: var(--text);
  padding: 9px 10px;
}

.filter-wide {
  grid-column: span 2;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 30px auto 0;
  padding: 0 20px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.pagination a:hover,
.pagination a:focus {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.pagination [aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination .pagination-gap {
  color: var(--muted);
  background: transparent;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 32px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 18px;
}

.detail-section,
.sidebar-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(20px, 4vw, 26px);
  min-width: 0;
}

.detail-section h2,
.sidebar-box h2 {
  font-size: 1.35rem;
}

.detail-section p:first-of-type {
  margin-top: 0;
}

.page-body p {
  color: var(--muted);
  max-width: 78ch;
}

.hub-children > p {
  color: var(--muted);
}

.faq-section h2 {
  margin-bottom: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--muted);
  max-width: 82ch;
}

.page-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.comparison-summary > p {
  color: var(--muted);
  max-width: 78ch;
}

.comparison-entity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.comparison-entity-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--muted-bg);
  padding: 18px;
  min-width: 0;
}

.comparison-entity-card h3 {
  margin-bottom: 8px;
}

.comparison-entity-card p {
  color: var(--muted);
}

.comparison-entity-card .button {
  margin-top: 12px;
}

.comparison-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.comparison-table .comparison-actions {
  min-width: 220px;
  margin-top: 0;
}

.comparison-cta {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.comparison-alt-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-weight: 700;
}

.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-table {
  border: 0;
  min-width: 720px;
}

.comparison-table th:first-child {
  width: 170px;
}

.comparison-table tbody th {
  background: #fff;
  color: var(--text);
}

.comparison-table td {
  overflow-wrap: anywhere;
}

.alternatives-table {
  min-width: 980px;
}

.alternative-list {
  display: grid;
  gap: 16px;
}

.alternative-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.alternative-rank {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 700;
  background: var(--soft);
}

.compact-facts {
  margin-top: 14px;
}

.fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  min-width: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-row {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  min-width: 0;
}

.fact-row-warning dd {
  color: #755a12;
}

.fact-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.fact-row dt {
  color: var(--text);
  font-weight: 800;
}

.fact-row dd {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.95rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--muted-bg);
  color: var(--text);
  font-weight: 800;
}

td {
  color: var(--muted);
}

.muted-text,
.sidebar-box li {
  color: var(--muted);
}

.check-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.check-list li + li {
  margin-top: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 12px;
}

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

.footer-disclaimer {
  border-top: 1px solid var(--line);
  padding: 0 0 24px;
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f9fafc;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 42px 0 24px;
}

.footer-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.footer-grid strong {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 0.94rem;
}

@media (max-width: 820px) {
  .header-inner {
    min-height: auto;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 4;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .header-search button {
    flex: 0 0 auto;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0;
  }

  .card-grid,
  .footer-grid,
  .filter-grid,
  .detail-layout,
  .support-grid,
  .page-card-grid,
  .comparison-entity-grid {
    grid-template-columns: 1fr;
  }

  .search-row {
    flex-direction: column;
  }

  .search-row .button,
  .filter-actions .button,
  .filter-actions .button-secondary,
  .hero-actions .button {
    width: 100%;
  }

  .filter-wide {
    grid-column: span 1;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .brand {
    max-width: calc(100% - 92px);
    white-space: normal;
    line-height: 1.25;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .page-hero .container {
    padding: 36px 0;
  }

  .section {
    padding: 38px 0;
  }

  .card,
  .detail-section,
  .sidebar-box,
  .filter-panel,
  .empty-state-box {
    padding: 18px;
  }

  .card-meta span,
  .muted-pill,
  .badge {
    width: fit-content;
  }

  .link-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .link-list a {
    width: 100%;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .comparison-table {
    display: table;
    white-space: normal;
  }

  th,
  td {
    min-width: 160px;
  }
}

/* Let text use the available width inside existing containers. */
h1,
.hero-copy,
.page-hero p,
.section-heading p,
.affiliate-note,
.prose,
.page-body p,
.faq-item p,
.comparison-summary > p {
  max-width: none;
  text-align: left;
}

.home-hub-links .link-list a {
  justify-content: flex-start;
  text-align: left;
}

/* Calmer title scale with one heading font. */
h1,
h2,
h3,
.brand,
.eyebrow,
.detail-section h2,
.sidebar-box h2,
.faq-section h2,
.faq-item h3,
.result-group h3,
.comparison-entity-card h3 {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
}

h2,
.detail-section h2,
.sidebar-box h2,
.faq-section h2,
.related-links h2 {
  font-size: clamp(1.45rem, 2vw, 1.75rem);
}

h3,
.faq-item h3,
.result-group h3,
.comparison-entity-card h3 {
  font-size: 1.15rem;
}
