/* Hours explained. One bold element (the hours bar); everything else stays quiet. */
:root {
  --ink: #1F2A44;
  --ink-2: #3A4560;
  --muted: #5E6880;
  --line: #DDE1EA;
  --tick: #8A93A8;
  --paper: #F6F7FB;
  --surface: #FFFFFF;
  --track: #E6E9F0;
  --teal: #2F6F62;
  --teal-soft: #E3F0EC;
  --gold: #E0A526;
  --gold-2: #EDBE55;
  --gold-soft: #FBF1DA;
  --red: #C8443A;
  --red-soft: #F8E3E1;
  --radius: 10px;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; margin-top: 1.6rem; }
p { margin: 0.6rem 0 0; }
.muted { color: var(--muted); font-size: 0.94rem; }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1120px; margin: 0 auto; padding: 1.1rem 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.mark { width: 30px; height: 12px; border-radius: 3px; background:
  linear-gradient(90deg, var(--teal) 0 40%, var(--paper) 40% 46%, var(--gold) 46% 72%, var(--paper) 72% 77%, var(--gold-2) 77% 100%); position: relative; }
.mark::after { content: ""; position: absolute; left: 52%; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 1px; }
.who { display: flex; align-items: center; gap: 0.9rem; font-size: 0.92rem; color: var(--muted); margin: 0; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

main { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.5rem 5rem; }
main.wide { max-width: 1120px; }

/* forms */
label { display: block; font-weight: 600; font-size: 0.95rem; margin: 1.1rem 0 0.4rem; }
label.check { display: flex; gap: 0.55rem; align-items: center; font-weight: 500; }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 0.8rem 0.95rem;
}
input:focus, select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
input[type=file] { font: inherit; font-size: 0.95rem; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--teal); }
button[type=submit]:not(.link) {
  font: inherit; font-weight: 700; color: #fff; background: var(--ink);
  border: 0; border-radius: 8px; padding: 0.85rem 1.3rem; cursor: pointer; margin-top: 1.2rem; white-space: nowrap;
}
button[type=submit]:not(.link):hover { background: var(--ink-2); }
button[disabled] { opacity: 0.7; cursor: progress; }
.field { display: flex; gap: 0.6rem; }
.field input { font-size: 1.02rem; padding: 1rem 1.05rem; }
.field button { margin-top: 0; }
.error { background: var(--red-soft); color: #7E241C; border-radius: 8px; padding: 0.75rem 1rem; margin-top: 1.2rem; }

/* sign in + home */
.login { max-width: 430px; padding-top: 3rem; }
.login h1 { font-size: 2.4rem; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; margin-top: 0.9rem; }
.login .muted { margin-top: 1.4rem; }
.hero { padding-top: 2.2rem; }
.tabs { display: flex; gap: 1.6rem; margin: 2.2rem 0 0.4rem; border-bottom: 1.5px solid var(--line); }
.tabs a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 0.55rem 0; margin-bottom: -1.5px; border-bottom: 2.5px solid transparent; }
.tabs a[aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }
.ask label:first-of-type { margin-top: 1.4rem; }
.ask .muted { margin-top: 1rem; }

/* task */
.crumbs { margin: 0 0 0.9rem; font-size: 0.92rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; color: var(--muted); font-size: 0.95rem; margin-top: 0.7rem; }
.verdict { font-size: 1.32rem; font-weight: 600; line-height: 1.35; margin-top: 1.8rem; display: flex; gap: 0.75rem; }
.verdict::before { content: ""; flex: none; width: 0.8rem; height: 0.8rem; border-radius: 3px; margin-top: 0.42rem; background: var(--tick); }
.v-within .verdict::before { background: var(--teal); }
.v-reopen .verdict::before { background: var(--gold); }
.v-over .verdict::before { background: var(--red); }
.report { color: var(--ink-2); margin-top: 0.8rem; }

