/* Northfire forums - on top of the website's /css/modern.css
   Built by Kyle Bargman, 2026-11-21 */

/* Built by Kyle Bargman, link@phantasia4.com, 2026-11-22: the forum's own colours as variables (the dark look's values,
   unchanged); html[data-theme=light] at the end swaps them and the website's for the light look */
:root{
	--f-link:#e8a87c; --f-link-hover:#ffd0a8; --f-badge:#ffb38a; --f-err:#ff8f7a; --f-ok:#9be29b;
	--f-code-bg:#0a0a0a; --f-target:rgba(143,16,16,.12); --f-unread:rgba(143,16,16,.08); --f-new-text:#ffd7c2;
}

.forum{ padding-top:18px; padding-bottom:40px; }
.forum h1{ font-size:22px; margin:0 0 4px; color:var(--text-strong); }
.forum a, .forum a:link, .forum a:visited{ color:var(--f-link); }
.forum a:hover{ color:var(--f-link-hover); }
.forum code{ background:var(--surface-2); border:1px solid var(--border); border-radius:4px; padding:0 4px; font-size:.92em; }

.fbar{ display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:16px; }
.fsearch input{ width:260px; max-width:100%; }
.fbar-links{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.fme{ font-weight:600; }

.forum input:not([type=hidden]), .forum textarea, .forum select{
	background:var(--surface-2); color:var(--text-strong); border:1px solid var(--border-strong);
	border-radius:6px; padding:8px 10px; font:inherit; }
.forum textarea{ width:100%; resize:vertical; min-height:140px; }
.forum input:focus, .forum textarea:focus, .forum select:focus{ outline:2px solid var(--accent-2); outline-offset:1px; }
.flabel{ display:block; margin:10px 0 4px; color:var(--muted); font-size:13px; }
.fsmall{ padding:5px 12px; font-size:13px; }
.flink{ background:none; border:0; padding:0; color:var(--f-link); cursor:pointer; font:inherit; font-size:13px; }
.flink:hover{ color:var(--f-link-hover); text-decoration:underline; }
.finline{ display:inline; margin:0; }

.fgrid{ display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:18px; align-items:start; }
@media (max-width:860px){ .fgrid{ grid-template-columns:1fr; } }

.fpanel{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow);
	padding:16px 18px; margin-bottom:16px; }
.fpanel > .column_header{ margin-bottom:6px; }
.fhead{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap;
	padding-bottom:12px; margin-bottom:4px; border-bottom:1px solid var(--border); }
.fempty{ padding:16px 0; }

.frow{ display:flex; gap:14px; align-items:center; padding:12px 0; border-bottom:1px solid var(--border); }
.frow:last-child{ border-bottom:0; }
.frow-main{ flex:1; min-width:0; overflow-wrap:anywhere; }
.frow-count{ width:64px; text-align:center; line-height:1.2; }
.frow-count b{ display:block; color:var(--text-strong); }
.frow-count span{ font-size:12px; color:var(--muted); }
.frow-last{ width:170px; font-size:13px; overflow-wrap:anywhere; }
@media (max-width:600px){ .frow-count{ display:none; } .frow-last{ width:110px; } }

.ftag{ display:inline-block; font-size:11px; text-transform:uppercase; letter-spacing:.04em; padding:1px 6px; border-radius:4px;
	background:var(--surface-2); border:1px solid var(--border-strong); color:var(--muted); vertical-align:2px; }
.fnew{ background:var(--accent); border-color:var(--accent-2); color:var(--f-new-text); }
.fdeleted{ opacity:.55; }
.fchan-tag{ font-size:12px; border:1px solid var(--border-strong); border-radius:10px; padding:0 7px; margin-left:4px; }
.fbadge{ display:inline-block; font-size:12px; color:var(--f-badge); }

