/* Free tools and guides (/pao-calculator/, /makeup-supply-calculator/, /makeup-inventory-spreadsheet/,
   /project-pan-app/, /makeup-expiry-tracker/), on top of site.css. Light and dark follow its tokens. */
:root {
    --fresh: #2f7a54;
    --soon: #a3620a;
    --expired: #b0443a;
}
@media (prefers-color-scheme: dark) {
    :root {
        --fresh: #7fd1a5;
        --soon: #f2b155;
        --expired: #ff9a8f;
    }
}

.kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* The calculator, a card above the reading text */
.tool {
    margin: 28px 0 8px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(42, 35, 33, 0.05), 0 10px 30px rgba(42, 35, 33, 0.06);
}
.tool h2 { margin: 0 0 4px; font-size: 20px; }
.tool > p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.tool + .tool { margin-top: 20px; }
.fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.field input, .field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
}
.field input:focus-visible, .field select:focus-visible, .tool button:focus-visible, .chips button:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}
.with-unit { display: flex; align-items: center; gap: 8px; }
.with-unit input { flex: 1 1 auto; }
.with-unit span { color: var(--muted); font-size: 15px; white-space: nowrap; }
.with-unit .jar-small { flex: none; width: 38px; height: 38px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chips button, .tool .secondary {
    padding: 5px 12px;
    font: inherit;
    font-size: 13px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 999px;
    cursor: pointer;
}
.chips button:hover, .tool .secondary:hover { border-color: var(--coral); }

/* The answer, printed like a product label */
.result {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 16px 18px;
    background: var(--note);
    border-radius: 12px;
}
.result[hidden] { display: none; }
.result .jar { flex: 0 0 auto; width: 52px; height: 52px; color: var(--ink); }
.result-body { min-width: 0; }
.result-body p { margin: 0; }
.result .status {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.status.fresh { color: var(--fresh); }
.status.soon { color: var(--soon); }
.status.expired { color: var(--expired); }
.result .headline { font-size: 21px; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
.result .detail { margin-top: 4px; color: var(--muted); font-size: 15px; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.result-actions output { color: var(--fresh); font-size: 14px; }
.result .lines .detail { margin-top: 4px; }

.currency-row { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; font-size: 15px; color: var(--muted); }
.currency-row select {
    min-height: 36px;
    padding: 4px 10px;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 8px;
}

/* "Get the app" card */
.app-card {
    margin: 32px 0;
    padding: 20px 22px;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--coral);
    border-radius: 0 14px 14px 0;
    background: var(--surface);
}
.app-card h2 { margin: 0 0 6px; font-size: 20px; }
.app-card p { margin: 0 0 14px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badges img { display: block; height: 44px; width: auto; }
.badges .weblink { font-size: 15px; }
@media (prefers-color-scheme: dark) {
    .badges img { outline: 1px solid #5d5350; outline-offset: -1px; border-radius: 9px; }
}

/* A primary action, such as the template download */
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 20px;
    font-weight: 650;
    color: var(--paper);
    background: var(--ink);
    border-radius: 999px;
    text-decoration: none;
}
.button:hover { text-decoration: none; opacity: 0.9; }
.button svg { width: 18px; height: 18px; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 24px 0 8px; }
.download small { color: var(--muted); font-size: 14px; }

/* Reference tables */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table.ref { border-collapse: collapse; width: 100%; font-size: 15px; }
table.ref th, table.ref td { padding: 9px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.ref th { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
table.pao td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.ref tr.group td { padding-top: 18px; font-weight: 650; border-bottom-color: var(--ink); }

/* Screenshots on the guide pages */
.shots { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin: 24px 0; }
.shots figure { margin: 0; width: 200px; }
.shots img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 26px rgba(0, 0, 0, 0.1); }
.shots figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 26px; margin: 8px 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--coral); }

@media (max-width: 560px) {
    .tool { padding: 18px 16px; }
    .fields { grid-template-columns: minmax(0, 1fr); }
    .result { padding: 14px; gap: 12px; }
    .result .jar { width: 44px; height: 44px; }
    .result .headline { font-size: 19px; }
    .shots figure { width: calc(50% - 10px); }
    table.ref { font-size: 14px; }
    table.ref th, table.ref td { padding: 8px 6px; }
    table.ref th:first-child, table.ref td:first-child { padding-left: 0; }
    table.ref th:last-child, table.ref td:last-child { padding-right: 0; }
    table.pao td:nth-child(2) { white-space: normal; }
}
