/* BBB.Vote app screens (sign in, account, church, business, admin). Every rule is scoped to #app-view (or to a dialog)
   so the original site's look (assets/css/site.css) is never changed. Colours follow the original site's palette. */
:root {
  --app-navy: #031f3b; --app-navy-2: #12355c; --app-red: #a30c16; --app-gold: #d9a535; --app-ink: #142d42; --app-muted: #60665f;
  --app-line: #d8d1c2; --app-ok: #1f6b3a; --app-warn: #8a5a00; --app-err: #a01d24; --app-focus: #ffbf47; --app-radius: 4px;
}
:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; }

#app-view { color: var(--app-ink); font-size: 16px; line-height: 1.6; }
#app-view:focus { outline: none; }
#app-view h1 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.5px; margin: 0 0 18px; }
#app-view h2 { font-size: 24px; letter-spacing: 0; margin: 28px 0 10px; }
#app-view h3 { font-size: 19px; margin: 18px 0 8px; }
#app-view p { margin: 0 0 12px; }
#app-view a { color: var(--app-navy-2); text-underline-offset: 2px; }
#app-view a.ext .host { color: var(--app-muted); font-size: .9em; }
#app-view .muted { color: var(--app-muted); }
#app-view .narrow { max-width: 560px; }

/* buttons and forms */
#app-view .btn { display: inline-block; font: inherit; font-size: 14px; padding: 9px 16px; border-radius: var(--app-radius); border: 1px solid var(--app-navy);
  background: #fff; color: var(--app-navy); cursor: pointer; margin: 2px 4px 2px 0; text-decoration: none; letter-spacing: 0; }
#app-view .btn:hover { background: #eef1f5; }
#app-view .btn:disabled { opacity: .55; cursor: not-allowed; }
#app-view .btn-primary { background: var(--app-navy); color: #fff; }
#app-view .btn-primary:hover { background: var(--app-navy-2); }
#app-view .btn-danger { border-color: var(--app-err); color: var(--app-err); }
#app-view .btn-link { border: 0; background: none; padding: 2px 0; color: var(--app-navy-2); text-decoration: underline; }
#app-view .btn-tab[aria-pressed="true"], #app-view .btn-tab[aria-current="page"] { background: var(--app-navy); color: #fff; }
#app-view .subnav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
#app-view .form { max-width: 640px; }
#app-view .field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
#app-view .field label { font-weight: 700; font-size: 14px; }
#app-view .field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; }
#app-view .field-check > label { flex: 1 1 0; min-width: 0; }
#app-view .field-check > .help, #app-view .field-check > .field-err { flex-basis: 100%; padding-left: 28px; }
#app-view .field-check label { font-weight: 400; }
#app-view .field-check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
#app-view input[type=text], #app-view input[type=email], #app-view input[type=password], #app-view input[type=url], #app-view input[type=tel],
#app-view input[type=search], #app-view input[type=date], #app-view input:not([type]), #app-view select, #app-view textarea {
  font: inherit; font-size: 15px; padding: 9px 10px; border: 1px solid #8b8f99; border-radius: var(--app-radius); background: #fff; width: 100%; max-width: 100%; color: var(--app-ink); }
