/* ============================================================
   ScreenTime Nanny — screen time contract builder
   Loaded after home.css (tokens, nav, buttons, footer).
   ============================================================ */

.tool-wrap { padding-top: 46px; padding-bottom: 72px; }
.tool-head { max-width: 680px; }
.tool-head .lede { margin-top: 16px; }

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
  margin-top: 40px;
}

/* Form ------------------------------------------------------- */
.tool-form {
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  position: sticky;
  top: 20px;
}
.form-note { font-size: 14.5px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.55; }
.f { display: block; margin-bottom: 14px; }
.f > span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.f input {
  width: 100%;
  font-family: var(--font);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.f input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.f-set { border: 0; padding: 0; margin: 24px 0 0; }
.f-set legend {
  padding: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.set-note { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 0 0 10px; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; cursor: pointer; }
.chk input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--teal); flex: 0 0 auto; }
.chk span { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.chk:hover span { color: var(--ink); }

.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.form-fine { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; line-height: 1.5; }

/* The contract itself ---------------------------------------- */
.sheet-wrap { min-width: 0; }
.contract-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 3.4vw, 46px);
  color: var(--ink);
}
.cs-head { border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 22px; }
.cs-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 8px;
}
.cs-title { font-size: clamp(23px, 2.6vw, 31px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0; }
.cs-amp { color: var(--ink-3); font-weight: 500; }

.cs-block { margin-bottom: 20px; }
.cs-block h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 9px;
}
.cs-dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 5px 14px; margin: 0; }
.cs-dl dt { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.cs-dl dd { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.cs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cs-list li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; }
.cs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.cs-p { font-size: 14.5px; line-height: 1.5; margin: 0; }

.cs-sign { display: grid; grid-template-columns: 1fr 1fr 0.7fr; gap: 16px; margin: 30px 0 16px; }
.cs-line { display: block; border-bottom: 1.5px solid var(--ink); height: 30px; }
.cs-cap { display: block; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.cs-foot { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.cs-src { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.02em; }

/* Notes below ------------------------------------------------ */
.tool-notes { max-width: 760px; margin: 64px auto 0; }
.tool-ol { margin: 22px 0 0; padding-left: 22px; display: grid; gap: 11px; }
.tool-ol li { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.tool-ol li::marker { color: var(--teal); font-weight: 700; }
.tool-ol strong { color: var(--ink); font-weight: 650; }
.tool-more { margin: 22px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.tool-more a { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tool-notes .post-cta { margin-top: 40px; }
.tool-notes .post-cta .btn { color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-form { position: static; }
}

/* Print: the sheet, and nothing else ------------------------- */
@media print {
  .mesh, .nav, .foot, .tool-head, .tool-form, .tool-notes { display: none !important; }
  html, body { background: #fff !important; }
  .wrap, .tool-wrap { max-width: none; padding: 0 !important; margin: 0 !important; }
  .tool-grid { display: block; margin: 0; gap: 0; }
  .contract-sheet {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    color: #000;
  }
  .cs-eyebrow, .cs-block h3 { color: #000; }
  .cs-list li::before { background: #000; }
  .cs-dl dt, .cs-cap, .cs-src { color: #444; }
  .cs-foot { color: #333; border-top-color: #bbb; }
  .cs-block { margin-bottom: 16px; break-inside: avoid; }
  .cs-sign { break-inside: avoid; }
  @page { margin: 14mm; }
}
