:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #172026;
  --muted: #69757d;
  --line: #dce3e7;
  --normal: #11834a;
  --watch: #b47700;
  --warning: #c44e00;
  --avoid: #b42318;
  --unknown: #5f6b74;
  --shadow: 0 12px 36px rgba(23, 32, 38, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header,
main {
  width: min(1040px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 48px 0 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: #33424b;
  font-size: 18px;
}

.mini-link,
.widget-cta a,
.ad-slot a,
.service-link,
.widget-footer a {
  text-decoration: none;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.language-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.mini-link {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 700;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--panel);
}

.widget-cta {
  margin: 0 0 16px;
  border: 1px solid #69e6bd;
  border-radius: 8px;
  padding: 13px 16px;
  background: #f3fef9;
  box-shadow: 0 0 0 3px rgba(105, 230, 189, 0.12);
}

.widget-cta a {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #04523d;
  box-shadow: none;
  text-decoration: none;
}

.widget-cta span {
  display: block;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

.muted {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

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

.service-card,
.explanation,
.detail-panel,
.ad-slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.service-name {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.pill {
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ability {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ability-number {
  font-size: 56px;
  font-weight: 850;
  line-height: 1;
}

.ability-unit {
  color: var(--muted);
  font-weight: 700;
}

.message {
  margin: 0;
  font-weight: 700;
  line-height: 1.6;
}

.service-supplement {
  border: 1px solid #9fe7d3;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f1fffa;
  color: #173b34;
  font-size: 13px;
}

.service-supplement strong {
  display: block;
  margin-bottom: 4px;
  color: #04614b;
  font-size: 13px;
}

.service-supplement p {
  margin: 0;
  line-height: 1.55;
}

.service-supplement ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.service-supplement li {
  display: grid;
  gap: 1px;
}

.service-supplement small {
  color: var(--muted);
  font-size: 12px;
}

.signal-summary {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: #33424b;
  font-size: 13px;
}

.signal-summary h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.signal-summary p {
  margin: 4px 0 0;
}

.signal-summary span {
  display: inline-block;
  min-width: 62px;
  color: var(--muted);
  font-weight: 800;
}

.official-updates {
  margin-top: 8px;
}

.official-summary-block {
  margin: 7px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfdfc;
}

.official-summary-block strong {
  display: block;
  margin-bottom: 3px;
  color: #12312c;
  font-size: 12px;
}

.official-summary-block p {
  margin: 0;
  color: #33424b;
  line-height: 1.55;
}

.reference-summary {
  background: #f7fbfa;
}

.official-updates ul {
  display: grid;
  gap: 5px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.official-updates li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 6px 8px;
}

.official-updates .official-empty {
  grid-template-columns: 1fr;
}

.official-updates time,
.official-updates small {
  color: var(--muted);
}

.official-updates small {
  grid-column: 2;
}

.official-updates em {
  grid-column: 2;
  color: #42515a;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.official-reference {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.reference-intro {
  display: block;
  margin: 2px 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.official-updates .official-empty small {
  grid-column: auto;
}

.service-link {
  justify-self: start;
  border-bottom: 1px solid currentColor;
  color: #1f4f7a;
  font-weight: 700;
}

.explanation,
.detail-panel,
.ad-slot {
  margin-top: 16px;
  padding: 18px;
}

.content-header {
  align-items: flex-start;
}

.content-page {
  padding-bottom: 48px;
}

.content-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.content-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}

.content-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.content-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.faq-list dt {
  font-weight: 850;
}

.faq-list dd {
  margin: -6px 0 0;
  color: #33424b;
}

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

.action-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.action-list h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.action-list p {
  margin: 0;
  color: #33424b;
  font-size: 13px;
}

.comparison-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table > div {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  border-top: 1px solid var(--line);
}

.comparison-table > div:first-child {
  border-top: 0;
  background: #f8fafb;
}

.comparison-table span,
.comparison-table strong {
  padding: 10px 12px;
  border-left: 1px solid var(--line);
  font-size: 13px;
}

.comparison-table span:first-child,
.comparison-table strong:first-child {
  border-left: 0;
}

.ad-slot {
  color: #33424b;
  font-size: 14px;
}

.status-bar + .ad-slot,
.widget-cta + .ad-slot {
  margin-top: 0;
  margin-bottom: 16px;
}

.launcher-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--bg);
}

.launcher-shell {
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.launcher-shell h1 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.launcher-copy {
  margin-bottom: 12px;
  color: #33424b;
  font-size: 13px;
}

.launcher-button {
  width: 100%;
  border: 1px solid #172026;
  border-radius: 8px;
  padding: 10px 12px;
  background: #172026;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.launcher-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.severity-normal {
  --state: var(--normal);
}

.severity-watch {
  --state: var(--watch);
}

.severity-warning {
  --state: var(--warning);
}

.severity-avoid {
  --state: var(--avoid);
}

.severity-unknown {
  --state: var(--unknown);
}

.service-card {
  border-top: 5px solid var(--state, var(--unknown));
}

.pill,
.widget-state {
  background: var(--state, var(--unknown));
}

html.widget-root {
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.widget-page {
  width: 100vw;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  line-height: 1.2;
}

.widget-shell {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 7px 10px 6px;
  background: #fff;
  box-shadow: none;
}

.widget-header,
.widget-footer {
  display: flex;
  align-items: center;
  gap: 5px;
}

.delivery-security-alert {
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 700;
}

.widget-security-alert {
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.widget-header {
  justify-content: space-between;
}

.widget-title {
  margin: 0;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-time {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}

.icon-button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  background: #fff;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.widget-list {
  margin: 5px 0 4px;
}

.widget-summary {
  margin: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-service {
  color: var(--state, var(--unknown));
}

.widget-service strong {
  color: var(--text);
  font-weight: 850;
}

.widget-divider {
  margin: 0 4px;
  color: var(--muted);
}

.widget-footer {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.1;
}

.widget-footer a {
  color: #1f4f7a;
  font-weight: 800;
}

.widget-ad-link {
  margin-left: auto;
  color: #04523d !important;
  white-space: nowrap;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.facts dt {
  color: var(--muted);
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.evidence-list {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 760px) {
  .site-header {
    display: block;
    padding-top: 32px;
  }

  .mini-link {
    display: inline-block;
    margin-top: 18px;
  }

  .header-actions {
    flex-wrap: wrap;
    margin-top: 18px;
  }

  .header-actions .mini-link {
    margin-top: 0;
  }

  .status-bar,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .status-bar {
    display: grid;
  }

  .widget-cta span {
    text-align: center;
  }

  .service-grid {
    display: grid;
  }

  .content-links,
  .action-list {
    grid-template-columns: 1fr;
  }

  .comparison-table > div {
    grid-template-columns: 1fr;
  }

  .comparison-table span,
  .comparison-table strong {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .comparison-table span:first-child,
  .comparison-table strong:first-child {
    border-top: 0;
  }
}
