/* nom-components.css: shared components (DESIGN.md §4). */

.nom-mark {
    background: linear-gradient(transparent 62%, var(--color-primary-light) 62%, var(--color-primary-light) 92%, transparent 92%);
    padding: 0 2px;
}
.nom-num { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Buttons */
.nom-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 18px 28px; border-radius: 16px;
    border: 2px solid transparent;
    font: 700 1.1875rem/1.2 var(--font-body);
    text-decoration: none; text-align: center; cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}
.nom-btn--primary { background: var(--color-primary); color: var(--color-text-light); }
.nom-btn--primary:hover { background: var(--color-primary-dark); }
.nom-btn--secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.nom-btn--secondary:hover { background: var(--color-bg-subtle); }
.nom-btn:disabled, .nom-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.nom-btn--small { min-height: 48px; padding: 10px 18px; border-radius: 14px; font-size: 1rem; }
.nom-btn--block { display: flex; width: 100%; }
/* A quiet text button for small secondary actions (Undo, Not right?, Use a different email) */
.nom-btn--text {
    min-height: 48px; padding: 0 4px; border: 0; border-radius: 8px; background: transparent;
    color: var(--color-primary); font-size: 1rem; text-decoration: underline; text-underline-offset: 3px;
}
.nom-btn--text:hover { background: var(--color-bg-subtle); }
/* Quiet action: bold text, no outline or underline. For actions repeated on every row, room tools and pagers. */
.nom-btn--quiet { padding: 0 8px; font-weight: 700; text-decoration: none; }
.nom-btn--quiet:disabled { opacity: .4; background: transparent; }

/* Nav */
.nom-nav { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.nom-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); height: 64px; }
.nom-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--color-text); text-decoration: none;
    font: 800 18px/1 var(--font-head);
    min-height: 48px; white-space: nowrap;
}
.nom-brand__dot {
    width: 20px; height: 20px; border-radius: 50%; flex: none;
    background: var(--color-primary-light);
    box-shadow: inset 0 0 0 3px var(--color-primary);
}
.nom-nav__links { display: flex; align-items: center; gap: 28px; }
.nom-nav__link { display: none; color: var(--color-text-secondary); text-decoration: none; font-size: 1rem; font-weight: 700; }
.nom-nav__link:hover { color: var(--color-text); }
.nom-nav__pill {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
    border-radius: 999px; background: var(--color-primary); color: var(--color-text-light);
    font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap;
    transition: background-color .18s ease;
}
.nom-nav__pill:hover { background: var(--color-primary-dark); }
.nom-nav__pill--button { border: 0; font-family: var(--font-body); cursor: pointer; }
@media (min-width: 880px) {
    .nom-nav__inner { height: 72px; }
    .nom-brand { font-size: 22px; }
    .nom-nav__link { display: inline; }
}

/* Verdict dots and chips: color plus symbol, never color alone */
.nom-dot {
    width: 26px; height: 26px; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--color-text-light); font-weight: 700; font-size: 15px; line-height: 1;
}
.nom-dot--lg { width: 34px; height: 34px; font-size: 18px; }
.nom-dot--pass { background: var(--color-success); }
.nom-dot--fail { background: var(--color-danger); }
.nom-dot--cannot_tell { background: var(--color-info); }

.nom-chip {
    display: inline-block; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
    color: var(--color-text-light); font-size: 0.875rem; font-weight: 700;
}
.nom-chip--pass { background: var(--color-success); }
.nom-chip--fail { background: var(--color-danger); }
.nom-chip--checking { background: var(--color-info); }
.nom-chip--noted { background: var(--color-primary); }
.nom-chip--idle { background: transparent; color: var(--color-text-secondary); box-shadow: inset 0 0 0 1px var(--color-border); }

/* Verdict rows (moved unchanged from nom-landing.css; used by the demo, the crew page and the job record) */
.nom-verdicts { list-style: none; margin: 0; padding: 0; }
.nom-verdict { display: flex; gap: 12px; align-items: flex-start; padding: 12px 6px; border-top: 1px solid var(--color-border); }
.nom-verdict__label { display: block; font-size: 16px; line-height: 1.3; }
.nom-verdict__reason { display: block; font-size: 14px; line-height: 1.4; color: var(--color-text-secondary); }
.nom-verdict__reason--retake { color: var(--color-info); }
.nom-verdict__empty { padding: 14px 6px; border-top: 1px solid var(--color-border); font-size: 15px; color: var(--color-text-secondary); }

