/* Bonus a Confronto — refactored component stylesheet.
   Architecture: shared tokens and interactions, comparison grid, article/table,
   disclosures, site chrome and privacy, then responsive component overrides.
   Values and breakpoint behaviour match the supplied source styles. */
:root {
  --alert: #b44545;
  --card-shadow: 0 10px 30px rgba(17,58,45,.055);
  --tile-flow-gap: 14px;
  --surface-card: #fff;
  --surface-bonus: #f2f8f4;
  --surface-table-head: #e7f4ec;
  --surface-footer: #133d32;
}

/* Primitives and keyboard navigation */
img,svg {
  max-width: 100%;
}

a {
  text-underline-offset: 3px;
}

a:hover {
  color: #086a47;
}

a:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline: 3px solid #a7d8c3;
  outline-offset: 3px;
}

.jump-content {
  position: fixed;
  top: -90px;
  left: 12px;
  background: var(--heading);
  color: #fff;
  padding: 9px 14px;
  border-radius: 8px;
  z-index: 99;
}

.jump-content:focus {
  top: 12px;
}

.masthead-action:hover {
  background: #0d6247;
  color: white;
}

/* Ranking / promotional operator cards */
.ranking-panel {
  padding-block: 31px 30px;
  scroll-margin-top: 90px;
}

.ranking-panel > .shell-width > h2 {
  font-size: clamp(1.45rem,3.4vw,2.3rem);
  line-height: 1.22;
  letter-spacing: -.04em;
  color: var(--heading);
  margin: 0 0 8px;
}

.ranking-note,.ranking-disclosure {
  color: var(--secondary);
  font-size: .92rem;
  max-width: 900px;
}

.operator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px 0;
}

.operator-tile {
  background: var(--surface-card);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 17px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--tile-flow-gap);
  box-shadow: var(--card-shadow);
  min-width: 0;
}

.tile-intro {
  display: flex;
  flex-direction: column;
  gap: var(--tile-flow-gap);
  min-width: 0;
}

.operator-rank {
  font-size: .78rem;
  font-weight: 900;
  color: #07724b;
  background: #e1f4e9;
  border-radius: 8px;
  padding: 5px 9px;
  align-self: flex-start;
}

.operator-id {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.operator-mark {
  width: 104px;
  height: auto;
  aspect-ratio: 360/152;
  object-fit: contain;
  border: 1px solid #e2eae6;
  border-radius: 10px;
  background: #f5f9f6;
  flex: none;
}

.operator-nameplate {
  min-width: 0;
}

.operator-nameplate h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1.15rem;
  line-height: 1.25;
}

.operator-caption {
  font-size: .77rem;
  color: var(--secondary);
  margin: 4px 0 0;
  line-height: 1.35;
}

.bonus-panel {
  background: var(--surface-bonus);
  padding: 10px 12px;
  border-radius: 10px;
}

.bonus-value {
  font-size: 1.24rem;
  font-weight: 820;
  color: var(--heading);
  margin: 2px 0 0;
  line-height: 1.3;
}

.offer-points {
  padding-inline-start: 19px;
  margin: 0;
  display: grid;
  gap: 5px;
  font-size: .92rem;
}

.offer-caveat {
  margin: 0;
  color: var(--secondary);
  font-size: .82rem;
}

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

.operator-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 14px;
  background: var(--surface-table-head);
  color: #086a49;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  margin-top: auto;
}

.operator-action:hover {
  background: #cfebdc;
}

/* Long-form editorial content and tabular comparison */
.story-area {
  padding-bottom: 65px;
}

.story-card {
  max-width: 900px;
  background: var(--surface-card);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: clamp(17px,3vw,40px);
  overflow-wrap: anywhere;
}

.story-card h2,.editorial-note h2,.legal-warning h2 {
  font-size: clamp(1.38rem,3vw,1.83rem);
  line-height: 1.3;
  letter-spacing: -.026em;
  margin: 34px 0 14px;
  color: var(--heading);
  scroll-margin-top: 92px;
}

.story-card h2:first-child {
  margin-top: 0;
}

.story-card h3 {
  font-size: 1.17rem;
  line-height: 1.35;
  margin: 25px 0 9px;
  color: #25574a;
  scroll-margin-top: 92px;
}

.story-card p,.editorial-note p,.legal-warning p {
  margin: 10px 0 18px;
}

.story-card ol,.story-card ul {
  padding-inline-start: 22px;
}

.story-card li {
  padding-inline-start: 3px;
  margin-bottom: 10px;
}

