/* THC Care 0.6.2: /care/measures/. Builds on planning.css (enqueued alongside) for fields, buttons, jump list and
   result lists: the page root carries both .thc-plan and .thc-meas. This file adds the tables and the alternatives
   panel. Theme tokens as planning.css; phone first; 44px tap targets; nothing floating or sticky. */
.thc-meas__advice{background:var(--p-raised);border-radius:var(--thc-radius-md,12px);margin:1rem 0;padding:.75rem 1rem}
.thc-meas__advice p{margin:.25rem 0}
.thc-meas__species{margin-top:1.25rem}
.thc-meas__species h3{margin-bottom:.25rem}
.thc-meas__sci{font-style:italic;opacity:.85}
.thc-meas__tablewrap{overflow-x:auto;position:relative;max-width:100%;-webkit-overflow-scrolling:touch;margin:.5rem 0}
.thc-meas table{border-collapse:collapse;min-width:100%;width:max-content;max-width:none}
.thc-meas th,.thc-meas td{border-bottom:1px solid var(--p-border);padding:.5rem .6rem;text-align:left;vertical-align:top}
.thc-meas th{background:var(--p-muted);font-weight:700}
.thc-meas td.thc-meas__num{white-space:nowrap}
.thc-meas__wrap{display:block;max-width:16rem;white-space:normal}
.thc-meas__wrap--name{max-width:10rem}
.thc-meas__altbtn{background:transparent;border:1px solid var(--p-stroke);border-radius:999px;color:var(--p-deep);font-weight:600;min-height:44px;padding:.3rem .8rem}
.thc-meas__altbtn:hover{background:var(--p-muted)}
.thc-meas__altbtn[aria-expanded=true]{background:var(--p-leaf);border-color:var(--p-leaf);color:var(--p-on-leaf)}
.thc-meas__altpanel{background:var(--p-raised);border-radius:var(--thc-radius-md,12px);margin:.5rem 0 1rem;padding:.75rem 1rem}
.thc-meas__altpanel:focus{outline:2px solid var(--p-leaf);outline-offset:2px}
.thc-meas__altclose{background:transparent;border:1px solid var(--p-stroke);border-radius:999px;color:var(--p-deep);font-weight:600;margin-top:.5rem;min-height:44px;padding:.3rem .9rem}
.thc-meas__alt ul{margin:.25rem 0 0;padding-left:1.2rem}
.thc-meas__alt li{margin:.15rem 0}
.thc-meas__alt-h{font-weight:700;margin:0}
.thc-meas__alt-near{font-weight:600}
.thc-meas__alt-none{font-style:italic}
.thc-meas__src{font-size:.9em;opacity:.9}
.thc-meas__one{font-size:.85em;font-weight:400;opacity:.85;white-space:nowrap}
.thc-meas__srclist{font-size:.9em;margin:.5rem 0 0;padding-left:1.2rem}
.thc-meas__pending{font-size:.92em;margin:.75rem 0 0;opacity:.9}
.thc-meas__find{margin:1rem 0}
.thc-meas__find .thc-plan__fields{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.thc-meas__hits{margin:.5rem 0 0;padding-left:1.2rem}
.thc-meas__totals{display:grid;gap:.35rem 1rem;grid-template-columns:auto 1fr;margin:.75rem 0 0}
.thc-meas__totals dt{font-weight:600}
.thc-meas__totals dd{margin:0}
.thc-meas__totals .thc-meas__total{font-weight:700}
.thc-meas__err{color:var(--p-error);font-weight:600;margin:.5rem 0 0}
@media (max-width:480px){.thc-meas__totals{grid-template-columns:1fr}.thc-meas__find .thc-plan__fields{grid-template-columns:1fr}}
@media print{.thc-meas__altbtn{display:none}}
/* 0.6.2: folded sections (details/summary) with a subtle tone per section so the eye can tell them apart. */
.thc-meas__sec{border:1.5px solid var(--p-border);border-radius:var(--thc-radius-md,12px);margin-top:1rem;padding:0;overflow:hidden;border-top-width:1.5px}
.thc-meas__sec--1{background:color-mix(in srgb,var(--p-raised) 70%,var(--p-canvas))}
.thc-meas__sec--2{background:color-mix(in srgb,var(--p-leaf) 7%,var(--p-canvas))}
.thc-meas__sec--3{background:color-mix(in srgb,var(--p-muted) 55%,var(--p-canvas))}
.thc-meas__sec--4{background:color-mix(in srgb,var(--p-deep) 6%,var(--p-canvas))}
.thc-meas__sec--5{background:color-mix(in srgb,var(--p-stroke) 8%,var(--p-canvas))}
.thc-meas__sec--6{background:color-mix(in srgb,var(--p-leaf) 4%,var(--p-raised))}
@supports not (background:color-mix(in srgb,red 50%,blue)){.thc-meas__sec--1,.thc-meas__sec--3,.thc-meas__sec--5,.thc-meas__sec--6{background:var(--p-raised)}.thc-meas__sec--2,.thc-meas__sec--4{background:var(--p-canvas)}}
.thc-meas__sum{align-items:center;cursor:pointer;display:flex;flex-wrap:wrap;gap:.25rem 1rem;list-style:none;min-height:44px;padding:.85rem 1rem .85rem 2.4rem;position:relative}
.thc-meas__sum::-webkit-details-marker{display:none}
.thc-meas__sum::before{border-right:2.5px solid var(--p-deep);border-bottom:2.5px solid var(--p-deep);content:"";height:.55rem;left:1rem;position:absolute;top:50%;transform:translateY(-70%) rotate(-45deg);transition:transform .15s;width:.55rem}
.thc-meas__sec[open]>.thc-meas__sum::before,.thc-meas__species[open]>.thc-meas__sum::before{transform:translateY(-60%) rotate(45deg)}
.thc-meas__sum:hover{background:color-mix(in srgb,var(--p-muted) 50%,transparent)}
.thc-meas__sum:focus-visible{outline:2px solid var(--p-leaf);outline-offset:-2px}
.thc-meas__sum h2,.thc-meas__sum h3{display:inline;margin:0}
.thc-meas__sec>.thc-meas__sum h2{font-size:1.25rem}
.thc-meas__sumhint{color:var(--p-text);flex-basis:100%;font-size:.9rem;opacity:.8}
.thc-meas__body{padding:0 1rem 1rem}
.thc-meas__sec .thc-meas__species{background:var(--p-canvas);border:1px solid var(--p-border);border-radius:var(--thc-radius-sm,8px);margin-top:.75rem}
.thc-meas__sum--sp{padding:.6rem .75rem .6rem 2.1rem}
.thc-meas__sum--sp::before{left:.75rem}
.thc-meas__species .thc-meas__body{padding:0 .75rem .75rem}
@media (prefers-reduced-motion:reduce){.thc-meas__sum::before{transition:none}}
.thc-meas__sources>summary{align-items:center;cursor:pointer;display:flex;min-height:44px}