.fpost{ display:grid; grid-template-columns:150px minmax(0,1fr); gap:16px; padding:16px 0; border-bottom:1px solid var(--border); }
.fpost:last-of-type{ border-bottom:0; }
.fpost:target{ background:var(--f-target); }
.fpost-nick{ font-weight:700; font-size:16px; overflow-wrap:anywhere; }
.fpost-who{ font-size:13px; }
.fpost-meta{ font-size:12px; color:var(--muted); margin-bottom:6px; }
.fpost-meta a{ color:var(--muted) !important; }
.fpost-text{ overflow-wrap:anywhere; }
.fpost-text p{ margin:0 0 10px; }
.fpost-text ul{ margin:0 0 10px; padding-left:22px; }
.fpost-text blockquote{ margin:0 0 10px; padding:6px 12px; border-left:3px solid var(--accent-2); background:var(--surface-2); border-radius:4px; }
.fquote-by{ font-size:12px; color:var(--muted); margin-bottom:4px; }
.fcode{ background:var(--f-code-bg); border:1px solid var(--border); border-radius:6px; padding:10px; overflow:auto; font-size:13px; white-space:pre; }
.fimg{ max-height:420px; border-radius:6px; display:block; margin:6px 0; }
.fpost-tools{ display:flex; gap:14px; margin-top:8px; }
@media (max-width:600px){ .fpost{ grid-template-columns:1fr; gap:6px; } }

.fmod{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:13px; }
.fmod select{ padding:3px 6px; font-size:13px; }

.fcompose{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px 18px; margin-bottom:16px; }
.fcompose input[name=title]{ width:100%; margin-bottom:10px; }
.fcompose-row{ display:flex; gap:14px; align-items:flex-start; margin-top:10px; flex-wrap:wrap; }
.fhelp{ font-size:13px; color:var(--muted); flex:1; min-width:220px; }
.fhelp summary{ cursor:pointer; }
.ferr{ color:var(--f-err); }

