/* Polar Landing Report — global styles */

:root {
  --max-width: 1160px;
  --color-navy: #0f2436;
  --color-navy-light: #16334a;
  --color-bg: #f4f6f8;
  --color-card: #ffffff;
  --color-text: #1c2933;
  --color-text-muted: #5a6b78;
  --color-border: #dde3e8;
  --color-accent: #e8823c;
  --color-accent-dark: #c96a2c;
  --color-good: #2f7d4f;
  --color-bad: #b3432e;
  --radius: 10px;
  --radius-sm: 6px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--color-navy);
}

h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin-top: 2.2em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--color-navy); }
a:hover { color: var(--color-accent-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { display: block; }

img { max-width: 100%; height: auto; }

.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover { background: var(--color-accent-dark); color: #fff; }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn--outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn--ghost {
  background: #e6f1fb;
  border-color: #b9dcf2;
  color: var(--color-navy);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55em 1.1em;
  text-align: center;
}
.btn--ghost:hover { background: #cfe6f7; border-color: #9dccec; color: var(--color-navy); }

.operator-card__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
}
.operator-card__more-link { text-align: center; margin-top: 0.6rem; font-size: 0.9rem; }

/* Topbar */
.topbar { background: var(--color-navy); color: rgba(255,255,255,0.75); font-size: 0.8rem; }
.topbar__inner { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.5rem 1.5rem; }
.topbar p { margin: 0; }
@media (min-width: 768px) {
  .topbar__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); }
.site-header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.site-logo__img { height: 40px; width: auto; display: block; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle__bar { width: 22px; height: 2px; background: var(--color-navy); display: block; }

.site-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 78%;
  max-width: 320px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 5rem 1.5rem 2rem;
  box-shadow: -8px 0 24px rgba(0,0,0,0.12);
}
.site-nav.is-open { transform: translateX(0); }
.site-nav ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--color-navy); }
.site-nav .active { color: var(--color-accent-dark); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    transform: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .site-nav ul { flex-direction: row; margin: 0; gap: 1.75rem; }
}

/* Hero */
.hero {
  background: var(--color-navy);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero p { color: rgba(255,255,255,0.85); max-width: 66ch; }
.hero__links { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__links a {
  display: inline-block;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}
.hero__links a:hover { background: rgba(255,255,255,0.1); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
.stat-strip__item { }
.stat-strip__value { font-family: var(--font-head); font-size: 1.5rem; display: block; }
.stat-strip__label { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
@media (min-width: 768px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
}

/* Section labels */
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.4rem;
  display: block;
}

section { padding: 2rem 0; }

/* Tables */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.92rem; }
th, td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
thead th { background: var(--color-navy); color: #fff; font-family: var(--font-body); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }
th:first-child { min-width: 160px; }
#rating-table th:nth-child(5), #rating-table td:nth-child(5),
#rating-table th:nth-child(6), #rating-table td:nth-child(6) { white-space: nowrap; }
.tier-row td {
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.55em 0.9rem;
}
.tier-row:first-child td { border-top: none; }

/* Callouts */
.callout {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-navy);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout--warning { border-left-color: var(--color-accent); background: #fff6ee; }
.callout--dark { background: var(--color-navy); color: #fff; border: none; }
.callout--dark a { color: #fff; text-decoration: underline; }

/* Praise/complaint split */
.split-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .split-grid { grid-template-columns: 1fr 1fr; } }
.split-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.split-card h3 { display: flex; align-items: center; gap: 0.5rem; }
.split-card ul { margin: 0; padding-left: 1.1rem; }
.split-card li { margin-bottom: 0.6rem; }
.split-card--good h3 { color: var(--color-good); }
.split-card--bad h3 { color: var(--color-bad); }

/* Factbox */
.factbox {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.factbox li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4em 0.9em 0.4em 0.65em;
  font-size: 0.85rem;
  line-height: 1.3;
  max-width: 100%;
}
.factbox li svg {
  width: 15px;
  height: 15px;
  margin-top: 0.2em;
  flex-shrink: 0;
  color: var(--color-accent-dark);
}
.factbox strong { color: var(--color-navy); font-weight: 600; }

/* Operator card */
.operator-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.operator-card__image { margin: 0 0 1rem; border-radius: var(--radius-sm); overflow: hidden; }
.operator-card__image img { width: 100%; aspect-ratio: 820 / 320; object-fit: cover; display: block; }

/* Alternatives / equal-weight cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.alt-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; }
.alt-card h3 { margin-bottom: 0.5rem; }
.alt-card ul { padding-left: 1.1rem; margin: 0 0 1rem; flex: 1; }
.alt-card li { margin-bottom: 0.4rem; font-size: 0.92rem; }
.alt-card .btn { align-self: flex-start; }

/* FAQ */
details { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; padding: 0.9rem 1.1rem; margin-bottom: 0.7rem; }
summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); }
summary::marker { color: var(--color-accent-dark); }
details p { margin-top: 0.7rem; margin-bottom: 0; }

/* CTA banner */
.cta-banner { background: var(--color-navy); color: #fff; border-radius: var(--radius); padding: 1.75rem; text-align: center; margin: 2rem 0; }
.cta-banner p { color: rgba(255,255,255,0.85); }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 1rem 0; }
.cta-banner__byline { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin: 0; }

/* Footer */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,0.8); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__col h3 { color: #fff; font-size: 0.95rem; font-family: var(--font-body); margin-bottom: 0.8rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 0.5rem; }
.footer__col a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; }
.footer__col a:hover { color: #fff; }
.footer__col--brand p { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* Shortlist widget */
.shortlist-matrix { width: 100%; }
.shortlist-tool { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; }
.shortlist-tool__priorities { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; padding: 0; list-style: none; }
.shortlist-tool__priorities label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--color-border); border-radius: 999px;
  padding: 0.4em 0.9em; cursor: pointer; font-size: 0.88rem;
}
.shortlist-result { margin-top: 1rem; font-size: 0.92rem; }
.shortlist-result:empty { display: none; margin: 0; }
.js-only { display: none; }
.js .js-only { display: block; }
/* The static matrix stays visible even with JS enabled: the page promises
   "the matrix below always shows the full mapping," and the dynamic result
   above is a bonus summary, not a replacement for it. */

/* Content-page generic */
.icon-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 768px) { .icon-row { grid-template-columns: repeat(4, 1fr); } }
.icon-row__item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 1rem; font-size: 0.9rem; }

.verdict-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px -8px rgba(15,36,54,0.15);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) { .verdict-panel { grid-template-columns: repeat(3, 1fr); } }
.verdict-panel__item { display: flex; gap: 0.75rem; align-items: flex-start; }
.verdict-panel__item svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--color-accent-dark); margin-top: 0.15rem; }
.verdict-panel__item strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--color-navy); margin-bottom: 0.3rem; }
.verdict-panel__item p { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); }

.page-hero { background: var(--color-navy); color: #fff; padding: 2.25rem 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 70ch; }
