/* Region-based repeater finder. Loaded after the shared site stylesheet. */
.repeater-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto; align-items:end; gap:18px; }
.repeater-fields > div { min-width:0; }
.repeater-search select, .repeater-search input { width:100%; min-height:52px; margin:0; padding:12px 14px; color:var(--ink); background:var(--surface); border:1px solid #817461; border-radius:10px; font:inherit; }
.repeater-search label {  }
.repeater-fields > .btn { min-height:52px; }
.repeater-query-wrap { position:relative; }
.repeater-query-wrap input { padding-right:48px; }
.repeater-query-wrap input::-webkit-search-cancel-button { -webkit-appearance:none; }
#repeater-clear { position:absolute; right:4px; top:4px; width:44px; height:44px; border:0; border-radius:8px; background:transparent; color:var(--muted);  cursor:pointer; }
#repeater-clear:hover { background:var(--surface-2); color:var(--ink); }
#repeater-help, .repeater-zone-note { color:var(--muted);  }
#repeater-help { margin:12px 0 0; }
.repeater-text-button { border:0; padding:10px 0; background:transparent; color:var(--brown); text-decoration:underline; text-underline-offset:3px; font:inherit; cursor:pointer; }
.repeater-search :focus-visible, .repeater-text-button:focus-visible { outline:3px solid var(--brown); outline-offset:3px; }
.section .repeater-region { padding:0; margin:32px 0; }
.section .repeater-region > h2 {    margin:0 0 16px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.repeater-region-count {  font-weight:400; color:var(--muted); white-space:nowrap; }
.section .repeater-card h3 {    margin:0 0 8px; }
.repeater-zone { display:inline-block; padding:2px 8px; margin:4px 0; background:var(--surface-2); border:1px solid var(--line); border-radius:6px; color:var(--brown);  font-weight:700; white-space:nowrap; }
#repeater-count {  }
#repeater-empty { padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.repeater-section [hidden] { display:none !important; }
.simplex-reference { margin:12px 0 18px; padding:12px 16px; background:var(--surface-2); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:12px; }
.section .simplex-reference h2 {    margin:4px 0 6px; }
.simplex-reference p { margin:6px 0;  line-height:1.4; }
.simplex-reference .simplex-source {  color:var(--muted); }
.simplex-reference summary { cursor:pointer;  text-decoration:underline; text-underline-offset:3px; }
.simplex-reference summary:focus-visible { outline:3px solid var(--brown); outline-offset:3px; }
.repeater-grid { gap:12px; }
.repeater-card { padding:12px 14px; }
.repeater-card p { margin-bottom:5px; }
.repeater-card dl { margin-top:8px; gap:8px; }
.section .repeater-card h3 { margin-bottom:5px;  }
.section .repeater-region { margin:22px 0; }
.section .repeater-region > h2 { margin-bottom:12px; padding-bottom:8px; }
@media (min-width:1100px) { .repeater-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:900px) { .repeater-fields { grid-template-columns:minmax(0,1fr); gap:16px; } .repeater-fields > .btn { justify-self:start; min-width:140px; } }
@media (max-width:500px) { .repeater-search { padding:18px; } .repeater-fields > .btn { width:100%; } .section .repeater-card h3 {  } }


.repeater-search-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 22px; }
.repeater-share-status { min-height:1.4em; margin:0;  color:var(--muted); }
.repeater-settings { border-top:1px solid var(--line); margin-top:12px; padding-top:10px; }
.repeater-settings summary { cursor:pointer; font-weight:700; color:var(--brown); }
.repeater-settings summary span { display:block;  font-weight:400; color:var(--muted); margin-left:16px; }
.repeater-card .repeater-settings dl { grid-template-columns:repeat(2,minmax(0,1fr)); margin:12px 0; }
.repeater-settings p, .repeater-settings a {  line-height:1.5; }
.repeater-settings a { display:inline-block; padding:6px 0; color:var(--brown); font-weight:700; }
.repeater-settings summary:focus-visible { outline:3px solid var(--brown); outline-offset:3px; }

/* Consultation layout: keep search feedback and matching cards together. */
body.rf-site main > .repeater-hero { padding-block:var(--space-5) var(--space-2); }
.repeater-hero h1 { margin-bottom:var(--space-2); }
.repeater-hero .article-lead { margin-block:0 var(--space-2); }
.repeater-hero .source-note { margin-block:0; }
body.rf-site main > .repeater-hero + .repeater-section { padding-top:var(--space-3); }
.repeater-search-actions { margin-top:var(--space-2); }
.repeater-share-status:empty { display:none; }
#repeater-count { margin:var(--space-4) 0 var(--space-2); scroll-margin-top:6rem; }
#repeater-count:focus-visible { outline:3px solid var(--color-secondary); outline-offset:4px; border-radius:var(--radius-control); }
.repeater-list-note { margin-top:var(--space-6); }
.repeater-list-note > h2 { margin-bottom:var(--space-3); }
@media(max-width:900px) {
  .repeater-fields { gap:var(--space-3); }
  .repeater-search-actions { gap:0 var(--space-4); }
  .repeater-search-actions > a:last-child { padding-block:var(--space-2); }
}
