/* Content pages (hourly/, salary/, earns/). Builds on the tokens and base rules in styles.css. */

body.page {
    display: block;
    min-height: 100dvh;
    padding: 0 var(--pad-x) 48px;
}

.page-top {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding: max(16px, env(safe-area-inset-top)) 0 0;
    max-width: 760px;
    margin: 0 auto;
}
.brand { font-weight: 500; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.crumbs { font-size: 0.8rem; color: var(--fg-3); }
.crumbs a { color: var(--fg-3); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { margin: 0 6px; }

.page-main { max-width: 760px; margin: 0 auto; padding-top: 40px; }

.page-main h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; }
.page-main h2 { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; margin: 44px 0 12px; }
.page-main p { color: var(--fg-2); margin: 0 0 12px; line-height: 1.65; }
.page-main p strong { color: var(--fg); font-weight: 500; }
.page-main a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.page-main a:hover { text-decoration-color: var(--fg); }
.hl { font-family: var(--mono); font-weight: 400; color: var(--accent); white-space: nowrap; }
.lede { font-size: 1.05rem; }
.fine { font-size: 0.8rem; color: var(--fg-3); }

/* Preloaded live counter */
.live {
    position: relative;
    isolation: isolate;
    margin: 28px 0 8px;
    padding: 36px 20px 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
}
.live::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 55%;
    width: min(70%, 420px);
    aspect-ratio: 1;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--accent), transparent 72%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 1.2s var(--ease);
}
.live[data-running="true"]::before { opacity: 0.14; animation: breathe 6s ease-in-out infinite; }
.live .eyebrow { margin-bottom: 14px; color: var(--accent); }
.live-amount {
    font-family: var(--mono);
    font-weight: 300;
    font-size: clamp(2.4rem, 9vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--fg);
}
.live-sub { font-size: 0.36em; color: var(--accent); opacity: 0.8; margin-left: 0.12em; }
.live-meta { font-family: var(--mono); font-size: 0.85rem; color: var(--fg-3) !important; margin: 14px 0 20px !important; font-variant-numeric: tabular-nums; }
.live-cta { margin: 0 !important; }
.live-cta .btn { display: inline-block; text-decoration: none; min-width: 0; }

/* Tables */
.grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 0 0 10px;
}
.grid th, .grid td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.grid thead th { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; }
.grid tbody th { font-weight: 400; color: var(--fg-2); }
.grid td { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.grid td + td, .grid th + th { text-align: right; }

/* Lists and link chips */
.ticks { list-style: none; padding: 0; margin: 0 0 12px; color: var(--fg-2); }
.ticks li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ticks strong { font-family: var(--mono); font-weight: 400; color: var(--fg); margin-right: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chips a {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--fg-2);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.chips a:hover { color: var(--fg); border-color: var(--fg); }
.chips.big a { font-size: 0.95rem; padding: 8px 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0 0 8px; }
.card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-decoration: none !important;
    transition: border-color 0.2s;
}
.card:hover { border-color: var(--fg); }
.card strong { font-weight: 500; color: var(--fg); }
.card span { font-size: 0.8rem; color: var(--fg-3); }
.card em { font-style: normal; font-family: var(--mono); font-size: 0.85rem; color: var(--accent); margin-top: 6px; }

/* Salary comparison on person pages */
.compare { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.compare label { display: flex; align-items: center; gap: 10px; color: var(--fg-3); font-size: 0.9rem; }
.compare .input-wrap { width: 150px; }

/* Lists in prose pages */
.page-main ul:not(.ticks) { color: var(--fg-2); line-height: 1.65; padding-left: 1.2em; margin: 0 0 12px; }
.page-main ul:not(.ticks) li { margin-bottom: 6px; }
.page-main code { font-family: var(--mono); font-size: 0.88em; padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; }

/* Embed page */
.embed-form { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }
.embed-form input[type="text"] { width: 100%; padding: 0.7em 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-family: var(--mono); font-size: 0.95rem; }
.embed-form input[type="text"]:focus { outline: none; border-color: var(--fg); }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--fg-2); }
.code {
    margin: 0 0 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-elev);
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--fg);
    white-space: pre-wrap;
    word-break: break-all;
    cursor: copy;
}
.code:hover { border-color: var(--fg); }

/* The widget page is framed by other sites: fill the frame, nothing else */
body.page.bare { padding: 0; min-height: 0; background: var(--bg); }
body.bare .page-main { padding: 0; max-width: none; }
.live.widget { margin: 0; border: 0; border-radius: 0; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 16px 36px; }
.live.widget .live-amount { font-size: clamp(2rem, 12vw, 4rem); }
.widget-brand {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-3) !important;
    text-decoration: none !important;
}
.widget-brand:hover { color: var(--fg) !important; }

