/*
 * The user guide's stylesheet — the one hand-written CSS file in the panel.
 *
 * WHY IT EXISTS. The panel serves Filament's precompiled bundle, which ships
 * component classes (`fi-*`) and design tokens but not a single Tailwind
 * utility — so utilities written in a blade here are dead on arrival. This file
 * is that gap, scoped so it can never reach another screen: every selector
 * starts `.fp-help`, and every color is one of Filament's own runtime
 * variables (`--gray-*`, `--primary-*`, `--danger-*`, emitted per panel), so
 * the guide always matches the panel's palette, light and dark.
 *
 * DARK MODE is Filament's `.dark` ancestor class. The variables do not flip on
 * their own; like Filament's own rules, each piece picks its dark shade under
 * `.dark` explicitly. Every color rule here has its dark twin directly below
 * it — keep that pairing when editing.
 *
 * THE ONE VISUAL SIGNATURE is the mock plate: a framed picture of a screen,
 * drawn in the panel's own visual language, with numbered markers that tie a
 * control in the picture to a callout in the text — a workshop-manual plate,
 * not a screenshot. Everything else stays quiet.
 */

/* ------------------------------------------------------------------ layout */

.fp-help {
    font-family: var(--font-family, ui-sans-serif, system-ui, sans-serif);
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 64rem) {
    .fp-help {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fp-help-nav {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding-right: 0.25rem;
}

@media (max-width: 64rem) {
    .fp-help-nav {
        position: static;
        max-height: none;
        order: 2;
    }
}

.fp-help-content {
    min-width: 0;
    max-width: 46rem;
}

/* ------------------------------------------------------------- guide sidebar */

.fp-help-nav-group {
    margin-bottom: 1.25rem;
}

.fp-help-nav-heading {
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--font-weight-semibold, 600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin: 0 0 0.375rem;
    padding-inline-start: 0.625rem;
}

.dark .fp-help-nav-heading {
    color: var(--gray-400);
}

.fp-help-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-help-nav-link {
    display: block;
    padding: 0.3125rem 0.625rem;
    border-radius: var(--radius-md, 0.375rem);
    font-size: var(--text-sm, 0.875rem);
    color: var(--gray-600);
    text-decoration: none;
}

.dark .fp-help-nav-link {
    color: var(--gray-400);
}

.fp-help-nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.dark .fp-help-nav-link:hover {
    background: var(--gray-800);
    color: var(--gray-200);
}

.fp-help-nav-link.fp-is-current {
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: var(--font-weight-medium, 500);
}

.dark .fp-help-nav-link.fp-is-current {
    background: color-mix(in oklab, var(--primary-400) 12%, transparent);
    color: var(--primary-400);
}

/* ------------------------------------------------------------------- search */

.fp-help-search {
    position: relative;
    margin-bottom: 1rem;
}

.fp-help-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: var(--text-sm, 0.875rem);
    font-family: inherit;
    color: var(--gray-950);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg, 0.5rem);
}

.dark .fp-help-search input {
    color: white;
    background: var(--gray-900);
    border-color: var(--gray-700);
}

.fp-help-search input:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 1px;
    border-color: var(--primary-500);
}

.fp-help-search-results {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.375rem);
    z-index: 30;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg, 0.5rem);
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.12);
    overflow: hidden;
}

.dark .fp-help-search-results {
    background: var(--gray-900);
    border-color: var(--gray-700);
}

.fp-help-search-hit {
    display: block;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
}

.dark .fp-help-search-hit {
    border-bottom-color: var(--gray-800);
}

.fp-help-search-hit:last-child {
    border-bottom: none;
}

.fp-help-search-hit:hover,
.fp-help-search-hit:focus {
    background: var(--gray-50);
}

.dark .fp-help-search-hit:hover,
.dark .fp-help-search-hit:focus {
    background: var(--gray-800);
}

.fp-help-search-hit-title {
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-weight-medium, 500);
    color: var(--gray-950);
}

.dark .fp-help-search-hit-title {
    color: white;
}

.fp-help-search-hit-group {
    font-size: var(--text-xs, 0.75rem);
    color: var(--gray-500);
}

