/* Shared article layout for /blog posts (since 2026-11-01).
   Template: /blog/flatten-pdf. Same tokens and components as the homepage
   (hero, job pills, showcase cards, blue labels, link rows, drop zone).
   Post-specific illustration styles stay inline in the post. */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-soft: #DBEAFE;
    --secondary: #10B981;
    --text-main: #1F2937;
    --text-body: #374151;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --card-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

a {
    color: var(--primary);
}

/* ---------- Hero (homepage hero styling) ---------- */
.fp-hero {
    padding: 3.25rem 2rem 3.5rem;
    text-align: center;
}

.fp-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.fp-crumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.fp-crumbs a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}

.fp-crumbs a:hover {
    color: var(--primary);
}

.fp-hero h1 {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.fp-hero h1 .fp-h1-sub {
    display: block;
    font-size: 0.5em;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 0.6rem;
}

.fp-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 1.75rem;
}

.fp-lead strong {
    color: var(--text-main);
}

.fp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
}

.fp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.85rem 1.5rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    transition: background 0.15s, transform 0.15s;
}

.fp-btn:hover,
.fp-btn:focus-visible {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.fp-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.fp-fine {
    font-size: 0.9rem;
    color: var(--text-light);
}

.fp-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.fp-jobs-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 2rem 0 0.55rem;
}

.fp-jobs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
}

.fp-job {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.fp-job:hover,
.fp-job:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.fp-job .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary);
}

/* ---------- Media card (illustrations, screenshots, reels) ---------- */
.fp-media {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 12px;
}

.fp-hero .fp-media {
    max-width: 760px;
    margin: 2.5rem auto 0;
}

/* ---------- Sections ---------- */
.fp-section {
    padding: 4.5rem 2rem;
}

.fp-section--white {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.fp-wrap {
    max-width: 1120px;
    margin: 0 auto;
}

.fp-narrow {
    max-width: 760px;
    margin: 0 auto;
}

.fp-label {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 0.6rem;
}

.fp-section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 2.75rem;
}

h2.fp-title {
    font-size: 2rem;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    scroll-margin-top: 90px;
}

.fp-sub {
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.7;
}

.fp-copy p,
.fp-copy li {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.75;
}

.fp-copy p+p {
    margin-top: 1rem;
}

.fp-copy a,
.fp-card a,
.fp-sub a,
.fp-faq a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.fp-copy a:hover,
.fp-card a:hover,
.fp-sub a:hover {
    text-decoration: underline;
}

.fp-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    margin-top: 1rem;
}

.fp-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* Two kinds: side-by-side cards with a mini page each */
.fp-kinds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.fp-kind {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 12px 12px 1.5rem;
    scroll-margin-top: 90px;
}

.fp-kind-body {
    padding: 1.25rem 0.9rem 0;
}

.fp-kind h3 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.mini {
    position: relative;
    height: 170px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef1f5, #e3e8f0);
    overflow: hidden;
}

.mini-page {
    position: absolute;
    left: 50%;
    top: 22px;
    width: 230px;
    height: 170px;
    margin-left: -115px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
    padding: 14px 16px;
    font-family: "Times New Roman", Times, serif;
    font-size: 11px;
    line-height: 1.6;
    color: #111;
}

.mini-sel {
    background: rgba(37, 99, 235, .22);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .25);
}

.mini-caret {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #111;
    vertical-align: -2px;
    animation: miniBlink 1s steps(1) infinite;
}

@keyframes miniBlink { 50% { opacity: 0; } }

.mini-ink {
    color: #b91c1c;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 9.5px;
}

.mini-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.mini-chip--warn {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.mini-pixels {
    filter: blur(.55px);
}

.mini-pixels::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(15, 23, 42, .07) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(90deg, rgba(15, 23, 42, .07) 0 1px, transparent 1px 4px);
    border-radius: 3px;
}

.mini-noselect {
    position: absolute;
    left: 50%;
    top: 76px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #1e293b;
    color: #fff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10.5px;
    white-space: nowrap;
    filter: none;
    z-index: 1;
}

