/* Garbiarnia archive – modern layout, palette and motifs from the original site
   (Mystique "garbiarnia" child theme + phpBB "Aeolus"). No JavaScript anywhere. */

:root {
  /* palette from the old site */
  --bg: #6e0000;          /* deeper than old #800000 so panels stand out */
  --surface: #8a0000;
  --surface-2: #990000;   /* old #main / forum rows */
  --brick: #b92900;       /* old nav + footer rgb(185,41,0) */
  --brick-hi: #cc3300;    /* old forum headers / row hover */
  --deep: #3a0000;
  --line: rgba(0, 0, 0, .28);
  --line-soft: rgba(255, 220, 180, .12);
  --text: #f3e2bb;        /* old body text */
  --cream: #f3e6ca;       /* old forum links */
  --link: #edbb7e;        /* old WP links */
  --link-hover: #f3d79a;
  --muted: #e6c0a6;      /* ≥ 4.5:1 on every red surface (WCAG AA) */
  --white: #fff8ef;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .25);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;   /* echoes the "Garbiarnia³" wordmark */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) url(img/rust.svg) 0 0 / 1400px repeat; color: var(--text); font: 16px/1.65 var(--font); }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { overflow-wrap: anywhere; font-family: var(--font-head); font-weight: normal; line-height: 1.2; color: var(--white); margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.35rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted); }

/* ---------- header: full-width photo with the Garbiarnia⁴ wordmark bottom-left ----------
   The photos carry the old "Garbiarnia³" lettering (usually bottom-left). The photo is zoomed ×1.4
   towards the opposite side, which pushes that corner out of the frame on every banner. */
.banner { position: relative; display: block; max-width: var(--wrap); margin: 0 auto; aspect-ratio: 960 / 200;
  overflow: hidden; background: var(--deep); color: var(--white); }
.banner:hover { text-decoration: none; color: var(--white); }
.banner .photo { position: absolute; inset: 0; }
.banner .photo img { display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.4); transform-origin: right center; }
.banner .photo.text-right img { transform-origin: left center; }
.banner .wordmark { position: absolute; left: clamp(1.2rem, 4vw, 3rem); bottom: 1.1rem; z-index: 1;
  font: clamp(1.5rem, 3.6vw, 2.6rem)/1 var(--font-head);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 2px 12px rgba(0, 0, 0, .75); }
.banner .wordmark sup { font-size: .5em; color: var(--link-hover); margin-left: .05em; }
.banner .wordmark small { display: block; font-size: .42em; color: var(--white); margin-top: .35rem; letter-spacing: .03em; }
.banner .section-name { position: absolute; right: clamp(1.2rem, 4vw, 3rem); bottom: 1.1rem; z-index: 1;
  font: 1.1rem var(--font-head); color: var(--white); text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 2px 10px rgba(0, 0, 0, .7); }
.nav-bar { max-width: var(--wrap); margin: 0 auto; background: var(--brick); box-shadow: 0 3px 0 #880000; position: sticky; top: 0; z-index: 10; }
.nav { display: flex; flex-wrap: wrap; max-width: var(--wrap); margin: 0 auto; }
.nav a { padding: .75rem 1.1rem; color: var(--link); font-weight: 600; text-shadow: 0 1px 1px rgba(100, 0, 0, .8); }
.nav a:hover { background: var(--brick-hi); color: var(--link-hover); text-decoration: none; }
.nav a[aria-current="page"] { background: #191919; color: var(--white); }

main { padding: 2rem 0 3rem; }

.notice {
  display: flex; gap: .8rem; align-items: baseline; background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line-soft); border-left: 4px solid var(--brick-hi);
  border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 1.5rem; font-size: .93rem;
}
.notice strong { color: var(--white); }

/* ---------- tab heading: the Mystique block-title motif ---------- */
.tab {
  position: relative; display: inline-block; margin: 0 0 1.3rem;
  background: var(--brick); color: var(--white); padding: .4rem 1rem;
  font: 600 .85rem var(--font); letter-spacing: .08em; text-transform: uppercase;
  border-radius: 6px; box-shadow: 0 2px 0 #640000;
}
.tab::after { content: ""; position: absolute; right: 1.2rem; bottom: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--brick); }