.dark .fp-help-search-hit-group {
    color: var(--gray-400);
}

/* ------------------------------------------------------------------ landing */

.fp-help-hero {
    margin-bottom: 1.5rem;
}

.fp-help-hero p {
    font-size: var(--text-sm, 0.875rem);
    color: var(--gray-500);
    margin: 0.25rem 0 0;
}

.dark .fp-help-hero p {
    color: var(--gray-400);
}

.fp-help-start-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1.75rem;
}

.fp-help-start-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-weight-medium, 500);
    color: var(--primary-700);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 999px;
    text-decoration: none;
}

.dark .fp-help-start-chip {
    color: var(--primary-400);
    background: color-mix(in oklab, var(--primary-400) 10%, transparent);
    border-color: color-mix(in oklab, var(--primary-400) 30%, transparent);
}

.fp-help-start-chip:hover {
    background: var(--primary-100);
}

.dark .fp-help-start-chip:hover {
    background: color-mix(in oklab, var(--primary-400) 18%, transparent);
}

.fp-help-shelf {
    margin-bottom: 2rem;
}

.fp-help-shelf-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-base, 1rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--gray-950);
    margin: 0 0 0.25rem;
}

.dark .fp-help-shelf-heading {
    color: white;
}

.fp-help-shelf-heading svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--primary-600);
}

.dark .fp-help-shelf-heading svg {
    color: var(--primary-400);
}

.fp-help-shelf-intro {
    font-size: var(--text-sm, 0.875rem);
    color: var(--gray-500);
    margin: 0 0 0.75rem;
}

.dark .fp-help-shelf-intro {
    color: var(--gray-400);
}

.fp-help-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.75rem;
}

.fp-help-card {
    display: block;
    padding: 0.875rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg, 0.5rem);
    text-decoration: none;
}

.dark .fp-help-card {
    background: var(--gray-900);
    border-color: var(--gray-800);
}

.fp-help-card:hover {
    border-color: var(--primary-400);
}

.fp-help-card-title {
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--gray-950);
    margin: 0 0 0.25rem;
}

.dark .fp-help-card-title {
    color: white;
}

.fp-help-card-blurb {
    font-size: var(--text-xs, 0.75rem);
    line-height: 1.5;
    color: var(--gray-500);
    margin: 0;
}

.dark .fp-help-card-blurb {
    color: var(--gray-400);
}

/* -------------------------------------------------------------------- prose */

.fp-help-prose {
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.65;
    color: var(--gray-600);
}

.dark .fp-help-prose {
    color: var(--gray-300);
}

.fp-help-prose p {
    margin: 0 0 0.875rem;
}

.fp-help-prose strong {
    color: var(--gray-950);
    font-weight: var(--font-weight-semibold, 600);
}

.dark .fp-help-prose strong {
    color: white;
}

