:root {
  --bg-a: #f2eee2;
  --bg-b: #eae7d6;
  --ink: #082e41;
  --ink-soft: #1a465b;
  --muted: #556975;
  --panel: rgba(248, 246, 237, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: #e8e8ee;
  --accent: #24c2cb;
  --accent-strong: #0f7f9a;
  --accent-soft: rgba(36, 194, 203, 0.14);
  --warm: #ef525b;
  --danger: #da2536;
  --radius: 18px;
  --shadow: 0 18px 38px rgba(8, 46, 65, 0.1);
  --shadow-soft: 0 10px 24px rgba(8, 46, 65, 0.08);
  --focus: #157d93;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 0.95rem;
  background:
    radial-gradient(circle at 14% 10%, rgba(36, 194, 203, 0.12), transparent 38%),
    radial-gradient(circle at 88% 7%, rgba(8, 46, 65, 0.09), transparent 36%),
    linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 45%, #e4e0d2 100%);
  position: relative;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 32, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 42, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 10%, #000 20%, transparent 90%);
  pointer-events: none;
}

.glow {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.2;
  pointer-events: none;
}

.glow-a {
  top: -8rem;
  left: -7rem;
  background: #24c2cb;
}

.glow-b {
  right: -6rem;
  bottom: -8rem;
  background: #082e41;
}

.hub {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 16px 32px;
  display: grid;
  gap: 14px;
}

.hero {
  order: 1;
}

.quick-nav {
  order: 2;
}

#use-guide {
  order: 3;
}

#workflow {
  order: 4;
}

#risk-clusters {
  order: 5;
}

#full-picture {
  order: 6;
}

#models {
  order: 7;
}

#partner-dd {
  order: 8;
}

#tender-country {
  order: 9;
}

#public-private {
  order: 10;
}

#scope {
  order: 11;
}

#countries {
  order: 12;
}

#sector {
  order: 13;
}

#company-cases {
  order: 14;
}

#trade-tariffs {
  order: 15;
}

#deep-dive {
  order: 16;
}

#glossary {
  order: 17;
}

#sources {
  order: 18;
}

#changelog {
  order: 19;
}

.panel,
.hero,
.country-card,
.topic-card,
.list-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas:
    "copy panel"
    "report report";
  align-items: start;
  gap: 12px;
  padding: 16px;
  background: var(--panel);
}

.hero-copy {
  grid-area: copy;
}

.hero-report-row {
  grid-area: report;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.3rem 0.65rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: inherit;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.58rem, 3.1vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.16rem;
  font-weight: 700;
}

h3 {
  font-size: 0.98rem;
  font-weight: 700;
}

h4 {
  font-size: 0.92rem;
  font-weight: 700;
}

p {
  margin: 0;
  line-height: 1.58;
  font-size: 0.9rem;
}

li {
  font-size: 0.9rem;
}

.lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.82rem;
  font-weight: 400;
  max-width: 64ch;
  opacity: 0.78;
}

.hero-subline {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.95;
}

.btn-report-link {
  padding: 0.38rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 9px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.65rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 47, 58, 0.32);
  box-shadow: var(--shadow-soft);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: #24c2cb;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px rgba(36, 194, 203, 0.22);
}

.btn-primary:hover {
  background: #1fb3bb;
  color: #fff;
}

.meta-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.meta-chip {
  border: 1px solid rgba(36, 194, 203, 0.22);
  border-radius: 10px;
  background: rgba(36, 194, 203, 0.1);
  padding: 0.6rem 0.72rem;
  font-size: 0.86rem;
}

.hero-panel {
  grid-area: panel;
  position: relative;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  margin-top: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.hero-panel-logo-link {
  justify-self: end;
  margin-left: auto;
  margin-bottom: 14px;
  display: inline-flex;
}

.brand-logo {
  display: block;
  max-width: 156px;
  width: auto;
  height: auto;
}

.hero-panel-note {
  margin: 0;
  border: 1px solid rgba(36, 194, 203, 0.24);
  background: rgba(36, 194, 203, 0.08);
  border-radius: 9px;
  padding: 0.38rem 0.56rem;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
}

.meta-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.meta-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(19, 32, 42, 0.12);
}

.meta-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.meta-list dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.meta-list dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.86rem;
}

.hero-copyright {
  margin: 2px 0 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(19, 32, 42, 0.14);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.panel {
  padding: 14px;
  display: grid;
  gap: 14px;
  scroll-margin-top: 104px;
}

.panel h3 {
  margin: 0;
  font-size: 0.98rem;
}

.panel > h2 {
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(31, 47, 58, 0.12);
  padding-bottom: 0.5rem;
}

.panel:target {
  animation: sectionPulse 1.1s ease;
}

.step-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  line-height: 1.45;
}

.country-grid,
.topic-grid,
.list-grid,
.comparison-grid,
.risk-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

#risk-clusters .risk-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

#risk-clusters .risk-card {
  padding: 12px 12px;
  gap: 6px;
}

#risk-clusters .risk-card p {
  line-height: 1.42;
  font-size: 0.88rem;
}

