/* ============================================================
   NDC-TIA Freight Overview dashboard
   Brand colors sourced from the source workbook:
   - Section band:   #3FAEAB
   - Table header:   #068484
   - Alt row shade:  #D9D9D9 / #EFEFEF
   - Country colors: Asia #4285F4, China #EA4335, India #FBBC04, Viet Nam #34A853
   ============================================================ */

:root {
  --teal-dark: #068484;
  --teal-light: #3FAEAB;
  --teal-tint: #E8F5F4;
  --row-alt: #D9D9D9;
  --row-alt-2: #EFEFEF;
  --text: #1D1C1D;
  --text-soft: #55605f;
  --link: #0A66C2;
  --border: #DCE4E3;
  --bg: #FFFFFF;

  --c-asia: #4285F4;
  --c-china: #EA4335;
  --c-india: #FBBC04;
  --c-vietnam: #34A853;
  --c-global: #EA4335;

  --slate: #55606B;
  --slate-tint: #EFF1F3;

  --radius: 10px;
  --shadow: 0 1px 3px rgba(6, 132, 132, 0.08), 0 1px 2px rgba(0,0,0,0.04);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

button, select, input, textarea {
  font-family: inherit;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-align: justify;
  text-justify: inter-word;
}

img { max-width: 100%; display: block; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Top bar / masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.masthead-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.masthead-logo { height: 46px; width: auto; }

.masthead-titles { flex: 1; min-width: 240px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0 0 2px;
}

.masthead h1 {
  font-size: 1.667rem; /* 1.5rem + 2pt */
  margin: 0 0 2px;
  color: var(--teal-dark);
  font-weight: 800;
  line-height: 1.25;
}

.masthead .subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Tabs ---------- */

.tabbar {
  max-width: var(--max-width);
  margin: 14px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  border-radius: 6px 6px 0 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn:hover { color: var(--teal-dark); background: var(--teal-tint); }

.tab-btn.active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal-dark);
}

/* ---------- Layout ---------- */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 80px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein 0.2s ease; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.implemented-by { margin: 8px 0 28px; }
.implemented-by .label { font-weight: 700; font-size: 0.85rem; color: var(--teal-dark); margin-bottom: 12px; }
.partner-logos { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; justify-items: start; gap: 20px 24px; }
.partner-logos img { max-height: 40px; width: auto; }
/* ICCT and Agora are compact/stacked marks (not wide wordmarks like the others),
   so matching height alone renders them much narrower — bumped taller here so
   their visual footprint balances against giz/wri/slocat/ren21. */
.partner-logos img[src*="icct"] { max-height: 50px; }
.partner-logos img[src*="agora"] { max-height: 46px; }
.partner-logos a { display: inline-flex; }
.partner-logos a:hover img { opacity: 0.8; }

/* Single-row logo strip at the end of the Overview, National Ambition and
   Glossary tabs — smaller and more subdued than the About tab's own grid,
   since it's a footer credit line, not the main partner showcase. */
.sheet-footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.sheet-footer-logos img { max-height: 38px; width: auto; opacity: 0.85; }
.sheet-footer-logos img[src*="icct"] { max-height: 48px; }
.sheet-footer-logos img[src*="agora"] { max-height: 44px; }
.sheet-footer-logos a { display: inline-flex; }
.sheet-footer-logos a:hover img { opacity: 1; }

/* ---------- Section building blocks ---------- */

/* ---------- Stat bar (dark panel, big-number key findings) ---------- */

.stat-bar {
  background: #063C41;
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 36px;
  margin: 0 0 34px;
}
.stat-bar-title {
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 24px;
}
.stat-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .stat-bar-grid { grid-template-columns: 1fr; } }
.stat-bar-tile { border-left: 3px solid var(--teal-light); padding-left: 16px; }
.stat-bar-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--teal-light);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-bar-caption { font-size: 0.92rem; color: #DCEEEC; line-height: 1.5; }

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 4px 0 20px;
  padding: 18px 0;
}
.stat-strip-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 0 18px;
  border-left: 1px solid var(--border);
}
.stat-strip-item:first-child { border-left: none; }
.stat-strip-value { font-size: 1.6rem; font-weight: 800; color: var(--teal-dark); line-height: 1.15; margin-bottom: 6px; }
.stat-strip-caption { font-size: 0.82rem; color: var(--text-soft); line-height: 1.4; }
@media (max-width: 700px) {
  .stat-strip-item {
    flex: 1 1 45%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 12px 8px 0;
  }
}

/* ---------- Jump nav (sidebar rail on desktop, horizontal strip on mobile) ---------- */