#app-view textarea { resize: vertical; }
#app-view [aria-invalid="true"] { border-color: var(--app-err); box-shadow: 0 0 0 1px var(--app-err); }
#app-view .field-err { color: var(--app-err); margin: 0; font-size: 14px; }
#app-view .field-err:empty { display: none; }
#app-view .help { color: var(--app-muted); font-size: 14px; margin: 0; }
#app-view .req { color: var(--app-err); }
#app-view .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
#app-view .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
#app-view .inline-form input, #app-view .inline-form select { width: auto; min-width: 180px; flex: 1 1 180px; }
#app-view .msg { padding: 10px 14px; border-radius: var(--app-radius); margin: 0 0 14px; border-left: 4px solid var(--app-navy); background: #eef1f5; }
#app-view .msg-error { border-color: var(--app-err); background: #fbeaea; }
#app-view .msg-ok { border-color: var(--app-ok); background: #e9f5ec; }
#app-view .msg-warn { border-color: var(--app-warn); background: #fff4dd; }
#app-view .badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #e7ecf4; color: var(--app-navy); margin-left: 6px; vertical-align: middle; font-family: Arial, sans-serif; }
#app-view .badge-warn { background: #fff0cc; color: var(--app-warn); }
/* Account → Notifications: unread notices stand out; read ones are quieter (2026-11-19). */
#app-view .notes li { margin: 0 0 8px; }
#app-view .notes li.unread { border-left: 3px solid var(--app-gold); padding-left: 8px; }
#app-view .notes li.read { color: var(--app-muted); }
#app-view .notes .notes-new { margin-left: 0; background: #fff0cc; color: var(--app-warn); }
#app-view .notes-read-box { margin: 14px 0 0; border-top: 1px solid var(--app-line); padding-top: 8px; }
#app-view .notes-read-box > summary { cursor: pointer; font-weight: 700; color: var(--app-navy); }
#app-view .notes-read-box .notes { margin-top: 10px; }
#app-view .pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 10px; }
#app-view .pager-current { font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--app-navy); color: #fff; }
#app-view .pager-gap { color: var(--app-muted); }
#app-view .badge-info { background: #e4f0ff; }
#app-view .card { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 16px; margin: 0 0 16px; }
#app-view .card.danger-zone { border-color: var(--app-err); }
#app-view .cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0; }
#app-view .card-btn { display: block; width: 100%; background: none; border: 0; padding: 0; font: 20px Georgia, serif; color: var(--app-navy); text-align: left; cursor: pointer; text-decoration: underline; }
dialog.dialog { border: 1px solid #d8d1c2; border-radius: 4px; max-width: min(480px, 92vw); padding: 20px; font-family: Arial, sans-serif; color: #142d42; }
dialog.dialog .actions { display: flex; gap: 6px; justify-content: flex-end; }
dialog.dialog .btn { font: inherit; font-size: 14px; padding: 9px 16px; border: 1px solid #031f3b; background: #fff; color: #031f3b; cursor: pointer; }
dialog.dialog .btn-primary { background: #031f3b; color: #fff; }
dialog.dialog .btn-danger { border-color: #a01d24; color: #a01d24; }
dialog::backdrop { background: rgba(3, 31, 59, .45); }

/* lists, study and directory pieces still used by app screens */
#app-view .ref { color: var(--app-red); font-weight: 700; }
#app-view .scripture { font: 18px/1.75 Georgia, serif; background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 16px 20px; }
#app-view .resources { list-style: none; padding: 0; }
#app-view .resource { border-bottom: 1px solid var(--app-line); padding: 12px 0; }
#app-view .resource-title { font-size: 20px; margin: 0 0 4px; }
#app-view .meta { color: var(--app-muted); font-size: 14px; margin: 2px 0; }
#app-view .notice { background: #fff6dc; border-left: 4px solid var(--app-gold); padding: 10px 14px; }

/* church search combobox */
#app-view .combo-anchor { position: relative; }
#app-view .combo-list { list-style: none; margin: 2px 0 0; padding: 4px 0; border: 1px solid #8b8f99; border-radius: var(--app-radius); background: #fff; max-height: 260px; overflow: auto;
  position: absolute; top: 100%; left: 0; right: 0; z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
#app-view .combo-list li { padding: 8px 12px; cursor: pointer; }
#app-view .combo-list li.active, #app-view .combo-list li:hover { background: #e7ecf4; }
#app-view .chosen { font-weight: 700; color: var(--app-ok); margin: 0; }

/* admin */
#app-view .table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
#app-view .table th, #app-view .table td { border-bottom: 1px solid var(--app-line); padding: 6px 8px; text-align: left; vertical-align: top; }
#app-view .table th { background: #efe9dc; }
#app-view .row-warn td { background: #fff8e8; }
#app-view .details { max-width: 340px; overflow-wrap: anywhere; font-size: 12px; color: var(--app-muted); }
#app-view .facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
#app-view .facts dt { font-weight: 700; }
#app-view .facts dd { margin: 0; overflow-wrap: anywhere; }
/* Business Directory Membership (0.24.0): plan cards, Square's secure card form, authorization, the My business panel */
#app-view .membership h3 { font-size: 17px; margin: 18px 0 6px; color: var(--app-navy); }
#app-view .plan-choice { border: 0; padding: 0; margin: 8px 0 0; min-width: 0; }
#app-view .plan-choice > legend { font-weight: 700; padding: 0; margin: 0 0 6px; }
#app-view .plan-group { border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 12px 14px; margin: 0 0 12px; background: #fff; }
#app-view .plan-group > h3 { margin-top: 0; }
#app-view .plan-group-lifetime { border: 2px solid var(--app-gold); background: #fffaf0; }
#app-view .plan-sub { margin: -2px 0 6px; font: italic 16px Georgia, serif; color: var(--app-red); }
#app-view .plan-note { margin: 0 0 6px; font-size: 14px; }
#app-view .plan-count { margin: 0 0 8px; font-weight: 700; color: var(--app-navy); }
#app-view .plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
#app-view .plan-card { position: relative; display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--app-line); border-radius: 6px;
  padding: 12px 14px; background: #fff; cursor: pointer; font-weight: 400; }
#app-view .plan-card:hover { border-color: var(--app-navy-2); }
#app-view .plan-card.is-selected { border-color: var(--app-navy); box-shadow: 0 0 0 2px var(--app-navy) inset; }
#app-view .plan-card:focus-within { outline: 3px solid var(--app-focus); outline-offset: 2px; }
#app-view .plan-card input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
#app-view .plan-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#app-view .plan-badge { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--app-red); }
#app-view .plan-lifetime .plan-badge { color: #7a5300; }
#app-view .plan-name { font-weight: 700; font-size: 16px; color: var(--app-navy); }
#app-view .plan-price { font: 700 22px Georgia, serif; color: var(--app-ink); }
#app-view .plan-freq, #app-view .plan-desc { font-size: 13px; color: var(--app-muted); }
/* Picture cards (owner's membership images, 2026-11-18): the picture on top, the real radio, name and price under it. */
#app-view .plan-cards.with-images { grid-template-columns: repeat(auto-fill, minmax(150px, 250px)); }
#app-view .plan-card.has-image { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; }
#app-view .plan-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 4px; background: #031f3b; }
#app-view .plan-row { display: flex; gap: 8px; align-items: flex-start; }
#app-view .plan-card.has-image .plan-price { font-size: 19px; }
#app-view .plan-card.has-image .plan-desc { display: none; }
/* the picture and the section heading already say "Founding" / "Lifetime"; the badge stays for screen readers only */
#app-view .plan-card.has-image .plan-badge { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#app-view .plan-card.has-image.is-selected { border-color: var(--app-gold); box-shadow: 0 0 0 3px var(--app-gold) inset; }
#app-view .plan-check { display: none; position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--app-gold); color: var(--app-navy); font: 700 20px/34px Arial, sans-serif; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
#app-view .plan-card.is-selected .plan-check { display: block; }
/* Lifetime tiers (owner, 2026-11-18): all three shown with their membership numbers; the ones not open yet are locked. */
#app-view .plan-per { display: block; font: 600 12px Arial, sans-serif; color: var(--app-muted); }
#app-view .plan-range { font-size: 13px; font-weight: 700; color: var(--app-navy); }
#app-view .plan-status { font-size: 13px; color: var(--app-muted); }
#app-view .plan-card.plan-locked { cursor: default; background: #f3f1ec; border-style: dashed; }
#app-view .plan-card.plan-locked:hover { border-color: var(--app-line); }
#app-view .plan-locked .plan-name, #app-view .plan-locked .plan-price { color: var(--app-muted); }
#app-view .plan-locked.is-sold-out .plan-price { text-decoration: line-through; }
#app-view .plan-img-wrap { position: relative; display: block; }
#app-view .plan-locked .plan-img { filter: grayscale(.8) brightness(.7); }
#app-view .plan-lock { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 4px; border-radius: 0 0 4px 4px;
  background: rgba(3, 31, 59, .9); color: #fff; font: 700 13px Arial, sans-serif; text-align: center; }
#app-view .plan-lock-icon { flex: none; width: 18px; margin-top: 3px; font-size: 13px; line-height: 18px; text-align: center; color: var(--app-muted); }
@media (max-width: 420px) {
  #app-view .plan-cards.with-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #app-view .plan-card.has-image { padding: 6px; }
  #app-view .plan-card.has-image .plan-name { font-size: 14px; }
  #app-view .plan-card.has-image .plan-price { font-size: 16px; }
  #app-view .plan-card.has-image .plan-range, #app-view .plan-card.has-image .plan-status { font-size: 12px; }
  #app-view .plan-lock { font-size: 12px; }
}
#app-view .plan-disclosures:not(:empty) { border-left: 4px solid var(--app-navy); background: #f4f1ea; padding: 8px 14px; margin: 4px 0 8px; }
#app-view .plan-disclosures h4 { margin: 4px 0; font-size: 15px; }
#app-view .plan-disclosures ul { margin: 4px 0; padding-left: 20px; font-size: 14px; }
#app-view .card-fields { margin: 8px 0 4px; }
#app-view .square-card { min-height: 90px; }
#app-view .membership .consent-text { border: 1px solid var(--app-line); background: #fff; padding: 10px 12px; margin: 0 0 10px; font-size: 14px; }
#app-view .plan-agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
#app-view .plan-agree input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
#app-view .legal-links .legal-link { padding: 0; margin: 0; min-height: 0; min-width: 0; vertical-align: baseline; font: inherit; }
#app-view .field-label { display: block; font-weight: 700; margin-bottom: 4px; }
#app-view .billing-panel { border-top: 1px solid var(--app-line); margin-top: 12px; padding-top: 8px; }
#app-view .update-card { margin-top: 10px; }
dialog.legal-dialog { border: 1px solid #d8d1c2; border-radius: 4px; width: min(720px, 92vw); max-height: 85vh; padding: 20px; font-family: Arial, sans-serif; color: #142d42; background: #fff; }
dialog.legal-dialog h2 { font: 22px Georgia, serif; color: #031f3b; margin: 0 0 10px; }
dialog.legal-dialog .legal-body { overflow-y: auto; max-height: 60vh; font-size: 15px; line-height: 1.5; white-space: pre-line; }
dialog.legal-dialog .actions { display: flex; justify-content: flex-end; margin-top: 12px; }
dialog.legal-dialog .btn { font: inherit; font-size: 14px; padding: 9px 16px; border: 1px solid #031f3b; background: #fff; color: #031f3b; cursor: pointer; }
#app-view .plain { list-style: none; padding: 0; }
#app-view .plain li { margin: 6px 0; }
#app-view .preview-frame { border: 2px dashed var(--app-gold); padding: 12px 16px; border-radius: var(--app-radius); background: #fff; margin: 12px 0; }
#app-view .secret, #app-view .codes code { font: 17px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .08em; background: #fff; border: 1px solid var(--app-line); padding: 6px 10px; display: inline-block; }
#app-view .codes { columns: 2; list-style: none; padding: 0; }
#app-view .qr { display: block; width: 208px; height: 208px; margin: 10px 0; border: 1px solid var(--app-line); background: #fff; }
#app-view .setup-steps > li { margin-bottom: 14px; }
#app-view .timeline { padding-left: 1.2em; }
#app-view .timeline blockquote { margin: 4px 0 8px; padding-left: 10px; border-left: 3px solid var(--app-line); color: var(--app-muted); font: inherit; }
#app-view fieldset { border: 1px solid var(--app-line); border-radius: var(--app-radius); }
#app-view .warn { color: var(--app-warn); }
@media (max-width: 700px) {
  #app-view .facts { grid-template-columns: 1fr; }
  #app-view .facts dd { margin-bottom: 6px; }
}

/* sign-up page */
#app-view .signup { max-width: 980px; }
#app-view .signup .lead-in { color: var(--app-muted); }
#app-view .su-group { border: 1px solid var(--app-line); border-radius: var(--app-radius); background: #fff; padding: 18px 20px 6px; margin: 0 0 22px; }
#app-view .su-group > legend { font: 22px Georgia, serif; color: var(--app-navy); padding: 0 8px; }
#app-view .su-subgroup { border: 0; padding: 4px 0 0 30px; margin: 4px 0 0; }
#app-view .su-subgroup > legend { font-weight: 700; font-size: 14px; padding: 0; }
#app-view .su-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
#app-view .su-grid .full { grid-column: 1 / -1; }
#app-view .su-top { max-width: 470px; grid-template-columns: 1fr; margin-bottom: 8px; }
/* One-step Business sign-up (owner request 2026-11-11): the business application inside the sign-up form */
#app-view .su-business { border-left: 5px solid var(--app-navy); }
#app-view .su-business .su-intro { margin: 0 0 14px; font-size: 14px; color: var(--app-ink); }
#app-view .su-consent { background: #f6f2e9; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 12px 14px; margin: 6px 0 8px; font-size: 14px; }
#app-view .su-consent p { margin: 0 0 8px; }
#app-view .su-consent .consent-text { margin: 0; color: var(--app-muted); }
/* Business sign-up: the Social Media links inside the Business section (0.20.0) */
#app-view .su-subhead { border-top: 1px solid var(--app-line); padding-top: 12px; margin-top: 6px; }
#app-view .su-subhead h3 { font: 18px Georgia, serif; color: var(--app-navy); margin: 0 0 4px; }
#app-view .su-subhead .help { margin: 0 0 10px; font-size: 14px; }
#app-view .dir-mode-help { flex-basis: 100%; margin: 2px 0 0; }
#app-view input[readonly], #app-view select:disabled { background: #f1eee6; color: var(--app-ink); }
#app-view .error-summary { border: 3px solid var(--app-err); background: #fff; padding: 14px 18px; margin: 0 0 22px; }
#app-view .error-summary:focus { outline: 3px solid var(--app-focus); outline-offset: 2px; }
#app-view .error-summary h2 { font-size: 20px; margin: 0 0 6px; color: var(--app-err); }
#app-view .error-summary ul { margin: 0; padding-left: 20px; }
#app-view .error-summary .btn-link { color: var(--app-err); text-align: left; }
@media (max-width: 700px) {
  #app-view .su-grid { grid-template-columns: 1fr; }
  #app-view .su-group { padding: 14px 14px 4px; }
  #app-view .signup .btn-primary { width: 100%; }
}

/* public Church & Business Directory */
#app-view .directory { max-width: 980px; }
#app-view .directory .lead-in { color: var(--app-muted); }
#app-view .dir-search { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 16px 18px 8px; margin: 0 0 14px; }
#app-view .dir-modes { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#app-view .dir-modes legend { font-weight: 700; font-size: 14px; padding: 0; margin: 0 0 6px; }
#app-view .dir-mode-opt { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--app-navy); border-radius: var(--app-radius);
  padding: 8px 16px; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--app-navy); background: #fff; }
#app-view .dir-mode-opt:has(input:checked) { background: var(--app-navy); color: #fff; }
#app-view .dir-mode-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--app-gold); }
#app-view .dir-mode-opt:focus-within { outline: 3px solid var(--app-focus); outline-offset: 2px; }
#app-view .dir-query { display: flex; gap: 10px; align-items: flex-start; }
#app-view .dir-query .field { flex: 1 1 auto; }
#app-view .dir-query > .btn { margin-top: 29px; }
#app-view .dir-status { font-weight: 700; margin: 6px 0 12px; }
#app-view .dir-status:focus { outline: none; }
#app-view .dir-status:focus-visible { outline: 3px solid var(--app-focus); }
#app-view .dir-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
#app-view .dir-card > article { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 16px 18px 10px; }
#app-view .dir-name { font-size: 22px; margin: 0 0 2px; }
#app-view .dir-desc { margin: 6px 0; }
#app-view .dir-contact { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 8px 0; font-size: 15px; }
#app-view .dir-contact dt { font-weight: 700; color: var(--app-muted); }
#app-view .dir-contact dd { margin: 0; overflow-wrap: anywhere; }
/* Website plus social media icons on one line (icons wrap below on narrow screens) */
#app-view .dir-web { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
#app-view .dir-social-list { display: inline-flex; align-items: center; gap: 8px; }
#app-view .dir-social { display: inline-flex; border-radius: 6px; line-height: 0; }
#app-view .dir-social svg { display: block; width: 28px; height: 28px; }
#app-view .dir-social:hover svg { opacity: .82; }
#app-view .form-subhead { margin: 20px 0 4px; font-size: 17px; }
#app-view .dir-none { font-size: 15px; margin: 8px 0; }
#app-view .dir-panel { border-top: 1px dashed var(--app-line); margin-top: 10px; padding-top: 12px; }
#app-view .dir-aff { background: #f7f4ec; border: 1px solid var(--app-line); border-left: 4px solid var(--app-gold); border-radius: var(--app-radius);
  padding: 12px 16px; margin: 12px 0; }
#app-view .dir-aff h3, #app-view .dir-linked h3 { margin-top: 0; }
#app-view .dir-aff-name { margin: 0; font-size: 18px; }
#app-view .dir-note { font-style: italic; margin-top: 8px; }
#app-view .dir-linked { margin: 14px 0; }
#app-view .dir-mini-list { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
#app-view .dir-mini { border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 12px 14px 4px; background: #fcfbf8; }
#app-view .dir-mini h4 { margin: 0 0 2px; font-size: 17px; }
#app-view .dir-mini h4:focus { outline: 3px solid var(--app-focus); }
#app-view .dir-pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 18px 0; }
#app-view .dir-pager:empty { display: none; }
#app-view .dir-empty { background: #fff; border: 1px dashed var(--app-line); border-radius: var(--app-radius); padding: 14px 18px; }
#app-view .dir-record h1 { margin-bottom: 4px; }
@media (max-width: 700px) {
  #app-view .dir-query { flex-direction: column; align-items: stretch; }
  #app-view .dir-query > .btn { margin-top: 0; width: 100%; }
  #app-view .dir-contact { grid-template-columns: 1fr; }
  #app-view .dir-contact dd { margin-bottom: 4px; }
  #app-view .dir-mode-opt { flex: 1 1 auto; justify-content: center; }
}

/* ---- Legislators Scoring (Scoring PROMPT 01): exclusive accordion of third-party resources + resource cards */
#app-view .scoring { max-width: 1160px; }
#app-view .scoring .lead-in { color: var(--app-muted); max-width: 780px; font-size: 17px; }
#app-view .ls-cards { display: grid; gap: 14px; margin: 26px 0 44px; }
#app-view .ls-card { border: 1px solid var(--app-navy); border-radius: var(--app-radius); background: #fff; box-shadow: 0 2px 10px rgba(3, 31, 59, .08); overflow: hidden; }
#app-view .ls-h { margin: 0; font: inherit; letter-spacing: normal; }
#app-view .ls-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 0; padding: 18px 22px;
  border: 0; background: var(--app-navy); color: #fff; font: inherit; text-align: left; cursor: pointer; }
#app-view .ls-head:hover { background: var(--app-navy-2); }
#app-view .ls-head:focus-visible { outline: 3px solid var(--app-focus); outline-offset: -3px; }
#app-view .ls-head-text { display: block; min-width: 0; }
#app-view .ls-title { display: block; font-weight: 700; font-size: 19px; line-height: 1.3; }
#app-view .ls-sub { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: #dbe3ec; }
#app-view .ls-chev { flex: none; transition: transform .3s ease; }
#app-view .ls-card.open .ls-chev { transform: rotate(180deg); }
#app-view .ls-card.open .ls-head { box-shadow: inset 0 -3px 0 var(--app-gold); }
/* Smooth open/close: the panel's row grows from 0 to its content; a closed panel is also made inert by the script. */
#app-view .ls-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
#app-view .ls-panel.open { grid-template-rows: 1fr; }
#app-view .ls-panel-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .3s; }
#app-view .ls-panel.open .ls-panel-inner { visibility: visible; transition: visibility 0s; }
#app-view .ls-body { padding: 16px 18px 18px; }
#app-view .ls-attrib { margin: 0 0 8px; font-size: 14px; color: var(--app-ink); }
#app-view .ls-note { color: var(--app-muted); }
#app-view .ls-loading { margin: 0; padding: 16px; color: var(--app-muted); }
#app-view .ls-frame-wrap { position: relative; margin-top: 10px; border: 1px solid var(--app-line); border-radius: var(--app-radius); background: #fff; }
#app-view .ls-frame-wrap .ls-loading { position: absolute; top: 0; left: 0; }
/* The page in the card uses the full width and most of the screen height, below the sticky BBB.Vote header. */
#app-view .ls-frame { display: block; width: 100%; height: calc(100vh - 240px); min-height: 560px; border: 0; }
@supports (height: 100dvh) { #app-view .ls-frame { height: calc(100dvh - 240px); } }
#app-view .ls-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 12px 0 0; font-size: 14px; color: var(--app-muted); }
#app-view .ls-ext { text-decoration: none; }
#app-view .ls-more h2 { margin-bottom: 14px; }
/* Resource card (the Biblical Business Index look), also used when a resource cannot be shown inside BBB.Vote */
#app-view .ls-resource { border: 1px solid var(--app-line); border-left: 5px solid var(--app-navy); border-radius: var(--app-radius); background: #fff;
  padding: 20px 22px; box-shadow: 0 2px 10px rgba(3, 31, 59, .06); }
#app-view .ls-resource-title { margin: 0 0 10px; font-size: 21px; color: var(--app-navy); }
#app-view .ls-resource p { max-width: 760px; }
#app-view .ls-resource-action { margin: 16px 0 0; }
#app-view .ls-resource .btn { font-weight: 700; padding: 11px 18px; }
@media (max-width: 700px) {
  #app-view .ls-head { padding: 15px 16px; gap: 12px; }
  #app-view .ls-title { font-size: 17px; }
  #app-view .ls-body { padding: 12px 10px 14px; }
  /* Phones: the page in the card uses the card's full width (edge to edge inside its border). */
  #app-view .ls-frame-wrap { margin-left: -10px; margin-right: -10px; border-left: 0; border-right: 0; border-radius: 0; }
  #app-view .ls-frame { height: calc(100vh - 210px); min-height: 480px; }
  @supports (height: 100dvh) { #app-view .ls-frame { height: calc(100dvh - 210px); } }
  #app-view .ls-resource { padding: 16px; }
  #app-view .ls-resource .btn, #app-view .ls-tools .btn { display: block; width: 100%; text-align: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #app-view .ls-panel, #app-view .ls-panel-inner, #app-view .ls-chev { transition: none; }
}

/* ---- Help & Tutorials (owner's MASTER prompt, 0.17.0): topic cards in the site's navy, guide steps, the Show me guide bar and highlight */
#app-view .help-center .lead-in { font-size: 17px; max-width: 760px; }
#app-view .help-search { background: var(--app-navy); color: #fff; border-top: 3px solid var(--app-gold); border-radius: var(--app-radius); padding: 18px; margin: 0 0 12px; }
#app-view .help-search label { display: block; font: 22px Georgia, serif; color: #fff; margin: 0 0 10px; }
#app-view .help-search .help { color: #dfe5ec; margin-top: 8px; }
#app-view .help-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
#app-view .help-search-row input { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 17px; padding: 10px 12px; border: 2px solid #fff; border-radius: var(--app-radius); }
#app-view .help-search .btn-primary { background: var(--app-gold); border-color: var(--app-gold); color: var(--app-navy); font-weight: 700; }
#app-view .help-results { margin: 0 0 20px; }
#app-view .help-hits { list-style: none; padding: 0; margin: 8px 0; }
#app-view .help-hits li { padding: 8px 0; border-bottom: 1px solid var(--app-line); }
#app-view .help-guide-link { font-weight: 700; padding-left: 0; text-align: left; }
#app-view .help-meta { color: var(--app-muted); font-size: 14px; }
#app-view .help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 20px 0 28px; }
#app-view .help-cat { background: var(--app-navy); color: #fff; border-top: 3px solid var(--app-gold); border-radius: var(--app-radius); padding: 16px 18px; }
#app-view .help-cat h2 { color: #fff; font-size: 21px; margin: 0 0 6px; }
#app-view .help-cat p { color: #dfe5ec; font-size: 15px; margin: 0 0 8px; }
#app-view .help-cat .help-guides { list-style: none; padding: 0; margin: 0; }
#app-view .help-cat .help-guides li { padding: 4px 0; }
#app-view .help-cat .btn-link, #app-view .help-cat a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#app-view .help-cat .help-meta { color: #c5cfdb; }
#app-view .help-faq details { border-top: 1px solid var(--app-line); padding: 10px 0; }
#app-view .help-faq summary { font-weight: 700; cursor: pointer; }
#app-view .help-faq details p { margin: 8px 0 0; }
#app-view .help-contact { margin-top: 24px; font-weight: 700; }
#app-view .help-overview { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: #fff; border: 1px solid var(--app-line);
  border-left: 4px solid var(--app-gold); border-radius: var(--app-radius); padding: 14px 16px; margin: 0 0 16px; }
#app-view .help-overview dt { font-weight: 700; }
#app-view .help-overview dd { margin: 0; }
#app-view .help-overview ul { margin: 0; padding-left: 18px; }
#app-view .help-steps { list-style: none; padding: 0; margin: 18px 0; counter-reset: none; }
#app-view .help-step { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); padding: 14px 16px; margin: 0 0 12px; }
#app-view .help-step[aria-current="step"] { border-color: var(--app-gold); box-shadow: 0 0 0 2px var(--app-gold); }
#app-view .help-step h2 { font-size: 20px; margin: 0 0 6px; }
#app-view .help-step p { margin: 0 0 6px; }
#app-view .help-chip { display: inline-block; border: 1px solid var(--app-navy); border-radius: 999px; padding: 0 10px; font-size: 14px; background: #f3f1ea; }
@media (max-width: 700px) {
  #app-view .help-overview { grid-template-columns: 1fr; }
  #app-view .help-overview dd { margin-bottom: 6px; }
}
/* The guide bar and the highlight live outside #app-view (the highlight can be on the header's buttons and Menu). */
.help-spot { outline: 3px solid var(--app-gold) !important; outline-offset: 4px; border-radius: 4px; animation: help-pulse 1.4s ease-in-out 3; }
@keyframes help-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 165, 53, .6); } 50% { box-shadow: 0 0 0 10px rgba(217, 165, 53, 0); } }
.help-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--app-navy); color: #fff; border-top: 3px solid var(--app-gold);
  padding: 12px 16px; max-height: 45vh; overflow: auto; font: 15px/1.5 Arial, sans-serif; box-shadow: 0 -8px 24px rgba(3, 31, 59, .25); }