/* The one authored motion: rows appear one by one (reduced motion shows them at once) */
.nom-verdict--enter { opacity: 0; transform: translateY(6px); animation: nom-rise .3s ease-out forwards; }
.nom-verdict--d1 { animation-delay: .12s; }
.nom-verdict--d2 { animation-delay: .24s; }
.nom-verdict--d3 { animation-delay: .36s; }
.nom-verdict--d4 { animation-delay: .48s; }
.nom-verdict--d5 { animation-delay: .6s; }
.nom-verdict--d6 { animation-delay: .72s; }
.nom-verdict--d7 { animation-delay: .84s; }
@keyframes nom-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nom-verdict--enter { opacity: 1; transform: none; } }

/* Cards */
.nom-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 22px; }

/* Footer */
.nom-footer { border-top: 1px solid var(--color-border); padding: var(--space-xl) 0; }
.nom-footer__inner { display: flex; flex-direction: column; gap: var(--space-md); }
.nom-footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nom-footer__links a {
    display: inline-flex; align-items: center; min-height: 48px;
    color: var(--color-text-secondary); font-size: 0.9375rem; font-weight: 700; text-decoration: none;
}
.nom-footer__links a:hover { color: var(--color-text); }
.nom-footer__copy { color: var(--color-text-secondary); font-size: 0.9375rem; }
@media (min-width: 880px) {
    .nom-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Crew page footer (BRIEF §13): one line, clear of the fixed Finish bar */
.nom-footer--crew { padding: var(--space-lg) 0 calc(120px + env(safe-area-inset-bottom)); text-align: center; }
.nom-footer--crew a { display: flex; align-items: center; justify-content: center; min-height: 48px; font-weight: 700; }

/* Form fields */
.nom-field { display: grid; gap: 6px; }
.nom-field__label { font-size: 0.9375rem; font-weight: 700; color: var(--color-text); }
.nom-input {
    width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text);
    font: 400 1.125rem/1.3 var(--font-body);   /* 18px: iOS doesn't zoom the page on focus */
}
.nom-input:focus-visible { border-color: var(--color-primary); outline: 3px solid var(--color-primary-light); outline-offset: 2px; }
.nom-input--area { min-height: 104px; resize: vertical; line-height: 1.45; }
.nom-input[readonly] { background: var(--color-bg-subtle); }

/* Short status or error message inside a page */
.nom-notice {
    padding: 12px 14px; border-radius: 12px; border: 1px solid var(--color-border);
    background: var(--color-bg-subtle); color: var(--color-text); font-size: 1rem;
}
.nom-notice--error { border-color: var(--color-danger); color: var(--color-danger); background: var(--color-bg); font-weight: 700; }
/* Amber is for billing and account warnings only (DESIGN.md §2), never a verdict */
.nom-notice--warning { border-color: var(--color-warning); background: var(--color-bg); }
.nom-notice--warning > p:first-child { color: var(--color-warning); font-weight: 700; }
.nom-notice--success { border-color: var(--color-success); color: var(--color-success); background: var(--color-bg); font-weight: 700; }
.nom-notice__action { margin-top: var(--space-md); }

/* Simple content pages (thanks, privacy, terms, 404) */
.nom-page { padding: 52px 0 72px; }
.nom-page__body { max-width: 68ch; }
.nom-page__body h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: var(--space-lg); }
.nom-page__body h2 { font-size: 1.4rem; margin: var(--space-xl) 0 var(--space-sm); }
.nom-page__body p, .nom-page__body li { color: var(--color-text-secondary); }
.nom-page__body p + p { margin-top: var(--space-md); }
.nom-page__body ul, .nom-page__body ol { padding-left: 1.2em; margin: var(--space-sm) 0 0; }
.nom-page__body li + li { margin-top: var(--space-sm); }
.nom-page__lead { font-size: 1.25rem; }
.nom-page__actions { margin-top: var(--space-xl); }
.nom-page__updated { font-size: 0.9375rem; margin-top: var(--space-xl); }
