.edging-page { background: #f1f0ea; }
.edging-page .site-header.page-shell { flex-wrap: wrap; padding: 10px 0 12px; }
.edging-page .brand { display: inline-flex; align-items: center; gap: 8px; }
.edging-page .brand-symbol { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; }
.edging-page .brand-symbol svg { display: block; width: 100%; height: 100%; }
.edging-page .site-nav { gap: 4px 14px; }
.edging-skip { position: absolute; left: 12px; top: -60px; z-index: 5; padding: 10px; background: #fff; }
.edging-skip:focus { top: 8px; }
.edging-main { max-width: 970px; padding-top: 14px; }
.edging-breadcrumb { color: var(--muted); font-size: .82rem; margin: 0 0 12px; }
.edging-main h1 { max-width: 19ch; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.edging-intro { max-width: 65ch; color: #53665c; margin-bottom: 18px; }
.edging-worktop { border: 2px solid var(--ink); background: #fffefa; }
.edging-worktop-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 16px 20px 9px; }
.edging-worktop h2 { margin: 0; font-size: 1.16rem; }
.edging-worktop-heading p { margin: 0; color: #53665c; font-size: .95rem; line-height: 1.45; max-width: 68ch; }
.edging-totals { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #cbd7cb; border-bottom: 1px solid #cbd7cb; }
.edging-totals > div { min-width: 0; padding: 13px 20px 15px; border-right: 1px solid #cbd7cb; }
.edging-totals > div:last-child { border-right: 0; }
.edging-totals span, .edging-totals small { display: block; font-size: .78rem; color: #53665c; }
.edging-totals strong { display: block; margin: 2px 0; font-size: clamp(1.7rem, 3.6vw, 2.65rem); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.edging-totals > div:first-child strong { color: var(--green-dark); }
.edging-toolbar { display: flex; gap: 12px; align-items: center; padding: 10px 20px; min-height: 62px; }
.edging-toolbar button, .edging-section-line button, .edging-remove { min-height: 44px; border: 1px solid var(--green-dark); background: var(--green-dark); color: #fff; padding: 9px 16px; font-weight: 750; }
.edging-toolbar button:disabled { opacity: .56; cursor: not-allowed; }
.edging-toolbar span { font-size: .83rem; color: var(--green-dark); }
#edging-copy-fallback { display: block; margin: 0 20px 18px; width: calc(100% - 40px); }
#edging-copy-fallback[hidden] { display: none; }
.edging-measure-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cbd7cb; border-top: 0; background: #f8f8f2; }
.edging-measure { border: 0; padding: 18px 20px 22px; margin: 0; min-width: 0; }
.edging-measure + .edging-measure { border-left: 1px solid #cbd7cb; }
.edging-measure legend { padding: 0 0 8px; font-weight: 850; font-size: 1rem; }
.edging-measure label { display: flex; justify-content: space-between; gap: 12px; margin-top: 11px; font-size: .88rem; font-weight: 700; }
.edging-measure label span { color: #53665c; font-weight: 500; white-space: nowrap; }
.edging-measure input, .edging-run input { display: block; width: 100%; min-height: 46px; margin-top: 5px; padding: 8px 12px; border: 1px solid #8ea395; border-radius: 3px; background: #fff; color: var(--ink); font-size: 1rem; }
.edging-hint { clear: both; max-width: 55ch; margin: 13px 0 0; color: #53665c; font-size: .82rem; line-height: 1.55; }
.edging-runs, .edging-cut-plan, .edging-notes { margin-top: 23px; padding: 19px 20px; border: 1px solid #cbd7cb; background: #fffefa; }
.edging-section-line { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.edging-section-line h2 { font-size: 1.16rem; margin-bottom: 3px; }
.edging-section-line p, .edging-limit { color: #53665c; font-size: .86rem; margin: 0; }
.edging-run { display: grid; grid-template-columns: 90px 1fr auto; align-items: end; gap: 12px; padding: 12px 0; border-bottom: 1px solid #d7ded4; }
.edging-run strong { padding-bottom: 12px; }
.edging-run label { display: block; font-size: .85rem; font-weight: 700; }
.edging-run label span { color: #53665c; font-weight: 500; }
.edging-geometry { margin-top: 14px; padding: 13px 16px; border: 1px solid #cbd7cb; background: #f8f8f2; }
.edging-geometry > summary { cursor: pointer; color: var(--green-dark); font-weight: 800; line-height: 1.4; }
.edging-geometry[open] > summary { margin-bottom: 12px; }
.edging-geometry-intro { max-width: 72ch; margin: 0 0 15px; color: #53665c; font-size: .86rem; line-height: 1.55; }
.edging-geometry-heading, .edging-rectangle-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.edging-geometry-heading h2 { margin: 0; font-size: 1rem; }
.edging-geometry-heading button, .edging-geometry > button, .edging-rectangle-remove { min-height: 44px; border: 1px solid var(--green-dark); background: #fffefa; color: var(--green-dark); padding: 8px 13px; font-weight: 750; }
.edging-geometry > button { margin-top: 12px; background: var(--green-dark); color: #fff; }
.edging-geometry button:disabled { opacity: .56; cursor: not-allowed; }
.edging-rectangle { min-width: 0; margin: 13px 0 0; padding: 12px; border: 1px solid #cbd7cb; background: #fffefa; }
.edging-rectangle-heading { margin-bottom: 10px; }
.edging-rectangle-heading legend { padding: 0; font-size: .92rem; font-weight: 850; }
.edging-rectangle-dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edging-rectangle-dimensions label, .edging-exclusion { display: block; min-width: 0; font-size: .83rem; font-weight: 700; }
.edging-rectangle-dimensions label span, .edging-exclusion span { color: #53665c; font-weight: 500; white-space: nowrap; }
.edging-rectangle-dimensions input, .edging-exclusion input { display: block; width: 100%; min-height: 46px; margin-top: 5px; padding: 8px 12px; border: 1px solid #8ea395; border-radius: 3px; background: #fff; color: var(--ink); font-size: 1rem; }
.edging-rectangle-sides { min-width: 0; margin: 12px 0 0; padding: 8px 0 0; border: 0; border-top: 1px solid #d7ded4; }
.edging-rectangle-sides legend { padding: 0 0 7px; color: #53665c; font-size: .78rem; font-weight: 700; }
.edging-side-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.edging-side-choices label { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 44px; padding: 5px 7px; border: 1px solid #cbd7cb; background: #f8f8f2; font-size: .74rem; line-height: 1.25; }
.edging-side-choices input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--green-dark); }
.edging-exclusion { max-width: 300px; margin-top: 14px; }
.edging-geometry .edging-hint { margin-top: 6px; }
.edging-geometry-preview { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--green-dark); background: #fffefa; color: #34483e; font-size: .86rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.edging-geometry-apply-status { margin: 8px 0 0; color: var(--green-dark); font-size: .84rem; }
.edging-remove { background: #fffefa; color: var(--green-dark); }
.edging-limit { margin-top: 10px; }
.edging-cut-plan ol { padding-left: 23px; margin-bottom: 0; }
.edging-cut-plan li { padding: 10px 0; border-bottom: 1px solid #d7ded4; font-variant-numeric: tabular-nums; }
.edging-cut-plan li:last-child { border: 0; }
.edging-cut-plan li strong { color: var(--green-dark); }
.edging-figure { margin: 22px 0 0; }
.edging-figure img { display: block; max-width: 100%; width: 100%; height: auto; border: 1px solid #cbd7cb; }
.edging-figure figcaption { color: #53665c; font-size: .82rem; margin-top: 7px; }
.edging-notes h2 { font-size: 1.18rem; margin-bottom: 12px; }
.edging-notes p { max-width: 76ch; line-height: 1.65; }
.edging-notes p:last-child { margin-bottom: 0; }
.edging-notes details { border-top: 1px solid #d7ded4; padding: 12px 0; }
.edging-notes details:last-child { padding-bottom: 0; }
.edging-notes summary { cursor: pointer; font-weight: 750; }
.edging-notes details p { margin: 10px 0 0; }
.edging-page :focus-visible { outline: 3px solid #b57316; outline-offset: 2px; }
@media (max-width: 620px) {
  .edging-page .site-nav { display: flex; width: 100%; flex-wrap: nowrap; gap: 4px 14px; overflow-x: auto; white-space: nowrap; }
  .edging-page .site-nav a { flex: 0 0 auto; }
  .edging-main { padding-top: 6px; }
  .edging-breadcrumb, .edging-intro { display: none; }
  .edging-worktop-heading { display: block; padding: 12px 14px 10px; }
  .edging-worktop-heading p { margin-top: 4px; }
  .edging-totals > div { padding: 10px 9px; }
  .edging-totals strong { font-size: 1.55rem; }
  .edging-totals span, .edging-totals small { font-size: .69rem; line-height: 1.25; }
  .edging-toolbar { padding: 9px 14px; }
  .edging-measure-grid { display: block; }
  .edging-measure + .edging-measure { border-left: 0; border-top: 1px solid #cbd7cb; }
  .edging-measure { padding: 15px 14px 17px; }
  .edging-runs, .edging-cut-plan, .edging-notes { padding: 15px 14px; }
  .edging-section-line { align-items: flex-start; }
  .edging-section-line button { flex: 0 0 auto; }
  .edging-run { grid-template-columns: 62px 1fr; }
  .edging-remove { grid-column: 2; width: fit-content; }
  .edging-geometry { padding: 12px; }
  .edging-geometry-heading { align-items: flex-start; }
  .edging-geometry-heading button { flex: 0 0 auto; }
  .edging-rectangle { padding: 10px; }
  .edging-side-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 390px) {
  .edging-section-line { display: block; }
  .edging-section-line button { margin-top: 10px; }
  .edging-totals strong { font-size: 1.38rem; }
  .edging-geometry-heading { display: block; }
  .edging-geometry-heading button { margin-top: 8px; }
  .edging-side-choices label { font-size: .72rem; }
}