@media (max-width: 1500px) {
  #risk-clusters .risk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  #risk-clusters .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.country-card,
.topic-card,
.list-card,
.compare-card,
.risk-card {
  padding: 15px;
  display: grid;
  gap: 9px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
}

.list-card h3,
.compare-card h3,
.risk-card h3,
.topic-card h3,
.country-card h3 {
  color: var(--ink-soft);
}

.muted-block {
  margin: 0;
  color: var(--muted);
  max-width: 86ch;
}

.small-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.quick-start-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  gap: 0.45rem;
}

.quick-start-card h3 {
  font-size: 1rem;
  color: var(--ink-soft);
}

.quick-start-card p {
  color: var(--muted);
  line-height: 1.5;
}

.section-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(11, 95, 125, 0.2);
  background: rgba(11, 95, 125, 0.08);
  padding: 0.2rem 0.58rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  font-weight: 700;
}

.kv {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.5rem;
}

.list-block {
  display: grid;
  gap: 0.35rem;
}

.list-block ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.34rem;
  line-height: 1.5;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 0;
}

li + li {
  margin-top: 0.14rem;
}

.trigger-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.accordion-card {
  border: 1px solid rgba(31, 47, 58, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.93);
  overflow: clip;
  box-shadow: var(--shadow-soft);
}

.accordion-card summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(11, 95, 125, 0.06);
}

.accordion-card summary::-webkit-details-marker {
  display: none;
}

.accordion-card summary::before {
  content: ">";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  margin-right: 0.45rem;
  color: var(--accent-strong);
  transition: transform 0.18s ease;
}

.accordion-card[open] summary::before {
  transform: rotate(90deg);
}

.accordion-body {
  padding: 0 0.9rem 0.9rem;
  display: grid;
  gap: 0.6rem;
  border-top: 1px solid rgba(31, 47, 58, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.quick-nav {
  position: sticky;
  top: 8px;
  z-index: 40;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 252, 246, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(19, 32, 42, 0.08);
}

.quick-nav-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  touch-action: pan-x;
}

.quick-nav .btn {
  padding: 0.44rem 0.68rem;
  font-size: 0.82rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  scroll-snap-align: start;
}

.quick-nav .btn-top-nav {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 16%, #ffffff);
  box-shadow: 0 0 0 1px rgba(36, 194, 203, 0.18);
  font-weight: 700;
}

.quick-nav a {
  text-decoration: none;
  scroll-margin-top: 116px;
}

.quick-nav .btn:hover {
  border-color: rgba(19, 32, 42, 0.22);
}

.quick-nav .btn.is-active {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  box-shadow: 0 0 0 1px rgba(36, 194, 203, 0.18);
  font-weight: 700;
}

.quick-nav-search {
  display: grid;
  gap: 0.4rem;
  border-top: 1px dashed rgba(19, 32, 42, 0.16);
  padding-top: 0.45rem;
}

.hero-search {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  max-width: 540px;
  gap: 0.28rem;
}

.search-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.86;
}

.search-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

#pageSearchInput {
  border: 1px solid rgba(31, 47, 58, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  padding: 0.36rem 0.5rem;
  font-size: 0.86rem;
}

#pageSearchInput:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.search-results {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.search-result-btn {
  width: 100%;
  text-align: left;
}

#pageSearchClearBtn {
  padding: 0.3rem 0.48rem;
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
}

#pageSearchClearBtn:hover {
  color: var(--ink);
  border-color: rgba(19, 32, 42, 0.2);
}

