/* Plot45 — help.css: the help wiki's shared layout (Broadsheet grammar).
   Used by /help/*.html on top of site.css tokens. */

.hp {
  max-width: 1060px;
  margin: 0 auto;
  padding: 30px 22px 96px;
}

/* The contextual "Open Plot →" link in the shared site header's cluster. */
.hp__headlink {
  font-size: var(--fs-caption);
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.hp__headlink:hover { text-decoration: underline; }

/* ── two columns: the ink navigation spine + article ──
   Same grammar as the Workspace sidebar (--ink-spine tokens), so the wiki
   reads as a room of the same building — unmistakably "a menu". */
.hp__grid { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }

/* Narrow screens: the spine would bury the article, so it collapses into a
   tap-to-open "Guide contents" bar (the links hide until opened; picking a
   link closes it again — see the inline script on each help page). */
.hp__side-toggle { display: none; }
@media (max-width: 900px) {
  .hp__grid { grid-template-columns: 1fr; gap: 18px; }
  .hp__side { position: static; padding: 4px 8px; }
  .hp__side.is-open { padding-bottom: 12px; }
  .hp__side-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    color: var(--ink-spine-text-strong);
    background: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  .hp__side-toggle::after {
    content: "";
    width: 8px; height: 8px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
  }
  .hp__side.is-open .hp__side-toggle::after { transform: rotate(225deg) translateY(-1px); }
  .hp__side:not(.is-open) > :not(.hp__side-toggle) { display: none; }
}

.hp__side {
  position: sticky;
  top: 74px; /* below the sticky 56px site header */
  padding: 14px 10px 16px;
  background: var(--ink-spine-bg);
  border: 1px solid var(--ink-spine-line);
  border-radius: 8px;
}
.hp__side-eyebrow {
  padding: 8px 12px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-spine-text);
  opacity: 0.7;
}
.hp__side-eyebrow + .hp__side-eyebrow,
.hp__side-link + .hp__side-eyebrow { margin-top: 14px; }
.hp__side-link {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-spine-text);
  text-decoration: none;
}
.hp__side-link:hover { background: var(--ink-spine-hover); color: var(--ink-spine-text-strong); }
.hp__side-link.is-active {
  background: var(--ink-spine-active);
  color: var(--ink-spine-text-strong);
}
.hp__side-link.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 7px; bottom: 7px;
  width: 3px;
  border-radius: 2px;
  background: var(--ink-spine-marker);
}
/* section anchors within the page — one register quieter */
.hp__side-link--sub { font-weight: 500; font-size: 13.5px; padding: 6px 12px 6px 22px; }

/* ── article ── */
.hp__art h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 750; letter-spacing: -0.02em; margin: 0 0 10px; }
.hp__dek { color: var(--muted); line-height: 1.65; margin: 0 0 34px; max-width: 620px; }
.hp__art h2 {
  font-size: 20px; font-weight: 750; letter-spacing: -0.01em;
  margin: 44px 0 10px; padding-top: 18px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.hp__art h3 { font-size: 15.5px; font-weight: 700; margin: 24px 0 6px; }
.hp__art p, .hp__art li { font-size: 15px; line-height: 1.7; color: var(--text); }
.hp__art p { margin: 0 0 14px; max-width: 640px; }
.hp__art ul, .hp__art ol { margin: 0 0 14px; padding-left: 22px; max-width: 620px; }
.hp__art li { margin-bottom: 6px; }
.hp__art a { color: var(--text); }

/* a formula / value / thing-you-type */
.hp__art code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1px 5px;
  white-space: nowrap;
}

/* screenshots */
.hp__fig { margin: 18px 0 26px; max-width: 720px; }
.hp__fig img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.hp__fig figcaption { margin-top: 7px; font-size: var(--fs-caption); color: var(--muted); line-height: 1.5; }

/* a quiet tip / warning callout */
.hp__tip {
  border-left: 3px solid #ffdb00;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 14px;
  margin: 0 0 16px;
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.65;
}
.hp__tip strong { font-weight: 700; }

/* ── the home page: warm, human, unmistakably clickable ── */
.hp__hero { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; margin: 0 0 8px; }
@media (max-width: 860px) { .hp__hero { grid-template-columns: 1fr; gap: 20px; } }
.hp__hero-fig { margin: 0; }
.hp__hero-fig img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line-strong); border-radius: 8px;
}
.hp__hero-fig figcaption { margin-top: 7px; font-size: var(--fs-caption); color: var(--muted); }

.hp__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 26px 0; }
.hp__card {
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--panel, var(--bg)); padding: 22px 22px 18px;
  text-decoration: none; color: var(--text); display: block;
  transition: border-color 0.12s ease;
}
.hp__card:hover { border-color: var(--text); }
.hp__card:hover .hp__card-go { color: var(--text); }
.hp__card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 14px;
  background: var(--ink-spine-bg); border-radius: 9px;
}
.hp__card-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--ink-spine-marker); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.hp__card h2 { font-size: 17.5px; font-weight: 750; margin: 0 0 6px; border: 0; padding: 0; }
.hp__card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.hp__card-go { font-size: var(--fs-caption); font-weight: 650; color: var(--muted); }

.hp__foot { margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--muted); line-height: 1.7; }
.hp__foot a { color: var(--text); }
