/* Auto Followers page — scoped to .afp-page */
.afp-page {
    --afp-ink: #0d211a;
    --afp-muted: #4d645b;
    --afp-green: #0e9f6e;
    --afp-green-dark: #067a54;
    --afp-mint: #e9f8f1;
    --afp-mint-deep: #d4f2e4;
    --afp-line: #d3e7dc;
    --afp-soft: #f4fbf7;
    --afp-white: #ffffff;
    --afp-amber: #a15c07;
    --afp-red: #b42318;
    --afp-shadow: 0 18px 45px rgba(13, 33, 26, 0.09);
    color: var(--afp-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(14, 159, 110, 0.10), transparent 60%),
        radial-gradient(700px 380px at 92% 2%, rgba(37, 189, 134, 0.08), transparent 62%),
        #fbfdfc;
}

.afp-page *,
.afp-page *::before,
.afp-page *::after {
    box-sizing: border-box;
}

.afp-page h1,
.afp-page h2,
.afp-page h3,
.afp-page h4 {
    color: var(--afp-ink);
    font-family: inherit;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0;
}

.afp-page h1 {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.15rem);
    font-weight: 800;
    max-width: 15ch;
}

.afp-page h2 {
    font-size: clamp(1.45rem, 1.12rem + 1.2vw, 2.05rem);
    font-weight: 800;
}

.afp-page h3 {
    font-size: 1.08rem;
    font-weight: 750;
}

.afp-page p {
    margin: 0 0 1rem;
}

.afp-page p:last-child {
    margin-bottom: 0;
}

