/* "Where charters went" (where-charters-went.js). An <aside>, so it mirrors
   the section rules from style.css without shifting section:nth-of-type shading. */
aside.wcw {
  position: relative;
  padding: 4rem 0;
  background: var(--color-sc-white);
}
aside.wcw[hidden] { display: none; }
aside.wcw::before,
aside.wcw + section::before {
  content: "⚓";
  display: block;
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-sc-gold);
  margin: -2.5rem auto 2.5rem;
  opacity: 0.65;
  line-height: 1;
}
aside.wcw > .container > h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.7rem;
  margin-bottom: 1.2rem;
}
aside.wcw > .container > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--color-sc-gold);
  border-radius: 2px;
}
.wcw h3.wcw-headline { margin-top: 1.5rem; }
.wcw h4 {
  font-family: var(--font-heading);
  color: var(--color-sc-teal);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.wcw-caption { margin-bottom: 1.5rem; }
.wcw-small { font-size: 0.82rem; margin-top: 0.75rem; }

.wcw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.wcw-col { min-width: 0; }

.wcw-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #d8d8d8;
  margin-bottom: 0.4rem;
}
.wcw-bars { list-style: none; }
.wcw-bars li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.92rem;
}
.wcw-name { overflow-wrap: anywhere; }
.wcw-track {
  height: 10px;
  background: var(--color-sc-light);
  border-radius: 999px;
  overflow: hidden;
}
.wcw-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-drake-light), var(--color-drake-blue));
  border-radius: 999px;
}
.wcw-pct {
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wcw-flag { color: var(--color-sc-gold); font-weight: 700; }

.wcw-map { margin: 0; }
.wcw-map svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--color-sc-light);
  border-radius: 12px;
}
.wcw-map circle { fill: var(--color-drake-blue); fill-opacity: 0.75; stroke: #fff; stroke-width: 1.5; }
.wcw-map text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  fill: var(--color-sc-navy);
}

.wcw-nights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.wcw-night {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-sc-gold);
  background: var(--color-sc-light);
  border-radius: 0 10px 10px 0;
}
.wcw-night .l { grid-column: 1 / -1; font-size: 0.82rem; opacity: 0.75; }
.wcw-night .n { font-family: var(--font-heading); font-weight: 700; color: var(--color-sc-teal); }
.wcw-night .p { font-family: var(--font-heading); font-weight: 700; }

.wcw-credit { font-size: 0.8rem; font-style: italic; margin: 0; }

@media (max-width: 768px) {
  .wcw-grid, .wcw-nights { grid-template-columns: 1fr; gap: 1.5rem; }
}
