/* TeleFragged Quake II server browser styling.
   Scoped to application content. The shared 38px masthead is unchanged. */
:root {
  --tfq2-metal:#263126;
  --tfq2-metal2:#1b241d;
  --tfq2-edge:#596b4c;
  --tfq2-edge-soft:#3f503d;
  --tfq2-gold:#d0a052;
  --tfq2-light:#e7eadf;
}
body {
  background:radial-gradient(circle at 25% 10%,rgba(108,132,79,.075),transparent 35%),
             linear-gradient(180deg,#101710,#0c110e 55%,#0a0e0c);
}
main {max-width:1600px;}
main h1 {
  color:#f0f1e8;
  font-size:clamp(23px,2vw,30px);
  text-shadow:0 1px 2px #060906;
  letter-spacing:.012em;
}
main .subtitle {color:#b6c4ac;}
main aside,main .table-wrap,main .server-tools,main .empty {
  border:1px solid var(--tfq2-edge);
  border-radius:5px;
  box-shadow:inset 0 1px rgba(246,231,181,.035),0 4px 13px rgba(0,0,0,.18);
}
main aside {
  padding:0 16px 18px;
  background:linear-gradient(180deg,#1d281f,#151e18);
}
/* Section title is visual only; no modification to filter controls. */
main aside::before {
  content:"FILTER SERVERS";
  display:block;
  font-size:12px;
  letter-spacing:.13em;
  font-weight:bold;
  color:#e4e9dc;
  margin:0 -16px 16px;
  padding:13px 15px;
  border-bottom:1px solid #64734f;
  background:
    repeating-linear-gradient(45deg,rgba(230,238,214,.012) 0 7px,rgba(0,0,0,.026) 7px 14px),
    linear-gradient(180deg,#36432f,#273328);
  box-shadow:inset 3px 0 0 #a37a32;
}
main aside label {color:#ced9c4;letter-spacing:.035em;}
main input[type=search],main select {
  border:1px solid #596d50;
  border-radius:3px;
  background:#101811;
  color:#e8ede1;
  min-height:36px;
}
main input:focus,main select:focus {
  outline:1px solid #ad9255;
  outline-offset:1px;
}
main button {
  border:1px solid #6e7d58;
  border-radius:4px;
  color:#f3f0df;
  background:linear-gradient(180deg,#34432f,#222d24);
  box-shadow:inset 0 1px rgba(232,220,178,.12),0 2px 4px rgba(0,0,0,.28);
  transition:background .15s,border-color .15s;
}
main button:hover,main button:focus-visible {
  background:linear-gradient(180deg,#51492f,#312e21);
  border-color:#b58c40;
}
main .toolbar {
  min-height:42px;
  padding:3px 0;
}
main .summary {color:#c0cbb7;font-weight:600;}
main .table-wrap {background:#18211a;overflow:auto;}
main #servers {border-collapse:separate;border-spacing:0;}
main #servers thead th {
  background:
    repeating-linear-gradient(45deg,rgba(255,255,255,.013) 0 7px,rgba(0,0,0,.025) 7px 14px),
    linear-gradient(180deg,#354330,#263228);
  border-bottom:2px solid #a27a33;
  color:#e4e9db;
  font-weight:700;
  letter-spacing:.05em;
  font-size:11px;
  text-transform:uppercase;
}
main #servers td {border-bottom:1px solid #42553e;}
main #servers tbody tr {background:#1b241d;}
main #servers tbody tr:nth-child(even){background:#202a22;}
main #servers tbody tr:hover{background:#2b372a;}
main #servers td.hostname {color:#d6e5c9;}
main #servers td.hostname button {font-weight:700;}
main .status-online {color:#afd28c;}
main .status-online .status-dot {box-shadow:0 0 0 2px rgba(123,179,91,.12);}
main .status-offline {color:#9ca59b;}
main .badge {border-color:#b0843d;color:#e4c181;background:#322e20;border-radius:3px;}
main .server-tools {background:linear-gradient(180deg,#202b22,#172018);color:#bfcbba;}
main footer {color:#9fb09c;}
/* No styles for .tf-header, .tf-nav, .tf-strip or .utility:
   these remain synchronized with telefragged.com. */
@media(max-width:800px){
  main {padding:16px 12px;}
  main aside {padding-bottom:12px;}
  main .table-wrap {border-radius:3px;}
}

/* TF SERVERS SHARED CONTENT FRAME BEGIN */
/* The application header is deliberately untouched. All rules apply below it. */
main {
  width:calc(100% - 48px);
  max-width:1544px;
  margin:22px auto 34px;
  padding:16px 18px 24px;
  color:#ecefe7;
  border:1px solid #536649;
  border-radius:6px;
  background:
    radial-gradient(circle at 12% 2%,rgba(112,134,86,.055),transparent 35%),
    linear-gradient(180deg,#171f19 0%,#101713 100%);
  box-shadow:0 0 0 1px rgba(255,255,255,.025) inset,0 12px 32px rgba(0,0,0,.23);
}
main > h1 {
  margin:0;
  padding:10px 16px;
  font-size:17px;
  line-height:1.45;
  letter-spacing:.065em;
  font-weight:700;
  text-transform:uppercase;
  color:#f0f0e8;
  border:1px solid #5f7251;
  border-bottom:0;
  border-radius:4px 4px 0 0;
  background:
    linear-gradient(125deg, transparent calc(100% - 49px),rgba(199,145,43,.78) calc(100% - 49px) calc(100% - 43px),transparent calc(100% - 43px) calc(100% - 35px),rgba(199,145,43,.78) calc(100% - 35px) calc(100% - 29px),transparent calc(100% - 29px)),
    repeating-linear-gradient(45deg,rgba(234,238,224,.013) 0 7px,rgba(0,0,0,.026) 7px 14px),
    linear-gradient(180deg,#34412f,#253125);
  text-shadow:0 1px 1px rgba(0,0,0,.7);
}
main > .subtitle {
  display:block;
  margin:0 0 17px;
  padding:9px 16px 11px;
  color:#b7c8af;
  border:1px solid #5f7251;
  border-top:0;
  border-radius:0 0 4px 4px;
  background:linear-gradient(180deg,#1b261e,#172018);
  font-size:13px;
  line-height:1.5;
}
main .layout { align-items:start; }
main .layout > section {min-width:0;}
main .table-wrap,main aside,main .server-tools {
  box-shadow:inset 0 1px rgba(255,255,255,.035),0 4px 14px rgba(0,0,0,.18);
}
main footer {line-height:1.6;}
@media(max-width:900px) {
  main {width:calc(100% - 20px);margin:12px auto 20px;padding:10px;}
  main .layout {grid-template-columns:1fr;gap:16px;}
  main > h1 {font-size:15px;padding:10px 12px;}
  main > .subtitle {padding:8px 12px;}
}
/* TF SERVERS SHARED CONTENT FRAME END */

/* Table rows, preserving the approved dark-olive contrast */
main #servers tbody tr {background:linear-gradient(180deg,rgba(34,43,35,.96),rgba(27,35,29,.98)) !important;}
main #servers tbody tr:nth-child(even) {background:linear-gradient(180deg,rgba(38,48,39,.97),rgba(29,38,31,.97)) !important;}
main #servers tbody tr:hover {background:linear-gradient(180deg,#344434,#293a2d) !important;}
main aside::before {
 box-shadow:inset 3px 0 0 rgba(153,122,63,.55) !important;
 letter-spacing:.08em !important;
}
main > h1 {border-color:#55674d !important;}
main > h1::before,main > h1::after,main aside::before,main aside::after {filter:none;}

/* Original TeleFragged marble image on all section headers */
main > h1,
main aside::before,
main #servers thead th {
    background-image:
        linear-gradient(180deg, rgba(31,41,32,.26), rgba(12,18,13,.43)),
        url('/server-header-texture.png') !important;
    background-size: auto, 230px 42px !important;
    background-repeat: repeat, repeat-x !important;
}

/* TF-SERVERS-TYPO-SYNC-START */
/* Match shared TeleFragged typography without altering the 38px masthead's dimensions. */
.tf-header,
.tf-header .tf-masthead,
.tf-header .tf-nav,
.tf-header .tf-strip {
 font-family:Arial,Helvetica,sans-serif !important;
}
.tf-header .tf-eyebrow {font-size:10px !important;line-height:normal !important;}
.tf-header .tf-wordmark {
 font-family:"Arial Black",Arial,Helvetica,sans-serif !important;
 font-size:clamp(28px,4.3vw,58px) !important;
 line-height:1.04 !important;
 letter-spacing:-.055em !important;
}
.tf-header .tf-tagline {font-size:12px !important;line-height:normal !important;}
.tf-header .tf-nav a {
 font-size:12px !important;
 line-height:1.5 !important;
 padding:10px 16px !important;
 letter-spacing:.09em !important;
}
@media(max-width:540px) {
 .tf-header .tf-wordmark{font-size:clamp(20px,5.8vw,32px) !important;}
 .tf-header .tf-nav a {font-size:11px !important;padding:10px 8px !important;}
}
/* TF-SERVERS-TYPO-SYNC-END */

/* TF-UTILITY-ALIGN BEGIN */
/* Mirror the SMF top_section's system-ui typography; change ONLY the utility bar. */
.utility {
 height:41px !important;
 min-height:41px !important;
 box-sizing:border-box !important;
 font-family:system-ui,-apple-system,"Segoe UI",sans-serif !important;
 font-size:12px !important;
 line-height:1.55 !important;
 background-color:#111610 !important;
}
.utility-inner {
 padding:0 !important;
 height:100% !important;
 font-family:inherit !important;
 font-size:12px !important;
 line-height:1.55 !important;
 transform:translateY(-2px);
}
.utility-inner a {
 font-family:inherit !important;
 font-size:inherit !important;
 line-height:inherit !important;
}
/* TF-UTILITY-ALIGN END */

/* TF-TOP-Q2-ICON-BEGIN */
/* The icon replaces, rather than adds to, the former manual left offset. */
.utility-inner > div:first-child > a:first-child {
 display:inline-flex;
 align-items:center;
 gap:6px !important;
 margin-left:0 !important;
}
.utility-inner > div:first-child > a:first-child::before {
 content:"";
 flex:0 0 16px;
 width:16px;height:16px;
 background:url("/utility-q2-icon.png") center/16px 16px no-repeat;
}
/* TF-TOP-Q2-ICON-END */
/* Final top utility row layout */
.utility-inner > div:first-child {
 display:flex !important;
 align-items:center !important;
 gap:26px !important;
 padding-left:12px !important;
}
.utility-inner > div:first-child > a {
 display:inline-flex !important;
 align-items:center !important;
 line-height:1.55 !important;
 padding:0 !important;
 margin:0 !important;
 white-space:nowrap;
}

/* TF-MASTHEAD-SPACING-20261008 BEGIN */
/* The server masthead was about 9px shorter in desktop screenshots.
   Add 4px above and 5px below; do not reposition individual elements. */
@media (min-width: 851px) {
 .tf-header .tf-masthead {
   padding-top: 25px !important;
   padding-bottom: 21px !important;
 }
}
/* TF-MASTHEAD-SPACING-20261008 END */

/* TF-WORDMARK-ALIGN BEGIN */
/* Fine tune only the Servers brand lettering, not the logo, nav or masthead height. */
@media(min-width:851px) {
 .tf-header .tf-wordgroup {
   gap:6px !important;
   transform:none !important;
   line-height:1.55 !important;
 }
 .tf-header .tf-wordmark {
   font-size:58px !important;
 }
}
/* TF-WORDMARK-ALIGN END */

/* TF-WORDGROUP-LINEHEIGHT-SYNC */
@media (min-width:851px) {
 .tf-header .tf-eyebrow,
 .tf-header .tf-tagline { line-height:1.55 !important; }
}

/* Final TeleFragged masthead alignment */
@media (min-width: 851px) {
    .tf-header .tf-masthead .tf-identity {
        position: relative;
        top: -2px;
    }
}

/* TF-EXACT-FORUM-SLASHES BEGIN */
/* Exact ::after shape copied from main TeleFragged q2full.css. */
main aside { position:relative !important; }
main #servers thead th:last-child::after {
  content:"" !important;
  display:block !important;
  position:absolute !important;
  top:0 !important;
  right:10px !important;
  width:48px !important;
  height:100% !important;
  background:
    linear-gradient(135deg, transparent 0 54%, rgba(217,166,75,.92) 54% 62%, transparent 62% 100%),
    linear-gradient(135deg, transparent 0 68%, rgba(185,116,32,.88) 68% 75%, transparent 75% 100%) !important;
  opacity:.95 !important;
  pointer-events:none !important;
  z-index:3 !important;
}
/* Restore plain marbled header backgrounds: no gold bands embedded in them. */
main aside::before,
main #servers thead th:last-child {
  background-image:
    linear-gradient(180deg,rgba(31,41,32,.26),rgba(12,18,13,.43)),
    url('/server-header-texture.png') !important;
  background-size:auto,230px 42px !important;
  background-repeat:repeat,repeat-x !important;
}
main #servers thead th:last-child {
  position:relative !important;
  padding-right:18px !important;
}

/* Filter's actual header is aside::before, not the full-height aside. */
main aside::after { content:none !important; display:none !important; }
main aside::before {
 background-image:
    linear-gradient(135deg, transparent 0 54%, rgba(217,166,75,.92) 54% 62%, transparent 62% 100%),
    linear-gradient(135deg, transparent 0 68%, rgba(185,116,32,.88) 68% 75%, transparent 75% 100%),
    linear-gradient(180deg,rgba(31,41,32,.26),rgba(12,18,13,.43)),
    url('/server-header-texture.png') !important;
 background-size:48px 100%,48px 100%,auto,230px 42px !important;
 background-position:right 10px top,right 10px top,center,center !important;
 background-repeat:no-repeat,no-repeat,repeat,repeat-x !important;
}
/* TF-EXACT-FORUM-SLASHES END */
