@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --bg: #f4fbf7;
  --surface: #ffffff;
  --surface-soft: #eef8f2;
  --surface-strong: #e1f4ec;
  --border: #d1e5da;
  --border-strong: #bed7ca;

  --ink: #163127;
  --ink-soft: #466557;
  --ink-faint: #6e8a7d;

  --primary: #0d8d69;
  --primary-dark: #0b6b51;
  --primary-soft: #daf3ea;

  --accent: #ffbf47;
  --accent-soft: #fff3d4;
  --accent-dark: #8b5d00;

  --blue: #1d4ed8;
  --blue-soft: #dbe8ff;
  --purple: #6941c6;
  --purple-soft: #efe7ff;
  --orange: #e67e22;
  --orange-soft: #fff0df;
  --red: #d9485f;
  --red-soft: #ffe4e8;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 10px 24px rgba(12, 64, 46, 0.08);
  --shadow-lg: 0 24px 56px rgba(12, 64, 46, 0.12);
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(13, 141, 105, 0.11), transparent 24rem),
    linear-gradient(180deg, #f9fdfb 0%, var(--bg) 32%, #f7fbf9 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

main {
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.page-shell {
  padding: 0 1.25rem 5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(249, 253, 251, 0.9);
  border-bottom: 1px solid rgba(190, 215, 202, 0.8);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.header-table td {
  vertical-align: middle;
}

.header-table td:last-child {
  text-align: right;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), #42b883);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.main-nav__cta {
  background: var(--ink);
  color: #fff !important;
}

.hero,
.guide-section,
.comparison,
.notice-section,
.detail-grid,
.empty-state {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 0.95fr);
  gap: 1.5rem;
  padding: 4.25rem 0 2.5rem;
}

.hero-copy,
.hero-panel,
.guide-card,
.company-card,
.note-card,
.detail-panel,
.detail-hero,
.table-frame,
.empty-state {
  border: 1px solid rgba(209, 229, 218, 0.92);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.hero-copy {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 246, 238, 0.95)),
    var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hero-copy h1 {
  font-size: 4rem;
  max-width: 10ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 60ch;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #41b885);
  color: #fff;
}

.button-secondary {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--border);
}

.button-full {
  width: 100%;
}

.hero-panel {
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background:
    linear-gradient(160deg, rgba(13, 141, 105, 0.08), rgba(255, 191, 71, 0.12)),
    var(--surface);
}

