/* SecretGift design system: the October 2026 "Design 2" (theme2) tokens. See docs/design-system.md. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter/InterVariable.woff2") format("woff2");
}

/* ===== Tokens ===== */

:root {
    --ink: #17324d;
    --ink-2: #4a5d70;
    --ink-3: #7f8e9d;

    --human-check-accent: #0d604d;
    --green: #0d604d;
    --green-dk: #0a4f3f;
    --green-deep: #0d604d;
    --green-lt: #e7f3ef;

    --red: #d83a3a;
    --red-dk: #b92f2f;
    --red-lt: #fdecec;

    --gold: #e9b949;
    --gold-lt: #fff5d6;
    --gold-dk: #8d7f59;
    --gold-line: #f1deac;

    --blue: #3b7fc4;
    --sky: #e3f0f7;
    --sky-2: #cfe3ef;

    --cream: #f5fbfd;
    --paper: #fff;
    --line: #e3edf2;
    --mist: #eef3f6;

    --stk: 0 2px 8px rgba(23, 50, 77, .08);
    --stk-sm: 0 1px 3px rgba(23, 50, 77, .08);
    --stk-soft: 0 4px 16px rgba(23, 50, 77, .07);

    --bw: 1px;
    --r: 14px;
    --r-lg: 16px;
    --r-btn: 9px;
    --r-pill: 999px;

    --focus: var(--green);
    --focus-ring: 0 0 0 3px rgba(13, 96, 77, .15);
    --candy: repeating-linear-gradient(135deg, var(--red) 0 9px, #fff 9px 18px);

    --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --disp: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    --page-width: 1120px;
}

/* ===== Base ===== */

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

html,
body {
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--cream);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    font-family: var(--disp);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.01em;
    color: var(--ink);
}

p {
    margin: 0 0 12px;
}

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

img,
svg {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

/* FocusOnNavigate and the skip link move focus by script; no ring is needed there. */
h1:focus,
main:focus {
    outline: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skiplink {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: var(--r-btn);
    background: var(--green);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skiplink:focus {
    top: 12px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Shell ===== */

main {
    flex: 1 0 auto;
}

.pad {
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 22px 28px 44px;
}

.brandlink {
    display: block;
    flex: none;
    line-height: 0;
}

.brand {
    display: block;
    width: auto;
    height: 44px;
}

/* Public pages */
.sitenav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 26px;
    padding: 12px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.freechip {
    padding: 2px 11px;
    border: 1px solid var(--gold-line);
    border-radius: var(--r-pill);
    background: var(--gold-lt);
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 700;
}

.pubnav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.pubnav a:not(.btn) {
    padding: 7px 11px;
    border-radius: 10px;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.pubnav a:not(.btn):hover {
    background: var(--green-lt);
    color: var(--green);
}

/* Signed-in pages */
.sitehead {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 12px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.mainnav {
    display: flex;
    gap: 26px;
    margin-left: 30px;
}

.mainnav a {
    margin-bottom: -13px;
    padding: 12px 2px;
    border-bottom: 3px solid transparent;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.mainnav a:hover {
    color: var(--green);
}

.mainnav a.on {
    color: var(--green);
    border-bottom-color: var(--green);
}

.acct {
    position: relative;
    margin-left: auto;
}

.acct > summary,
.burger > summary {
    list-style: none;
    cursor: pointer;
}

.acct > summary::-webkit-details-marker,
.burger > summary::-webkit-details-marker {
    display: none;
}

.acct > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px;
    border-radius: 12px;
}

.acct .ini {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green-lt);
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.acct .who b {
    display: block;
    font-size: 14px;
}

.acct .who small {
    color: var(--ink-2);
    font-size: 12px;
}

.acct .chev {
    color: var(--ink-3);
    font-size: 12px;
}

.menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    min-width: 200px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--stk-soft);
}

.menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.menu a:hover,
.menu a.on {
    background: var(--green-lt);
    color: var(--green);
}

.menu .menuuser {
    padding: 9px 12px 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
    color: var(--ink-2);
    font-size: 13px;
}

.burger {
    display: none;
    margin-left: auto;
}

.burger > summary {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
}

.burger .menu {
    left: 16px;
    right: 16px;
    top: calc(100% + 1px);
}

.sitefoot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 28px 22px;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 12.5px;
}

.sitefoot nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
}

.sitefoot a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--ink-2);
    text-decoration: none;
}

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

.sitefoot .ver-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sitefoot .ver-pill:hover {
    border-color: var(--green);
    text-decoration: none;
}

/* ===== Page header ===== */

.backlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--green);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}

