:root {
    color-scheme: light;
    --page: #d3d3d3;
    --paper: #f8f6f5;
    --text: #161616;
    --muted: #858585;
    --line: #dedbd8;
    --wood: #24150f;
    --wood-light: #382319;
    --accent: #e5ad37;
    --accent-dark: #a66d18;
    --link: #526a80;
    --soft-gray: #d0d0d0;
    --radius: 4px;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background-color: #d0d0d0;
    background-image: radial-gradient(rgba(255,255,255,.34) .7px, transparent .7px), linear-gradient(115deg, #d4d4d4, #c9c9c9 52%, #d6d6d6);
    background-size: 4px 4px, auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.35;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: #263d51; text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid rgba(166,109,24,.55); outline-offset: 2px; }

.page-topline { height: 6px; background: linear-gradient(#5d5a53, #89867f 48%, #4a4843); border-bottom: 1px solid #aaa7a0; }
.masthead { color: #fff; }
.masthead-inner { position: relative; width: min(1050px, calc(100% - 32px)); height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 15px; color: #eee; text-decoration: none; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark {
    display: block;
    width: 36px;
    height: 36px;
    border: 2px solid #222;
    box-shadow: 0 0 0 1px #777, inset 0 0 0 1px rgba(255,255,255,.25);
    background-color: #234c20;
    background-image: repeating-radial-gradient(ellipse at 30% 20%, rgba(125,164,76,.55) 0 1px, transparent 2px 4px), repeating-linear-gradient(65deg, transparent 0 3px, rgba(8,24,7,.62) 4px 5px);
}
.brand-name { color: #e8e8e8; font-family: Georgia, 'Times New Roman', serif; font-size: 35px; font-weight: 400; letter-spacing: .28em; line-height: 1; text-shadow: 1px 2px 1px #777, -1px -1px 0 #fff; }
.account-area { position: absolute; top: 0; right: 0; display: flex; gap: 5px; align-items: center; padding: 4px 10px 5px; color: #e6e6e6; background: linear-gradient(#4b4b4b, #242424); border: 1px solid #777; border-top: 0; border-radius: 0 0 7px 7px; box-shadow: 0 1px 3px rgba(0,0,0,.35); font-size: 10px; }
.account-area a { color: #fff; }
.account-greeting { color: #eee; }
.account-form { display: inline; margin: 0; }
.account-form button { padding: 0; color: #fff; background: none; border: 0; cursor: pointer; font-size: 10px; }
.site-frame { width: min(1050px, calc(100% - 32px)); min-height: calc(100vh - 74px); margin: 0 auto; background: var(--paper); box-shadow: 0 0 4px rgba(0,0,0,.24); }
.wood-nav-wrap {
    color: #fff;
    background-color: #25160f;
    background-image: repeating-linear-gradient(0deg, transparent 0 20px, rgba(0,0,0,.65) 21px, rgba(0,0,0,.65) 22px), repeating-linear-gradient(90deg, transparent 0 57px, rgba(0,0,0,.48) 58px, rgba(0,0,0,.48) 60px), repeating-linear-gradient(0deg, #3b2519, #24150f 10px, #2e1b12 18px, #1c100b 22px);
    border-top: 1px solid #100905;
    border-bottom: 2px solid #17100c;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.main-nav { display: flex; min-height: 27px; align-items: stretch; padding-left: 5px; }
.main-nav a { display: flex; align-items: center; padding: 0 14px; color: #f4f1ee; border-right: 1px solid rgba(0,0,0,.26); font-size: 12px; text-shadow: 0 1px 1px #000; }
.main-nav a:hover, .main-nav a.is-current { color: #fff; background: rgba(0,0,0,.3); text-decoration: none; }
.main-nav a.is-current { font-weight: 700; }
.sub-nav { display: flex; min-height: 21px; align-items: center; gap: 0; padding-left: 5px; border-top: 1px solid rgba(0,0,0,.45); background: rgba(0,0,0,.16); }
.sub-nav a { padding: 3px 11px; color: #eee; border-right: 1px solid rgba(0,0,0,.35); font-size: 10px; }
.sub-nav a:hover { color: #fff; background: rgba(0,0,0,.24); text-decoration: none; }

.forum-page { padding: 17px 18px 44px; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; height: 23px; margin-bottom: 17px; padding: 0 10px; color: #7c7c7c; background: #d0d0d0; border: 1px solid #c8c8c8; font-size: 10px; }
.breadcrumbs a { color: #626c75; }
.breadcrumbs strong { color: #555; font-weight: 400; }
.crumb-end { margin-left: auto; color: #28769b; font-size: 13px; font-weight: 700; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 225px; gap: 10px; align-items: start; }
.forum-main-column { min-width: 0; }
.welcome-banner { display: flex; min-height: 52px; justify-content: center; align-items: center; margin: 0 0 9px; padding: 9px 15px; background: #ffedb2; border: 1px solid #e3bd43; border-radius: 5px; box-shadow: inset 0 1px rgba(255,255,255,.65); text-align: center; }
.welcome-banner a { color: #25211a; font-size: 18px; font-weight: 700; text-decoration: underline; }
.welcome-message { padding: 11px 12px; color: #101010; background: #d0d0d0; font-size: 16px; }
.welcome-tools { display: flex; justify-content: flex-end; gap: 2px; min-height: 20px; margin-bottom: 10px; }
.welcome-tools a { padding: 1px 6px; color: #596875; background: #e5e5e5; border: 1px solid #d5d5d5; font-size: 9px; }
.forum-title { margin: 10px 0 17px; font-size: 20px; font-weight: 400; letter-spacing: -.2px; }
.category-section { margin: 0 8px 18px; }
.category-section-heading { display: flex; flex-direction: column; justify-content: center; min-height: 36px; margin-bottom: 1px; padding: 4px 9px; background: #d0d0d0; color: #292929; }
.category-section-heading strong { font-size: 12px; font-weight: 400; }
.category-section-heading span { display: block; margin-top: 1px; color: #292929; font-size: 9px; }
.category-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 208px; gap: 7px; align-items: center; min-height: 52px; padding: 7px 8px; border-bottom: 1px solid #d9d4d0; }
.category-row:last-child { border-bottom: 1px solid #d9d4d0; }
.category-icon { display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; margin-left: 2px; font-size: 21px; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.category-icon.diamond { color: #68b7c7; transform: scaleX(1.08); }
.category-icon.bucket { color: #df7840; font-size: 20px; text-shadow: 0 1px 0 #8c4b29; }
.category-info { min-width: 0; }
.category-title { color: #536d83; font-size: 14px; }
.category-info p { margin: 1px 0 0; color: #858585; font-size: 10px; }
.category-info .category-counts { color: #8a8a8a; }
.category-counts strong { color: #303030; font-weight: 400; }
.latest-topic-box { min-width: 0; padding: 5px 8px; color: #4e4e4e; background: #d2d2d2; font-size: 10px; line-height: 1.25; overflow-wrap: anywhere; }
.latest-topic-box strong { color: #171717; font-weight: 400; }
.latest-topic-box a { color: #6b7e8f; }
.latest-topic-box span { display: block; color: #777; }
.latest-empty { color: #969696; font-style: italic; }

.forum-sidebar { min-width: 0; }
.forum-search { display: flex; height: 34px; margin: -35px 0 17px; padding: 4px; background: #d1d1d1; border: 1px solid #c7c7c7; border-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.forum-search input { min-width: 0; flex: 1; padding: 4px 7px; color: #555; background: #fff; border: 1px solid #ccc; border-radius: 3px; font-size: 11px; font-style: italic; }
.forum-search button { width: 27px; color: #666; background: transparent; border: 0; cursor: pointer; font-size: 17px; }
.sidebar-signup { margin: 0 0 9px; padding: 17px 12px; background: #d1d1d1; text-align: center; }
.sidebar-signup p { margin: 8px 0 0; color: #777; font-size: 10px; }
.sidebar-signup p a { color: #586f83; }
.signup-button { display: block; width: min(100%, 151px); margin: 0 auto; padding: 7px 9px; color: #fff; background: linear-gradient(#817761, #3d3428); border: 2px solid #eee8dc; border-radius: 7px; box-shadow: 0 2px 4px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.4); font-family: Georgia, serif; font-size: 14px; font-weight: 700; text-shadow: 0 1px 1px #222; }
.signup-button:hover { color: #fff; background: linear-gradient(#94896f, #514431); text-decoration: none; }
.sidebar-panel { margin-bottom: 9px; padding: 9px 9px 10px; background: #d1d1d1; }
.sidebar-panel h2 { margin: 0 0 7px; color: #8a8a8a; font-size: 14px; font-weight: 400; }
.member-activity-list { display: flex; flex-direction: column; gap: 7px; }
.member-activity { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 7px; align-items: start; }
.mini-avatar { display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; color: #eee; background: linear-gradient(135deg, #b9b9b9, #777); border: 2px solid #eee; box-shadow: 0 0 1px #555; font-size: 15px; }
.member-activity a { color: #171717; font-size: 12px; }
.member-activity p { margin: 0; color: #171717; font-size: 10px; line-height: 1.25; }
.member-activity time { display: block; color: #898989; font-size: 10px; }
.online-panel p, .share-panel p, .sidebar-muted { margin: 0; color: #696969; font-size: 10px; }
.online-panel strong { color: #3a3a3a; }
.share-panel { min-height: 125px; }
.share-panel a { display: inline-block; margin-top: 8px; font-size: 10px; }
.latest-members p { display: flex; flex-direction: column; gap: 1px; margin: 5px 0; font-size: 11px; }
.latest-members p span { color: #343434; }
.latest-members time { color: #888; font-size: 10px; }

.search-results { margin: 4px 8px 18px; border-bottom: 1px solid var(--line); }
.search-results .section-heading { padding: 10px 8px; background: #d0d0d0; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 400; }
.section-heading p { margin: 2px 0 0; color: #777; font-size: 10px; }
.search-result-row, .recent-post-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 8px; border-bottom: 1px solid #dedbd8; }
.search-result-row p, .recent-post-row p { margin: 2px 0 0; color: #888; font-size: 10px; }
.result-replies, .recent-post-row > span { color: #888; font-size: 10px; }
.no-results { margin: 0; padding: 12px 9px; color: #777; font-size: 11px; }
.recent-posts { margin: 0 8px 16px; }
.recent-posts > .category-section-heading { margin-bottom: 1px; }

.flash-wrap { margin: 12px 18px 0; }
.flash { padding: 9px 12px; border: 1px solid #cfcfcf; border-radius: 3px; background: #fff; font-size: 12px; }
.flash--success { color: #245d3b; background: #edf8f1; border-color: #c8e2d0; }
.flash--error { color: #8d2828; background: #fff0f0; border-color: #e8c5c5; }
.site-footer { padding: 12px 18px; color: #888; background: #e5e2e0; border-top: 1px solid #d4cfcb; font-size: 10px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; }

/* Authentication and discussion pages share the same classic forum skin. */
.container { width: min(1014px, calc(100% - 36px)); margin: 0 auto; }
.page-main { min-height: 60vh; padding-top: 28px; padding-bottom: 45px; }
.narrow { width: min(540px, calc(100% - 36px)); }
.page-intro, .topic-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
h1, h2, h3, p { margin-top: 0; }
.page-main h1 { margin-bottom: 7px; font-size: clamp(24px, 4vw, 30px); line-height: 1.15; }
.page-main h2 { margin-bottom: 0; font-size: 18px; }
.page-main h3 { font-size: 16px; }
.eyebrow { margin-bottom: 8px; color: #9a6926; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
.intro-copy, .form-intro { margin-bottom: 0; color: #777; }
.button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 7px 13px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.button:hover { text-decoration: none; }
.button-primary { color: #fff; background: #71664f; border-color: #544b38; }
.button-primary:hover { color: #fff; background: #554a35; }
.button-secondary { color: #45413a; background: #e6e3df; border-color: #c9c4bd; }
.button-secondary:hover { background: #dcd8d2; }
.button-full { width: 100%; margin-top: 5px; }
.panel, .form-panel, .reply-panel { background: #fff; border: 1px solid #d8d3ce; border-radius: 3px; box-shadow: 0 1px 3px rgba(22, 28, 35, .04); }
.panel { overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; background: #d0d0d0; border-bottom: 1px solid #c5c5c5; }
.muted, .field-hint { color: #777; font-size: 11px; }
.topic-list { display: block; }
.topic-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 60px 175px; align-items: center; gap: 13px; padding: 15px 17px; border-bottom: 1px solid #e4e0dc; }
.topic-row:last-child { border-bottom: 0; }
.topic-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 3px; color: #8e692a; background: #f1e4c7; font-size: 12px; font-weight: 700; }
.topic-main { min-width: 0; }
.topic-main h3 { margin-bottom: 4px; overflow-wrap: anywhere; }
.topic-main h3 a { color: #536d83; }
.topic-meta { margin-bottom: 0; color: #858585; font-size: 11px; }
.topic-meta strong { color: #454545; }
.meta-separator { padding: 0 4px; }
.topic-stats { display: flex; flex-direction: column; align-items: center; color: #8a8a8a; font-size: 10px; }
.topic-stats strong { color: #333; font-size: 15px; }
.topic-last { display: flex; flex-direction: column; gap: 2px; color: #888; font-size: 10px; }
.topic-last strong { color: #555; font-weight: 400; }
.topic-last time { color: #999; }
.empty-state { padding: 30px 20px; text-align: center; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { margin-bottom: 10px; color: #777; }
.form-panel { padding: 27px; }
.form-panel h1 { margin-bottom: 8px; }
.form-intro { margin-bottom: 22px; }
.form-stack { display: flex; flex-direction: column; gap: 9px; }
.form-stack label { margin-top: 7px; font-size: 12px; font-weight: 700; }
.form-stack input, .form-stack textarea, .form-stack select { width: 100%; min-height: 40px; padding: 9px 11px; color: #292929; background: #fff; border: 1px solid #d2ccc5; border-radius: 3px; }
.form-stack textarea { min-height: 145px; resize: vertical; }
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus { border-color: #a99064; outline: 2px solid rgba(169,144,100,.15); }
.field-hint { margin: -4px 0 4px; }
.form-switch { margin: 18px 0 0; color: #777; font-size: 12px; text-align: center; }
.form-switch a { font-weight: 700; }
.form-errors { margin: 0 0 16px; padding: 9px 12px; color: #8d2828; background: #fff0f0; border: 1px solid #e8c5c5; border-radius: 3px; font-size: 12px; }
.form-errors p { margin: 0; }
.form-errors p + p { margin-top: 5px; }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.form-actions-end { justify-content: flex-end; }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-heading { align-items: center; }
.topic-heading h1 { overflow-wrap: anywhere; }
.topic-heading .topic-meta { margin-top: 10px; }
.posts-list { display: flex; flex-direction: column; gap: 10px; }
.post-card { display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 18px; padding: 17px; background: #fff; border: 1px solid #d8d3ce; border-radius: 3px; scroll-margin-top: 15px; }
.post-author { display: flex; align-items: flex-start; gap: 9px; overflow-wrap: anywhere; font-size: 12px; }
.avatar { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border-radius: 2px; color: #6a542c; background: #eee2c9; font-weight: 700; }
.post-content { min-width: 0; }
.post-topline { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 9px; color: #888; border-bottom: 1px solid #eeeae6; font-size: 10px; }
.post-number { color: #777; }
.post-body { padding-top: 11px; overflow-wrap: anywhere; }
.reply-panel { margin-top: 20px; padding: 19px; }
.reply-panel h2 { margin-bottom: 14px; }
.reply-panel p { margin-bottom: 0; color: #777; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; color: #777; font-size: 11px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 850px) {
    .forum-layout { grid-template-columns: minmax(0, 1fr) 205px; }
    .category-row { grid-template-columns: 32px minmax(0, 1fr); }
    .latest-topic-box { grid-column: 2; width: 100%; }
    .forum-search { margin-top: -35px; }
}
@media (max-width: 650px) {
    .masthead-inner, .site-frame { width: 100%; }
    .masthead-inner { height: 65px; padding: 0 14px; }
    .brand-name { font-size: 29px; }
    .account-area { right: 10px; }
    .main-nav { flex-wrap: wrap; padding-left: 0; }
    .main-nav a { min-height: 31px; padding: 0 10px; }
    .forum-page { padding: 12px 11px 30px; }
    .forum-layout { grid-template-columns: 1fr; }
    .forum-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .forum-search { grid-column: 1 / -1; margin: 0; }
    .sidebar-signup { margin: 0; display: flex; flex-direction: column; justify-content: center; }
    .sidebar-panel { margin: 0; }
    .forum-title { margin-top: 9px; }
    .category-section { margin-right: 0; margin-left: 0; }
    .category-row { grid-template-columns: 31px minmax(0, 1fr); padding: 8px 5px; }
    .latest-topic-box { grid-column: 2; }
    .search-results, .recent-posts { margin-right: 0; margin-left: 0; }
    .container { width: calc(100% - 24px); }
    .page-main { padding-top: 20px; }
    .page-intro, .topic-heading { align-items: flex-start; flex-direction: column; }
    .topic-row { grid-template-columns: 31px minmax(0, 1fr) 43px; gap: 9px; padding: 12px; }
    .topic-icon { width: 29px; height: 29px; }
    .topic-last { grid-column: 2 / 4; margin-top: -4px; }
    .topic-last span { display: none; }
    .topic-last strong, .topic-last time { display: inline; }
    .topic-last time { margin-left: 5px; }
    .post-card { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
    .post-author { align-items: center; }
}
@media (max-width: 420px) {
    .forum-sidebar { grid-template-columns: 1fr; }
    .brand { gap: 9px; }
    .brand-mark { width: 31px; height: 31px; }
    .brand-name { font-size: 25px; letter-spacing: .22em; }
    .account-area { font-size: 9px; }
    .form-panel { padding: 21px 16px; }
    .panel-heading { padding: 13px; }
    .topic-meta { line-height: 1.7; }
    .footer-inner { flex-direction: column; gap: 3px; }
    .site-footer { padding: 11px; }
}
.selected-category-view { margin: 0 8px 19px; border: 1px solid #d7d2cd; background: #fff; }
.selected-category-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; color: #858585; border-bottom: 1px solid #e1ddd9; font-size: 10px; }
.selected-category-toolbar .button { min-height: 27px; padding: 4px 9px; font-size: 10px; }
.selected-topic-last { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: #777; font-size: 10px; text-align: right; }
.selected-topic-last strong { color: #555; font-weight: 400; }
@media (max-width: 650px) {
    .selected-category-view { margin-right: 0; margin-left: 0; }
    .selected-topic-last { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
}
