:root {
  --white:#fff; --porcelain:#f3f7fc; --navy:#071a35; --deep:#0a2250; --blue:#3269d8;
  --green:#3e9674; --mint:#a5e7d1; --gold:#c89d3b; --muted:#66768c; --line:rgba(8,42,94,.12);
  --serif:Georgia,"Times New Roman",serif; --sans:"Segoe UI Variable","Segoe UI",Inter,Arial,sans-serif;
  --page:min(1260px,calc(100vw - 48px)); --shadow:0 22px 65px rgba(7,31,72,.1); --ease:cubic-bezier(.16,1,.3,1);
}

/* Functional forum system */
.forum-nav-links button,.forum-account-nav button,.text-action{padding:0;color:inherit;border:0;background:none;font:inherit;cursor:pointer}.forum-account-nav{display:flex;align-items:center;gap:8px}.forum-account-nav>button{min-height:38px;padding:0 13px;color:#324864;border:1px solid rgba(8,42,94,.11);border-radius:999px;background:rgba(255,255,255,.74);font-size:9px;font-weight:850}.forum-account-nav .register-nav{color:#fff;border-color:#1769e0;background:#1769e0}.member-chip{display:flex;align-items:center;gap:8px}.member-chip span{display:grid;width:25px;height:25px;place-items:center;color:#fff;border-radius:50%;font-size:8px}.new-count{display:inline-grid;min-width:17px;height:17px;margin-left:4px;place-items:center;color:#fff;border-radius:99px;background:#d4485c;font-size:7px}.text-action{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 22px;color:#fff;border:1px solid rgba(255,255,255,.2);border-radius:999px;font-weight:850}.expanded-toolbar{grid-template-columns:auto 150px auto minmax(220px,1fr)}.forum-filter-buttons{display:flex;gap:7px}.forum-filter-buttons button,.advanced-search-button,.status-filter select{min-height:43px;padding:0 14px;color:#3e5575;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:8px;font-weight:850;cursor:pointer}.forum-filter-buttons button.active{color:#fff;border-color:var(--blue);background:var(--blue)}.status-filter select{width:100%;outline:0}.advanced-search-button{white-space:nowrap}.thread-list-labels,.thread-labels{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.prefix-label,.status-label,.pin-label,.new-label,.thread-prefix,.thread-status{display:inline-flex;min-height:20px;padding:0 8px;align-items:center;border-radius:999px;font-size:7px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.prefix-label,.thread-prefix{color:#1c63bd;background:#e7f1ff}.prefix-question{color:#7d5b17;background:#fff3cf}.prefix-proposal{color:#5d4287;background:#eee7fa}.prefix-official{color:#9c2e45;background:#ffe6eb}.status-label,.thread-status{color:#28705d;background:#e6f6f0}.status-solved{color:#225fa6;background:#e7f1ff}.status-locked{color:#7a4d55;background:#f5e9ec}.pin-label{color:#7e5414;background:#fff0ca}.new-label{color:#fff;background:#d4485c}.thread-card.is-new{box-shadow:inset 3px 0 #d4485c}.thread-card.is-pinned{background:linear-gradient(90deg,#fffbf0,#fff 36%)}.thread-header-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}.thread-header-actions button,.thread-header-actions select{min-height:40px;padding:0 14px;color:#36506f;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:8px;font-weight:850;cursor:pointer}.thread-header-actions button.active{color:#fff;border-color:#1769e0;background:#1769e0}.post-author button{border:0;cursor:pointer}.post-author-name{padding:0;color:var(--deep);background:none;font-weight:900}.post-author>span:last-child{color:var(--muted);font-size:7px}.post-content{display:flex;min-width:0;flex-direction:column}.post-content>p{white-space:pre-wrap;overflow-wrap:anywhere}.post-actions{display:flex;margin-top:auto;padding-top:24px;align-items:center;flex-wrap:wrap;gap:7px;border-top:1px solid rgba(8,42,94,.08)}.post-actions button{min-height:30px;padding:0 10px;color:#526984;border:1px solid rgba(8,42,94,.1);border-radius:999px;background:#f7faff;font-size:7px;font-weight:850;cursor:pointer}.post-actions button.liked{color:#a62d43;border-color:#f0c7d0;background:#fff0f3}.post-actions .danger-action{margin-left:auto;color:#a62d43}.quoted-post{margin:0 0 18px;padding:15px 17px;color:#506782;border-left:3px solid #1769e0;border-radius:0 12px 12px 0;background:#f2f7ff;font-size:9px;line-height:1.55}.quoted-post p{margin-top:5px}.edited-note{margin-top:10px;color:var(--muted);font-size:7px;font-style:italic}.quote-preview{display:flex;padding:14px;align-items:flex-start;justify-content:space-between;color:#506782;border-left:3px solid #1769e0;border-radius:0 12px 12px 0;background:#f2f7ff;gap:15px}.quote-preview p{margin-top:4px;font-size:8px}.quote-preview button{border:0;background:none;cursor:pointer}.reply-login-gate{display:grid;margin-top:26px;padding:32px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 16px 46px rgba(7,31,72,.06);gap:8px}.reply-login-gate strong{font-family:var(--serif);font-size:30px;font-weight:400}.reply-login-gate p{color:var(--muted);font-size:9px}.reply-login-gate button{width:max-content;min-height:38px;margin-top:6px;padding:0 17px;color:#fff;border:0;border-radius:999px;background:#1769e0;font-size:8px;font-weight:850;cursor:pointer}.auth-tabs{display:flex;gap:8px}.auth-tabs button{min-height:38px;padding:0 17px;color:#4a607b;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:8px;font-weight:850;cursor:pointer}.auth-tabs button.active{color:#fff;border-color:#1769e0;background:#1769e0}.auth-dialog form{display:grid;gap:16px}.auth-dialog form h2{margin-top:4px}.auth-dialog label small{position:static;margin-top:3px}.check-label{display:flex!important;grid-template-columns:auto 1fr;align-items:center}.check-label input{width:18px!important;min-height:18px!important}.color-picker{display:flex;padding:16px;border:1px solid var(--line);border-radius:14px;gap:11px}.color-picker legend{padding:0 6px;color:#4a607b;font-size:8px;font-weight:850}.color-picker label{display:block}.color-picker input{position:absolute;opacity:0;pointer-events:none}.color-picker span{display:block;width:32px;height:32px;border:3px solid #fff;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px var(--line);cursor:pointer}.color-picker input:checked+span{box-shadow:0 0 0 3px #1769e0}.profile-link-button{padding:10px;color:#1769e0;border:0;background:none;font-size:8px;font-weight:850;cursor:pointer}.member-view{min-height:calc(100vh - 100px);padding:145px 0 110px;background:linear-gradient(135deg,#f7faff,#eef5ff)}.profile-back{margin-bottom:24px;color:#1769e0;border:0;background:none;font-size:9px;font-weight:850;cursor:pointer}.member-profile-card{display:grid;padding:45px;border:1px solid var(--line);border-radius:25px;background:#fff;box-shadow:0 20px 60px rgba(7,31,72,.07);gap:25px}.member-profile-head{display:flex;align-items:center;gap:22px}.member-profile-avatar{display:grid;width:88px;height:88px;place-items:center;color:#fff;border-radius:24px;font-family:var(--serif);font-size:38px}.member-profile-card h1{margin-top:5px;font-family:var(--serif);font-size:52px;font-weight:400}.member-profile-card p{color:var(--muted)}.member-bio{max-width:760px;padding-top:22px;border-top:1px solid var(--line);font-size:11px;line-height:1.7}.member-profile-card dl{display:flex;gap:35px}.member-profile-card dt{color:var(--muted);font-size:7px;font-weight:850;text-transform:uppercase}.member-profile-card dd{margin-top:5px;font-family:var(--serif);font-size:22px}.profile-activity{margin-top:35px}.profile-activity h2{margin:8px 0 22px;font-family:var(--serif);font-size:38px;font-weight:400}#profileActivity{display:grid;gap:8px}.profile-activity-item{display:flex;padding:18px 20px;align-items:center;justify-content:space-between;color:#1d3557;border:1px solid var(--line);border-radius:13px;background:#fff;text-align:left;cursor:pointer}.profile-activity-item span{color:var(--muted);font-size:8px}.edit-post-dialog{width:min(720px,calc(100vw - 28px));padding:0;border:0;border-radius:24px;background:#fff;box-shadow:0 40px 130px rgba(7,27,54,.3)}.edit-post-dialog::backdrop{background:rgba(5,18,37,.66);backdrop-filter:blur(12px)}.edit-post-dialog form{position:relative;display:grid;padding:38px;gap:16px}.edit-post-dialog h2{font-family:var(--serif);font-size:42px;font-weight:400}.edit-post-dialog textarea{min-height:220px;padding:15px;color:var(--navy);border:1px solid var(--line);border-radius:14px;background:#f7faff;resize:vertical}
@media(max-width:1180px){.forum-account-nav{display:none}.expanded-toolbar{grid-template-columns:1fr 150px}.forum-filter-buttons,.forum-search{grid-column:1/-1}}
@media(max-width:760px){.expanded-toolbar{grid-template-columns:1fr}.forum-filter-buttons{overflow-x:auto}.forum-filter-buttons,.forum-search{grid-column:auto}.thread-header-actions{width:100%;justify-content:flex-start}.post-actions .danger-action{margin-left:0}.member-profile-card{padding:25px 20px}.member-profile-head{align-items:flex-start;flex-direction:column}.member-profile-card h1{font-size:38px}.profile-activity-item{align-items:flex-start;flex-direction:column;gap:7px}}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:105px; }
body { margin:0; min-width:320px; color:var(--navy); background:var(--porcelain); font-family:var(--sans); line-height:1.55; -webkit-font-smoothing:antialiased; }
body::before { position:fixed; inset:0; z-index:999; pointer-events:none; content:""; opacity:.2; background-image:radial-gradient(circle at 15% 18%,rgba(8,42,94,.04) 0 .6px,transparent .8px),radial-gradient(circle at 75% 62%,rgba(11,155,112,.035) 0 .5px,transparent .8px); background-size:7px 7px,9px 9px; }
body.dialog-open { overflow:hidden; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
p,h1,h2,h3,h4,dl,dd { margin:0; }
button,input,select,textarea { font:inherit; }
button { color:inherit; }
.page-width { width:var(--page); margin-inline:auto; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:12px; left:12px; z-index:1000; padding:10px 15px; color:white; border-radius:10px; background:var(--blue); transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }
:focus-visible { outline:3px solid rgba(63,142,255,.65); outline-offset:4px; }
[hidden] { display:none !important; }

.eyebrow { color:var(--mint); font-size:10px; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.eyebrow.dark { color:var(--blue); }
.primary-button { display:inline-flex; min-height:52px; padding:0 21px; align-items:center; justify-content:center; gap:22px; color:white; border:0; border-radius:14px; background:linear-gradient(135deg,#4670df,#3157ba); box-shadow:0 16px 34px rgba(42,89,200,.24); font-size:10px; font-weight:850; cursor:pointer; }
.primary-button:disabled { opacity:.6; cursor:wait; }

.forum-header { position:absolute; top:18px; left:0; z-index:20; width:100%; }
.forum-nav { display:flex; width:min(1320px,calc(100vw - 34px)); min-height:74px; margin-inline:auto; padding:10px 12px; align-items:center; gap:34px; border:1px solid rgba(255,255,255,.72); border-radius:22px; background:rgba(255,255,255,.96); box-shadow:0 24px 70px rgba(0,10,30,.2); backdrop-filter:blur(18px); }
.forum-brand { display:flex; min-width:270px; align-items:center; gap:12px; }
.forum-flag { display:grid; width:55px; height:41px; padding:4px; place-items:center; border:1px solid var(--line); border-radius:11px; background:#f8fbff; }
.forum-flag img { width:100%; height:100%; object-fit:cover; border-radius:7px; }
.forum-brand > span:last-child { display:flex; flex-direction:column; }
.forum-brand strong { color:var(--deep); font-family:var(--serif); font-size:18px; }
.forum-brand small { color:#68788e; font-size:7px; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.forum-nav-links { display:flex; margin-left:auto; align-items:center; gap:27px; }
.forum-nav-links a { color:#53647b; font-size:10px; font-weight:800; }
.forum-nav-links a:hover { color:var(--blue); }
.forum-back { display:inline-flex; min-height:50px; padding:0 18px; align-items:center; gap:9px; color:white; border-radius:15px; background:var(--deep); font-size:9px; font-weight:850; }

.forum-hero { position:relative; min-height:520px; overflow:hidden; color:white; background:radial-gradient(circle at 82% 25%,rgba(55,159,126,.4),transparent 27%),linear-gradient(126deg,#05152e,#0a2d5a 65%,#11555c); }
.thread-open .forum-hero { display:none; }
.forum-hero-pattern { position:absolute; inset:0; opacity:.34; background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px); background-size:66px 66px; mask-image:linear-gradient(90deg,black,transparent 90%); }
.forum-hero::after { position:absolute; top:-245px; right:-100px; width:620px; height:620px; content:""; border:1px solid rgba(255,255,255,.12); border-radius:50%; box-shadow:0 0 0 80px rgba(255,255,255,.025),0 0 0 160px rgba(255,255,255,.014); }
.forum-hero-layout { position:relative; z-index:2; display:flex; min-height:520px; padding-top:130px; padding-bottom:62px; align-items:end; justify-content:space-between; gap:70px; }
.forum-hero h1 { margin-top:17px; font-family:var(--serif); font-size:clamp(70px,8vw,112px); font-weight:400; letter-spacing:-.065em; line-height:.82; }
.forum-hero h1 em { color:var(--mint); font-weight:400; }
.forum-hero-copy > p:last-child { max-width:710px; margin-top:28px; color:rgba(255,255,255,.66); font-size:15px; line-height:1.7; }
.forum-hero-actions { display:flex; min-width:220px; padding-bottom:5px; align-items:stretch; flex-direction:column; gap:15px; }
.forum-hero-actions > a { display:flex; min-height:46px; align-items:center; justify-content:space-between; color:rgba(255,255,255,.75); border-bottom:1px solid rgba(255,255,255,.25); font-size:10px; font-weight:800; }

.forum-home-view { padding:100px 0 130px; }
.forum-overview-header { display:flex; align-items:end; justify-content:space-between; gap:50px; }
.forum-overview-header h2,.latest-header h2 { margin-top:11px; font-family:var(--serif); font-size:clamp(48px,5vw,72px); font-weight:400; letter-spacing:-.055em; line-height:.96; }
.forum-overview-stats { display:flex; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:white; box-shadow:0 12px 36px rgba(7,31,72,.06); }
.forum-overview-stats div { display:flex; min-width:112px; padding:16px 19px; justify-content:center; border-left:1px solid var(--line); flex-direction:column; }
.forum-overview-stats div:first-child { border-left:0; }
.forum-overview-stats strong { font-family:var(--serif); font-size:31px; font-weight:400; line-height:1; }
.forum-overview-stats span { margin-top:5px; color:var(--muted); font-size:7px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }

.forum-board { display:grid; margin-top:46px; gap:23px; }
.forum-group { overflow:hidden; border:1px solid var(--line); border-radius:24px; background:rgba(255,255,255,.9); box-shadow:var(--shadow); }
.forum-group-header { display:flex; min-height:54px; padding:0 24px; align-items:center; justify-content:space-between; color:white; background:linear-gradient(110deg,#0a2450,#174a75); }
.forum-group-header h3 { font-family:var(--serif); font-size:21px; font-weight:400; }
.forum-group-header span { color:rgba(255,255,255,.58); font-size:8px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.forum-row { display:grid; width:100%; min-height:112px; padding:20px 23px; align-items:center; color:var(--navy); border:0; border-top:1px solid var(--line); background:transparent; grid-template-columns:54px minmax(0,1fr) 160px 280px; gap:18px; text-align:left; cursor:pointer; transition:background .2s ease; }
.forum-row:first-of-type { border-top:0; }
.forum-row:hover { background:#f4f8ff; }
.forum-row-icon { display:grid; width:54px; height:54px; place-items:center; color:white; border-radius:16px; background:linear-gradient(145deg,var(--category-color,#3269d8),#0c346c); box-shadow:0 11px 24px color-mix(in srgb,var(--category-color,#3269d8) 24%,transparent); font-family:var(--serif); font-size:21px; }
.forum-row-copy { min-width:0; }
.forum-row-copy strong { display:block; font-family:var(--serif); font-size:25px; font-weight:400; letter-spacing:-.035em; }
.forum-row-copy span { display:block; margin-top:5px; color:var(--muted); font-size:10px; line-height:1.55; }
.forum-row-counts { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.forum-row-counts span { display:flex; color:var(--muted); font-size:7px; font-weight:800; text-transform:uppercase; flex-direction:column; }
.forum-row-counts strong { margin-bottom:3px; color:var(--deep); font-family:var(--serif); font-size:23px; font-weight:400; line-height:1; }
.forum-row-latest { min-width:0; padding-left:18px; border-left:1px solid var(--line); }
.forum-row-latest strong { display:block; overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.forum-row-latest span { display:block; margin-top:5px; color:var(--muted); font-size:8px; }
.forum-row-empty { color:#8a97a8; font-size:9px; }

.latest-section { padding-top:115px; }
.latest-header { display:flex; align-items:end; justify-content:space-between; gap:40px; }
.latest-header > div > p:last-child { max-width:620px; margin-top:15px; color:var(--muted); font-size:12px; }
.new-thread-button { display:inline-flex; min-height:48px; padding:0 18px; align-items:center; justify-content:center; gap:18px; color:white; border:0; border-radius:13px; background:var(--deep); font-size:9px; font-weight:850; cursor:pointer; }
.new-thread-button span { font-size:18px; font-weight:400; }
.forum-toolbar { display:grid; margin-top:35px; padding:10px; align-items:center; border:1px solid var(--line); border-radius:17px; background:white; box-shadow:0 12px 38px rgba(7,31,72,.06); grid-template-columns:auto minmax(240px,420px); gap:12px; }
.all-forums-button { min-height:43px; padding:0 17px; color:var(--muted); border:1px solid transparent; border-radius:11px; background:#f4f7fb; font-size:9px; font-weight:850; cursor:pointer; }
.all-forums-button.active { color:white; background:var(--blue); }
.forum-search { position:relative; justify-self:end; width:100%; }
.forum-search input { width:100%; min-height:43px; padding:0 42px 0 14px; color:var(--navy); border:1px solid var(--line); border-radius:11px; outline:0; background:#f8fbff; font-size:10px; }
.forum-search input:focus { border-color:rgba(23,105,224,.55); box-shadow:0 0 0 4px rgba(23,105,224,.08); }
.forum-search i { position:absolute; top:50%; right:15px; color:var(--blue); font-style:normal; transform:translateY(-50%); }
.forum-content-grid { display:grid; margin-top:18px; align-items:start; grid-template-columns:minmax(0,1fr) 295px; gap:18px; }
.thread-panel { overflow:hidden; border:1px solid var(--line); border-radius:21px; background:white; box-shadow:0 17px 52px rgba(7,31,72,.07); }
.thread-table-heading { display:grid; min-height:44px; padding:0 20px 0 84px; align-items:center; color:#8290a3; border-bottom:1px solid var(--line); background:#f8fafe; grid-template-columns:minmax(0,1fr) 80px 190px; gap:15px; font-size:7px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.thread-card { display:grid; width:100%; min-height:104px; padding:18px 20px; align-items:center; color:var(--navy); border:0; border-top:1px solid var(--line); background:white; grid-template-columns:50px minmax(0,1fr) 80px 190px; gap:15px; text-align:left; cursor:pointer; transition:background .2s ease; }
.thread-card:first-child { border-top:0; }
.thread-card:hover { background:#f5f8ff; }
.thread-avatar,.post-avatar { display:grid; width:50px; height:50px; place-items:center; color:white; border-radius:50%; background:linear-gradient(145deg,var(--blue),var(--green)); font-family:var(--serif); font-size:19px; }
.thread-copy { min-width:0; }
.thread-copy h3 { overflow:hidden; font-family:var(--serif); font-size:21px; font-weight:400; letter-spacing:-.025em; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.thread-copy p { display:-webkit-box; margin-top:5px; overflow:hidden; color:var(--muted); font-size:9px; line-height:1.45; -webkit-line-clamp:1; -webkit-box-orient:vertical; }
.thread-category { display:inline-flex; margin-bottom:7px; padding:4px 7px; color:var(--blue); border-radius:999px; background:rgba(23,105,224,.08); font-size:6px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.thread-replies { color:var(--muted); text-align:center; }
.thread-replies strong { display:block; color:var(--deep); font-family:var(--serif); font-size:22px; font-weight:400; }
.thread-replies span { font-size:7px; font-weight:800; text-transform:uppercase; }
.thread-latest { min-width:0; padding-left:16px; border-left:1px solid var(--line); }
.thread-latest strong { display:block; overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.thread-latest span { display:block; margin-top:4px; color:var(--muted); font-size:8px; }
.forum-empty { padding:70px 25px; color:var(--muted); text-align:center; }
.forum-empty strong { display:block; color:var(--deep); font-family:var(--serif); font-size:31px; font-weight:400; }
.forum-empty p { margin-top:9px; font-size:10px; }
.forum-empty button { margin-top:19px; }
.forum-pagination { display:flex; min-height:58px; padding:10px 18px; align-items:center; justify-content:center; border-top:1px solid var(--line); gap:7px; }
.forum-pagination button { display:grid; min-width:34px; height:34px; place-items:center; border:1px solid var(--line); border-radius:9px; background:#f8fbff; font-size:9px; cursor:pointer; }
.forum-pagination button.active { color:white; border-color:var(--blue); background:var(--blue); }
.forum-sidebar { display:grid; gap:18px; }
.sidebar-card { padding:24px; border:1px solid var(--line); border-radius:21px; background:white; box-shadow:0 14px 44px rgba(7,31,72,.065); }
.latest-post-list { display:grid; margin-top:18px; gap:0; }
.latest-post { padding:14px 0; border-top:1px solid var(--line); }
.latest-post:first-child { padding-top:0; border-top:0; }
.latest-post button { padding:0; color:var(--navy); border:0; background:none; font-family:var(--serif); font-size:16px; text-align:left; cursor:pointer; }
.latest-post span { display:block; margin-top:5px; color:var(--muted); font-size:8px; }
.latest-post-empty { color:var(--muted); font-size:9px; }
.guide-seal { display:grid; width:43px; height:43px; margin-bottom:22px; place-items:center; color:white; border-radius:50%; background:linear-gradient(145deg,var(--blue),var(--green)); font-family:var(--serif); font-size:19px; }
.forum-guide h3 { margin-top:10px; font-family:var(--serif); font-size:26px; font-weight:400; letter-spacing:-.035em; line-height:1.08; }
.forum-guide ul { display:grid; margin:20px 0 0; padding:20px 0 0 17px; color:var(--muted); border-top:1px solid var(--line); gap:10px; font-size:9px; line-height:1.5; }
.forum-guide a { display:inline-flex; margin-top:22px; padding-bottom:4px; color:var(--blue); border-bottom:1px solid rgba(23,105,224,.25); gap:9px; font-size:9px; font-weight:850; }

.thread-view { min-height:calc(100vh - 160px); padding:145px 0 120px; }
.thread-breadcrumb { display:flex; align-items:center; color:var(--muted); gap:9px; font-size:9px; }
.thread-breadcrumb button { padding:0; color:var(--blue); border:0; background:none; font-weight:800; cursor:pointer; }
.thread-breadcrumb strong { color:var(--muted); font-weight:700; }
.thread-page-header { display:flex; margin-top:32px; padding-bottom:35px; align-items:end; justify-content:space-between; border-bottom:1px solid var(--line); gap:35px; }
.thread-page-header h1 { max-width:920px; font-family:var(--serif); font-size:clamp(44px,6vw,76px); font-weight:400; letter-spacing:-.055em; line-height:.96; overflow-wrap:anywhere; }
.active-thread-meta { display:flex; margin-top:16px; color:var(--muted); flex-wrap:wrap; gap:9px 18px; font-size:9px; }
.active-thread-meta strong { color:#3e5473; }
.moderator-delete { min-height:40px; padding:0 14px; color:#a52f42; border:1px solid rgba(165,47,66,.2); border-radius:11px; background:#fff2f4; font-size:8px; font-weight:850; cursor:pointer; }
.thread-page-layout { display:grid; margin-top:28px; align-items:start; grid-template-columns:minmax(0,1fr) 270px; gap:20px; }
.thread-conversation { display:grid; gap:13px; }
.forum-post { display:grid; min-height:220px; overflow:hidden; border:1px solid var(--line); border-radius:20px; background:white; box-shadow:0 15px 45px rgba(7,31,72,.055); grid-template-columns:160px minmax(0,1fr); }
.post-author { display:flex; padding:27px 20px; align-items:center; border-right:1px solid var(--line); background:#f6f9fd; flex-direction:column; text-align:center; }
.post-author .post-avatar { width:64px; height:64px; font-size:24px; }
.post-author strong { margin-top:13px; font-size:10px; overflow-wrap:anywhere; }
.post-author small { margin-top:4px; color:var(--muted); font-size:7px; text-transform:uppercase; }
.post-content { position:relative; padding:34px 36px; }
.post-content p { color:#2f4665; font-size:13px; line-height:1.85; white-space:pre-wrap; overflow-wrap:anywhere; }
.post-number { position:absolute; top:14px; right:18px; color:#97a2b0; font-size:8px; }
.reply-heading { display:flex; margin:25px 0 2px; align-items:center; justify-content:space-between; }
.reply-heading h2 { font-family:var(--serif); font-size:32px; font-weight:400; }
.reply-heading span { display:grid; min-width:34px; height:34px; padding-inline:8px; place-items:center; color:var(--blue); border-radius:999px; background:rgba(23,105,224,.08); font-size:10px; font-weight:850; }
.reply-list { display:grid; gap:11px; }
.reply-card { position:relative; }
.reply-delete { position:absolute; top:12px; right:12px; z-index:2; display:grid; width:30px; height:30px; place-items:center; color:#a62d43; border:1px solid rgba(166,45,67,.16); border-radius:50%; background:#fff2f4; font-size:14px; cursor:pointer; }
.reply-empty { padding:38px; color:var(--muted); border:1px dashed var(--line); border-radius:18px; background:rgba(255,255,255,.55); text-align:center; font-size:10px; }
.reply-form { display:grid; margin-top:27px; padding:30px; border:1px solid var(--line); border-radius:21px; background:white; box-shadow:0 16px 46px rgba(7,31,72,.06); gap:16px; }
.reply-form header h2 { margin-top:7px; font-family:var(--serif); font-size:34px; font-weight:400; }
.thread-side-card { position:sticky; top:24px; padding:25px; border:1px solid var(--line); border-radius:20px; background:white; box-shadow:0 14px 44px rgba(7,31,72,.065); }
.thread-side-card dl { display:grid; margin-top:18px; gap:0; }
.thread-side-card dl div { padding:14px 0; border-top:1px solid var(--line); }
.thread-side-card dt { color:var(--muted); font-size:7px; font-weight:850; text-transform:uppercase; }
.thread-side-card dd { margin-top:5px; color:#334c6d; font-size:10px; }
.thread-side-card button { margin-top:19px; padding:0 0 5px; color:var(--blue); border:0; border-bottom:1px solid rgba(23,105,224,.25); background:none; font-size:9px; font-weight:850; cursor:pointer; }

.forum-dialog { width:min(760px,calc(100vw - 28px)); max-width:none; max-height:calc(100vh - 28px); padding:0; overflow:visible; color:var(--navy); border:0; border-radius:29px; background:transparent; box-shadow:0 40px 130px rgba(7,27,54,.3); }
.forum-dialog::backdrop { background:rgba(5,18,37,.66); backdrop-filter:blur(12px); }
.forum-dialog-panel { position:relative; display:grid; max-height:calc(100vh - 28px); padding:43px; overflow-y:auto; border:1px solid rgba(255,255,255,.75); border-radius:28px; background:rgba(250,252,255,.99); gap:16px; }
.forum-dialog h2 { max-width:680px; margin:10px 0 12px; font-family:var(--serif); font-size:clamp(40px,6vw,62px); font-weight:400; letter-spacing:-.055em; line-height:.98; }
.dialog-close { position:absolute; top:15px; right:15px; z-index:3; display:grid; width:39px; height:39px; place-items:center; color:#617187; border:1px solid var(--line); border-radius:50%; background:white; font-size:20px; cursor:pointer; }
.form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.forum-dialog label,.reply-form label { position:relative; display:grid; min-width:0; color:var(--deep); gap:7px; font-size:9px; font-weight:800; }
.forum-dialog label > small,.reply-form label > small { position:absolute; top:0; right:0; color:var(--muted); font-size:8px; font-weight:650; }
.forum-dialog input,.forum-dialog select,.forum-dialog textarea,.reply-form input,.reply-form textarea { width:100%; min-width:0; color:var(--navy); border:1px solid rgba(8,42,94,.14); border-radius:13px; outline:0; background:#f7faff; font-size:11px; }
.forum-dialog input,.forum-dialog select,.reply-form input { min-height:49px; padding:0 14px; }
.forum-dialog textarea,.reply-form textarea { min-height:135px; padding:13px 14px; line-height:1.65; resize:vertical; }
.forum-dialog input:focus,.forum-dialog select:focus,.forum-dialog textarea:focus,.reply-form input:focus,.reply-form textarea:focus { border-color:rgba(23,105,224,.58); background:white; box-shadow:0 0 0 4px rgba(23,105,224,.08); }
.honeypot { position:fixed !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
.form-status { min-height:19px; color:var(--muted); font-size:9px; }
.form-status.error { color:#aa3142; }
.form-status.success { color:#197455; }
.form-submit { justify-self:end; }
.reply-form-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.reply-form-footer .primary-button { flex:0 0 auto; }
.forum-toast { position:fixed; right:22px; bottom:22px; z-index:1200; max-width:min(390px,calc(100vw - 44px)); padding:14px 17px; color:white; border-radius:13px; opacity:0; pointer-events:none; background:#071f48; box-shadow:0 18px 50px rgba(7,27,54,.24); font-size:10px; transform:translateY(16px); transition:opacity .25s ease,transform .35s var(--ease); }
.forum-toast.show { opacity:1; transform:translateY(0); }
.forum-footer { display:grid; min-height:160px; align-items:center; color:var(--muted); border-top:1px solid var(--line); grid-template-columns:1fr auto 1fr; gap:30px; font-size:9px; }
.forum-footer > a:last-child { justify-self:end; color:var(--blue); font-weight:800; }

@media (max-width:1050px) {
  .forum-nav-links { display:none; }
  .forum-back { margin-left:auto; }
  .forum-row { grid-template-columns:54px minmax(0,1fr) 135px; }
  .forum-row-latest { display:none; }
  .thread-table-heading { grid-template-columns:minmax(0,1fr) 70px; }
  .thread-table-heading span:last-child { display:none; }
  .thread-card { grid-template-columns:50px minmax(0,1fr) 70px; }
  .thread-latest { display:none; }
  .forum-content-grid { grid-template-columns:minmax(0,1fr) 255px; }
}

@media (max-width:780px) {
  :root { --page:calc(100vw - 28px); }
  .forum-header { top:10px; }
  .forum-nav { width:calc(100vw - 20px); min-height:64px; padding:8px; border-radius:18px; }
  .forum-brand { min-width:0; }
  .forum-flag { width:46px; height:35px; }
  .forum-brand strong { font-size:14px; }
  .forum-brand small { display:none; }
  .forum-back { min-height:44px; padding-inline:12px; font-size:0; }
  .forum-back span { font-size:18px; }
  .forum-hero { min-height:650px; }
  .forum-hero-layout { min-height:650px; padding-top:135px; padding-bottom:60px; align-items:start; flex-direction:column; justify-content:flex-end; gap:40px; }
  .forum-hero h1 { font-size:clamp(65px,20vw,88px); }
  .forum-hero-actions { width:100%; }
  .forum-home-view { padding:75px 0 90px; }
  .forum-overview-header,.latest-header { align-items:stretch; flex-direction:column; gap:28px; }
  .forum-overview-header h2,.latest-header h2 { font-size:48px; }
  .forum-overview-stats { width:100%; }
  .forum-overview-stats div { min-width:0; flex:1; }
  .forum-row { min-height:0; padding:18px; grid-template-columns:48px minmax(0,1fr); gap:14px; }
  .forum-row-icon { width:48px; height:48px; border-radius:14px; }
  .forum-row-counts { grid-column:2; justify-content:start; grid-template-columns:repeat(2,70px); }
  .forum-row-copy strong { font-size:21px; }
  .latest-section { padding-top:85px; }
  .new-thread-button { width:100%; }
  .forum-toolbar { grid-template-columns:1fr; }
  .forum-search { justify-self:stretch; }
  .forum-content-grid { grid-template-columns:1fr; }
  .thread-table-heading { display:none; }
  .thread-card { min-height:0; padding:17px; grid-template-columns:45px minmax(0,1fr); gap:13px; }
  .thread-avatar { width:45px; height:45px; }
  .thread-replies { grid-column:2; justify-self:start; text-align:left; }
  .thread-replies strong,.thread-replies span { display:inline; }
  .thread-replies strong { margin-right:5px; font-size:17px; }
  .thread-copy h3 { white-space:normal; }
  .thread-side-card { position:static; }
  .thread-view { padding:115px 0 85px; }
  .thread-page-header { align-items:start; flex-direction:column; }
  .thread-page-header h1 { font-size:46px; }
  .thread-page-layout { grid-template-columns:1fr; }
  .forum-post { grid-template-columns:1fr; }
  .post-author { padding:18px; align-items:center; border-right:0; border-bottom:1px solid var(--line); flex-direction:row; gap:12px; text-align:left; }
  .post-author .post-avatar { width:46px; height:46px; font-size:18px; }
  .post-author strong { margin:0; }
  .post-author small { margin:0 0 0 auto; }
  .post-content { padding:30px 21px 25px; }
  .reply-form { padding:22px 18px; }
  .form-row { grid-template-columns:1fr; }
  .reply-form-footer { align-items:stretch; flex-direction:column; }
  .reply-form-footer .primary-button { width:100%; }
  .forum-dialog-panel { padding:38px 19px 25px; border-radius:23px; }
  .form-submit { width:100%; }
  .forum-footer { min-height:170px; grid-template-columns:1fr; }
  .forum-footer p { display:none; }
  .forum-footer > a:last-child { justify-self:start; }
}

@media (min-width:1181px) {
  .forum-nav { gap:18px; }
  .forum-nav-links { gap:18px; }
  .forum-brand,.forum-back { flex:0 0 auto; }
  .forum-back { white-space:nowrap; }
}
@media (max-width:1350px) and (min-width:1181px) {
  .forum-nav-links a:last-child { display:none; }
}
