.stamp-page [hidden] { display: none !important; }
.stamp-page .tool-shell > * { min-width: 0; }
.stamp-page .result-empty :is(strong,span) { display: block; }
.stamp-page .result-empty span { margin-top: .5rem; }
.stamp-page .result-number { font-size: clamp(2rem,5vw,4rem) !important; white-space: normal !important; overflow-wrap: anywhere; }
.stamp-page .stamp-kicker { display: inline-block; padding: .38rem .72rem; border-radius: 2rem; border: 1px solid #b48a4670; font-size: .8rem; text-transform: uppercase; letter-spacing: .075em; font-weight: 800; color: #eeb746; }
.stamp-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; }
.stamp-actions .primary-btn { flex: 1 1 14rem; min-width: 0; white-space: normal; }
.stamp-example { margin-top: .65rem; }
.stamp-page :is(input,select,button,textarea,a,summary,[tabindex]):focus-visible { outline: 2px solid #eab745; outline-offset: 3px; }
.stamp-error { padding: .65rem .8rem; border: 1px solid #d16b51; background: #d16b511a; border-radius: .65rem; }
.stamp-box, .stamp-options { padding: clamp(.65rem,2vw,1.15rem); margin: 1rem 0 0; border: 1px solid #b48a4670; border-radius: 1rem; background: #b48a4610; min-width: 0; }
.stamp-options summary { font-weight: 750; cursor: pointer; }
.stamp-options[open] summary { margin-bottom: .85rem; }
.stamp-box :is(h3,figcaption) { font-size: 1.15rem; font-weight: 800; margin: 0 0 .5rem; }
.stamp-box ol, .stamp-page .stamp-box p:last-child { margin-bottom: 0; }
.stamp-box li + li { margin-top: .55rem; }
.stamp-stats { margin: .75rem 0; }
.stamp-stats div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .65rem; border-bottom: 1px solid #80808044; padding: .4rem 0; }
.stamp-stats dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.stamp-bar { margin-top: .9rem; }
.stamp-bar-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .75rem; margin-bottom: .35rem; overflow-wrap: anywhere; }
.stamp-bar-track { block-size: .75rem; border-radius: .55rem; background: #80808040; overflow: hidden; }
.stamp-bar-fill { display: block; height: 100%; border-radius: inherit; background: #e7b44c; }
.stamp-bar-fill[data-series="1"] { background: #59b7ed; }
.stamp-bar-fill[data-series="2"] { background: #a98af1; }
.stamp-bar-fill[data-series="3"] { background: #61d2a8; }
.stamp-page .stamp-solution h3, .stamp-step-label { color: #f4c653; }
.stamp-page .stamp-step-intro { margin: 0 0 .85rem; color: var(--muted, #aeb6c2); }
.stamp-page .stamp-step-list { list-style: none; padding: 0; margin: 0; }
.stamp-step-list li { padding: .7rem .8rem; border-inline-start: 3px solid #d8aa40; border-radius: 0 .6rem .6rem 0; background: #08090b65; break-inside: avoid; }
.stamp-step-list code { display: block; margin-top: .4rem; color: inherit; font: .9em/1.55 ui-monospace,Consolas,monospace; white-space: normal; overflow-wrap: anywhere; }
.stamp-page .result-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(6.3rem,1fr)); gap: .5rem; margin: 1rem 0 0; }
.stamp-page .result-actions button { min-width: 0; white-space: normal; }
#stamp-copy-text { display: block; width: 100%; color: inherit; background: transparent; border-radius: .5rem; padding: .5rem; }
.stamp-page .stamp-schedule { margin-top: 1.25rem; }
.stamp-schedule-scroll { max-height: 25rem; overflow: auto; }
.stamp-page table.stamp-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.stamp-page .stamp-table :is(th,td) { text-align: right; padding: .55rem .35rem; border-bottom: 1px solid #80808044; white-space: normal; overflow-wrap: anywhere; }
.stamp-page .stamp-table tr :first-child { text-align: left; }
.stamp-page .stamp-table tbody th { background: transparent; text-transform: none; letter-spacing: normal; }
.stamp-page .article details { margin-block: .75rem; padding: .75rem; border: 1px solid #b48a4670; border-radius: .65rem; }
.stamp-page .article summary { cursor: pointer; font-weight: 700; }
.stamp-page .article details p { margin: .5rem 0 0; }
.stamp-page .related-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .75rem; }
.stamp-page .related-card { display: grid; gap: .3rem; padding: .8rem; border: 1px solid #80808045; border-radius: .8rem; }
html[data-theme=light] .stamp-page :is(.stamp-kicker,.stamp-solution h3,.stamp-step-label) { color: #805908; }
html[data-theme=light] .stamp-page .stamp-step-list li { background: #b48a4610; }
@media(max-width:540px) {
  .stamp-page .field-grid { grid-template-columns: 1fr; }
  .stamp-page .stamp-table :is(th,td) { font-size: .78rem; padding-inline: .25rem; }
}
@media print {
  body:has(.stamp-page #stamp-result.is-visible) > :not(.stamp-page),
  .stamp-page:has(#stamp-result.is-visible) :is(.hero,.breadcrumbs,.calc-panel > :not(figure),.content-layout,.result-actions,.result-action-status,#stamp-copy-fallback) { display: none !important; }
  html:has(.stamp-page), body:has(.stamp-page), .stamp-page, .stamp-page :is(.wrap,.tool-shell,.calc-panel,.result-panel,.result-content,.stamp-box,.result-note,.stamp-step-list li,.stamp-table :is(th,td),.stamp-schedule) { background: #fff !important; color: #111 !important; box-shadow: none !important; border-color: #aaa !important; }
  .stamp-page .tool-shell { display: block !important; margin: 0 !important; padding: 0 !important; }
  .stamp-page :is(.tool-shell,.calc-panel,.result-panel,.result-content)::before,.stamp-page :is(.tool-shell,.calc-panel,.result-panel)::after { display: none !important; }
  .stamp-page .calc-panel { padding: 0 !important; margin: 0 !important; border: 0 !important; }
  .stamp-page .result-content::before { display: block !important; content: 'Stamp Duty Calculator'; font-size: 1.35rem; font-weight: 800; }
  .stamp-page .result-number { font-size: 2rem !important; color: #111 !important; -webkit-text-fill-color: #111 !important; }
  .stamp-page :is(.panel-kicker,.field-help,.stamp-step-intro,.stamp-step-label,.stamp-solution h3) { color: #111 !important; }
  .stamp-page figure { break-inside: avoid; print-color-adjust: exact; max-width: 32rem; }
  .stamp-page .stamp-schedule-scroll { max-height: none; overflow: visible; }
  .stamp-page .stamp-table tr { break-inside: avoid; }
}
.stamp-page .stamp-callout { margin-block: 1rem; padding: .85rem 1rem; border: 1px solid #b48a4670; border-radius: .65rem; background: #b48a4610; }