html { scroll-behavior: smooth; }

.overview-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.overview-main { min-width: 0; }

.jump-nav {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: start;
}
.jump-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 6px 0 6px 14px;
  border-left: 3px solid var(--border);
  line-height: 1.3;
}
.jump-nav a:hover { color: var(--teal-dark); text-decoration: none; }
.jump-nav a.active { color: var(--teal-dark); border-left-color: var(--teal-dark); }

.section, .stat-bar { scroll-margin-top: 20px; }

@media (max-width: 900px) {
  .overview-layout { display: block; }
  .jump-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding: 10px 0;
    margin: 0 0 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .jump-nav a {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
  }
  .jump-nav a.active { border-left-color: transparent; border-bottom-color: var(--teal-dark); }
  .section, .stat-bar { scroll-margin-top: 60px; }
}

.section { margin: 0 0 34px; }

.section-band {
  background: var(--teal-light);
  color: #fff;
  font-weight: 700;
  font-size: 1.217rem; /* 1.05rem + 2pt */
  padding: 10px 16px;
  border-radius: 6px;
  margin: 0 0 14px;
}

.section .insight-label { font-weight: 700; margin: 14px 0 6px; }

.bullets { margin: 6px 0 14px; padding-left: 20px; }
.bullets li { margin-bottom: 6px; }
.action-category { font-weight: 700; color: var(--text); }

.subheading {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 1.117rem; /* 0.95rem + 2pt */
  margin: 18px 0 10px;
  display: block;
}

.figure { text-align: center; margin: 16px 0; }
.figure img { margin: 0 auto; max-width: 100%; border-radius: 6px; }
.figure figcaption { font-size: 0.8rem; color: var(--text-soft); margin-top: 6px; }
.figure-narrow img { max-width: 60%; }

.wordcloud-key {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 48px;
  margin: 4px 0 18px;
}
.wordcloud-key-item { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; }
.wordcloud-key-swatch { width: 15px; height: 15px; border-radius: 3px; flex-shrink: 0; }

.wordcloud-figure { margin: 0 0 24px; }
.wordcloud-figure img { width: 100%; max-width: 640px; margin: 0 auto; }

.wordcloud-takeaways {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.wordcloud-takeaway-box {
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal-dark);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  text-align: center;
}
@media (max-width: 900px) {
  .wordcloud-takeaways { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .wordcloud-takeaways { grid-template-columns: 1fr; }
}

.stat-callout {
  background: var(--teal-tint);
  border-left: 4px solid var(--teal-dark);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 14px 0;
}

.report-box {
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 32px;
  background: var(--teal-tint);
}
.report-box-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.report-box-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--teal-dark);
}
.report-box p { margin: 0 0 12px; }
.report-box .bullets { margin: 0 0 12px; padding-left: 20px; }
.report-box-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
}

.external-box {
  display: flex;
  align-items: stretch;
  border: 1px dashed var(--slate);
  border-left: 4px solid var(--slate);
  border-radius: var(--radius);
  margin: 4px 0 24px;
  background: var(--slate-tint);
  overflow: hidden;
}
.external-box-icon-wrap {
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(85, 96, 107, 0.1);
}
.external-box-icon {
  width: 100%;
  height: 100%;
  color: var(--slate);
}
.external-box-content {
  flex: 1;
  min-width: 0;
  padding: 18px 22px;
}
.external-box-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  margin-bottom: 10px;
}
.external-box p {
  margin: 0 0 10px;
  font-style: italic;
  color: var(--text);
}
.external-box-source {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.external-box-source a { color: var(--slate); font-weight: 600; }

@media (max-width: 600px) {
  .external-box { flex-direction: column; }
  .external-box-icon-wrap { flex: 0 0 100px; width: 100%; }
}

.footnote { font-size: 0.8rem; color: var(--text-soft); margin-top: 10px; }

/* ---------- Stat pairs ---------- */

.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0 18px; }
@media (max-width: 700px) { .stat-pair { grid-template-columns: 1fr; } }

