/* Megane4Forum — forum theme
   Classic forum-software look (XenForo-style node list + left-panel postbit).
   Original design. */

:root {
  --page: #dfe3e8;
  --surface: #ffffff;
  --surface-alt: #f3f5f7;
  --border: #c7ccd3;
  --border-soft: #e2e6ea;
  --text: #16181b;
  --muted: #6b7682;
  --nav: #1f2a36;
  --nav-2: #16202a;
  --accent: #b2242b;        /* deep red */
  --accent-dark: #8c1a20;
  --link: #1f6fb8;
  --link-dark: #155189;
  --cat-bar: #2d3a48;
  --gold: #c89b3c;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(20,30,40,.12);
  --maxw: 1100px;
  --font: Arial, "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-dark); text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 14px; }

/* ---------- Responsible-gambling strip ---------- */
.rg-bar {
  background: var(--nav-2); color: #c9d3dd; font-size: 12px; text-align: center;
  padding: 6px 14px;
}
.rg-bar a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------- Logo header ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-head-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand .emblem {
  width: 46px; height: 46px; border-radius: 10px; flex: 0 0 46px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.5px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}
.brand .wordmark { line-height: 1.1; }
.brand .wordmark .w1 { font-size: 23px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.brand .wordmark .w1 b { color: var(--accent); }
.brand .wordmark .w2 { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .2px; }
.head-search { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.head-search input {
  border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; font-size: 13px; width: 200px;
  background: var(--surface-alt);
}
.head-auth { display: flex; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 6px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-nav { background: rgba(255,255,255,.12); color: #fff; }
.btn-nav:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Dark nav bar ---------- */
.mainnav { background: var(--nav); }
.mainnav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 14px; display: flex; align-items: center; }
.mainnav a {
  color: #cdd6df; font-weight: 700; font-size: 13.5px; padding: 12px 15px; display: inline-block;
}
.mainnav a:hover { background: var(--nav-2); color: #fff; text-decoration: none; }
.mainnav a.active { background: var(--accent); color: #fff; }

/* ---------- Breadcrumb ---------- */
.crumbs { background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.crumbs-inner { max-width: var(--maxw); margin: 0 auto; padding: 8px 14px; font-size: 12.5px; color: var(--muted); }
.crumbs-inner a { color: var(--link); }
.crumbs-inner span.sep { margin: 0 6px; color: #aab2bb; }

/* ---------- Page ---------- */
.page { padding: 18px 0 50px; }
.page-title { margin: 0 0 14px; }
.page-title h1 { font-size: 22px; margin: 0 0 3px; letter-spacing: -.3px; }
.page-title p { margin: 0; color: var(--muted); font-size: 13.5px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; gap: 10px; flex-wrap: wrap; }
.toolbar .tabs { display: flex; gap: 2px; }
.toolbar .tabs a { font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 12px; border-radius: 6px; }
.toolbar .tabs a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.toolbar .tabs a.active { background: var(--surface); color: var(--accent); border: 1px solid var(--border); }

/* ---------- Block (card) ---------- */
.block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
.block-header {
  background: var(--cat-bar); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 15px; letter-spacing: .2px;
  display: flex; align-items: center; justify-content: space-between;
}
.block-header a { color: #dfe7ee; font-size: 12px; font-weight: 600; }

/* ---------- Node list (forum list) ---------- */
.node {
  display: grid;
  grid-template-columns: 44px 1fr 120px 230px;
  gap: 12px; align-items: center;
  padding: 14px 15px; border-bottom: 1px solid var(--border-soft);
}
.node:last-child { border-bottom: 0; }
.node-icon {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px;
}
.node-title { font-size: 15.5px; font-weight: 700; margin: 0 0 2px; }
.node-title a { color: var(--text); }
.node-title a:hover { color: var(--accent); }
.node-desc { color: var(--muted); font-size: 12.5px; margin: 0; }
.node-stats { font-size: 12px; color: var(--muted); line-height: 1.4; }
.node-stats b { color: var(--text); font-size: 13px; }
.node-latest { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.node-latest .lp-text { min-width: 0; }
.node-latest .lp-title { display: block; color: var(--link); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.node-latest .lp-meta { display: block; font-size: 11.5px; }

/* ---------- Avatars ---------- */
.av {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; border-radius: 6px; flex: 0 0 auto; text-transform: uppercase;
  width: 32px; height: 32px; font-size: 13px;
}
.av.sm { width: 28px; height: 28px; font-size: 12px; border-radius: 5px; }
.av.lg { width: 56px; height: 56px; font-size: 20px; border-radius: 8px; }

/* ---------- structItem (thread rows) ---------- */
.struct-head {
  display: grid; grid-template-columns: 44px 1fr 90px 210px; gap: 12px;
  padding: 9px 15px; background: var(--surface-alt); border-bottom: 1px solid var(--border);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted);
}
.struct-head span:nth-child(3) { text-align: center; }
.struct {
  display: grid; grid-template-columns: 44px 1fr 90px 210px; gap: 12px; align-items: center;
  padding: 12px 15px; border-bottom: 1px solid var(--border-soft);
}
.struct:last-child { border-bottom: 0; }
.struct-title { font-size: 15px; font-weight: 700; margin: 0 0 3px; }
.struct-title a { color: var(--text); }
.struct-title a:hover { color: var(--accent); }
.struct-title .pill { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 1px 6px; border-radius: 4px; vertical-align: middle; margin-right: 6px; }
.pill-sos { background: #fbe3e3; color: #a3242a; }
.pill-resolved { background: #dff1e4; color: #1f7a3f; }
.struct-meta { font-size: 12px; color: var(--muted); }
.struct-meta a { color: var(--muted); font-weight: 600; }
.struct-stats { text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5; }
.struct-stats b { display: block; color: var(--text); font-size: 14px; }
.struct-latest { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--muted); }
.struct-latest .lp-meta { line-height: 1.35; }
.struct-latest .lp-meta b { color: var(--text); font-weight: 600; }

/* ---------- Latest threads (what's new) ---------- */
.wn-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 15px; border-bottom: 1px solid var(--border-soft); }
.wn-row:last-child { border-bottom: 0; }
.wn-title { font-weight: 700; font-size: 14.5px; margin: 0 0 2px; }
.wn-title a { color: var(--text); }
.wn-title a:hover { color: var(--accent); }
.wn-meta { font-size: 12px; color: var(--muted); }
.wn-meta a { color: var(--link); font-weight: 600; }
.wn-when { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Thread / postbit ---------- */
.thread-top { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 14px; }
.thread-top h1 { font-size: 22px; margin: 0 0 6px; line-height: 1.25; letter-spacing: -.3px; }
.thread-top .t-sub { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.thread-top .t-sub a { color: var(--link); font-weight: 600; }

.message {
  display: grid; grid-template-columns: 180px 1fr;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px;
}
.message-user {
  background: var(--surface-alt); border-right: 1px solid var(--border);
  padding: 16px 14px; text-align: center;
}
.message-user .av { margin: 0 auto 8px; }
.message-user .mu-name { font-weight: 800; color: var(--link-dark); font-size: 15px; }
.message-user .mu-title { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.message-user .mu-role { display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 2px 8px; border-radius: 4px; margin-bottom: 10px; }
.mu-role.op { background: #e7eef6; color: #2a5a86; }
.mu-role.staff { background: #fbe3e3; color: #a3242a; }
.message-user .mu-stats { font-size: 11.5px; color: var(--muted); text-align: left; border-top: 1px solid var(--border); padding-top: 10px; }
.message-user .mu-stats div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.message-user .mu-stats b { color: var(--text); font-weight: 700; }

.message-main { padding: 12px 16px; min-width: 0; }
.message-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-soft); padding-bottom: 8px; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.message-head .mh-date { font-weight: 600; }
.message-head .mh-num { color: #aab2bb; }
.message-content p { margin: 0 0 12px; }
.message-content p:last-child { margin-bottom: 0; }
.message-content ul { margin: 0 0 12px; padding-left: 20px; }
.message-content blockquote {
  border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface-alt);
  margin: 0 0 12px; padding: 8px 14px; border-radius: 0 6px 6px 0; color: #4a535c; font-size: 13.5px;
}
.message-content blockquote .q-author { display: block; font-weight: 700; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.message-footer { border-top: 1px solid var(--border-soft); margin-top: 12px; padding-top: 10px; display: flex; gap: 16px; align-items: center; font-size: 12.5px; }
.message-footer a { color: var(--muted); font-weight: 700; }
.message-footer a:hover { color: var(--accent); }
.message-footer .react { margin-right: auto; color: var(--muted); }
.message-footer .react b { color: var(--accent); }

.reply-cta {
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 18px; text-align: center; color: var(--muted); font-size: 13.5px;
}
.reply-cta .btn { margin-top: 10px; }

/* ---------- Static content pages ---------- */
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; }
.doc h3 { font-size: 16px; margin: 20px 0 8px; }
.doc h3:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 14px; }
.doc ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--nav); color: #aeb9c4; margin-top: 10px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 26px 14px; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: #7f8b97; margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: #cdd6df; font-size: 13px; }
.footer a:hover { color: #fff; }
.footer .cols { display: flex; gap: 46px; flex-wrap: wrap; }
.footer .legal { color: #8d99a5; font-size: 12px; max-width: 340px; }
.footer .legal b { color: #cdd6df; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .head-search input { width: 130px; }
  .node { grid-template-columns: 40px 1fr; }
  .node-stats, .node-latest { display: none; }
  .struct-head { display: none; }
  .struct { grid-template-columns: 40px 1fr auto; }
  .struct-latest { display: none; }
  .message { grid-template-columns: 1fr; }
  .message-user { display: flex; align-items: center; gap: 12px; text-align: left; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 14px; }
  .message-user .av { margin: 0; }
  .message-user .mu-title, .message-user .mu-stats { display: none; }
  .message-user .mu-role { margin: 0 0 0 auto; }
}
@media (max-width: 560px) {
  .mainnav-inner { overflow-x: auto; }
  .head-search { display: none; }
  .wn-when { display: none; }
}

/* ======================================================================
   Community feature pages (members, trending, tags, leaderboard,
   search, help, auth, profiles) — added for the expanded sitemap.
   ====================================================================== */

/* ---------- Two-column layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.sidebar .block-header { font-size: 13px; }
.side-list { padding: 6px 0; }
.side-item { display: flex; gap: 10px; align-items: center; padding: 8px 15px; font-size: 13px; }
.side-item .av { flex: 0 0 auto; }
.side-item .si-main { min-width: 0; }
.side-item .si-name { font-weight: 700; color: var(--text); }
.side-item .si-sub { color: var(--muted); font-size: 12px; }
.side-item a.si-name:hover { color: var(--accent); }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }

/* ---------- Stat tiles ---------- */
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; text-align: center; }
.stat-tile .num { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -.5px; }
.stat-tile .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 680px) { .statgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Online now strip ---------- */
.online-strip { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 14px 16px; }
.online-strip a { font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa84f; display: inline-block; }
.online-strip .staff-mark { color: var(--accent); }

/* ---------- Member cards grid ---------- */
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .member-grid { grid-template-columns: 1fr; } }
.mcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-align: center; }
.mcard .av { margin: 0 auto 10px; }
.mcard .m-name { font-weight: 800; color: var(--link-dark); font-size: 15px; }
.mcard .m-name:hover { color: var(--accent); }
.mcard .m-tag { display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; padding: 2px 8px; border-radius: 4px; margin: 6px 0; }
.m-tag.verif { background: #dff1e4; color: #1f7a3f; }
.m-tag.staff { background: #fbe3e3; color: #a3242a; }
.m-tag.vip { background: #fff2d6; color: #96690f; }
.m-tag.top { background: #e7eef6; color: #2a5a86; }
.mcard .m-stats { display: flex; justify-content: center; gap: 16px; margin-top: 10px; border-top: 1px solid var(--border-soft); padding-top: 10px; font-size: 12px; color: var(--muted); }
.mcard .m-stats b { display: block; color: var(--text); font-size: 15px; }

/* ---------- Leaderboard ---------- */
.lb-row { display: grid; grid-template-columns: 44px 44px 1fr 120px; gap: 12px; align-items: center; padding: 12px 15px; border-bottom: 1px solid var(--border-soft); }
.lb-row:last-child { border-bottom: 0; }
.lb-rank { font-size: 18px; font-weight: 800; color: var(--muted); text-align: center; }
.lb-row.top1 .lb-rank { color: #c89b3c; }
.lb-row.top2 .lb-rank { color: #9aa4ad; }
.lb-row.top3 .lb-rank { color: #b07a44; }
.lb-name { font-weight: 700; }
.lb-name a { color: var(--text); }
.lb-name a:hover { color: var(--accent); }
.lb-name .lb-sub { font-weight: 400; font-size: 12px; color: var(--muted); }
.lb-score { text-align: right; font-weight: 800; color: var(--accent); font-size: 16px; }
.lb-score span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* ---------- Tag cloud ---------- */
.tagcloud { display: flex; flex-wrap: wrap; gap: 9px; padding: 16px; }
.tagcloud a { background: var(--surface-alt); border: 1px solid var(--border); color: var(--link-dark); font-weight: 700; padding: 6px 12px; border-radius: 20px; font-size: 13px; }
.tagcloud a:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }
.tagcloud a .count { color: var(--muted); font-weight: 600; font-size: 11.5px; margin-left: 5px; }
.tagcloud a:hover .count { color: #fff; }

/* ---------- Forms (auth, search) ---------- */
.formcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; max-width: 440px; margin: 0 auto; }
.formcard.wide { max-width: 680px; }
.formcard h2 { margin: 0 0 4px; font-size: 19px; }
.formcard .sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 14px;
  background: var(--surface-alt); font-family: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid var(--link); background: #fff; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.formcard .btn { width: 100%; padding: 11px; font-size: 14px; }
.form-alt { text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.checkrow { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.checkrow input { width: auto; margin-top: 3px; }
.search-bar { display: flex; gap: 8px; }
.search-bar input { flex: 1; }
.search-bar .btn { width: auto; white-space: nowrap; }

/* ---------- FAQ accordion ---------- */
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 14px 18px; font-weight: 700; cursor: pointer; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq .faq-body { padding: 0 18px 16px; color: #3a434c; font-size: 14px; }
.faq .faq-body p { margin: 0 0 10px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Profile header ---------- */
.profile-head { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px; display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: center; }
.profile-head .av { width: 80px; height: 80px; font-size: 30px; border-radius: 10px; }
.profile-head .p-name { font-size: 22px; font-weight: 800; margin: 0; }
.profile-head .p-tagline { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.profile-head .p-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.profile-stats .ps { padding: 14px; text-align: center; border-right: 1px solid var(--border-soft); }
.profile-stats .ps:last-child { border-right: 0; }
.profile-stats .ps b { display: block; font-size: 20px; color: var(--accent); }
.profile-stats .ps span { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .profile-stats { grid-template-columns: repeat(2, 1fr); } .profile-head { grid-template-columns: 60px 1fr; } .profile-head .av { width: 60px; height: 60px; font-size: 22px; } }

/* ---------- Mobile hamburger nav (CSS-only, checkbox toggle) ----------
   The checkbox lives at the top of <body>; the burger button sits in the
   logo header next to the brand; the menu is the nav bar below. */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }   /* hidden on desktop */

@media (max-width: 760px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0 9px; cursor: pointer; flex: 0 0 auto;
    border: 1px solid var(--border); border-radius: 6px; background: var(--surface-alt);
  }
  .nav-burger span { display: block; width: 20px; height: 2px; background: var(--nav); border-radius: 2px; transition: transform .2s, opacity .2s; }
  /* nav bar collapses; it becomes a dropdown toggled from the header burger */
  .mainnav-inner { display: none; flex-direction: column; align-items: stretch; padding: 0; overflow: visible; }
  .nav-toggle:checked ~ .mainnav .mainnav-inner { display: flex; }
  .mainnav-inner a { padding: 13px 16px; border-top: 1px solid var(--nav-2); width: 100%; }
  /* bars morph into an X when open */
  .nav-toggle:checked ~ .site-head .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .site-head .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .site-head .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Right rail widgets (accredited casinos / trending) — light theme ---------- */
.rail { display: flex; flex-direction: column; gap: 16px; }
.rcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rcard-head {
  text-align: center; font-weight: 800; font-size: 14px; letter-spacing: .8px;
  text-transform: uppercase; color: #fff; padding: 13px 16px;
}
.rcard-head.pink { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); }
.rcard-head.plain { background: var(--cat-bar); text-align: left; font-size: 13px; letter-spacing: .8px; padding: 12px 16px; }

.acc-subhead {
  display: flex; justify-content: space-between; padding: 10px 16px;
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--muted);
  background: var(--surface-alt); border-bottom: 1px solid var(--border);
}
.acc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 16px; border-top: 1px solid var(--border-soft); gap: 12px;
}
.acc-row:first-of-type { border-top: 0; }
.acc-row a { color: var(--link-dark); font-weight: 700; font-size: 14px; text-decoration: none; }
.acc-row a:hover { color: var(--accent); text-decoration: underline; }
.acc-row .rate { color: var(--muted); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.acc-row:nth-of-type(2n) { background: #fafbfc; }   /* subtle zebra for readability */
.acc-more { display: block; text-align: center; padding: 12px 16px; color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; border-top: 1px solid var(--border); background: var(--surface-alt); }
.acc-more:hover { color: var(--accent-dark); text-decoration: none; background: #eef1f4; }

.trend-item { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border-soft); }
.trend-item:first-of-type { border-top: 0; }
.trend-num { font-size: 24px; font-weight: 800; color: #c3c9d1; line-height: 1; }
.trend-item a { color: var(--text); font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.trend-item a:hover { color: var(--accent); }
.trend-meta { color: var(--muted); font-size: 11.5px; margin-top: 4px; }

/* On narrow screens the rail drops below the content (via .layout) */
@media (max-width: 860px) { .rail { margin-top: 4px; } }