.hero-panel h2,
.section-heading h2,
.detail-panel h2,
.empty-state h1 {
  font-size: 2.35rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.stat-card span,
.metric-label,
.review-box__label,
.top-pick__label,
.company-domain,
.domain-pill {
  display: block;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.stat-card strong {
  display: block;
  margin: 0.45rem 0 0.35rem;
  font-size: 1.45rem;
}

.top-pick {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #fff;
}

.top-pick p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.guide-section,
.comparison,
.notice-section {
  padding-top: 1.5rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.section-heading p:last-child {
  color: var(--ink-soft);
}

.guide-grid,
.comparison-grid,
.notice-grid,
.detail-grid {
  display: grid;
  gap: 1.2rem;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card,
.detail-panel,
.note-card,
.company-card {
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.detail-panel,
.site-footer__block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.guide-card h3,
.company-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

.guide-card p,
.company-summary,
.review-box p,
.best-fit,
.detail-copy,
.detail-panel p,
.note-card p,
.metric-tile p,
.site-footer__block p,
.company-table td {
  color: var(--ink-soft);
  line-height: 1.7;
}

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

.company-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.company-card__top,
.company-brand,
.badge-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.company-brand {
  justify-content: flex-start;
}

.company-brand h1 {
  font-size: 3.1rem;
  margin-top: 0.35rem;
}

.company-brand--hero {
  align-items: center;
  margin: 0.7rem 0 1rem;
}

.provider-logo {
  width: 3.6rem;
  height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.1rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.company-brand--hero .provider-logo {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1.35rem;
  font-size: 1.35rem;
}

.logo-cheap { background: linear-gradient(135deg, #186a49, #39a56c); }
.logo-hehku { background: linear-gradient(135deg, #ffca57, #e28a21); color: #5b3900; }
.logo-fortum { background: linear-gradient(135deg, #1757d2, #3d7cff); }
.logo-tarkka { background: linear-gradient(135deg, #1f6db5, #39a0ed); }
.logo-vihrea { background: linear-gradient(135deg, #1b8b5d, #6ccf8d); }
.logo-oomi { background: linear-gradient(135deg, #5c2dd5, #8c6cf3); }
.logo-vattenfall { background: linear-gradient(135deg, #005e8c, #0a8dc6); }
.logo-aalto { background: linear-gradient(135deg, #117f96, #24b8cc); }
.logo-nordic { background: linear-gradient(135deg, #2e8b57, #6ac68d); }
.logo-greenely { background: linear-gradient(135deg, #008f63, #37c994); }

.category-badge,
.domain-pill,
.tag-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.domain-pill {
  background: #f3f7f5;
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

.badge--budget { background: var(--accent-soft); color: var(--accent-dark); }
.badge--balanced { background: #eef4ff; color: #3154a3; }
.badge--broad { background: var(--purple-soft); color: #5a2bb5; }
.badge--green { background: var(--primary-soft); color: var(--primary-dark); }
.badge--smart { background: #e0fbf3; color: #0f7c61; }
.badge--spot { background: var(--orange-soft); color: #9a5a00; }

.metrics-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-tile {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.metric-tile strong {
  display: block;
  margin: 0.3rem 0 0.45rem;
  font-size: 1.15rem;
}

.metric-tile--price {
  background: linear-gradient(180deg, #f7fffb 0%, var(--surface-soft) 100%);
}

.metric-tile--rating {
  background: linear-gradient(180deg, #f8fbff 0%, #f0f5ff 100%);
}

.rating-chip--excellent {
  border-color: #cadcff;
}

.rating-chip--strong {
  border-color: #d2e7de;
}

.rating-chip--balanced {
  border-color: #f0ddbc;
  background: linear-gradient(180deg, #fffaf2 0%, #fff3e1 100%);
}

.rating-meter {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(22, 49, 39, 0.08);
  overflow: hidden;
  margin-top: 0.8rem;
  display: block;
}

.rating-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.tag-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-list li {
  background: #f5f8f6;
  color: var(--ink-soft);
  border: 1px solid #e3ece6;
}

.tag-list--stacked {
  flex-direction: column;
}

.tag-list--stacked li {
  justify-content: flex-start;
}

.review-box {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 191, 71, 0.12), rgba(255, 191, 71, 0.04));
  border: 1px solid rgba(255, 191, 71, 0.34);
}

.best-fit {
  font-weight: 600;
}

.detail-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  margin-top: 3rem;
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 1.5rem;
}

.detail-hero__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-hero__side {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.detail-copy {
  max-width: 64ch;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 1.5rem;
}

.note-card {
  background: rgba(255, 255, 255, 0.92);
}

.note-card strong {
  display: block;
  margin-bottom: 0.45rem;
}

.note-card--warning {
  margin-top: 1rem;
  background: linear-gradient(180deg, rgba(255, 191, 71, 0.12), rgba(255, 191, 71, 0.05));
  border: 1px solid rgba(255, 191, 71, 0.38);
}

.comparison--single {
  padding-top: 1.5rem;
}

.table-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

.company-table tr:first-child th,
.company-table tr:first-child td {
  border-top: none;
}

.company-table th {
  width: 14rem;
  color: var(--ink);
  background: rgba(238, 248, 242, 0.65);
}

.hero-copy-table {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.hero-copy-table td {
  display: table-cell;
  padding: 0;
}

.hero-copy-table h1 {
  margin: 1.15rem 0;
}

.action-table {
  display: table;
  margin-top: 1.9rem;
  border-collapse: separate;
  border-spacing: 0.85rem 0;
}

.action-table td:first-child {
  padding-left: 0;
}

.summary-table,
.guide-table,
.notice-table,
.providers-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.summary-table th,
.summary-table td {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(209, 229, 218, 0.9);
}

.summary-table tr:first-child th,
.summary-table tr:first-child td {
  border-top: 0;
}

.summary-table th {
  width: 38%;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.summary-table td strong,
.providers-table td strong {
  display: block;
  margin-bottom: 0.25rem;
}

.summary-table td span,
.table-note {
  display: block;
  color: var(--ink-faint);
  font-size: 0.86rem;
  line-height: 1.55;
}

.top-pick-row th,
.top-pick-row td {
  background: var(--ink);
  color: #fff;
}

.top-pick-link {
  display: block;
  color: #fff;
  text-decoration: none;
}

.top-pick-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.top-pick-link span {
  color: rgba(255, 255, 255, 0.76) !important;
}

.guide-table,
.notice-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.guide-table th,
.guide-table td,
.notice-table th,
.notice-table td {
  padding: 1.15rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-left: 1px solid var(--border);
  line-height: 1.7;
}

.guide-table th:first-child,
.guide-table td:first-child,
.notice-table th:first-child,
.notice-table td:first-child {
  border-left: 0;
}

.guide-table th {
  color: var(--ink);
  background: var(--surface-soft);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.guide-table td,
.notice-table td {
  color: var(--ink-soft);
}

.notice-table tr + tr th,
.notice-table tr + tr td {
  border-top: 1px solid var(--border);
}

.notice-table th {
  width: 28%;
  color: var(--ink);
  background: rgba(238, 248, 242, 0.68);
}

.providers-table {
  min-width: 1060px;
}

.comparison .table-frame {
  overflow-x: auto;
}

.providers-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.providers-table th,
.providers-table td {
  padding: 1rem 1.05rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

.providers-table thead th {
  border-top: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.providers-table tbody tr:hover {
  background: rgba(218, 243, 234, 0.42);
}

.company-table-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 12rem;
}

.company-table-name {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
}

.company-table-name span {
  font-weight: 800;
}

.company-table-name small {
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 600;
}

.providers-table p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.rating-meter--table {
  display: block;
  min-width: 8rem;
}

.tag-list--table {
  min-width: 12rem;
}

.button-compact {
  min-height: 2.45rem;
  padding: 0.62rem 0.9rem;
}

.detail-main-table,
.company-brand-table,
.badge-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-main-table {
  display: table;
}

.detail-main-table > tbody > tr > td {
  padding: 0;
}

.company-brand-table {
  display: table;
  margin: 0.7rem 0 1rem;
}

.company-brand-table > tbody > tr > td {
  vertical-align: middle;
}

.company-brand-table > tbody > tr > td:first-child {
  width: 5.6rem;
}

.badge-table {
  width: auto;
  margin-bottom: 0.45rem;
}

.badge-table td {
  padding-right: 0.45rem;
}

.empty-state {
  margin-top: 3rem;
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(190, 215, 202, 0.9);
  background: rgba(236, 246, 240, 0.95);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.footer-table {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 1.4rem 0;
}

.footer-table .site-footer__block {
  display: table-cell;
  width: 50%;
  vertical-align: top;
}

.site-footer__title {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid rgba(13, 141, 105, 0.38);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero,
  .detail-hero,
  .guide-grid,
  .comparison-grid,
  .detail-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .metrics-row,
  .stat-grid,
  .notice-grid {
    grid-template-columns: 1fr;
  }

  .guide-table,
  .notice-table {
    min-width: 46rem;
  }

  .guide-section,
  .notice-section {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-inline: 0.9rem;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-table,
  .header-table tbody,
  .header-table tr,
  .header-table td,
  .footer-table,
  .footer-table tbody,
  .footer-table tr,
  .footer-table td {
    display: block;
    width: 100%;
  }

  .header-table td:last-child {
    text-align: left;
    margin-top: 0.85rem;
  }

  .footer-table {
    border-spacing: 0;
  }

  .footer-table .site-footer__block + .site-footer__block {
    margin-top: 1.2rem;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-copy,
  .hero-panel,
  .company-card,
  .guide-card,
  .detail-panel,
  .detail-hero,
  .empty-state {
    padding: 1.3rem;
  }

  .company-card__top,
  .company-brand,
  .badge-row,
  .top-pick p {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 0.25rem;
  }

  .company-table td {
    padding-top: 0;
  }

  .action-table {
    width: 100%;
    border-spacing: 0 0.75rem;
  }

  .action-table td {
    display: block;
    width: 100%;
    padding: 0;
  }

  .action-table .button {
    width: 100%;
  }
}

/* Responsive table layout for phones, tablets, TVs and large desktops */
:root {
  --content-pad: 1.25rem;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.page-shell {
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

.hero,
.guide-section,
.comparison,
.notice-section,
.detail-grid,
.empty-state,
.detail-hero {
  width: min(100%, var(--max-width));
}

.hero {
  display: block;
}

.hero-layout-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 1.5rem 0;
}

.hero-layout-table > tbody > tr > td {
  vertical-align: stretch;
}

.hero-main-cell {
  width: 58%;
}

.hero-side-cell {
  width: 42%;
}

.hero-copy h1 {
  font-size: 4rem;
  max-width: 12ch;
}

.section-heading h2,
.hero-panel h2,
.detail-panel h2,
.empty-state h1 {
  font-size: 2.35rem;
}

.company-brand h1 {
  font-size: 3.1rem;
}

.provider-logo,
.brand-mark {
  letter-spacing: 0;
}

.providers-table {
  table-layout: fixed;
}

.providers-table .provider-column {
  width: 19%;
}

.providers-table .description-column {
  width: 28%;
}

.providers-table .price-column,
.providers-table .rating-column {
  width: 16%;
}

.providers-table .strength-column {
  width: 14%;
}

.providers-table .link-column {
  width: 7%;
}

@media (min-width: 1280px) {
  :root {
    --max-width: 1280px;
    --content-pad: 1.5rem;
  }
}

@media (min-width: 1600px) {
  :root {
    --max-width: 1500px;
    --content-pad: 2rem;
  }

  .providers-table {
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: 4.5rem;
  }
}

@media (min-width: 2200px) {
  :root {
    --max-width: 1760px;
    --content-pad: 3rem;
  }

  .providers-table th,
  .providers-table td {
    padding: 1.25rem 1.35rem;
  }
}

@media (max-width: 1180px) {
  .hero-layout-table,
  .hero-layout-table > tbody,
  .hero-layout-table > tbody > tr,
  .hero-layout-table > tbody > tr > td {
    display: block;
    width: 100%;
  }

  .hero-layout-table {
    border-spacing: 0;
  }

  .hero-side-cell {
    margin-top: 1rem;
  }

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

@media (max-width: 760px) {
  :root {
    --content-pad: 0.85rem;
  }

  body {
    overflow-x: hidden;
  }

  .site-header {
    position: static;
  }

  .hero {
    padding-top: 1.35rem;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
    max-width: none;
  }

  .section-heading h2,
  .hero-panel h2,
  .detail-panel h2,
  .empty-state h1 {
    font-size: 1.85rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-copy,
  .hero-panel,
  .detail-panel,
  .detail-hero,
  .empty-state {
    border-radius: var(--radius-sm);
  }

  .summary-table th,
  .summary-table td,
  .notice-table th,
  .notice-table td,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    border-left: 0;
  }

  .summary-table td,
  .notice-table td,
  .company-table td {
    padding-top: 0;
  }

  .guide-section,
  .notice-section {
    overflow-x: visible;
  }

  .guide-table,
  .notice-table,
  .providers-table {
    min-width: 0;
  }

  .guide-table,
  .guide-table thead,
  .guide-table tbody,
  .guide-table tr,
  .guide-table th,
  .guide-table td,
  .providers-table,
  .providers-table thead,
  .providers-table tbody,
  .providers-table tr,
  .providers-table th,
  .providers-table td {
    display: block;
    width: 100%;
  }

  .guide-table thead,
  .providers-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .guide-table tr,
  .providers-table tbody tr {
    border-top: 1px solid var(--border);
  }

  .guide-table tr:first-child,
  .providers-table tbody tr:first-child {
    border-top: 0;
  }

  .guide-table td,
  .providers-table th,
  .providers-table td {
    border-left: 0;
    border-top: 1px solid rgba(209, 229, 218, 0.65);
  }

  .guide-table td:first-child,
  .providers-table tbody tr > :first-child {
    border-top: 0;
  }

  .guide-table td::before,
  .providers-table th::before,
  .providers-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.35rem;
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .providers-table tbody tr {
    padding: 0.35rem 0;
  }

  .company-table-brand,
  .tag-list--table {
    min-width: 0;
  }

  .provider-logo {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 0.9rem;
  }

  .rating-meter--table {
    min-width: 0;
  }

  .button-compact {
    width: 100%;
  }

  .detail-hero {
    margin-top: 1.25rem;
  }

  .company-brand-table,
  .company-brand-table tbody,
  .company-brand-table tr,
  .company-brand-table td,
  .badge-table,
  .badge-table tbody,
  .badge-table tr,
  .badge-table td {
    display: block;
    width: 100%;
  }

  .company-brand h1 {
    font-size: 2.25rem;
  }

  .badge-table td + td {
    margin-top: 0.35rem;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .hero-copy,
  .hero-panel,
  .detail-panel,
  .detail-hero,
  .empty-state {
    padding: 1rem;
  }

  .main-nav a,
  .button {
    min-height: 2.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Pienet viimeistelyt eri näyttökokoihin. Rakenne pysyy table-pohjaisena. */
.site-header__inner {
  width: min(100%, var(--max-width));
  padding-left: var(--content-pad, 1.25rem);
  padding-right: var(--content-pad, 1.25rem);
}

.hero-layout-table,
.summary-table,
.guide-table,
.notice-table,
.providers-table,
.company-table {
  table-layout: fixed;
}

.table-frame {
  max-width: 100%;
  overflow-x: auto;
}

.hero-copy,
.hero-panel,
.providers-table,
.company-table,
.notice-table,
.guide-table {
  overflow-wrap: break-word;
}

@media (min-width: 1600px) {
  :root {
    --max-width: 1560px;
  }

  .providers-table {
    min-width: 0;
  }
}

@media (min-width: 2100px) {
  :root {
    --max-width: 1760px;
  }
}

@media (max-width: 1180px) and (min-width: 761px) {
  .hero-layout-table,
  .hero-layout-table > tbody,
  .hero-layout-table > tbody > tr,
  .hero-layout-table > tbody > tr > td {
    display: block;
    width: 100%;
  }

  .hero-layout-table {
    border-spacing: 0;
  }

  .hero-side-cell {
    margin-top: 1rem;
  }

  .providers-table {
    min-width: 960px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .hero-layout-table,
  .hero-layout-table > tbody,
  .hero-layout-table > tbody > tr,
  .hero-layout-table > tbody > tr > td,
  .guide-table,
  .guide-table thead,
  .guide-table tbody,
  .guide-table tr,
  .guide-table th,
  .guide-table td,
  .providers-table,
  .providers-table thead,
  .providers-table tbody,
  .providers-table tr,
  .providers-table th,
  .providers-table td {
    display: block;
    width: 100%;
  }

  .guide-table thead,
  .providers-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .providers-table {
    min-width: 0;
  }

  .providers-table tbody tr {
    margin-bottom: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
  }

  .providers-table th,
  .providers-table td,
  .guide-table td {
    padding: 0.9rem 1rem;
    border-left: 0;
  }

  .providers-table th::before,
  .providers-table td::before,
  .guide-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .company-table-brand,
  .tag-list--table,
  .rating-meter--table {
    min-width: 0;
  }

  .button-compact,
  .action-table .button {
    width: 100%;
  }
}
