/* BC will template page (layout 1b, Claude Design project "wisewill"). Uses tokens from style.css. */

/* Hero: navy text panel + the will sheet */
.wt-hero .hero-text h1 { font-size: 2.85rem; }
.wt-hero .hero-meta { font-family: var(--font-mono); font-size: 0.78rem; color: #b9c6d3; margin-top: 1.25rem; letter-spacing: 0.02em; }
.wt-sheet-wrap { position: relative; overflow: hidden; background: linear-gradient(160deg, #21476e, #1a3a5c); padding: 3.75rem 2.75rem 0; display: flex; align-items: flex-start; }
.wt-sheet { background: #fffefb; border: 1px solid #ded9cf; box-shadow: 0 1px 0 #ede8de, 0 18px 40px rgba(0, 0, 0, 0.28); transform: rotate(-1.6deg); transform-origin: 60% 100%; margin-bottom: -2.5rem; padding: 2.25rem 2.25rem 3.25rem; font: 0.9rem/1.8 var(--font-display); color: #222; width: 100%; }
.wt-sheet .wt-sheet-title { font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; margin-bottom: 1rem; }
.wt-sheet p { margin-bottom: 0.75rem; color: #222; max-width: none; }
.wt-line { display: inline-block; width: 9.5rem; border-bottom: 1px solid #333; height: 1em; vertical-align: baseline; }
.wt-line.short { width: 6rem; }

/* Shared */
.wt-wrap { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 2rem; }
.wt-section { padding: 3.25rem 0 0; }
.wt-section > h2, .wt-h2 { font-family: var(--font-display); font-size: 1.85rem; line-height: 1.25; color: var(--accent); margin-bottom: 0.75rem; text-wrap: balance; }
.wt-kicker { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8a6d1f; margin-bottom: 0.4rem; }
.wt-lede { font-size: 1.08rem; color: var(--text-secondary); max-width: 46rem; margin-bottom: 1.25rem; }
.wt-section p { margin-bottom: 1rem; }
.wt-section a { color: var(--accent-light); }

/* Number tiles */
.wt-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.85rem; list-style: none; padding: 0; margin: 0; }
.wt-tile { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 3px; padding: 1rem 1rem 0.85rem; }
.wt-tile b { display: block; font: 700 2.25rem/1 var(--font-display); color: var(--accent); }
.wt-tile span { display: block; font-size: 0.86rem; line-height: 1.45; color: var(--text-secondary); margin-top: 0.55rem; }
.wt-tile small { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: #8a6d1f; margin-top: 0.45rem; letter-spacing: 0.04em; }

/* Fits / get advice */
.wt-fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem; align-items: stretch; }
.wt-fit > div { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 1.25rem 1.35rem; }
.wt-fit h3 { font: 700 1.2rem/1.3 var(--font-display); color: var(--accent); margin-bottom: 0.5rem; }
.wt-fit ul { padding-left: 1.1rem; font-size: 0.95rem; }
.wt-fit li { margin-bottom: 0.35rem; }
.wt-fit .wt-ok { border-left: 4px solid #3b7a57; }
.wt-fit .wt-no { border-left: 4px solid #b4542a; }
.wt-fit figure { padding: 0; border: 0; background: none; margin: 0; }

/* Photos */
.wt-photo img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; border-radius: 3px; }
.wt-photo figcaption { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin-top: 0.4rem; }
.wt-photo figcaption a { color: inherit; }

/* Clause rows: the will on paper, the explanation beside it */
.wt-clauses { margin-top: 1.25rem; display: grid; gap: 0; }
.wt-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.25rem; align-items: stretch; }
.wt-paper { background: #fffefb; border-left: 1px solid #ded9cf; border-right: 1px solid #ded9cf; padding: 1.1rem 2rem; font: 1rem/1.85 var(--font-display); color: #222; }
.wt-row:first-child .wt-paper { border-top: 1px solid #ded9cf; padding-top: 1.75rem; }
.wt-row:last-child .wt-paper { border-bottom: 1px solid #ded9cf; padding-bottom: 1.75rem; box-shadow: 0 14px 24px -18px rgba(26, 58, 92, 0.35); }
.wt-paper p { margin: 0 0 0.6rem; }
.wt-paper strong { color: #111; }
.wt-num { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--gold); color: #1a1a1a; font: 700 0.78rem var(--font-body); margin-right: 0.5rem; vertical-align: 0.1em; }
/* An empty inline-block sits on its bottom edge, so the underline lands on the text baseline. */
.wt-blank { display: inline-block; position: relative; min-width: 9rem; border-bottom: 1px solid #333; height: 1em; vertical-align: baseline; }
.wt-blank > span { position: absolute; left: 0.1rem; top: 100%; margin-top: 0.15rem; font: 0.62rem/1.2 var(--font-body); color: #707070; white-space: nowrap; }
.wt-blank.wt-wide { min-width: 16rem; }
.wt-sign { margin-top: 0.4rem; }
.wt-two .wt-blank { min-width: 12rem; margin-right: 1.25rem; }
.wt-note { border-left: 3px solid var(--gold); padding: 1.1rem 0 1.1rem 1.1rem; font-size: 0.97rem; align-self: start; }
.wt-note h3 { font: 700 1.1rem/1.3 var(--font-display); color: var(--accent); margin-bottom: 0.3rem; }
.wt-note p { margin: 0; color: #333; }

/* Download band */
.wt-download { display: flex; flex-wrap: wrap; gap: 1.25rem 1.5rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 3px; padding: 1.35rem 1.5rem; margin-top: 2.25rem; }
.wt-download > div { flex: 1 1 18rem; }
.wt-download h3 { font: 700 1.2rem var(--font-display); color: var(--accent); margin-bottom: 0.2rem; }
.wt-download p { margin: 0; font-size: 0.95rem; color: var(--text-secondary); }
.wt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 4px; background: var(--gold); color: #1a1a1a !important; font-weight: 600; text-decoration: none; }
.wt-btn:hover { background: #d8ba66; }
.wt-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Signing: steps + drawing */
.wt-sign-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.wt-steps { counter-reset: s; list-style: none; padding: 0; margin: 0.5rem 0 0; }
.wt-steps li { counter-increment: s; position: relative; padding: 0 0 1rem 2.6rem; }
.wt-steps li::before { content: counter(s); position: absolute; left: 0; top: 0.1rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: #fff; font: 700 0.85rem/1.75rem var(--font-body); text-align: center; }
.wt-steps strong { color: var(--accent); }
.wt-drawing { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 1rem; }
.wt-drawing svg { width: 100%; height: auto; display: block; }
.wt-drawing figcaption { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; }

/* After you sign */
.wt-after { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.wt-after ul { padding-left: 1.1rem; }
.wt-after li { margin-bottom: 0.5rem; }

/* FAQ */
.wt-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 0.9rem 1.2rem; margin-bottom: 0.6rem; max-width: 52rem; }
.wt-faq summary { cursor: pointer; font: 700 1.05rem/1.4 var(--font-display); color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.wt-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wt-faq summary { list-style: none; gap: 1rem; }
.wt-faq summary::-webkit-details-marker { display: none; }
.wt-faq summary::after { content: "+"; margin-left: auto; font: 400 1.4rem/1 var(--font-body); color: var(--gold); }
.wt-faq details[open] summary::after { content: "\2013"; }
.wt-faq details p { margin: 0.5rem 0 0.25rem; }

.wt-sources { font-size: 0.92rem; color: var(--text-secondary); max-width: 52rem; }
.wt-sources ul { padding-left: 1.1rem; }
.wt-disclaimer a { color: var(--accent-light); }
.wt-disclaimer { margin: 2.5rem 0 3.5rem; padding: 1rem 1.25rem; border: 1px solid var(--border); background: #f3f1ec; font-size: 0.9rem; color: var(--text-secondary); max-width: 52rem; border-radius: 3px; }

@media (max-width: 980px) {
  .wt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wt-fit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wt-fit figure { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .wt-row, .wt-sign-grid, .wt-after { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .wt-row { margin-bottom: 1.25rem; }
  .wt-paper { border: 1px solid #ded9cf !important; padding: 1.1rem 1.25rem !important; box-shadow: none !important; }
  .wt-note { padding: 0.25rem 0 0.25rem 1rem; }
}
@media (max-width: 760px) {
  .wt-sheet-wrap { display: none; }
  .wt-hero .hero-text h1 { font-size: 2.1rem; }
}
@media (max-width: 560px) {
  .wt-wrap { padding: 0 1rem; }
  .wt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-fit { grid-template-columns: minmax(0, 1fr); }
  .wt-section > h2, .wt-h2 { font-size: 1.55rem; }
  .wt-blank { min-width: 7rem; }
  .wt-blank.wt-wide, .wt-two .wt-blank { min-width: 10rem; }
  .wt-download .wt-btn { width: 100%; }
}
@media print {
  nav, footer, .wt-hero .hero-actions, .wt-download, .wt-photo, .skip-link { display: none !important; }
}