.backlink:hover {
    text-decoration: underline;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--red);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lede {
    max-width: 640px;
    margin: 0;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.5;
}

.lede b {
    color: var(--ink);
    font-weight: 600;
}

.herocard {
    position: relative;
    min-height: 176px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--stk-sm);
}

.herocard::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 3;
    height: 6px;
    background: var(--candy);
}

.herocard .copy {
    position: relative;
    z-index: 2;
    max-width: 58%;
    padding: 24px 28px 26px;
}

.herocard.noart .copy {
    max-width: none;
}

.herocard .headrow {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.herocard .headrow > .title {
    flex: 1 1 auto;
}

.herocard .title {
    margin: 0 0 8px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
}

.herocard .art {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 62%;
}

.herocard .art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.herocard .art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .92) 18%, rgba(255, 255, 255, 0) 55%);
}

/* ===== Tab strip and step bar ===== */

.tabstrip,
.stepbar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    padding: 8px 10px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    box-shadow: var(--stk-sm);
}

.tabstrip a,
.stepbar a {
    flex: none;
    padding: 8px 16px;
    border-radius: var(--r-pill);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.tabstrip a:hover,
.stepbar a:hover {
    background: var(--green-lt);
    color: var(--green);
}

.tabstrip a.on,
.stepbar a.on {
    background: var(--green);
    color: #fff;
}

.stepbar a.done:not(.on) {
    color: var(--green);
}

.stepbar a.done::before {
    content: "✓\00a0";
    content: "✓\00a0" / "";
}

.tabstrip .of,
.stepbar .of {
    margin-left: auto;
    padding: 0 10px;
    color: var(--green);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 15px;
    border: 1px solid var(--green);
    border-radius: var(--r-btn);
    background: var(--green);
    color: #fff;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .12s;
}

.btn:hover {
    background: var(--green-dk);
}

.btn.ghost {
    border: 1.5px solid var(--green);
    background: #fff;
    color: var(--green);
}

.btn.ghost:hover {
    background: var(--green-lt);
}

.btn.red {
    border-color: var(--red);
    background: var(--red);
}

.btn.red:hover {
    background: var(--red-dk);
}

.btn.xs {
    padding: 4px 10px;
    font-size: 11.5px;
}

.btn.sm {
    padding: 6px 12px;
    font-size: 12.5px;
}

.btn.lg {
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 15px;
}

.btn.block {
    width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Pills ===== */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.pill.ok {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.pill.sent {
    border-color: var(--sky);
    background: var(--sky);
}

.pill.none {
    border-color: var(--mist);
    background: var(--mist);
    color: var(--ink-2);
}

.pill.bad {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

/* The design uses --ink-3 here; white text on it falls below 4.5:1, so this is one step darker. */
.pill.dec {
    border-color: var(--ink-2);
    background: var(--ink-2);
    color: #fff;
}

.pill.wait {
    border-color: var(--gold);
    background: var(--gold-lt);
    color: var(--ink);
}

/* ===== Avatars ===== */

.av {
    display: grid;
    place-items: center;
    flex: none;
    width: 29px;
    height: 29px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.av.xs {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.av.s {
    width: 29px;
    height: 29px;
    font-size: 13px;
}

.av.m {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.av.big {
    width: 82px;
    height: 82px;
    font-size: 34px;
    box-shadow: var(--stk);
}

.av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The palette green #2f9e4f gives white initials only 3.4:1, so the swatch is darkened to pass 4.5:1. */
.av.c-green { background: #288443; }
.av.c-red { background: #e0322f; }
.av.c-berry { background: #b8231f; }
.av.c-purple { background: #7b5ea7; }
.av.c-pine { background: #1f7a3a; }

/* Light swatches carry dark text so initials stay readable. */
.av.c-gold { background: #ffc233; color: var(--ink); }
.av.c-sky { background: #6fc0e8; color: var(--ink); }
.av.c-pink { background: #f38cbe; color: var(--ink); }
.av.c-tan { background: #c08b4a; color: var(--ink); }

.faces {
    display: flex;
    align-items: center;
}

.faces > .av {
    margin-right: -8px;
    border: 2px solid #fff;
}

.faces > .av.more {
    margin-right: 0;
    background: #fff;
    color: var(--ink);
    font-size: 10px;
    border-color: var(--line);
}

/* ===== Checks and verdicts ===== */

.chk {
    display: flex;
    gap: 13px;
    margin-bottom: 10px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    box-shadow: var(--stk-sm);
}

.chk .ic,
.verdict .ic {
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-weight: 700;
}

.chk .ic {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 15px;
}

.chk .tx {
    flex: 1;
    min-width: 0;
}

.chk .tx > strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 700;
}

.chk .tx p {
    margin: 0;
    color: var(--ink-2);
    font-size: 12.5px;
    line-height: 1.5;
}

.chk .fix {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chk .side {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    align-self: center;
    gap: 7px;
}

.chk .side .status {
    color: var(--ink-2);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.chk.tight {
    background: var(--gold-lt);
}

.chk.bad {
    border-color: var(--red);
    background: var(--red-lt);
}

.chk.lock,
.verdict.lock {
    border-color: var(--ink);
    background: var(--ink);
    color: #e7f3ef;
}

.chk.lock .tx > strong,
.verdict.lock .vt {
    color: #fff;
}

.chk.lock .tx p,
.chk.lock .side .status,
.verdict.lock .vb {
    color: var(--sky-2);
}

.verdict {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--stk-sm);
}

.verdict .ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
}

.verdict .vt {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 700;
}

.verdict .vb {
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.55;
}

.verdict .vb b {
    color: var(--ink);
}

.verdict.ok {
    background: var(--green-lt);
}

.verdict.tight {
    background: var(--gold-lt);
}

.verdict.bad {
    background: var(--red-lt);
}

/* ===== Notices ===== */

.invariant {
    margin-top: 22px;
    padding: 15px 19px;
    border-radius: var(--r);
    background: var(--green);
    color: #e7f3ef;
    box-shadow: var(--stk-sm);
}

.invariant h2 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 16px;
}

.invariant p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.invariant b {
    color: #fff;
}

.lockstrip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 11px;
    border: 1px dashed var(--ink-3);
    border-radius: 10px;
    background: #f1f5f8;
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 600;
}

.empty {
    padding: 38px 30px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: var(--stk-soft);
}

.empty svg {
    width: 120px;
    height: 96px;
    margin-bottom: 8px;
}

.empty h2 {
    margin-bottom: 8px;
    font-size: 22px;
}

.empty p {
    max-width: 420px;
    margin: 0 auto 18px;
    color: var(--ink-2);
    font-size: 13.5px;
}

.empty .acts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background: var(--gold-lt);
    font-size: 13.5px;
    font-weight: 500;
}

.banner .ic {
    flex: none;
    font-size: 18px;
    line-height: 1;
}

.banner .tx {
    flex: 1 1 260px;
    min-width: 0;
}

.banner .from {
    display: block;
    margin-bottom: 2px;
    color: var(--red-dk);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.banner .acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.banner.gold {
    max-width: 640px;
}

.banner.unverified {
    border-left: 5px solid var(--gold);
}

.banner.unverified .ic {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.banner.managing {
    font-weight: 600;
}

.confirm {
    margin-bottom: 15px;
    padding: 15px 17px;
    border: 1px dashed var(--ink-3);
    border-radius: var(--r);
    background: #fff;
}

.confirm.danger {
    border: 1px solid var(--red);
    background: var(--red-lt);
}

.confirm .ct {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 700;
}

.confirm ul {
    margin: 0 0 13px;
    padding-left: 19px;
}

.confirm li {
    margin-bottom: 5px;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.5;
}

.confirm li em {
    color: var(--red-dk);
    font-style: normal;
    font-weight: 700;
}

.confirm .acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.footnote {
    margin: 0;
    color: var(--ink-2);
    font-size: 12.5px;
}

.savedchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border: 1px solid var(--green-lt);
    border-radius: var(--r-pill);
    background: var(--green-lt);
    color: var(--green);
    font-size: 11.5px;
    font-weight: 600;
}

.savedchip.busy {
    border-color: var(--gold-line);
    background: var(--gold-lt);
    color: var(--ink);
}

/* ===== Forms ===== */

.field {
    margin-bottom: 18px;
}

.field .labrow {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 6px;
}

.field .flabel {
    font-size: 13px;
    font-weight: 700;
}

.field .cnt {
    margin-left: auto;
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 600;
}

.req,
.opt,
.auto {
    margin-left: 8px;
    padding: 1px 7px;
    border: 1px solid;
    border-radius: 7px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.req {
    border-color: var(--red);
    background: var(--red-lt);
    color: var(--red-dk);
}

.opt {
    border-color: var(--line);
    background: var(--mist);
    color: var(--ink-2);
}

.auto {
    border-color: var(--sky-2);
    background: var(--sky);
    color: var(--ink);
}

.hint {
    margin: 6px 0 0;
    color: var(--ink-2);
    font-size: 12px;
}

.field input:not([type="checkbox"], [type="radio"], [type="hidden"]),
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--ink-3);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
}

.field textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: var(--focus-ring);
}

.field input[disabled],
.field select[disabled],
.field textarea[disabled] {
    opacity: .6;
}

.field .invalid,
.field input.invalid {
    border-color: var(--red);
    background: #fff6f5;
}

/* Blazor's ValidationMessage and CSLA's CslaValidationMessages render this class. It uses the design's .problem look. */
.validation-message,
.problem {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 7px;
    color: var(--red-dk);
    font-size: 12.5px;
    font-weight: 600;
}

.validation-message::before,
.problem::before {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    background: url("images/icon-warning.svg") center / contain no-repeat;
}

.validation-errors {
    margin: 0 0 18px;
    padding: 11px 13px 11px 32px;
    border: 1px solid var(--red);
    border-radius: 12px;
    background: #fff6f5;
    color: var(--red-dk);
    font-weight: 600;
}

/* ===== Simple content pages ===== */

.prose {
    max-width: 720px;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--stk-sm);
}

.prose h1 {
    position: relative;
    margin-bottom: 12px;
    font-size: 30px;
    font-weight: 800;
}

.prose p {
    color: var(--ink-2);
}

.prose .acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.guide h2 {
    margin: 24px 0 6px;
}

.guide h3 {
    margin: 16px 0 4px;
}

.guide-more {
    margin-top: 28px;
}

.guide-more a {
    display: inline-block;
    min-height: 24px;
}

.release-notes section {
    margin-top: 24px;
}

.release-notes h2 small {
    margin-left: 8px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
}

.release-notes h3 {
    margin: 14px 0 4px;
    color: var(--ink-2);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.release-notes ul {
    display: grid;
    gap: 6px;
    padding-left: 20px;
}

.release-notes code {
    overflow-wrap: anywhere;
}

/* ===== Admin pages ===== */

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-cards li {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    box-shadow: var(--stk-sm);
}

.admin-cards h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.admin-cards p {
    margin: 0;
    color: var(--ink-2);
}

.prose .email-list + h2 {
    margin-top: 28px;
}

.email-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
}

.email-list .hint {
    display: block;
    margin-top: 2px;
}

.email-form,
.email-preview {
    margin-top: 24px;
}

.email-variables dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 14px;
    margin: 12px 0 0;
}

.email-variables dd {
    margin: 0;
    color: var(--ink-2);
}

@media (max-width: 560px) {
    .email-variables dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .email-variables dd {
        margin-bottom: 8px;
    }
}

.email-preview h3 {
    margin: 18px 0 6px;
}

.email-preview pre {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--mist);
    font: inherit;
    font-size: 13px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* ===== Blazor ===== */

#blazor-error-ui {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    padding: 10px 48px 12px 20px;
    background: var(--gold-lt);
    border-top: 1px solid var(--gold-line);
    box-shadow: var(--stk-soft);
    color: var(--ink);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 16px;
    top: 8px;
    cursor: pointer;
}

.blazor-error-boundary {
    padding: 12px 16px;
    border: 1px solid var(--red);
    border-radius: 12px;
    background: var(--red-lt);
    color: var(--red-dk);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ===== Phone and tablet ===== */

@media (max-width: 820px) {
    .pad {
        padding: 16px 14px 32px;
    }

    .brand {
        height: 36px;
    }

    .sitenav {
        gap: 10px 12px;
        padding: 10px 16px;
    }

    .pubnav .wide {
        display: none;
    }

    .sitehead {
        gap: 12px;
        padding: 10px 16px;
    }

    .mainnav,
    .acct {
        display: none;
    }

    .burger {
        display: block;
    }

    .sitehead > .burger {
        position: static;
    }

    .sitefoot {
        padding: 16px;
    }

    .herocard .copy {
        max-width: 100%;
        padding: 18px 18px 20px;
    }

    .herocard .art {
        width: 55%;
        opacity: .35;
    }

    .herocard .title {
        font-size: 26px;
    }

    .tabstrip,
    .stepbar {
        padding: 6px 8px;
        margin-bottom: 14px;
    }

    .tabstrip a,
    .stepbar a {
        padding: 6px 12px;
        font-size: 12.5px;
    }

    /* The five setup steps are wider than a phone, so they wrap instead of scrolling out of sight. */
    .stepbar {
        flex-wrap: wrap;
    }

    .chk {
        flex-wrap: wrap;
    }

    .chk .side {
        flex-direction: row;
        align-items: center;
        width: 100%;
        padding-left: 43px;
    }

    .verdict {
        padding: 14px 16px;
    }

    .prose {
        padding: 20px 18px;
    }
}