.afp-page a {
    color: var(--afp-green-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.afp-page code {
    background: var(--afp-mint);
    border: 1px solid var(--afp-mint-deep);
    border-radius: 8px;
    color: #07553c;
    font-size: 0.86em;
    padding: 0.14rem 0.42rem;
    overflow-wrap: anywhere;
}

.afp-wrap {
    margin: 0 auto;
    max-width: 1120px;
    padding: 18px 16px 60px;
}

.afp-breadcrumb {
    align-items: center;
    color: var(--afp-muted);
    display: flex;
    font-size: 0.82rem;
    gap: 0.5rem;
    margin: 2px 0 16px;
}

.afp-breadcrumb a {
    color: var(--afp-muted);
    text-decoration: none;
}

.afp-breadcrumb a:hover {
    color: var(--afp-green-dark);
    text-decoration: underline;
}

.afp-hero {
    align-items: center;
    background:
        linear-gradient(125deg, #ffffff 0%, #f2fcf7 54%, #e5f8ee 100%);
    border: 1px solid var(--afp-line);
    border-radius: 26px;
    box-shadow: var(--afp-shadow);
    display: grid;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    overflow: hidden;
    padding: clamp(1.4rem, 1rem + 2vw, 3rem);
    position: relative;
}

.afp-hero::after {
    background-image:
        linear-gradient(rgba(14, 159, 110, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 159, 110, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    inset: 0;
    mask-image: radial-gradient(650px 320px at 82% 16%, #000, transparent 72%);
    pointer-events: none;
    position: absolute;
}

.afp-hero-copy {
    position: relative;
    z-index: 1;
}

.afp-eyebrow {
    align-items: center;
    background: var(--afp-mint);
    border: 1px solid var(--afp-mint-deep);
    border-radius: 999px;
    color: var(--afp-green-dark);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.38rem 0.72rem;
    text-transform: uppercase;
}

.afp-accent {
    background: linear-gradient(100deg, var(--afp-green-dark), var(--afp-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.afp-lead {
    color: var(--afp-muted);
    font-size: clamp(1rem, 0.94rem + 0.3vw, 1.14rem);
    margin: 1rem 0 1.15rem;
    max-width: 62ch;
}

.afp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: 0 0 1.3rem;
    padding: 0;
}

.afp-chips li {
    align-items: center;
    background: #fff;
    border: 1px solid var(--afp-line);
    border-radius: 999px;
    color: var(--afp-ink);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 650;
    gap: 0.4rem;
    padding: 0.36rem 0.68rem;
}

.afp-chips li::before {
    background: var(--afp-green);
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 7px;
    width: 7px;
}

.afp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.afp-btn {
    align-items: center;
    background: linear-gradient(180deg, #12ad78, var(--afp-green-dark));
    border: 1px solid #06724f;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(6, 122, 84, 0.22);
    color: #fff !important;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 750;
    justify-content: center;
    min-height: 46px;
    padding: 0.7rem 1.05rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.afp-btn:hover {
    box-shadow: 0 14px 26px rgba(6, 122, 84, 0.28);
    transform: translateY(-1px);
}

.afp-btn-ghost {
    background: #fff;
    border-color: var(--afp-line);
    box-shadow: none;
    color: var(--afp-green-dark) !important;
}

.afp-btn-ghost:hover {
    background: var(--afp-soft);
    box-shadow: 0 8px 18px rgba(13, 33, 26, 0.08);
}

.afp-figure {
    position: relative;
    z-index: 1;
}

.afp-profile-card {
    background: #fff;
    border: 1px solid var(--afp-line);
    border-radius: 20px;
    box-shadow: 0 24px 55px rgba(13, 33, 26, 0.12);
    margin: 0 auto;
    max-width: 350px;
    padding: 1.1rem;
    position: relative;
}

.afp-profile-top {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #edf4f0;
}

.afp-avatar {
    align-items: center;
    background: linear-gradient(145deg, #0e9f6e, #0b6f50);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 46px;
    font-size: 0.95rem;
    font-weight: 800;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.afp-profile-top div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.afp-profile-top strong {
    font-size: 0.92rem;
    font-weight: 750;
}

.afp-profile-top div span {
    color: var(--afp-muted);
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.afp-state {
    background: var(--afp-mint);
    border: 1px solid var(--afp-mint-deep);
    border-radius: 999px;
    color: var(--afp-green-dark);
    font-size: 0.66rem;
    font-weight: 800;
    margin-left: auto;
    padding: 0.22rem 0.5rem;
    text-transform: uppercase;
}

.afp-stat {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 1rem 0 0.6rem;
}

.afp-stat strong {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.afp-stat span {
    color: var(--afp-muted);
    font-size: 0.82rem;
}

.afp-stat em {
    background: #fff7e6;
    border: 1px solid #f3dca8;
    border-radius: 999px;
    color: var(--afp-amber);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 750;
    margin-left: auto;
    padding: 0.2rem 0.5rem;
}

.afp-meter {
    background: #eef6f2;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.afp-meter i {
    background: linear-gradient(90deg, #0e9f6e, #35c78f);
    border-radius: inherit;
    display: block;
    height: 100%;
    width: 74%;
}

.afp-profile-foot {
    color: var(--afp-muted);
    display: flex;
    font-size: 0.72rem;
    justify-content: space-between;
    padding-top: 0.65rem;
}

.afp-float {
    background: #fff;
    border: 1px solid var(--afp-line);
    border-radius: 11px;
    box-shadow: 0 12px 28px rgba(13, 33, 26, 0.12);
    font-size: 0.72rem;
    font-weight: 750;
    padding: 0.5rem 0.68rem;
    position: absolute;
}

.afp-float::before {
    color: var(--afp-green);
    content: "\2713";
    font-weight: 900;
    margin-right: 0.35rem;
}

.afp-float-a {
    left: -14px;
    top: 24px;
}

.afp-float-b {
    bottom: 16px;
    right: -10px;
}

.afp-jump {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--afp-line);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(13, 33, 26, 0.05);
    display: flex;
    gap: 0.25rem;
    margin: 18px 0 30px;
    overflow-x: auto;
    padding: 0.4rem;
    scrollbar-width: thin;
    position: sticky;
    top: 6px;
    z-index: 20;
}

.afp-jump a {
    border-radius: 9px;
    color: var(--afp-muted);
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.48rem 0.7rem;
    text-decoration: none;
    white-space: nowrap;
}

.afp-jump a:hover {
    background: var(--afp-mint);
    color: var(--afp-green-dark);
}

.afp-tool-section {
    background: #fff;
    border: 1px solid var(--afp-line);
    border-radius: 22px;
    box-shadow: var(--afp-shadow);
    display: grid;
    gap: 1.2rem;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 34px;
    padding: clamp(1.15rem, 0.8rem + 1.4vw, 2rem);
    scroll-margin-top: 80px;
}

.afp-tool-head {
    align-self: start;
}

.afp-tool-head p {
    color: var(--afp-muted);
    font-size: 0.93rem;
    margin-top: 0.5rem;
}

.afp-kicker {
    color: var(--afp-green-dark);
    display: block;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.afp-tool {
    background: linear-gradient(160deg, #f7fdfa, #eefaf4);
    border: 1px solid var(--afp-mint-deep);
    border-radius: 18px;
    padding: 1.1rem;
}

.afp-tool-badge {
    align-items: center;
    color: var(--afp-green-dark);
    display: flex;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.4rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.afp-tool-form label {
    color: var(--afp-ink);
    display: block;
    font-size: 0.78rem;
    font-weight: 750;
    margin-bottom: 0.32rem;
}

.afp-tool-row {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(0, 1fr);
}

.afp-tool-row input {
    background: #fff;
    border: 1px solid #bfd9cc;
    border-radius: 12px;
    color: var(--afp-ink);
    font: inherit;
    font-size: 1rem;
    min-height: 56px;
    min-width: 0;
    padding: 0.8rem 0.9rem;
    width: 100%;
}

.afp-tool-row input:focus {
    border-color: var(--afp-green);
    box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.18);
    outline: none;
}

.afp-tool-submit {
    background: linear-gradient(180deg, #12ad78, var(--afp-green-dark));
    border: 1px solid #06724f;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 750;
    min-height: 52px;
    padding: 0.7rem 0.95rem;
    white-space: nowrap;
    width: 100%;
}

.afp-tool-submit:hover {
    filter: brightness(1.04);
}

.afp-tool-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.afp-tool-actions {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 1fr 1fr;
}

.afp-tool-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.afp-generate {
    background: #fff;
    border: 1px solid #9fcdb8;
    border-radius: 10px;
    color: var(--afp-green-dark);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.2;
    min-height: 52px;
    padding: 0.7rem 0.6rem;
    text-align: center;
    width: 100%;
}

.afp-generate:hover {
    background: var(--afp-mint);
}

.afp-tool-links span {
    color: var(--afp-muted);
    flex: 1 1 100%;
    font-size: 0.74rem;
    line-height: 1.45;
}

.afp-tool-note {
    border-top: 1px dashed #c7e3d6;
    color: var(--afp-muted);
    font-size: 0.73rem;
    margin: 0.8rem 0 0;
    padding-top: 0.65rem;
}

.afp-alert {
    background: #fff1f0;
    border: 1px solid #f1b8b3;
    border-radius: 9px;
    color: var(--afp-red);
    font-size: 0.8rem;
    margin-top: 0.7rem;
    padding: 0.55rem 0.7rem;
}

.afp-answer {
    background: linear-gradient(120deg, #0c5c43, #0e7d59);
    border-radius: 18px;
    color: #fff;
    margin: 0 0 34px;
    padding: clamp(1.15rem, 0.9rem + 1vw, 1.7rem);
    position: relative;
    overflow: hidden;
}

.afp-answer::after {
    border: 40px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
    height: 220px;
    position: absolute;
    right: -80px;
    top: -90px;
    width: 220px;
}

.afp-answer h2 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.afp-answer p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 90ch;
    position: relative;
    z-index: 1;
}

.afp-answer strong {
    color: #fff;
}

.afp-section {
    border-top: 1px solid var(--afp-line);
    padding: 34px 0 6px;
    scroll-margin-top: 86px;
}

.afp-section > p {
    color: var(--afp-muted);
    max-width: 78ch;
}

.afp-section h2 {
    margin-bottom: 0.65rem;
}

.afp-table-wrap {
    background: #fff;
    border: 1px solid var(--afp-line);
    border-radius: 16px;
    margin: 1.1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.afp-table {
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 640px;
    width: 100%;
}

.afp-table th {
    background: var(--afp-soft);
    border-bottom: 1px solid var(--afp-line);
    color: var(--afp-green-dark);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    padding: 0.72rem 0.9rem;
    text-align: left;
    text-transform: uppercase;
}

.afp-table td {
    border-bottom: 1px solid #edf4f0;
    color: var(--afp-ink);
    padding: 0.72rem 0.9rem;
    vertical-align: top;
}

.afp-table tbody tr:last-child td {
    border-bottom: 0;
}

.afp-table tbody tr:hover td {
    background: #fbfefc;
}

.afp-table td:first-child {
    font-weight: 700;
}

.afp-table-compact {
    min-width: 680px;
}

.afp-note {
    border-left: 3px solid var(--afp-green);
    color: var(--afp-muted);
    font-size: 0.88rem;
    margin: 1rem 0 0;
    padding: 0.15rem 0 0.15rem 0.85rem;
}

.afp-link-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.1rem 0;
}

.afp-link-card {
    background: #fff;
    border: 1px solid var(--afp-line);
    border-radius: 14px;
    padding: 0.85rem;
}

.afp-link-card code {
    display: block;
    margin: 0.4rem 0 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afp-link-card p {
    color: var(--afp-muted);
    font-size: 0.8rem;
    margin: 0;
}

.afp-link-label {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    padding: 0.18rem 0.48rem;
    text-transform: uppercase;
}

.afp-link-good {
    border-color: #bfe3d2;
}

.afp-link-good .afp-link-label {
    background: var(--afp-mint);
    color: var(--afp-green-dark);
}

.afp-link-bad {
    background: #fffbfa;
    border-color: #f0d2ce;
}

.afp-link-bad .afp-link-label {
    background: #fdecea;
    color: var(--afp-red);
}

.afp-steps-inline {
    background: var(--afp-soft);
    border: 1px solid var(--afp-line);
    border-radius: 15px;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
}

.afp-steps-inline h3 {
    margin-bottom: 0.5rem;
}

.afp-steps-inline ol {
    color: var(--afp-muted);
    font-size: 0.9rem;
    margin: 0;
    padding-left: 1.2rem;
}

.afp-steps-inline li {
    margin-bottom: 0.35rem;
}

.afp-path {
    counter-reset: afp-step;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 1.15rem;
}

.afp-step {
    background: #fff;
    border: 1px solid var(--afp-line);
    border-radius: 15px;
    padding: 0.95rem;
    position: relative;
}

.afp-step::after {
    border-top: 2px dashed #cbe6d9;
    content: "";
    left: calc(100% - 0.2rem);
    position: absolute;
    top: 1.55rem;
    width: 1.05rem;
}

.afp-step:last-child::after {
    display: none;
}

.afp-num {
    align-items: center;
    background: var(--afp-mint);
    border: 1px solid var(--afp-mint-deep);
    border-radius: 9px;
    color: var(--afp-green-dark);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 850;
    height: 28px;
    justify-content: center;
    margin-bottom: 0.55rem;
    width: 28px;
}

.afp-step h3 {
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

.afp-step p {
    color: var(--afp-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.afp-two-col,
.afp-checklist {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.1rem;
}

.afp-panel,
.afp-checklist > div {
    background: #fff;
    border: 1px solid var(--afp-line);
    border-radius: 15px;
    padding: 1rem 1.1rem;
}

.afp-panel h3,
.afp-checklist h3 {
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
}

.afp-panel ul,
.afp-checklist ul {
    color: var(--afp-muted);
    font-size: 0.86rem;
    margin: 0;
    padding-left: 1.05rem;
}

.afp-panel li,
.afp-checklist li {
    margin-bottom: 0.35rem;
}

.afp-panel-yes {
    border-top: 3px solid var(--afp-green);
}

.afp-panel-no {
    border-top: 3px solid #d97706;
}

.afp-panel-no h3 {
    color: #8a4b06;
}

.afp-callout {
    background: #fff8e8;
    border: 1px solid #f0d9a6;
    border-radius: 13px;
    color: #6b470a;
    font-size: 0.88rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
}

.afp-cards {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.1rem;
}

.afp-card {
    background: #fff;
    border: 1px solid var(--afp-line);
    border-radius: 14px;
    padding: 0.9rem;
}

.afp-card h3 {
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.afp-card p {
    color: var(--afp-muted);
    font-size: 0.79rem;
    line-height: 1.5;
    margin: 0;
}

.afp-faq {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.afp-faq details {
    background: #fff;
    border: 1px solid var(--afp-line);
    border-radius: 13px;
    padding: 0.85rem 1rem;
}

.afp-faq summary {
    color: var(--afp-ink);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 750;
    list-style: none;
    padding-right: 1.4rem;
    position: relative;
}

.afp-faq summary::-webkit-details-marker {
    display: none;
}

.afp-faq summary::after {
    color: var(--afp-green-dark);
    content: "+";
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 0.05rem;
}

.afp-faq details[open] summary::after {
    content: "\2212";
}

.afp-faq details p {
    color: var(--afp-muted);
    font-size: 0.87rem;
    margin: 0.6rem 0 0;
}

.afp-related {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.1rem;
}

.afp-related a {
    background: #fff;
    border: 1px solid var(--afp-line);
    border-radius: 13px;
    color: var(--afp-ink);
    display: flex;
    flex-direction: column;
    font-size: 0.86rem;
    font-weight: 750;
    padding: 0.8rem 0.9rem;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.afp-related a:hover {
    border-color: #93cdb5;
    transform: translateY(-1px);
}

.afp-related span {
    color: var(--afp-muted);
    font-size: 0.74rem;
    font-weight: 500;
    margin-top: 0.2rem;
}

.afp-final {
    align-items: center;
    background: linear-gradient(120deg, #0c5c43, #0e8a61);
    border-radius: 20px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 36px;
    padding: clamp(1.2rem, 1rem + 1.4vw, 2rem);
}

.afp-final h2 {
    color: #fff;
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
    margin-bottom: 0.4rem;
}

.afp-final p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    max-width: 62ch;
    margin: 0;
}

.afp-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.afp-final .afp-btn {
    background: #fff;
    border-color: #fff;
    box-shadow: none;
    color: #0a5c42 !important;
}

.afp-final .afp-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff !important;
}

.afp-disclaimer {
    color: #6b7f76;
    font-size: 0.74rem;
    margin: 22px 0 0;
    text-align: center;
}

@media (max-width: 980px) {
    .afp-hero {
        grid-template-columns: 1fr;
    }

    .afp-figure {
        display: none;
    }

    .afp-tool-section {
        grid-template-columns: 1fr;
    }

    .afp-path {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .afp-step::after {
        display: none;
    }

    .afp-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .afp-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .afp-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .afp-wrap {
        padding: 12px 12px 44px;
    }

    .afp-page h1 {
        max-width: none;
    }

    .afp-hero {
        border-radius: 18px;
        padding: 1.2rem;
    }

    .afp-jump {
        border-radius: 11px;
        margin: 13px 0 22px;
    }

    .afp-tool-row {
        grid-template-columns: 1fr;
    }

    .afp-tool-submit {
        width: 100%;
    }

    .afp-link-grid,
    .afp-two-col,
    .afp-checklist,
    .afp-cards,
    .afp-related,
    .afp-path {
        grid-template-columns: 1fr;
    }

    .afp-final {
        align-items: flex-start;
        flex-direction: column;
    }

    .afp-table {
        font-size: 0.82rem;
        min-width: 560px;
    }

    .afp-table-compact {
        min-width: 640px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .afp-page *,
    .afp-page *::before,
    .afp-page *::after {
        transition: none !important;
    }
}
