[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
nav a[aria-current="page"] { color: var(--gold); }
.forum-hero { padding-block: 56px; border-bottom: 1px solid var(--stroke); background: radial-gradient(ellipse at 76% 15%, #194332, #0a1a15 70%); }
.forum-hero h1 { margin: 0 0 12px; font-size: clamp(38px, 6vw, 70px); letter-spacing: -.075em; }
.forum-hero p { color: var(--muted); font-size: 17px; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; align-items: start; gap: 28px; padding-block: 42px 68px; }
.board { min-width: 0; }
.board-heading, .board-filters, .editor-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 13px; }
.board-heading h2 { font-size: clamp(24px, 4vw, 32px); }
.board-filters { margin-top: 18px; margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pills button { padding: 7px 10px; color: var(--muted); border: 1px solid var(--stroke); border-radius: 6px; background: var(--bg); font-size: 14px; }
.pills button[aria-pressed="true"] { color: var(--gold); border-color: #46816b; background: #173128; }
#search-form { display: flex; gap: 6px; }
#search-form input { min-width: 0; width: 154px; }
#search-form .button { min-height: 38px; padding: 6px 10px; }
input, textarea, select { display: block; background: #091713; border: 1px solid #3b594e; border-radius: 6px; padding: 8px 10px; }
textarea { resize: vertical; }
.post-list, .thread-card, .aside-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 9px; overflow: hidden; }
.placeholder { padding: 31px 16px; color: var(--muted); text-align: center; }
.post-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 14px; align-items: center; padding: 15px 18px; }
.post-row + .post-row { border-top: 1px solid var(--stroke); }
.post-row:hover { background: #173127; }
.post-row h3 { font-size: 19px; margin: 3px 0; overflow-wrap: anywhere; }
.meta, .comment-count { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.comment-count { white-space: nowrap; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 17px; }
.board-aside { display: grid; gap: 12px; }
.aside-card { padding: 17px; }
.aside-card h2 { margin-bottom: 7px; font-size: 19px; }
.aside-card ul { margin: 0; padding-left: 18px; }
.aside-card li, .aside-card p { margin-block: 5px; color: var(--muted); font-size: 14px; }
.aside-card a { display: block; color: var(--gold); font-size: 15px; padding-top: 6px; }
.back-link { color: var(--gold); font-weight: 700; display: inline-block; margin-bottom: 12px; }
.thread-card { padding: 21px; }
.thread-card h2 { font-size: clamp(25px, 5vw, 38px); margin: 4px 0 8px; overflow-wrap: anywhere; }
.post-content, .comment-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-content { margin-top: 20px; }
.thread-actions { margin-top: 17px; display: flex; gap: 7px; }
.thread-actions .button, .comment .button { padding: 5px 10px; min-height: 34px; font-size: 14px; }
.comments { margin-top: 22px; }
.comments h3 { margin-bottom: 9px; }
.comment { border-bottom: 1px solid var(--stroke); padding: 11px 0; }
.comment .button { margin-top: 7px; }
.comment-form, #comment-login { margin-top: 17px; }
.comment-form, #post-form { display: grid; gap: 11px; }
.comment-form label, #post-form label { display: grid; gap: 4px; }
.comment-form button, #hand-template { justify-self: start; }
.feedback { color: #f4bbab; margin-top: 6px; min-height: 1em; }
.feedback:empty { display: none; }
dialog { width: min(600px, calc(100% - 26px)); margin: auto; max-height: calc(100% - 26px); overflow: auto; border: 1px solid var(--stroke); border-radius: 10px; background: var(--surface); color: var(--cream); padding: 20px; }
dialog::backdrop { background: #000a; }
.editor-heading h2 { font-size: 27px; }
.editor-heading button { font-size: 24px; min-height: 40px; padding: 1px 10px; }
.editor-actions { display: flex; justify-content: end; }
@media (max-width: 780px) {
  .forum-layout { grid-template-columns: 1fr; gap: 24px; }
  .board-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .forum-hero { padding-block: 36px; }
  .forum-layout { padding-block: 27px 42px; }
  .board-aside { grid-template-columns: 1fr; }
  .post-row { padding: 12px; }
}
.tournament-hub { padding-top:26px; }
.tournament-circuits { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.tournament-circuits button { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:7px; padding:21px 19px; text-align:left; border:1px solid #355448; border-radius:10px; background:linear-gradient(140deg,#18382b,#0f211b); cursor:pointer; transition:border-color .18s,background .18s; }
.tournament-circuits span { color:#99b4a4; font-size:9px; letter-spacing:.16em; font-weight:700; }
.tournament-circuits strong { color:#edf4ec; font-size:28px; line-height:1.2; letter-spacing:-.03em; }
.tournament-circuits small { color:#b2c1b5; font-size:12px; }
.tournament-circuits button[aria-pressed="true"] { border-color:#59e7ac; background:linear-gradient(140deg,#24573d,#163526); box-shadow:inset 0 3px #59e7ac; }
.tournament-circuits button:hover { border-color:#70ba96; }
.tournament-circuits button:focus-visible { outline:3px solid #8becba; outline-offset:3px; }
.tournament-note { margin-top:15px; color:var(--muted); font-size:13px; line-height:1.8; }
@media(max-width:850px) { .tournament-circuits { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:500px) { .tournament-circuits { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .tournament-circuits button { padding:16px; } .tournament-circuits button:first-child { grid-column:1/-1; } }
.post-source{display:flex;flex-wrap:wrap;gap:5px;margin-top:20px;padding:13px 15px;background:#0c251b;border:1px solid #3c624c;border-radius:8px;font-size:14px;line-height:1.8;color:#b9cbbd}.post-source a{color:#9fe9bb;text-decoration:underline;text-underline-offset:3px}

.poster-gallery{margin:2rem 0;border-top:1px solid #345045;padding-top:1.5rem;min-width:0}.poster-gallery h2{font-size:1.3rem;margin:0 0 .5rem}.poster-hint{color:#adc7bb;font-size:.95rem}.poster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.poster-thumb{display:flex;flex-direction:column;gap:.65rem;align-items:center;min-width:0;padding:.65rem;background:#0b1d16;border:1px solid #385347;border-radius:12px;color:#def0e5;cursor:zoom-in}.poster-thumb:hover{border-color:#77dfb2}.poster-thumb img{display:block;width:100%;height:260px;object-fit:contain;background:#06100c}.poster-thumb span{font-size:.9rem}.poster-lightbox{box-sizing:border-box;width:min(1100px,96vw);max-width:96vw;height:94dvh;max-height:94dvh;margin:auto;padding:0;background:#07120d;color:#e6f1eb;border:1px solid #4d7561;border-radius:12px;overflow:hidden}.poster-lightbox::backdrop{background:#000d}.poster-lightbox[open]{display:flex;flex-direction:column}.poster-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;padding:.75rem;border-bottom:1px solid #345045;flex-shrink:0}.poster-toolbar button,.poster-toolbar a{box-sizing:border-box;padding:.55rem .7rem;font:inherit;font-size:.9rem;background:#183126;color:#e6f1eb;border:1px solid #4d7561;border-radius:7px;text-decoration:none;cursor:pointer}.poster-counter{margin:0 .25rem;font-size:.9rem}.poster-viewport{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}.poster-full{display:block;width:100%;height:auto;margin:0 auto}.poster-thumb:focus-visible,.poster-toolbar button:focus-visible,.poster-toolbar a:focus-visible{outline:3px solid #79e0b2;outline-offset:3px}@media(max-width:600px){.poster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.poster-thumb img{height:220px}.poster-lightbox{width:96vw}.poster-toolbar{gap:.35rem;padding:.5rem}.poster-toolbar button,.poster-toolbar a{padding:.5rem}.poster-counter{font-size:.85rem}}

/* Article reading layout: shared edges for the post, replies and composer. */
.is-thread .forum-hero{padding-block:32px}
.is-thread .forum-hero h1{font-size:clamp(32px,4vw,48px);margin-bottom:10px;line-height:1.2}
.is-thread .forum-hero p{font-size:16px;line-height:1.7}
.is-thread .forum-layout{grid-template-columns:minmax(0,1fr) 280px;gap:24px;padding-top:28px}
.is-thread .back-link{display:flex;align-items:center;width:fit-content;height:22px;margin-bottom:14px;font-size:14px;line-height:22px}
.is-thread .board-aside{margin-top:36px;gap:16px;min-width:0}
.is-thread .thread-card{padding:28px 30px;border-radius:14px}
.thread-heading{padding-bottom:22px;margin-bottom:24px;border-bottom:1px solid var(--stroke)}
.thread-heading .category{font-size:14px;line-height:1.5;color:var(--gold);font-weight:700}
.thread-card .thread-heading h2{font-size:clamp(26px,2.8vw,34px);line-height:1.35;letter-spacing:-.04em;margin:10px 0 14px;word-break:keep-all;overflow-wrap:anywhere}
.thread-heading .meta{font-size:14px;line-height:1.8}
.is-thread .post-content{margin-top:0;font-size:17px;line-height:1.95;color:#dce8e0;word-break:keep-all;overflow-wrap:anywhere}
.is-thread .thread-actions{padding-top:20px;justify-content:flex-end}
.is-thread .recommend-action{margin-top:28px;padding-top:22px;border-top:1px solid var(--stroke)}
.is-thread .recommend-action button{min-height:44px}
.is-thread .recommend-hint{font-size:13px;line-height:1.8}
.is-thread .comments{padding:24px 28px;background:var(--surface);border:1px solid var(--stroke);border-radius:14px;margin-top:20px}
.is-thread .comments h3,.is-thread .comment-form h3{font-size:20px;margin:0 0 12px}
.is-thread .comment-content{font-size:16px;line-height:1.85;margin-top:10px}
.is-thread .comment-form{padding:24px 28px;background:var(--surface);border:1px solid var(--stroke);border-radius:14px;margin-top:16px;gap:14px}
.is-thread .comment-form .growth-caption{font-size:14px;line-height:1.7;margin:0!important}
.is-thread .comment-form textarea{width:100%;min-height:132px;padding:14px;font-size:16px;line-height:1.7}
.is-thread .comment-form button{min-height:44px}
.is-thread #comment-login{display:inline-flex;margin-top:20px}
.is-thread .aside-card{border-radius:12px;padding:20px}
.is-thread .aside-card h2{font-size:17px;line-height:1.4;margin-bottom:10px}
.is-thread .aside-card p,.is-thread .aside-card li{font-size:14px;line-height:1.8}
.is-thread .aside-card a{font-size:14px;line-height:1.7}
.is-thread .aside-card .leaf-total{font-size:34px!important}
.is-thread .aside-card .member-rank{margin-top:0;padding-top:0;font-weight:700}
.is-thread .aside-card .next-rank{font-size:15px;line-height:1.55}
@media(max-width:1000px) and (min-width:781px){.is-thread .forum-layout{grid-template-columns:minmax(0,1fr) 240px;gap:20px}.is-thread .thread-card{padding:24px}.is-thread .aside-card{padding:17px}}
@media(max-width:780px){.is-thread .forum-layout{grid-template-columns:minmax(0,1fr);gap:28px}.is-thread .board-aside{margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr))}.is-thread .thread-card{padding:24px}.is-thread .comments,.is-thread .comment-form{padding:22px}.is-thread .post-content{font-size:16px;line-height:1.9}}
@media(max-width:480px){.is-thread .forum-hero{padding-block:26px}.is-thread .forum-layout{padding-top:22px}.is-thread .thread-card{padding:20px 18px}.thread-card .thread-heading h2{font-size:26px}.thread-heading{padding-bottom:18px;margin-bottom:20px}.thread-heading .meta{font-size:13px}.is-thread .board-aside{grid-template-columns:minmax(0,1fr)}.is-thread .comments,.is-thread .comment-form{padding:20px 18px}.is-thread .thread-actions{flex-wrap:wrap}}

/* Render stored post text as readable blocks without allowing raw HTML. */
.is-thread .post-body,.post-body{white-space:normal;font-size:17px;line-height:1.85;overflow-wrap:anywhere}
.post-body>p{white-space:pre-wrap;margin:0 0 1.1em}
.thread-card .post-body>h3,.thread-card .post-body>h4,.thread-card .post-body>h5,.thread-card .post-body>h6{line-height:1.5;letter-spacing:-.025em;margin:1.6em 0 .7em;color:#f0f5ef;overflow-wrap:anywhere}
.thread-card .post-body>h3{font-size:25px}.thread-card .post-body>h4{font-size:22px}.thread-card .post-body>h5,.thread-card .post-body>h6{font-size:19px}
.post-body>ul,.post-body>ol{margin:.65em 0 1.25em;padding-left:1.6em}
.post-body li{margin:.35em 0;white-space:pre-wrap;padding-left:.15em}
.post-body strong{font-weight:800;color:#f4ead1}
.post-body hr{height:1px;background:#385847;border:0;margin:1.7em 0}
.post-body blockquote{margin:1.3em 0;padding:.7em 1em;border-left:3px solid #7cdfab;background:#173328;white-space:pre-wrap;color:#c4d9cc}
.post-body code{font-family:ui-monospace,monospace;font-size:.9em;background:#081b13;border:1px solid #345440;padding:2px 5px;border-radius:4px}
.post-body pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#071a13;border:1px solid #345440;border-radius:8px;padding:16px;margin:1.2em 0}
.post-body pre code{background:none;border:0;padding:0}.post-body a{color:#8aebba;text-decoration:underline;text-underline-offset:4px}
.post-body>:first-child{margin-top:0!important}.post-body>:last-child{margin-bottom:0}
.post-format-help{font-size:14px;line-height:1.7;color:var(--muted)}
@media(max-width:700px){.is-thread .post-body{font-size:16px;line-height:1.85}.thread-card .post-body>h3{font-size:22px}.thread-card .post-body>h4{font-size:20px}.thread-card .post-body>h5,.thread-card .post-body>h6{font-size:18px}}

/* A single schedule poster uses the article width so its timetable stays readable. */
.poster-grid:has(>.poster-thumb:only-child){grid-template-columns:minmax(0,1fr)}
.poster-thumb:only-child img{height:auto;width:100%;max-width:720px;object-fit:contain}

/* Mobile lists keep titles on a full-width reading line. */
@media(max-width:600px){
 .forum-layout{gap:20px;padding-block:24px 36px}
 .board-heading h2{margin:0;font-size:24px}
 .board-filters{gap:12px;margin-top:16px}
 #search-form{width:100%}#search-form input{flex:1;width:0;min-height:44px;font-size:16px}#search-form .button{min-height:44px;padding-inline:16px}
 .post-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:16px}
 .post-row>div{min-width:0}
 .post-row h3{font-size:18px;line-height:1.5;letter-spacing:-.025em;word-break:keep-all;overflow-wrap:anywhere;margin:8px 0}
 .post-row .category{display:inline-block;font-size:14px;font-weight:700;line-height:1.4}
 .post-row .meta{margin:0;font-size:14px;line-height:1.7}
 .post-row .comment-count{font-size:14px;white-space:normal;justify-self:start}
 :is([data-board="notices"],[data-board="columns"]) .post-row .comment-count{display:none}
 :is([data-board="notices"],[data-board="columns"]) .post-row .category{padding:3px 8px;border:1px solid #315a48;border-radius:5px;background:#173428;color:var(--gold)}
 .board-aside{gap:12px;min-width:0}
 .board-aside .aside-card{padding:16px;border-radius:12px;min-width:0}
 .board-aside .aside-card h2{font-size:18px;line-height:1.4;margin:0 0 8px;letter-spacing:-.025em}
 .board-aside .aside-card p{font-size:14px;line-height:1.7;margin:0 0 10px;word-break:keep-all;overflow-wrap:anywhere}
 .board-aside .aside-card a{font-size:14px;line-height:1.6}
 .board-aside .aside-card a.button{display:flex;align-items:center;justify-content:center;min-height:44px;padding:11px 14px;width:100%;font-size:15px;text-align:center;margin-top:14px;white-space:normal}
 .board-aside .aside-card a:not(.button){width:fit-content;max-width:100%;padding-block:6px;overflow-wrap:anywhere}
}
