/* RelicensePier: one small stylesheet for the public pages, and the team area. No fonts, no images, nothing from other sites. */
:root {
  --bg: #f6f7f9; --card: #ffffff; --text: #1d2733; --muted: #5b6672; --line: #dfe3e8;
  --accent: #0f766e; --ok: #1a7f4b; --warn: #8a5a00; --err: #b3261e; --radius: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14181d; --card: #1c2229; --text: #e8ecf0; --muted: #9aa5b1; --line: #2d3640; --ok: #5fcf95; --warn: #e0b04a; --err: #ff8a80; --accent: #2dd4bf; }
  /* white text on the light dark-mode accent / red fails contrast: dark text on filled buttons */
  .btn:not(.btn-quiet) { color: #0b1f1d; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent); }
h1 { font-size: 1.7rem; margin: 1rem 0 .4rem; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 0; }
p { margin: .4rem 0 .8rem; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
main a { overflow-wrap: anywhere; }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sep { margin: 0 .5rem; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; padding-bottom: 2rem; }
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: .7rem; padding-bottom: .7rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.top nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.foot { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 1.5rem; color: var(--muted); font-size: .85rem; }
.foot a { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: .8rem 0; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.hero { padding: 2.5rem 0 1rem; }
.hero h1 { font-size: 2.2rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.plan ul { padding-left: 1.1rem; margin: .4rem 0; }
.price { font-size: 1.3rem; font-weight: 700; margin: .2rem 0; }
.doc { max-width: 46rem; padding-top: 1rem; }
.doc h2 { font-size: 1.1rem; }
.empty { color: var(--muted); padding: 1rem 0; }
.code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .8rem; overflow-x: auto; font-size: .85rem; }

.btn, button.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-quiet { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-danger { background: var(--err); }
.linkish { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.inline { display: inline; }
form.stack { display: grid; gap: .7rem; }
label { display: grid; gap: .25rem; font-weight: 600; font-size: .95rem; }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
input[type=text], input[type=email], input[type=search], textarea, select {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; width: 100%;
}
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .8rem 0; }
.toolbar input[type=search] { flex: 1 1 200px; width: auto; }
.toolbar select { width: auto; }
summary { cursor: pointer; font-weight: 600; }
details.card[open] summary { margin-bottom: .6rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.notice { border-radius: 8px; padding: .55rem .8rem; margin: .7rem 0; border: 1px solid var(--line); background: var(--card); }
.notice-error { border-color: var(--err); color: var(--err); }
.notice-ok { border-color: var(--ok); color: var(--ok); }
.notice-warn { border-color: var(--warn); color: var(--warn); }

.tabs { display: flex; gap: 1.2rem; border-bottom: 1px solid var(--line); margin: .6rem 0; }
.tabs a { padding: .4rem 0; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.who { margin: .2rem 0 .6rem; color: var(--muted); }

.post { display: flex; gap: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: .6rem 0; }
.votebox { flex: 0 0 auto; }
.vote { display: inline-flex; flex-direction: column; align-items: center; min-width: 3.2rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); font: inherit; text-decoration: none; cursor: pointer; line-height: 1.2; }
button.vote:hover, a.vote:hover { border-color: var(--accent); }
.vote.voted { background: var(--accent); border-color: var(--accent); color: #fff; }
.count { font-weight: 700; }
.post .main { flex: 1 1 auto; min-width: 0; }
.post h3 a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.post h3 a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: .85rem; margin: .2rem 0 0; }
.plain { white-space: pre-wrap; overflow-wrap: anywhere; }
.comment { border-left: 3px solid var(--line); padding: .2rem .8rem; margin: .8rem 0; }
.comment.official { border-left-color: var(--accent); }
.statusline { margin-bottom: .6rem; }
.boardrow h3 { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); vertical-align: middle; }
.badge-planned { border-color: #7b5cff; color: #7b5cff; }
.badge-under-review { border-color: #b8860b; color: #b8860b; }
.badge-in-progress { border-color: #0a8ea0; color: #0a8ea0; }
.badge-shipped { border-color: var(--ok); color: var(--ok); }
.badge-declined { border-color: var(--muted); color: var(--muted); }
.badge-official { border-color: var(--accent); color: var(--accent); }

.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; align-items: start; }
.column h2 { margin-top: .4rem; }
.road-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; margin: .5rem 0; }
.road-card a { color: var(--text); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.entry h2, .entry h3 { margin-top: 0; }


.team h1 { margin-top: 1.2rem; }
@media (max-width: 520px) { .post { gap: .6rem; padding: .7rem; } .hero h1 { font-size: 1.7rem; } }
.brand img { display: block; height: 30px; width: auto; }

/* Findings (the public scan, the catalogue and the project page). */
.finding h3 { margin-bottom: .3rem; }
.badge { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); }
.badge-onnewterms { color: var(--err); border-color: var(--err); }
.badge-readterms { color: var(--warn); border-color: var(--warn); }
.badge-belowline { color: var(--ok); border-color: var(--ok); }
.badge-kind { color: var(--muted); }
.finding-onnewterms { border-left: 4px solid var(--err); }
.finding-readterms { border-left: 4px solid var(--warn); }
.finding-belowline { border-left: 4px solid var(--ok); }
table.packages { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.packages th, table.packages td { text-align: left; padding: .25rem .5rem; border-bottom: 1px solid var(--line); }
textarea.paste { min-height: 12rem; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.disclaimer { color: var(--muted); font-size: .85rem; }
