/**
 * Sign-up forms on articles, since 2.27.0 (December 2, 2026). Canvas page "Sign-up forms" (version 159): pop-up
 * (a sheet from the bottom on phones), ribbon, in-content form, end-of-content form. Dark by default, light under
 * html[data-theme="light"]. Scoped to .sfm; inner rules start with .sfm.sfm so they outrank the article's own text
 * rules (.sta .st-content p) and the parent theme's button and field styles. Markup: template-parts/signup-form.php.
 * Named category-* so the Perfmatters stylesheet exclusion covers it.
 */

.sfm {
    --sfm-text: #f5f5f2;
    --sfm-text2: #d3d8e0;
    --sfm-muted: #a3aab6;
    --sfm-gold: #f5c518;
    --sfm-btn: #f5c518;
    --sfm-btn-hover: #ffd43b;
    --sfm-line: #232c3b;
    --sfm-line2: #2f3a4d;
    --sfm-card: #111722;
    --sfm-field: #0a0e15;
    --sfm-row: #0c1119;
    --sfm-bg: linear-gradient(180deg, #161d2a 0%, #0f141d 100%);
    --sfm-edge: rgba(245, 197, 24, 0.35);
    --sfm-shade: rgba(4, 6, 10, 0.76);
    --sfm-lift: 0 24px 80px rgba(0, 0, 0, 0.6);
    --sfm-sheet: 0 -20px 60px rgba(0, 0, 0, 0.6);
    --sfm-up: 0 -14px 44px rgba(0, 0, 0, 0.5);
    --sfm-err: #f87171;
    --sfm-ok: #34d399;
    color: var(--sfm-text);
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}
html[data-theme="light"] .sfm {
    --sfm-text: #1a1a1a;
    --sfm-text2: #4a4f57;
    --sfm-muted: #5f6670;
    --sfm-gold: #8a6606;
    --sfm-btn: #d4a10a;
    --sfm-btn-hover: #e0ad12;
    --sfm-line: #e2e5ea;
    --sfm-line2: #cfd5dd;
    --sfm-card: #ffffff;
    --sfm-field: #ffffff;
    --sfm-row: #f1f3f6;
    --sfm-bg: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    --sfm-edge: rgba(138, 102, 6, 0.35);
    --sfm-shade: rgba(15, 23, 42, 0.55);
    --sfm-lift: 0 24px 80px rgba(15, 23, 42, 0.28);
    --sfm-sheet: 0 -20px 60px rgba(15, 23, 42, 0.25);
    --sfm-up: 0 -14px 44px rgba(15, 23, 42, 0.14);
    --sfm-err: #b91c1c;
    --sfm-ok: #047857;
}
.sfm, .sfm *, .sfm *::before, .sfm *::after { box-sizing: border-box; }
/* The site's main stylesheet gives every span and b its own size and colour (body span); inside a form they follow the form */
.sfm :where(span, b, i, label, div) { color: inherit; font-size: inherit; }
.sfm[hidden], .sfm.sfm [hidden] { display: none !important; }
.sfm.sfm .sfm-sr { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sfm.sfm .sfm-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sfm.sfm .sfm-serif { font-family: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, serif; font-weight: 400; letter-spacing: -0.015em; }
.sfm.sfm .sfm-narrow { display: none; }

/* ---------- Shared pieces ---------- */
.sfm.sfm .sfm-eyebrow { margin: 0; padding: 0; font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sfm-gold); }
.sfm.sfm .sfm-h { margin: 8px 0 0; padding: 0; color: var(--sfm-text); }
.sfm.sfm .sfm-sub { margin: 8px 0 0; padding: 0; color: var(--sfm-text2); }
.sfm.sfm .sfm-f { position: relative; margin: 0; padding: 0; }
.sfm.sfm .sfm-row { display: flex; gap: 10px; }
.sfm.sfm .sfm-in { flex: 1; min-width: 0; width: auto; max-width: none; height: 52px; margin: 0; padding: 0 16px; border-radius: 12px; border: 1px solid var(--sfm-line2); background: var(--sfm-field); color: var(--sfm-text); font: inherit; font-size: 16px; line-height: normal; box-shadow: none; -webkit-appearance: none; appearance: none; }
.sfm.sfm .sfm-in::placeholder { color: var(--sfm-muted); opacity: 1; }
.sfm.sfm .sfm-in:focus { border-color: var(--sfm-gold); outline: 2px solid var(--sfm-gold); outline-offset: 1px; background: var(--sfm-field); color: var(--sfm-text); box-shadow: none; }
.sfm.sfm .sfm-in[aria-invalid="true"] { border-color: var(--sfm-err); }
.sfm.sfm .sfm-go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: auto; height: 52px; margin: 0; padding: 0 20px; border: 0; border-radius: 12px; background: var(--sfm-btn); color: #111; font: inherit; font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; box-shadow: none; transition: background-color 0.15s ease; }
.sfm.sfm .sfm-go:hover, .sfm.sfm .sfm-go:focus { background: var(--sfm-btn-hover); color: #111; box-shadow: none; }
.sfm.sfm .sfm-go[disabled] { opacity: 0.65; cursor: default; }
.sfm.sfm .sfm-go:focus-visible, .sfm.sfm .sfm-x:focus-visible, .sfm.sfm .sfm-no:focus-visible { outline: 3px solid var(--sfm-gold); outline-offset: 3px; }
.sfm.sfm .sfm-fine { margin: 10px 0 0; padding: 0; font-size: 13px; line-height: 1.45; color: var(--sfm-muted); }
.sfm.sfm .sfm-msg { margin: 10px 0 0; padding: 0; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--sfm-err); }
.sfm.sfm .sfm-x { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 12px; border: 1px solid var(--sfm-line2); background: transparent; color: var(--sfm-text2); cursor: pointer; box-shadow: none; }
.sfm.sfm .sfm-x:hover, .sfm.sfm .sfm-x:focus { background: transparent; color: var(--sfm-text); border-color: var(--sfm-muted); box-shadow: none; }
.sfm.sfm .sfm-done { display: flex; gap: 14px; align-items: flex-start; }
.sfm.sfm .sfm-done-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(52, 211, 153, 0.14); color: var(--sfm-ok); }
.sfm.sfm .sfm-done-t { margin: 0; padding: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--sfm-text); }
.sfm.sfm .sfm-done-s { margin: 6px 0 0; padding: 0; font-size: 15px; line-height: 1.5; color: var(--sfm-text2); }

