/* adelaidemassive.com forum archive.
   A shared frame (header, nav, footer, landing, people) in the simplywhite palette AM used 2007-11,
   with two period skins for the boards: body.skin-phpbb (phpBB 2 subSilver, 2003-07) and
   body.skin-smf (SMF simplywhite, 2007-14). Skin images live in assets/phpbb/ and assets/smf/. */

:root {
  --bg: #E5E5E8; --panel: #FFFFFF; --ink: #000000; --muted: #555a66; --link: #476C8E; --link-hover: #cc3333;
  --row1: #ECEDF3; --row2: #F6F6F6; --row3: #E0E1E8; --rule: #9BAEBF; --border: #696969; --cat: #A1BFD9;
  --title-bg: #E9F0F6; --quote: #D7DAEC; --accent: #375576;
  --font: verdana, "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: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
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(--rule); }
header.site .wrap { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
header.site .brand img { display: block; max-height: 70px; width: auto; }
header.site .tag { color: var(--muted); font-size: 11px; }
nav.main { background: url(smf/titlebg.jpg) var(--title-bg) repeat-x; border-bottom: 1px solid var(--rule); }
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: #000; }
nav.main a[aria-current=page] { background: var(--panel); border: 1px solid var(--rule); border-bottom-color: var(--panel); margin-bottom: -1px; }
main { padding: 16px 0 32px; }
main > .wrap > h1:first-child, main h1 { font-size: 20px; margin: 6px 0 10px; }
footer.site { border-top: 1px solid var(--rule); 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: 6px 14px; font-size: 13px; background: url(smf/titlebg.jpg) var(--title-bg) repeat-x; border-bottom: 1px solid var(--rule); }
.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 #aab; padding: 1px 6px; margin: 2px 0; }
.badge { display: inline-block; font-size: 9px; padding: 0 5px; border-radius: 7px; background: #ccd; color: #223; margin-left: 6px; vertical-align: 1px; }

/* ---------- landing */
.hero { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
.hero h1 { font-size: 24px; margin: 0; }
.search-box { background: var(--panel); border: 1px solid var(--border); padding: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.stat { background: var(--panel); 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-p { fill: #006699; } .chart .bar-s { fill: #476C8E; } .chart .bar-s2 { fill: #A1BFD9; }
.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: var(--cat); }
table.list { width: 100%; border-collapse: collapse; background: var(--panel); }
table.list th, table.list td { padding: 5px 8px; border-bottom: 1px solid #d6d8e0; text-align: left; vertical-align: top; font-size: 12px; }
table.list th { background: url(smf/titlebg.jpg) var(--title-bg) repeat-x; font-size: 11px; }
table.list td.n { text-align: right; white-space: nowrap; }

/* ---------- forum index / board list */
.boards { margin: 0 0 18px; }
.board-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 12px; border-bottom: 1px solid #d6d8e0; background: var(--panel); }
.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; }
.era { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .era { grid-template-columns: 1fr 1fr; } }
.era a.card { display: block; background: var(--panel); border: 1px solid var(--border); padding: 14px; color: #000; }
.era a.card:hover { text-decoration: none; border-color: var(--link); }
.era a.card h2 { margin: 0 0 6px; font-size: 16px; color: var(--link); }
.era a.card .card-logo { display: block; height: 72px; width: auto; max-width: 100%; margin: 0 0 10px; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; font-size: 11px; }
.pager a, .pager span { padding: 2px 7px; border: 1px solid #b8bccb; background: var(--panel); }
.pager a[aria-current=page] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- posts: shared structure */
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); border: 1px solid var(--border); border-top: 0; background: var(--row1); }
.post:nth-of-type(even) { background: var(--row2); }
.thread-head + .post, .posts > .post:first-child { border-top: 1px solid var(--border); }
.post .who { padding: 8px 10px; border-right: 1px solid #c8cad6; font-size: 10px; overflow-wrap: anywhere; }
.post .who .name { font-size: 12px; font-weight: bold; display: block; margin-bottom: 2px; }
.post .who .av { display: block; width: 80px; height: 80px; object-fit: cover; margin: 6px 0; border: 1px solid #999; background: #fff; }
.post .msg { padding: 8px 12px; min-width: 0; }
.post .ptop { font-size: 10px; color: var(--muted); border-bottom: 1px solid #c8cad6; padding-bottom: 4px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; }
.post .ptop b { color: #000; }
.post .body { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.post .body img { vertical-align: middle; }
.post .sig { margin-top: 10px; padding-top: 6px; border-top: 1px dashed #b8bccb; font-size: 10px; color: var(--muted); max-height: 260px; overflow: hidden; }
.post .sig img { max-height: 160px; width: auto; }
.body .quote, .body blockquote { margin: 6px 0; padding: 6px 8px; background: var(--quote); border: 1px solid #8a8fb0; font-size: 11px; }
.body .code, .body pre { font: 11px "courier new", monospace; background: #ddd; border: 1px solid #888; padding: 4px; overflow: auto; white-space: pre-wrap; }
.body .al-center { text-align: center; } .body .al-right { text-align: right; }
/* align=center on a table (phpBB quote/code boxes) centres the box, not the text inside it */
.body table { max-width: 100%; } .body table.al-center { margin: 6px auto; text-align: left; }
.body table.al-center td { text-align: left; }
.body table.al-center td.al-center { text-align: center; }
.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 { grid-template-columns: 1fr; }
  .post .who { border-right: 0; border-bottom: 1px solid #c8cad6; display: flex; gap: 10px; align-items: center; }
  .post .who .av { width: 48px; height: 48px; margin: 0; }
  .post .who .extra { display: none; }
}

/* ---------- phpBB 2 subSilver (2003-07) */
body.skin-phpbb { --link: #006699; --link-hover: #DD6900; --row1: #EFEFEF; --row2: #DEE3E7; --row3: #D1D7DC; --border: #006699; --quote: #FAFAFA; --accent: #006699; }
.skin-phpbb main { background: #E5E5E5; }
.skin-phpbb .board-title { background: url(phpbb/cellpic3.gif) #006699 repeat-x; color: #FFA34F; font: bold 12px var(--font); padding: 6px 10px; border: 1px solid #006699; }
.skin-phpbb .thread-head { background: url(phpbb/cellpic3.gif) #006699 repeat-x; color: #FFA34F; border: 1px solid #006699; padding: 6px 10px; font-weight: bold; font-size: 11px; display: grid; grid-template-columns: 170px 1fr; }
.skin-phpbb .post { border: 1px solid #006699; border-top: 0; }
.skin-phpbb .post .who .name { color: #000; }
.skin-phpbb .post .ptop { color: #000; }
.skin-phpbb .body .quote, .skin-phpbb .body blockquote { background: #FAFAFA; border-color: #D1D7DC; color: #444; }
.skin-phpbb .board-row { background: #EFEFEF; border-color: #fff; }
.skin-phpbb .board-row:nth-child(even) { background: #DEE3E7; }
.skin-phpbb table.list th { background: url(phpbb/cellpic3.gif) #006699 repeat-x; color: #FFA34F; }
.skin-phpbb table.list tr:nth-child(even) td { background: #DEE3E7; }
.skin-phpbb table.list tr:nth-child(odd) td { background: #EFEFEF; }
@media (max-width: 640px) { .skin-phpbb .thread-head { grid-template-columns: 1fr; } .skin-phpbb .thread-head span:first-child { display: none; } }

/* ---------- SMF simplywhite (2007-14) */
.skin-smf .board-title { background: url(smf/catbg2.jpg) var(--cat) repeat-x; border: 1px solid var(--accent); padding: 6px 10px; font-weight: bold; }
.skin-smf .thread-head { background: url(smf/titlebg.jpg) var(--title-bg) repeat-x; border: 1px solid var(--border); border-bottom: 1px solid var(--rule); padding: 6px 10px; font-size: 11px; font-weight: bold; display: grid; grid-template-columns: 170px 1fr; }
@media (max-width: 640px) { .skin-smf .thread-head { grid-template-columns: 1fr; } .skin-smf .thread-head span:first-child { display: none; } }

/* ---------- people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.people a { display: block; background: var(--panel); border: 1px solid #b8bccb; padding: 8px; text-align: center; font-size: 11px; color: #000; }
.people a:hover { border-color: var(--link); text-decoration: none; }
.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 #999; background: #fff; }
.ph { display: flex !important; align-items: center; justify-content: center; font: bold 26px tahoma, var(--font); color: #fff; }
.ph.pb { background: #006699; } .ph.sm { background: #476C8E; }
.people b { display: block; overflow-wrap: anywhere; }
.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
.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(--panel); 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 #b8bccb; background: #f4f5f9; 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; }
.wall .tile:hover { border-color: #fff; text-decoration: none; }
.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 #999; }
.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 #999; 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; 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 { display: block; max-width: 100%; height: auto; border: 1px solid #999; background: #000; }
figure.banner figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- 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(--panel); border: 1px solid #b8bccb; padding: 6px; color: #000; font-size: 11px; }
.events a.ev:hover { border-color: var(--link); text-decoration: none; }
.events img, .events .noimg { width: 72px; height: 72px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: #e9eaf0; 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); }

/* ---------- search (Pagefind UI) */
.search-box .pagefind-ui { --pagefind-ui-scale: .8; --pagefind-ui-primary: #476C8E; --pagefind-ui-font: verdana, sans-serif; }

/* ---------- 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; }
