/* The repo page (pages.RepoFiche; owner, 2026-11-17): the head, then the
   verdict and the curve beside its niche and its history (one column on a
   phone, in that order), then one line on where the figures come from. Upstar's tokens only. Served as a
   file the browser keeps (layout.templ, Meta.LinkCSS), not in the page. */

.f-body { font-size: 15px; line-height: 1.55; text-wrap: pretty; }
/* The site's column (.e-wrap), so the page lines up with the header. */
.f-wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); box-sizing: border-box; }
.f-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.f-body a:focus-visible, .f-body button:focus-visible, .f-body input:focus-visible, .f-body summary:focus-visible,
.f-chart__plot:focus-visible { outline: 2px solid var(--rise); outline-offset: 2px; }

/* Head: the state, the name, GitHub's description quoted, the facts, the
   buttons. */
.f-head { padding: 8px 0 40px; max-width: 820px; }
.f-state {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border-strong);
}
.f-state__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.f-state--rise { color: var(--rise-text); background: var(--rise-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rise) 40%, transparent); }
.f-state--new { color: var(--spot); background: color-mix(in srgb, var(--spot) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--spot) 35%, transparent); }
.f-title {
  margin: 0 0 14px; font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.05;
  font-size: calc(clamp(34px, 5vw, 56px) * var(--display-scale)); letter-spacing: var(--display-tracking); overflow-wrap: anywhere;
}
.f-title__owner { color: var(--muted); font-weight: 400; }
.f-quote { margin: 0; padding: 0; }
.f-quote p { margin: 0; font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
/* A description in another language than the page's: the summary's first
   sentence leads, GitHub's words stay small and folded. */
.f-lead { margin: 0; font-size: 18px; line-height: 1.45; max-width: 68ch; }
.f-orig { margin-top: 8px; font-size: 13px; color: var(--muted); }
.f-orig summary { cursor: pointer; width: fit-content; }
.f-orig .f-quote--orig p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.f-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.f-meta li:first-child { color: var(--text); }
.f-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.f-meta a:hover { color: var(--text); }
/* A real warning only: no license, archived, no commit for over a year. */
.f-warns { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.f-warn { color: var(--warning); }
.f-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.f-buttons .btn { height: auto; min-height: 44px; padding: 0 16px; gap: 8px; }
.f-alert svg { display: block; flex: none; }
.f-fav__star { fill: none; }
.f-fav[aria-pressed="true"] .f-fav__star { fill: currentColor; }
.f-fav__on, .f-fav[aria-pressed="true"] .f-fav__off { display: none; }
.f-fav[aria-pressed="true"] .f-fav__on { display: inline; }
/* "Under review": a repo held for a content sign that no judge read yet,
   right beside its GitHub button, on a computer and in the phone's bar
   (owner, 2026-11-07). */
.f-review { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.f-review svg { display: block; flex: none; }
/* The blocks: one column on a phone; from 1024 px the verdict and the curve
   on the left, its niche and its history on the right (owner, 2026-11-17). */
.f-admin { max-width: 820px; margin-bottom: 40px; }
.f-blocks { display: flex; flex-direction: column; gap: 56px; padding-bottom: 40px; }
.f-col { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.f-col > * { min-width: 0; }
@media (min-width: 1024px) {
  .f-blocks { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .f-col { gap: 48px; }
}

/* Sections */
.f-sec__h {
  margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.2;
  font-size: calc(clamp(22px, 2.4vw, 28px) * var(--display-scale-sm)); letter-spacing: var(--display-tracking-sm);
}
.f-sec__lede { margin: 6px 0 20px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.f-sec__note { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 72ch; }
.f-sec__note a, .f-near__all a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.f-sec__note a:hover { color: var(--text); }

/* Upstar's verdict: a small label, the card, the checks made, the footnote. */
.f-label { margin: 0 0 12px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rise-text); }
.f-verdict__card { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.f-verdict__p { margin: 0; font-size: 17px; line-height: 1.65; max-width: 68ch; }
.f-verdict__p + .f-verdict__p { margin-top: 14px; }
.f-verdict__p strong { font-weight: 600; }
.f-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.f-checks__item { display: inline-flex; align-items: center; gap: 6px; }
.f-checks__tick { display: block; flex: none; color: var(--rise-text); }
.f-verdict__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 16px 0 0; font-size: 14px; }
.f-readme { font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.f-report { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.f-report:hover { color: var(--text); }
/* The README, loaded on demand in place of its link. */
.f-readme-box { flex-basis: 100%; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border); }
.f-readme-box__body { max-height: 70vh; overflow: auto; font-size: 15px; overflow-wrap: anywhere; }
.f-readme-box__body img { max-width: 100%; height: auto; }
.f-readme-box__body pre { overflow-x: auto; padding: 12px; border-radius: 6px; background: var(--hover); }
.f-readme-box__src { margin: 12px 0 0; font-size: 13px; }
.f-readme-box__src a { color: var(--muted); }

/* The curve: two figures, the bars (an SVG the server draws), the values day
   by day. */
.f-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); list-style: none; margin: 0 0 18px; padding: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.f-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px 18px; }
.f-tile + .f-tile { border-left: 1px solid var(--border); }
.f-tile__big { font: 500 clamp(24px, 2.6vw, 32px)/1.15 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.f-tile__label { font-size: 14px; }
.f-tile__sub { font-size: 12px; color: var(--muted); }
.f-chart { display: flex; flex-direction: column; gap: 10px; }
.f-chart__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 12px; color: var(--muted); }
.f-chart__legend > span { display: flex; align-items: center; gap: 6px; }
.f-chart__readout { margin-left: auto; font-size: 13px; color: var(--rise-text); }
.f-swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--border-strong); }
.f-swatch--week { background: var(--rise); }
.f-swatch--pace { width: 14px; height: 0; border-radius: 0; border-top: 1px dashed var(--muted); background: none; }
.f-chart__area { height: 220px; padding: 34px 18px 0; box-sizing: border-box; border-radius: var(--r-card) var(--r-card) 0 0; background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.f-chart__plot { position: relative; height: 100%; border-radius: 2px; background: linear-gradient(var(--border), var(--border)) no-repeat bottom / 100% 1px; }
.f-chart__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.f-bar { fill: var(--border-strong); transition: opacity 150ms; }
.f-bar--week { fill: var(--rise); }
.f-chart__plot.is-hover .f-bar { opacity: .4; }
.f-chart__plot.is-hover .f-bar.is-on { opacity: 1; }
.f-chart__pace { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--muted); pointer-events: none; }
.f-chart__spot { position: absolute; top: -24px; bottom: 0; border-left: 1px solid var(--spot); pointer-events: none; }
.f-chart__spot span { position: absolute; top: 0; left: 6px; display: flex; align-items: center; gap: 4px; font-size: 11px; white-space: nowrap; color: var(--spot); }
.f-chart__spot--right span { left: auto; right: 6px; }
.f-chart__axis { display: flex; justify-content: space-between; margin-top: -10px; padding: 10px 18px 12px; border-radius: 0 0 var(--r-card) var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--border); clip-path: inset(0 -1px -1px -1px); font: 11px/1.4 var(--font-mono); color: var(--muted); }
.f-chart__note { margin-top: 4px; color: var(--text); }
.f-days { margin-top: 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.f-days > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; cursor: pointer; font-weight: 600; list-style: none; }
.f-days > summary::-webkit-details-marker { display: none; }
.f-days > summary::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform 150ms; }
.f-days[open] > summary::before { transform: rotate(45deg); }
.f-days__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.f-days__table th, .f-days__table td { padding: 8px 18px; text-align: left; border-top: 1px solid var(--border); }
.f-days__table th { font-size: 12px; font-weight: 500; color: var(--muted); }
.f-days__table td:last-child, .f-days__table th:last-child { text-align: right; }