/* Comparison table card */
.fp-table-card {
    margin-top: 2.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

.fp-table-card table {
    border-collapse: collapse;
    width: 100%;
    min-width: 560px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.fp-table-card th,
.fp-table-card td {
    padding: 0.85rem 1.1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

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

.fp-table-card thead th {
    background: #F3F6FC;
    font-size: 0.92rem;
    color: var(--text-main);
}

.fp-table-card td:first-child {
    font-weight: 700;
    color: var(--text-main);
    width: 30%;
}

.fp-table-card td {
    color: var(--text-body);
}

.yes,
.no {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.yes::before,
.no::before {
    flex-shrink: 0;
    font-weight: 800;
    line-height: 1.5;
}

.yes::before {
    content: "\2713";
    color: #059669;
}

.no::before {
    content: "\2715";
    color: #dc2626;
}

.fp-table-note {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--text-light);
}

/* Alternating feature rows (annotations / forms / full) */
.fp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.fp-row+.fp-row {
    margin-top: 4rem;
}

.fp-row--flip .fp-media {
    order: 2;
}

.fp-row h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    scroll-margin-top: 90px;
}

.mini--tall {
    height: 230px;
}

.mini--tall .mini-page {
    height: 210px;
    width: 270px;
    margin-left: -135px;
}

.mini-field {
    display: inline-block;
    min-width: 98px;
    padding: 0 5px;
    border: 1.5px dashed #2563eb;
    background: rgba(219, 234, 254, .7);
    border-radius: 3px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10px;
    color: #1d4ed8;
    line-height: 15px;
}

.mini-field--flat {
    border-color: transparent;
    background: transparent;
    color: #111;
}

.mini-arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
    z-index: 2;
}

.mini-split {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.mini-split .mini-page {
    position: relative;
    left: auto;
    margin: 18px auto 0;
    width: 82%;
    height: 190px;
    font-size: 12px;
    padding: 14px;
}

.mini-tag {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-light);
    white-space: nowrap;
}

.mini-hidden {
    position: relative;
    display: inline-block;
}

.mini-hidden::after {
    content: "";
    position: absolute;
    inset: -1px -2px;
    background: #111;
}

.mini-leak {
    margin-top: 8px;
    padding: 4px 6px;
    border-radius: 4px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 9px;
    line-height: 1.35;
}

.mini-safe {
    margin-top: 8px;
    padding: 4px 6px;
    border-radius: 4px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 9px;
    line-height: 1.35;
}

/* Use cases grid */
.fp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.25rem;
}

.fp-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

.fp-card:hover {
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.fp-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.fp-card-icon .material-symbols-outlined {
    font-size: 24px;
}

.fp-card h3 {
    font-size: 1.12rem;
    line-height: 1.35;
    margin-bottom: 0.45rem;
}

.fp-card p {
    color: var(--text-body);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* When not to flatten */
.fp-avoid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 700px) {
    .fp-avoid {
        grid-template-columns: 1fr;
    }
}

.fp-avoid li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    color: var(--text-body);
    line-height: 1.65;
}

.fp-avoid .material-symbols-outlined {
    flex-shrink: 0;
    color: #c2410c;
    background: #fff7ed;
    border-radius: 10px;
    padding: 6px;
    font-size: 22px;
}

.fp-avoid strong {
    color: var(--text-main);
}

.fp-avoid a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* Steps */
.fp-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.fp-steps li {
    counter-increment: step;
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 3.4rem 1.25rem 1.4rem;
    color: var(--text-body);
    line-height: 1.65;
    font-size: 0.98rem;
}

.fp-steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.25rem;
    top: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-steps strong {
    color: var(--text-main);
}

