/* Lok Sabha: all states (lok-sabha-directory.js): the state chooser, a state's members, the search, the
   profile of an MP whose office has not joined, and the line on a matched profile. Tokens only, so the dark
   theme follows; one column from 320px, more from 640px. */
.lok-entry{display:grid;gap:2px;margin:10px 0 0;padding:10px 14px;border-radius:12px;border:1px solid var(--line);background:var(--theme-surface,#fff);color:var(--ink);text-decoration:none;max-width:420px;min-width:0}
.lok-entry strong{color:var(--theme-accent,#087f75);overflow-wrap:anywhere}.lok-entry span{font-size:.84rem;color:var(--muted);line-height:1.45}
.lok-entry:hover,.lok-entry:focus-visible{background:var(--theme-tint,#e0f4ee)}
.lok-page{min-width:0}
.lok-head h1{font-size:clamp(1.5rem,5vw,2.2rem);margin:4px 0 10px;overflow-wrap:anywhere}
.lok-lede{margin:0 0 6px;line-height:1.55;max-width:70ch;color:var(--ink)}
.lok-count{margin:0;font-size:.88rem;line-height:1.5;color:var(--muted);max-width:70ch}
.lok-filter{display:grid;grid-template-columns:1fr;gap:12px;margin:18px 0 8px;min-width:0}
.lok-field{display:grid;gap:6px;min-width:0}
.lok-field label{font-size:.84rem;font-weight:650;color:var(--ink)}
.lok-field input,.lok-field select{width:100%;min-width:0;min-height:44px;box-sizing:border-box;font:inherit;font-size:1rem;color:var(--ink)}
.lok-results{min-width:0}
.lok-subhead{font-size:1.1rem;margin:18px 0 10px;overflow-wrap:anywhere}
.lok-subhead span{font-size:.84rem;font-weight:500;color:var(--muted);margin-left:6px;white-space:nowrap}
.lok-states{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:8px}
.lok-states button{display:flex;justify-content:space-between;align-items:baseline;gap:10px;width:100%;min-height:48px;padding:10px 14px;border-radius:12px;border:1px solid var(--line);background:var(--theme-surface,#fff);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.lok-states button strong{font-weight:650;overflow-wrap:anywhere;min-width:0}
.lok-states button span{font-size:.82rem;color:var(--muted);white-space:nowrap}
.lok-states button:hover,.lok-states button:focus-visible{background:var(--theme-tint,#e0f4ee)}
.lok-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.lok-row{display:grid;gap:6px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--theme-surface,#fff);min-width:0}
.lok-row[data-gone]{border-style:dashed}
.lok-row a{display:grid;gap:2px;color:var(--ink);text-decoration:none;min-width:0}
.lok-row a:hover .lok-name,.lok-row a:focus-visible .lok-name{text-decoration:underline}
.lok-const{font-size:.82rem;color:var(--muted);overflow-wrap:anywhere}
.lok-name{font-size:1rem;overflow-wrap:anywhere}
.lok-party{font-size:.82rem;color:var(--ink);overflow-wrap:anywhere}
.lok-status{justify-self:start;font-size:.76rem;line-height:1.3;padding:3px 8px;border-radius:999px;background:var(--theme-soft,#eef3f0);color:var(--ink)}
.lok-status[data-lok-joined]{background:var(--theme-tint,#e0f4ee);color:var(--theme-accent,#087f75);font-weight:650}
.lok-empty{padding:18px;border-radius:12px;border:1px dashed var(--line);color:var(--muted)}
.lok-foot{margin-top:28px;display:grid;gap:10px;max-width:760px}
.lok-source{padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--theme-surface,#fff);min-width:0}
.lok-source h2{font-size:1rem;margin:0 0 6px}.lok-source p{margin:4px 0;overflow-wrap:anywhere}
.lok-muted{color:var(--muted);font-size:.84rem}
.lok-claim{margin:0;font-size:.86rem;line-height:1.55;color:var(--muted);max-width:75ch}
.lok-error{padding:14px;border-radius:12px;background:var(--danger-bg);color:var(--danger)}
.lok-back{margin:0 0 12px}
.lok-profile-head{display:flex;gap:14px;align-items:center;min-width:0}
.lok-profile-head>div{min-width:0}
.lok-profile-head h1{font-size:clamp(1.4rem,5vw,2rem);margin:2px 0 4px;overflow-wrap:anywhere}
.lok-where{margin:0;color:var(--muted);overflow-wrap:anywhere}
.lok-initials{flex:none;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--theme-tint,#e0f4ee);color:var(--theme-accent,#087f75);font-weight:700;font-size:1.3rem}
.lok-not-joined{margin:18px 0 0;padding:12px 14px;border-radius:12px;border-left:3px solid var(--theme-accent,#087f75);background:var(--theme-soft,#eef3f0);color:var(--ink);font-weight:650;line-height:1.5}
.lok-gone-note{margin:10px 0 0;padding:10px 14px;border-radius:12px;border:1px dashed var(--line);color:var(--ink);line-height:1.5}
.lok-facts{display:grid;grid-template-columns:1fr;gap:10px;margin:18px 0;padding:0}
.lok-facts div{min-width:0}.lok-facts dt{font-size:.8rem;color:var(--muted)}.lok-facts dd{margin:2px 0 0;font-weight:600;overflow-wrap:anywhere}
.lok-profile .lok-source{margin-bottom:12px}.lok-profile .lok-claim+.lok-claim{margin-top:8px}
.lok-matched{display:grid;gap:6px;margin-top:14px;min-width:0}.lok-matched p{margin:0;overflow-wrap:anywhere;line-height:1.5}
.lok-matched .lok-not-joined{margin:0}
.lok-page :focus-visible,.lok-entry:focus-visible,.lok-matched :focus-visible{outline:2px solid var(--theme-accent,#087f75);outline-offset:3px}
@media (min-width:640px){
  .lok-filter{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
  .lok-states{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lok-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lok-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1000px){.lok-states{grid-template-columns:repeat(3,minmax(0,1fr))}}
