/* getpostern.com/guides — the field-guide plate, implemented from Paper page 2
   ("Onboarding — field guides", № 01–11). One template, eleven instances; every
   value read with get_jsx. Loads after main.css and reuses its tokens — the
   running head is main.css's own .nav, so the guides carry the site chrome. */

.guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: clip;
}

/* ---------- the running head: the site nav, then the plate label ----------
   .guide is a centring flex column, so every direct child must claim the
   artboard width for itself — the nav included. */

.guide > .nav { width: 1440px; max-width: 100%; }

.guide-strip {
  width: 1440px;
  max-width: 100%;
  padding: 13px var(--nav-inset);
  border-bottom: 1px solid var(--ink-22);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 16px;
  color: var(--faded);
}

/* ---------- the title block ---------- */

.guide-title {
  width: 1440px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 72px var(--inset) 40px;
}
.guide-specimen {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.guide-specimen svg { flex-shrink: 0; }
.guide-specimen .s-name {
  font-size: 17px;
  font-style: italic;
  line-height: 22px;
  color: var(--ink);
  width: max-content;
}
.guide-specimen .s-binomial {
  font-size: 12.5px;
  font-style: italic;
  line-height: 16px;
  color: var(--faded-2);
  width: max-content;
}
.guide-specimen--gate { gap: 10px; padding-bottom: 8px; }
.guide-specimen--gate .s-name {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.18em;
  line-height: 14px;
  color: var(--faded);
}
.guide-title .copy {
  flex-shrink: 1;
  width: 900px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.guide-title h1 {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  line-height: 68px;
  color: var(--ink);
}
.guide-title .lede { font-size: 21px; line-height: 31px; color: var(--ink); }
.guide-title .meta {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 18px;
  color: var(--faded);
}

/* ---------- the plate column ---------- */

 /* one column holds every plate: 1220 of content inside the page inset, so
    nothing touches the edge when the viewport drops below the artboard. */
.guide-col {
  width: calc(1220px + 2 * var(--inset));
  max-width: 100%;
  padding-inline: var(--inset);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.before-note {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  border-left: 3px solid var(--marigold);
}
.before-note .k {
  flex-shrink: 0;
  width: 110px;
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 16px;
  color: var(--faded);
}
.before-note p { font-size: 17px; line-height: 26px; color: var(--ink); }

.guide-steps {
  display: flex;
  flex-direction: column;
  padding-block: 48px 24px;
}
.guide-steps--tight { padding-block: 24px; }
.step {
  display: flex;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--ink-22);
}
/* the closing rule is drawn only on the guides whose plate carries one */
.guide-steps--closed .step:last-child { border-bottom: 1px solid var(--ink-22); }
.step > .n {
  flex-shrink: 0;
  width: 44px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 36px;
  color: var(--poppy);
}
.step > .body {
  flex: 1 1 auto;
  max-width: 1100px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  color: var(--ink);
}
.step p { font-size: 18px; line-height: 27px; color: var(--ink); }

/* the two mono boxes: a bare card-ground plate, and a bordered command */
.mono-box {
  align-self: flex-start;
  max-width: 100%;
  padding: 10px 16px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.cmd-box {
  align-self: flex-start;
  max-width: 100%;
  margin-top: 0;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--ink-22);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  overflow-x: auto;
  white-space: pre;
}
.spec-box {
  align-self: flex-start;
  max-width: 100%;
  padding: 18px 22px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-x: auto;
}
.spec-box span {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
  white-space: pre;
}
.check-box {
  align-self: flex-start;
  max-width: 100%;
  padding: 16px 20px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-x: auto;
}
.check-box span {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 20px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.trap {
  display: flex;
  min-width: 0;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border-left: 3px solid var(--poppy);
}
.trap .k {
  flex-shrink: 0;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 16px;
  color: var(--poppy);
}
.trap p { min-width: 0; font-size: 16px; line-height: 24px; color: var(--ink); }
/* the guides quote long unbreakable paths and URLs — let them break rather
   than push the column wide on a phone */
.step p, .trap p, .before-note p, .stands p, .guide-title .lede, .guide-title .meta { overflow-wrap: anywhere; }

.shot {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--ink-22);
  background: var(--card);
}
.shot--flag { border: 2px solid var(--poppy); }
.shot-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.shot-row--wide { gap: 20px; }
.shot-caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 16px;
  color: var(--faded);
}

/* the Console connect-card mocks */
.connect-card {
  width: 620px;
  max-width: 100%;
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--ink-22);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.connect-card .cc-head { display: flex; flex-direction: column; gap: 4px; }
.connect-card .cc-head b { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 28px; color: var(--ink); }
.connect-card .cc-head span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; line-height: 16px; color: var(--faded); }
.connect-card .cc-field { display: flex; flex-direction: column; gap: 6px; }
.connect-card .cc-field > span { font-size: 15px; line-height: 18px; color: var(--ink); }
.connect-card .cc-input {
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid var(--ink-25);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16px;
  color: var(--ink-40);
  overflow-x: auto;
  white-space: nowrap;
}
.connect-card .cc-input--filled { color: var(--ink); }
.connect-card .cc-hint { font-size: 13.5px; line-height: 18px; color: var(--faded); }
.connect-card .cc-pair { display: flex; gap: 12px; flex-wrap: wrap; }
.connect-card .cc-pair > .cc-field { flex: 1 1 274px; min-width: 0; }
.connect-card .cc-btn {
  align-self: flex-start;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--card);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