/* The six tier squares in a row */
.sfm.sfm .sfm-tiers { display: flex; flex: none; gap: 4px; }
.sfm.sfm .sfm-tiers span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; font-size: 14px; line-height: 1; font-weight: 800; color: #111; }
.sfm.sfm .sfm-tS { background: #22c55e; }
.sfm.sfm .sfm-tA { background: #84cc16; }
.sfm.sfm .sfm-tB { background: #facc15; }
.sfm.sfm .sfm-tC { background: #fb923c; }
.sfm.sfm .sfm-tD { background: #f97316; }
.sfm.sfm .sfm-tE { background: #ef4444; }

/* The sample tier board */
.sfm.sfm .sfm-tb { display: flex; flex-direction: column; gap: 6px; }
.sfm.sfm .sfm-tr { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 6px; border-radius: 10px; border: 1px solid var(--sfm-line); background: var(--sfm-row); }
.sfm.sfm .sfm-tt { display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 8px; font-size: 19px; line-height: 1; font-weight: 800; color: #111; }
.sfm.sfm .sfm-tc { min-width: 0; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--sfm-text); }
.sfm.sfm .sfm-tc i { margin-left: 8px; font-style: normal; font-weight: 500; font-size: 13px; color: var(--sfm-muted); }
.sfm.sfm .sfm-ns { display: none; }
.sfm.sfm .sfm-cap { margin: 10px 0 0; padding: 0; font-size: 13px; line-height: 1.4; text-align: center; color: var(--sfm-muted); }

/* ---------- Pop-up: the site's own card over a dark shade ---------- */
.sfm.sfm-ov { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sfm.sfm .sfm-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--sfm-shade); }
.sfm.sfm .sfm-pop { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: auto 1fr; column-gap: 44px; width: 900px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; padding: 56px 46px 34px; border-radius: 22px; border: 1px solid var(--sfm-edge); background: var(--sfm-bg); box-shadow: var(--sfm-lift); outline: 0; }
.sfm.sfm .sfm-pop .sfm-copy { grid-column: 1; grid-row: 1; }
.sfm.sfm .sfm-pop .sfm-side { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.sfm.sfm .sfm-pop .sfm-act { grid-column: 1; grid-row: 2; align-self: start; margin-top: 20px; }
.sfm.sfm .sfm-pop .sfm-h { margin-top: 12px; font-size: 44px; line-height: 1.06; }
.sfm.sfm .sfm-pop .sfm-sub { margin-top: 14px; font-size: 17px; line-height: 1.55; }
.sfm.sfm .sfm-pop .sfm-in, .sfm.sfm .sfm-pop .sfm-go { height: 54px; }
.sfm.sfm .sfm-pop .sfm-go { padding: 0 22px; }
.sfm.sfm .sfm-pop .sfm-fine { margin-top: 12px; }
.sfm.sfm .sfm-pop .sfm-x { position: absolute; top: 8px; right: 8px; }
.sfm.sfm .sfm-strip { display: none; align-items: center; gap: 12px; margin-top: 14px; }
.sfm.sfm .sfm-strip p { margin: 0; padding: 0; font-size: 13px; line-height: 1.35; color: var(--sfm-muted); }
.sfm.sfm .sfm-no { display: inline-block; width: auto; min-height: 44px; margin: 6px 0 0; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--sfm-muted); font: inherit; font-size: 14px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; text-decoration: underline; cursor: pointer; box-shadow: none; }
.sfm.sfm .sfm-no:hover, .sfm.sfm .sfm-no:focus { background: none; color: var(--sfm-text2); box-shadow: none; }
html.sfm-lock { overflow: hidden; }

/* ---------- Ribbon: one slim row along the bottom ---------- */
.sfm.sfm-rib { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9980; border-top: 1px solid var(--sfm-edge); background: var(--sfm-card); box-shadow: var(--sfm-up); }
.sfm.sfm .sfm-rib-in { position: relative; display: flex; align-items: center; gap: 20px; max-width: 1320px; margin: 0 auto; padding: 12px 40px; }
.sfm.sfm .sfm-rib-t { flex: 1; min-width: 0; margin: 0; padding: 0; font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--sfm-text); }
.sfm.sfm .sfm-rib-t b { font-weight: 700; color: var(--sfm-gold); }
.sfm.sfm .sfm-rib-t span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; font-weight: 400; color: var(--sfm-text2); }
.sfm.sfm .sfm-rib-ask { flex: none; }
.sfm.sfm-rib .sfm-row { gap: 12px; }
.sfm.sfm-rib .sfm-in { flex: none; width: 260px; height: 48px; }
.sfm.sfm-rib .sfm-go { height: 48px; padding: 0 22px; }
.sfm.sfm-rib .sfm-msg { position: absolute; right: 0; bottom: calc(100% + 20px); margin: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--sfm-line2); background: var(--sfm-card); white-space: nowrap; }
.sfm.sfm-rib .sfm-rib-open { display: none; }
.sfm.sfm .sfm-rib-done { flex: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--sfm-ok); }
html.sfm-rib-on body { padding-bottom: var(--sfm-rib-h, 76px); }

/* ---------- In-content form: a compact card between two sections ---------- */
.sfm.sfm-inl { display: grid; grid-template-columns: minmax(0, 1fr) 232px; grid-template-rows: auto 1fr; column-gap: 32px; margin: 40px 0 32px; padding: 26px 26px 24px; border-radius: 18px; border: 1px solid var(--sfm-edge); background: var(--sfm-bg); }
.sfm.sfm-inl .sfm-copy { grid-column: 1; grid-row: 1; }
.sfm.sfm-inl .sfm-side { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.sfm.sfm-inl .sfm-act { grid-column: 1; grid-row: 2; align-self: start; margin-top: 18px; }
.sfm.sfm-inl .sfm-h { font-size: 25px; line-height: 1.22; font-weight: 700; }
.sfm.sfm-inl .sfm-sub { font-size: 16px; line-height: 1.5; }
.sfm.sfm-inl .sfm-tb { gap: 4px; }
.sfm.sfm-inl .sfm-tr { gap: 10px; padding: 3px; border-radius: 8px; }
.sfm.sfm-inl .sfm-tt { width: 26px; height: 26px; border-radius: 6px; font-size: 14px; }
.sfm.sfm-inl .sfm-tc { font-size: 14px; }
.sfm.sfm-inl .sfm-tc i { margin-left: 6px; font-size: 12px; }
.sfm.sfm-inl .sfm-cap { margin-top: 8px; font-size: 12px; }

/* ---------- End-of-content form: after the last paragraph, before the author card ---------- */
.sfm.sfm-end { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: auto 1fr; column-gap: 52px; margin: 0 0 32px; padding: 40px 40px 36px; border-radius: 22px; border: 1px solid var(--sfm-edge); background: var(--sfm-bg); }
.sfm.sfm-end .sfm-copy { grid-column: 1; grid-row: 1; }
.sfm.sfm-end .sfm-side { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.sfm.sfm-end .sfm-act { grid-column: 1; grid-row: 2; align-self: start; max-width: 560px; margin-top: 24px; }
.sfm.sfm-end .sfm-h { margin-top: 10px; font-size: 42px; line-height: 1.07; }
.sfm.sfm .sfm-ul { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.sfm.sfm .sfm-li { display: flex; gap: 10px; margin: 0; padding: 0; font-size: 16px; line-height: 1.45; color: var(--sfm-text2); list-style: none; }
.sfm.sfm .sfm-li::before, .sfm.sfm .sfm-li::marker { content: none; }
.sfm.sfm .sfm-li svg { flex: none; margin-top: 3px; color: var(--sfm-gold); }
.sfm.sfm-end .sfm-in, .sfm.sfm-end .sfm-go { height: 54px; }
.sfm.sfm-end .sfm-go { padding: 0 22px; }
.sfm.sfm-end .sfm-fine { margin-top: 12px; }

/* ---------- Narrower screens ---------- */

/* The board as two-up chips, used wherever a form stacks */
@media (max-width: 760px), (min-width: 901px) and (max-width: 1060px) {
    .sfm.sfm-inl { display: block; padding: 22px 18px 18px; }
    .sfm.sfm-inl .sfm-h { font-size: 23px; }
    .sfm.sfm-inl .sfm-sub { font-size: 15px; }
    .sfm.sfm-inl .sfm-side { margin-top: 16px; }
    .sfm.sfm-inl .sfm-act { margin-top: 16px; }
    .sfm.sfm-inl .sfm-tb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .sfm.sfm-inl .sfm-tr { gap: 8px; padding: 4px; }
    .sfm.sfm-inl .sfm-tc i, .sfm.sfm-inl .sfm-nl { display: none; }
    .sfm.sfm-inl .sfm-ns { display: inline; }
    .sfm.sfm-inl .sfm-cap { text-align: left; }
    .sfm.sfm-inl .sfm-narrow { display: inline; }
}
@media (max-width: 1100px) {
    .sfm.sfm-rib .sfm-tiers { display: none; }
}
@media (max-width: 960px) {
    .sfm.sfm .sfm-pop { display: block; width: 560px; padding: 44px 30px 22px; }
    .sfm.sfm .sfm-pop .sfm-side { display: none; }
    .sfm.sfm .sfm-pop .sfm-strip { display: flex; }
    .sfm.sfm .sfm-pop .sfm-h { font-size: 38px; }
}
@media (max-width: 900px) {
    /* Ribbon: one line and one button; the button opens the pop-up form, so nobody types into a strip */
    .sfm.sfm .sfm-rib-in { gap: 10px; padding: 10px 8px 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
    .sfm.sfm .sfm-rib-t { font-size: 14px; font-weight: 400; }
    .sfm.sfm-rib .sfm-wide, .sfm.sfm-rib .sfm-rib-ask { display: none; }
    .sfm.sfm-rib .sfm-narrow { display: block; }
    .sfm.sfm-rib .sfm-rib-open { display: inline-flex; height: 44px; padding: 0 14px; border-radius: 10px; font-size: 15px; }
    .sfm.sfm-rib .sfm-x { border: 0; border-radius: 10px; }
    .sfm.sfm .sfm-rib-done { flex: 1; font-size: 14px; }

    .sfm.sfm-end { display: block; padding: 32px 28px 26px; }
    .sfm.sfm-end .sfm-h { font-size: 36px; }
    .sfm.sfm-end .sfm-side { margin-top: 18px; }
    .sfm.sfm-end .sfm-act { max-width: none; margin-top: 18px; }
    .sfm.sfm-end .sfm-tb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .sfm.sfm-end .sfm-tr { gap: 8px; padding: 4px; border-radius: 8px; }
    .sfm.sfm-end .sfm-tt { width: 26px; height: 26px; border-radius: 6px; font-size: 14px; }
    .sfm.sfm-end .sfm-tc { font-size: 14px; }
    .sfm.sfm-end .sfm-tc i, .sfm.sfm-end .sfm-nl { display: none; }
    .sfm.sfm-end .sfm-ns { display: inline; }
    .sfm.sfm-end .sfm-cap { margin-top: 8px; font-size: 12px; text-align: left; }
}
@media (max-width: 640px) {
    /* Pop-up: a sheet from the bottom, so the article stays in view above it */
    .sfm.sfm-ov { align-items: flex-end; padding: 0; }
    .sfm.sfm .sfm-pop { width: 100%; max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); padding: 24px 18px 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border: 0; border-top: 1px solid var(--sfm-edge); border-radius: 22px 22px 0 0; box-shadow: var(--sfm-sheet); }
    .sfm.sfm .sfm-pop .sfm-eyebrow { font-size: 12px; }
    .sfm.sfm .sfm-pop .sfm-h { margin-top: 10px; padding-right: 44px; font-size: 31px; line-height: 1.07; }
    .sfm.sfm .sfm-pop .sfm-sub { margin-top: 10px; font-size: 15px; line-height: 1.5; }
    .sfm.sfm .sfm-pop .sfm-act { margin-top: 16px; }
    .sfm.sfm .sfm-pop .sfm-row { flex-direction: column; }
    .sfm.sfm .sfm-pop .sfm-in, .sfm.sfm .sfm-pop .sfm-go { flex: none; width: 100%; height: 52px; }
    .sfm.sfm .sfm-pop .sfm-fine { margin-top: 10px; text-align: center; }
    .sfm.sfm .sfm-pop .sfm-no { display: block; width: 100%; margin-top: 2px; text-align: center; }
    .sfm.sfm .sfm-pop .sfm-x { top: 12px; right: 12px; }
}
@media (max-width: 600px) {
    .sfm.sfm-inl { margin: 28px 0 24px; }
    .sfm.sfm-inl .sfm-tb, .sfm.sfm-end .sfm-tb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sfm.sfm-inl .sfm-row, .sfm.sfm-end .sfm-row { flex-direction: column; }
    .sfm.sfm-inl .sfm-in, .sfm.sfm-inl .sfm-go, .sfm.sfm-end .sfm-in, .sfm.sfm-end .sfm-go { flex: none; width: 100%; height: 52px; }
    .sfm.sfm-inl .sfm-fine, .sfm.sfm-end .sfm-fine { margin-top: 10px; text-align: center; }
    .sfm.sfm-end { padding: 26px 18px 20px; border-radius: 20px; }
    .sfm.sfm-end .sfm-h { font-size: 31px; line-height: 1.08; }
    .sfm.sfm .sfm-ul { margin-top: 16px; }
    .sfm.sfm .sfm-li { font-size: 15px; }
    .sfm.sfm .sfm-li svg { margin-top: 2px; }
    .sfm.sfm-end .sfm-wide { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .sfm.sfm-ov { animation: sfm-fade 0.18s ease-out; }
    .sfm.sfm .sfm-pop { animation: sfm-rise 0.22s ease-out; }
    .sfm.sfm-rib { animation: sfm-up 0.25s ease-out; }
}
@keyframes sfm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sfm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sfm-up { from { transform: translateY(100%); } to { transform: none; } }
