/* Site-specific layout fix: on phones the stacked navigation must size to its content. */
@media (max-width: 700px) {
  .site-shell > div:first-child,
  .site-shell .sidebar { height: auto !important; min-height: 0 !important; bottom: auto !important; }
}

/* Site adaptation: the official campaign logo image inside the sidebar brand badge. */
.sidebar .brand-emblem {
  border-radius: 11px;
  border-color: #ffffff38;
  overflow: hidden;
}
.sidebar .brand-emblem > svg { display: none; }
.sidebar .brand-emblem > .toh-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Site adaptation: the home-page link inside the portal top bar. */
.topbar .toh-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
  vertical-align: middle;
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  white-space: nowrap;
}
.topbar .toh-home-link:hover { text-decoration: underline; }
.topbar .toh-home-link .toh-home-short { display: none; }
@media (max-width: 700px) {
  .topbar .toh-home-link { margin-right: 9px; }
  .topbar .toh-home-link .toh-home-long { display: none; }
  .topbar .toh-home-link .toh-home-short { display: inline; }
}

/* Site adaptation: "What is TOKEN OF HOPE" page — the owner's concept note,
   rendered verbatim from T0KEN_OF_HOPE-2.docx. */
.about-doc {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-doc .panel { padding: 28px 32px; }
.doc-head h1 {
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 10px 0 8px;
}
.doc-acronym { color: var(--brand-blue); white-space: nowrap; }
.doc-meta { margin: 0; font-size: .85rem; color: var(--brand-muted); }
.doc-meta b { color: var(--brand-blue); letter-spacing: .04em; }
.doc-sep { margin: 0 6px; color: var(--brand-yellow); }

.doc-section h2 {
  font-size: 1.12rem;
  margin: 4px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brand-yellow);
  display: inline-block;
}
.doc-section p { margin: 0 0 12px; }
.doc-section p:last-child { margin-bottom: 0; }

.doc-objectives, .doc-components, .doc-bullets {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.doc-objectives { list-style: decimal; }
.doc-components, .doc-bullets { list-style: none; padding-left: 0; }
.doc-components li, .doc-bullets li {
  position: relative;
  padding-left: 24px;
}
.doc-components li::before, .doc-bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .52em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-yellow);
}

.table-wrap { overflow-x: auto; margin: 4px 0 12px; -webkit-overflow-scrolling: touch; }
.hope-table, .phase-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  line-height: 1.5;
}
.hope-table th, .hope-table td,
.phase-table th, .phase-table td {
  border: 1px solid var(--brand-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.hope-table .hope-letter {
  width: 42px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-blue);
  background: hsl(43 96% 56% / .18);
}
.hope-table th:nth-child(2) { width: 190px; color: var(--brand-blue); }
.phase-table thead th {
  background: var(--brand-blue);
  color: #fff;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.phase-table tbody th { width: 170px; font-weight: 700; color: var(--brand-blue); }
.phase-table .phase-name { display: block; font-weight: 500; font-size: .8rem; color: var(--brand-muted); margin-top: 3px; }

.doc-cta {
  border-left: 4px solid var(--brand-yellow);
}
.doc-cta h2 { border-bottom: none; margin-bottom: 6px; color: var(--brand-blue); letter-spacing: .03em; }
.doc-cta p { margin: 0; }

@media (max-width: 700px) {
  .about-doc .panel { padding: 20px 18px; }
  .doc-head h1 { font-size: 1.2rem; }
  .phase-table tbody th { width: 120px; }
}

/* Phones: tables become stacked cards instead of horizontal scrolling. */
@media (max-width: 700px) {
  .about-doc .table-wrap { overflow-x: visible; margin: 4px 0 8px; }
  .hope-table, .phase-table { display: block; font-size: .88rem; }
  .hope-table tbody, .phase-table tbody, .phase-table thead { display: block; }
  .hope-table tr, .phase-table tr { display: block; border: 1px solid var(--brand-border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: #fff; }
  .hope-table th, .hope-table td, .phase-table th, .phase-table td { display: block; width: 100%; border: none; }
  .phase-table thead { display: none; }
  .phase-table tbody th { width: 100%; background: hsl(43 96% 56% / .18); padding: 10px 14px; }
  .phase-table td { padding: 10px 14px; border-top: 1px solid var(--brand-border); }
  .phase-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 4px;
  }
  .hope-table .hope-letter { width: 100%; border-radius: 0; }
  .hope-table th:nth-child(2) { width: 100%; background: var(--brand-surface); }
  .hope-table td { border-top: 1px solid var(--brand-border); }
  .hope-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 4px;
  }
}
