.plf {
  --plf-red: #c42323;
  --plf-dark-red: #951b1b;
  --plf-pale: #fff5f5;
  box-sizing: border-box;
  max-width: 920px;
  margin: 2rem auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #c42323;
  border-top: 6px solid #c42323;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}
.plf *, .plf *::before, .plf *::after { box-sizing: border-box; }
.plf p { margin: 0 0 16px; }
.plf h2 { margin: 0 0 16px; font: 750 clamp(28px, 4vw, 40px)/1.12 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.035em; color: #000; }
.plf h3 { margin: 0 0 16px; font: 700 21px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #000; }
.plf .plf-eyebrow { margin: 0 0 12px; color: var(--plf-red); font-size: 11px; line-height: 1.4; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.plf-heading > p:last-child { max-width: 660px; }
.plf .plf-form { margin: 28px 0 0; padding: 0; }
.plf label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.plf-input-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: end; }
.plf .plf-form input { min-width: 0; width: 100%; border: 1px solid #000; border-radius: 4px; background: #fff; color: #000; padding: 14px; font: inherit; line-height: 1.5; box-shadow: none; }
.plf .plf-form button { grid-column: 1 / -1; justify-self: start; }
.plf input::placeholder { color: #757575; opacity: 1; }
.plf .plf-form button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 52px; border: 1px solid var(--plf-red); border-radius: 4px; padding: 13px 20px; background: var(--plf-red); color: #fff; font: 700 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; text-decoration: none; }
.plf .plf-form button:hover { background: var(--plf-dark-red); border-color: var(--plf-dark-red); }
.plf .plf-form button:disabled { cursor: wait; background: var(--plf-dark-red); }
.plf a { color: var(--plf-red); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.plf a:hover { color: var(--plf-dark-red); }
.plf input:focus-visible, .plf button:focus-visible, .plf a:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.plf .plf-fine { margin: 12px 0 0; font-size: 12px; line-height: 1.6; }
.plf .plf-status { margin: 18px 0; font-size: 13px; }
.plf .plf-error, .plf .plf-warning { padding: 12px 16px; border-left: 3px solid var(--plf-red); background: var(--plf-pale); color: #000; font-size: 13px; }
.plf-results:empty { display: none; }
.plf-results:focus { outline: none; }
.plf-location { margin: 28px 0 20px; padding: 22px; background: var(--plf-pale); border-radius: 4px; }
.plf-location h3 { margin-bottom: 0; font-size: 17px; }
.plf .plf-address-locality { margin: 4px 0 0; font-size: 16px; }
.plf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.plf-chip { display: inline-block; padding: 4px 10px; border: 1px solid var(--plf-red); border-radius: 3px; color: var(--plf-dark-red); background: #fff; font-size: 12px; font-weight: 650; }
.plf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.plf-group { padding: 22px; border: 1px solid #c42323; border-radius: 4px; }
.plf .plf-group .plf-eyebrow { font-size: 10px; }
.plf .plf-group h3 { font-size: 19px; margin: 0 0 12px; }
.plf .plf-candidates { list-style: none; margin: 0; padding: 0; }
.plf .plf-candidate { margin: 0; padding: 16px 0; border-bottom: 1px solid #f5d3d3; overflow-wrap: anywhere; }
.plf .plf-candidate:last-child { border: none; padding-bottom: 0; }
.plf-candidate-name { display: block; font-size: 17px; }
.plf-office { display: block; font-size: 12px; margin-top: 4px; }
.plf .plf-empty { font-size: 13px; margin: 16px 0 0; }
.plf .plf-sources { margin: 22px 0; }
.plf-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 20px; border-top: 1px solid #f5d3d3; font-size: 12px; }
.plf-editor .components-base-control { margin-top: 24px; }
.plf-editor .components-notice { margin: 16px 0; background: var(--plf-pale); border-left-color: var(--plf-red); color: #000; }
.plf-editor .plf-form input:disabled, .plf-editor .plf-form button:disabled { opacity: 1; cursor: default; }
@media (max-width: 600px) {
  .plf { padding: 24px 18px; }
  .plf-grid { grid-template-columns: 1fr; }
  .plf .plf-form button { width: 100%; }
  .plf-group { padding: 18px; }
}