/* ---------- breadcrumbs & pagination ---------- */
.crumbs { font-size: .88rem; margin-bottom: 1rem; color: var(--muted); }
.crumbs a { color: var(--cream); }
.crumbs .sep { margin: 0 .4rem; color: var(--brick-hi); }
.pages { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.2rem 0; font-size: .88rem; }
.pages a, .pages span { min-width: 2.2rem; text-align: center; padding: .3rem .65rem; background: rgba(0, 0, 0, .3); color: var(--cream); border-radius: 6px; }
.pages .current { background: var(--brick-hi); color: var(--white); }
.pages a:hover { background: var(--brick); text-decoration: none; }

/* ---------- list of forums / topics ---------- */
.group { margin-bottom: 2.2rem; }
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 6rem 6rem 12rem; gap: 1rem; align-items: center; padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row:hover { background: var(--surface-2); }
.rows.head .row, .row.head { background: rgba(0, 0, 0, .25); padding: .45rem 1.1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.row .title { color: var(--cream); font-weight: 600; font-size: 1.02rem; }
.row .desc { display: block; font-size: .88rem; color: var(--text); opacity: .9; }
.row .sub { display: block; font-size: .78rem; color: var(--muted); }
.row .num { text-align: center; font-variant-numeric: tabular-nums; }
.row .num b { display: block; color: var(--white); font-weight: 600; }
.row .num small, .row .last small { color: var(--muted); font-size: .75rem; }
.row .last { font-size: .82rem; line-height: 1.35; }
.chip { display: inline-block; font-size: .7rem; padding: .05rem .5rem; border-radius: 999px; background: #191919; color: var(--link-hover); vertical-align: 2px; margin-right: .3rem; }

/* ---------- posts ---------- */
.post { display: grid; grid-template-columns: 12rem minmax(0, 1fr); background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.post-author { padding: 1rem; background: rgba(0, 0, 0, .18); border-right: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.post-author .who { display: block; color: var(--cream); font-weight: 700; font-size: 1rem; }
.post-author .rank { display: block; color: var(--text); margin-bottom: .6rem; }
.post-author img.avatar { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 50%; margin: .2rem 0 .6rem; border: 2px solid var(--brick-hi); }
.post-body { padding: .8rem 1.3rem 1.2rem; min-width: 0; }
.post-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: .8rem; }
.post-head a { color: var(--muted); }
.post-text { overflow-wrap: anywhere; }
.post-text img { max-height: 900px; border-radius: 4px; }
.post-text img.smiley { vertical-align: middle; border-radius: 0; }
.post-sig { margin-top: 1.2rem; padding-top: .6rem; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); }

blockquote { margin: .7rem 0; padding: .6rem .9rem; background: rgba(0, 0, 0, .22); border-left: 3px solid var(--brick-hi); border-radius: 0 8px 8px 0; font-size: .95em; }
blockquote cite { display: block; font-style: normal; font-weight: 700; color: var(--link-hover); font-size: .82em; margin-bottom: .2rem; }
pre, code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: rgba(0, 0, 0, .4); padding: .7rem .9rem; overflow-x: auto; border-radius: 8px; }

/* ---------- articles ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 2.5rem; }
.side-menu { list-style: none; margin: 0 0 2rem; padding: 0; border-radius: var(--radius); overflow: hidden; }
.side-menu a { display: flex; justify-content: space-between; padding: .55rem .9rem; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--link); }
.side-menu a:hover { background: var(--brick); text-decoration: none; }
.side-menu small { color: var(--muted); }
.teaser { display: grid; grid-template-columns: 13rem 1fr; gap: 1.4rem; background: var(--surface); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.teaser .thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #fff; }
.teaser h2 { margin: 0 0 .4rem; }
.teaser h2 a { color: var(--link); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.meta .date { background: var(--deep); color: var(--white); font-weight: 600; font-size: .75rem; padding: .2rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.meta a { color: var(--cream); text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.tags a { background: #191919; color: var(--white); padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; }
.tags a:hover { background: var(--brick-hi); text-decoration: none; }
.article { background: var(--surface); border-radius: var(--radius); padding: 1.5rem 2rem; box-shadow: var(--shadow); }
.article .content img { border-radius: 6px; }
.comment { background: rgba(0, 0, 0, .18); border-left: 3px solid var(--brick-hi); border-radius: 0 8px 8px 0; padding: .7rem 1rem; margin-bottom: .8rem; }
.comment .by { font-size: .8rem; color: var(--muted); }

/* ---------- home ---------- */
.hero p { font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .15s ease; }
.card img { display: block; width: 100%; aspect-ratio: 572 / 200; object-fit: cover; object-position: right center; }
.card div { padding: 1rem 1.2rem 1.2rem; flex: 1; border-top: 4px solid var(--brick); }
.card h2 { margin: 0 0 .3rem; }
.card p { margin: 0; font-size: .92rem; }
.card:hover { transform: translateY(-3px); text-decoration: none; color: var(--text); }
.card:hover div { border-top-color: var(--link-hover); }
.stats { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1.5rem 0; }
.stats div { font-size: .85rem; color: var(--muted); }
.stats b { display: block; font: 1.7rem var(--font-head); color: var(--white); }
.cta { background: var(--brick); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); }
.cta h2 { margin-bottom: .3rem; }
.cta a { color: var(--white); text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--muted); font-size: .82rem; padding: 1.5rem 0; border-top: 3px solid var(--brick); }
.site-footer a { color: var(--cream); }

