/* Tambayan18 v3.2 — compact forum skin inspired by the provided visual reference.
   Styles only the native forum appearance; no external assets or WJunction code. */
body.t18-wj-style {
    --shadow:none;
    font-size:13px;
    background:var(--bg);
}
body.t18-wj-style .container { width:min(calc(100% - 36px),var(--site-width,1496px)); }
body.t18-wj-style .main-area { padding-top:18px;padding-bottom:50px; }
body.t18-wj-style .page-crumb { margin:0 0 17px;font-size:11px; }
body.t18-wj-style .site-header {background:#10141c;}
body.t18-wj-style .site-footer{background:#0d1119;}
body.t18-wj-style .button-primary{background:var(--pink)!important;border-color:var(--pink)!important;box-shadow:none;}
body.t18-wj-style .button-primary:hover{background:var(--pink-light)!important;}
body.t18-wj-style .forum-tools{background:var(--panel);margin:0 0 16px;padding:9px 15px;border-radius:10px;}
body.t18-wj-style .tools-label>strong{font-size:12px}
body.t18-wj-style .forum-search{border-radius:8px;max-width:360px}
body.t18-wj-style .t18-explore-bar{margin-top:13px}
body.t18-wj-style .t18-explore-bar .forum-tools{margin-bottom:0}
@media (min-width:901px){
  /* Desktop: vertical brand/menu in the left column replaces top site navigation. */
  body.t18-wj-style.t18-wj-forum-view.t18-three-column .site-header,
  body.t18-wj-style.t18-wj-forum-view.t18-only-categories-sidebar .site-header {display:none}
  body.t18-wj-style.t18-three-column .forum-columns,
  body.t18-wj-style.t18-three-column.t18-sidebar-left .forum-columns{
    grid-template-columns:295px minmax(0,1fr) 280px;gap:16px;align-items:start;
  }
  body.t18-wj-style.t18-three-column .forum-columns>.t18-categories-sidebar{
    grid-column:1;grid-row:1;min-width:0;display:flex;position:sticky;top:12px;
  }
  body.t18-wj-style.t18-three-column .forum-columns>.forum-primary{grid-column:2;grid-row:1;min-width:0}
  body.t18-wj-style.t18-three-column .forum-columns>.forum-sidebar:not(.t18-categories-sidebar){grid-column:3;grid-row:1;min-width:0}
  body.t18-wj-style.t18-only-categories-sidebar .forum-columns{grid-template-columns:295px minmax(0,1fr)}
  body.t18-wj-style.t18-only-categories-sidebar .forum-columns>.t18-categories-sidebar{grid-column:1;grid-row:1}
  body.t18-wj-style.t18-only-categories-sidebar .forum-columns>.forum-primary{grid-column:2;grid-row:1}
}
@media (min-width:901px) and (max-width:1240px){
  body.t18-wj-style.t18-three-column .forum-columns,
  body.t18-wj-style.t18-three-column.t18-sidebar-left .forum-columns{
    grid-template-columns:245px minmax(0,1fr) 235px;gap:11px;
  }
  body.t18-wj-style.t18-only-categories-sidebar .forum-columns{grid-template-columns:245px minmax(0,1fr)}
}
/* Left sticky category/nav panel */
body.t18-wj-style .t18-categories-sidebar{
  display:flex;flex-direction:column;gap:0;min-width:0;background:var(--bg-soft);
  padding:13px 11px;border:1px solid var(--stroke-soft);border-radius:17px;
}
@media (min-width:901px){
  body.t18-wj-style .t18-categories-sidebar{max-height:calc(100vh - 26px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#343b4d transparent}
}
body.t18-wj-style .t18-wj-left-head{padding:2px 0 0}
body.t18-wj-style .t18-wj-left-brand{display:flex;align-items:center;justify-content:center;gap:9px;color:#f7f8fb;font-size:21px;font-weight:850;letter-spacing:-.8px;padding:7px 2px 16px;line-height:1.2}
body.t18-wj-style .t18-wj-brand-symbol{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;background:var(--pink);color:#fff;border-radius:9px;font-size:25px;line-height:1}
body.t18-wj-style .t18-wj-member{display:flex;align-items:center;gap:10px;min-width:0;border:1px solid #303949;border-radius:10px;background:#171e2a;padding:8px 9px;margin:0 0 11px}
body.t18-wj-style .t18-wj-member .t18-avatar{border-radius:50%;flex-shrink:0}
body.t18-wj-style .t18-wj-member>a{display:flex;flex-direction:column;gap:1px;min-width:0;line-height:1.25}
body.t18-wj-style .t18-wj-member strong{font-size:12px;font-weight:730;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}
body.t18-wj-style .t18-wj-member span:not(.t18-avatar){font-size:10px;color:var(--faint)}
body.t18-wj-style .t18-wj-guest-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#283346;color:#d9e3f4;font-size:18px}
body.t18-wj-style .t18-wj-left-nav{display:flex;flex-direction:column;gap:3px;padding:0 0 13px}
body.t18-wj-style .t18-wj-left-nav>a,
body.t18-wj-style .t18-wj-custom-menu>li>a{display:flex;align-items:center;gap:11px;padding:9px 11px;color:#d9dee7;border-radius:9px;font-size:12px;font-weight:600;min-height:34px}
body.t18-wj-style .t18-wj-left-nav>a>span{font-size:17px;width:18px;line-height:1;color:#9daabd;text-align:center}
body.t18-wj-style .t18-wj-left-nav>a:hover,
body.t18-wj-style .t18-wj-left-nav>a.is-current,
body.t18-wj-style .t18-wj-custom-menu>li.current-menu-item>a,
body.t18-wj-style .t18-wj-custom-menu>li>a:hover{background:linear-gradient(90deg,#522032,#3c1928);color:#fff}
body.t18-wj-style .t18-wj-custom-menu{list-style:none;margin:0;padding:0}
body.t18-wj-style .t18-wj-custom-menu li{list-style:none}
body.t18-wj-style .t18-wj-custom-menu .sub-menu{list-style:none;margin:0 0 5px 12px;padding:2px 0 2px 8px;border-left:1px solid #354052}
body.t18-wj-style .t18-wj-custom-menu .sub-menu a{display:block;color:var(--muted);font-size:11px;padding:5px 7px;border-radius:6px}
body.t18-wj-style .t18-wj-custom-menu .sub-menu a:hover{background:#252d3c;color:#fff}
body.t18-wj-style .t18-wj-section-label{display:block;padding:3px 12px 8px;font-size:10px;letter-spacing:1.6px;color:#9fa9ba;font-weight:700}
body.t18-wj-style .t18-sidebar-categories-card{background:transparent;border:0;padding:0;border-radius:0;box-shadow:none}
body.t18-wj-style .t18-sidebar-categories-card>.sidebar-heading{display:none}
body.t18-wj-style .t18-category-link{padding:8px 9px;min-height:36px;border-radius:9px;align-items:center;gap:7px;color:#d1d8e5;font-size:12px;font-weight:520;transition:background .15s}
body.t18-wj-style .t18-category-link:hover,body.t18-wj-style .t18-category-item.is-current>.t18-category-link{background:#252c3a;color:#fff}
body.t18-wj-style .t18-category-link::before{content:'▣';font-size:11px;color:#bdc5d2;width:17px;text-align:center;flex:none}
body.t18-wj-style .t18-category-count{color:#a4aec0;background:#232b39;border-radius:6px;font-size:10px;font-weight:650;padding:1px 6px;margin-left:auto}
/* Recent activity stream */
body.t18-wj-style .discussions-section>.section-heading{align-items:center;margin-bottom:12px}
body.t18-wj-style .discussions-section>.section-heading h2{font-size:27px;letter-spacing:-1px;line-height:1.25;font-weight:850;margin:0}
body.t18-wj-style .discussions-section>.section-heading .section-kicker{display:none}
body.t18-wj-style .discussions-section>.section-heading .section-action{display:inline-flex;align-items:center;justify-content:center;background:var(--pink);color:#fff!important;padding:10px 13px;border-radius:9px;font-size:12px;box-shadow:0 7px 19px #b80d3833}
body.t18-wj-style .topics-panel{background:none;border:0;border-radius:0;overflow:visible;box-shadow:none}
body.t18-wj-style .panel-tabs{border:0;background:transparent;display:flex;gap:5px;padding:0 0 13px}
body.t18-wj-style .panel-tab{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;min-width:45px;border-radius:7px;background:#1c2330;color:#aab5c5;font-size:11px;font-weight:700;border:0}
body.t18-wj-style .panel-tab.selected,body.t18-wj-style .panel-tab:hover{background:var(--pink);color:#fff!important}
body.t18-wj-style .topic-row.t18-wj-topic{display:flex;align-items:center;gap:15px;padding:16px 15px;margin:0 0 9px;background:color-mix(in srgb,var(--panel) 88%,#2a4169 12%);border:1px solid #262f3e;border-radius:13px;min-height:91px;box-shadow:none}
body.t18-wj-style .topic-row.t18-wj-topic:hover{background:var(--panel-hover);border-color:#3a4355}
body.t18-wj-style .t18-wj-topic .topic-avatar{flex:none;align-self:center}
body.t18-wj-style .t18-wj-topic .topic-avatar .t18-avatar{border-radius:9px}
body.t18-wj-style .t18-wj-topic .topic-main{display:flex;flex-direction:column;flex:1;min-width:0;gap:3px}
body.t18-wj-style .t18-wj-topic .t18-wj-category{display:table;align-self:flex-start;padding:2px 8px;border-radius:5px;background:#303a4b;color:#b7c3d2;font-size:9px;line-height:1.45;letter-spacing:.5px;text-transform:uppercase;font-weight:720}
body.t18-wj-style .t18-wj-topic .topic-title{font-size:13px;line-height:1.42;font-weight:760;color:#f5f7fa!important;display:block;overflow-wrap:anywhere}
body.t18-wj-style .t18-wj-topic .topic-title:hover{color:var(--pink-light)!important}
body.t18-wj-style .t18-wj-post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:10px;line-height:1.45;color:#a5b0c1}
body.t18-wj-style .t18-wj-last-activity{display:flex;align-items:center;gap:7px;min-width:132px;max-width:145px;padding:6px 8px;border:1px solid #354153;border-radius:20px;background:#222b39;overflow:hidden}
body.t18-wj-style .t18-wj-last-activity .t18-avatar{border-radius:50%;flex:none}
body.t18-wj-style .t18-wj-last-activity>div{display:flex;flex-direction:column;gap:1px;min-width:0;line-height:1.2}
body.t18-wj-style .t18-wj-last-user{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#d5deeb}
body.t18-wj-style .t18-wj-last-activity time{color:#a4aec0;font-size:9px;white-space:nowrap}
body.t18-wj-style .t18-pagination{margin:10px 0 20px}
/* Right-hand widgets */
body.t18-wj-style .forum-sidebar:not(.t18-categories-sidebar){gap:14px}
body.t18-wj-style .forum-sidebar:not(.t18-categories-sidebar) .sidebar-card{background:var(--panel);border:1px solid #252d3b;border-radius:14px;padding:17px 15px}
body.t18-wj-style .forum-sidebar .sidebar-heading{margin-bottom:12px;gap:7px}
body.t18-wj-style .forum-sidebar .sidebar-heading h3{font-size:13px;color:#f6f7fa;letter-spacing:.1px}
body.t18-wj-style .sidebar-trending .t18-trending-item{padding:12px 0;gap:7px}
body.t18-wj-style .sidebar-trending .t18-trending-title{font-size:12px;font-weight:400;line-height:1.45}
body.t18-wj-style .sidebar-trending .t18-trending-views{font-size:10px}
body.t18-wj-style .sidebar-latest .t18-feed-title{font-weight:400!important;font-size:12px!important}
body.t18-wj-style .sidebar-latest .t18-feed-time{font-size:10px}
body.t18-wj-style .t18-widget-empty{line-height:1.65}
/* Misc: category pages, forms, replies retain native interactions but use tighter surfaces. */
body.t18-wj-style .form-card,body.t18-wj-style .topic-content-card,body.t18-wj-style .reply-card,
body.t18-wj-style .reply-form-panel,body.t18-wj-style .content-card{background:var(--panel);border-color:#303847;border-radius:12px}
body.t18-wj-style .category-card{background:color-mix(in srgb,var(--panel) 88%,#2a4169 12%);border-color:#2e3645}
body.t18-wj-style .t18-wj-topic .topic-excerpt{display:none}
@media(max-width:1100px){
  body.t18-wj-style .topic-row.t18-wj-topic{gap:10px;padding:12px}
  body.t18-wj-style .t18-wj-last-activity{min-width:95px;max-width:102px;padding:4px}
  body.t18-wj-style .t18-wj-last-activity .t18-avatar{display:none}
}
@media(max-width:900px){
  body.t18-wj-style .forum-columns{gap:14px}
  body.t18-wj-style .t18-categories-sidebar{position:static;max-height:none;overflow:visible}
  body.t18-wj-style .t18-wj-left-head{display:none}
  body.t18-wj-style .t18-sidebar-categories-card>.sidebar-heading{display:flex}
  body.t18-wj-style .t18-explore-bar{margin-top:7px}
}
@media(max-width:670px){
  body.t18-wj-style .container{width:calc(100% - 20px)}
  body.t18-wj-style .main-area{padding-top:12px}
  body.t18-wj-style .forum-tools{gap:10px;align-items:stretch}
  body.t18-wj-style .discussions-section>.section-heading h2{font-size:23px}
  body.t18-wj-style .discussions-section>.section-heading .section-action{font-size:10px;padding:8px 9px}
  body.t18-wj-style .topic-row.t18-wj-topic{gap:10px;min-height:70px}
  body.t18-wj-style .t18-wj-topic .topic-avatar .t18-avatar{--avatar-size:35px!important;width:35px;height:35px;flex-basis:35px}
  body.t18-wj-style .t18-wj-last-activity{display:none}
  body.t18-wj-style .t18-wj-topic .topic-title{font-size:12px}
  body.t18-wj-style .t18-wj-post-meta{font-size:9px}
  body.t18-wj-style .panel-tabs{overflow-x:auto}
}


/* v3.4.0 — wider WJunction-style canvas + comfortably readable forum typography.
   Driven by Layout & Sections > Maximum width / Forum text size. */
body.t18-wj-style {
  font-size:var(--t18-reading-size,16px);
  line-height:1.55;
}
body.t18-wj-style .container {
  width:min(calc(100% - 32px),var(--site-width,1800px));
}
body.t18-wj-style .main-area {padding-top:20px;}
@media(min-width:1241px) {
  body.t18-wj-style.t18-three-column .forum-columns,
  body.t18-wj-style.t18-three-column.t18-sidebar-left .forum-columns {
    grid-template-columns:minmax(260px,315px) minmax(0,1fr) minmax(270px,310px);
    gap:20px;
  }
  body.t18-wj-style.t18-only-categories-sidebar .forum-columns {
    grid-template-columns:minmax(260px,315px) minmax(0,1fr);
    gap:20px;
  }
}
body.t18-wj-style .t18-wj-left-brand {font-size:25px;}
body.t18-wj-style .t18-wj-left-nav>a,
body.t18-wj-style .t18-wj-custom-menu>li>a {font-size:calc(var(--t18-reading-size,16px) - 2px);padding:11px 12px;min-height:40px;}
body.t18-wj-style .t18-wj-custom-menu .sub-menu a {font-size:calc(var(--t18-reading-size,16px) - 3px);}
body.t18-wj-style .t18-category-link {font-size:calc(var(--t18-reading-size,16px) - 2px);padding:10px 10px;min-height:42px;}
body.t18-wj-style .t18-wj-member strong {font-size:calc(var(--t18-reading-size,16px) - 2px);}
body.t18-wj-style .t18-wj-member span:not(.t18-avatar) {font-size:calc(var(--t18-reading-size,16px) - 4px);}
body.t18-wj-style .t18-wj-section-label {font-size:12px;}
body.t18-wj-style .discussions-section>.section-heading h2 {font-size:clamp(27px,2vw,32px);}
body.t18-wj-style .discussions-section>.section-heading .section-action {font-size:calc(var(--t18-reading-size,16px) - 3px);padding:11px 15px;}
body.t18-wj-style .panel-tab {font-size:calc(var(--t18-reading-size,16px) - 3px);padding:9px 14px;}
body.t18-wj-style .topic-row.t18-wj-topic {padding:18px 17px;gap:16px;min-height:105px;margin-bottom:11px;}
body.t18-wj-style .t18-wj-topic .topic-title {font-size:calc(var(--t18-reading-size,16px) + 1px);line-height:1.43;font-weight:730;}
body.t18-wj-style .t18-wj-topic .t18-wj-category {font-size:calc(var(--t18-reading-size,16px) - 5px);}
body.t18-wj-style .t18-wj-post-meta {font-size:calc(var(--t18-reading-size,16px) - 3px);gap:7px;}
body.t18-wj-style .t18-wj-last-activity {min-width:145px;max-width:180px;gap:9px;padding:9px 10px;}
body.t18-wj-style .t18-wj-last-user {font-size:calc(var(--t18-reading-size,16px) - 4px);}
body.t18-wj-style .t18-wj-last-activity time {font-size:calc(var(--t18-reading-size,16px) - 5px);}
body.t18-wj-style .forum-sidebar .sidebar-heading h3 {font-size:calc(var(--t18-reading-size,16px) + 1px);}
body.t18-wj-style .forum-sidebar:not(.t18-categories-sidebar) .sidebar-card {padding:19px 18px;}
body.t18-wj-style .sidebar-trending .t18-trending-title,
body.t18-wj-style .sidebar-latest .t18-feed-title {font-size:calc(var(--t18-reading-size,16px) - 2px)!important;font-weight:400!important;line-height:1.55;}
body.t18-wj-style .sidebar-trending .t18-trending-views,
body.t18-wj-style .sidebar-latest .t18-feed-time {font-size:calc(var(--t18-reading-size,16px) - 4px);}
body.t18-wj-style .sidebar-card p,
body.t18-wj-style .t18-comment-excerpt,
body.t18-wj-style .t18-widget-empty {font-size:calc(var(--t18-reading-size,16px) - 2px);}
body.t18-wj-style .topic-body,
body.t18-wj-style .reply-card,
body.t18-wj-style .reply-form-panel,
body.t18-wj-style .form-card {font-size:var(--t18-reading-size,16px);}
@media(min-width:901px) and (max-width:1240px){
  body.t18-wj-style.t18-three-column .forum-columns,
  body.t18-wj-style.t18-three-column.t18-sidebar-left .forum-columns {gap:12px;}
  body.t18-wj-style .t18-wj-last-activity {min-width:0;max-width:125px;}
  body.t18-wj-style .t18-wj-topic .topic-title {font-size:var(--t18-reading-size,16px);}
}
@media(max-width:900px){
  body.t18-wj-style .container {width:calc(100% - 24px);}
  body.t18-wj-style .topic-row.t18-wj-topic {padding:14px;min-height:83px;}
  body.t18-wj-style .t18-wj-last-activity {min-width:0;max-width:140px;}
}
@media(max-width:670px){
  body.t18-wj-style .container {width:calc(100% - 18px);}
  body.t18-wj-style .topic-row.t18-wj-topic {padding:13px 11px;gap:10px;}
  body.t18-wj-style .t18-wj-topic .topic-title {font-size:var(--t18-reading-size,16px);line-height:1.4;}
  body.t18-wj-style .t18-wj-post-meta {font-size:calc(var(--t18-reading-size,16px) - 4px);}
  body.t18-wj-style .forum-sidebar .sidebar-heading h3 {font-size:var(--t18-reading-size,16px);}
  body.t18-wj-style .sidebar-trending .t18-trending-title,
  body.t18-wj-style .sidebar-latest .t18-feed-title {font-size:calc(var(--t18-reading-size,16px) - 2px)!important;}
  body.t18-wj-style .discussions-section>.section-heading h2 {font-size:26px;}
  body.t18-wj-style .t18-wj-last-activity {display:none;}
}

/* v3.9.6: optional homepage thumbnail beside compact discussion title. */
body.t18-wj-style .t18-wj-topic .t18-wj-thumbnail {
  display:block;flex:0 0 116px;width:116px;height:70px;
  border:1px solid var(--stroke-soft);border-radius:9px;overflow:hidden;
  align-self:center;background:var(--bg-soft);
}
body.t18-wj-style .t18-wj-topic .t18-wj-thumbnail img {
  display:block;width:100%;height:100%;object-fit:cover;
}
@media(max-width:670px){
  body.t18-wj-style .t18-wj-topic .t18-wj-thumbnail{flex-basis:80px;width:80px;height:54px}
}
@media(max-width:380px){
  body.t18-wj-style .t18-wj-topic .t18-wj-thumbnail{flex-basis:70px;width:70px;height:48px}
}
