/* Rave Adelaide forum archive.
   A shared frame (header, nav, footer, landing, people, flyers, events) in the palette the board wore at the
   end (IP.Board 2.2, 2006-08), with three period skins for thread pages, taken from the archived pages' own
   stylesheets:
     body.skin-ipb12  Invision Power Board 1.2 default skin   (raveadelaide.net, 2003-05)
     body.skin-ipb20  "SparAzero" skin on Invision 2.0        (2005-06)
     body.skin-ipb21  the 2006-08 skin on Invision 2.1 / 2.2  (raveadelaide.com.au)
   Skin images (title-bar tiles) are added by the build, only for the files the archives actually hold. */

:root {
  --bg: #7E99C4; --panel: #FFFFFF; --ink: #222222; --muted: #434951; --link: #002F66; --link-hover: #7a1f1f;
  --row1: #C0CCDF; --row2: #D9E0EC; --row3: #B8C5DA; --rule: #5176B5; --border: #072A66;
  --title-bg: #4C6CA6; --title-ink: #FFFFFF; --sub-bg: #DCE4F0; --sub-ink: #002F66;
  --quote-top: #7E99C4; --quote-top-ink: #FFFFFF; --quote: #E0E6EF; --quote-ink: #555555; --accent: #072A66;
  --font: Verdana, Tahoma, Arial, "DejaVu Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.45 var(--font); }
a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* ---------- frame */
header.site { background: var(--panel); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
header.site .brand { text-decoration: none; }
header.site .brand img { display: block; max-height: 70px; width: auto; }
header.site .wordmark { font: bold 26px Tahoma, var(--font); color: var(--accent); letter-spacing: -0.5px; }
header.site .tag { color: var(--muted); font-size: 11px; }
nav.main { background: var(--title-bg); border-bottom: 1px solid var(--border); }
nav.main .wrap { display: flex; gap: 2px; flex-wrap: wrap; }
nav.main a { padding: 7px 12px; font: bold 11px Tahoma, var(--font); text-transform: uppercase; color: #fff; text-decoration: none; }
nav.main a:hover { text-decoration: underline; color: #fff; }
nav.main a[aria-current=page] { background: var(--panel); color: var(--accent); }
main { padding: 16px 0 32px; }
main > .wrap { background: var(--panel); border: 1px solid var(--border); padding-top: 14px; padding-bottom: 18px; }
main h1 { font-size: 20px; margin: 6px 0 10px; overflow-wrap: anywhere; }
footer.site { border-top: 1px solid var(--border); background: var(--panel); color: var(--muted); font-size: 11px; }
footer.site .wrap { padding-top: 12px; padding-bottom: 16px; }
.crumbs { font-size: 11px; margin: 0 0 8px; }
.meta, .lede { color: var(--muted); font-size: 11px; margin: 0 0 10px; }
.lede { font-size: 13px; color: var(--ink); }
.panel { background: var(--panel); border: 1px solid var(--border); padding: 12px 14px; margin: 0 0 14px; }
.panel h2 { margin: -12px -14px 10px; padding: 7px 14px; font-size: 12px; background: var(--title-bg); color: var(--title-ink); border-bottom: 1px solid var(--rule); }
.panel h2 a { color: var(--title-ink); }
.note { background: #fffbe6; border: 1px solid #e0c97f; padding: 8px 12px; margin: 0 0 12px; font-size: 12px; }
.na { display: inline-block; font-size: 10px; color: var(--muted); border: 1px dashed #8a97b0; padding: 1px 6px; margin: 2px 0; }
.badge { display: inline-block; font-size: 9px; padding: 0 5px; border-radius: 7px; background: #dfe6ef; color: #223; margin-left: 6px; vertical-align: 1px; border: 1px solid #b8c5da; }

/* ---------- landing */
.hero { margin-bottom: 14px; }
.hero h1 { font-size: 24px; margin: 0 0 8px; }
.search-box { background: var(--row2); border: 1px solid var(--border); padding: 12px; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.stat { background: var(--row2); border: 1px solid var(--border); padding: 10px 12px; }
.stat b { display: block; font-size: 22px; font-family: Tahoma, var(--font); }
.stat span { color: var(--muted); font-size: 11px; }
.cols { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .cols { grid-template-columns: 1fr 1fr; } }
.chart svg { width: 100%; height: auto; display: block; }
.chart .bar-a { fill: #3860BB; } .chart .bar-b { fill: #8394B2; }
.chart text { font: 10px var(--font); fill: #333; }
.legend { font-size: 11px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 10px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 2px 8px; font-size: 11px; align-items: center; }
.hbar .b { height: 10px; background: #8394B2; }
table.list { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); margin-bottom: 14px; }
table.list th, table.list td { padding: 5px 8px; border-bottom: 1px solid #fff; text-align: left; vertical-align: top; font-size: 12px; }
table.list th { background: var(--sub-bg); color: var(--sub-ink); font-size: 11px; letter-spacing: 0.5px; border-bottom: 1px solid var(--rule); }
table.list tr:nth-child(odd) td { background: var(--row2); }
table.list tr:nth-child(even) td { background: var(--row1); }
table.list td.n { text-align: right; white-space: nowrap; }
table.list.lost td { color: var(--muted); }
.md h2 { font-size: 15px; margin: 18px 0 8px; } .md h3 { font-size: 13px; }
.md ul { padding-left: 20px; } .md li { margin: 3px 0; }
details.lost { margin: 0 0 14px; } details.lost summary { cursor: pointer; font-weight: bold; padding: 6px 0; }

/* ---------- forum index / board list */
.board-title { background: var(--title-bg); color: var(--title-ink); font: bold 12px var(--font); padding: 8px 10px; border: 1px solid var(--border); border-bottom-color: var(--rule); }
.boards { margin: 0 0 18px; border: 1px solid var(--border); border-top: 0; }
.board-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 12px; border-bottom: 1px solid #fff; background: var(--row1); }
.board-row:nth-child(even) { background: var(--row2); }
.board-row .t { font-weight: bold; }
.board-row .d { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.board-row .c { text-align: right; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; font-size: 11px; }
.pager a, .pager span { padding: 1px 6px; border: 1px solid var(--border); background: #F0F5FA; text-decoration: none; }
.pager a[aria-current=page] { background: #FFC9A5; color: #000; }

/* ---------- posts: shared structure (an Invision topic: title bar, then one table per post) */
.topic-title { background: var(--title-bg); color: var(--title-ink); font-weight: bold; font-size: 12px; padding: 8px 10px; border: 1px solid var(--border); border-bottom-color: var(--rule); overflow-wrap: anywhere; }
.topic-title span { font-weight: normal; }
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); border: 1px solid var(--border); border-top: 0; background: var(--row2); }
.post:nth-of-type(even) { background: var(--row1); }
.post .phead { grid-column: 1 / -1; display: grid; grid-template-columns: 170px minmax(0, 1fr); background: var(--row1); border-bottom: 1px solid #fff; font-size: 10px; }
.post .phead .name { padding: 5px 10px; font-size: 12px; font-weight: bold; color: #003; overflow-wrap: anywhere; }
.post .phead .name a { color: #003; }
.post .phead .when { padding: 6px 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; }
.post .who { padding: 8px 10px; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.post .who .av { display: block; max-width: 100px; max-height: 100px; width: auto; height: auto; margin: 0 0 8px; }
.post .who .mt { display: block; margin-bottom: 6px; }
.post .msg { padding: 8px 12px; min-width: 0; border-left: 1px solid #fff; }
.post .body { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.post .body img { vertical-align: middle; }
.post .sig { margin-top: 14px; font-size: 10px; color: #339; line-height: 1.5; max-height: 260px; overflow: hidden; }
.post .sig::before { content: "--------------------"; display: block; color: var(--ink); }
.post .sig img { max-height: 160px; width: auto; }
.body .quotetop { background: var(--quote-top); color: var(--quote-top-ink); border: 1px dashed #fff; border-bottom: 0; font-weight: bold; font-size: 10px; margin: 8px auto 0; padding: 3px; }
.body .quotemain { background: var(--quote); border: 1px dashed var(--quote-top); border-top: 0; color: var(--quote-ink); font-size: 11px; padding: 4px; margin: 0 auto 8px; }
.body .codetop, .body .sqltop, .body .htmltop { background: #c0ccdf; border: 1px dashed #426697; border-bottom: 0; border-left: 4px solid #426697; font-weight: bold; font-size: 10px; margin: 8px auto 0; padding: 3px; }
.body .codemain, .body .sqlmain, .body .htmlmain { background: #EFECE0; border: 1px dashed #426697; border-left: 4px solid #426697; border-top: 0; color: #666; padding: 4px; font: 11px "Courier New", monospace; margin: 0 auto 8px; overflow: auto; white-space: pre-wrap; }
.body .edit { font-size: 9px; }
.body blockquote { margin: 6px 0; padding: 6px 8px; background: var(--quote); border: 1px dashed var(--quote-top); font-size: 11px; }
.body .al-center { text-align: center; } .body .al-right { text-align: right; }
/* Invision 1.2 quote and code boxes are small centred tables: centre the box, not the text inside it */
.body table { max-width: 100%; } .body table.al-center { margin: 6px auto; text-align: left; width: 95%; border-collapse: collapse; }
.body table.al-center td { text-align: left; font-size: 11px; padding: 3px; }
.body td.quotemain, .body td.codemain { margin: 0; }
.body table.al-center > tbody > tr:first-child > td { font-size: 10px; }
.body img.imgleft { float: left; margin: 0 10px 6px 0; } .body img.imgright { float: right; margin: 0 0 6px 10px; }
.body::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) {
  .post, .post .phead { grid-template-columns: 1fr; }
  .post .who { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #fff; }
  .post .who .av { max-width: 48px; max-height: 48px; margin: 0; }
  .post .who .extra { display: none; }
  .post .msg { border-left: 0; }
}

/* ---------- Invision Power Board 1.2 default skin (raveadelaide.net, 2003-05) */
body.skin-ipb12 { --bg: #FFFFFF; --ink: #000000; --link: #000000; --link-hover: #465584; --row1: #EEF2F7; --row2: #F5F9FD;
  --row3: #DFE6EF; --border: #345487; --rule: #345487; --title-bg: #3860BB; --title-ink: #FFFFFF; --sub-bg: #D1DCEB;
  --sub-ink: #3A4F6C; --quote-top: #E4EAF2; --quote-top-ink: #000; --quote: #FAFCFE; --quote-ink: #465584; }
.skin-ipb12 main > .wrap { border-color: #345487; }
.skin-ipb12 .post .phead { background: #E4EAF2; }
.skin-ipb12 .post .body { font-size: 11px; line-height: 1.4; }
.skin-ipb12 .body .quotemain, .skin-ipb12 .body td.quotemain { border: 1px solid #000; background: #FAFCFE; color: #465584; }
.skin-ipb12 .body .codemain, .skin-ipb12 .body td.codemain { border: 1px solid #000; background: #FAFCFE; color: #465584; }

/* ---------- "SparAzero" on Invision 2.0 (2005-06) */
body.skin-ipb20 { --bg: #6B91B8; --ink: #000000; --link: #4D6787; --link-hover: #000033; --row1: #D8DEE6; --row2: #EEF2F7;
  --row3: #C6D2E1; --border: #072A66; --rule: #5176B5; --title-bg: #C6D2E1; --title-ink: #333333; --sub-bg: #4D6787;
  --sub-ink: #FFFFFF; --quote-top: #E4EAF2; --quote-top-ink: #000; --quote: #FAFCFE; --quote-ink: #465584; }
.skin-ipb20 a { text-decoration: none; } .skin-ipb20 a:hover { text-decoration: underline; }
.skin-ipb20 .post .phead { background: #C6D2E1; }
.skin-ipb20 .post .body { font-size: 11px; line-height: 1.3; }
.skin-ipb20 .body .quotetop { border: 1px dotted #000; border-bottom: 0; border-left: 4px solid #8394B2; }
.skin-ipb20 .body .quotemain { border: 1px dotted #000; border-top: 0; border-left: 4px solid #8394B2; }
.skin-ipb20 .body .codetop { background: #FDDBCC; border: 0; }
.skin-ipb20 .body .codemain { background: #FAFCFE; border: 1px dotted #000; color: #465584; }
.skin-ipb20 nav.main a, .skin-ipb20 .panel h2, .skin-ipb20 .panel h2 a { color: #333; }
.skin-ipb20 nav.main a[aria-current=page] { color: #072A66; }

/* ---------- the 2006-08 skin on Invision 2.1 / IP.Board 2.2 (the frame's own palette) */
.skin-ipb21 .post .body a:hover { color: #7a1f1f; }

/* ---------- people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.people a { display: block; background: var(--row2); border: 1px solid #8394B2; padding: 8px; text-align: center; font-size: 11px; color: #000; text-decoration: none; }
.people a:hover { border-color: var(--border); background: var(--row1); }
.people img, .people .ph, .person .ph, .person img.av { width: 72px; height: 72px; object-fit: cover; display: block; margin: 0 auto 6px; border: 1px solid #8394B2; background: #fff; }
.ph { display: flex !important; align-items: center; justify-content: center; font: bold 26px Tahoma, var(--font); color: #fff; background: #4C6CA6; }
.people b { display: block; overflow-wrap: anywhere; }
.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 12px; }
.person img.av, .person .ph { width: 96px; height: 96px; margin: 0; }
.person .ph { font-size: 34px; }

/* ---------- flyer wall */
.wall-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; background: var(--row2); border: 1px solid var(--border); padding: 8px 10px; margin: 0 0 12px; font-size: 11px; position: sticky; top: 0; z-index: 2; }
@media (max-width: 640px) { .wall-filters { position: static; } }
.wall-filters div { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wall-filters button { font: 11px var(--font); padding: 3px 8px; border: 1px solid #8394B2; background: #F0F5FA; cursor: pointer; }
.wall-filters button[aria-pressed=true] { background: var(--accent); color: #fff; border-color: var(--accent); }
.wall-filters select { font: 11px var(--font); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wall .tile { display: block; background: #111; border: 1px solid #444; color: #ddd; font-size: 10px; overflow: hidden; text-decoration: none; }
.wall .tile:hover { border-color: #fff; color: #fff; }
.wall .tile img { display: block; width: 100%; height: 210px; object-fit: contain; background: #000; }
.wall .tile span { display: block; padding: 4px 6px 6px; line-height: 1.3; max-height: 3.9em; overflow: hidden; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.strip img { width: 100%; height: 120px; object-fit: cover; display: block; border: 1px solid #8394B2; }
.flyer { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 860px) { .flyer { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.flyer-one { max-width: 760px; }
.flyer-one .lede { margin-top: 10px; }
.flyer img { display: block; max-width: 100%; height: auto; border: 1px solid #8394B2; background: #fff; }
.flyer h2 { font-size: 13px; margin: 14px 0 4px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0 0 10px; font-size: 12px; }
.facts dt { font-weight: bold; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
figure.banner { margin: 0 0 16px; }
figure.banner video, figure.banner img { display: block; max-width: 100%; height: auto; border: 1px solid #8394B2; background: #000; }
figure.banner figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; }
.banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

/* ---------- events */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-bottom: 16px; }
.events a.ev { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; background: var(--row2); border: 1px solid #8394B2; padding: 6px; color: #000; font-size: 11px; text-decoration: none; }
.events a.ev:hover { border-color: var(--border); background: var(--row1); }
.events img, .events .noimg { width: 72px; height: 72px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: #c6d2e1; color: var(--muted); font-size: 9px; text-align: center; }
.events b { font-size: 12px; }
.events i.src { font-style: normal; font-size: 10px; color: var(--muted); }
main h2 { font-size: 14px; }

/* ---------- news */
article.story { margin-bottom: 14px; }
article.story .body { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- search (Pagefind UI) */
.search-box .pagefind-ui { --pagefind-ui-scale: .8; --pagefind-ui-primary: #072A66; --pagefind-ui-font: Verdana, sans-serif; --pagefind-ui-background: #fff; }

/* ---------- lightbox */
#lb { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 50; padding: 16px; }
#lb img { max-width: 100%; max-height: 85vh; }
#lb p { color: #ddd; font-size: 11px; }
#lb button { position: absolute; top: 8px; right: 12px; font-size: 28px; background: none; border: 0; color: #fff; cursor: pointer; }

/* ---------- skin images found in the archives */
.topic-title, .board-title, nav.main, .panel h2 { background-image: url(skin/ipb21/tile_cat.gif); background-repeat: repeat-x; }
table.list th { background-image: url(skin/ipb21/tile_sub.gif); background-repeat: repeat-x; }
.skin-ipb12 .topic-title, .skin-ipb12 .board-title { background-image: url(skin/ipb12/tile_back.gif); background-repeat: repeat-x; }
.skin-ipb12 table.list th { background-image: url(skin/ipb12/tile_sub.gif); background-repeat: repeat-x; }
