/* How we work (/how-we-work/): the long-form page with a contents list, sticky beside the text on wide screens and
   above it under 820px. Tokens only (nocturne.css); both themes. */

.hww-hero { gap: 0; padding-bottom: clamp(32px, 5vw, 56px); }
.hww-hero h1 { margin-top: 16px; max-width: 16em; font-size: clamp(38px, 5.4vw, 70px); line-height: 1.08; }
.hww-hero .lead { max-width: 60ch; margin-top: 22px; }

.hww-main { padding-top: 0; }
.hww-layout { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 6vw, 80px); align-items: flex-start; }
.hww-toc { flex: 0 1 200px; position: sticky; top: 7rem; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.hww-toc a { color: var(--text-body); text-decoration: none; }
.hww-toc a:hover { color: var(--color-accent); }
@media (max-width: 820px) {
  .hww-toc { position: static; flex-basis: 100%; }
}

.hww-body { flex: 1 1 520px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }
.hww-body h2 { font-size: clamp(28px, 3.2vw, 38px); }
.hww-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hww-head .tag { align-self: center; }
.hww-body section > p { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--text-body); }
.hww-body section > h2 + p, .hww-body section > .hww-head + p { margin-top: 18px; }
.hww-small, .hww-body section > p.hww-small { margin-top: 16px; font-size: 14px; line-height: 1.65; color: var(--text-meta); }

.hww-table { margin-top: 18px; }
.hww-table .table { min-width: 420px; }
.hww-table .hww-systems { min-width: 480px; }
.hww-systems tbody th { font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text-strong); padding: 10px 12px; text-align: left; }
.hww-cell { display: flex; align-items: center; gap: 10px; }
.hww-cell .planet { width: 26px; height: 26px; }

.hww-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--gap-grid); margin-top: 20px; }
.hww-label { padding: 20px; gap: 14px; }
.hww-label-calc { font-size: 17px; line-height: 1.55; color: var(--text-strong); }
.hww-label-interp { font-size: 19px; line-height: 1.5; color: var(--text-strong); }

.hww-texts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px 40px; margin-top: 24px; }
.hww-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--color-neutral-200); }
.hww-plain { margin-top: 18px; }

.hww-rows { list-style: none; margin: 14px 0 0; padding: 0; }
.hww-rows li { display: flex; gap: 14px; padding: 14px 0; background: var(--rule) no-repeat bottom / 100% 1px; }
.hww-rows li:last-child { background: none; }
.hww-rows .icon { width: 22px; height: 22px; margin-top: 1px; }
.hww-rows p { font-size: 16px; line-height: 1.6; color: var(--color-neutral-200); }

.hww-credits { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.6; color: var(--text-body); }
