/* Palette and type follow the team's own Daily Clips document. Light only, like the doc. */
:root {
  color-scheme: light;
  --bg: #ffffff; --panel: #ffffff; --fill: #f7f4f2; --ink: #1f1f1f; --muted: #707070; --line: #ece7e3;
  --red: #8a1c24; --link: #1f5c99; --navy: #363a6b; --good: #2e6b45; --bad: #8a1c24;
  --slab: "Roboto Slab", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 Calibri, Carlito, Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--link); }

/* top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 40px 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo { height: 34px; width: auto; padding-right: 14px; border-right: 1px solid #d9dbe6; }
.title { font-family: var(--slab); font-weight: 300; font-size: 19px; color: var(--navy); letter-spacing: .01em; }
.title b { font-weight: 700; }
.pilot { font-weight: 600; font-size: 11px; color: var(--red); border: 1px solid var(--red); border-radius: 3px; padding: 0 5px; margin-left: 6px; vertical-align: 2px; text-transform: uppercase; letter-spacing: .06em; }
.who { font-size: 12.5px; color: var(--muted); }
.who input { margin-left: 8px; width: 150px; border-radius: 99px; padding: 5px 14px; }
.who button.small { margin-left: 8px; padding: 4px 12px; font-size: 12px; }
.signin { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 16px; }
.signin-note { max-width: 420px; text-align: center; font-size: 14px; }
.tabs { display: flex; justify-content: center; gap: 28px; padding: 0 40px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 2px; font: 500 12.5px/1 Roboto, Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); opacity: .7; cursor: pointer; }
.tabs button.on { opacity: 1; color: var(--red); border-bottom-color: var(--red); font-weight: 700; }
.count { background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; margin-left: 3px; font-weight: 600; }
.count:empty { display: none; }

main { max-width: 740px; margin: 0 auto; padding: 44px 32px 90px; }
.tab { display: none; } .tab.on { display: block; }
h1 { font-family: var(--slab); font-size: 30px; line-height: 1.15; margin: 0; font-weight: 300; color: var(--ink); }
h1 b { font-weight: 700; }
h2 { font-size: 13px; margin: 44px 0 12px; color: var(--red); text-transform: uppercase; letter-spacing: .07em; }
h3 { margin: 0; font-size: 14px; }
.rowhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lede { color: var(--muted); margin: 8px 0 28px; }
.muted { color: var(--muted); font-size: 12.5px; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfc7c0; border-radius: 4px; padding: 6px 9px; }
button { font: 500 13px/1.2 Roboto, Arial, sans-serif; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 99px; padding: 8px 18px; cursor: pointer; letter-spacing: .02em; }
button.ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
button:disabled { opacity: .5; cursor: default; }
.ok { color: var(--good); font-size: 12.5px; }

/* masthead, like the doc */
.mast { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 3px solid var(--red); }
.mast-kicker { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; margin-bottom: 6px; }
.mast h1 { font-size: 36px; }
.mast-date { color: var(--muted); font-size: 15px; margin-top: 4px; }
.earlier { color: var(--muted); font-size: 12.5px; }
.earlier select { font-size: 12.5px; padding: 3px 6px; margin-left: 4px; }
.gaps { color: var(--muted); font-size: 13px; margin: 14px 0 8px; }
.gaps b { color: var(--ink); font-weight: 600; }
.gaps .dot { margin: 0 9px; color: #c4bcb6; }

/* sections and items */
.sec { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 52px 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--red); }
.cat { font-family: var(--slab); font-weight: 600; font-size: 15px; color: var(--navy); margin: 28px 0 0; }
.item { padding: 22px 0 24px; border-bottom: 1px solid var(--line); position: relative; }
.item:last-child { border-bottom: 0; }
.item.top { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; align-items: start; }
.num { font-family: var(--slab); font-size: 30px; font-weight: 300; color: var(--red); line-height: 1; padding-top: 1px; }
.hl { font-weight: 700; font-size: 16px; line-height: 1.4; }
.hl a { color: var(--ink); text-decoration: none; } .hl a:hover { color: var(--link); text-decoration: underline; }
.src { color: var(--muted); font-weight: 400; font-size: 14px; }
.tagline { color: var(--red); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 8px; }
.sum { margin: 0 0 8px; }
.why { margin: 0; }
.why b { font-weight: 700; }
.landscape { font-family: var(--slab); font-weight: 300; font-size: 16.5px; line-height: 1.65; margin: 14px 0 0; }
.landscape .src { font-family: Calibri, Carlito, Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 13px; }
.impl { margin: 10px 0 0; color: #3d3d3d; font-size: 14px; }
.impl summary { cursor: pointer; color: var(--navy); font-size: 13px; list-style: none; }
.impl summary::-webkit-details-marker { display: none; }
.impl summary::before { content: "+ "; }
.impl[open] summary::before { content: "− "; }
.impl[open] summary { margin-bottom: 4px; }
.draft { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; margin-left: 4px; text-transform: uppercase; letter-spacing: .05em; }
.hlonly { font-size: 11px; color: var(--muted); margin-left: 4px; }
details.more-stories { margin-top: 52px; }
details.more-stories summary { cursor: pointer; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--red); }
.mini { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini .hl { font-size: 14px; }
.mini .hl { font-weight: 600; }

/* quiet feedback row */
.fb { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 14px; font-size: 12px; color: var(--muted); opacity: .6; transition: opacity .15s; }
.item:hover .fb, .fb:focus-within, .fb:has(.on) { opacity: 1; }
.fb button { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 400; font-size: 12px; text-decoration: underline dotted; text-underline-offset: 3px; }
.fb button:hover { color: var(--link); }
.fb button.on { color: var(--red); font-weight: 700; text-decoration: none; }
.fb .ok { margin-left: 4px; }
.fb .reasons { display: contents; }
.fb input { font-size: 12px; padding: 2px 7px; min-width: 200px; }

.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; }
@media (max-width: 700px) { .boxes { grid-template-columns: 1fr; } }
.box { background: var(--fill); border-radius: 10px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.box h3 { font-family: var(--slab); font-weight: 600; font-size: 16px; color: var(--navy); }
.box .fields { display: flex; gap: 7px; } .box .fields > * { flex: 1; min-width: 0; }
.box button { align-self: flex-start; }

/* ask */
.chat { display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; }
.msg { border-radius: 10px; padding: 10px 16px; max-width: 94%; word-wrap: break-word; }
.msg.q { align-self: flex-end; background: var(--fill); font-weight: 600; }
.msg.a { align-self: flex-start; border-left: 3px solid var(--red); border-radius: 0; padding: 2px 0 2px 14px; }
.msg.a p { margin: 0 0 10px; } .msg.a ul { margin: 6px 0 10px; padding-left: 20px; } .msg.a li { margin-bottom: 8px; }
.cite { font-size: 12px; white-space: nowrap; }
.act { align-self: flex-start; color: var(--muted); font-size: 12.5px; }
.act.err { color: var(--bad); }
.event { align-self: flex-start; font-size: 12.5px; background: var(--fill); border-radius: 4px; padding: 4px 9px; }
.rate { display: flex; gap: 12px; margin-top: 4px; font-size: 12px; align-items: center; }
.rate button { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 400; font-size: 12px; text-decoration: underline dotted; }
.rate button.on { color: var(--red); font-weight: 700; text-decoration: none; }
.rate input { font-size: 12px; padding: 2px 7px; min-width: 220px; }
.askbar { display: flex; gap: 8px; position: sticky; bottom: 12px; background: var(--bg); padding-top: 6px; }
.askbar textarea { flex: 1; resize: vertical; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { background: #fff; color: var(--navy); border: 1px solid #cfd0de; border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 400; cursor: pointer; }
.suggest { gap: 8px !important; margin-bottom: 16px !important; }
.review { background: var(--fill); border-radius: 4px; padding: 12px; }

/* feedback page */
.card { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; }
.card .h { font-weight: 700; }
.prop .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.tag { font-size: 11px; border-radius: 3px; padding: 1px 6px; background: var(--fill); color: var(--muted); }
.tag.team { background: #f3e3e4; color: var(--red); font-weight: 700; }
.prop .what { margin: 4px 0; }
.prop .test { font-size: 12.5px; color: var(--muted); }
.prop .actions { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; align-items: center; }
.prop .actions input { flex: 1; min-width: 160px; }
.prop details { font-size: 12.5px; margin-top: 5px; }
.prop details li { color: var(--muted); }
.reject { background: transparent; color: var(--red); border: 1px solid #cfc7c0; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--red); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--red); }
.sig { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.sig .when { color: var(--muted); min-width: 96px; font-size: 12px; }
.empty { color: var(--muted); font-size: 13px; padding: 4px 0; }
.note { background: var(--fill); border-radius: 4px; padding: 8px 14px; font-size: 13.5px; }
.note ul { margin: 4px 0; padding-left: 18px; } .note li { margin: 3px 0; }
.decided { margin-top: 26px; } .decided summary { cursor: pointer; color: var(--muted); }
.agentver { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* results */
.tiles { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-bottom: 32px; }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--fill); border-radius: 10px; padding: 20px 20px 22px; }
.tile .n { font-family: var(--slab); font-size: 34px; font-weight: 300; color: var(--red); line-height: 1.1; }
.tile .l { font-weight: 600; font-size: 13px; } .tile .muted { margin-top: 2px; }
.proof .bar { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; margin: 6px 0; }
.proof .bar span { height: 10px; background: var(--fill); border: 1px solid var(--line); border-radius: 2px; }
.proof .bar span.done { background: var(--red); border-color: var(--red); }

footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
footer a { color: var(--muted); }
.spinner { display: inline-block; width: 9px; height: 9px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 6px; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }

.askbar button { align-self: flex-end; padding: 10px 24px; }
#scoreboard td:first-child { white-space: nowrap; }

/* connect panel */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; margin: 6px 0 18px; }
.seg button { border: 0; background: none; padding: 6px 16px; border-radius: 99px; cursor: pointer; font: inherit; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }
.addr { margin: 0 0 22px; }
.addr-label { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.addr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.addr-row code { font-size: 15px; padding: 8px 12px; border-radius: 8px; background: rgba(0,0,0,.05); overflow-wrap: anywhere; }
.steps ol { padding-left: 22px; }
.steps li { margin: 6px 0; line-height: 1.5; }
.who-does { font-weight: 500; margin: 14px 0 4px; }
.tries li { margin: 4px 0; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 18px; }
