/* Workbench-inspired, but readable: blue bar, orange accent, lots of air. */
:root {
  --bg: #f4f5f7; --panel: #ffffff; --text: #1d2330; --muted: #5b6475; --line: #dde1e8;
  --blue: #0055aa; --blue-dark: #003f80; --orange: #ff8800; --ok: #1a7f37; --fail: #b42318;
  --orange-text: #b35500;   /* the orange for text on the light page: 4.6:1, readable */
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11151c; --panel: #1a202a; --text: #e6e9ef; --muted: #9aa3b2; --line: #2a3240;
          --blue: #4d8fdb; --blue-dark: #0b2f57; --ok: #56c271; --fail: #ff7b72; --orange-text: #ff9a2e; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-size: .85em; background: var(--line); padding: 1px 5px; border-radius: 4px; }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 10px 16px;
       background: var(--blue-dark); color: #fff; border-bottom: 3px solid var(--orange); }
.bar a { color: #fff; }
.logo { font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.tick { width: 14px; height: 14px; background: linear-gradient(135deg, #fff 0 45%, var(--orange) 45% 100%); border-radius: 2px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 14px; }
.bar .search { margin-left: auto; flex: 1 1 160px; min-width: 140px; max-width: 320px; }
.bar .search input { width: 100%; padding: 6px 10px; border: 0; border-radius: var(--radius); }

main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px; border-top: 1px solid var(--line); }
h1 { font-size: 1.6rem; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 24px 0 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.count { color: var(--muted); font-weight: 400; font-size: .9em; }
.more { margin-left: auto; font-size: .85rem; font-weight: 400; }
.lead { color: var(--muted); }
.hint { color: var(--muted); font-size: .92rem; }
.empty { color: var(--muted); font-style: italic; list-style: none; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: 1.9rem; }
.hero p { color: var(--muted); }
.big-search { display: flex; align-items: stretch; gap: 8px; max-width: 640px; margin: 16px auto 8px; }
.big-search button { font-size: 1.05rem; padding: 0 18px; }
.big-search.left { max-width: none; margin: 12px 0 14px; }
.big-search input { flex: 1; font-size: 1.1rem; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--radius);
                    background: var(--panel); color: var(--text); }
button, .button { background: var(--orange); color: #111; border: 0; border-radius: var(--radius); padding: 8px 16px;
                  font-weight: 600; cursor: pointer; display: inline-block; }
button:hover, .button:hover { filter: brightness(1.08); text-decoration: none; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

.list { list-style: none; padding: 0; margin: 0; }
.list > li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
             padding: 12px 14px; margin-bottom: 10px; }
.list .title { font-weight: 600; }
.list p { margin: 6px 0 0; font-size: .94rem; }
.meta { color: var(--muted); font-size: .84rem; margin-top: 4px; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.forge { font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 0 7px; }
.score { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--orange); }
.shared { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.archived { opacity: .65; }

.tag { display: inline-block; font-size: .72rem; padding: 0 7px; border-radius: 10px; margin-left: 4px;
       background: var(--line); color: var(--text); }
.tag-aros { background: #e3ecfa; color: #0b3d91; }
.tag-morphos { background: #efe4fa; color: #5b2a91; }
.tag-amigaos4 { background: #fbe7e7; color: #8a1c1c; }
.tag-amigaos3 { background: #fff1db; color: #7a4a00; }
.tag-classic-hw { background: #e2f4ea; color: #1b5e3a; }
.tag-emulation { background: #e6f3f6; color: #185a67; }
.lead-tag { background: var(--orange); color: #111; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters input[name=q] { flex: 1 1 200px; }
input, select, textarea { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius);
                          background: var(--panel); color: var(--text); }
.check { display: grid; gap: 12px; max-width: 720px; margin-bottom: 24px; }
.check label { display: grid; gap: 4px; font-weight: 600; }
.check label input, .check textarea { font-weight: 400; }
.check button { justify-self: start; }

.pager { display: flex; gap: 16px; justify-content: center; margin-top: 16px; color: var(--muted); }
.detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; }

table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
th { color: var(--muted); font-weight: 600; }
td .desc { color: var(--muted); font-size: .84rem; }
td .desc.fail { color: var(--fail); }
.error-text { overflow-wrap: anywhere; }
.cluster { overflow-x: auto; }
.ok { color: var(--ok); } .fail { color: var(--fail); }

.webpage .url, .site .url { font-size: .8rem; color: var(--ok); word-break: break-all; }
.site .url a { color: inherit; }
mark { background: #ffe8a3; color: #111; padding: 0 1px; border-radius: 2px; }
.list.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.list.grid > li { margin: 0; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 4px 0; border-bottom: 1px solid var(--line); }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
td pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe { font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: 12px; }
.subject { font-weight: 400; font-size: .85rem; margin-left: 8px; }
.label-same-thing { background: var(--orange); color: #111; }
.label-mirror, .label-same-author, .label-copy { background: var(--line); color: var(--muted); }
.account { margin-left: auto; font-size: .85rem; color: #fff; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.account a { color: inherit; }
.account a.signin { display: inline-block; padding: 6px 12px; border: 2px solid var(--orange); border-radius: var(--radius);
                    color: #fff; font-weight: 600; text-decoration: none; }
.account a.signin:hover { background: var(--orange); color: #111; }
.lead-tag, .tag { white-space: nowrap; }
.cluster table { table-layout: fixed; }
.cluster col.c-project { width: 56%; } .cluster col.c-match { width: 11%; } .cluster col.c-stars { width: 7%; }
.cluster col.c-push { width: 11%; } .cluster col.c-platforms { width: 15%; }
.cluster td { overflow-wrap: anywhere; }
form.inline { display: inline; }
td.break { word-break: break-all; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.admin { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); }
.actions form { margin-right: 6px; }
.notice { background: var(--panel); border: 1px solid var(--orange); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; }
.label-confirmed\:-same-thing, .label-builds-on-it { background: var(--ok); color: #fff; }
.label-not-the-same\,-says-a-maintainer { background: var(--line); color: var(--muted); text-decoration: line-through; }
.flag-contributors-wanted { background: var(--orange); color: #111; }
.flag-happy-to-merge { background: var(--ok); color: #fff; }
.verdict { list-style: none; margin: -6px 0 12px 12px; font-size: .85rem; color: var(--muted); }
.verdict button { font-size: .8rem; padding: 2px 8px; margin-left: 4px; }
.verdict button.chosen { background: var(--orange); color: #111; border-color: var(--orange); }
.check-inline { display: inline-block; margin: 0 10px; font-weight: 400; }
.doors { margin: 8px 0 24px; }
.door { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.door h2 { margin-top: 0; }
.door .big-search { margin: 12px 0 0; max-width: none; }
.door-check { border-color: var(--orange); }
.callout { background: var(--panel); border-left: 4px solid var(--orange); padding: 8px 14px; border-radius: var(--radius); }
.pin button.link { font-size: .8rem; color: var(--muted); text-decoration: none; }
.pin button.link.on { color: var(--orange); font-weight: 600; }
.digest li { padding: 3px 0; border-bottom: 0; }
nav a.my { font-weight: 600; color: #ff9a2e; }   /* the brand orange, a shade lighter: readable on the blue bar */
.door.one { max-width: 900px; margin: 8px auto 24px; }
.two-ways input { min-width: 0; }
@media (max-width: 600px) { .big-search.two-ways { flex-wrap: wrap; } .big-search.two-ways input { flex: 1 1 100%; } .big-search.two-ways button { flex: 1; padding: 10px 12px; } }
button.alt { background: #fff; color: var(--blue-dark); border: 2px solid var(--orange); }
button.alt:hover { background: var(--orange); color: #111; }
@media (prefers-color-scheme: dark) { button.alt { background: var(--panel); color: var(--text); } }
.langs { position: relative; margin-left: auto; color: #fff; font-size: .85rem; }
.langs summary { cursor: pointer; list-style: none; padding: 6px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs-form { position: absolute; right: 0; top: 36px; z-index: 10; background: var(--panel); color: var(--text); border: 1px solid var(--line);
              border-radius: var(--radius); padding: 12px 14px; min-width: 220px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.langs-form label { display: block; padding: 3px 0; }
.langs-form button { margin-top: 8px; }
.langs + .account { margin-left: 0; }

/* My Amigadex: reading on the left, settings on the right */
.my-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 8px; }
.my-head h1 { margin: 0 0 4px; }
.my-head .windows { color: var(--muted); }
#reading .per-source { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
#reading .reading-links { margin: 0 0 10px; }
#reading .reading-links li { padding: 3px 0; border: 0; }
#reading .account-note { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.per-source { display: inline-flex; align-items: center; gap: 6px; }
.per-source select { padding: 3px 6px; font-size: .9rem; width: auto; }
.windows a.on { color: var(--text); font-weight: 600; }
.unread { color: var(--orange); font-size: .75em; vertical-align: .1em; }
button.small { padding: 4px 10px; font-size: .85rem; }
.my-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 8px; }
@media (max-width: 920px) { .my-grid { grid-template-columns: minmax(0, 1fr); } }
.my-main > section:first-child h2, .my-main > .callout:first-child { margin-top: 8px; }
.my-main h3.day { font-size: .9rem; color: var(--muted); font-weight: 600; margin: 14px 0 2px; }
.topic { border-left: 3px solid var(--orange); padding: 2px 0 2px 12px; margin: 10px 0 18px; }
.topic h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; font-size: 1rem; }
.digest .kind { display: inline-block; min-width: 4.5em; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 14px; margin-bottom: 16px; }
.panel h2 { margin: 0 0 4px; font-size: 1.02rem; }
.panel h3 { margin: 12px 0 6px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.panel .hint { margin: 0 0 10px; }
.mini-form { display: flex; gap: 6px; }
.mini-form input { flex: 1; min-width: 0; }
.mini-form button { padding: 6px 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips form.inline, .chip form.inline { display: inline; }
button.chip, span.chip { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: .84rem; font-weight: 500;
  padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
button.chip:hover { border-color: var(--orange); filter: none; }
.chip.on { background: #fff1de; border-color: var(--orange); }
span.chip { cursor: default; padding-right: 4px; }
.chip button.x { background: none; border: 0; padding: 0 4px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.chip button.x:hover { color: var(--fail); }
h1 form.follow { vertical-align: middle; margin-left: 8px; }
h1 .chip { font-size: .8rem; }
.additions li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.additions .break { word-break: break-all; }
@media (prefers-color-scheme: dark) { .chip.on { background: rgba(255, 136, 0, .16); } }

/* forum threads: the home panel and the discussions list */
.threads { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
@media (max-width: 820px) { .threads { grid-template-columns: minmax(0, 1fr); } }
.threads li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
              display: flex; flex-direction: column; gap: 3px; }
.threads .title { font-weight: 600; }
.excerpt { color: var(--muted); font-size: .9rem; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2;
           -webkit-box-orient: vertical; overflow: hidden; }
.threads .meta { margin-top: 0; }
.forums .hint { margin-top: -4px; }

.callout.closable { display: flex; align-items: flex-start; gap: 12px; }
.callout.closable p { margin: 6px 0; flex: 1; }
.callout.closable button.x { background: none; border: 0; padding: 2px 6px; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.callout.closable button.x:hover { color: var(--text); }
.source-group { margin: 10px 0 14px; scroll-margin-top: 20px; }
.source-group h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 2px; font-size: .95rem; }
.source-group h3 .more { font-size: .8rem; }

.sort-links { color: var(--muted); font-size: .9rem; margin: 4px 0 12px; }
.sort-links strong { color: var(--text); }

/* home: new releases, a few per source */
.release-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px; }
@media (max-width: 980px) { .release-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .release-groups { grid-template-columns: minmax(0, 1fr); } }
.release-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.release-group h3 { margin: 0 0 4px; font-size: .95rem; }
.release-group li { padding: 2px 0; font-size: .9rem; overflow-wrap: anywhere; }

button.star { background: none; border: 0; padding: 0 2px; font-size: 1.05rem; line-height: 1; color: var(--muted); cursor: pointer; }
button.star:hover { color: var(--orange); filter: none; }
button.star.on { color: var(--orange); }

/* Admin usage: uses per day, one series, bars from a shared baseline; hover or focus a bar for its number. */
.usage-days { margin: 12px 0 16px; }
.usage-days .days { display: flex; align-items: flex-end; gap: 2px; height: 96px; border-bottom: 1px solid var(--line); }
.usage-days .day { position: relative; flex: 1; height: max(var(--h), 1px); background: var(--blue);
                   border-radius: 4px 4px 0 0; outline: none; }
.usage-days .day:hover, .usage-days .day:focus-visible { background: var(--blue-dark); box-shadow: 0 0 0 2px var(--blue); }
.usage-days .day .tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
                        white-space: nowrap; background: var(--panel); color: var(--text); border: 1px solid var(--line);
                        border-radius: var(--radius); padding: 2px 8px; font-size: .8rem; z-index: 2; }
.usage-days .day:hover .tip, .usage-days .day:focus-visible .tip { display: block; }
.usage-days .day:first-child .tip { left: 0; transform: none; }
.usage-days .day:last-child .tip { left: auto; right: 0; transform: none; }
.usage-days figcaption { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.usage-area { margin: 8px 0; }
.usage-area summary { cursor: pointer; padding: 6px 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* The privacy note, until it is closed: small, in a corner, never in the way. */
.privacy-note { position: fixed; right: 16px; bottom: 16px; max-width: 380px; z-index: 20; background: var(--panel);
                border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius);
                box-shadow: 0 4px 18px rgba(0, 0, 0, .18); padding: 12px 14px; font-size: .92rem; }
.privacy-note p { margin: 0 0 8px; }
.privacy-note .actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 600px) { .privacy-note { left: 16px; right: 16px; max-width: none; } }
.scroll-x { overflow-x: auto; }
td.fail, td.ok { overflow-wrap: anywhere; }

/* Admin capacity: measures (solid), the trend extended (dashed), the limit (dashed red). */
.capacity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.capacity { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.capacity figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; margin-bottom: 6px; }
.capacity svg { width: 100%; height: auto; display: block; overflow: visible; }
.capacity .grid { stroke: var(--line); stroke-width: 1; }
.capacity .axis { fill: var(--muted); font-size: 13px; }
.capacity .limit { stroke: var(--fail); stroke-width: 1.5; stroke-dasharray: 6 4; }
.capacity .limit-label { fill: var(--fail); font-size: 13px; }
.capacity .trend { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 5 5; opacity: .7; }
.capacity .measured { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.capacity .pt circle { fill: var(--blue); stroke: var(--panel); stroke-width: 2; }
.capacity .pt circle.hit { fill: transparent; stroke: none; }
.capacity .pt:hover circle:not(.hit) { r: 6; }

/* Link to us, embed */
.embed-page .toc { margin: 0 0 8px; }
.embed-page section { margin-top: 28px; }
.snippet { position: relative; }
.snippet pre { white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 76px; margin: 8px 0; }
.snippet .copy { position: absolute; top: 8px; right: 8px; }
.preview { margin: 10px 0; }
.search-demo { display: flex; gap: 8px; max-width: 420px; }
.search-demo input { flex: 1; }
.widget-builder { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; }
.widget-builder label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.widget-builder select, .widget-builder input { width: auto; }
.widget-preview { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.widget-preview iframe { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
@media (max-width: 760px) { .widget-preview { grid-template-columns: 1fr; } }
.readme-badge { margin-top: 16px; }
.readme-badge pre { white-space: pre-wrap; overflow-wrap: anywhere; }
table.links td:first-child { overflow-wrap: anywhere; }
table.links code { background: none; padding: 0; }

/* Contact form and the messages on the admin page */
.contact-form textarea { width: 100%; resize: vertical; }
.contact-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .contact-form .two { grid-template-columns: 1fr; } }
.ok-notice { border-color: var(--ok); }
.message { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; }
.message.new { border-left: 4px solid var(--orange); }
.message.archived { opacity: .65; }
.message-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.message-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #111 !important;
         font-size: .8rem; font-weight: 700; text-align: center; text-decoration: none; }
.message-actions .button { font-size: .85rem; padding: 4px 12px; font-weight: 600; }

a.accent-link { color: var(--orange-text); font-weight: 600; }