.stat-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-box .stat-group { font-weight: 700; color: var(--teal-dark); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.stat-box ul { margin: 0; padding-left: 18px; }
.stat-box li { margin-bottom: 4px; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 10px 0 32px; border-radius: var(--radius); border: 1px solid var(--border); }

table.data-table { border-collapse: collapse; width: 100%; font-size: 0.88rem; min-width: 480px; }

table.data-table th {
  background: var(--teal-dark);
  color: #fff;
  text-align: left;
  padding: 9px 12px;
  font-weight: 700;
  white-space: nowrap;
}

table.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.data-table td.country-cell { font-weight: 700; background: var(--row-alt); white-space: nowrap; }
table.data-table td.country-cell.initiative-cell { font-weight: 400; }
table.data-table tbody tr:nth-child(even) td:not(.country-cell) { background: var(--row-alt-2); }

table.data-table td.freight-col { background: var(--row-alt-2); font-weight: 600; }

.dot-yes { color: var(--teal-dark); font-weight: 800; }
.dot-no { color: #c9c9c9; }

/* ---------- Country toggle (e.g. freight targets table) ---------- */

.toggle-table { margin: 10px 0 4px; }
.mini-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.mini-toggle-btn {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.15s ease;
}
.mini-toggle-btn:hover { border-color: var(--teal-dark); }
.mini-toggle-btn.active { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

/* ---------- Charts (SVG bar charts) ---------- */

.chart-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 14px;
  margin: 14px 0 18px;
}

.chart-title { color: var(--teal-dark); font-weight: 700; font-size: 1rem; margin: 0 0 14px; }

.hbar-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 10px; padding: 14px 0; }
.hbar-row + .hbar-row { border-top: 1px solid var(--border); }
.hbar-cat { font-size: 0.82rem; text-align: right; color: var(--text); }
.hbar-track { display: flex; flex-direction: column; gap: 3px; }
.hbar-series { display: flex; align-items: center; gap: 8px; }
.hbar-series .bar { height: 14px; border-radius: 3px; min-width: 2px; transition: width 0.4s ease; }
.hbar-series .val { font-size: 0.72rem; color: var(--text-soft); min-width: 38px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 0.8rem; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Heatmap ---------- */

table.heatmap-table { border-collapse: collapse; width: 100%; font-size: 0.85rem; min-width: 360px; }
table.heatmap-table th {
  background: var(--row-alt);
  color: var(--text);
  text-align: center;
  padding: 9px 10px;
  font-weight: 700;
}
table.heatmap-table th:first-child { background: transparent; }
th.heatmap-rowhead {
  background: var(--row-alt) !important;
  color: var(--text) !important;
  text-align: right;
  font-weight: 700;
  padding: 9px 12px;
  white-space: nowrap;
}

/* Equal-width mode columns: fixed layout so all data columns share space
   evenly, with the row-header column given its own fixed width (and allowed
   to wrap, since its labels are longer than a single mode name). */
table.heatmap-table-equal { table-layout: fixed; }
/* table-layout:fixed sizes columns from the FIRST (header) row's cells, not
   the body — so the corner cell's width is what actually fixes this column,
   even though the visible row labels live in .heatmap-rowhead cells below it. */
table.heatmap-table-equal thead th:first-child { width: 200px; }
table.heatmap-table-equal th.heatmap-rowhead { white-space: normal; }
.heatmap-col-name { margin-bottom: 6px; }
.heatmap-col-icon { font-size: 1.4rem; line-height: 1; }
td.heatmap-cell {
  text-align: center;
  font-weight: 700;
  padding: 12px 10px;
  border: 2px solid #fff;
  transition: background 0.3s ease;
}
.heatmap-scale { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.76rem; color: var(--text-soft); }
.heatmap-scale-bar {
  height: 10px;
  width: 120px;
  border-radius: 5px;
  background: linear-gradient(to right, #E3ECEC, #068484);
}

/* ---------- Donut charts ---------- */

.donut-row { display: flex; flex-wrap: wrap; gap: 84px; justify-content: center; padding-top: 4px; }
.donut-card { display: flex; flex-direction: column; align-items: center; min-width: 180px; }
.donut-title { font-size: 0.85rem; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 8px; }
.donut-svg svg { display: block; }
.donut-legend { margin-top: 10px; flex-direction: column; gap: 6px; align-items: flex-start; }

/* ---------- Example cards ---------- */

.example-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.example-list-fit { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .example-list-fit { grid-template-columns: 1fr; } }
.example-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.example-card .country { font-weight: 700; color: var(--teal-dark); font-size: 0.85rem; margin-bottom: 4px; }
.example-card .country { display: flex; align-items: center; gap: 6px; }
.flag-icon { height: 14px; width: auto; max-width: 22px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); flex-shrink: 0; }
.example-card .content { font-size: 0.86rem; }

/* Emphasized example cards — used for illustrative country examples we want to stand out more. */
.example-list-lg .example-card { padding: 22px 24px; border-left: 4px solid var(--teal-dark); }
.example-list-lg .example-card .country { font-size: 1rem; }
.example-list-lg .example-card .content { font-size: 1rem; }
.example-list-lg .flag-icon { height: 18px; max-width: 28px; }

/* ---------- Carousel ---------- */

.carousel { margin: 12px 0 20px; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.35s ease; }
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.carousel-arrow {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--teal-dark);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.carousel-arrow:hover:not(:disabled) { background: var(--teal-dark); color: #fff; }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { appearance: none; cursor: pointer; border: none; padding: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--row-alt); }
.carousel-dot.active { background: var(--teal-dark); }

/* ---------- Initiative blocks ---------- */

.initiative-block { margin-bottom: 14px; }
.initiative-block h4 { margin: 0 0 4px; color: var(--teal-dark); font-size: 0.95rem; }
.initiative-block p { margin: 0; font-size: 0.9rem; }

/* ---------- National ambition tab ---------- */

.country-picker {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 6px 0 24px;
  padding: 12px 0;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.select-country-label {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
}

.country-btn {
  appearance: none;
  cursor: pointer;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.country-btn:hover { border-color: var(--teal-dark); }

.country-btn.active {
  color: #fff;
  border-color: transparent;
}

.country-desc {
  background: var(--teal-tint);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.country-desc .bullets { margin: 0; padding-left: 20px; }

.doc-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 10px 0 20px; }
@media (max-width: 900px) { .doc-strip { grid-template-columns: repeat(2, 1fr); } }

.doc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 12px;
  text-align: center;
}
.doc-card .doc-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-soft); font-weight: 700; margin-bottom: 6px; }
.doc-card .doc-value { font-size: 0.85rem; font-weight: 600; }
.doc-card .doc-value.missing { color: #9a9a9a; font-weight: 400; font-style: italic; }

.target-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.target-box .target-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: var(--teal-dark); letter-spacing: 0.03em; margin-bottom: 6px; }
.target-box .target-value { font-size: 0.98rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.empty-state { color: var(--text-soft); font-style: italic; font-size: 0.9rem; padding: 10px 0; }

.strategy-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 10px;
}
.strategy-card h4 { margin: 0 0 10px; color: var(--teal-dark); font-size: 1rem; font-weight: 700; }
.strategy-card .strategy-text { white-space: pre-line; }
.strategy-card .strategy-link { display: inline-block; margin-top: 10px; font-weight: 600; }

/* ---------- Freight actions disclosure (full NDC/LTS action list) ---------- */

.actions-disclosure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 10px;
}
.actions-disclosure-summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.actions-disclosure-summary::-webkit-details-marker { display: none; }
.actions-disclosure-summary::before {
  content: "▸";
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}
.actions-disclosure[open] .actions-disclosure-summary::before { transform: rotate(90deg); }
.actions-disclosure-body { padding: 0 20px 20px; }

.actions-group { margin-top: 20px; }
.actions-group:first-child { margin-top: 0; }
.actions-group-heading {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--teal-dark);
  font-size: 0.95rem;
}
.actions-group-count { color: var(--text-soft); font-weight: 400; }

