/* vertoKit — tool detail page styles.
   A single clean layout shared by all tool pages, modelled on the approved
   reference site. The shell is identical; the content is per-tool. */

/* ---------------- HERO ---------------- */
.td-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 26px 0 34px; }
.td-hero .breadcrumb { margin-bottom: 22px; }
.td-hero-main { display: flex; align-items: center; gap: 20px; }
.td-hero .dh-ic { flex: none; width: 66px; height: 66px; border-radius: 16px; background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
.td-hero .dh-ic svg { width: 34px; height: 34px; }
.td-hero-copy h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 4vw, 2.35rem); line-height: 1.15; font-weight: 850; letter-spacing: -.02em; }
.td-tagline { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 720px; }

/* ---------------- WORK BENCH / CARD ---------------- */
.td-workbench.workbench { display: block; grid-template-columns: none; padding: 30px 0 8px; }
.td-card { display: block; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; }
.td-card.td-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.td-input { padding: 26px; min-width: 0; }
.td-split .td-input { border-right: 1px solid var(--line); }
.td-output { padding: 26px; min-width: 0; background: #f6f8fb; }
.td-fields { display: grid; gap: 18px; }
.td-fields-2 { grid-template-columns: 1fr 1fr; }
.td-field label, .wb-field > label { display: block; font-size: .86rem; font-weight: 800; margin-bottom: 7px; color: var(--text); }
.wb-field { min-width: 0; }
.wb-field .hint { font-size: .78rem; color: var(--muted); margin: 5px 0 0; }
.td-card input[type=text], .td-card input[type=number], .td-card input[type=date],
.td-card input[type=time], .td-card input[type=datetime-local], .td-card input:not([type]),
.td-card textarea, .td-card select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font-size: .94rem; background: #fff; color: var(--text); font-family: inherit;
}
.td-card textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.td-fields-2 textarea { min-height: 230px; }
.td-card input:focus, .td-card textarea:focus, .td-card select:focus { outline: none; border-color: var(--accent, var(--brand)); box-shadow: 0 0 0 3px rgba(42,91,156,.12); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input { flex: 1; accent-color: var(--accent, var(--brand)); }
.range-row b { color: var(--accent, var(--brand)); min-width: 56px; text-align: right; font-size: .9rem; }
.check-row { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; }
.dropzone { display: grid !important; justify-items: center; text-align: center; gap: 6px;
  border: 2px dashed var(--line); border-radius: 12px; padding: 34px 18px; cursor: pointer;
  background: var(--surface); transition: border-color .15s, background .15s; }
.dropzone:hover { border-color: var(--accent, var(--brand)); background: var(--brand-soft); }
.dropzone .dz-ic { width: 42px; height: 42px; color: var(--accent, var(--brand)); }
.dropzone h3 { margin: 4px 0 0; font-size: 1rem; }
.dropzone p { margin: 0; color: var(--muted); font-size: .85rem; }
.dropzone input[type=file] { display: none; }

.td-actions { display: flex; gap: 10px; margin-top: 22px; }
.td-run { flex: 1; font-size: 1rem; padding: 13px 20px; }
.btn.btn-quiet { background: #fff; border: 1px solid var(--line); color: var(--muted); padding: 13px 18px; }
.btn.btn-quiet:hover { border-color: var(--accent, var(--brand)); color: var(--accent, var(--brand)); }
.td-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.td-result-head h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.td-result-tools { display: flex; gap: 8px; }
.td-result-tools .btn { padding: 7px 12px; font-size: .8rem; }
.result-body { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 18px;
  min-height: 360px; overflow: auto; }
.result-body .rplaceholder { display: grid; place-items: center; min-height: 320px; color: var(--muted); text-align: center; gap: 8px; }
.result-empty-ic { width: 52px; height: 52px; color: var(--line); }
.result-note { font-size: .84rem; font-weight: 700; color: var(--ok); min-height: 1.2em; margin-top: 10px; }
.result-note.err { color: var(--danger); }
.td-stack .td-output { border-top: 1px solid var(--line); }
.td-compare .td-output { border-top: 1px solid var(--line); }

/* ---------------- CONTENT SECTIONS ---------------- */
.td-section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.td-sec-head { margin-bottom: 22px; }
.td-kicker { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  color: var(--accent, var(--brand)); background: var(--brand-soft); padding: 5px 11px; border-radius: 20px; }
.td-sec-head h2 { margin: 10px 0 0; font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 820; letter-spacing: -.01em; }
.td-lead { margin: 0; font-size: 1.05rem; line-height: 1.8; color: #403c44; max-width: 860px; }

.td-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.td-feature { display: flex; gap: 14px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-size: .96rem; line-height: 1.6; }
.td-feature-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft);
  color: var(--accent, var(--brand)); display: grid; place-items: center; }
.td-feature-ic svg { width: 17px; height: 17px; }

.td-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.td-step { display: flex; gap: 18px; align-items: flex-start; }
.td-step-n { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent, var(--brand));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.td-step h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.td-step p { margin: 0; color: #4c4852; line-height: 1.7; }

.td-notes-wrap h3 { font-size: 1.02rem; margin: 24px 0 10px; }
.td-notes-wrap h3:first-child { margin-top: 0; }
.td-notes { margin: 0; padding-left: 20px; color: #4c4852; line-height: 1.8; }
.td-notes li { margin-bottom: 6px; }
.td-faqs { border-top: 1px solid var(--line); }
.td-faq { border-bottom: 1px solid var(--line); }
.td-faq summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 700; }
.td-faq summary::-webkit-details-marker { display: none; }
.td-faq summary::after { content: '+'; float: right; color: var(--accent, var(--brand)); font-size: 1.2rem; }
.td-faq[open] summary::after { content: '\2212'; }
.td-faq p { margin: 0 0 16px; color: #4c4852; line-height: 1.75; }

.td-tip-line { margin: 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent, var(--brand)); border-radius: 12px; color: #4c4852; font-size: .98rem; line-height: 1.7; }

.td-related { border-bottom: 0; }
.td-rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.td-rel { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 12px; color: var(--text); background: #fff; transition: border-color .15s, transform .15s; }
.td-rel:hover { border-color: var(--accent, var(--brand)); transform: translateY(-2px); text-decoration: none; }
.td-rel-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.td-rel-ic svg { width: 21px; height: 21px; }
.td-rel span { display: grid; min-width: 0; }
.td-rel b { font-size: .95rem; }
.td-rel small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- UNDERSTAND (complex tools) ---------------- */
.td-example { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.15fr); gap: 14px; align-items: stretch; margin-bottom: 26px; }
.td-ex-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.td-ex-out { background: var(--surface); }
.td-ex-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  color: var(--accent, var(--brand)); margin-bottom: 12px; }
.td-ex-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.td-ex-row:last-child { border-bottom: 0; }
.td-ex-label { flex: none; min-width: 92px; color: var(--muted); font-weight: 700; }
.td-ex-val { color: #33303a; word-break: break-word; }
.td-ex-arrow { display: grid; place-items: center; color: var(--accent, var(--brand)); font-size: 1.7rem; font-weight: 700; }
.td-ex-output { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem;
  line-height: 1.65; white-space: pre-wrap; word-break: break-word; color: #33303a; max-height: 260px; overflow: auto; }
.td-under-detail { max-width: 860px; }
.td-under-lead { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.8; color: #403c44; }
.td-under-h3 { font-size: 1.02rem; margin: 24px 0 10px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 720px) {
  .td-example { grid-template-columns: 1fr; }
  .td-ex-arrow { transform: rotate(90deg); height: 26px; }
}
@media (max-width: 860px) {
  .td-card.td-split { grid-template-columns: 1fr; }
  .td-split .td-input { border-right: 0; border-bottom: 1px solid var(--line); }
  .td-features, .td-rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .td-hero { padding: 20px 0 26px; }
  .td-hero-main { gap: 14px; }
  .td-hero .dh-ic { width: 52px; height: 52px; border-radius: 13px; }
  .td-hero .dh-ic svg { width: 27px; height: 27px; }
  .td-fields-2 { grid-template-columns: 1fr; }
  .td-input, .td-output { padding: 18px; }
  .td-result-head { flex-direction: column; align-items: flex-start; }
}
