/* Draw Length Calculator V2 — utility-page scoping (ExtraArchery editorial style).
   Wide utility rail for the tool, readable measure for long-form copy.
   Scoped to body.page-drawlength; other pages unaffected. */

/* ── Rail ─────────────────────────────────────────────────────────── */
.page-drawlength .container-narrow {
  max-width: 1040px;
}
.page-drawlength .long-copy {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.page-drawlength .dl-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b7355;
  margin-bottom: 0.4rem;
}
.page-drawlength .dl-hero-sub {
  max-width: 640px;
}

/* ── Calculator card ──────────────────────────────────────────────── */
.dl-tool {
  background: #fffdf8;
  border: 1px solid rgba(45, 90, 39, 0.18);
  border-top: 4px solid #2d5a27;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(17, 40, 26, 0.09);
  padding: 2rem 1.75rem 1.9rem;
  margin: 1.6rem 0 1rem;
}
.dl-tool-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.dl-tool-head h2 {
  margin: 0;
  font-size: 1.5rem;
}
.dl-tool-head .dl-tool-note {
  font-size: 0.85rem;
  color: #5a6b5e;
}
.dl-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  align-items: flex-end;
  margin-bottom: 1.1rem;
}
.dl-field {
  flex: 1 1 240px;
  min-width: 200px;
}
.dl-field > label,
.dl-seg-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3c4a3f;
  margin-bottom: 0.45rem;
}
/* segmented unit control */
.dl-seg {
  display: inline-flex;
  border: 1px solid rgba(45, 90, 39, 0.35);
  border-radius: 999px;
  overflow: hidden;
  background: #f4f1e8;
}
.dl-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dl-seg label {
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3c4a3f;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.dl-seg input:checked + label {
  background: #2d5a27;
  color: #fffdf8;
}
.dl-seg input:focus-visible + label {
  outline: 2px solid #8b7355;
  outline-offset: -2px;
}
/* wingspan input with unit suffix */
.dl-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dl-input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  font-size: 1.05rem;
  border: 1px solid rgba(45, 90, 39, 0.35);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  min-height: 48px;
}
.dl-input-wrap input:focus-visible {
  outline: 2px solid #2d5a27;
  outline-offset: 1px;
}
.dl-unit-suffix {
  font-weight: 700;
  color: #2d5a27;
  min-width: 2.2rem;
}
.dl-hint {
  display: block;
  font-size: 0.8rem;
  color: #5a6b5e;
  margin-top: 0.35rem;
}
/* bow context: selectable cards */
.dl-bow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.dl-bow-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dl-bow-row label {
  flex: 1 1 150px;
  border: 1px solid rgba(45, 90, 39, 0.3);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3c4a3f;
  background: #fbf9f3;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dl-bow-row input:checked + label {
  border-color: #2d5a27;
  background: rgba(45, 90, 39, 0.09);
  color: #1c3b23;
  box-shadow: inset 0 0 0 1px #2d5a27;
}
.dl-bow-row input:focus-visible + label {
  outline: 2px solid #8b7355;
  outline-offset: 1px;
}
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.dl-actions .btn {
  min-height: 48px;
}
.dl-actions .btn-primary {
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
}
.dl-actions .btn-secondary {
  font-size: 0.88rem;
}
.dl-error {
  margin-top: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #fbf0ef;
  border: 1px solid #c53030;
  color: #7a1f1d;
  font-size: 0.9rem;
}

/* ── Result card ──────────────────────────────────────────────────── */
#dl-output {
  min-height: 3rem;
}
.dl-result {
  margin-top: 1.4rem;
  background: #11281a;
  border: 1px solid rgba(139, 115, 85, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  color: #e8ecf1;
}
.dl-result-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9b18a;
  margin-bottom: 0.5rem;
}
.dl-result-big {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fffdf8;
}
.dl-result-sub {
  font-size: 1.05rem;
  color: #c9b18a;
  margin-bottom: 0.9rem;
}
.dl-result-meta {
  font-size: 0.9rem;
  color: #b8c4bb;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(200, 210, 200, 0.18);
  border-bottom: 1px solid rgba(200, 210, 200, 0.18);
  margin-bottom: 0.9rem;
}
.dl-status-chip {
  display: inline-block;
  background: rgba(201, 177, 138, 0.14);
  color: #e6d3ae;
  border: 1px solid #8b7355;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.dl-result p {
  font-size: 0.93rem;
  color: #d6ded8;
  margin-bottom: 0.6rem;
}
.dl-result a {
  color: #e6d3ae;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dl-result .dl-result-link {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ── Schematic / chart row ────────────────────────────────────────── */
.dl-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
  align-items: start;
  margin: 1.5rem 0;
}
.dl-svg-box {
  background: #fffdf8;
  border: 1px solid rgba(45, 90, 39, 0.18);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}