.story-card strong {
  color: #214d40;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
  margin: 17px 0 21px;
  border: 1px solid var(--outline);
  border-radius: 11px;
  overscroll-behavior-inline: contain;
}

.story-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  font-size: .89rem;
}

.story-card th {
  background: var(--surface-table-head);
  color: #1b4839;
  text-align: left;
  font-weight: 750;
}

.story-card td,.story-card th {
  padding: 11px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--outline);
}

.story-card tr:last-child td {
  border-bottom: 0;
}

.story-card tr:nth-child(even) td {
  background: #fafdfa;
}

.brand-figure {
  margin: 17px 0 27px;
  max-width: 650px;
}

.brand-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720/320;
  object-fit: cover;
  border: 1px solid var(--outline);
  border-radius: 13px;
  background: #f5f8f6;
}

/* Editorial disclosures and liability notes */
.editorial-grid {
  max-width: 900px;
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.editorial-note,.legal-warning {
  background: var(--surface-card);
  border: 1px solid var(--outline);
  border-radius: 15px;
  padding: 23px;
}

.editorial-note h2,.legal-warning h2 {
  margin-top: 0;
}

.legal-warning {
  border-inline-start: 4px solid var(--alert);
}

/* Shared footer and navigation */
.site-bottom {
  background: var(--surface-footer);
  color: #ebf5ef;
  margin-top: 0;
  padding: 35px 0 15px;
}

.site-bottom .identity-link {
  color: white;
}

.bottom-overview {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bottom-identity {
  max-width: 510px;
}

.bottom-identity p,.bottom-disclaimer {
  color: #c4dcd1;
  font-size: .88rem;
}

.bottom-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-content: start;
}

.bottom-menu a {
  color: #e6f2eb;
  text-decoration: none;
  font-size: .92rem;
}

.bottom-menu a:hover {
  color: #fff;
  text-decoration: underline;
}

.bottom-disclaimer {
  border-top: 1px solid #ffffff2d;
  margin-top: 26px;
  padding-top: 10px;
}

.bottom-disclaimer p {
  margin: 7px 0;
}

/* Independent privacy policy layout */
.privacy-page {
  padding-top: 33px;
  padding-bottom: 60px;
}

.privacy-frame {
  max-width: 950px;
}

.return-link {
  font-weight: 700;
  text-decoration: none;
}

.privacy-intro h1 {
  font-size: clamp(2rem,5vw,3.1rem);
  line-height: 1.15;
  color: var(--heading);
  letter-spacing: -.04em;
  margin: 12px 0;
}

.privacy-intro p {
  color: var(--secondary);
}

.privacy-paper {
  background: var(--surface-card);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: clamp(16px,3vw,35px);
  margin-top: 20px;
}

.privacy-paper h2 {
  font-size: 1.28rem;
  margin: 23px 0 7px;
  color: var(--heading);
}

.privacy-paper section:first-child h2 {
  margin-top: 0;
}

.privacy-paper p {
  margin: 5px 0 15px;
}

.privacy-paper strong {
  color: #9a3939;
}

/* Progressive layout enhancements */
@media (min-width:660px) {
  .operator-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .operator-tile {
    padding: 19px;
  }

  .operator-mark {
    width: 126px;
  }

  .intro-banner {
    padding: 39px 0 32px;
  }

  .ranking-panel {
    padding-top: 38px;
  }
}

@media (min-width:930px) {
  .primary-links {
    display: flex;
    gap: 19px;
    align-items: center;
    margin-inline-start: auto;
  }

  .primary-links a {
    font-size: .87rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 680;
  }

  .primary-links a:hover {
    color: var(--accent);
  }

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

  .intro-banner {
    padding: 45px 0 35px;
  }

  .bottom-overview {
    flex-direction: row;
    justify-content: space-between;
  }

  .bottom-menu {
    max-width: 510px;
  }

  .operator-tile {
    --tile-flow-gap: 13px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width:659px) {
  .shell-width,.intro-core,.story-card,.privacy-paper,.editorial-note,.legal-warning,.operator-tile,.operator-id,.operator-nameplate {
    min-width: 0;
    max-width: 100%;
  }

  .story-card,.privacy-paper {
    overflow-wrap: anywhere;
  }

  .responsive-table {
    max-width: 100%;
  }

  .operator-nameplate h3,.operator-caption {
    overflow-wrap: anywhere;
  }
}

.intro-core {
  width: 100%;
  margin-inline: auto;
}
