.staple-page { background: #f1f0ea; color: #20352d; }
.staple-page .page-shell { width: min(1120px, calc(100% - 28px)); }
.staple-page .brand-symbol { width: 32px; height: 32px; flex: 0 0 32px; }
.staple-page .brand-symbol svg { display: block; width: 32px; height: 32px; }
.staple-main { padding-top: 4px; }
.staple-crumb { margin: 0 0 12px; color: #52665a; font-size: .88rem; }
.staple-hero { padding: 20px 0 22px; border-top: 4px solid #20352d; }
.staple-hero h1 { max-width: 24ch; margin: 0 0 10px; font-size: clamp(1.95rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.staple-hero p { margin: 0; max-width: 68ch; color: #496352; font-size: 1.03rem; line-height: 1.55; }
.staple-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
#staple-form { padding: 24px; background: #fffefa; border: 1px solid #cbd5cb; min-width: 0; }
.staple-page h2 { font-size: 1.45rem; letter-spacing: -.025em; margin: 0 0 12px; line-height: 1.2; text-wrap: balance; }
.staple-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.staple-fields label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: .94rem; font-weight: 650; }
.staple-fields input, .staple-fields select { min-width: 0; width: 100%; min-height: 48px; padding: 8px 10px; border: 1px solid #92ac9a; border-radius: 3px; background: white; color: #20352d; font: inherit; font-variant-numeric: tabular-nums; }
.staple-fields select { font-size: .9rem; }
.staple-help { font-size: .85rem; line-height: 1.5; color: #52665a; margin: 10px 0 0; }
.staple-package-fields { min-width: 0; padding: 18px 0 0; border: 0; border-top: 1px solid #cad5cc; margin: 22px 0 16px; }
.staple-package-fields legend { padding-right: 8px; font-weight: 750; }
.staple-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; }
.staple-page button { min-height: 44px; padding: 9px 13px; border-radius: 3px; font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgb(32 53 45 / 12%); }
.staple-primary { border: 1px solid #20352d; background: #20352d; color: #fffefa; font-weight: 750; }
.staple-example, .staple-copy { border: 1px solid #728e78; background: #fffefa; color: #20352d; }
.staple-clear { border: 0; background: transparent; color: #435e4b; text-decoration: underline; text-underline-offset: 3px; }
.staple-result { padding: 24px; min-width: 0; background: #e6eee4; border: 1px solid #b4c7b5; border-top: 5px solid #315f42; }
#staple-status { margin: 0 0 15px; line-height: 1.5; color: #3c5845; }
.staple-answer { display: flex; flex-direction: column; gap: 5px; padding-bottom: 14px; border-bottom: 1px solid #aec5af; }
.staple-answer strong { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.staple-answer span { color: #49604d; }
.staple-ledger { margin: 18px 0; }
.staple-ledger > div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid #c1d0bd; }
.staple-ledger dt { font-size: .9rem; }
.staple-ledger dd { min-width: 0; margin: 0; text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.staple-scope { margin: 18px 0 0; font-size: .83rem; line-height: 1.5; color: #506252; }
.staple-copy { margin-top: 4px; }
#staple-copy-status { min-height: 1.5em; font-size: .85rem; margin: 8px 0 0; }
#staple-copy-fallback { width: 100%; margin-top: 8px; font: inherit; }
.staple-page [hidden] { display: none !important; }
.staple-figure { margin: 28px 0; }
.staple-figure img { display: block; width: 100%; height: auto; border: 1px solid #c5d1c5; }
.staple-figure figcaption { padding-top: 9px; font-size: .88rem; line-height: 1.5; color: #53665a; }
.staple-section { max-width: 76ch; margin: 36px 0; }
.staple-section p { line-height: 1.65; margin: 10px 0; }
.staple-method { padding: 18px 20px; border-left: 4px solid #315f42; background: #e7ece3; line-height: 1.8; font-size: .94rem; overflow-wrap: anywhere; }
.staple-method code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.staple-faq details { padding: 14px 0; border-top: 1px solid #c1d0c0; }
.staple-faq summary { font-weight: 750; cursor: pointer; line-height: 1.5; }
.staple-related { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 22px 0; border-top: 1px solid #b9cbbd; }
.staple-page :is(input, select, button, a, summary):focus-visible { outline: 3px solid #af6e2f; outline-offset: 3px; }
.staple-page button:hover, .staple-related a:hover { color: #194d39; }
.staple-page button:active { transform: translateY(1px); }
@media (max-width: 760px) {
  .staple-page .site-header { padding-top: 16px; padding-bottom: 16px; }
  .staple-hero { padding: 16px 0 18px; }
  .staple-workspace { display: flex; flex-direction: column; gap: 16px; }
  .staple-result { order: 1; width: 100%; padding: 18px; }
  #staple-form { width: 100%; padding: 18px; }
  .staple-page h2 { font-size: 1.28rem; }
  .staple-scope { font-size: .8rem; }
  .staple-section { margin: 28px 0; }
  .staple-related { flex-direction: column; }
}
@media (max-width: 420px) {
  .staple-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .staple-fields select { padding-inline: 6px; font-size: .79rem; }
  .staple-actions { align-items: stretch; flex-direction: column; }
  .staple-actions button { width: 100%; text-align: center; }
}
@media print {
  .site-header, .site-footer, .staple-hero, #staple-form, .staple-figure, .staple-section, .staple-related { display: none; }
  .staple-workspace { display: block; }
  .staple-result { background: white; border: 0; }
}
