.glue-page { background: #f1f0ea; color: #20352d; }
.glue-page .page-shell { width: min(1120px, calc(100% - 28px)); }
.glue-page .brand-symbol, .glue-page .brand-symbol svg { width: 32px; height: 32px; flex: 0 0 32px; }
.glue-main { padding-top: 4px; }
.glue-hero { border-top: 4px solid #20352d; padding: 20px 0; }
.glue-hero h1 { font-size: clamp(1.95rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 10px; text-wrap: balance; }
.glue-hero p { margin: 0; max-width: 68ch; color: #496352; line-height: 1.55; }
.glue-workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.glue-page h2 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 12px; }
#glue-form { padding: 24px; background: #fffefa; border: 1px solid #cbd5cb; min-width: 0; }
#glue-form fieldset { min-width: 0; border: 0; border-top: 1px solid #cad5cc; padding: 14px 0 0; margin: 20px 0; }
#glue-form legend { padding-right: 8px; font-weight: 700; }
.glue-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.glue-page label { display: flex; flex-direction: column; min-width: 0; font-size: .94rem; font-weight: 600; gap: 6px; }
.glue-page label span { color: #53665a; font-weight: 500; }
.glue-page :is(input, select) { width: 100%; min-width: 0; height: 48px; border: 1px solid #92ac9a; border-radius: 3px; padding: 8px 10px; background: white; color: #20352d; font: inherit; font-variant-numeric: tabular-nums; }
.glue-page select { font-size: .9rem; }
.glue-page input[aria-invalid=true] { border: 2px solid #96371d; }
.glue-help, .glue-scope { font-size: .85rem; line-height: 1.5; color: #506252; margin: 10px 0 0; }
.glue-error { font-size: .85rem; line-height: 1.5; color: #873018; font-weight: 500; }
.glue-error:empty { display: none; }
.glue-page button { font: inherit; cursor: pointer; min-height: 44px; padding: 10px 14px; border-radius: 3px; touch-action: manipulation; }
.glue-primary { color: #fffefa; background: #20352d; border: 1px solid #20352d; font-weight: 650; }
.glue-primary:hover { background: #315f42; }
.glue-secondary { color: #20352d; background: #fffefa; border: 1px solid #728e78; }
.glue-secondary:hover { background: #e1e8de; }
.glue-result { min-width: 0; padding: 24px; background: #e6eee4; border: 1px solid #b4c7b5; border-top: 5px solid #315f42; }
#glue-status { color: #3c5845; line-height: 1.5; margin: 0 0 15px; }
.glue-total { border-bottom: 1px solid #aec5af; padding-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
#glue-total { font-size: clamp(1.8rem, 4vw, 2.55rem); letter-spacing: -.04em; line-height: 1.15; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.glue-ledger { margin: 18px 0; }
.glue-ledger div { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid #c1d0bd; padding: 9px 0; }
.glue-ledger dt { font-size: .9rem; }
.glue-ledger dd { margin: 0; min-width: 0; max-width: 62%; text-align: right; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.glue-result button { margin-top: 6px; }
.glue-sample-note { font-size: .82rem; line-height: 1.45; color: #596b5d; margin: 12px 0 0; }
.glue-section { max-width: 78ch; margin: 34px 0; }
.glue-section p { line-height: 1.65; margin: 10px 0; }
.glue-method { background: #e7ece3; border-left: 4px solid #315f42; padding: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.glue-figure { margin: 28px 0; }
.glue-figure img { display: block; width: 100%; height: auto; border: 1px solid #c5d1c5; background: #fffefa; }
.glue-figure figcaption { margin-top: 9px; font-size: .88rem; line-height: 1.5; color: #53665a; }
.glue-faq details { padding: 14px 0; border-top: 1px solid #c1d0c0; }
.glue-faq summary { font-weight: 650; cursor: pointer; line-height: 1.5; touch-action: manipulation; }
.glue-page a:hover { color: #315f42; text-decoration-thickness: 2px; }
.glue-page :is(input, select, button, a, summary):focus-visible { outline: 3px solid #af6e2f; outline-offset: 3px; }
.glue-related { display: flex; flex-wrap: wrap; gap: 14px 22px; border-top: 1px solid #b9cbbd; padding: 22px 0; }
.glue-page [hidden] { display: none !important; }
#glue-form, #glue-result-title { scroll-margin-top: 20px; }
@media (max-width: 760px) {
  .glue-page .site-header { padding-top: 16px; padding-bottom: 16px; }
  .glue-page .site-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; width: 100%; }
  .glue-page .site-nav a { display: grid; place-items: center; text-align: center; font-size: .72rem; letter-spacing: -.02em; line-height: 1.4; min-height: 44px; padding: 8px 0; }
  .glue-hero { padding: 16px 0 18px; }
  .glue-workspace { display: flex; flex-direction: column; gap: 16px; }
  .glue-result { order: -1; width: 100%; padding: 18px; }
  #glue-form { width: 100%; padding: 18px; }
  .glue-page h2 { font-size: 1.28rem; }
  .glue-fields { gap: 12px; }
  #glue-form, .glue-page :is(input, select, button, summary) { scroll-margin-top: 170px; }
}
@media print {
  .site-header, .site-footer, .glue-hero, #glue-form, .glue-page button, .glue-section, .glue-related, .glue-figure { display: none; }
  .glue-workspace { display: block; }
  .glue-result { background: white; border: 0; }
}