.quick-nav-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.quick-nav-mobile-hint {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.alert-inline {
  margin: 0;
  border-left: 4px solid #cf2f45;
  background: rgba(179, 52, 64, 0.12);
  border-radius: 10px;
  padding: 0.52rem 0.64rem;
}

.decision-workbench {
  display: grid;
  gap: 0.58rem;
  border: 1px solid rgba(11, 95, 125, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.68rem;
}

.traffic-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.traffic-card {
  border: 1px solid rgba(31, 47, 58, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.52rem 0.56rem;
  display: grid;
  gap: 0.26rem;
}

.traffic-card h4 {
  color: var(--ink-soft);
}

.traffic-card label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.traffic-select,
.meeting-note-controls select,
#meetingFindingsInput,
#meetingNoteOutput {
  border: 1px solid rgba(31, 47, 58, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.34rem 0.42rem;
}

.traffic-badge {
  margin: 0.1rem 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.traffic-green {
  color: #0a6650;
  background: rgba(15, 141, 135, 0.22);
}

.traffic-yellow {
  color: #7b5600;
  background: rgba(211, 162, 42, 0.2);
}

.traffic-red {
  color: #7f1f2a;
  background: rgba(179, 52, 64, 0.22);
}

.meeting-note-tool {
  display: grid;
  gap: 0.42rem;
  border: 1px solid rgba(11, 95, 125, 0.2);
  border-radius: 12px;
  background: rgba(240, 250, 249, 0.55);
  padding: 0.6rem 0.64rem;
}

.meeting-note-tool h4 {
  color: var(--ink-soft);
}

.meeting-note-tool label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.meeting-note-controls {
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

#meetingNoteOutput {
  min-height: 132px;
}

@media (max-width: 1200px) {
  .traffic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .traffic-grid {
    grid-template-columns: 1fr;
  }
}

.alert {
  border-left: 5px solid var(--danger);
  background: rgba(179, 52, 64, 0.1);
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
}

.sources {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
}

.source-checked {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

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

.country-risk-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 47, 58, 0.16);
  border-radius: 12px;
}

.country-risk-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.country-risk-table th,
.country-risk-table td {
  padding: 0.6rem 0.55rem;
  border-bottom: 1px solid rgba(31, 47, 58, 0.12);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.country-risk-table thead th {
  background: rgba(15, 141, 135, 0.1);
}

.country-risk-table tbody tr:nth-child(even) {
  background: rgba(11, 95, 125, 0.035);
}

.country-risk-table tbody tr:last-child th,
.country-risk-table tbody tr:last-child td {
  border-bottom: none;
}

.model-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 47, 58, 0.16);
  border-radius: 12px;
}

.model-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.model-table th,
.model-table td {
  padding: 0.58rem 0.56rem;
  border-bottom: 1px solid rgba(31, 47, 58, 0.12);
  text-align: left;
  vertical-align: top;
  font-size: 0.91rem;
}

.model-table thead th {
  background: rgba(36, 194, 203, 0.12);
}

.model-table tbody tr:nth-child(even) {
  background: rgba(15, 127, 154, 0.035);
}

.model-table tbody tr:last-child th,
.model-table tbody tr:last-child td {
  border-bottom: none;
}

.dd-score-wrap {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(11, 95, 125, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 249, 0.9));
  padding: 0.95rem;
}

.dd-score-wrap h3 {
  color: var(--ink-soft);
}

.dd-score-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 47, 58, 0.16);
  border-radius: 12px;
}

.dd-score-table th,
.dd-score-table td {
  padding: 0.56rem 0.52rem;
  border-bottom: 1px solid rgba(31, 47, 58, 0.1);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.dd-score-table thead th {
  background: rgba(11, 95, 125, 0.08);
}

.dd-score-table tbody tr:last-child th,
.dd-score-table tbody tr:last-child td {
  border-bottom: none;
}

.dd-score-input {
  width: 100%;
  max-width: 88px;
  padding: 0.28rem 0.36rem;
  border: 1px solid rgba(31, 47, 58, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.dd-score-input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.dd-live-summary {
  display: grid;
  gap: 0.5rem;
  border: 1px solid rgba(11, 95, 125, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.68rem 0.74rem;
}

.dd-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 47, 58, 0.13);
  overflow: hidden;
}

.dd-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9533c 0%, #d3a22a 50%, #0f8d87 100%);
  transition: width 0.18s ease;
}

.dd-decision {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.dd-decision-go {
  color: #0b5f7d;
  background: rgba(15, 141, 135, 0.18);
}

.dd-decision-conditional {
  color: #7b5600;
  background: rgba(211, 162, 42, 0.2);
}

.dd-decision-nogo {
  color: #7f1f2a;
  background: rgba(179, 52, 64, 0.2);
}

.dd-reset-btn {
  justify-self: start;
}

.dd-rules-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dd-rule-card {
  border: 1px solid rgba(31, 47, 58, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.74rem 0.78rem;
  display: grid;
  gap: 0.46rem;
}

.dd-rule-card h4 {
  color: var(--ink-soft);
}

.dd-flag-list label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.dd-flag-list input[type="checkbox"] {
  margin-top: 0.12rem;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

.back-to-top-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal 0.6s ease forwards;
  }

  .reveal.delay-1 { animation-delay: 0.06s; }
  .reveal.delay-2 { animation-delay: 0.12s; }
  .reveal.delay-3 { animation-delay: 0.18s; }
  .reveal.delay-4 { animation-delay: 0.24s; }
  .reveal.delay-5 { animation-delay: 0.3s; }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 95, 125, 0.18);
  }
  100% {
    box-shadow: var(--shadow);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "panel"
      "report";
  }

  .hero-panel {
    margin-top: 4px;
  }

  .country-grid,
  .topic-grid,
  .list-grid,
  .comparison-grid,
  .risk-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hub {
    padding: 12px 10px 26px;
    gap: 10px;
  }

  .hero,
  .panel,
  .country-card,
  .topic-card,
  .list-card {
    padding: 12px;
    border-radius: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-report-row .btn {
    width: auto;
  }

  .quick-nav {
    padding: 10px;
  }

  .quick-nav-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
  }

  .quick-nav .btn {
    width: auto;
    white-space: nowrap;
  }

  .quick-nav-search {
    gap: 0.45rem;
  }

  .quick-nav-mobile-hint {
    display: block;
  }

  .search-input-row {
    grid-template-columns: 1fr;
  }

  .quick-nav-hint {
    display: none;
  }

  .panel {
    padding: 14px;
  }

  .back-to-top-fab {
    right: 10px;
    bottom: 10px;
  }

}