.dl-svg-box svg {
  width: 100%;
  max-width: 390px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.dl-svg-box .dl-svg-note {
  font-size: 0.82rem;
  color: #5a6b5e;
  margin-top: 0.5rem;
}
.dl-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: dlstep;
}
.dl-steps li {
  counter-increment: dlstep;
  position: relative;
  padding: 0.6rem 0 0.6rem 2.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.dl-steps li::before {
  content: counter(dlstep);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(45, 90, 39, 0.1);
  color: #2d5a27;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dl-tip {
  margin-top: 0.9rem;
  background: #f7f3e7;
  border: 1px solid rgba(139, 115, 85, 0.4);
  border-left: 4px solid #8b7355;
  border-radius: 0 10px 10px 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
}
.dl-tip strong {
  color: #6b5636;
}

/* ── Reference chart ──────────────────────────────────────────────── */
.dl-chart {
  margin: 1.5rem 0;
  background: #fffdf8;
  border: 1px solid rgba(45, 90, 39, 0.18);
  border-radius: 14px;
  overflow: hidden;
}
.dl-chart-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dl-chart table {
  width: 100%;
  min-width: 340px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.dl-chart th,
.dl-chart td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(45, 90, 39, 0.1);
}
.dl-chart th {
  background: #f0ede3;
  color: #2d5a27;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: sticky;
  top: 0;
}
.dl-chart td:first-child {
  font-weight: 600;
}
.dl-chart td:not(:first-child) {
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding-right: 1.4rem;
}
.dl-chart th:not(:first-child) {
  text-align: right;
  padding-right: 1.4rem;
}
.dl-chart tr:nth-child(even) td {
  background: #fbf9f3;
}
.dl-chart tr:last-child td {
  border-bottom: none;
}
.dl-chart-note {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: #5a6b5e;
  border-top: 1px solid rgba(45, 90, 39, 0.1);
  background: #fbf9f3;
}

/* ── Comparison cards (estimate vs actual, compound vs recurve) ───── */
.dl-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.dl-compare-card {
  background: #fffdf8;
  border: 1px solid rgba(45, 90, 39, 0.18);
  border-left: 4px solid #2d5a27;
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.2rem;
}
.dl-compare-card.alt {
  border-left-color: #8b7355;
}
.dl-compare-card h3 {
  color: #111827 !important;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}
.dl-compare-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.93rem;
}
.dl-compare-card li {
  margin-bottom: 0.4rem;
}

/* ── 3-step decision path ─────────────────────────────────────────── */
.dl-path {
  counter-reset: dlpath;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin: 1.4rem 0;
}
.dl-path-step {
  counter-increment: dlpath;
  background: #fffdf8;
  border: 1px solid rgba(45, 90, 39, 0.2);
  border-top: 3px solid #2d5a27;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(17, 40, 26, 0.06);
  padding: 1.05rem 1.15rem 1.1rem;
  font-size: 0.94rem;
}
.dl-path-step strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #1c3b23;
}
.dl-path-step::before {
  content: "Step " counter(dlpath);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b7355;
  margin-bottom: 0.45rem;
}

/* ── Worked examples ──────────────────────────────────────────────── */
.dl-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.4rem 0;
}
.dl-example {
  text-align: center;
  padding: 0.8rem 0.6rem;
  border-top: 2px solid rgba(45, 90, 39, 0.35);
}
.dl-example .dl-example-in {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3c4a3f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dl-example .dl-example-arrow {
  color: #8b7355;
  font-size: 1.1rem;
  margin: 0.15rem 0;
}
.dl-example .dl-example-num {
  font-size: 2rem;
  font-weight: 800;
  color: #2d5a27;
  line-height: 1.15;
}
.dl-example .dl-example-eq {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6b5e;
  margin-top: 0.25rem;
}

/* ── Arrow-length clarification box ───────────────────────────────── */
.dl-clarify {
  background: #faf6ec;
  border: 1px solid rgba(139, 115, 85, 0.32);
  border-radius: 10px;
  padding: 0.9rem 1.05rem;
  margin: 1.5rem 0;
}
.dl-clarify h3 {
  color: #111827 !important;
  margin-bottom: 0.5rem;
}
.dl-clarify p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.dl-clarify p:last-child {
  margin-bottom: 0;
}

/* ── Compact related reading ──────────────────────────────────────── */
.dl-related {
  margin: 1.8rem 0 0.5rem;
}
.dl-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.9rem;
  max-width: 900px;
}
.dl-related-card {
  background: #fffdf8;
  border: 1px solid rgba(45, 90, 39, 0.22);
  border-left: 3px solid #2d5a27;
  border-radius: 0 10px 10px 0;
  padding: 0.8rem 0.95rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 60px;
}
.dl-related-card:hover,
.dl-related-card:focus-visible {
  border-color: #2d5a27;
  box-shadow: 0 4px 14px rgba(17, 40, 26, 0.09);
  outline: none;
}
.dl-related-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #2d5a27;
}
.dl-related-line {
  font-size: 0.8rem;
  color: #5a6b5e;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .dl-split {
    grid-template-columns: 1fr;
  }
  .dl-path {
    grid-template-columns: 1fr;
  }
  .dl-examples {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .dl-compare {
    grid-template-columns: 1fr;
  }
  .dl-related-grid {
    grid-template-columns: 1fr;
  }
  .dl-tool {
    padding: 1.35rem 1.05rem;
    border-radius: 12px;
  }
  .dl-result-big {
    font-size: 2.2rem;
  }
  .dl-actions .btn {
    flex: 1 1 auto;
  }
}

/* ── V3 polish: short-answer strip ────────────────────────────────── */
.dl-short-note {
  max-width: 760px;
  margin: 0.2rem auto 1.4rem;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  color: #3c4a3f;
  background: #f7f3e7;
  border-left: 3px solid #8b7355;
  border-radius: 0 10px 10px 0;
}

/* ── V3 polish: sources list ───────────────────────────────────────── */
.dl-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.2rem 0 0.4rem;
}
.dl-source {
  background: #fffdf8;
  border: 1px solid rgba(45, 90, 39, 0.15);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.dl-source h3 {
  color: #111827 !important;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.dl-source p {
  font-size: 0.86rem;
  color: #3c4a3f;
  margin-bottom: 0.4rem;
}
.dl-source a {
  font-size: 0.86rem;
  font-weight: 600;
  color: #2d5a27;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 700px) {
  .dl-sources {
    grid-template-columns: 1fr;
  }
}

/* ── V3 polish: FAQ focus states ──────────────────────────────────── */
.page-drawlength .faq-question:focus-visible {
  outline: 2px solid #8b7355;
  outline-offset: 2px;
}