.actions-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.actions-item { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.actions-item-tag {
  display: inline-block;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.actions-item-text { font-size: 0.9rem; line-height: 1.5; }
.actions-item-text p { margin: 0 0 6px; }
.actions-item-text p:last-child { margin-bottom: 0; }
.actions-item-page { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--text-soft); font-style: italic; }

/* ---------- Glossary ---------- */

.glossary-section { margin-bottom: 28px; }
.glossary-section h3 {
  color: #fff;
  background: var(--teal-light);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 1.167rem; /* 1rem + 2pt */
  margin: 0 0 14px;
}
dl.glossary-list { margin: 0; }
dl.glossary-list dt { font-weight: 700; color: var(--teal-dark); margin-top: 10px; }
dl.glossary-list dd { margin: 3px 0 0; }
dl.glossary-list dd a { margin-left: 4px; font-size: 0.82rem; }

.glossary-links { margin: 0; padding-left: 20px; }
.glossary-links li { margin-bottom: 6px; font-size: 0.92rem; }

.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 18px 24px 40px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
}

.back-to-top-wrap { margin-top: 20px; }
.back-to-top {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--teal-dark);
  background: #fff;
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 8px 20px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.back-to-top:hover { background: var(--teal-dark); color: #fff; }

/* ---------- Small helpers ---------- */

.muted { color: var(--text-soft); }
.mb-0 { margin-bottom: 0; }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--row-alt);
  color: var(--text);
  margin-left: 6px;
}

@media (max-width: 600px) {
  .masthead h1 { font-size: 1.2rem; }
  .tab-btn { padding: 8px 12px; font-size: 0.85rem; }
  .hbar-row { grid-template-columns: 1fr; }
  .hbar-cat { text-align: left; }
}