/* the Plaid plate's redaction patch, laid over its screenshot */
.shot-stack { position: relative; align-self: flex-start; max-width: 100%; }
.shot-patch {
  position: absolute;
  display: flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--card);
  border: 1px solid var(--ink-25);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 14px;
  color: var(--faded);
}

/* ---------- what stands + the foot ---------- */

.stands {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-block: 40px 24px;
}
.stands .k {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 16px;
  color: var(--fern);
}
.stands p { width: 1100px; max-width: 100%; font-size: 18px; line-height: 28px; color: var(--ink); }

.guide-foot {
  /* the artboard draws this as the full 1220 lane, back left / next right —
     without the width, .guide's centring collapses it to a centred blob and
     the next-guide pointer hides in the middle of the page */
  width: 1220px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px 64px;
  border-top: 1px solid var(--ink-22);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 18px;
}
.guide-foot .back { color: var(--faded); }
.guide-foot .next { color: var(--poppy); text-align: right; }

/* ---------- the index of guides ---------- */

.guide-index-head { padding-block: 72px 0; }
.guide-index-head h1 {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  line-height: 68px;
  color: var(--ink);
}
.guide-index-head p { width: 900px; max-width: 100%; padding-top: 18px; font-size: 21px; line-height: 31px; color: var(--ink); }
.guide-list {
  display: flex;
  flex-direction: column;
  padding-block: 44px 24px;
}
.guide-list a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--ink-22);
}
.guide-list a:last-child { border-bottom: 1px solid var(--ink-22); }
.guide-list .n {
  flex-shrink: 0;
  width: 44px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 18px;
  color: var(--faded);
}
.guide-list .t {
  flex-shrink: 0;
  width: 420px;
  max-width: 100%;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
  color: var(--ink);
  text-decoration: underline 1px;
  text-underline-position: from-font;
}
.guide-list .d { flex: 1 1 0; min-width: 0; font-size: 16px; line-height: 25px; color: var(--faded); }

@media (max-width: 1200px) {
  .guide-title { gap: 36px; padding-top: 56px; }
  .guide-title h1 { font-size: 50px; line-height: 56px; }
  .guide-index-head h1 { font-size: 50px; line-height: 56px; }
  .guide-list .t { width: 320px; font-size: 23px; line-height: 29px; }
}

@media (max-width: 900px) {
  .guide-title { flex-direction: column; align-items: flex-start; gap: 24px; }
  .before-note { flex-direction: column; gap: 8px; }
  .before-note { border-left-width: 3px; }
.before-note .k { width: auto; padding-top: 0; }
  .guide-list a { flex-wrap: wrap; gap: 8px 24px; }
  .guide-list .t { width: auto; flex: 1 1 100%; }
  .guide-list .d { flex: 1 1 100%; }
}

@media (max-width: 720px) {
  .guide-strip { padding-block: 11px; font-size: 11px; letter-spacing: 0.08em; }
  .guide-title { padding-top: 40px; }
  .guide-title h1, .guide-index-head h1 { font-size: 36px; line-height: 42px; }
  .guide-title .lede, .guide-index-head p { font-size: 18px; line-height: 28px; }
  .guide-steps { padding-top: 28px; }
  .step { gap: 14px; }
  .step > .n { width: 26px; font-size: 26px; line-height: 30px; }
  .step h2 { font-size: 21px; line-height: 26px; }
  .step p, .stands p { font-size: 17px; line-height: 26px; }
  .mono-box, .cmd-box { font-size: 13px; }
  .guide-foot { flex-direction: column; gap: 10px; }
  .guide-foot .next { text-align: left; }
}


/* utility classes standing in for the style="" the template used to emit, so
   the shipped CSP keeps style-src 'self' with no 'unsafe-inline'. */
.contents { display: contents; }
.rot--n7  { rotate: -7deg; }
.rot--n9  { rotate: -9deg; }
.rot--p8  { rotate: 8deg; }
.rot--p9  { rotate: 9deg; }
.check-box--pad { padding: 16px 20px; }
/* the Plaid plate's redaction patch, in percentages of its screenshot */
.shot-patch--plaid-client-id { left: 60%; top: 33.763%; width: 35.161%; }