/* Tables: the ranks by topic and the neighbours */
.f-tablewrap { overflow-x: auto; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.f-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.f-table th, .f-table td { padding: 14px 18px; text-align: left; vertical-align: top; }
.f-table thead th { padding-block: 12px; font-size: 12px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--text) 3%, transparent); white-space: nowrap; }
.f-table tbody tr + tr > * { border-top: 1px solid var(--border); }
.f-table tbody th { font-weight: 600; }
.f-table tbody th a { color: var(--text); text-decoration: none; }
.f-table tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-ranks__table td { min-width: 120px; }
.f-ranks__k { display: block; font-size: 16px; font-weight: 500; }
.f-ranks__k--top { color: var(--rise-text); }
.f-ranks__sub { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.f-ranks__none { font-size: 13px; color: var(--muted); }
.f-ranks__review { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }

/* Timeline: three entries in view, the rest folded. */
.f-log__more { margin-top: 4px; }
.f-log__more > summary { cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 600; }
.f-log__title a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.f-log__list { list-style: none; margin: 0; padding: 0; }
.f-log__item { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--border); }
.f-log__item:first-child { border-top: 0; padding-top: 4px; }
.f-log__day { font-size: 12px; line-height: 1.9; color: var(--muted); }
.f-log__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.f-log__title { margin: 0; font-weight: 600; }
.f-log__text { margin: 0; font-size: 14px; color: var(--muted); }
.f-chip { display: inline-flex; margin-top: 4px; padding: 2px 8px; border-radius: 6px; font: 11px/1.5 var(--font-mono); color: var(--muted); background: var(--hover); }
.f-chip--award { color: var(--rise-text); background: var(--rise-soft); }
.f-chip--spotting { color: var(--spot); background: color-mix(in srgb, var(--spot) 12%, transparent); }
@media (max-width: 559.98px) {
  .f-log__item { grid-template-columns: minmax(0, 1fr); }
}