/* ---------- small screens ---------- */
@media (max-width: 800px) {
  .banner { aspect-ratio: 960 / 260; }
  .banner .wordmark { left: 1.2rem; bottom: .7rem; font-size: 1.5rem; }
  .banner .wordmark small { font-size: .55em; }
  .banner .section-name { display: none; }
  main { padding-top: 1.2rem; }
  .nav { overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; padding: .65rem .9rem; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .teaser { grid-template-columns: 6rem 1fr; gap: 1rem; }
  .article { padding: 1.1rem; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post-author { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .8rem; padding: .6rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-author img.avatar { width: 40px; height: 40px; margin: 0; }
  .post-author .rank, .post-author .extra { margin: 0; }
  .post-body { padding: .7rem 1rem 1rem; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; }
  .rows.head, .row.head { display: none; }
  .row .num { text-align: right; font-size: .8rem; }
  .row .num b { display: inline; }
  .row .num.posts, .row .last { grid-column: 1 / -1; text-align: left; color: var(--muted); }
  .row .num.posts { display: none; }
}



/* ---------- veterans ---------- */
.veterans { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .6rem; }
.veterans li { background: var(--surface); border-radius: 8px; padding: .6rem .8rem; border-top: 3px solid var(--brick); }
.veterans b { display: block; color: var(--cream); }
.veterans small { color: var(--muted); }
.post-author .car { color: var(--link-hover); }

.post-text, .post-sig { min-width: 0; }
.post-text img:not(.smiley) { display: block; margin: .4rem 0; }
@media (max-width: 800px) {
}

/* ---------- article content ---------- */
.article .content { overflow-wrap: anywhere; }
.article .content img { max-width: 100%; height: auto; }
.article .content h1, .article .content h2, .article .content h3 { margin-top: 1.4em; }
.alignleft { float: left; margin: .3rem 1.2rem .8rem 0; max-width: 50%; }
.alignright { float: right; margin: .3rem 0 .8rem 1.2rem; max-width: 50%; }
.aligncenter { display: block; margin: .8rem auto; }
.article .content::after { content: ""; display: block; clear: both; }
figure.wp-caption { margin: 1rem 0; }
figure.wp-caption.aligncenter { text-align: center; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.article table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .92rem; }
.article td, .article th { border: 1px solid var(--line); padding: .35rem .6rem; }
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: .5rem; margin: 1.2rem 0; clear: both; }
.gallery.cols-1 { --cols: 1; } .gallery.cols-2 { --cols: 2; } .gallery.cols-3 { --cols: 3; }
.gallery.cols-4 { --cols: 4; } .gallery.cols-5 { --cols: 5; } .gallery.cols-6 { --cols: 6; }
.gallery a { display: block; border-radius: 6px; overflow: hidden; background: var(--deep); }
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .2s ease; }
.gallery a:hover img { transform: scale(1.04); }
.video { display: block; max-width: 480px; margin: 1rem auto; text-align: center; }
.video img { display: block; width: 100%; border-radius: 8px; }
.video a + a { display: inline-block; margin-top: .4rem; font-weight: 600; }
.event-facts { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; background: rgba(0, 0, 0, .2); border-radius: 8px; padding: .8rem 1rem; }
.event-facts dt { color: var(--muted); }
.event-facts dd { margin: 0; color: var(--white); }
.side-menu.events span { flex: 1; }
.prev-next { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.prev-next a { max-width: 48%; }
.prev-next a small { display: block; color: var(--muted); }
.prev-next .next { text-align: right; margin-left: auto; }
.no-thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; background: var(--deep); font: 2rem var(--font-head); color: var(--brick-hi); }
.tags.cloud { margin-bottom: 2rem; }
.sidebar .tab { margin-top: .2rem; }
@media (max-width: 800px) {
  .gallery { --cols: 3 !important; }
  .alignleft, .alignright { float: none; margin: .8rem 0; max-width: 100%; }
  .prev-next { flex-direction: column; } .prev-next a { max-width: 100%; }
}

/* ---------- migrated articles from the first club site ---------- */
.origin { display: inline-block; font-size: .8rem; color: var(--muted); border: 1px dashed var(--line-soft); border-radius: 999px; padding: .1rem .7rem; }
.photo-missing { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .3rem;
  width: 240px; max-width: 100%; min-height: 160px; padding: .8rem; text-align: center;
  border: 2px dashed rgba(243, 226, 187, .35); border-radius: 6px; background: rgba(0, 0, 0, .18);
  color: var(--muted); font-size: .85rem; }
.photo-missing::before { content: "📷"; font-size: 1.6rem; opacity: .6; }
.photo-missing small { font-size: .75rem; opacity: .85; }
.photo-missing.aligncenter { margin: 1rem auto; }
.note { font-size: .85rem; color: var(--muted); font-style: italic; border-top: 1px solid var(--line); padding-top: .6rem; margin-top: 1.5rem; }

/* ---------- forum: topic lists, polls, veterans with avatars ---------- */
.rows.topics .row { grid-template-columns: minmax(0, 1fr) 6rem 6rem 12rem; }
.row.pinned { background: rgba(0, 0, 0, .14); }
.row .sub a { color: var(--muted); text-decoration: underline; }
.post-author .who.gone { color: var(--muted); font-style: italic; }
.poll { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.poll h2 { font-size: 1.15rem; }
.poll-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6rem, 40%) 5.5rem; gap: .8rem; align-items: center; margin: .35rem 0; font-size: .92rem; }
.poll-bar { height: .7rem; background: rgba(0, 0, 0, .3); border-radius: 999px; overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brick), var(--link-hover)); border-radius: 999px; }
.poll-num { text-align: right; font-variant-numeric: tabular-nums; }
.veterans li { display: flex; align-items: center; gap: .7rem; }
.vet-avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brick-hi); background: var(--deep); }
.vet-avatar.initials { display: grid; place-items: center; font: 1.2rem var(--font-head); color: var(--link-hover); }
.vet-text { min-width: 0; }
.vet-text b { display: block; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 800px) {
  .rows.topics .row { grid-template-columns: minmax(0, 1fr) auto; }
  .poll-row { grid-template-columns: minmax(0, 1fr) 4.5rem; }
  .poll-bar { grid-column: 1 / -1; grid-row: 2; }
}
/* lost images inside forum posts: a compact chip, not a big box (there are tens of thousands) */
.photo-missing.small { display: inline-flex; flex-direction: row; gap: .35rem; width: auto; min-height: 0; margin: .15rem .3rem .15rem 0;
  padding: .15rem .6rem; border-width: 1px; border-radius: 999px; font-size: .78rem; vertical-align: middle; }
