/* ============================================================
   Guides · the reading layer of kitimmodeluxe.com.

   Loaded AFTER pro.css, from which it inherits the wine/beige identity, the
   type stack and the header. What it adds is what a pitch page never needs: a
   measured reading column, a table of contents, copy blocks, and the generator.

   Reading, not selling: line length is capped near 68 characters, contrast is
   raised against the pitch, and nothing moves on scroll. Somebody landing here
   is mid task and looking for one sentence.
   ============================================================ */

.guide {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 7vw, 96px) var(--pad) clamp(60px, 10vw, 140px);
}

.guide-eyebrow { margin-bottom: 26px; }

.guide-h1 {
  font-family: var(--ui);
  font-weight: 300;
  font-size: clamp(34px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 17ch;
  margin-bottom: 26px;
}

.guide-lede {
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.5;
  font-weight: 300;
  max-width: 60ch;
  color: var(--beige);
  margin-bottom: 40px;
}

/* ---------- disclaimer ---------- */

.guide-warn {
  border-left: 2px solid var(--gold);
  padding: 16px 0 16px 20px;
  margin: 0 0 44px;
  max-width: 68ch;
}
.guide-warn p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--beige-dim);
}
.guide-warn strong { color: var(--gold); font-weight: 500; }

/* ---------- table of contents ---------- */

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.guide-toc a {
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--beige-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.guide-toc a:hover { color: var(--beige); border-bottom-color: var(--gold); }

/* ---------- blocks ---------- */

.guide-block {
  max-width: 68ch;
  margin-bottom: clamp(48px, 7vw, 84px);
  scroll-margin-top: 90px;
}
.guide-block h2 {
  font-family: var(--ui);
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.guide-block h3 {
  font-family: var(--ui);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 0.01em;
  margin: 32px 0 10px;
  color: var(--gold);
}
.guide-block p {
  font-size: 16.5px;
  line-height: 1.72;
  font-weight: 300;
  color: var(--beige-dim);
  margin-bottom: 16px;
}
.guide-block__lede { color: var(--beige); }
.guide-block strong { color: var(--beige); font-weight: 500; }
.guide-block a,
.guide-link {
  color: var(--beige);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent);
}
.guide-block a:hover, .guide-link:hover { text-decoration-color: var(--gold); }

.guide-list, .guide-steps {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.guide-list li, .guide-steps li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--beige-dim);
}
.guide-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 9px;
  height: 1px;
  background: var(--gold);
}
.guide-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.guide-source {
  font-size: 13px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--beige) 52%, transparent);
  margin-top: 14px;
  max-width: 62ch;
}
.guide-source a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.guide-source a:hover { color: var(--beige); }

/* ---------- copy block ---------- */

.guide-copy {
  position: relative;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--wine-deep) 70%, transparent);
  padding: 22px 24px;
  margin: 24px 0 18px;
}
.guide-copy__text {
  font-size: 16px;
  line-height: 1.62;
  color: var(--beige);
  white-space: pre-wrap;
  margin: 0;
  font-weight: 400;
}
.guide-copy__btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--beige-dim);
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.guide-copy__btn:hover { color: var(--beige); border-color: var(--gold); }
.guide-copy__btn.is-done { color: var(--gold); border-color: var(--gold); }

/* ---------- the generator ---------- */

.guide-gen { display: grid; gap: 30px; margin: 26px 0 8px; }
.guide-gen__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 20px;
}
.guide-field { border: 0; min-width: 0; }
.guide-field[hidden] { display: none; }
.guide-field legend {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--beige) 58%, transparent);
  margin-bottom: 6px;
  padding: 0;
}
.guide-field input,
.guide-field select {
  width: 100%;
  font-family: var(--ui);
  font-size: 15px;
  color: var(--beige);
  background: color-mix(in srgb, var(--wine-deep) 70%, transparent);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.guide-field select {
  /* Native arrow disappears with appearance:none; draw a discreet one. */
  background-image: linear-gradient(45deg, transparent 50%, var(--beige-dim) 50%),
    linear-gradient(135deg, var(--beige-dim) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.guide-field input:focus,
.guide-field select:focus { outline: none; border-color: var(--gold); }
.guide-field input::placeholder { color: color-mix(in srgb, var(--beige) 30%, transparent); }
/* The dropdown list itself is painted by the OS, which ignores our palette:
   force a readable pair rather than beige text on a white system menu. */
.guide-field select option { color: #1a1a1a; background: #f6e7d8; }

.guide-gen__out {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--wine-deep) 55%, transparent);
  padding: 20px 22px;
}
.guide-gen__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.guide-gen__head h3 {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--beige-dim);
  margin: 0;
}
.guide-gen__head .guide-copy__btn { position: static; }
.guide-gen__pre {
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.66;
  color: var(--beige);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.guide-gen__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gold);
  margin: 14px 0 0;
}
.guide-gen__note:empty { display: none; }

/* ---------- comparison table ---------- */

.guide-table {
  border-top: 1px solid var(--line);
  margin: 22px 0 14px;
}
.guide-table__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--beige-dim);
}
.guide-table__row--head {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--beige) 52%, transparent);
}
@media (max-width: 620px) {
  .guide-table__row { grid-template-columns: 1fr; gap: 4px; }
  .guide-table__row--head { display: none; }
  .guide-table__row span:first-child { color: var(--beige); }
}

/* ---------- FAQ ---------- */

.guide-faq { margin: 0; }
.guide-faq__item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.guide-faq dt {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--beige);
  margin-bottom: 8px;
}
.guide-faq dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--beige-dim);
}

/* ---------- outro ---------- */

.guide-outro {
  max-width: 68ch;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: clamp(40px, 6vw, 70px);
}
.guide-outro__title {
  font-family: var(--ui);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.16;
  margin-bottom: 16px;
}
.guide-outro p {
  font-size: 16.5px;
  line-height: 1.72;
  font-weight: 300;
  color: var(--beige-dim);
  margin-bottom: 16px;
}
.guide-outro__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 26px;
}
.guide-outro__links .guide-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--beige-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
}
.guide-outro__links .guide-link:hover { color: var(--beige); border-bottom-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .guide-toc a, .guide-copy__btn, .guide-outro__links .guide-link { transition: none; }
}

/* ---------- the tool, when it opens the page ----------
   Set apart from the reading column: wider, boxed, and clearly a thing you use
   rather than a thing you read. Without this it looks like the first chapter of
   an article, which is exactly the impression the reordering set out to kill. */
.guide-block--tool {
  max-width: none;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: color-mix(in srgb, var(--wine-deep) 42%, transparent);
  padding: clamp(22px, 3.4vw, 38px);
  margin-bottom: clamp(40px, 6vw, 66px);
}
.guide-tool__h {
  font-size: clamp(19px, 2.4vw, 25px) !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
}
.guide-block--tool .guide-block__lede { max-width: 62ch; }
/* Inside the boxed tool the output already sits on a panel; a second inset
   frame would read as a box in a box. */
.guide-block--tool .guide-gen__out { background: color-mix(in srgb, var(--wine-deep) 78%, transparent); }