/* Neighbours, under the ranks */
.f-near__h { margin: 28px 0 12px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.f-near__all { margin: 12px 0 0; font-size: 14px; }
.f-near__n { text-align: right !important; white-space: nowrap; }
/* "owner/name" breaks after the slash first (<wbr>), inside a word only when
   it must, so the gains column stays in view on a phone (owner, 2026-11-17:
   anefzaoui/misterdownloadmanager pushed it out of RoutineMiku/apkstart's). */
.f-near__name { display: block; font-weight: 600; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
a.f-near__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-near__this { display: block; font-size: 12px; color: var(--muted); }
.f-near__gain { color: var(--rise-text); }
.f-near__me > * { background: var(--rise-soft); }

/* What an agent-skills repo contains (pages.skillPanel, facts), as a card */
.f-skills .skill-panel { padding: 0 18px 18px; border: 0; }
.skill-panel .panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.skill-panel .panel__title { margin: 0; font-size: 16px; font-weight: 600; }
.skill-panel .panel__meta { font-size: 12px; color: var(--muted); }
.skill-panel__readme { display: block; }
.skill-panel__readme + .skill-panel__readme { margin-top: 4px; }
.skill-panel > p { margin: 12px 0 0; font-size: 13px; }
.skill-panel__note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.skill-panel .health-facts > .skill-fact--look { border-left: 3px solid var(--warning); padding-left: 12px; }

/* The alert form (components.FollowRepoForm) */
.follow-form { display: flex; flex-direction: column; gap: 10px; }
.follow-form__choices { margin: 0 0 6px; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.follow-form__legend { margin-bottom: 4px; padding: 0; font-weight: 600; font-size: 14px; }
.follow-form__choice { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; }
.follow-form__choice input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rise-fill); }
.follow-form__what { display: flex; flex-direction: column; }
.follow-form__sub { font-size: 13px; color: var(--muted); }
.follow-form .field-label { font-weight: 600; font-size: 14px; }
.follow-form .input, .follow-form__go { min-height: 48px; }
.follow-form__go { justify-content: center; gap: 8px; }
.follow-form__note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.follow-form__done { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; }
.follow-form__done .icon { color: var(--rise); flex: none; margin-top: 2px; }
.follow-form__repo { font-family: var(--font-mono); font-weight: 600; overflow-wrap: anywhere; }
.f-follow__digest { align-self: flex-start; margin-top: 8px; }
.f-alertpage { max-width: 520px; }

.f-ranks__more { margin-top: 12px; }
/* The best badge in the head, with its copy button (owner, 2026-11-17). */
.f-headbadge { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.f-headbadge__label { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.f-headbadge__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.f-headbadge__img { display: flex; min-width: 0; }
.f-headbadge__text { margin-top: 4px; }
/* "See the N others": the other badges unfold in place. */
.f-headbadge__more { margin-top: 10px; }
.f-headbadge__more > summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.f-headbadge__more[open] > summary { margin-bottom: 4px; }
/* Unfolded, its badges stand in a grid: one a row on a phone, two on a
   tablet and three on a computer, a column a card wide; the awards first, then the
   badges that follow this week's ranking, each group under its label (owner,
   2026-11-17). */
.f-badges__group { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.f-headbadge__more .f-awards__list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 24px; } /* a phone's one column: the whole width, so a day stays on one line beside its button */
.f-headbadge__more .f-awards__line { width: auto; }
@media (min-width: 720px) {
  .f-headbadge__more .f-awards__list { grid-template-columns: repeat(2, minmax(0, 250px)); }
}
@media (min-width: 1024px) {
  .f-headbadge__more .f-awards__list { grid-template-columns: repeat(3, minmax(0, 250px)); }
}

@media (max-width: 719.98px) {
  .f-buttons > .btn { flex: 1 1 auto; justify-content: center; }
  .f-table th, .f-table td { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .f-bar, .f-days > summary::before { transition: none; }
}

/* The README badges (pages.awardList): each with, on one line under it, its
   day and its copy button. */
.f-awards__list { list-style: none; margin: 0; padding: 0; }
.f-awards__item { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 0; border-top: 1px solid var(--border); }
.f-awards__line { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 250px; } /* the copy button ends where the card does */
.f-awards__text { min-width: 0; }
.f-awards__name { margin: 0; font-size: 14px; font-weight: 500; }
.f-awards__note { margin: 0; font-size: 12px; color: var(--muted); } /* the longest day, "Reached on September 30, 2026", fits beside the button in 250 px */
.f-awards__copy { flex: none; }
@media (max-width: 760px) {
  .f-awards__line { width: auto; }
  .f-awards__note { font-size: 14px; }
}
/* A card's preview follows the site's theme: the dark file by default. */
.badge-img { display: block; max-width: 100%; height: auto; }
.badge-pic { display: block; max-width: 100%; }
.badge-img--light { display: none; }
[data-theme="light"] .badge-img--light { display: block; }
[data-theme="light"] .badge-img--dark { display: none; }

/* The page's one line on where its figures come from (owner, 2026-11-17: said
   once, at the bottom, never beside each figure). */
.f-source { margin: 0 0 56px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.5; color: var(--muted); }
.f-source p { margin: 0; }
/* Only when the rankings are late, the warning (app.js keeps it current on
   cached pages). */
.f-source .freshness { margin: 8px 0 0; font-size: 13px; }
.f-source .freshness:not(.freshness--stale) { display: none; }
