/* SPDX-License-Identifier: Apache-2.0 */
.page-grid.is-story > main.try-page { max-width: var(--w-wide); margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.try-intro { max-width: var(--w-text); margin-bottom: 2rem; }
.try-intro h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.04em; line-height: 1.04; margin: .4rem 0 1rem; }
.try-intro .lede { font-size: var(--t-lede); line-height: 1.5; }
.try-sheet { border: 1px solid var(--border-strong); border-radius: 16px; padding: 1.5rem; background: var(--surface); }
.try-steps li { margin: .6rem 0; line-height: 1.55; }
.try-page button, .try-page select, .try-page textarea, .try-page input { font: inherit; color: var(--shell-text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; }
.try-page :is(select, textarea, input) { border-color: var(--shell-faint); }
.try-page button, .try-page select, .try-page input { min-height: 46px; padding: .6rem .85rem; }
.try-page textarea { width: 100%; min-height: 7rem; padding: .7rem .85rem; line-height: 1.5; resize: vertical; }
.try-page input { width: 100%; max-width: 32ch; }
.try-page select { width: 100%; max-width: 60ch; }
.try-page button { cursor: pointer; font-weight: 500; }
.try-page button:hover { border-color: var(--shell-accent); }
.try-page button:disabled, .try-page button[aria-disabled="true"] { color: var(--shell-muted); cursor: default; border-color: var(--border); }
.try-announce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.try-ask { margin: .6rem 0 0; max-width: 75ch; }
.try-ask p { margin: 0; }
.try-page :is(button, select, textarea, input, summary, a, [tabindex]):focus-visible { outline: 3px solid var(--shell-accent); outline-offset: 3px; }
.try-bar { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.try-step { border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 1.25rem; }
.try-step h2 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); margin: 0 0 .8rem; }
.try-step h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; }
.try-page label { display: block; font-weight: 500; margin: 1rem 0 .4rem; }
.try-fine { color: var(--shell-muted); font-size: var(--t-fine); max-width: 75ch; }
.try-locked { margin-top: 1rem; }
.try-turn-off { border-left: 4px solid var(--shell-accent); padding-left: .85rem; line-height: 1.55; max-width: 75ch; }
.try-copies { display: flex; gap: .65rem; flex-wrap: wrap; margin: .75rem 0; }
.try-texts pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: var(--t-fine); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .75rem; }
.try-fake { margin-top: .75rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.try-fake h3 { margin: 0 0 .4rem; }
.try-fake p { margin: .3rem 0; overflow-wrap: anywhere; }
.try-arms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.try-set { min-width: 0; }
.try-deck-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.25rem; align-items: start; }
.try-answer { font-family: var(--sans); font-size: var(--t-body); line-height: 1.6; overflow-wrap: anywhere; background: var(--sheet); color: var(--ink); border: 1px solid var(--sheet-rule); border-radius: 12px; padding: 1rem; min-height: 8rem; }
.try-answer :is(h4, h5, h6) { color: var(--ink); margin: .6rem 0 .3rem; }
.try-answer pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); padding: .6rem; }
.try-answer code { font-family: var(--mono); }
.try-guide { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: var(--t-fine); line-height: 1.6; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .75rem; margin: 0; }
.try-scores { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.try-scores button { min-width: 46px; }
.try-scores button[aria-pressed="true"] { background: var(--shell-text); color: var(--surface); border-color: var(--shell-text); }
.try-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1rem; }
.try-actions .try-reveal { margin-left: auto; background: var(--shell-text); color: var(--surface); }
.try-actions .try-reveal:disabled { background: var(--surface); color: var(--shell-muted); }
.try-page [data-status], .try-page [role="status"] { font-size: .95rem; color: var(--shell-muted); min-height: 1.4em; }
.try-sentence { font-size: clamp(1.15rem, 3vw, 1.45rem); line-height: 1.45; border-left: 4px solid var(--shell-accent); padding-left: 1rem; }
.try-reading { margin: 0 0 .9rem; }
.try-reading h3 { margin: 0 0 .35rem; }
.try-sugar { line-height: 1.55; }
.try-reminder { font-weight: 600; }
.try-figures, .try-mapping { line-height: 1.6; }
.try-record { margin-top: 1.5rem; padding: 1.25rem; border: 2px solid var(--shell-accent); border-radius: 12px; }
.try-record pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: var(--t-fine); line-height: 1.55; margin: .3rem 0 1rem; }
.try-record code { overflow-wrap: anywhere; }
.try-record h3 { margin-top: 0; }
.try-record h4 { margin: 1rem 0 .3rem; font-size: 1rem; }
.try-caveats { border-top: 1px solid var(--border-strong); margin-top: 1.5rem; padding-top: .5rem; }
.try-caveats h2 { font-size: 1.15rem; }
.try-caveats li { margin: .45rem 0; max-width: 85ch; line-height: 1.5; }
.try-about { margin-top: 1.5rem; max-width: 80ch; }
.try-about summary { cursor: pointer; min-height: 44px; align-content: center; }
.try-page [hidden] { display: none !important; }
@media (max-width: 700px) {
  .page-grid.is-story > main.try-page { padding: 1.4rem .8rem 3rem; }
  .try-sheet { padding: .85rem; border-radius: 12px; }
  .try-arms, .try-deck-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .try-page select, .try-page input { max-width: none; }
}
@media print {
  header.site, footer.site, .jargon-cards, .page-toc, .try-intro, .try-about, .try-bar, .try-sheet > :not([data-result]), [data-result] > :not(.try-record) { display: none !important; }
  .try-sheet, .try-record { border: 1px solid var(--ink); }
  .try-page, .try-page * { color: var(--ink); background: var(--white); }
}
