/* tw-sheet-gate.css - the operating sheet card and download popover (3F, 20 Oct 2026).
   Added to the 21 equipment pages by templates/sheet_gate.py. The popover's
   overlay, card, form and button come from the .tw-gate rules in tw-faq.css,
   which every article and tool page already loads; this file adds only the
   card above the Related list and the parts the calculator gate does not have. */

/* --- the card --- */
.tw-sheet {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin: 2.6em 0 0;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--tw-line, #d8e2dd);
  border-radius: var(--tw-radius, .6rem);
  background: #fff;
}
.tw-sheet-thumb {
  flex: 0 0 auto;
  width: 120px;
  height: auto;
  border: 1px solid var(--tw-line, #d8e2dd);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 .6rem 1.4rem rgba(0, 26, 13, .12);
  transform: rotate(-2deg);
}
.tw-sheet-body { min-width: 0; }
.tw-sheet-eyebrow {
  color: var(--tw-accent, #14663d);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tw-article .tw-sheet-title { margin: .25rem 0 .4rem; font-size: 1.3rem; line-height: 1.2; }
.tw-article .tw-sheet p { margin: 0 0 .9rem; color: var(--tw-ink-soft, #59645e); font-size: 1rem; line-height: 1.55; }
.tw-article .tw-sheet p.tw-sheet-action { margin: 0; }
.tw-sheet + .related { margin-top: 1.4em; }

@media screen and (max-width: 560px) {
  .tw-sheet { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.2rem; }
  .tw-sheet-thumb { width: 96px; }
}

/* --- the popover --- */
.tw-sheet-gate [hidden] { display: none !important; }
.tw-sheet-dialog:focus { outline: none; }
.tw-sheet-gate-top { display: flex; gap: 1rem; align-items: center; padding-right: 2rem; }
.tw-sheet-gate-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: auto;
  border: 1px solid #dae5e0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 .5rem 1.1rem rgba(0, 26, 13, .14);
}
.tw-sheet-dialog .tw-gate-title { font-size: clamp(1.35rem, 3.6vw, 1.75rem); }
.tw-sheet-dialog .tw-gate-intro { font-size: .98rem; }
.tw-sheet-dialog .tw-gate-note a { color: inherit; }
.tw-sheet-hp { display: none !important; }
.tw-sheet-dialog .tw-gate-select { cursor: pointer; }
.tw-sheet-dialog .tw-gate-select:invalid { color: #758079; }
.tw-sheet-dialog .tw-gate-select option { color: #111; }
.tw-sheet-done { margin-top: .4rem; }
.tw-sheet-done a { color: var(--tw-accent, #14663d); font-weight: 600; }
.tw-sheet-later {
  display: block;
  margin: .9rem auto 0;
  padding: .3rem .6rem;
  border: 0;
  background: none;
  color: #5c6360;
  font: inherit;
  font-size: .88rem;
  text-decoration: underline;
  cursor: pointer;
}
.tw-sheet-later:hover { color: #111; }

/* The reCAPTCHA box is a fixed 304 px. On a narrow phone, give the popover
   more of the screen and shrink the box to fit. */
@media screen and (max-width: 420px) {
  .tw-sheet-gate { padding: 12px; }
  .tw-sheet-dialog { padding: 26px 20px; }
  .tw-sheet-gate-thumb { width: 64px; }
  .tw-sheet-dialog .tw-gate-captcha { transform: scale(.9); transform-origin: 0 0; min-height: 70px; }
}