.fp-steps a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* FAQ */
.fp-faq {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.3rem 1.4rem;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.faq-item p {
    color: var(--text-body);
    line-height: 1.7;
}

/* Closing CTA (homepage drop zone) */
.fp-cta {
    padding: 4.5rem 2rem 5rem;
    text-align: center;
}

.fp-drop {
    position: relative;
    display: block;
    max-width: 560px;
    margin: 1.75rem auto 1rem;
    padding: 2.25rem 1.5rem;
    border: 2px dashed #93c5fd;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}

.fp-drop:hover,
.fp-drop.drag-active,
.fp-drop:focus-within {
    border-color: var(--primary);
    background: #f5f9ff;
}

.fp-drop.drag-active {
    transform: scale(1.01);
}

.fp-drop svg {
    width: 44px;
    height: 44px;
    fill: var(--primary);
    margin-bottom: 0.5rem;
}

.fp-drop-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.fp-drop-sub {
    display: block;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.fp-related {
    margin-top: 2.5rem;
}

.fp-related .fp-links {
    justify-content: center;
}

.fp-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fpSpin .8s linear infinite;
}

.fp-drop .fp-spinner {
    border-color: #bfdbfe;
    border-top-color: var(--primary);
    width: 30px;
    height: 30px;
}

@keyframes fpSpin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .fp-steps {
        grid-template-columns: 1fr 1fr;
    }

    .fp-row,
    .fp-kinds {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .fp-row--flip .fp-media {
        order: 0;
    }
}

@media (max-width: 600px) {
    .fp-hero {
        padding: 2.25rem 1rem 2.75rem;
    }

    .fp-hero h1 {
        font-size: 2.05rem;
    }

    .fp-lead {
        font-size: 1.06rem;
    }

    .fp-section,
    .fp-cta {
        padding: 3.25rem 1rem;
    }

    h2.fp-title {
        font-size: 1.6rem;
    }

    .fp-steps {
        grid-template-columns: 1fr;
    }

    .fp-job {
        font-size: 0.86rem;
        padding: 0.45rem 0.75rem;
    }

    .mini-split .mini-page {
        width: 86%;
        font-size: 10px;
        padding: 10px 8px;
    }

    .mini-arrow {
        width: 24px;
        height: 24px;
    }

    .mini-arrow .material-symbols-outlined {
        font-size: 16px;
    }
}

/* ---------- Generic prose and blocks used inside posts ---------- */
.fp-copy h3 {
    font-size: 1.3rem;
    line-height: 1.35;
    color: var(--text-main);
    margin: 2rem 0 0.6rem;
    scroll-margin-top: 90px;
}

.fp-copy ul,
.fp-copy ol {
    margin: 1rem 0;
    padding-left: 1.4rem;
}

.fp-copy li+li {
    margin-top: 0.45rem;
}

.fp-copy strong {
    color: var(--text-main);
}

.fp-copy code {
    background: #F3F4F6;
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-size: 0.92em;
}

.fp-copy blockquote {
    margin: 1.25rem 0;
    padding: 0.9rem 1.2rem;
    border-left: 4px solid var(--primary);
    background: #F5F9FF;
    border-radius: 0 10px 10px 0;
}

/* Callout: notices, warnings, "own documents only" boxes */
.fp-notice {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-body);
    line-height: 1.65;
}

.fp-notice--info {
    background: #F5F9FF;
    border-color: #BFDBFE;
}

.fp-notice--ok {
    background: #ECFDF5;
    border-color: #A7F3D0;
}

.fp-notice>.material-symbols-outlined {
    flex-shrink: 0;
    color: #C2410C;
}

.fp-notice--info>.material-symbols-outlined {
    color: var(--primary);
}

.fp-notice--ok>.material-symbols-outlined {
    color: #047857;
}

/* Real editor screenshot inside a media card */
.fp-shot {
    margin: 0;
}

.fp-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.fp-shot figcaption {
    padding: 0.75rem 0.4rem 0.2rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Section CTA row and a two-column prose layout for long sections */
.fp-center {
    text-align: center;
}

.fp-mt {
    margin-top: 2rem;
}

/* Grid children may shrink below their content width (otherwise a nowrap chip or a
   wide mock stretches the column past a 320 px screen). */
.fp-row>*,
.fp-kinds>*,
.fp-grid>*,
.fp-steps>*,
.fp-avoid>* {
    min-width: 0;
}

.fp-media {
    max-width: 100%;
    overflow: hidden;
}

/* =====================================================================
   Illustration kit (since 2026-11-01, second pass). Use these for every
   mock document instead of hand-rolled tiny pages. Exemplar:
   tools/blog-check/kit-exemplar.html
   ===================================================================== */

/* Stage: the grey surface inside .fp-media that holds documents. */
.fp-stage {
    position: relative;
    background: linear-gradient(135deg, #eef1f5, #e3e8f0);
    border-radius: 10px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Document card: looks like a real page section, fills the stage width. */
.fp-doc {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .10);
    padding: 20px 22px 18px;
    font-family: Helvetica, Arial, sans-serif;
    color: #111827;
    text-align: left;
}

.fp-doc-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid #E5E7EB;
}

.fp-doc-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.fp-doc-meta {
    font-size: 12px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.fp-doc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 13px;
    line-height: 1.4;
}

.fp-doc-row:last-child {
    border-bottom: 0;
}

.fp-doc-label {
    color: #6B7280;
}

.fp-doc-value {
    font-weight: 600;
    color: #111827;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Prose documents (contracts, letters): serif body, readable size. */
.fp-doc-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.65;
    color: #1F2937;
    margin: 8px 0 0;
}

.fp-doc-text+.fp-doc-text {
    margin-top: 6px;
}

/* Marks inside documents */
.fp-redact {
    display: inline-block;
    vertical-align: -2px;
    height: 1.05em;
    width: var(--w, 7em);
    background: #111;
    border-radius: 2px;
}

.fp-hl {
    background: rgba(250, 204, 21, .45);
    border-radius: 2px;
    padding: 0 2px;
}

.fp-keep {
    background: #ECFDF5;
    box-shadow: inset 0 0 0 1px #A7F3D0;
    border-radius: 3px;
    padding: 0 4px;
}

.fp-edit {
    background: #EFF6FF;
    box-shadow: 0 0 0 2px #2563EB;
    border-radius: 2px;
    padding: 0 3px;
    margin: 0 3px;
}

.fp-strike {
    text-decoration: line-through;
    text-decoration-color: #DC2626;
    text-decoration-thickness: 2px;
    color: #9CA3AF;
}

.fp-ring {
    box-shadow: 0 0 0 2px #DC2626;
    border-radius: 3px;
    padding: 0 3px;
    margin: 0 3px;
}

.fp-ring--blue {
    box-shadow: 0 0 0 2px #2563EB;
}

/* Status chips (under a document or in a legend). Colour = meaning:
   ok green (safe / kept), warn orange (risk), bad red (leak), info blue, dark (neutral). */
.fp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    white-space: nowrap;
}

.fp-chip .material-symbols-outlined {
    font-size: 15px;
}

.fp-chip--ok {
    background: #ECFDF5;
    color: #047857;
    border-color: #A7F3D0;
}

.fp-chip--warn {
    background: #FFF7ED;
    color: #C2410C;
    border-color: #FED7AA;
}

.fp-chip--bad {
    background: #FEF2F2;
    color: #B91C1C;
    border-color: #FECACA;
}

.fp-chip--dark {
    background: #1E293B;
    color: #fff;
    border-color: #1E293B;
}

.fp-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* Before / after (or "theirs / ours"): two documents side by side, each with
   a small heading above and a chip below. Stacks on phones. */
.fp-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
}

.fp-compare>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fp-compare-label {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6B7280;
}

.fp-compare .fp-doc {
    padding: 16px 16px 14px;
}

@media (max-width: 560px) {
    .fp-stage {
        padding: 18px 14px;
    }

    .fp-compare {
        grid-template-columns: 1fr;
    }
}

/* Browser window around a document (for "runs in your browser" ideas). */
.fp-browser {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    overflow: hidden;
    font-family: Helvetica, Arial, sans-serif;
}

.fp-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: #F3F4F6;
    border-bottom: 1px solid #E5E7EB;
}

.fp-browser-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #D1D5DB;
}

.fp-browser-url {
    margin-left: 8px;
    flex: 1;
    background: #fff;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 12px;
    color: #4B5563;
}

.fp-browser-body {
    padding: 18px;
    background: #F9FAFB;
}

.fp-browser-body .fp-doc {
    max-width: none;
}