.photo-missing.small::before { font-size: .9rem; }

/* ---------- rust only in the margins: the text column gets clean paint ---------- */
main {
  background: linear-gradient(90deg,
    transparent 0,
    var(--bg) max(0px, calc(50% - var(--wrap) / 2 - 2rem)),
    var(--bg) min(100%, calc(50% + var(--wrap) / 2 + 2rem)),
    transparent 100%);
}

/* ---------- readability: comfortable line length, clearer quotes and signatures ---------- */
.post-text, .article .content, .comment { max-width: 72ch; }
.post-text { font-size: 1.02rem; }
blockquote { background: rgba(0, 0, 0, .28); border-left-width: 4px; padding: .7rem 1rem; }
blockquote blockquote { background: rgba(0, 0, 0, .18); }
blockquote cite::before { content: "❝ "; color: var(--brick-hi); }
.post-sig { max-width: 72ch; opacity: .85; }
.post-sig img { max-height: 120px; width: auto; }
.post-head { color: var(--muted); }

/* ---------- home: popular / recent lists ---------- */
.home-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.5rem; margin: 1rem 0 2.5rem; }
.home-lists section { background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; box-shadow: var(--shadow); }
.home-lists ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.home-lists li { display: flex; gap: .7rem; align-items: baseline; padding: .45rem 0; border-top: 1px solid var(--line); counter-increment: n; }
.home-lists li:first-child { border-top: 0; }
.home-lists li::before { content: counter(n); flex: 0 0 1.4rem; font: 1.05rem var(--font-head); color: var(--brick-hi); text-align: right; }
.home-lists a { color: var(--cream); font-weight: 600; }
.home-lists small { display: block; color: var(--muted); font-size: .78rem; font-weight: normal; }

