/* JURIANSZ ESTATE SERVICES · tools in the new design (preview)
   Each tool keeps its own markup, script and working styles (confined to .t-sheet). These rules set the new look on top:
   the form is a navy panel with a gold top rule (the same panel as a service's detail), the answer is a sheet of paper
   with a bookmark beside it. */

/* the sheet wrapper is only a boundary for the old styles; the paper is the answer column */
.t-desk::before, .t-desk::after, .t-sheet::before { display: none; }
.t-sheet { padding: 0; background: none; box-shadow: none; }
.t-sheet .wrap, .t-sheetless .wrap { width: auto; max-width: none; margin: 0; padding: 0; }
.t-sheet .tool-body { padding: 0 !important; background: none; }
.t-page .t-sheet, .t-page .t-sheetless {
  --fh: 'Playfair Display', Georgia, serif; --fb: 'Instrument Sans', 'Space Grotesk', system-ui, sans-serif; --fm: var(--fb);
  --navy: #0B1F33; --gold: #C9A55C; --gold-d: var(--gold-600); --gold-ink: var(--gold-600); --slate: var(--paper-2); --char: var(--ink-900); --char-l: var(--ink-600); --line: var(--stone-300);
  font-family: var(--fb); color: var(--ink-600);
}

/* form on navy, answer on paper */
.t-sheet .tool-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 3.4vw, 64px); align-items: start; }
.t-sheet .inputs-panel, .t-sheet .config-panel { position: static; padding: clamp(28px, 3vw, 48px); border: 0; border-top: 3px solid var(--gold-400); box-shadow: 0 1px 0 rgb(0 0 0 / .1), 0 30px 50px -30px rgb(var(--ink-rgb) / .55); }
.t-sheet .ip-title, .t-sheet .cp-title { font: 600 clamp(1.5rem, 1.9vw, 2.125rem)/1.2 var(--fh); font-style: normal; color: var(--paper); margin-bottom: 8px; }
.t-sheet .ip-sub, .t-sheet .cp-sub { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid rgb(var(--paper-rgb) / .2); font-size: .875rem; line-height: 1.55; color: rgb(var(--paper-rgb) / .72); letter-spacing: 0; text-transform: none; }
.t-sheet .tool-grid > *:nth-child(2) { position: sticky; top: calc(var(--nav-h) + 24px); padding: clamp(44px, 4vw, 64px) clamp(24px, 3vw, 48px) clamp(28px, 3vw, 44px); background: var(--paper-hi); box-shadow: 0 1px 0 rgb(0 0 0 / .1), 0 26px 44px -26px rgb(var(--ink-rgb) / .5); min-height: 360px; }
.t-sheet .tool-grid > *:nth-child(2)::before { content: ""; position: absolute; right: clamp(24px, 3vw, 48px); top: 0; width: 30px; height: 48px; background: var(--gold-400); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
.t-sheet .results-panel, .t-sheet .results-placeholder, .t-sheet .rp-placeholder { position: static; }
.t-sheet .results-placeholder, .t-sheet .rp-placeholder { padding: clamp(20px, 3vw, 40px) 0; border: 0; background: none; text-align: left; color: var(--ink-600); }
.t-sheet .rp-title { font: 600 clamp(1.375rem, 1.7vw, 1.875rem)/1.2 var(--fh); color: var(--ink-900); }
/* buttons speak in the new voice: sentence case, no tracking */
.t-sheet .btn-calc, .t-sheet .btn-gen, .t-sheet .btn-start, .t-sheet .btn-p, .t-sheet .btn-restart, .t-sheet .btn-ghost { min-height: 52px; padding: 14px 26px; font: 600 1rem/1.2 var(--fb); letter-spacing: 0; text-transform: none; }
.t-sheet .btn-calc, .t-sheet .btn-gen, .t-sheet .btn-start { background: var(--gold-400); color: var(--ink-900); }
.t-sheet .btn-calc:hover, .t-sheet .btn-gen:hover, .t-sheet .btn-start:hover { background: var(--gold-300); }
.t-sheet button:focus-visible, .t-sheet a:focus-visible, .t-sheet summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.t-sheet .inputs-panel button:focus-visible, .t-sheet .config-panel button:focus-visible, .t-sheet.quiz-shell button:focus-visible { outline-color: var(--gold-300); }
/* the hard offset shadows of the old design become a gold top rule */
.t-sheet .result-cta, .t-sheet .cl-cta { box-shadow: none; border-top: 3px solid var(--gold-400); }
.t-sheet .tool-disc { margin-top: clamp(28px, 3vw, 44px); padding: 0 0 0 clamp(20px, 2vw, 30px); border: 0; border-left: 2px solid var(--gold-line); font-size: .9375rem; line-height: 1.6; color: var(--ink-600); max-width: 880px; }
@media (max-width: 1000px) { .t-sheet .tool-grid { grid-template-columns: 1fr; } .t-sheet .tool-grid > *:nth-child(2) { position: relative; top: auto; min-height: 0; } .t-sheet .rp-placeholder, .t-sheet .results-placeholder, .t-sheet .output-empty { display: block; } }

/* on a phone the answer sheet waits out of sight until it has something on it */
@media (max-width: 1000px) { .t-sheet .tool-grid > .is-empty { display: none; } }

/* the probate quiz: one navy stage, the questions on it */
.t-sheet.quiz-shell { display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 1040px; min-height: clamp(460px, 34vw, 600px); margin-inline: auto; padding: clamp(44px, 5vw, 84px) clamp(22px, 4vw, 72px); background: var(--ink-900); border-top: 3px solid var(--gold-400); box-shadow: 0 1px 0 rgb(0 0 0 / .1), 0 30px 54px -30px rgb(var(--ink-rgb) / .6); }
.t-sheet.quiz-shell .wc-sub { font-size: clamp(1.0625rem, 1.25vw, 1.3125rem); line-height: 1.6; color: rgb(var(--paper-rgb) / .86); max-width: 52ch; }
.t-sheet.quiz-shell .q-card, .t-sheet.quiz-shell .progress-wrap, .t-sheet.quiz-shell .welcome-card, .t-sheet.quiz-shell .result-card { width: min(760px, 100%); }
.t-sheet.quiz-shell .q-card { background: none; border: 0; border-top: 1px solid rgb(var(--paper-rgb) / .2); padding: clamp(24px, 3vw, 40px) 0 0; }
.t-sheet.quiz-shell .q-num { font-size: 2rem; color: var(--gold-300); font-style: normal; font-weight: 500; }
.t-sheet.quiz-shell .q-text { font-size: clamp(1.375rem, 2vw, 2rem); line-height: 1.25; color: var(--paper); }
.t-sheet.quiz-shell .opt { padding: 18px 22px; font-size: 1.0625rem; color: rgb(var(--paper-rgb) / .9); border-color: rgb(var(--paper-rgb) / .24); background: none; }
.t-sheet.quiz-shell .opt:hover, .t-sheet.quiz-shell .opt.selected { background: rgb(201 165 92 / .14); border-color: var(--gold-400); color: var(--paper); }
.t-sheet.quiz-shell .opt-letter { color: var(--gold-300); font-style: normal; }
.t-sheet.quiz-shell .progress-label { font-size: .75rem; letter-spacing: .14em; color: var(--gold-300); }
.t-sheet.quiz-shell .progress-bar { background: rgb(var(--paper-rgb) / .2); }
.t-sheet.quiz-shell .result-title, .t-sheet.quiz-shell .wc-title { color: var(--paper); }
.t-sheet.quiz-shell .result-body, .t-sheet.quiz-shell .rc-text { font-size: 1.0625rem; color: rgb(var(--paper-rgb) / .86); }

/* what follows a tool: reading, in the guide's voice */
.t-page .about { padding: clamp(48px, 5vw, 80px) 0 0; }
.t-page .about-wrap { max-width: 780px; }
.t-page .about h2 { margin: 1.9em 0 .7em; padding-top: 22px; font: 600 clamp(1.625rem, 2.1vw, 2.25rem)/1.18 var(--fh); letter-spacing: -.005em; color: var(--ink-900); background: linear-gradient(var(--gold-line), var(--gold-line)) 0 0 / 44px 2px no-repeat; }
.t-page .about h2:first-child { margin-top: 0; }
.t-page .about p, .t-page .about li { font-size: clamp(1.0625rem, 1.12vw, 1.25rem); line-height: 1.75; color: var(--ink-600); }
.t-page .related { margin-top: clamp(48px, 5vw, 80px); padding-top: 0; border: 0; }
.t-page .related-label { margin: 0 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-900); font: 600 .75rem/1.3 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-700); }
.t-page .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--cg); }
.t-page .rel-item { display: block; padding: 18px 0 20px; border: 0; border-bottom: 1px solid var(--stone-300); text-decoration: none; }
.t-page .rel-cat { margin-bottom: 6px; font: 600 .6875rem/1.3 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.t-page .rel-title { font: 600 1.1875rem/1.3 var(--fh); color: var(--ink-900); }
@media (hover: hover) { .t-page .rel-item:hover .rel-title { text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 4px; } }
@media (max-width: 800px) { .t-page .related-grid { grid-template-columns: 1fr; } }

/* phone pass (14 Nov): small labels inside tools stay readable */
@media (max-width: 1000px) { .t-sheet .field-label, .t-sheet .field-label span, .t-sheet .ti-sub, .t-sheet .cp-label, .t-sheet .progress-label { font-size: .8125rem; } }