.page-foot { max-width: 760px; margin: 56px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--fg-3); }
.page-foot a { color: var(--fg-2); text-decoration: none; }
.page-foot a:hover { color: var(--fg); }
.page-foot p { margin: 10px 0 0; }

@media (max-width: 600px) {
    .grid { font-size: 0.88rem; }
    .grid th, .grid td { padding: 9px 8px; }
}


/* ---------- Earner hero: tiles and to-scale comparison bars ---------- */
.hero-earner { margin: 8px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.tile-k { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.tile-v { font-family: var(--mono); font-weight: 300; font-size: clamp(1.1rem, 2.6vw, 1.6rem); color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.vs-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; align-items: center; gap: 12px; font-size: 0.88rem; }
.vs-name { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.vs-bar span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--accent); }
.vs-bar span.base { background: var(--fg-2); }
.vs-val { font-family: var(--mono); font-size: 0.85rem; color: var(--fg); font-variant-numeric: tabular-nums; }
.vs-note { font-size: 0.85rem !important; color: var(--fg-3) !important; margin-top: 10px !important; }
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vs-row { grid-template-columns: 90px 1fr auto; } }
.w-0 { width: 0%; }
.w-1 { width: 1%; }
.w-2 { width: 2%; }
.w-3 { width: 3%; }
.w-4 { width: 4%; }
.w-5 { width: 5%; }
.w-6 { width: 6%; }
.w-7 { width: 7%; }
.w-8 { width: 8%; }
.w-9 { width: 9%; }
.w-10 { width: 10%; }
.w-11 { width: 11%; }
.w-12 { width: 12%; }
.w-13 { width: 13%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-16 { width: 16%; }
.w-17 { width: 17%; }
.w-18 { width: 18%; }
.w-19 { width: 19%; }
.w-20 { width: 20%; }
.w-21 { width: 21%; }
.w-22 { width: 22%; }
.w-23 { width: 23%; }
.w-24 { width: 24%; }
.w-25 { width: 25%; }
.w-26 { width: 26%; }
.w-27 { width: 27%; }
.w-28 { width: 28%; }
.w-29 { width: 29%; }
.w-30 { width: 30%; }
.w-31 { width: 31%; }
.w-32 { width: 32%; }
.w-33 { width: 33%; }
.w-34 { width: 34%; }
.w-35 { width: 35%; }
.w-36 { width: 36%; }
.w-37 { width: 37%; }
.w-38 { width: 38%; }
.w-39 { width: 39%; }
.w-40 { width: 40%; }
.w-41 { width: 41%; }
.w-42 { width: 42%; }
.w-43 { width: 43%; }
.w-44 { width: 44%; }
.w-45 { width: 45%; }
.w-46 { width: 46%; }
.w-47 { width: 47%; }
.w-48 { width: 48%; }
.w-49 { width: 49%; }
.w-50 { width: 50%; }
.w-51 { width: 51%; }
.w-52 { width: 52%; }
.w-53 { width: 53%; }
.w-54 { width: 54%; }
.w-55 { width: 55%; }
.w-56 { width: 56%; }
.w-57 { width: 57%; }
.w-58 { width: 58%; }
.w-59 { width: 59%; }
.w-60 { width: 60%; }
.w-61 { width: 61%; }
.w-62 { width: 62%; }
.w-63 { width: 63%; }
.w-64 { width: 64%; }
.w-65 { width: 65%; }
.w-66 { width: 66%; }
.w-67 { width: 67%; }
.w-68 { width: 68%; }
.w-69 { width: 69%; }
.w-70 { width: 70%; }
.w-71 { width: 71%; }
.w-72 { width: 72%; }
.w-73 { width: 73%; }
.w-74 { width: 74%; }
.w-75 { width: 75%; }
.w-76 { width: 76%; }
.w-77 { width: 77%; }
.w-78 { width: 78%; }
.w-79 { width: 79%; }
.w-80 { width: 80%; }
.w-81 { width: 81%; }
.w-82 { width: 82%; }
.w-83 { width: 83%; }
.w-84 { width: 84%; }
.w-85 { width: 85%; }
.w-86 { width: 86%; }
.w-87 { width: 87%; }
.w-88 { width: 88%; }
.w-89 { width: 89%; }
.w-90 { width: 90%; }
.w-91 { width: 91%; }
.w-92 { width: 92%; }
.w-93 { width: 93%; }
.w-94 { width: 94%; }
.w-95 { width: 95%; }
.w-96 { width: 96%; }
.w-97 { width: 97%; }
.w-98 { width: 98%; }
.w-99 { width: 99%; }
.w-100 { width: 100%; }
