/* CAQA BoundaryEvidence: a surveyor's plan sheet with a title block header and a magnified corner.
   Original CSS for CAQA. System fonts only. */
:root {
  --vellum: #f5f6f0; --sheet: #fdfdf9; --ink: #17332c; --ink-2: #3f5750; --line: #b9c4bb; --line-strong: #7f9188;
  --field: #a31457; --old: #1f4f9a; --mid: #8a4a00; --ok: #17603f; --ok-soft: #e1efe4; --no: #962222; --no-soft: #f7e4df; --wash: #e9ede3;
  --head: Cambria, Constantia, Georgia, serif;
  --text: Gadugi, "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  --pad: clamp(1rem, 3vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--vellum); color: var(--ink); font: 400 1.02rem/1.6 var(--text); }
img, svg { max-width: 100%; }
a { color: var(--old); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 .9rem; }
.small { font-size: .9rem; color: var(--ink-2); }
.wrap { max-width: 78rem; margin: 0 auto; padding-inline: var(--pad); }

/* header: title block */
.titleblock { background: var(--sheet); }
.tb-grid { display: grid; grid-template-columns: auto 1fr auto; border-bottom: 1.5px solid var(--ink); }
.tb-cell { display: flex; align-items: center; min-height: 62px; }
.tb-brand { padding: 0 1.2rem; border-right: 1.5px solid var(--ink); }
.caqa-lockup { color: var(--ink); }
.word { font: 700 1.2rem/1 var(--head); }
.sheets { justify-content: flex-start; flex-wrap: wrap; }
.sheets a { display: flex; flex-direction: column; justify-content: center; align-self: stretch; min-height: 48px; min-width: 7.5rem; padding: .35rem 1.1rem; border-right: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; line-height: 1.25; }
.sheets .sh { font: 400 .72rem/1.2 var(--mono); color: var(--ink-2); }
.sheets a:hover { background: var(--wash); }
.sheets a[aria-current="page"] { background: var(--ink); color: #fff; }
.sheets a[aria-current="page"] .sh { color: #d5e4dc; }
.tb-cta { justify-content: flex-end; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem 1.3rem; background: var(--field); color: #fff; font-weight: 700; text-decoration: none; }
.tb-cta .cta { align-self: stretch; min-height: 62px; padding: 0 1.8rem; }
.cta:hover { background: var(--ink); }
.tickrule { height: 9px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 10px) top left / 100% 5px no-repeat, repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 50px) top left / 100% 9px no-repeat; }

/* opening: comparison stage */
.stage { display: grid; grid-template-columns: minmax(0, 18.5rem) minmax(0, 1fr) minmax(0, 24rem); gap: 1.4rem; padding: 1rem var(--pad) 1.6rem; max-width: 96rem; margin: 0 auto; align-items: start; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.tags span { font: 400 .74rem/1.3 var(--mono); border: 1px solid var(--ink); padding: .22rem .5rem; background: var(--sheet); }
.stage h1 { font-size: clamp(1.9rem, 2.8vw, 2.55rem); line-height: 1.08; }
.for { color: var(--ink-2); font-size: .98rem; }
.keyplan { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); background: var(--sheet); padding: .3rem; }
.keyplan .lot { fill: var(--wash); stroke: var(--ink); stroke-width: 1.6; }
.keyplan .road { stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 8 4; fill: none; }
.keyplan .kt { font: 11px var(--mono); fill: var(--ink-2); }
.keyplan .kt.big { font-size: 12px; fill: var(--ink); }
.keyplan .kt.strong { font-weight: 700; fill: var(--field); font-size: 13px; }
.keyplan .pt { fill: var(--ink); }
.keyplan .target { fill: none; stroke: var(--field); stroke-width: 2.4; }
.keyplan .leader { stroke: var(--field); stroke-width: 1.6; stroke-dasharray: 4 3; }

.st-lens { display: flex; flex-direction: column; align-items: center; }
.viewswitch { display: flex; flex-wrap: wrap; justify-content: center; border: 1.5px solid var(--ink); background: var(--sheet); }
button { font: 700 .92rem/1.25 var(--text); color: var(--ink); background: var(--sheet); border: 1.5px solid var(--ink); min-height: 44px; padding: .5rem .9rem; cursor: pointer; }
button:hover { background: var(--wash); }
.viewswitch button { border: 0; }
.viewswitch button + button { border-left: 1.5px solid var(--ink); }
button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lenswrap { width: 100%; max-width: min(36rem, calc(100vh - 15rem)); min-width: 17rem; margin-top: .6rem; }
.lens { display: block; width: 100%; height: auto; }
.lens .field { fill: var(--sheet); }
.lens .g { stroke: #dbe2da; stroke-width: 1; }
.lens .rim { fill: none; stroke: var(--ink); stroke-width: 5; }
.lens .occ { stroke: var(--line-strong); stroke-width: 3; stroke-dasharray: 2 7; fill: none; }
.lens .occ-t { font: 13px var(--mono); fill: var(--ink-2); }
.lens .unc { stroke-width: 2.4; fill-opacity: .07; }
.lens .ua { stroke: var(--field); fill: var(--field); }
.lens .ub { stroke: var(--old); fill: var(--old); stroke-dasharray: 12 7; }
.lens .uc { stroke: var(--mid); fill: var(--mid); stroke-dasharray: 2 6; stroke-linecap: round; stroke-width: 3.4; }
.lens [data-layer="a"] .mk { fill: var(--field); }
.lens [data-layer="b"] .mk { fill: var(--old); }
.lens [data-layer="c"] .mk { fill: var(--mid); }
.lens .lab { font: 700 27px var(--head); }
.lens .la { fill: var(--field); } .lens .lb { fill: var(--old); } .lens .lc { fill: var(--mid); }
.lens .span { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.lens .sp-t { font: 700 15px var(--mono); fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 5px; }
.lens .flat { display: none; }
.lens .ghost { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 3 6; }
.lens .avg { stroke: var(--ink); stroke-width: 5; fill: none; }
.lens .avg-t { font: 700 21px var(--head); fill: var(--ink); }
.lens .avg-s { font: 15px var(--mono); fill: var(--no); }
.lens .scalebar path { stroke: var(--ink); stroke-width: 2.4; fill: none; }
.lens .scalebar text, .lens .north text { paint-order: stroke; stroke: var(--sheet); stroke-width: 6px; font: 700 15px var(--mono); fill: var(--ink); }
.lens .north path { fill: var(--ink); }
.lenswrap[data-view-state="flat"] .sep { display: none; }
.lenswrap[data-view-state="flat"] .flat { display: inline; }
.layer.off { display: none; }
.viewnote { margin: .5rem 0 0; font-size: .92rem; text-align: center; max-width: 34rem; }

.mini { font-size: 1.15rem; }
.slips { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.slip { background: var(--sheet); border: 1px solid var(--line-strong); border-left-width: 6px; padding: .3rem .7rem .4rem; }
.s-a { border-left-color: var(--field); } .s-b { border-left-color: var(--old); border-left-style: dashed; } .s-c { border-left-color: var(--mid); border-left-style: dotted; }
.slip label { display: flex; align-items: center; gap: .5rem; min-height: 32px; cursor: pointer; }
.slip input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.key { width: 13px; height: 13px; flex: none; }
.s-a .key { background: var(--field); }
.s-b .key { background: var(--old); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.s-c .key { background: var(--mid); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.slip-t b { font-family: var(--head); font-size: 1.15rem; margin-right: .25rem; }
.coord { font: 400 .86rem/1.4 var(--mono); margin: 0; }
.coord span { color: var(--ink-2); white-space: nowrap; }
.ref { font-size: .85rem; color: var(--ink-2); margin: 0; line-height: 1.4; }
.ref.missing { color: var(--no); font-weight: 700; }
.photo-ref { font-size: .85rem; margin: .5rem 0 .6rem; color: var(--ink-2); line-height: 1.45; }
.tests { display: grid; gap: .35rem; }
.tests-h { font: 700 .95rem/1.2 var(--head); margin: 0; }
.tests button { text-align: left; }
.verdict { border: 1.5px solid var(--line-strong); background: var(--sheet); padding: .55rem .75rem; font-size: .92rem; line-height: 1.45; min-height: 5.6rem; }
.verdict[data-tone="ok"] { border-color: var(--ok); background: var(--ok-soft); border-width: 3px; }
.verdict[data-tone="no"] { border-color: var(--no); background: var(--no-soft); border-width: 3px; border-style: double; border-width: 6px; }

/* overview body */
.band-sheet { background: var(--sheet); border-block: 1.5px solid var(--ink); padding: 2.6rem 0; }
.lead { max-width: 52rem; font-size: 1.1rem; }
.scroll { overflow-x: auto; border: 1px solid var(--line-strong); background: var(--sheet); }
table { width: 100%; border-collapse: collapse; min-width: 36rem; font-size: .96rem; }
caption { text-align: left; padding: .6rem .8rem; font: 400 .82rem/1.4 var(--mono); color: var(--ink-2); }
th, td { text-align: left; padding: .6rem .8rem; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--wash); font-family: var(--head); }
.hint { display: none; font: 400 .8rem var(--mono); color: var(--ink-2); margin: .3rem 0 .6rem; }
.records { padding-block: 2.8rem 1rem; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--sheet); }
.legend li { padding: 1rem; border-right: 1px solid var(--line-strong); }
.legend li:last-child { border-right: 0; }
.legend p { font-size: .93rem; margin: 0; }
.sym { display: block; width: 34px; height: 34px; margin-bottom: .7rem; border: 2.5px solid var(--ink); }
.sym-survey { border-radius: 50%; background: radial-gradient(circle, var(--ink) 0 4px, transparent 5px); }
.sym-mon { transform: rotate(45deg) scale(.8); background: var(--ink); }
.sym-meas { border-color: var(--field); background: var(--field); }
.sym-plan { border-style: dashed; border-color: var(--old); }
.sym-int { border-radius: 50% 50% 50% 0; border-color: var(--mid); }
.benefit { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; padding-block: 2.2rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding: .3rem 0 .3rem 1.5rem; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .8rem; width: 9px; height: 9px; border: 2px solid var(--field); transform: rotate(45deg); }
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-bottom: 3rem; }
.routes a { display: grid; gap: .25rem; padding: 1.1rem 1.2rem; background: var(--sheet); border: 1.5px solid var(--ink); text-decoration: none; color: var(--ink); }
.routes a + a { border-left: 0; }
.routes a:hover { background: var(--wash); }
.routes b { font: 700 1.5rem var(--head); }
.r-k { font: 400 .75rem var(--mono); color: var(--ink-2); }

/* inner pages */
.pagehead { padding-top: 2.2rem; padding-bottom: 1.4rem; }
.sheetno { display: inline-block; font: 400 .78rem var(--mono); border: 1px solid var(--ink); padding: .2rem .55rem; margin-bottom: .8rem; }
.pagehead h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
.sub { max-width: 50rem; color: var(--ink-2); }
main > section { padding-bottom: 2.4rem; }
.reg { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.reg li { display: grid; grid-template-columns: 4rem 13rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line-strong); }
.reg-id { font: 700 1.1rem var(--mono); color: var(--field); }
dl { display: grid; grid-template-columns: 6rem 1fr; gap: .2rem .8rem; margin: 0; }
dt { font: 400 .8rem/1.9 var(--mono); color: var(--ink-2); }
dd { margin: 0; }
.rulebox { background: var(--ink); color: #fff; padding: 2.4rem 0; margin-bottom: 2.4rem; }
.rulebox h2 { color: #fff; font-size: 1.1rem; font-family: var(--mono); font-weight: 400; }
.rule { font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.25 var(--head); max-width: 30ch; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.two li { border: 1px solid #b5cdc2; padding: .9rem 1rem; }
.two li + li { border-style: dashed; }
.rolegrid, .outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rolegrid article { background: var(--sheet); border: 1px solid var(--line-strong); border-top: 5px solid var(--ink); padding: 1rem 1.1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.st { font: 700 .85rem var(--mono); padding: .15rem .5rem; border: 1.5px solid; white-space: nowrap; }
.st.now { color: var(--ok); } .st.plan { color: var(--old); border-style: dashed; } .st.out { color: var(--no); border-style: dotted; }
.routes-line { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 1rem; }
.routes-line a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.traverse { list-style: none; margin: 0; padding: 0; }
.traverse li { display: grid; grid-template-columns: 4.5rem 1fr; position: relative; }
.traverse li::before { content: ""; position: absolute; left: 1.4rem; top: 3rem; bottom: 0; border-left: 2px dashed var(--ink); }
.traverse li:last-child::before { display: none; }
.peg { width: 3rem; height: 3rem; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--sheet); display: grid; place-items: center; font: 700 1.2rem var(--head); }
.leg { padding-bottom: 1.8rem; max-width: 52rem; }
.out { border-left: 4px solid var(--ok); background: var(--sheet); padding: .6rem .9rem; margin: 0; }
.oc { background: var(--sheet); padding: 1rem 1.1rem; border: 3px solid var(--ok); }
.oc.no { border: 6px double var(--no); }
.oc ul { padding-left: 1.1rem; }
.oc-tag { font: 700 .78rem var(--mono); }
.oc.ok .oc-tag { color: var(--ok); } .oc.no .oc-tag { color: var(--no); }

.demo-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; }
.agenda { padding: 0; list-style: none; counter-reset: a; }
.agenda li { counter-increment: a; border-top: 1px solid var(--line-strong); padding: .8rem 0 .8rem 3rem; position: relative; }
.agenda li::before { content: counter(a); position: absolute; left: 0; top: .7rem; width: 2rem; height: 2rem; border: 2px solid var(--field); transform: none; display: grid; place-items: center; font: 700 1rem var(--head); }
.ask { background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: 7px 7px 0 var(--wash); padding: 1.3rem; align-self: start; }
.cta.big { width: 100%; text-align: center; min-height: 54px; }
.faq details { border-top: 1px solid var(--line-strong); max-width: 54rem; }
.faq summary { cursor: pointer; font: 700 1.08rem var(--head); padding: .8rem 0; min-height: 44px; }

.foot { border-top: 1.5px solid var(--ink); background: var(--sheet); padding: 1.6rem 0 2rem; }
.foot-in { max-width: 78rem; margin: 0 auto; padding-inline: var(--pad); display: grid; gap: .8rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.status { font-size: .88rem; color: var(--ink-2); margin: 0; }

@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .st-key { grid-column: 1 / -1; }
  .keyplan { max-width: 20rem; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend li { border-bottom: 1px solid var(--line-strong); }
}
@media (max-width: 760px) {
  .tb-grid { grid-template-columns: 1fr auto; }
  .tb-brand { border-right: 0; padding: 0 .8rem; }
  .tb-brand .word { font-size: 1.02rem; }
  .tb-brand .caqa-lockup { gap: 8px; }
  .tb-cta { grid-column: 2; grid-row: 1; }
  .tb-cta .cta { padding: 0 1rem; }
  .sheets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
  .sheets a { min-width: 0; padding: .3rem .4rem; font-size: .88rem; }
  .sheets a:last-child { border-right: 0; }
  /* phone order: headline, source list (text equivalent), drawing, key plan */
  .stage { display: flex; flex-direction: column; align-items: stretch; }
  .st-key { display: contents; }
  .tags { order: 0; margin: 0; }
  .stage h1 { order: 1; font-size: 1.85rem; margin: 0; }
  .for { order: 2; margin: 0; }
  .st-sources { order: 3; }
  .st-lens { order: 4; }
  .keyplan { order: 5; max-width: none; }
  .lenswrap { max-width: none; min-width: 0; }
  .viewswitch button { flex: 1 1 100%; }
  .viewswitch { width: 100%; }
  .viewswitch button + button { border-left: 0; border-top: 1.5px solid var(--ink); }
  .legend, .benefit, .routes, .two, .rolegrid, .outcomes, .split, .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .legend li { border-right: 0; }
  .routes a + a { border-left: 1.5px solid var(--ink); border-top: 0; }
  .reg li { grid-template-columns: 3rem 1fr; }
  .reg dl { grid-column: 1 / -1; }
  .traverse li { grid-template-columns: 3.6rem 1fr; }
  .hint { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .lens .flat { animation: fadein .35s ease-out; }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.avail table { min-width: 0; }
.keyfig { margin: 0; }
figure.lenswrap { margin-inline: 0; margin-bottom: 0; }
@media (max-width: 760px) { .keyfig { order: 5; } }