.fp-help-prose a {
    color: var(--primary-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dark .fp-help-prose a {
    color: var(--primary-400);
}

.fp-help-prose ul,
.fp-help-prose ol {
    margin: 0 0 0.875rem;
    padding-inline-start: 1.25rem;
}

.fp-help-prose li {
    margin-bottom: 0.25rem;
}

.fp-help-prose section {
    margin-bottom: 1.75rem;
    scroll-margin-top: 5rem;
}

.fp-help-prose h2 {
    font-size: var(--text-lg, 1.125rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--gray-950);
    margin: 0 0 0.625rem;
    padding-top: 0.25rem;
}

.dark .fp-help-prose h2 {
    color: white;
}

.fp-help-prose h3 {
    font-size: var(--text-base, 1rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--gray-900);
    margin: 1rem 0 0.5rem;
}

.dark .fp-help-prose h3 {
    color: var(--gray-100);
}

.fp-help-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 0.875rem;
    font-size: var(--text-sm, 0.875rem);
}

.fp-help-prose th {
    text-align: left;
    font-weight: var(--font-weight-medium, 500);
    color: var(--gray-500);
    padding: 0.375rem 0.75rem 0.375rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.dark .fp-help-prose th {
    color: var(--gray-400);
    border-bottom-color: var(--gray-700);
}

.fp-help-prose td {
    padding: 0.4375rem 0.75rem 0.4375rem 0;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}

.dark .fp-help-prose td {
    border-bottom-color: var(--gray-800);
}

/* ------------------------------------------------------- rule and step boxes */

.fp-help-rule {
    border-inline-start: 3px solid var(--primary-500);
    background: var(--gray-50);
    border-radius: 0 var(--radius-md, 0.375rem) var(--radius-md, 0.375rem) 0;
    padding: 0.75rem 1rem;
    margin: 0 0 0.875rem;
}

.dark .fp-help-rule {
    background: var(--gray-800);
}

.fp-help-rule-title {
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--font-weight-semibold, 600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-700);
    margin: 0 0 0.25rem;
}

.dark .fp-help-rule-title {
    color: var(--primary-400);
}

.fp-help-rule p:last-child {
    margin-bottom: 0;
}

.fp-help-steps {
    list-style: none;
    counter-reset: fp-step;
    margin: 0 0 0.875rem;
    padding: 0;
}

.fp-help-steps > li {
    counter-increment: fp-step;
    position: relative;
    padding-inline-start: 2.25rem;
    padding-bottom: 0.75rem;
}

.fp-help-steps > li::before {
    content: counter(fp-step);
    position: absolute;
    inset-inline-start: 0;
    top: 0.0625rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--primary-700);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 999px;
}

.dark .fp-help-steps > li::before {
    color: var(--primary-400);
    background: color-mix(in oklab, var(--primary-400) 12%, transparent);
    border-color: color-mix(in oklab, var(--primary-400) 30%, transparent);
}

/* ----------------------------------------------------- the mock plate (sig.) */

.fp-help-mock {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl, 0.75rem);
    background: var(--gray-50);
    margin: 0 0 1rem;
    overflow: hidden;
}

.dark .fp-help-mock {
    border-color: var(--gray-700);
    background: var(--gray-800);
}

.fp-help-mock-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

.dark .fp-help-mock-bar {
    border-bottom-color: var(--gray-700);
    background: var(--gray-900);
}

.fp-help-mock-bar-title {
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--font-weight-semibold, 600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

.dark .fp-help-mock-bar-title {
    color: var(--gray-400);
}

.fp-help-mock-body {
    padding: 0.875rem;
}

.fp-help-mock-screen-title {
    font-size: var(--text-base, 1rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--gray-950);
    margin: 0 0 0.75rem;
}

.dark .fp-help-mock-screen-title {
    color: white;
}

/* the numbered marker — the plate's brass tag */
.fp-help-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-bold, 700);
    color: white;
    background: var(--primary-600);
    border-radius: 999px;
    vertical-align: middle;
    margin-inline-start: 0.25rem;
    flex: none;
}

.dark .fp-help-marker {
    background: var(--primary-500);
}

.fp-help-callouts {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.fp-help-callouts > li {
    display: flex;
    gap: 0.625rem;
    padding: 0.375rem 0;
}

.fp-help-callouts .fp-help-marker {
    margin-top: 0.1875rem;
    margin-inline-start: 0;
}

/* mock table */
.fp-help-mock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-xs, 0.75rem);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md, 0.375rem);
    overflow: hidden;
}

.dark .fp-help-mock-table {
    background: var(--gray-900);
    border-color: var(--gray-700);
}

.fp-help-mock-table th {
    text-align: left;
    font-weight: var(--font-weight-semibold, 600);
    color: var(--gray-500);
    padding: 0.4375rem 0.625rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
    white-space: nowrap;
}

.dark .fp-help-mock-table th {
    color: var(--gray-400);
    border-bottom-color: var(--gray-700);
    background: var(--gray-800);
}

.fp-help-mock-table td {
    padding: 0.4375rem 0.625rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    white-space: nowrap;
}

.dark .fp-help-mock-table td {
    border-bottom-color: var(--gray-800);
    color: var(--gray-300);
}

.fp-help-mock-table tr:last-child td {
    border-bottom: none;
}

.fp-help-mock-table .fp-align-right {
    text-align: right;
}