.fpager{ display:flex; gap:6px; margin-top:12px; flex-wrap:wrap; }
.fpager a, .fpager .fcur, .fpager .fgap{ padding:2px 9px; border:1px solid var(--border-strong); border-radius:4px; font-size:13px; }
.fpager .fcur{ background:var(--accent); border-color:var(--accent-2); color:#fff; }
.fpager .fgap{ border:0; }

.flive .column_header{ display:flex; align-items:center; gap:8px; }
.flive-list{ list-style:none; margin:6px 0 10px; padding:0; }
.flive-list li{ display:flex; justify-content:space-between; padding:4px 0; border-bottom:1px solid var(--border); font-size:14px; }
.flive-list li span{ color:var(--muted); }
.flive-all{ font-size:13px; }
.flatest{ list-style:none; margin:6px 0 0; padding:0; }
.flatest li{ padding:6px 0; border-bottom:1px solid var(--border); font-size:14px; overflow-wrap:anywhere; }
.flatest li:last-child{ border-bottom:0; }
.flatest .dark{ font-size:12px; }

.fsignin{ max-width:460px; }
.fsignin input:not([type=hidden]){ width:100%; }
.fsignin .btn{ margin-top:14px; }
.fprofile h1{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.fonline{ font-size:13px; font-weight:400; color:var(--f-ok); display:inline-flex; align-items:center; gap:6px; }
.fstats{ display:grid; grid-template-columns:max-content 1fr; gap:4px 14px; margin:12px 0; }
.fstats dt{ color:var(--muted); }
.fstats dd{ margin:0; }
.fabout{ white-space:pre-wrap; }
.fabout-form{ display:flex; gap:8px; align-items:end; flex-wrap:wrap; margin:10px 0; }
.fabout-form .flabel{ width:100%; }
.fabout-form input{ flex:1; min-width:200px; }

.ftoc{ display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:8px; }
.fcmds dl{ margin:8px 0 0; }
.fcmds dt{ margin-top:12px; scroll-margin-top:20px; }
.fcmds dt:target code{ outline:2px solid var(--accent-hot); }
.fcmds dd{ margin:4px 0 0 0; }
.fcopy{ cursor:pointer; }
.fcopied{ outline:2px solid #3a8f3a; }
.fcmd code{ color:var(--f-link); }
.news-comments{ margin-top:6px; font-size:13px; }

/* Built by Kyle Bargman: XenForo's member features */
.fav{ display:inline-flex; align-items:center; justify-content:center; border-radius:50%; object-fit:cover; flex:none; vertical-align:middle;
	font-weight:700; color:#fff; background:var(--surface-2); }
.fav-s{ width:22px; height:22px; font-size:12px; }
.fav-m{ width:40px; height:40px; font-size:18px; }
.fav-l{ width:96px; height:96px; font-size:42px; border-radius:12px; margin-bottom:6px; }
.fav-xl{ width:128px; height:128px; font-size:56px; border-radius:14px; }
.fav-c0{ background:#8f1010; } .fav-c1{ background:#a34b0c; } .fav-c2{ background:#2f6b3a; } .fav-c3{ background:#1f5a7a; }
.fav-c4{ background:#5b3a8a; } .fav-c5{ background:#7a2a5a; } .fav-c6{ background:#5a5a1f; } .fav-c7{ background:#3d3d3d; }
.fpost-who{ text-align:center; }
.fpost-who .fpost-nick{ display:block; }
.fpost-facts{ display:grid; grid-template-columns:auto auto; gap:0 8px; font-size:12px; margin:8px 0 0; text-align:left; color:var(--muted); }
.fpost-facts dd{ margin:0; text-align:right; color:var(--text); }
.fpost-num{ float:right; color:var(--muted) !important; }
@media (max-width:600px){ .fpost-who{ display:flex; gap:10px; align-items:center; text-align:left; } .fpost-facts{ display:none; } .fav-l{ width:40px; height:40px; font-size:18px; margin:0; } }
.fsig{ border-top:1px solid var(--border); margin-top:12px; padding-top:8px; font-size:13px; color:var(--muted); max-height:120px; overflow:hidden; }
.fsig p{ margin:0 0 4px; }
.freact{ display:inline-flex; gap:2px; margin:0; }
.freact button{ background:none; border:1px solid transparent; border-radius:6px; cursor:pointer; padding:0 4px; font-size:15px; filter:grayscale(.6); opacity:.75; }
.freact button:hover, .freact button.fmine{ filter:none; opacity:1; border-color:var(--border-strong); }
.freact-sum{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:13px; margin-top:6px; }
.fpost-tools{ flex-wrap:wrap; align-items:center; }
.fcount{ display:inline-block; min-width:18px; padding:0 5px; border-radius:9px; background:var(--accent-hot); color:#fff; font-size:11px; text-align:center; line-height:18px; }
.funread{ background:var(--f-unread); }
.fok{ color:var(--f-ok); }
.fghost{ background:transparent; border:1px solid var(--border-strong); }
.fhead-tools{ display:flex; gap:8px; }
.fprofile-head{ display:flex; gap:18px; align-items:center; flex-wrap:wrap; margin-bottom:8px; }
.favatar-edit{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.fprefix{ display:inline-block; font-size:12px; padding:0 7px; border-radius:4px; background:#3a2a10; color:#ffcf8a; border:1px solid #5a4018; vertical-align:2px; font-weight:600; }
.ftabs{ display:flex; gap:6px; flex-wrap:wrap; margin:10px 0; }
.ftabs a{ padding:3px 10px; border:1px solid var(--border-strong); border-radius:14px; font-size:13px; }
.ftabs a.fcur{ background:var(--accent); border-color:var(--accent-2); color:#fff !important; }
.frow > .fav{ margin-right:2px; }
.ftitle-row{ display:flex; gap:8px; margin-bottom:10px; }
.ftitle-row input{ flex:1; }
.ftoolbar{ display:flex; gap:2px; flex-wrap:wrap; align-items:center; background:var(--surface-2); border:1px solid var(--border-strong);
	border-bottom:0; border-radius:6px 6px 0 0; padding:4px; }
.ftoolbar button, .fupload{ background:none; border:0; color:var(--text); cursor:pointer; padding:3px 8px; border-radius:4px; font:inherit; font-size:14px; }
.ftoolbar button:hover, .fupload:hover{ background:var(--border-strong); }
.fsmilies{ display:inline-flex; margin-left:6px; border-left:1px solid var(--border-strong); padding-left:6px; flex-wrap:wrap; }
.fsmilies button{ padding:2px 4px; }
.fpreview-btn{ margin-left:auto; }
.fbusy{ opacity:.4; pointer-events:none; }
.ftoolbar + textarea{ border-radius:0 0 6px 6px; }
.fpreview{ border:1px dashed var(--border-strong); border-radius:6px; padding:10px; margin-top:8px; }
.fpoll-new{ margin-top:10px; font-size:14px; }
.fpoll-new input, .fpoll-new textarea{ width:100%; margin:6px 0; }
.fpoll{ border:1px solid var(--border-strong); border-radius:8px; padding:12px 14px; margin:12px 0; background:var(--surface-2); }
.fpoll-q{ font-weight:700; color:var(--text-strong); margin-bottom:8px; }
.fpoll-opt{ display:block; margin:4px 0; }
.fpoll-res{ display:grid; grid-template-columns:minmax(120px,1fr) 2fr 90px; gap:10px; align-items:center; margin:4px 0; font-size:14px; }
.fpoll-res meter{ width:100%; }
.fpoll-res.fmine span:first-child{ font-weight:700; }
.fplain input:not([type=hidden]):not([type=checkbox]):not([type=file]), .fplain textarea, .fplain select{ width:100%; }
.fplain .btn{ margin-top:12px; }
.ftable{ width:100%; border-collapse:collapse; margin:8px 0 14px; font-size:13px; }
.ftable th{ text-align:left; color:var(--muted); font-weight:400; padding:4px; }
.ftable td{ padding:4px; border-top:1px solid var(--border); vertical-align:top; }
.ftable input[type=number]{ width:64px; }
.ftable td input:not([type=checkbox]):not([type=number]){ width:100%; margin-bottom:4px; }
.fadmin-add form{ margin:10px 0; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.fonline-list{ font-size:14px; }

/* Built by Kyle Bargman: the admin panel */
.fprefix-gold{ background:#3a2a10; color:#ffcf8a; border-color:#5a4018; }
.fprefix-red{ background:#3a1414; color:#ff9a8a; border-color:#5a2020; }
.fprefix-green{ background:#173a1f; color:#9be29b; border-color:#2a5a33; }
.fprefix-blue{ background:#14283a; color:#9ac8ff; border-color:#20405a; }
.fprefix-purple{ background:#2a1a3a; color:#d4b0ff; border-color:#43295a; }
.fprefix-grey{ background:#262626; color:#cfcfcf; border-color:#3a3a3a; }
.fheld{ background:#3a2a10; border-color:#5a4018; color:#ffcf8a; }
.fadmin-wrap{ display:grid; grid-template-columns:190px minmax(0,1fr); gap:18px; align-items:start; }
@media (max-width:760px){ .fadmin-wrap{ grid-template-columns:1fr; } }
.fadmin-nav{ display:flex; flex-direction:column; gap:2px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:8px; }
.fadmin-nav a{ padding:6px 10px; border-radius:6px; }
.fadmin-nav a.fcur{ background:var(--accent); color:#fff !important; }
.fadmin h2{ margin:0; font-size:18px; }
.fadmin .column_header{ margin-top:18px; }
.fqueue{ border:1px solid var(--border); border-radius:8px; padding:10px 12px; margin:10px 0; }
.femoji-in{ width:60px; text-align:center; }
.fnotice{ position:relative; border-radius:8px; padding:10px 40px 10px 14px; margin-bottom:16px; border:1px solid; }
.fnotice p{ margin:0; }
.fnotice-info{ background:#14283a; border-color:#20405a; color:#cfe3ff; }
.fnotice-warning{ background:#3a2a10; border-color:#5a4018; color:#ffe2b0; }
.fnotice-success{ background:#173a1f; border-color:#2a5a33; color:#cff3cf; }
.fnotice-x{ position:absolute; top:6px; right:8px; background:none; border:0; color:inherit; font-size:20px; cursor:pointer; line-height:1; }

/* Built by Kyle Bargman, link@phantasia4.com, 2026-11-22: the wiki */
.fwiki-cat{ margin-top:16px; }
.fwiki-cat .dark{ font-weight:400; font-size:13px; }
.fwiki-list{ columns:2 220px; margin:6px 0 4px; padding-left:20px; }
.fwiki-list li{ break-inside:avoid; padding:2px 0; }
.fwiki-text h2, .fwiki-text h3{ color:var(--text-strong); }
.fwiki-form .fwiki-note{ width:100%; margin-top:10px; }
.forum a.fwiki{ border-bottom:1px dotted currentColor; }
.forum a.fwiki-new{ color:#d9837a; border-bottom-style:dashed; }
.fdiff{ font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:13px; border:1px solid var(--border); border-radius:6px; overflow:auto; margin:8px 0; }
.fdiff > div{ white-space:pre-wrap; overflow-wrap:anywhere; padding:1px 8px; }
.fdiff-op{ display:inline-block; width:16px; color:var(--muted); user-select:none; }
.fdiff-add{ background:rgba(60,160,80,.18); }
.fdiff-del{ background:rgba(200,60,50,.18); text-decoration:line-through; text-decoration-color:rgba(255,140,120,.5); }
.fdiff-same{ color:var(--muted); }
.fdiff-gap{ color:var(--muted); text-align:center; background:var(--surface-2); }
.forum ins{ text-decoration:none; background:rgba(60,160,80,.18); }
.forum del{ background:rgba(200,60,50,.18); }

/* Built by Kyle Bargman, link@phantasia4.com, 2026-11-22: trophies */
.ftrophies{ display:inline-flex; gap:2px; margin-top:4px; font-size:14px; line-height:1; }
.ftrophies .dark{ font-size:11px; align-self:center; }
.ftrophy-icon{ font-size:26px; line-height:1; width:40px; text-align:center; flex:none; }
.ftrophy-head{ display:flex; gap:12px; align-items:center; }
.ftrophy-head .ftrophy-icon{ font-size:40px; width:56px; }
.ftrophy-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:12px; margin-top:10px; }
.ftrophy-card{ display:flex; flex-direction:column; gap:4px; align-items:center; text-align:center; border:1px solid var(--border); border-radius:8px; padding:14px 10px; background:var(--surface-2); }
.ftrophy-card .ftrophy-icon{ font-size:36px; width:auto; }
.ftrophy-card .dark{ font-size:12px; }
.ftrophy-card:hover{ border-color:var(--accent-2); }

/* Built by Kyle Bargman, link@phantasia4.com, 2026-11-22: recent activity */
.factivity{ list-style:none; margin:6px 0 0; padding:0; }
.factivity li{ display:flex; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); overflow-wrap:anywhere; }
.factivity li:last-child{ border-bottom:0; }
.factivity-icon{ width:22px; flex:none; text-align:center; }
.factivity .dark{ font-size:12px; }
.fcompact li{ padding:6px 0; font-size:14px; }

/* Built by Kyle Bargman, link@phantasia4.com, 2026-11-22: recent activity */
.factivity{ list-style:none; margin:6px 0 0; padding:0; }
.factivity li{ display:flex; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); overflow-wrap:anywhere; }
.factivity li:last-child{ border-bottom:0; }
.factivity-icon{ width:22px; flex:none; text-align:center; }
.factivity .dark{ font-size:12px; }
.fcompact li{ padding:6px 0; font-size:14px; }

/* Built by Kyle Bargman, link@phantasia4.com, 2026-11-22: topics like the one being written */
.fsimilar{ border:1px solid var(--accent-2); border-radius:8px; padding:8px 12px; margin:-4px 0 10px; background:var(--surface-2); font-size:14px; }
.fsimilar-head{ font-weight:600; color:var(--text-strong); margin-bottom:4px; }
.fsimilar ul{ margin:0; padding-left:18px; }
.fsimilar li{ padding:2px 0; }

/* Built by Kyle Bargman, link@phantasia4.com, 2026-11-22: multi-quote */
.fmq-on{ color:var(--text-strong); font-weight:600; }
.fmq-bar{ display:flex; gap:10px; align-items:center; margin-bottom:10px; }

/* Built by Kyle Bargman, link@phantasia4.com, 2026-11-22: the light look (the switch in the bar; the header keeps its
   dark band, which the logo picture is made for) */
html[data-theme="light"]{
	color-scheme:light;
	--bg:#f4f1ee; --bg-band:#ebe6e1; --surface:#ffffff; --surface-2:#f6f3f0; --border:#e4ddd6; --border-strong:#cfc5bc;
	--text:#2b2623; --text-strong:#141110; --muted:#6d645e;
	--accent:#8f1010; --accent-2:#a8201a; --accent-hot:#c0281c;
	--shadow:0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.06);
	--f-link:#a3410e; --f-link-hover:#6b2504; --f-badge:#b0501a; --f-err:#b3261e; --f-ok:#2e7d32;
	--f-code-bg:#f3eee8; --f-target:rgba(192,40,28,.08); --f-unread:rgba(192,40,28,.06); --f-new-text:#fff;
}
html[data-theme="light"] body{ background:radial-gradient(1200px 400px at 50% -120px, rgba(143,16,16,.07), transparent 70%), var(--bg); color:var(--text); }
html[data-theme="light"] .forum pre, html[data-theme="light"] .fcode{ background:var(--f-code-bg); color:#3a2a1c; }
/* the red buttons keep white words in the light look (Kyle Bargman, 2026-11-22) */
html[data-theme="light"] a.btn, html[data-theme="light"] button.btn, html[data-theme="light"] .btn{ color:#fff; }
html[data-theme="light"] .site-footer a{ color:var(--muted); }
html[data-theme="light"] .site-footer a:hover{ color:var(--text-strong); }
html[data-theme="light"] .fprefix-gold, html[data-theme="light"] .fprefix, html[data-theme="light"] .fheld{ background:#fff1d6; color:#7a4a00; border-color:#ecc98a; }
html[data-theme="light"] .fprefix-red{ background:#fde4e1; color:#8f1d12; border-color:#f0b1a8; }
html[data-theme="light"] .fprefix-green{ background:#e2f4e4; color:#1d6a2a; border-color:#a9d9b0; }
html[data-theme="light"] .fprefix-blue{ background:#e2eefb; color:#174f8a; border-color:#a9c8ec; }
html[data-theme="light"] .fprefix-purple{ background:#efe5fb; color:#5a2c91; border-color:#cdb3ee; }
html[data-theme="light"] .fprefix-grey{ background:#eeeeee; color:#444; border-color:#cfcfcf; }
html[data-theme="light"] .fnotice-info{ background:#e6f0fb; border-color:#a9c8ec; color:#123a63; }
html[data-theme="light"] .fnotice-warning{ background:#fff3dc; border-color:#ecc98a; color:#5c3a00; }
html[data-theme="light"] .fnotice-success{ background:#e4f5e6; border-color:#a9d9b0; color:#174f22; }
html[data-theme="light"] .fav-letter{ color:#fff; }
html[data-theme="light"] .forum a.fwiki-new{ color:#b3261e; }
html[data-theme="light"] .fdiff-del{ text-decoration-color:rgba(160,40,30,.5); }
.ftheme .flink{ white-space:nowrap; }

/* Built by Kyle Bargman, 2026-11-22: passkeys, and who's in #Northfire */
.fpk-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .6rem 0 .2rem; }
.fpk-row input { max-width: 16rem; }
.fpk-signin { margin-top: 1rem; }
.fpk-msg:empty { display: none; }
.flive-who { font-size: .85em; margin: .5rem .7rem; line-height: 1.5; }