/* ---------- search ---------- */
.nav-search { margin-left: auto; display: flex; align-items: center; padding: 0 .6rem; }
.nav-search input { width: 17rem; max-width: 45vw; padding: .35rem .7rem; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, .3); color: var(--white); font: inherit; font-size: .9rem; }
.nav-search input::placeholder { color: var(--muted); }
.nav-search input:focus { outline: 2px solid var(--link-hover); background: rgba(0, 0, 0, .45); }
.search-form { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.search-form input, .search-form select, .search-form button { font: inherit; border-radius: 8px; border: 1px solid var(--line-soft); }
.search-form input { flex: 1 1 18rem; padding: .7rem 1rem; background: var(--deep); color: var(--white); font-size: 1.1rem; }
.search-form select { flex: 0 1 16rem; padding: .6rem .8rem; background: var(--deep); color: var(--text); }
.search-form button, .search-more { padding: .6rem 1.4rem; background: var(--brick); color: var(--white); border: 0; font-weight: 600; cursor: pointer; border-radius: 8px; font: inherit; }
.search-form button:hover, .search-more:hover { background: var(--brick-hi); }
.search-status { color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 0; max-width: 60rem; }
.search-results .result { background: var(--surface); border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: .8rem; box-shadow: var(--shadow); }
.search-results .result-title { display: block; font: 1.15rem var(--font-head); color: var(--link); margin: .2rem 0 .3rem; }
.search-results .result-excerpt { margin: 0; font-size: .93rem; }
.search-results mark { background: var(--brick-hi); color: var(--white); padding: 0 .15em; border-radius: 3px; }
@media (max-width: 800px) {
  .nav-search { margin-left: 0; width: 100%; padding: .4rem .8rem .6rem; }
  .nav-search input { width: 100%; max-width: none; }
  .nav { flex-wrap: wrap; }
}
.search-box .pagefind-ui__drawer { gap: 2rem; }
.search-box .pagefind-ui__filter-panel { border: 0; padding: 0; }
.search-box .pagefind-ui__filter-block { border-bottom: 1px solid var(--line-soft); }
.search-box .pagefind-ui__filter-name { color: var(--white); }
.search-box .pagefind-ui__filter-label { color: var(--text); }
.search-box .pagefind-ui__search-clear { background: transparent; color: var(--muted); border: 0; font-size: .85rem; }
.search-box .pagefind-ui__search-clear:hover { color: var(--white); }
.search-box .pagefind-ui__message { color: var(--muted); }
.search-box .pagefind-ui__button { background: var(--brick); color: var(--white); border: 0; }
.search-box .pagefind-ui__button:hover { background: var(--brick-hi); }
.search-box .pagefind-ui__result { border-top-color: var(--line); }
/* white clear (×) button in search fields instead of the browser's dark grey one */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: .9em; height: .9em; cursor: pointer;
  background: linear-gradient(45deg, transparent 43%, #fff 43%, #fff 57%, transparent 57%),
              linear-gradient(-45deg, transparent 43%, #fff 43%, #fff 57%, transparent 57%); opacity: .85; }
input[type="search"]::-webkit-search-cancel-button:hover { opacity: 1; }

/* ---------- member profiles ---------- */
.post-author a.who { color: var(--cream); }
.veterans .vet-text a { color: inherit; }
.veterans li.has-profile:hover { background: var(--surface-2); }
.profile-card { display: flex; gap: 1.5rem; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.profile-card h1 { margin: 0; }
.profile-avatar { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brick-hi); background: var(--deep); }
.profile-avatar.initials { display: grid; place-items: center; font: 3rem var(--font-head); color: var(--link-hover); }
.profile-rank { margin: .2rem 0 .6rem; color: var(--link-hover); }
.profile-facts { display: grid; grid-template-columns: auto 1fr; gap: .15rem 1rem; margin: 0; font-size: .92rem; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; color: var(--white); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2rem; }
.profile-posts { list-style: none; margin: 0; padding: 0; }
.profile-posts li { background: var(--surface); border-radius: 8px; padding: .8rem 1rem; margin-bottom: .7rem; }
.profile-posts .title { font-weight: 600; color: var(--cream); }
.profile-posts small, .side-list small { display: block; color: var(--muted); font-size: .78rem; }
.profile-posts p { margin: .4rem 0 0; font-size: .92rem; max-width: 72ch; }
.side-list { list-style: none; margin: 0 0 2rem; padding: 0; background: var(--surface); border-radius: var(--radius); }
.side-list li { padding: .55rem .9rem; border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; }
.side-list a { color: var(--cream); }
@media (max-width: 800px) {
  .profile-card { flex-direction: column; text-align: center; }
  .profile-facts { justify-content: center; text-align: left; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- O archiwum ---------- */
.about .lead { font-size: 1.12rem; }
.about ul { padding-left: 1.2rem; }
.about li { margin: .35rem 0; }
.about .timeline { list-style: none; padding: 0; border-left: 3px solid var(--brick); margin-left: .3rem; }
.about .timeline li { padding: .2rem 0 .5rem 1rem; }
.about .timeline b { display: inline-block; min-width: 3.2rem; font: 1.05rem var(--font-head); color: var(--link-hover); }
.about .contact { background: rgba(0, 0, 0, .22); border-left: 4px solid var(--brick-hi); border-radius: 0 8px 8px 0; padding: .8rem 1rem; }
.about code { background: rgba(0, 0, 0, .3); padding: 0 .3em; border-radius: 4px; }

/* ---------- English pages ---------- */
.nav-lang { margin-left: auto; }
.nav-lang + .nav-search { margin-left: 0; }
.glossary { border-collapse: collapse; margin: .5rem 0 1rem; }
.glossary th, .glossary td { text-align: left; padding: .35rem .9rem; border-bottom: 1px solid var(--line); }
.glossary th { color: var(--muted); font-weight: 600; }
.best li { margin: .5rem 0; }
.history-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.history-shots figure { margin: 0; }
.history-shots img { display: block; width: 100%; height: auto; border-radius: 6px; border: 3px solid var(--deep); box-shadow: var(--shadow); }
.history-shots a:hover img { border-color: var(--brick-hi); }
.history-shots figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

/* ---------- gallery ---------- */
.tab a { color: inherit; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }
.album-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); }
.album-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.album-card span { padding: .6rem .8rem .8rem; }
.album-card b { display: block; color: var(--cream); }
.album-card small { color: var(--muted); }
.album-card:hover { text-decoration: none; transform: translateY(-2px); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .5rem; }
.photo-grid a { display: block; border-radius: 6px; overflow: hidden; background: var(--deep); }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.photo-grid a:hover img { transform: scale(1.04); }
.photo-view { text-align: center; }
.photo-view img { max-width: 100%; max-height: 80vh; height: auto; border-radius: 6px; box-shadow: var(--shadow); }
.photo-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; font-weight: 600; }