.fp-help-mock-table-wrap {
    overflow-x: auto;
}

/* mock form */
.fp-help-mock-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 40rem) {
    .fp-help-mock-form {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fp-help-mock-field {
    min-width: 0;
}

.fp-help-mock-field.fp-span-2 {
    grid-column: 1 / -1;
}

.fp-help-mock-field-label {
    display: flex;
    align-items: center;
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--font-weight-medium, 500);
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.dark .fp-help-mock-field-label {
    color: var(--gray-300);
}

.fp-help-mock-field-label .fp-required {
    color: var(--danger-600);
    margin-inline-start: 0.125rem;
}

.dark .fp-help-mock-field-label .fp-required {
    color: var(--danger-400);
}

.fp-help-mock-field-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    font-size: var(--text-xs, 0.75rem);
    color: var(--gray-950);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md, 0.375rem);
    min-height: 1.9rem;
}

.dark .fp-help-mock-field-value {
    color: white;
    background: var(--gray-900);
    border-color: var(--gray-600);
}

.fp-help-mock-field-value.fp-disabled {
    background: var(--gray-100);
    color: var(--gray-500);
}

.dark .fp-help-mock-field-value.fp-disabled {
    background: var(--gray-800);
    color: var(--gray-400);
}

.fp-help-mock-field-value svg {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--gray-400);
    flex: none;
}

.fp-help-mock-field-helper {
    font-size: var(--text-xs, 0.75rem);
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.dark .fp-help-mock-field-helper {
    color: var(--gray-400);
}

/* mock buttons */
.fp-help-mock-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.fp-help-mock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--font-weight-semibold, 600);
    border-radius: var(--radius-lg, 0.5rem);
    border: 1px solid transparent;
    white-space: nowrap;
}

.fp-help-mock-btn.fp-primary {
    color: white;
    background: var(--primary-600);
}

.dark .fp-help-mock-btn.fp-primary {
    background: var(--primary-500);
}

.fp-help-mock-btn.fp-danger {
    color: white;
    background: var(--danger-600);
}

.dark .fp-help-mock-btn.fp-danger {
    background: var(--danger-500);
}

.fp-help-mock-btn.fp-plain {
    color: var(--gray-700);
    background: white;
    border-color: var(--gray-300);
}

.dark .fp-help-mock-btn.fp-plain {
    color: var(--gray-200);
    background: var(--gray-900);
    border-color: var(--gray-600);
}

/* mock status badges */
.fp-help-mock-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--font-weight-medium, 500);
    border-radius: 999px;
}

.fp-help-mock-badge.fp-gray {
    color: var(--gray-700);
    background: var(--gray-100);
}

.dark .fp-help-mock-badge.fp-gray {
    color: var(--gray-300);
    background: var(--gray-800);
}

.fp-help-mock-badge.fp-green {
    color: var(--primary-700);
    background: var(--primary-50);
}

.dark .fp-help-mock-badge.fp-green {
    color: var(--primary-400);
    background: color-mix(in oklab, var(--primary-400) 12%, transparent);
}

.fp-help-mock-badge.fp-red {
    color: var(--danger-700);
    background: var(--danger-50);
}

.dark .fp-help-mock-badge.fp-red {
    color: var(--danger-400);
    background: color-mix(in oklab, var(--danger-400) 12%, transparent);
}

/* mock wizard steps */
.fp-help-mock-wizard {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.fp-help-mock-wizard-step {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.625rem;
    font-size: var(--text-xs, 0.75rem);
    font-weight: var(--font-weight-medium, 500);
    color: var(--gray-500);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
}

.dark .fp-help-mock-wizard-step {
    color: var(--gray-400);
    background: var(--gray-900);
    border-color: var(--gray-700);
}

.fp-help-mock-wizard-step.fp-is-active {
    color: var(--primary-700);
    background: var(--primary-50);
    border-color: var(--primary-300);
}

.dark .fp-help-mock-wizard-step.fp-is-active {
    color: var(--primary-400);
    background: color-mix(in oklab, var(--primary-400) 12%, transparent);
    border-color: color-mix(in oklab, var(--primary-400) 35%, transparent);
}

/* mock stat tile */
.fp-help-mock-stat {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg, 0.5rem);
    padding: 0.75rem 0.875rem;
    max-width: 16rem;
}

