/* ForumWP 2.1.9: scope the palette to plugin markup, preserving native layouts. */
.ptum-discussion-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.ptum-brainstorm .fmwp { width: 100%; max-width: 100%; }
body .fmwp { color: #f0f6ff; font-family: Inter, 'IBM Plex Sans', Arial, sans-serif; line-height: 1.6; min-width: 0; }
body :is(.fmwp-archive-forums-wrapper, .fmwp-archive-topics-wrapper, .fmwp-forum-wrapper, .fmwp-topic-main-wrapper) {
 background: #10233d; border: 1px solid #385675; border-radius: 16px; padding: clamp(14px, 3vw, 28px); box-sizing: border-box;
}
/* Bring ForumWP's list chrome and its more-specific native buttons into the site palette. */
body .fmwp :is(.fmwp-forums-list-head, .fmwp-topics-list-head, .fmwp-forums-wrapper-heading, .fmwp-topics-wrapper-heading) { border-color:#385675 !important; color:#bacbe2 !important; }
body .fmwp :is(.fmwp-forums-wrapper, .fmwp-topics-wrapper) { background:transparent !important; }
body .fmwp :is(.fmwp-forum-row, .fmwp-topic-row, .fmwp-reply-row):hover { background:#17344e !important; }
body .fmwp :is(.fmwp-button, .fmwp-button.fmwp-primary-button, input[type='button'], input[type='submit'], button:not(.mce-btn button)) {
 background:#67e8f9 !important; color:#071528 !important; border:1px solid #67e8f9 !important; border-radius:10px !important; box-shadow:none !important; font:inherit; font-weight:700;
}
body .fmwp :is(.fmwp-button, input[type='button'], input[type='submit'], button):hover { background:#a5f3fc !important; color:#071528 !important; border-color:#a5f3fc !important; }
body .fmwp :is(.fmwp-forum-row, .fmwp-topic-row, .fmwp-reply-row, .fmwp-topic-base, .fmwp-forums-wrapper-heading, .fmwp-topics-wrapper-heading) { border-color: #385675 !important; background-color: transparent; }
body .fmwp :is(.fmwp-forum-title, .fmwp-topic-title, .fmwp-topic-content, .fmwp-reply-content, .fmwp-forum-head-line, .fmwp-topic-head-line) { color: #f0f6ff !important; }
body .fmwp :is(.fmwp-forum-description, .fmwp-forum-statistics-data, .fmwp-topic-statistics-data, .fmwp-forum-latest-topic, .fmwp-topic-data, .fmwp-reply-data, .fmwp-forums-wrapper-heading, .fmwp-topics-wrapper-heading) { color: #bacbe2 !important; }
body .fmwp a, body .fmwp-dropdown ul li > a, body .fmwp-dropdown ul li > span { color: #67e8f9 !important; }
body .fmwp a:hover { color: #a5f3fc !important; }
body .fmwp :is(input[type='text'], input[type='search'], input[type='email'], input[type='password'], select, textarea) {
 background: #0a1a30 !important; color: #f0f6ff !important; border: 1px solid #58708e !important; border-radius: 8px; box-shadow: none; max-width: 100%; box-sizing: border-box;
}
body .fmwp :is(input, textarea)::placeholder { color: #a2b6d1 !important; opacity: 1; }
body .fmwp :is(input[type='text'], input[type='search'], input[type='email'], input[type='password'], select) { min-height: 44px; padding: 10px 12px; }
body .fmwp :is(input[type='button'], input[type='submit'], button:not(.mce-btn button)) {
 background: #67e8f9; color: #071528; border: 1px solid #67e8f9; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer;
}
body .fmwp :is(a, input, textarea, select, button):focus-visible { outline: 2px solid #67e8f9 !important; outline-offset: 3px; }
body .fmwp :is(.fmwp-topic-popup-discard, .fmwp-reply-popup-discard) { background: transparent !important; color: #bacbe2 !important; border-color: #58708e !important; }
body :is(.fmwp-post-popup-wrapper, .fmwp-dropdown, .fmwp-tooltip, .fmwp-ac-results) { background: #10233d !important; color: #f0f6ff; border-color: #58708e; }
body .fmwp-user-card-wrapper { color: #f0f6ff; }
body .fmwp :is(.fmwp-post-popup-toolbar, .fmwp-post-popup-header, .fmwp-post-popup-actions-bottom) { background: #10233d; border-color: #385675; }
body .fmwp :is(.fmwp-topic-content, .fmwp-reply-content) { overflow-wrap: anywhere; }
body .fmwp :is(.fmwp-topic-content, .fmwp-reply-content) pre { overflow-x: auto; background: #0a1a30; color: #f0f6ff; padding: 12px; border-radius: 8px; }
body .fmwp :is(.fmwp-topic-content, .fmwp-reply-content) blockquote { border-inline-start: 3px solid #67e8f9; padding-inline-start: 16px; color: #bacbe2; }
/* Keep TinyMCE's own light editing canvas and toolbar colors together. */
body .fmwp .mce-container :is(button, input) { color: #333; }
@media (max-width: 600px) {
 body .fmwp :is(.fmwp-forums-search, .fmwp-topics-search) { flex-wrap: wrap; gap: 8px; }
 body .fmwp :is(.fmwp-forums-search, .fmwp-topics-search) label { min-width: 0; max-width: 100%; }
 body .fmwp :is(.fmwp-forums-list-head, .fmwp-topics-list-head) { border-bottom-color:#385675 !important; }
 body .fmwp :is(.fmwp-forums-search, .fmwp-topics-search) input { max-width:100%; }
}

/* Topic titles should use article scale, not the homepage hero heading. */
body:is(.single-fmwp_topic, .single-fmwp_forum) #main-content h1 { font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.02em; max-width: 100%; margin: 0 0 20px; overflow-wrap: anywhere; }

/* Keep the topic's primary Reply action; omit the repeated footer action. */
body.single-fmwp_topic .fmwp-topic-main-wrapper > .fmwp-topic-footer { display: none; }

/* Reply composer: one full-width editor, without the preview pane or toggle. */
body #fmwp-reply-popup-wrapper #fmwp-reply-popup-editor-preview,
body #fmwp-reply-popup-wrapper #fmwp-reply-popup-preview-action { display: none !important; }
body #fmwp-reply-popup-wrapper #fmwp-reply-popup-editors #fmwp-reply-popup-editor {
 width: 100% !important; max-width: 100%; flex: 1 1 100%; padding-right: 0 !important; box-sizing: border-box;
}

/* Adjacent topics use the same navy surfaces and cyan links as the forum. */
body:is(.single-fmwp_topic, .single-fmwp_forum) .post-navigation { margin-top: 24px; }
body:is(.single-fmwp_topic, .single-fmwp_forum) .post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 16px; }
body:is(.single-fmwp_topic, .single-fmwp_forum) .post-navigation .nav-links > div { flex: 1 1 280px; min-width: 0; }
body:is(.single-fmwp_topic, .single-fmwp_forum) .post-navigation a {
 display: block; height: 100%; box-sizing: border-box; padding: 18px 22px;
 background: #10233d; border: 1px solid #385675; border-radius: 12px;
 color: #67e8f9; text-decoration: none; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere;
}
body:is(.single-fmwp_topic, .single-fmwp_forum) .post-navigation a:hover { background: #17344e; border-color: #67e8f9; }
body:is(.single-fmwp_topic, .single-fmwp_forum) .post-navigation a:focus-visible { outline: 2px solid #67e8f9; outline-offset: 3px; }
body:is(.single-fmwp_topic, .single-fmwp_forum) .post-navigation .nav-previous a::before { content: '← Previous topic'; }
body:is(.single-fmwp_topic, .single-fmwp_forum) .post-navigation .nav-next a::before { content: 'Next topic →'; }
body:is(.single-fmwp_topic, .single-fmwp_forum) .post-navigation a::before { display: block; color: #bacbe2; font-size: 12px; margin-bottom: 6px; }

/* Forum/category pages share the compact topic presentation. */
body.single-fmwp_forum .fmwp-forum-wrapper > .fmwp-forum-footer { display: none; }
body.single-fmwp_forum .post-navigation .nav-previous a::before { content: '← Previous forum'; }
body.single-fmwp_forum .post-navigation .nav-next a::before { content: 'Next forum →'; }
body #fmwp-topic-popup-wrapper #fmwp-topic-popup-editor-preview,
body #fmwp-topic-popup-wrapper #fmwp-topic-popup-preview-action { display: none !important; }
body #fmwp-topic-popup-wrapper #fmwp-topic-popup-editors #fmwp-topic-popup-editor {
 width: 100% !important; max-width: 100%; flex: 1 1 100%; padding-right: 0 !important; box-sizing: border-box;
}

/* ForumWP rewrites taxonomy requests to its forums page and marks the article. */
#main-content .fmwp-tax-forum-category > .section-heading h1 { font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.02em; max-width: 100%; margin: 0 0 24px; overflow-wrap: anywhere; }
/* The /forums/ page title and directory should read as one themed card. */
body.fmwp-page-forums #main-content > article {
 box-sizing:border-box; padding:clamp(16px, 3vw, 28px); background:#10233d; border:1px solid #385675; border-radius:16px;
}
body.fmwp-page-forums #main-content > article > .section-heading { margin:0 0 18px; padding:0; }
body.fmwp-page-forums #main-content > article > .section-heading h1 { margin:0; font-size:clamp(32px, 4vw, 48px); line-height:1.15; letter-spacing:-.025em; }
body.fmwp-page-forums #main-content > article .fmwp-archive-forums-wrapper { margin:0; padding:0; background:transparent; border:0; border-radius:0; }
/* Visually join the page/category heading to the forum list so it reads as one panel. */
body.fmwp-page-forums #main-content article > .section-heading:has(+ .fmwp-archive-forums-wrapper),
#main-content .fmwp-tax-forum-category > .section-heading {
 margin:0 !important; padding:clamp(18px, 3vw, 28px) clamp(14px, 3vw, 28px) 0 !important;
 background:#10233d; border:1px solid #385675; border-bottom:0; border-radius:16px 16px 0 0;
}
body.fmwp-page-forums #main-content article > .section-heading:has(+ .fmwp-archive-forums-wrapper) h1,
#main-content .fmwp-tax-forum-category > .section-heading h1 { margin:0 0 18px; }
body.fmwp-page-forums #main-content article > .section-heading:has(+ .fmwp-archive-forums-wrapper) + .fmwp-archive-forums-wrapper,
#main-content .fmwp-tax-forum-category > .fmwp-archive-forums-wrapper {
 margin-top:0; border-top:0; border-radius:0 0 16px 16px;
}
body .fmwp .fmwp-forum-row .fmwp-forum-categories-wrapper { display:flex !important; flex-wrap:wrap; gap:8px; margin-top:8px; }
body .fmwp .fmwp-forum-category > a {
 display:inline-flex; align-items:center; min-height:30px; padding:4px 11px; border:1px solid #385675; border-radius:999px;
 background:#183b57 !important; color:#a5f3fc !important; font-size:12px; font-weight:600; line-height:1.3; text-decoration:none; box-shadow:none;
}
body .fmwp .fmwp-forum-category > a:hover { background:#234b68 !important; border-color:#67e8f9; color:#f0f6ff !important; }

/* ForumWP's standalone login page uses a different form from Ultimate Member. */
body.fmwp-page-login #main-content > article {
 width: 100%;
 max-width: 480px;
 box-sizing: border-box;
 margin-inline: auto;
 padding: clamp(24px, 4vw, 36px);
 background: linear-gradient(145deg, #142d4b, #0e2039);
 border: 1px solid #385675;
 border-radius: 20px;
 box-shadow: 0 20px 56px #00000030;
}
body.fmwp-page-login #main-content > article > .section-heading {
 margin: 0 0 26px;
 text-align: center;
}
body.fmwp-page-login #main-content > article > .section-heading h1 {
 margin: 0;
 font-size: clamp(26px, 3vw, 32px);
 line-height: 1.2;
 letter-spacing: -.025em;
}
body.fmwp-page-login #fmwp-loginform p { margin: 0 0 20px; }
body.fmwp-page-login #fmwp-loginform label {
 display: block;
 margin-bottom: 8px;
 color: #f0f6ff;
 font-size: 14px;
 font-weight: 600;
}
body.fmwp-page-login #fmwp-loginform :is(input[type='text'], input[type='password'], input[type='submit']) {
 width: 100%;
 min-height: 48px;
 font-size: 15px;
}
body.fmwp-page-login #fmwp-loginform .login-remember label {
 display: flex;
 align-items: center;
 gap: 10px;
 color: #bacbe2;
 font-weight: 400;
}
body.fmwp-page-login #fmwp-loginform input[type='checkbox'] {
 width: 18px;
 height: 18px;
 margin: 0;
 accent-color: #67e8f9;
}
body.fmwp-page-login #fmwp-rp-link { display: block; text-align: center; font-size: 14px; }
@media (max-width: 600px) {
 body.fmwp-page-login #main-content { padding: 28px 18px; }
}

/* Homepage Discussions links use the same button structure as other sections. */
body .ptum-brainstorm a.btn.secondary {
 box-sizing: border-box; min-height: 48px; padding: 12px 20px;
 background: #183b57; color: #a5f3fc; border: 1px solid #385675;
 border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.4;
 text-decoration: none; text-align: center; flex-shrink: 0;
}
body .ptum-brainstorm a.btn.secondary:hover { background: #234b68; color: #f0f6ff; border-color: #67e8f9; }
body .ptum-brainstorm a.btn.secondary:focus-visible { outline: 2px solid #67e8f9; outline-offset: 4px; }
@media (max-width:600px) {
 body .ptum-discussion-links { flex-direction: column; }
 body .ptum-brainstorm .list-card > a.btn { align-self: flex-start; }
}

/* Category sections enhance the native list after ForumWP supplies permitted rows. */
body .fmwp.ptum-forum-categories-enabled > .fmwp-forums-wrapper-heading { display:none!important; }
body .fmwp.ptum-forum-categories-enabled > .fmwp-forums-wrapper { gap:18px; }
body .fmwp .fmwp-forums-wrapper > .ptum-forum-category-group {
 padding:0; margin:0; border:1px solid #385675; border-radius:14px; background:#0c1c31;
 min-width:0;
}
body .fmwp .ptum-forum-category-heading {
 display:flex; align-items:center; gap:14px; padding:18px 20px; margin:0;
 background:#18364f; color:#f0f6ff; border-radius:13px; cursor:pointer; list-style:none;
}
body .fmwp .ptum-forum-category-heading::-webkit-details-marker { display:none; }
body .fmwp .ptum-forum-category-heading::marker { content:''; }
body .fmwp .ptum-forum-category-heading:focus-visible { outline:2px solid #67e8f9; outline-offset:3px; }
body .fmwp .ptum-forum-category-group[open] > summary { border-radius:13px 13px 0 0; border-bottom:1px solid #385675; }
body .fmwp .ptum-forum-category-icon { display:flex; flex:0 0 42px; align-items:center; justify-content:center; width:42px; height:42px; border-radius:11px; background:#234862; color:#67e8f9; }
body .fmwp .ptum-forum-category-icon svg { display:block; width:24px; height:24px; }
body .fmwp .ptum-forum-category-title { display:flex; flex-direction:column; min-width:0; flex:1; }
body .fmwp .ptum-forum-category-label { font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:#bacbe2; }
body .fmwp .ptum-forum-category-name { font-size:20px; line-height:1.4; font-weight:700; overflow-wrap:anywhere; }
body .fmwp .ptum-forum-category-count { font-size:13px; color:#bacbe2; white-space:nowrap; }
body .fmwp .ptum-forum-category-chevron { font-size:24px; line-height:1; transform:rotate(-90deg); }
body .fmwp .ptum-forum-category-group[open] > summary .ptum-forum-category-chevron { transform:none; }
body .fmwp .ptum-forum-category-body { padding:0 20px 8px; }
body .fmwp .ptum-forum-category-link { display:inline-block; margin:12px 0 2px; font-size:12px; text-underline-offset:3px; }
body .fmwp .ptum-forum-category-group .fmwp-forum-row { padding:18px 0!important; }
body .fmwp .ptum-forum-category-group .fmwp-forum-row:last-child { border-bottom:0; }
body .fmwp .ptum-forum-category-group .fmwp-forum-categories-wrapper { display:none!important; }
/* A forum appears once under its first category; retain other category navigation. */
body .fmwp .ptum-forum-category-group .ptum-forum-multiple-categories .fmwp-forum-categories-wrapper { display:flex!important; }
body .fmwp .ptum-forum-category-group .ptum-forum-primary-category { display:none!important; }
body .fmwp .ptum-forum-category-group .fmwp-forum-category { border:0!important; padding:0!important; }
body .fmwp .ptum-forum-category-group .fmwp-forum-category > a { padding:0; border:0; background:transparent!important; min-height:0; text-decoration:underline; }
/* Override native fixed-width columns, including ForumWP's container breakpoints. */
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-row .fmwp-forum-row-lines {
 display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; min-width:0; flex:1;
}
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-row .fmwp-forum-row-line.fmwp-forum-primary-data { width:100%; min-width:0; }
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-row .fmwp-forum-statistics-data { width:auto!important; margin:0!important; gap:18px; align-items:center; }
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-row .fmwp-forum-statistics-data > div { width:auto!important; margin:0!important; font-size:13px; text-align:left; }
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-statistics-data .fmwp-responsive.fmwp-ui-xs { display:none!important; }
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-statistics-data .fmwp-responsive.fmwp-ui-s { display:inline!important; }
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-topics::before,
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-replies-count::before,
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-last-upgrade::before {
 display:block; font-size:11px; color:#bacbe2; line-height:1.5;
}
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-topics::before { content:'Topics'; }
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-replies-count::before { content:'Replies'; }
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-last-upgrade::before { content:'Updated'; }
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-row .fmwp-forum-actions { flex:0 0 24px; width:24px; align-self:center; }
body .fmwp.ptum-forum-categories-enabled .fmwp-forum-actions-dropdown { min-height:44px; min-width:24px; justify-content:center; }
@media (max-width:760px) {
 body .fmwp .ptum-forum-category-heading { padding:14px; gap:10px; }
 body .fmwp .ptum-forum-category-body { padding:0 14px 4px; }
 body .fmwp .ptum-forum-category-name { font-size:18px; }
 body .fmwp .ptum-forum-category-icon { flex-basis:36px; width:36px; height:36px; }
 body .fmwp .ptum-forum-category-count { font-size:11px; }
 body .fmwp.ptum-forum-categories-enabled .fmwp-forum-row .fmwp-forum-row-lines { grid-template-columns:minmax(0,1fr); gap:12px; }
 body .fmwp.ptum-forum-categories-enabled .fmwp-forum-row .fmwp-forum-statistics-data { flex-wrap:wrap!important; gap:22px; }
 body .fmwp.ptum-forum-categories-enabled .fmwp-forum-row .fmwp-forum-actions { align-self:flex-start; }
}

/* Individual forums: labelled category banner, title and cohesive topic panel. */
body.single-fmwp_forum #main-content > article > .section-heading > p { display:none; }
body.single-fmwp_forum #main-content > article.fmwp-hidden-title > .section-heading { display:none; }
body.single-fmwp_forum .fmwp-forum-wrapper {
 background:#10233d; border-color:#385675; box-shadow:0 16px 40px #00000020;
}
body.single-fmwp_forum .fmwp-forum-info { margin:0 0 20px; padding:0; min-width:0; color:#bacbe2; }
body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-data { min-width:0; }
body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-data.fmwp-forum-no-avatar { width:100%!important; }
body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-data-line:not(.fmwp-forum-content) {
 flex-direction:column; align-items:stretch; gap:18px;
}
body.single-fmwp_forum #main-content .fmwp-forum-info h1.entry-title { margin:0; color:#f0f6ff; }
body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-data-line.fmwp-forum-content { color:#bacbe2; font-size:15px; line-height:1.7; }
body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-data-line.fmwp-forum-content:empty { display:none; }
body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-categories {
 order:-1; display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; margin:0;
 padding:14px 18px; background:#18364f; border:1px solid #385675; border-radius:12px; box-sizing:border-box;
}
body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-categories > .ptum-forum-category-label { flex:0 0 100%; }
body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-categories .fmwp-forum-category {
 padding:0!important; margin:0!important; border:0!important; border-radius:0; font-size:18px!important; line-height:1.4; min-width:0;
}
body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-category > a {
 display:inline-flex; align-items:center; gap:12px; padding:0; min-height:44px; border:0; border-radius:0;
 background:transparent!important; font-size:18px; font-weight:700; color:#f0f6ff!important;
 text-decoration:none; overflow-wrap:anywhere;
}
body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-category > a:hover { color:#67e8f9!important; }
body.single-fmwp_forum .fmwp-forum-head :is(.fmwp-forum-nav-bar, .fmwp-forum-nav-bar-mobile) {
 padding:16px; margin:0 0 18px; border:1px solid #385675; border-radius:12px; background:#0c1c31;
 color:#bacbe2; gap:12px; font-size:14px;
}
body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-nav-bar { flex-wrap:wrap; align-items:center; }
body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-nav-bar-line { flex-wrap:wrap; align-items:center; gap:12px; min-width:0; }
body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-search-bar { gap:8px; align-items:center; min-width:0; }
body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-search-bar label { margin:0; min-width:0; flex:1; }
body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-search-line { width:100%; }
body.single-fmwp_forum .fmwp-forum-head .fmwp-search-toggle i { color:#67e8f9!important; }
body.single-fmwp_forum .fmwp-forum-wrapper .fmwp-topics-wrapper-heading { padding-block:12px; font-size:12px; }
body.single-fmwp_forum .fmwp-forum-wrapper .fmwp-topic-row { padding-block:18px; }
body.single-fmwp_forum .fmwp-forum-wrapper .fmwp-topic-title-line { font-size:15px; line-height:1.6; }
body.single-fmwp_forum .fmwp-forum-wrapper .fmwp-topic-title { color:#67e8f9!important; }
body.single-fmwp_forum .fmwp-forum-wrapper .fmwp-topic-title-line a:hover .fmwp-topic-title { color:#a5f3fc!important; }
body.single-fmwp_forum .fmwp-forum-wrapper :is(.fmwp-topic-statistics-data, .fmwp-topic-last-upgrade, .fmwp-no-topics) { color:#bacbe2; font-size:13px; }
body.single-fmwp_forum .fmwp-forum-wrapper .fmwp-topic-actions-dropdown { min-height:44px; display:flex; align-items:center; }
@media (max-width:760px) {
 body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-categories { padding:12px 14px; }
 body.single-fmwp_forum .fmwp-forum-info .fmwp-forum-category > a { font-size:17px; }
 body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-nav-bar-mobile { padding:12px; }
 body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-nav-bar-line-mobile:not(.fmwp-search-wrapper),
 body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-nav-bar-subline-mobile { flex-wrap:wrap; align-items:center; gap:12px; }
 body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-nav-bar-subline-mobile { flex:1; flex-wrap:wrap!important; justify-content:space-between; }
 body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-search-bar { width:100%; }
 body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-search-bar label { max-width:100%; }
 body.single-fmwp_forum .fmwp-forum-head .fmwp-forum-sort-wrapper select { max-width:100%; }
 body.single-fmwp_forum .fmwp-forum-wrapper .fmwp-topic-row .fmwp-topic-primary-data { min-width:0; }
}

/* Individual topics share the forum panel, navigation banner and reading surfaces. */
body.single-fmwp_topic #main-content > article > .section-heading > p { display:none; }
body.single-fmwp_topic #main-content > article.fmwp-hidden-title > .section-heading { display:none; }
body.single-fmwp_topic .fmwp-topic-main-wrapper {
 background:#10233d; border-color:#385675; box-shadow:0 16px 40px #00000020;
}
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-head { display:flex; flex-direction:column; gap:20px; margin:0 0 24px; }
body.single-fmwp_topic #main-content .fmwp-topic-head h1 { margin:0; color:#f0f6ff; }
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-head .fmwp-topic-info {
 order:-1; display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px;
 padding:16px 18px; background:#18364f; border:1px solid #385675; border-radius:12px;
}
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-head .fmwp-topic-info > * { border:0; margin:0; padding:0; min-width:0; }
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-head .fmwp-topic-forum-link {
 flex:1 1 220px; font-size:18px; font-weight:700; line-height:1.5; color:#f0f6ff!important;
 text-decoration:none; overflow-wrap:anywhere;
}
body.single-fmwp_topic .fmwp-topic-forum-link::before {
 content:'Forum'; display:block; margin-bottom:4px; font-size:11px; font-weight:400;
 letter-spacing:.1em; text-transform:uppercase; color:#bacbe2;
}
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-head .fmwp-topic-forum-link:hover { color:#67e8f9!important; }
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-head .fmwp-topic-stats { color:#bacbe2; font-size:13px; line-height:1.6; }
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-head .fmwp-tags-stats { flex-basis:100%; }
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-content .fmwp-topic-base {
 padding:20px; border:1px solid #385675; border-radius:12px; background:#0c1c31;
}
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data, .fmwp-reply-data) { min-width:0; }
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-content, .fmwp-reply-content) {
 color:#f0f6ff; font-size:16px; line-height:1.8; overflow-wrap:anywhere;
}
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-content, .fmwp-reply-content) > :first-child { margin-top:0; }
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-content, .fmwp-reply-content) > :last-child { margin-bottom:0; }
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-top, .fmwp-reply-top) { margin-bottom:14px!important; line-height:1.5!important; }
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-subdata, .fmwp-reply-subdata) { color:#bacbe2!important; font-size:12px!important; line-height:1.5; }
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-content .fmwp-topic-base-footer {
 margin-top:20px; padding-top:16px; border-top:1px solid #385675; flex-wrap:wrap; gap:12px;
}
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-wrapper {
 margin-top:24px; padding:0; border-top:0; gap:16px;
}
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-wrapper .fmwp-reply-row {
 box-sizing:border-box; padding:20px; margin-block:0; border:1px solid #385675!important;
 border-radius:12px; background:#0c1c31;
}
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-no-replies {
 box-sizing:border-box; padding:18px 20px; border:1px dashed #385675; border-radius:12px;
 background:#0c1c31; color:#bacbe2; font-size:14px; line-height:1.7;
}
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-top-actions-dropdown, .fmwp-reply-top-actions-dropdown) {
 display:inline-flex; min-width:24px; min-height:44px; align-items:center; justify-content:center; color:#bacbe2!important;
}
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-head, .fmwp-reply-head) { min-width:0; }
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-head-section, .fmwp-reply-head-data) { overflow-wrap:anywhere; }
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-action, .fmwp-reply-action) { color:#bacbe2!important; }
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-action, .fmwp-reply-action):hover { color:#67e8f9!important; }
@media (max-width:600px) {
 body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-head .fmwp-topic-info { padding:14px; gap:10px 18px; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-head .fmwp-topic-forum-link { flex-basis:100%; font-size:17px; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-content .fmwp-topic-base,
 body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-wrapper .fmwp-reply-row { padding:14px; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-content, .fmwp-reply-content) { font-size:15px; line-height:1.75; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-head, .fmwp-reply-head) { flex-wrap:wrap!important; gap:6px; align-items:flex-start!important; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-head-section, .fmwp-reply-head-data) { max-width:100%!important; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-subdata, .fmwp-reply-subdata) { padding:0!important; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-content .fmwp-topic-base-footer :is(.fmwp-topic-left-panel, .fmwp-topic-right-panel) { max-width:100%; flex-wrap:wrap; gap:10px; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-sort-wrapper label { flex-wrap:wrap!important; gap:6px; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper select { max-width:100%; }
}
/* Reserve space for the wider touch targets without covering author metadata. */
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-top-actions, .fmwp-reply-top-actions) { flex:0 0 24px; width:24px!important; }
body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-head, .fmwp-reply-head) { width:calc(100% - 36px)!important; }
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-topic-no-actions .fmwp-topic-data-head { width:100%!important; }
@media (max-width:600px) {
 /* Keep the avatar beside the author, then give the message the full card width. */
 body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-base-header, .fmwp-reply-base) {
  display:grid!important; grid-template-columns:40px minmax(0,1fr); gap:14px 10px; align-items:start;
 }
 body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-avatar, .fmwp-reply-avatar) { grid-column:1; grid-row:1; margin:0!important; width:40px!important; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-avatar, .fmwp-reply-avatar) :is(a,img) { width:40px!important; height:40px!important; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data, .fmwp-reply-data) { display:contents!important; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data, .fmwp-reply-data) > * { grid-column:1 / -1; min-width:0; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-top, .fmwp-reply-top) { grid-column:2; grid-row:1; margin:0!important; }
 body.single-fmwp_topic .fmwp-topic-main-wrapper :is(.fmwp-topic-data-head-section, .fmwp-reply-head-data) { flex-basis:100%; }
}
/* Native child replies otherwise reintroduce a light surface at deeper nesting. */
body.single-fmwp_topic .fmwp-topic-main-wrapper .fmwp-reply-row.fmwp-child-reply { background:#0c1c31!important; }

/* Embed the original ForumWP form, with its editor above the native submit action. */
body.single-fmwp_topic #fmwp-reply-popup-wrapper.ptum-inline-reply {
 position:static!important; display:block!important; visibility:visible!important;
 width:100%; height:auto!important; min-height:0; max-height:none; padding:0; margin:0;
 inset:auto; z-index:auto; border:0; background:transparent!important; box-sizing:border-box;
}
body.single-fmwp_topic .ptum-has-inline-reply .fmwp-topic-base-footer { align-items:stretch; }
body.single-fmwp_topic .ptum-has-inline-reply .fmwp-topic-base-footer > .ptum-inline-reply { flex:0 0 100%; order:-1; }
body.single-fmwp_topic .ptum-has-inline-reply .fmwp-topic-left-panel > .fmwp-write-reply { display:none!important; }
body.single-fmwp_topic .ptum-inline-reply :is(.fmwp-post-popup-toolbar, .fmwp-post-popup-actions-bottom, #fmwp-reply-popup-avatar) { display:none!important; }
body.single-fmwp_topic .ptum-inline-reply .fmwp-post-popup-header { margin:0 0 12px; padding:0; background:transparent; font-size:13px; color:#bacbe2; }
body.single-fmwp_topic .ptum-inline-reply .fmwp-post-popup-header-section { max-width:100%!important; }
body.single-fmwp_topic .ptum-inline-reply .ptum-inline-reply-label { display:block; margin:0 0 6px; font-size:17px; font-weight:700; color:#f0f6ff; }
body.single-fmwp_topic .ptum-inline-reply .ptum-inline-reply-help { margin:0 0 12px; color:#bacbe2; font-size:13px; }
body.single-fmwp_topic .ptum-inline-reply #fmwp-reply-popup-editors { display:block; width:100%; height:auto!important; }
body.single-fmwp_topic .ptum-inline-reply #fmwp-reply-popup-editor { height:auto!important; padding:0; float:none; }
body.single-fmwp_topic .ptum-inline-reply #fmwpreplycontent { width:100%; min-height:160px; height:180px!important; padding:14px; font-size:16px; line-height:1.6; resize:vertical; }
body.single-fmwp_topic .ptum-inline-reply #fmwpreplycontent_ifr { min-height:160px; }
body.single-fmwp_topic .ptum-inline-reply .ptum-inline-reply-actions { display:flex!important; gap:10px; flex-wrap:wrap; justify-content:flex-start; margin-top:14px; }
body.single-fmwp_topic .ptum-inline-reply .ptum-inline-reply-actions > .fmwp-reply-popup-discard { order:1; }
body.single-fmwp_topic .ptum-inline-reply .ptum-inline-reply-error { color:#ffb4b4; margin:10px 0; font-size:14px; }
body.single-fmwp_topic .ptum-inline-reply .ptum-inline-reply-error[hidden] { display:none; }
body.single-fmwp_topic #fmwp-reply-popup-wrapper.ptum-inline-reply form { height:auto; }
body.single-fmwp_topic #fmwp-reply-popup-wrapper.ptum-inline-reply #fmwp-reply-popup-quote { max-width:100%; }
body.single-fmwp_topic #fmwp-reply-popup-wrapper.ptum-inline-reply #wp-fmwpreplycontent-editor-container textarea {
 height:180px!important; min-height:160px; resize:vertical;
}
body.single-fmwp_topic .ptum-inline-reply .fmwp-post-popup-header { display:none; }
body.single-fmwp_topic .ptum-inline-reply .ptum-inline-reply-actions { align-items:center; }
body.single-fmwp_topic .ptum-inline-reply .fmwp-ajax-loading { display:none; }
body.single-fmwp_topic :is(.fmwp-topic-locked, .fmwp-topic-trashed, .fmwp-topic-pending, .fmwp-topic-spam) #fmwp-reply-popup-wrapper.ptum-inline-reply { display:none!important; }
