.cardboard-page { background: #f1f0ea; color: #20352d; }
.cardboard-page .page-shell { width: min(1120px, calc(100% - 28px)); }
.cardboard-page .brand { display: inline-flex; align-items: center; gap: 8px; }
.cardboard-page .brand-symbol, .cardboard-page .brand-symbol svg { display: block; width: 32px; height: 32px; flex: 0 0 32px; }
.card-main { padding-top: 4px; }
.card-crumb { margin: 0 0 12px; font-size: .88rem; color: #52665a; }
.card-hero { padding: 18px 0 22px; border-top: 4px solid #20352d; }
.card-hero h1 { margin: 0 0 10px; max-width: 22ch; font-size: clamp(1.9rem, 4vw, 3.15rem); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.card-hero p { margin: 0; max-width: 65ch; font-size: 1.03rem; line-height: 1.55; color: #496352; }
.card-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.card-result, #card-form { min-width: 0; padding: 24px; }
.card-result { background: #e8eee5; border: 1px solid #b4c7b5; border-top: 5px solid #315f42; }
#card-form { background: #fffefa; border: 1px solid #cbd5cb; }
.cardboard-page h2 { margin: 0 0 12px; font-size: 1.4rem; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.cardboard-page h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.card-answer { display: flex; flex-direction: column; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid #aec5af; }
.card-answer strong { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.card-answer span { line-height: 1.5; color: #49604d; }
#card-status { margin: 14px 0; font-size: .93rem; line-height: 1.5; }
.cardboard-page button { min-height: 44px; padding: 9px 14px; font: inherit; cursor: pointer; border-radius: 3px; touch-action: manipulation; }
.card-primary { background: #20352d; color: #fffefa; border: 1px solid #20352d; font-weight: 700; }
.card-primary:hover { background: #315f42; }
.card-example, .card-copy { border: 1px solid #728e78; color: #20352d; background: #fffefa; text-align: left; }
.card-example:hover, .card-copy:hover { background: #dae4d5; }
.card-example { width: 100%; margin-top: 14px; }
.card-clear { background: transparent; border: 0; color: #435e4b; text-decoration: underline; text-underline-offset: 3px; }
.card-clear:hover { color: #20352d; }
.card-unit, .card-fields label { display: flex; flex-direction: column; min-width: 0; font-weight: 650; font-size: .94rem; }
.card-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card-fields label span { font-size: .82rem; font-weight: 450; color: #596d60; }
.card-fields label .card-field-error { color: #963d27; margin-top: 7px; font-weight: 600; line-height: 1.45; }
#card-form [aria-invalid="true"] { border-color: #963d27; }
.card-fields input, .card-unit select { width: 100%; min-width: 0; height: 48px; padding: 8px 10px; margin-top: 6px; background: white; color: #20352d; border: 1px solid #92ac9a; border-radius: 3px; font: inherit; font-variant-numeric: tabular-nums; }
#card-form fieldset { min-width: 0; margin: 22px 0; padding: 18px 0 0; border: 0; border-top: 1px solid #cad5cc; }
#card-form legend { padding-right: 8px; font-weight: 750; }
.card-help, .card-scope, #card-copy-status { margin: 10px 0 0; font-size: .85rem; line-height: 1.55; color: #52665a; }
.card-scope { margin-top: 18px; }
.card-ledger { margin: 16px 0; }
.card-ledger > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #c1d0bd; }
.card-ledger dt { font-size: .88rem; }
.card-ledger dd { margin: 0; min-width: 0; text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#card-comparison p { margin: 8px 0; padding: 8px 0; border-bottom: 1px solid #c1d0bd; font-size: .9rem; line-height: 1.5; }
.card-live-layout { margin: 18px 0; }
#card-layout { display: block; width: 100%; height: auto; background: #fffefa; border: 1px solid #c4cbbd; }
.card-live-layout figcaption { margin-top: 7px; font-size: .83rem; line-height: 1.5; color: #52665a; }
#card-copy-fallback { width: 100%; margin-top: 10px; padding: 10px; font: inherit; }
.cardboard-page [hidden] { display: none !important; }
.card-figure { margin: 28px 0; }
.card-figure img { display: block; width: 100%; height: auto; border: 1px solid #c5d1c5; }
.card-figure figcaption { padding-top: 9px; color: #53665a; font-size: .88rem; line-height: 1.5; }
.card-section { max-width: 76ch; margin: 36px 0; }
.card-section p { margin: 10px 0; line-height: 1.65; }
.card-method { padding: 18px 20px; background: #e7ece3; border-left: 4px solid #315f42; font-size: .94rem; line-height: 1.8; }
.card-faq details { padding: 14px 0; border-top: 1px solid #c1d0c0; }
.card-faq summary { cursor: pointer; font-weight: 750; line-height: 1.5; }
.card-related { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 22px 0; border-top: 1px solid #b9cbbd; }
.cardboard-page :is(a, button, input, select, summary, textarea):focus-visible { outline: 3px solid #af6e2f; outline-offset: 3px; }
.cardboard-page :is(a, summary) { text-underline-offset: 3px; }
.cardboard-page a:hover { color: #315f42; }
.cardboard-page :is(section, form, h2) { scroll-margin-top: 16px; }
.card-stock { margin: 32px 0; padding-top: 28px; border-top: 2px solid #315f42; }
.card-stock-intro, .card-stock > p { max-width: 76ch; line-height: 1.6; }
.card-stock #stock-result-title { margin-top: 0; }
.card-stock-answer { display: flex; flex-direction: column; gap: 10px; }
.card-stock-answer strong { font-size: 1.7rem; line-height: 1.15; overflow-wrap: anywhere; }
.card-stock-answer span { line-height: 1.55; }
#stock-form { min-width: 0; padding: 24px; background: #fffefa; border: 1px solid #cbd5cb; }
#stock-form fieldset { min-width: 0; padding: 16px 0; margin: 18px 0; border: 0; border-top: 1px solid #cbd5cb; }
#stock-form legend { font-weight: 750; }
#stock-form .stock-group { padding: 14px; border: 1px solid #cbd5cb; }
.stock-group .card-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stock-group .card-clear { margin-top: 8px; }
.stock-rotation { display: flex; gap: 10px; align-items: center; min-height: 44px; line-height: 1.5; }
.stock-rotation input { width: 20px; height: 20px; }
.stock-group .card-fields label { font-size: .86rem; }
#stock-form .card-primary { margin-top: 16px; }
#stock-form [aria-invalid="true"] { border-color: #963d27; }
.stock-coordinates { margin: 16px 0; }
.stock-coordinates summary { cursor: pointer; font-weight: 700; line-height: 1.5; }
.stock-table-wrap { overflow-x: auto; max-width: 100%; }
.stock-table-wrap table { width: 100%; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.stock-table-wrap caption { margin: 10px 0; text-align: left; line-height: 1.5; }
.stock-table-wrap :is(th, td) { padding: 9px 4px; border-bottom: 1px solid #b4c7b5; text-align: left; overflow-wrap: anywhere; }
#stock-layout { display: block; width: 100%; height: auto; background: #fffefa; border: 1px solid #c4cbbd; }
#stock-copy-fallback { width: 100%; padding: 10px; margin-top: 8px; font: inherit; }
#stock-copy { margin-top: 14px; }
#stock-add:disabled, .stock-group .card-clear:disabled { opacity: .6; cursor: default; }
@media (max-width: 760px) { #stock-form { padding: 18px; } }
@media (max-width: 420px) { .stock-group .card-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stock-group .stock-count { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .cardboard-page .site-header { padding: 16px 0; }
  .card-workspace { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card-result, #card-form { padding: 18px; }
  .card-hero { padding: 16px 0 18px; }
  .cardboard-page h2 { font-size: 1.25rem; }
  .card-fields { gap: 12px; }
  .card-section { margin: 28px 0; }
  .card-related { flex-direction: column; }
}
@media (max-width: 560px) {
  .cardboard-page .site-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cardboard-page :is(section, form, h2) { scroll-margin-top: 120px; }
}
@media print { .site-header, .site-footer, .card-hero, #card-form, #stock-form, .card-example, .card-copy, .card-section, .card-related, .card-figure { display: none; } .card-workspace { display: block; } .card-result { background: white; border: 0; } }
