:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --panel: #ffffff;
  --panel-soft: #f9fbfa;
  --ink: #172019;
  --muted: #5b675f;
  --line: #d7dfd9;
  --line-strong: #b8c5bd;
  --accent: #176b5d;
  --accent-soft: #e7f3ef;
  --blue: #245b8f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 300px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--blue);
}

a:focus-visible {
  outline: 3px solid rgba(23, 107, 93, 0.25);
  outline-offset: 2px;
}

.embed-shell {
  display: grid;
  gap: 10px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 12px;
}

.embed-head,
.embed-card,
.embed-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.embed-head {
  padding: 13px 14px;
}

.embed-head h1,
.embed-card h2,
.embed-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.embed-head h1 {
  font-size: 22px;
  line-height: 1.16;
}

.embed-head p,
.embed-card p,
.embed-section p,
.embed-footer {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.embed-kicker {
  margin: 0 0 5px !important;
  color: var(--accent) !important;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.embed-list {
  display: grid;
  gap: 10px;
}

.embed-card {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.embed-card h2 {
  font-size: 19px;
  line-height: 1.22;
}

.embed-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.embed-card h2 a:hover {
  color: var(--accent);
}

.embed-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.embed-card-top span {
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.embed-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.embed-facts div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
}

.embed-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.embed-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.embed-button,
.embed-back {
  justify-self: start;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.embed-back {
  margin-bottom: 8px;
  border-color: var(--line-strong);
  background: var(--panel-soft);
  color: var(--ink);
}

.embed-section {
  padding: 12px;
}

.embed-section h2 {
  font-size: 16px;
}

.embed-documents {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.embed-document {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  text-decoration: none;
}

.embed-document strong {
  color: var(--ink);
}

.embed-document span {
  color: var(--muted);
  font-size: 13px;
}

.embed-footer {
  padding: 0 2px 3px;
  font-size: 12px;
}

@media (max-width: 560px) {
  .embed-shell {
    padding: 8px;
  }

  .embed-head h1 {
    font-size: 19px;
  }

  .embed-facts {
    grid-template-columns: 1fr;
  }
}