/* the hours bar */
.bar { position: relative; margin: 2.6rem 0 0; }
.track { display: flex; gap: 3px; height: 58px; background: var(--track); border-radius: 7px; overflow: hidden; }
.seg { display: block; height: 100%; min-width: 3px; }
.seg-orig { background: var(--teal); }
.seg-over { background: repeating-linear-gradient(135deg, var(--red) 0 7px, #B23A31 7px 14px); }
.seg-reopen { background: var(--gold); }
.seg-reopen:nth-child(even) { background: var(--gold-2); }
.et { position: absolute; top: -12px; bottom: -12px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.et-label { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.bar-sm { margin: 0; }
.bar-sm .track { height: 12px; gap: 2px; border-radius: 3px; }
.bar-sm .et { top: -4px; bottom: -4px; width: 2px; margin-left: -1px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; padding: 0; margin: 1.1rem 0 0; font-size: 0.93rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 0.45rem; }
.sw { width: 0.85rem; height: 0.85rem; border-radius: 3px; }
.sw-orig { background: var(--teal); }
.sw-over { background: var(--red); }
.sw-reopen { background: var(--gold); }

.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 2rem 0 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { display: flex; gap: 0.45rem; align-items: baseline; }
.facts dt { color: var(--muted); font-size: 0.93rem; }
.facts dd { margin: 0; font-weight: 700; }

section { margin-top: 2.8rem; }
.reasons { padding-left: 1.3rem; margin: 0.9rem 0 0; }
.reasons li { margin: 0.55rem 0; padding-left: 0.2rem; }
.reasons li::marker { color: var(--tick); font-weight: 700; }

/* rounds: a real sequence, so numbered */
.rounds { list-style: none; padding: 0; margin: 1.2rem 0 0; position: relative; }
.rounds::before { content: ""; position: absolute; left: 1.05rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--line); }
.round { position: relative; padding: 0 0 1.5rem 3rem; }
.round-head { display: flex; align-items: baseline; gap: 0.7rem; }
.round-head h3 { margin: 0; font-size: 1.05rem; }
.round-head .hrs { margin-left: auto; font-weight: 700; }
.rn { position: absolute; left: 0; top: -0.1rem; width: 2.2rem; text-align: center; font-size: 0.8rem; font-weight: 800; padding: 0.2rem 0; border-radius: 6px; background: var(--surface); border: 1.5px solid var(--line); }
.round-orig .rn { background: var(--teal); border-color: var(--teal); color: #fff; }
.round-reopen .rn { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.round .muted { margin-top: 0.2rem; }
blockquote { margin: 0.7rem 0 0; padding: 0.55rem 0 0.55rem 0.95rem; border-left: 3px solid var(--line); }
blockquote p { margin: 0; color: var(--ink-2); }
blockquote footer { font-size: 0.86rem; color: var(--muted); margin-top: 0.25rem; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.05rem 0.45rem; border-radius: 99px; background: var(--track); color: var(--ink-2); margin-left: 0.35rem; }

.people { border-collapse: collapse; margin-top: 0.9rem; font-size: 0.95rem; }
.people th, .people td { padding: 0.4rem 1.4rem 0.4rem 0; text-align: right; }
.people th[scope=row], .people thead th:first-child { text-align: left; font-weight: 600; }
.people thead th { color: var(--muted); font-weight: 500; }
.people .tot { font-weight: 700; }
.brief p { color: var(--ink-2); overflow-wrap: anywhere; }

/* AI reading: the only boxed surface on the page */
.ai { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin-top: 2.2rem; }
.ai-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ai.v-within .ai-head h2 { color: var(--teal); }
.ai.v-reopen .ai-head h2 { color: #8A5D00; }
.ai.v-over .ai-head h2 { color: var(--red); }
.conf { font-size: 0.86rem; color: var(--muted); }
.ai-sum { font-size: 1.08rem; margin-top: 0.8rem; }
.ai-verdict { color: var(--ink-2); }
.causes, .factors, .points { padding-left: 0; list-style: none; margin: 0.6rem 0 0; }
.cause { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.cause-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.cause .rn { position: static; width: auto; padding: 0.1rem 0.45rem; }
.cause p { margin-top: 0.3rem; color: var(--ink-2); }
.tag-against { background: var(--red-soft); color: #7E241C; }
.ev { list-style: none; padding: 0; margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--muted); }
.ev li { margin: 0.2rem 0; }
.ev q { color: var(--ink-2); }
.cid { font-size: 0.78rem; color: var(--tick); }
.factors li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.2rem 1rem; padding: 0.65rem 0; border-top: 1px solid var(--line); }
.factors li p { margin: 0; color: var(--ink-2); }
.dir { font-size: 0.86rem; font-weight: 700; color: var(--muted); padding-top: 0.15rem; }
.f-against_developer .dir { color: var(--red); }
.f-outside_developer_control .dir { color: var(--teal); }
.points li { position: relative; padding: 0.35rem 0 0.35rem 1.2rem; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.85rem; width: 0.5rem; height: 2px; background: var(--ink); }
.fine { font-size: 0.83rem; color: var(--muted); margin-top: 1.4rem; }
.ai-off h2 { font-size: 1.05rem; }
.ai-loading h2 { font-size: 1.05rem; }
.shimmer { display: grid; gap: 0.55rem; margin-top: 1.1rem; }
.shimmer span { height: 0.8rem; border-radius: 4px; background: linear-gradient(90deg, var(--track) 0%, #F2F4F8 50%, var(--track) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.shimmer span:nth-child(2) { width: 82%; }
.shimmer span:nth-child(3) { width: 64%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* monthly review */
.review h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); }
.sum { font-size: 1.12rem; max-width: 46em; margin-top: 1.2rem; }
.c-within { color: var(--teal); } .c-reopen { color: #8A5D00; } .c-over { color: var(--red); }
.progress { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; margin-top: 1.4rem; }
.progress span { display: block; height: 100%; background: var(--teal); transition: width 0.4s ease; }
.tablewrap { overflow-x: auto; margin-top: 1.6rem; }
.rows { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.rows thead th { position: sticky; top: 0; background: var(--paper); text-align: left; font-weight: 600; color: var(--muted); padding: 0.6rem 0.8rem; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.rows td { padding: 0.85rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.rows .num, .rows th.num { text-align: right; white-space: nowrap; }
.rows .n { color: var(--tick); }
.rows .t a { font-weight: 600; color: var(--ink); text-decoration: none; }
.rows .t a:hover { text-decoration: underline; }
.rows .t .muted, .rows td > .muted { display: block; font-size: 0.85rem; margin-top: 0.15rem; }
.rows .b { min-width: 260px; }
.fair { display: block; margin-top: 0.45rem; font-weight: 600; }
.v-within .fair { color: var(--teal); } .v-reopen .fair { color: #8A5D00; } .v-over .fair { color: var(--red); }
.ai-line { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 0.25rem; }
.pill { display: inline-block; white-space: nowrap; font-size: 0.8rem; font-weight: 700; padding: 0.1rem 0.55rem; border-radius: 99px; background: var(--track); }
.p-over { background: var(--red-soft); color: #7E241C; }
.p-slightly { background: var(--gold-soft); color: #6B4800; }
.p-within { background: var(--teal-soft); color: var(--teal); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .field { flex-direction: column; }
  .field button { width: 100%; }
  .who span { display: none; }
  .round { padding-left: 2.7rem; }
  .ai { padding: 1.2rem; }
  .factors li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .shimmer span { animation: none; }
  .progress span { transition: none; }
}
.example { margin: 3rem 0 0; padding: 2rem 0 0; border-top: 1px solid var(--line); }
.example .bar { margin-top: 1.6rem; }
.example .track { height: 40px; }
.example figcaption { margin-top: 0.8rem; }

/* figures line up only where numbers are compared */
.people td, .rows td.num { font-variant-numeric: tabular-nums; }