.dark .fp-help-mock-stat {
    background: var(--gray-900);
    border-color: var(--gray-700);
}

.fp-help-mock-stat-label {
    font-size: var(--text-xs, 0.75rem);
    color: var(--gray-500);
    margin: 0 0 0.125rem;
}

.dark .fp-help-mock-stat-label {
    color: var(--gray-400);
}

.fp-help-mock-stat-value {
    font-size: var(--text-xl, 1.25rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--gray-950);
    margin: 0;
}

.dark .fp-help-mock-stat-value {
    color: white;
}

/* mock modal */
.fp-help-mock-modal {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl, 0.75rem);
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.08);
    padding: 1rem;
    max-width: 26rem;
    margin: 0 auto;
}

.dark .fp-help-mock-modal {
    background: var(--gray-900);
    border-color: var(--gray-700);
}

.fp-help-mock-modal-heading {
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--gray-950);
    margin: 0 0 0.375rem;
}

.dark .fp-help-mock-modal-heading {
    color: white;
}

.fp-help-mock-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

/* mock notification */
.fp-help-mock-note {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--gray-200);
    border-inline-start: 3px solid var(--primary-500);
    border-radius: var(--radius-lg, 0.5rem);
    padding: 0.625rem 0.875rem;
    max-width: 26rem;
    margin: 0 0 0.875rem;
}

.dark .fp-help-mock-note {
    background: var(--gray-900);
    border-color: var(--gray-700);
    border-inline-start-color: var(--primary-500);
}

.fp-help-mock-note.fp-danger {
    border-inline-start-color: var(--danger-500);
}

.fp-help-mock-note.fp-warning {
    border-inline-start-color: var(--warning-500, #f59e0b);
}

/* -------------------------------------------------------------- topic extras */

.fp-help-screen-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-weight-medium, 500);
    color: var(--primary-600);
    text-decoration: none;
    margin-bottom: 1rem;
}

.dark .fp-help-screen-link {
    color: var(--primary-400);
}

.fp-help-screen-link:hover {
    text-decoration: underline;
}

.fp-help-screen-link-plain {
    display: block;
    font-size: var(--text-xs, 0.75rem);
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.dark .fp-help-screen-link-plain {
    color: var(--gray-400);
}

.fp-help-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
}

.dark .fp-help-footer {
    border-top-color: var(--gray-700);
}

.fp-help-footer-link {
    display: block;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg, 0.5rem);
    text-decoration: none;
}

.dark .fp-help-footer-link {
    border-color: var(--gray-800);
}

.fp-help-footer-link:hover {
    border-color: var(--primary-400);
}

.fp-help-footer-link.fp-next {
    text-align: right;
    grid-column: 2;
}

.fp-help-footer-eyebrow {
    font-size: var(--text-xs, 0.75rem);
    color: var(--gray-500);
    margin: 0 0 0.125rem;
}

.dark .fp-help-footer-eyebrow {
    color: var(--gray-400);
}

.fp-help-footer-title {
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-weight-medium, 500);
    color: var(--gray-950);
    margin: 0;
}

.dark .fp-help-footer-title {
    color: white;
}

.fp-help-related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.fp-help-related a {
    font-size: var(--text-xs, 0.75rem);
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: 999px;
    padding: 0.25rem 0.625rem;
    text-decoration: none;
}

.dark .fp-help-related a {
    color: var(--gray-300);
    background: var(--gray-800);
}

.fp-help-related a:hover {
    background: var(--gray-200);
}

.dark .fp-help-related a:hover {
    background: var(--gray-700);
}

/* glossary term */
.fp-help-term dt {
    font-weight: var(--font-weight-semibold, 600);
    color: var(--gray-950);
}

.dark .fp-help-term dt {
    color: white;
}

.fp-help-term dd {
    margin: 0 0 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
    .fp-help-card,
    .fp-help-footer-link,
    .fp-help-start-chip {
        transition: border-color 120ms ease, background-color 120ms ease;
    }
}
