/* The public health-appeals guide: one readable column, plain cards, big tap targets. */
.appeals .muted { color: var(--muted); }
.appeals .small { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ap { max-width: 920px; margin: 0 auto; padding: 8px 16px 64px; font-size: 17px; line-height: 1.65; }
.ap h2 { font-size: 30px; margin: 0 0 12px; display: flex; align-items: center; gap: 12px; }
.ap h3 { font-size: 19px; margin: 0 0 6px; }
.ap p { margin: 0 0 12px; }
.ap code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

.ap-hero { padding: 28px 0 8px; }
.ap-kicker { color: var(--ember-2); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.ap-hero h1 { font-size: clamp(36px, 6vw, 60px); margin: 6px 0 16px; }
.ap-lede { font-size: 19px; max-width: 46em; }
.ap-steps-mini { list-style: none; counter-reset: s; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ap-steps-mini li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.ap-steps-mini li::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ember); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.ap-steps-mini strong { display: block; }
.ap-steps-mini span { color: var(--muted); font-size: 15px; }
.ap-notice, .ap-verify, .ap-urgent, .ap-tip, .ap-note { border-left: 4px solid var(--ember-2); background: var(--bg-2); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.ap-verify { border-color: #e8b340; }
.ap-urgent { border-color: var(--ember); }

.ap-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.ap-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--ember), var(--blood)); font: 600 18px var(--font); color: #fff; flex: none; }

.ap-search input, .ap-form input:not([type=radio]):not([type=checkbox]), .ap-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px var(--font); }
.ap-form textarea { min-height: 0; resize: vertical; }
.ap-legend { font-size: 14px; color: var(--muted); margin: 12px 0; }

.ap-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle; background: rgba(255, 154, 60, .14); color: var(--ember-2); }
.ap-badge.federal { background: rgba(120, 170, 255, .14); color: #9fc0ff; }
.ap-badge.mixed { background: rgba(232, 179, 64, .16); color: #f0c766; }
.ap-badge.ok { background: rgba(90, 200, 130, .14); color: #8fe0a8; }

.ap-states { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ap-states li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ap-states li.on { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.ap-states li > a { color: var(--text); text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 32px; }
.ap-states li > a:hover .ap-state { color: var(--ember-2); }
.ap-state { font-weight: 700; }
.ap-agency { font-size: 13px; color: var(--muted); line-height: 1.4; }
.ap-agency a { color: var(--muted); }

.ap-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 12px 0; }
.ap-plan { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; line-height: 1.4; min-height: 52px; }
.ap-plan:has(input:checked) { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.ap-plan input { margin-top: 3px; accent-color: var(--ember); }
.ap-howto summary { cursor: pointer; font-weight: 600; color: var(--ember-2); min-height: 32px; }
.ap-howto dt { font-weight: 700; margin-top: 14px; }
.ap-howto dd { margin: 4px 0 0; color: var(--muted); }

.ap-path { list-style: none; padding: 0; margin: 16px 0; counter-reset: p; }
.ap-step { position: relative; padding: 0 0 20px 44px; counter-increment: p; }
.ap-step::before { content: counter(p); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--ember); font-weight: 700; font-size: 15px; }
.ap-step:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 1px; background: var(--line); }
.ap-deadline { font-weight: 700; color: var(--ember-2); }
.ap-who { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; display: flex; flex-direction: column; gap: 2px; }
.ap-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 4px; }
.ap-links a { font-weight: 600; }

.ap-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 16px 0; }
.ap-form label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 500; }
.ap-form .wide, .ap-form .ap-check, .ap-form fieldset { grid-column: 1 / -1; }
.ap-form .ap-check, .ap-inline label { flex-direction: row; align-items: center; gap: 8px; }
.ap-form fieldset { border: 1px solid var(--line); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 10px 14px; }
.ap-form legend { font-size: 14px; color: var(--muted); padding: 0 4px; }
.ap-deadlines { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.ap-deadlines li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; }
.ap-date { font-size: 19px; font-weight: 700; color: var(--ember-2); }

.ap-letter-tabs { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.ap-letter-tabs button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 600 15px var(--font); cursor: pointer; }
.ap-letter-tabs button[aria-selected=true] { border-color: var(--ember); background: rgba(255, 74, 47, .14); }
.ap-letter { width: 100%; background: #fbf8f6; color: #1d1412; border-radius: 10px; border: 0; padding: 20px; font: 15px/1.55 Georgia, "Times New Roman", serif; }
.ap-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ap-empty { color: var(--muted); }
.ap-foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }

@media (max-width: 640px) {
  .ap { font-size: 16px; }
  .ap h2 { font-size: 24px; }
  .ap-card { padding: 18px 16px; }
  .ap-steps-mini { grid-template-columns: 1fr; }
  .ap-form { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { font-size: 14px; }
}