.help-bar > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.help-bar .help-bar-guide { margin: 0; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #e5c68a; }
.help-bar .help-bar-title { font: 19px Georgia, serif; margin: 2px auto 4px; color: #fff; }
.help-bar .help-bar-title:focus { outline: none; }
.help-bar .help-bar-do { margin: 0 auto 4px; }
.help-bar .help-bar-status { margin: 0 auto 8px; color: #e5c68a; font-weight: 700; }
.help-bar .help-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.help-bar .btn { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 4px; border: 1px solid #fff; background: none; color: #fff; cursor: pointer; }
.help-bar .btn-primary { background: var(--app-gold); border-color: var(--app-gold); color: var(--app-navy); font-weight: 700; }
.help-bar .btn-link { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.help-bar .btn[disabled] { opacity: .45; cursor: default; }
.help-bar .btn:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .help-spot { animation: none; } }

/* ---- Help & Tutorials Release 2 (0.18.0): "?" buttons, help panel, welcome card, progress badges */
.help-tip { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; margin: 0 0 0 6px; vertical-align: middle;
  border: 1px solid var(--app-navy); border-radius: 50%; background: #fff; color: var(--app-navy); font: 700 14px/1 Arial, sans-serif; cursor: pointer; }
.help-tip:hover { background: var(--app-navy); color: #fff; }
.help-tip[hidden] { display: none; }
#app-view .label-row { display: flex; align-items: center; gap: 4px; }
#app-view .label-row label { margin: 0; }
#app-view legend .help-tip { margin-left: 8px; }
#app-view .help-badge { display: inline-block; font-size: 13px; padding: 1px 8px; border-radius: 999px; background: #fff3d6; color: #6b4a00; border: 1px solid #e5c68a; }
#app-view .help-badge-done { background: #e7f4ea; color: var(--app-ok); border-color: #b7dcc2; }
#app-view .help-cat .help-badge { margin-left: 4px; }
#app-view .help-progress { margin: 0 0 12px; }
.help-panel { position: fixed; z-index: 30; top: 110px; right: 16px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 140px); overflow: auto;
  background: #fff; color: var(--app-ink); border: 1px solid var(--app-line); border-top: 3px solid var(--app-gold); border-radius: 6px; padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(3, 31, 59, .25); font: 15px/1.55 Arial, sans-serif; }
.help-panel .help-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.help-panel h2 { font: 20px Georgia, serif; margin: 0 0 8px; color: var(--app-navy); }
.help-panel h2:focus { outline: none; }
.help-panel p { margin: 0 0 10px; }
.help-panel .btn { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 4px; border: 1px solid var(--app-navy); background: #fff; color: var(--app-navy); cursor: pointer; text-align: left; }
.help-panel .btn-link { border-color: transparent; text-decoration: underline; padding: 4px; }
.help-panel .help-meta { color: var(--app-muted); font-size: 14px; }
.help-welcome { position: fixed; z-index: 25; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow: auto;
  background: var(--app-navy); color: #fff; border-top: 3px solid var(--app-gold); border-radius: 6px; padding: 14px 16px 12px;
  box-shadow: 0 12px 32px rgba(3, 31, 59, .35); font: 15px/1.55 Arial, sans-serif; }
.help-welcome .help-welcome-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.help-welcome h2 { font: 21px Georgia, serif; margin: 0 0 6px; color: #fff; }
.help-welcome p { margin: 0 0 8px; color: #dfe5ec; }
.help-welcome .help-welcome-lead { color: #e5c68a; font-weight: 700; }
.help-welcome .help-welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.help-welcome .btn { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 4px; border: 1px solid #fff; background: none; color: #fff; cursor: pointer; text-align: left; }
.help-welcome .btn-primary { background: var(--app-gold); border-color: var(--app-gold); color: var(--app-navy); font-weight: 700; }
.help-welcome .btn-link { border-color: transparent; text-decoration: underline; }
.help-welcome .help-welcome-x { font-size: 22px; line-height: 1; padding: 0 6px; }
.help-welcome .btn:focus-visible, .help-panel .btn:focus-visible { outline: 3px solid var(--app-focus); outline-offset: 2px; }
@media (max-width: 700px) {
  .help-panel { top: auto; bottom: 8px; right: 8px; left: 8px; width: auto; max-height: 60vh; }
  .help-welcome { right: 8px; left: 8px; bottom: 8px; width: auto; }
}

/* ---- Help & Tutorials Release 3 (0.19.0): Admin -> Tutorials editor and preview */
#app-view .tg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 16px; }
#app-view .tg-wide { grid-column: 1 / -1; }
#app-view .tg-step { border-left: 4px solid var(--app-gold); }
#app-view .tg-step legend { font: 18px Georgia, serif; color: var(--app-navy); padding: 0 6px; }
#app-view .tg-form select, #app-view .tg-form input, #app-view .tg-form textarea { width: 100%; }
#app-view .help-preview h2 { margin-top: 8px; }
#app-view .help-preview .help-step h3 { font-size: 18px; margin: 0 0 6px; }
#app-view .table-wrap { overflow-x: auto; }

/* Admin -> Content: public page sections (0.21.0) */
#app-view .section-list .section-row { padding: 8px 0; border-bottom: 1px solid var(--app-line); }
#app-view .section-list .section-row:last-child { border-bottom: 0; }
#app-view .section-list .help { margin: 4px 0 0; }
#app-view .form-subhead { margin: 22px 0 6px; padding-top: 12px; border-top: 1px solid var(--app-line); font-size: 18px; color: var(--app-navy); }
#app-view .older-content > summary { cursor: pointer; font-weight: 700; }
/* /?preview=1 : a content editor's preview of the page with the saved drafts */
.site-preview-banner { position: sticky; top: 0; z-index: 1000; background: #f3d98b; color: #1b1b1b; padding: 10px 16px; text-align: center; font: 15px/1.4 Arial, sans-serif; border-bottom: 2px solid #b8902e; }
.site-preview-banner a { color: #031f3b; font-weight: 700; margin-left: 6px; }

/* Admin -> Content: images in a page section (0.22.0) */
#app-view .img-slot { border-top: 1px solid var(--app-line); padding: 14px 0 6px; }
#app-view .img-slot h3 { margin-top: 0; }
#app-view .img-slot-body { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
#app-view .img-thumb { width: 132px; min-height: 96px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--app-line); border-radius: var(--app-radius);
  background: repeating-conic-gradient(#f1ede4 0% 25%, #fff 0% 50%) 50% / 16px 16px; padding: 6px; flex: none; }
#app-view .img-thumb img { max-width: 120px; max-height: 120px; width: auto; height: auto; display: block; }
#app-view .img-thumb svg { width: 70px; height: 84px; stroke: #c9a74d; }
#app-view .img-thumb-dark { background: #031f3b; }
#app-view .img-empty { color: var(--app-muted); font-size: 13px; }
#app-view .img-panel { margin: 12px 0 8px; padding: 14px 16px; border: 1px solid var(--app-line); border-radius: var(--app-radius); background: #fbf9f4; }
#app-view .img-panel h4 { margin: 0 0 8px; font-size: 17px; }
#app-view .img-library-list { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
#app-view .img-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 8px; background: #fff;
  border: 2px solid var(--app-line); border-radius: var(--app-radius); cursor: pointer; font-size: 12px; text-align: center; }
#app-view .img-pick img { max-width: 100%; max-height: 90px; }
#app-view .img-pick[aria-pressed="true"] { border-color: var(--app-navy); box-shadow: 0 0 0 2px var(--app-navy); }
#app-view .img-preview:not(:empty) { margin: 12px 0; }
#app-view .section-preview-frame { border: 2px dashed #b8902e; max-height: 560px; overflow: auto; background: #f7f3ea; }
#app-view .section-preview-frame .section { padding-top: 30px; padding-bottom: 30px; }
/* Public page: images placed in sections from Admin -> Content (0.22.0). Shown whole, never cropped. */
.section-figure { margin: 26px 0 0; }
.section-figure img { display: block; max-width: 100%; max-height: 560px; width: auto; height: auto; }
.section-figure figcaption { margin-top: 8px; font-size: 13px; color: #5b625e; }
#foundations .section-figure { margin: 28px 0 30px; }
.civic aside .section-figure { margin: 0 0 20px; }
.history-mark .history-img { display: block; max-width: 180px; max-height: 200px; width: auto; height: auto; margin: 0 auto 18px; }

/* Directory favorites and sharing (0.22.0) */
#app-view .dir-name-row { display: flex; align-items: center; gap: 4px; }
#app-view .dir-name-row > h1, #app-view .dir-name-row > h2, #app-view .dir-name-row > h4 { margin-right: 2px; min-width: 0; overflow-wrap: anywhere; }
#app-view .fav-wrap { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#app-view .fav-heart { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0;
  border: 0; border-radius: 50%; background: transparent; color: #5b625e; cursor: pointer; touch-action: manipulation; }
#app-view .fav-heart svg { width: 26px; height: 26px; }
#app-view .fav-heart path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
#app-view .fav-heart:hover { background: rgba(200, 16, 46, .08); color: #a50d26; }
#app-view .fav-heart.is-saved { color: #c8102e; }
#app-view .fav-heart.is-saved path { fill: #c8102e; stroke: #c8102e; }
#app-view .fav-heart:focus-visible { outline: 3px solid var(--app-navy); outline-offset: 2px; }
#app-view .fav-msg:not(:empty) { font-size: 13px; color: #8a1c1c; }
#app-view .dir-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: 4px 0 0; }
#app-view .dir-share > .btn-link { min-height: 44px; padding-left: 0; padding-right: 0; }
#app-view .share-msg { flex-basis: 100%; font-size: 13px; color: var(--app-muted); }
#app-view .share-msg:empty { display: none; }
#app-view .share-copy-text { width: 100%; font: 13px/1.4 Arial, sans-serif; margin-top: 4px; }

/* Admin menu (0.23.0): the Legislators Scoring cards (.ls-card ...), one open at a time, each holding its section's modules */
#app-view .admin-nav.ls-cards { margin: 14px 0 26px; gap: 10px; }
#app-view .admin-nav-modules { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
#app-view .admin-nav-module { min-height: 44px; }
#app-view .admin-nav-module[aria-current="page"] { background: var(--app-navy); border-color: var(--app-navy); color: #fff; }
#app-view .admin-nav .ls-card.has-current:not(.open) .ls-head { box-shadow: inset 5px 0 0 var(--app-gold); }
@media (max-width: 560px) {
  #app-view .admin-nav-modules li { flex: 1 1 45%; }
  #app-view .admin-nav-module { width: 100%; }
}

/* The legal pages /terms and /privacy (public/legal.php) and their footer links (owner, 2026-11-18) */
.footer-legal a { text-underline-offset: 3px; }
.legal-back { font-size: 13px; text-underline-offset: 4px; }
.legal-page { padding: 44px 0 70px; }
.legal-doc { max-width: 760px; color: var(--app-ink); }
.legal-doc h1 { font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -0.5px; margin: 0 0 6px; }
.legal-doc h2 { font-size: 24px; letter-spacing: 0; margin: 36px 0 10px; }
.legal-doc p { font-size: 16px; margin: 0 0 16px; }
.legal-doc .legal-updated { color: var(--app-muted); font-size: 13px; margin-bottom: 26px; }
.legal-doc a { overflow-wrap: anywhere; text-underline-offset: 3px; }
.legal-doc .legal-also { margin-top: 40px; padding-top: 18px; border-top: 1px solid #d8d1c2; font-size: 14px; }
@media (max-width: 700px) { .legal-page { padding: 28px 0 50px; } .legal-doc h2 { font-size: 21px; margin-top: 28px; } }

/* Search engine pages (0.25.0): /churches/, /businesses/, places, listings, /about/, /resources/, 404 (app/seo_pages.php) */
.header-eagle-pic { display: block; flex-shrink: 0; line-height: 0; }
.footer-links { display: inline-block; margin-top: 4px; line-height: 1.9; }
.footer-links a { text-underline-offset: 3px; }
.seo-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: flex-end; font-size: 14px; }
.seo-nav a { text-decoration: none; padding: 10px 2px; }
.seo-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.seo-page .seo-nav .btn { padding: 10px 18px; min-height: 0; }
.seo-main { padding: 26px 0 60px; color: var(--ink); }
.seo-main .wrap { max-width: 1000px; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin: 0 6px; color: #8a7a5a; }
.crumbs a { text-underline-offset: 3px; }
.seo-hero { padding: 4px 0 12px; }
.seo-hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -1px; margin: 8px 0 14px; }
.seo-hero .lead { font-size: 18px; color: #4f5852; max-width: 760px; }
.seo-hero .eyebrow a { color: inherit; text-underline-offset: 3px; }
.seo-hero .meta, .seo-item .meta { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.seo-section { border-top: 1px solid var(--line); padding: 24px 0 8px; }
.seo-section h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: 0; margin: 0 0 14px; }
.seo-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.seo-item { background: #fffdf8; border: 1px solid var(--line); padding: 14px 18px; }
.seo-item h3 { font-size: 21px; margin: 0 0 4px; }
.seo-item h3 a { text-underline-offset: 4px; }
.seo-item-line { margin: 0; font-size: 15px; color: #4f5852; }
.seo-links { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.seo-columns { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.seo-links a { text-underline-offset: 3px; }
.seo-count, .seo-sub { color: var(--muted); font-size: 13px; }
.seo-sub a { color: var(--ink); }
.seo-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 12px; font-size: 16px; }
.seo-facts dt { font-weight: 700; color: var(--muted); }
.seo-facts dd { margin: 0; overflow-wrap: anywhere; }
.seo-note { font-size: 13px; color: var(--muted); }
.seo-notice { border-left: 4px solid var(--gold); background: #fffdf8; padding: 12px 16px; font-size: 16px; }
.seo-bullets { padding-left: 22px; margin: 0 0 14px; font-size: 16px; }
.seo-bullets li { margin-bottom: 8px; }
.seo-steps { padding-left: 24px; font-size: 16px; }
.seo-steps li { margin-bottom: 12px; }
.seo-cta { background: var(--navy); color: var(--cream); padding: 26px 28px; margin: 30px 0 10px; }
.seo-cta h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 8px; color: var(--cream); }
.seo-cta p { color: #dcd8cd; margin: 0 0 6px; }
.seo-cta a:not(.btn) { color: #f0d9a8; }
.seo-cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0 !important; }
.seo-page .btn { font-size: 14px; letter-spacing: .2px; padding: 12px 20px; text-decoration: none; display: inline-block; min-height: 44px; }
.seo-page .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
.seo-page .btn-secondary { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.seo-page .seo-cta .btn-secondary { color: var(--cream); border-color: var(--cream); }
.seo-pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; font-size: 15px; }
.seo-pager a, .seo-pager span { padding: 9px 12px; border: 1px solid var(--line); min-width: 44px; text-align: center; text-decoration: none; }
.seo-pager-current { background: var(--navy); color: #fff; border-color: var(--navy) !important; }
.seo-pager-gap { border: 0 !important; min-width: 0 !important; }
.seo-search label { display: block; font-weight: 700; margin-bottom: 6px; }
.seo-search-row { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-search select, .seo-search input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #b9b09e; background: #fff; min-height: 44px; }
.seo-search input { flex: 1 1 220px; }
.seo-article-body { max-width: 760px; font-size: 17px; }
.seo-article-body h2 { font-size: 26px; margin: 30px 0 10px; }
.dir-public-link { font-size: 14px; }
@media (max-width: 700px) {
  .seo-page header { position: static; }
  .seo-page .bar { flex-wrap: wrap; gap: 6px 10px; padding-top: 8px; padding-bottom: 8px; }
  .seo-nav { justify-content: flex-start; width: 100%; gap: 2px 14px; font-size: 13px; }
  .seo-page .seo-nav .btn { padding: 8px 14px; }
  .seo-hero .lead { font-size: 16px; }
  .seo-facts { grid-template-columns: 1fr; gap: 2px; }
  .seo-facts dd { margin-bottom: 8px; }
  .seo-cta { padding: 20px; }
}
#app-view .seo-robots { white-space: pre-wrap; background: #f4f1ea; border: 1px solid #d8d1c2; padding: 10px 12px; font-size: 13px; }
