/* RetroWeb: site-specific rules on top of the Of Pine Wood UI toolkit (/res/opw/css/opw.css, requirements §4).
   The toolkit has the tokens (--pw-*) and the generic components (pw-*); this file only adds what is RetroWeb's own. */

/* Home search: centred, with the rule below the box and tabs */
.finder { padding-bottom: 26px; }
.finder .pw-search { width: min(640px, 100%); margin: 26px auto 0; }
.finder .pw-tabs { justify-content: center; margin: 14px 0 0; }
.finder .pw-tabs a:first-child { padding-left: 14px; }

/* Entry and page details: the photo column, the "Details" tag and the first heading of side notes as a tag */
.details .pw-prose > h2:first-child { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--pw-accent); font: 11px var(--pw-serif); text-transform: uppercase; letter-spacing: 1px; }
.details .pw-prose > h2:first-child::before, .details .pw-prose > h2:first-child::after { content: ""; flex: 1; border-top: 1px solid var(--pw-accent); }
.intro { margin: 18px 0 26px; }
.related { padding-left: 18px; list-style: square; }

/* Downloads: file type column, external marker, "belongs to" filter */
.ext { font-size: 11px; color: var(--pw-muted); }
.ft { display: inline-block; width: 36px; color: var(--pw-accent); font: 10px var(--pw-serif); letter-spacing: 1px; }
.pw-search .belongs { flex-basis: 100%; }
.belongs { margin-top: 6px; font-size: 13px; color: var(--pw-muted); }
.belongs select { font-size: 13px; background: var(--pw-input); border: 1px solid var(--pw-rule); }

/* Search hits: small thumbnail column */
.pw-table td.th { width: 70px; padding-right: 0; }
table.hits td { padding: 10px; }
table.hits b { font: 15px var(--pw-serif); text-transform: uppercase; }
table.hits b.pw-hl { font: inherit; text-transform: none; }
table.hits .pw-img { width: 64px; height: 48px; font-size: 0; }

/* Compare: photos in the header row, ticks in lists */
table.compare th { vertical-align: bottom; color: var(--pw-ink); font: 13px/1.3 var(--pw-serif); letter-spacing: 0; }
table.compare th .pw-img { width: 150px; height: 120px; margin-bottom: 8px; }
input.pick { vertical-align: middle; margin: 0 4px 0 0; }
.compare-go { margin: 16px 0; font-size: 13px; }

/* Error page */
.error-page { text-align: center; padding: 40px 0; }
.error-page h1 { font-size: 110px; }
.error-page p { margin-top: 18px; }
.error-page .pw-search { width: min(640px, 100%); margin: 24px auto 0; }

/* Admin site (FR-35) */
table.status th { width: 14em; text-align: left; }
table.status td.problem { color: var(--pw-accent); }
body.admin main h2 { margin: 32px 0 12px; }
