/* Montana field directory: the same stone, linen type and brass rules as the firm. */
.county-body [hidden] { display:none!important }
.detail-page .county-hero .detail-hero-inner {padding-bottom:clamp(32px,4.7vw,66px)}
.county-hero-grid {display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,.78fr);align-items:end;gap:clamp(30px,6vw,95px)}
.detail-page .county-hero h1 {font-size:clamp(42px,5.9vw,85px);max-width:17ch}
.county-hero .detail-lead {max-width:63ch}
.county-entry {border-top:1px solid var(--gold);padding-block-start:20px}
.county-entry p {margin-bottom:8px;}
.county-entry a {display:block;border-bottom:1px solid var(--line);padding:10px 0;color:var(--text);font-size:1rem}
.county-entry a:hover,.county-entry a:focus-visible {color:var(--gold);text-decoration:underline;text-underline-offset:4px}
.county-body {padding-block:clamp(44px,6vw,90px)}
.county-body :is(h2,h3) {line-height:1.1;text-wrap:balance}
.county-body h2 {font-size:clamp(36px,4.25vw,62px);margin-top:8px}
.county-body :is(p:not(.eyebrow),li) {font-size:1rem;line-height:1.58}
.county-body a:not(.county-group a) {color:var(--gold);text-decoration:underline;text-underline-offset:.22em;text-decoration-thickness:1px}
.county-body :is(input,button,a,summary):focus-visible {outline:2px solid var(--gold);outline-offset:4px}
.county-intro {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.82fr);align-items:end;gap:24px;margin-bottom:26px}
.county-intro>p {color:#c5c9ba;max-width:60ch}
.county-controls {background:#22251f;padding:clamp(18px,2.4vw,32px);border:1px solid var(--line);border-top-color:#9e906e}
.county-controls label {display:block;font-size:1.05rem;font-weight:600;color:var(--text);margin-bottom:9px}
.county-input-row {display:flex;align-items:stretch;gap:8px}
.county-input-row input {flex:1 1 12rem;min-width:0;width:100%;max-width:100%;border:1px solid #777c69;background:#171a16;color:var(--text);border-radius:1px;padding:12px 14px;font:inherit;font-size:1rem;line-height:1.4}
.county-input-row input::placeholder {color:#afb1a4;opacity:1}
.county-input-row button,.county-tools button {min-height:44px;padding:8px 16px;border:1px solid #827b67;color:var(--text);font:inherit;font-size:.95rem;background:transparent;cursor:pointer}
.county-input-row button:disabled {opacity:.48;cursor:default}
.county-body .county-controls p,.county-body .county-sources {font-size:.9rem;color:#bfc3b4;margin-top:10px}
.county-tools {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px;min-height:44px}
.county-tools p {color:#ddded4}
.county-tools button {font-size:.91rem;border:0;padding-inline:0;color:var(--gold);text-decoration:underline;text-underline-offset:.25em}
.county-group {border-top:1px solid #555b4f}
.county-group:last-child {border-bottom:1px solid #555b4f}
.county-group>summary {cursor:pointer;display:flex;align-items:center;gap:14px;list-style:none;min-height:53px;padding:10px 3px;color:#d9c99e;line-height:1.3}
.county-group>summary::-webkit-details-marker {display:none}
.county-group>summary::before {content:"";width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-inline:3px}
.county-group[open]>summary::before {transform:rotate(45deg) translate(-1px,-1px)}
.county-group>summary>span:first-child {font:400 1.5rem/1.1 var(--serif)}
.county-group-count {margin-left:auto;font-size:.86rem;color:#c3c5b8}
.county-group ul {padding:0 0 20px;margin:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 clamp(12px,2vw,30px)}
.county-group li {min-width:0;border-top:1px solid var(--line);padding:0 0 2px}
.county-group li a {display:block;color:var(--text);padding:11px 2px 9px;text-decoration:none}
.county-group a strong {display:block;font-size:1rem;line-height:1.35}
.county-group a span,.county-match {display:block;font-size:.885rem;color:#c1c5b3;line-height:1.42}
.county-group li a:hover strong,.county-group li a:focus-visible strong {color:var(--gold);text-decoration:underline;text-underline-offset:3px}
.county-match {color:#d2bf8c;margin-bottom:8px}
.county-empty {padding:18px 20px;border:1px solid var(--line);background:var(--panel)}
.county-body .county-sources {margin-top:18px}
.county-practice {margin-top:clamp(46px,7vw,95px);border-top:1px solid var(--line);padding-top:clamp(36px,4vw,60px)}
.county-topics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(28px,5vw,70px);margin-top:28px}
.county-topics article {padding:22px 0;border-top:1px solid var(--line)}
.county-topics h3 {font-size:clamp(23px,2.15vw,32px)}
.county-topics p {max-width:54ch;color:#c5c9ba;margin:10px 0 9px}
.county-topics article>div {display:flex;flex-wrap:wrap;column-gap:20px}
.county-topics a {padding:6px 0;font-size:.95rem}
@media(max-width:760px){
  .county-hero-grid,.county-intro,.county-topics {grid-template-columns:1fr}
  .county-hero-grid {gap:26px}
  .county-entry {padding-top:12px}
  .county-entry p {margin-bottom:0}
  .county-entry a {display:inline-block;padding:10px 0;margin-right:15px;border:0;text-decoration:underline;text-underline-offset:.25em}
  .county-group ul {grid-template-columns:repeat(2,minmax(0,1fr))}
  .county-intro {gap:10px}
}
@media(max-width:440px){
  .county-input-row {gap:6px}
  .county-input-row input {padding-inline:9px}
  .county-input-row button {padding-inline:9px}
  .county-group ul {gap:0 12px}
  .county-body .county-sources {font-size:.86rem}
}
@media(max-width:335px){.county-group ul {grid-template-columns:1fr}}
