/* TFF Blood Bowl — dark charcoal and natural grass-green child style for phpBB 3.3.19 */
@import url("../../prosilver/theme/stylesheet.css");

:root {
  --tff-bg: #151917;
  --tff-surface: #202622;
  --tff-panel: #272e29;
  --tff-panel-raised: #303a32;
  --tff-green: #4CAF50;
  --tff-green-bright: #F0EBDD;
  --tff-text: #e5e9e3;
  --tff-muted: #aeb8ad;
  --tff-line: #414b42;
}
html, body { background: var(--tff-bg); color: var(--tff-text); }
body { font-family: "Segoe UI", Arial, sans-serif; }
.wrap { max-width: 1280px; background: var(--tff-surface); color: var(--tff-text); border: 1px solid #303831; box-shadow: 0 12px 38px rgba(0,0,0,.4); }

/* Header and navigation */
.headerbar { background: linear-gradient(120deg,#111512 0%,#202b23 65%,#294631 100%); border-bottom: 4px solid var(--tff-green); color: #fff; }
#site-description h1 { color: #fff; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; text-shadow: 0 2px 10px #000; }
#site-description p { color: #F0EBDD; }
.logo { filter: drop-shadow(0 2px 5px rgba(0,0,0,.5)); }
.navbar { background: #111512; border: 1px solid #39443a; }
.navbar a, .navbar .icon, .navbar .dropdown-contents a { color: #e5e9e3; }
.navbar a:hover, .navbar .icon:hover { color: var(--tff-green-bright); }
a { color: var(--tff-green-bright); }
a:hover { color: #fffaf0; }
.linklist a, .action-bar a { color: var(--tff-green-bright); }
h2, h3, .panel h2 { color: var(--tff-text); }
.content, .postbody, .postbody .content { color: #e0e5df; }
.time, .author, .signature, .postprofile, .postprofile .author, .postprofile dd { color: var(--tff-muted); }

/* Forum category bars and rows */
.forabg, .forumbg { background: #668b6b; background-image: linear-gradient(115deg,#587e5e,#78a17c); border-radius: 3px; }
.forabg .header, .forumbg .header { border-bottom: 2px solid var(--tff-green); }
.forabg .header a, .forumbg .header, .forumbg .header a { color: #fff; }
li.row, .bg1, .bg2, .post.bg1, .post.bg2 { background-color: #344638; color: var(--tff-text); }
li.row:nth-child(even), .bg2 { background-color: #3d5141; }
li.row:hover { background-color: #465d4a; }
li.row dd, .topiclist dd, .topiclist dt, .topiclist .list-inner { color: #d8dfd6; }
li.row .list-inner a, .topiclist a { color: var(--tff-green-bright); }
li.row .list-inner a:hover, .topiclist a:hover { color: #fffaf0; }
.row-item:before { opacity: .8; }

/* Panels, posts, forms and dropdowns */
.panel, .stat-block, .post, .dropdown-contents, .cp-menu, .notification_list, .dropdown { background-color: #344638; color: var(--tff-text); border-color: var(--tff-line); }
.panel, .post { border: 1px solid var(--tff-line); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.post { background: #344638; }
.post .content, .postbody, .content { color: #e0e5df; }
.post h3, .postbody h3 { color: #F0EBDD; border-bottom-color: var(--tff-line); }
.postprofile, .postprofile strong, .postprofile .username, .postprofile .username-coloured { color: #e0e5df; }
fieldset dl, fieldset dt, fieldset dd, label { color: var(--tff-text); }
.inputbox, select, textarea { background: #151917; color: #f1f4ef; border: 1px solid #566255; }
.inputbox:focus, select:focus, textarea:focus { border-color: var(--tff-green-bright); }
.button, .button1, input.button1, a.button1 { background: #4CAF50; background-image: none; border-color: #81C784; color: #fff; }
.button:hover, .button1:hover, a.button1:hover { background: #66BB6A; color: #fff; }
.button-secondary, .button2 { background: #303a32; background-image: none; border-color: #4b594b; color: #e5e9e3; }
.button-secondary:hover, .button2:hover { background: #3b493b; color: #fff; }
.pagination li a { background: #202622; border-color: #4b594b; color: var(--tff-green-bright); }
.pagination li.active span { background: #4CAF50; border-color: #81C784; color: #fff; }
.pagination li a:hover { background: #303a32; }
hr, .rules { border-color: var(--tff-line); }
blockquote { background: #191e1a; border-color: #53674a; color: #d8dfd6; }
.codebox { background: #171b18; border-color: #414b42; color: #e5e9e3; }

/* Stadium-inspired page fade and home page panels */
html { min-height: 100%; background: #101827; }
body {
  min-height: 100vh;
  background: linear-gradient(180deg,
    #101827 0%, #24364d 13%, #344F6B 27%, #2b4059 43%,
    #1c2b40 62%, #152237 82%, #101827 100%);
  background-attachment: fixed;
  color: var(--tff-text);
}
.wrap {
  background: linear-gradient(180deg, rgba(25,37,55,.97) 0%, rgba(25,32,44,.98) 24%, rgba(19,24,33,.99) 55%, #152237 100%);
  border-color: #2c394b;
}
.headerbar {
  background: linear-gradient(180deg, #101827 0%, #101827 75%, #344F6B 100%);
  border-bottom: 2px solid #4CAF50;
}
/* Wide artwork includes its own title, so keep the banner clean and let it lead */
.tff-hero {
  min-height: clamp(190px, 31vw, 390px);
  box-sizing: border-box;
  margin: 12px 0 22px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #526982;
  border-radius: 5px;
  background-color: #101827;
  background-image: linear-gradient(180deg, rgba(5,9,16,0) 55%, rgba(10,15,24,.4) 100%), url("./images/tff-stadium-banner.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 12px 30px rgba(0,0,0,.36);
}
.tff-hero h2, .tff-hero p, .tff-hero .tff-tagline { display: none; }
.tff-home-grid { display: grid; grid-template-columns: minmax(0,1fr) 200px; gap: 18px; align-items: start; }
.tff-main-column { min-width: 0; }
.tff-sidebar { display: grid; gap: 14px; }
.tff-sidebox { overflow: hidden; border: 1px solid #526982; border-radius: 4px; background: linear-gradient(180deg,#344F6B 0%,#263b53 100%); color: var(--tff-text); box-shadow: 0 4px 12px rgba(0,0,0,.22); }
.tff-sidebox h3 { margin: 0; padding: 12px 14px; border: 0; border-bottom: 3px solid #4CAF50; background: linear-gradient(90deg,#3b5672,#2d4560); color: #fff; font-size: 1.05em; font-weight: 800; }
.tff-sidebox .tff-side-content { padding: 14px; color: #dce3ed; font-size: .95em; line-height: 1.55; }
.tff-sidebox p { margin-top: 0; }
.tff-sidebox ul { margin: 0; padding-left: 18px; }
.tff-sidebox li { margin: 0 0 7px; }
.tff-sidebox li:last-child { margin-bottom: 0; }
.tff-sidebox a { color: #F0EBDD; font-weight: 700; }
.tff-sidebox a:hover { color: #fffaf0; }
.tff-sidebox .tff-kicker { display: block; margin-bottom: 6px; color: #F0EBDD; font-size: .76em; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.tff-sidebox .tff-callout { padding: 10px 11px; border-left: 3px solid #4CAF50; background: rgba(7,12,20,.55); color: #e0e7f0; }
#page-footer { color: #c0cddd; }
#page-footer a { color: #F0EBDD; }
@media (max-width: 900px) { .tff-home-grid { grid-template-columns: minmax(0,1fr) 175px; gap: 12px; } .tff-hero { min-height: clamp(170px, 34vw, 300px); } }
@media (max-width: 700px) { body { padding: 0; background-attachment: scroll; } .wrap { width: 100%; margin: 0; border: 0; border-radius: 0; } .tff-home-grid { grid-template-columns: minmax(0,1fr); } .tff-sidebar { grid-template-columns: minmax(0,1fr); } .tff-hero { min-height: 175px; margin: 8px 0 15px; background-size: auto 100%; background-position: center; } }


/* v1.0.4: remove the stock phpBB masthead above the stadium artwork.
   Search remains available through Quick links and phpBB navigation. */
.headerbar {
  display: none !important;
}


/* v1.0.5: move the useful site identity and search link into the sidebar. */
.tff-about-box .tff-side-content { overflow-wrap: anywhere; }
.tff-about-box .tff-about-tagline { margin: 0 0 12px; color: #dce3ed; font-size: .9em; line-height: 1.5; }
.tff-about-box .tff-search-link { display: block; padding: 9px 11px; border: 1px solid #4CAF50; border-radius: 3px; background: linear-gradient(90deg,#3b5672,#2d4560); text-align: center; text-decoration: none; }


/* Navigation restored to the top of the homepage. */
.tff-nav-box ul { list-style: none; padding: 0; margin: 0; }
.tff-nav-box li { margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px solid rgba(160,180,200,.14); }
.tff-nav-box li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.tff-nav-box a { display: block; }


/* v1.0.7: make the account action unmistakable in the sidebar. */
.tff-nav-box li.tff-account-action { margin-top: 12px; padding: 0; border: 0; }
.tff-nav-box li.tff-account-action a { display: block; padding: 10px 12px; border: 1px solid #668f67; border-radius: 4px; background: linear-gradient(180deg,#4CAF50,#388E3C); color: #fff; text-align: center; font-weight: 800; text-decoration: none; }
.tff-nav-box li.tff-account-action a:hover { background: linear-gradient(180deg,#66BB6A,#43A047); color: #fff; }


/* v1.0.8: lighten the stadium-night blues to steel blue (#344F6B). */


/* v1.0.9: grass-pitch green accents and warm off-white lettering. */

/* v1.0.11: lighten large forum category bars from muddy dark green to brighter turf green. */

/* v1.0.14: narrower sidebar and rotating Dugout facts. */
.tff-fact-count { display: block; margin-top: 8px; color: #c0cddd; font-size: .78em; font-style: italic; }
.tff-tournament-link { display: inline-block; padding: 7px 9px; border-left: 3px solid #4CAF50; background: rgba(7,12,20,.28); }


/* v1.0.17: restore strong contrast across phpBB User Control Panel and forms.
   Scope these overrides to UCP/ACP-style panels so the homepage/sidebar design stays unchanged. */
.cp-main, .cp-main .panel, .cp-main .panel-container,
.cp-main .panel-container .panel, .cp-main .inner,
.cp-main .content, .cp-main .postbody,
.cp-main fieldset, .cp-main .bg1, .cp-main .bg2,
.cp-main .panel-container .bg1, .cp-main .panel-container .bg2,
.cp-main .cp-mini, .cp-main .friends-list, .cp-main .memberlist {
  background-color: #26384b !important;
  color: #f1f4f7 !important;
  border-color: #526982;
}
.cp-main h2, .cp-main h3, .cp-main legend,
.cp-main label, .cp-main dt, .cp-main dd,
.cp-main p, .cp-main li, .cp-main .content,
.cp-main .panel-container .panel h3 {
  color: #f1f4f7 !important;
}
.cp-main a, .cp-main .linklist a { color: #d8e8ff !important; }
.cp-main a:hover, .cp-main .linklist a:hover { color: #ffffff !important; }
.cp-main .inputbox, .cp-main input[type="text"],
.cp-main input[type="password"], .cp-main input[type="email"],
.cp-main input[type="number"], .cp-main select, .cp-main textarea {
  background-color: #f7f8fa !important;
  color: #202833 !important;
  border: 1px solid #8998a8 !important;
}
.cp-main input[type="radio"], .cp-main input[type="checkbox"] { accent-color: #4CAF50; }
.cp-main .tabs .tab > a, .cp-main .tabs .tab > span {
  color: #f1f4f7 !important;
}
.cp-main .tabs .tab > a { background-color: #26384b !important; border-color: #526982 !important; }
.cp-main .tabs .activetab > a, .cp-main .tabs .activetab > a:hover {
  background-color: #344F6B !important; border-bottom-color: #344F6B !important;
}
.cp-main .panel-container .panel h2 { color: #ffffff !important; }


/* v1.0.17: targeted fixes for PM friends list and message-colour legend.
   phpBB can apply per-user colours inline, so override those specifically. */
.cp-main .friends-list, .cp-main .friends-list li,
.cp-main .friend-list, .cp-main .friend-list li,
.cp-main .friends-foes, .cp-main .friends-foes li,
.cp-main .colour-palette, .cp-main .colour-list,
.cp-main .colour-palette li, .cp-main .colour-list li {
  background-color: #f2f5f8 !important;
  color: #202833 !important;
}
.cp-main .friends-list *, .cp-main .friend-list *,
.cp-main .friends-foes *, .cp-main .colour-palette *,
.cp-main .colour-list *, .cp-main .colour-name,
.cp-main .colour-description, .cp-main .colour-label {
  color: #202833 !important;
  text-shadow: none !important;
}
.cp-main .friends-list a, .cp-main .friend-list a,
.cp-main .friends-foes a { color: #244e78 !important; }
.cp-main .friends-list a:hover, .cp-main .friend-list a:hover,
.cp-main .friends-foes a:hover { color: #102d49 !important; }
/* Preserve the coloured swatches themselves while darkening their descriptions. */
.cp-main .colour-palette .colour, .cp-main .colour-list .colour,
.cp-main .colour-palette .colour-block, .cp-main .colour-list .colour-block {
  border-color: #c3ccd5 !important;
}


/* TFF background correction v2 — replace the striped pitch with the existing stadium artwork.
   Intentionally changes backgrounds/borders only; typography and layout rules above are untouched. */
html, body {
  background-color: #152237 !important;
  color: inherit;
}
body {
  background-image:
    linear-gradient(rgba(10, 22, 35, .18), rgba(10, 22, 35, .36)),
    url("./images/tff-stadium-banner.png") !important;
  background-position: center center, center center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: cover, cover !important;
  background-attachment: fixed !important;
}
.wrap {
  background: rgba(21, 34, 55, .92) !important;
  border: 1px solid rgba(73, 101, 126, .9) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .32) !important;
}
.forabg, .forumbg {
  border-color: #263f59 !important;
  box-shadow: 0 0 0 1px rgba(38, 63, 89, .22) !important;
}
.forabg .header, .forumbg .header {
  border-bottom: 2px solid #263f59 !important;
}
@media (max-width: 700px) {
  body { background-attachment: scroll !important; }
}


/* TFF repair: make quick-reply and full-reply editors readable.
   Keep text entry areas light with dark text; leave the stadium background untouched. */
textarea,
.inputbox,
#message-box textarea,
#quickreply textarea,
.quickreply textarea,
#qr_postform textarea,
#postform textarea {
  background-color: #eaf2f6 !important;
  color: #202833 !important;
  border: 1px solid #7890a8 !important;
  caret-color: #202833 !important;
}
textarea:focus,
.inputbox:focus,
#message-box textarea:focus,
#quickreply textarea:focus,
.quickreply textarea:focus,
#qr_postform textarea:focus,
#postform textarea:focus {
  background-color: #f4f7fa !important;
  color: #202833 !important;
  border-color: #4CAF50 !important;
}


/* TFF repair v2: top navigation is the single home for Quick Links/account actions. */
.tff-nav-box {
  display: none !important;
}

/* Keep the shared stadium artwork visible behind every page, not only the homepage hero. */
html, body {
  background-color: #152237 !important;
  background-image:
    linear-gradient(rgba(10, 22, 35, .18), rgba(10, 22, 35, .36)),
    url("./images/tff-stadium-banner.png") !important;
  background-position: center center, center center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: cover, cover !important;
  background-attachment: fixed !important;
}
body { min-height: 100vh !important; }

/* Notifications dropdown: use a light, readable menu with dark text and links. */
#notification_list,
#notification_list .dropdown-contents,
#notification_list .header,
#notification_list .footer,
#notification_list .notification_list,
.notification_list,
.notification_list .dropdown-contents {
  background: #f2f5f8 !important;
  color: #202833 !important;
  border-color: #b8c5d1 !important;
}
#notification_list *,
.notification_list * {
  color: #202833 !important;
  text-shadow: none !important;
}
#notification_list a,
.notification_list a {
  color: #244e78 !important;
}
#notification_list a:hover,
.notification_list a:hover {
  color: #102d49 !important;
  background-color: #e1eaf2 !important;
}
#notification_list .notification,
#notification_list li,
.notification_list li {
  background-color: #f2f5f8 !important;
  border-color: #cbd5df !important;
}

/* Friends/foes and similar UCP lists: override inherited and inline pale text. */
.friends-list, .friends-list li,
.friend-list, .friend-list li,
.friends-foes, .friends-foes li,
.cp-main .friends-list, .cp-main .friends-list li,
.cp-main .friend-list, .cp-main .friend-list li,
.cp-main .friends-foes, .cp-main .friends-foes li {
  background-color: #f2f5f8 !important;
  color: #202833 !important;
}
.friends-list *, .friend-list *, .friends-foes *,
.cp-main .friends-list *, .cp-main .friend-list *,
.cp-main .friends-foes * {
  color: #202833 !important;
  text-shadow: none !important;
}
.friends-list a, .friend-list a, .friends-foes a,
.cp-main .friends-list a, .cp-main .friend-list a,
.cp-main .friends-foes a {
  color: #244e78 !important;
}
.friends-list a:hover, .friend-list a:hover, .friends-foes a:hover,
.cp-main .friends-list a:hover, .cp-main .friend-list a:hover,
.cp-main .friends-foes a:hover {
  color: #102d49 !important;
}

/* TFF contrast repair v3 — profile/account dropdown and UCP friends/foes. */
#username_logged_in .dropdown,
#username_logged_in .dropdown-contents,
#username_logged_in .dropdown-contents .header,
#username_logged_in .dropdown-contents .footer,
#username_logged_in .dropdown-contents ul,
#username_logged_in .dropdown-contents li,
#profile .dropdown,
#profile .dropdown-contents,
#profile .dropdown-contents ul,
#profile .dropdown-contents li,
.header-profile .dropdown,
.header-profile .dropdown-contents {
  background: #f2f5f8 !important;
  color: #202833 !important;
  border-color: #c5d0da !important;
}
#username_logged_in .dropdown-contents *,
#profile .dropdown-contents *,
.header-profile .dropdown-contents * {
  color: #202833 !important;
  text-shadow: none !important;
}
#username_logged_in .dropdown-contents a,
#profile .dropdown-contents a,
.header-profile .dropdown-contents a { color: #244e78 !important; }
#username_logged_in .dropdown-contents a:hover,
#profile .dropdown-contents a:hover,
.header-profile .dropdown-contents a:hover {
  color: #102d49 !important;
  background-color: #e1eaf2 !important;
}

#ucp .friends-foes, #ucp .friends, #ucp .friend-list,
#ucp .friends-list, #ucp .foes-list,
.cp-main .friends-foes, .cp-main .friends, .cp-main .friend-list,
.cp-main .friends-list, .cp-main .foes-list,
.cp-main .friends-foes .column1, .cp-main .friends-foes .column2,
.cp-main .friends-foes dl, .cp-main .friends-foes li,
.cp-main .friends-list li, .cp-main .friend-list li, .cp-main .foes-list li {
  background-color: #f2f5f8 !important;
  color: #202833 !important;
  border-color: #c5d0da !important;
}
#ucp .friends-foes *, #ucp .friends *, #ucp .friend-list *,
#ucp .friends-list *, #ucp .foes-list *,
.cp-main .friends-foes *, .cp-main .friends *, .cp-main .friend-list *,
.cp-main .friends-list *, .cp-main .foes-list * {
  color: #202833 !important;
  text-shadow: none !important;
}
#ucp .friends-foes a, #ucp .friends a, #ucp .friend-list a,
#ucp .friends-list a, #ucp .foes-list a,
.cp-main .friends-foes a, .cp-main .friends a, .cp-main .friend-list a,
.cp-main .friends-list a, .cp-main .foes-list a { color: #244e78 !important; }
#ucp .friends-foes a:hover, #ucp .friends a:hover, #ucp .friend-list a:hover,
#ucp .friends-list a:hover, #ucp .foes-list a:hover,
.cp-main .friends-foes a:hover, .cp-main .friends a:hover,
.cp-main .friend-list a:hover, .cp-main .friends-list a:hover,
.cp-main .foes-list a:hover {
  color: #102d49 !important;
  background-color: #e1eaf2 !important;
}


/* TFF friends sidebar repair v5.
   Exact markup from prosilver/template/ucp_header.html:
   .cp-menu > .navigation + .cp-mini > .inner > dl.mini
   with dd.friend-online and dd.friend-offline.
*/
#cp-menu .cp-mini,
#cp-menu .cp-mini .inner,
#cp-menu .cp-mini dl.mini,
#cp-menu .cp-mini dl.mini dd,
#cp-menu .cp-mini dl.mini dd.friend-online,
#cp-menu .cp-mini dl.mini dd.friend-offline {
  background-color: #f2f5f8 !important;
  color: #202833 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#cp-menu .cp-mini dl.mini dt,
#cp-menu .cp-mini dl.mini dd,
#cp-menu .cp-mini dl.mini dd *,
#cp-menu .cp-mini dl.mini dd a,
#cp-menu .cp-mini dl.mini dd a:visited,
#cp-menu .cp-mini dl.mini dd.friend-online,
#cp-menu .cp-mini dl.mini dd.friend-offline {
  color: #202833 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #202833 !important;
}

#cp-menu .cp-mini dl.mini dd a:hover {
  color: #102d49 !important;
  background-color: #e1eaf2 !important;
}

#cp-menu .cp-mini dl.mini dd hr {
  border-color: #c5d0da !important;
}


/* TFF v6 — fresher grass-pitch green for forum category boxes.
   This is a colour-only adjustment: forum rows, page layout, tournament hub,
   sideboxes, stadium artwork and the working UCP/account fixes remain intact. */
.forabg, .forumbg {
  background-color: #4f9b45 !important;
  background-image: linear-gradient(115deg, #347b38 0%, #4b9842 48%, #69ad4d 100%) !important;
  border-color: #286a32 !important;
}
.forabg .header, .forumbg .header {
  background: linear-gradient(90deg, #286b32 0%, #3c8739 55%, #4c9840 100%) !important;
  border-bottom: 2px solid #8bcf61 !important;
  color: #ffffff !important;
}
.forabg .header a, .forumbg .header, .forumbg .header a {
  color: #ffffff !important;
}

/* TFF global page layout: main content plus persistent community sidebar */
.tff-global-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
  width: 100%;
}
.tff-global-main { min-width: 0; }
.tff-global-layout .tff-sidebar {
  display: grid;
  gap: 14px;
  min-width: 0;
}
@media (max-width: 900px) {
  .tff-global-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 12px; }
}
@media (max-width: 700px) {
  .tff-global-layout { grid-template-columns: minmax(0, 1fr); }
  .tff-global-layout .tff-sidebar { grid-template-columns: minmax(0, 1fr); }
}

/* UK Tournament Hub now appears globally, above the page columns */
/* UK Tournament Hub: prominent homepage feature */
.tff-uk-tournament-banner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  width: 100%;
  margin: 1.25em 0 1.5em;
  padding: 1.5em 1.75em;
  color: #F0EBDD;
  background: linear-gradient(110deg, #344F6B 0%, #263d55 100%);
  border-left: 6px solid #4CAF50;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}
.tff-uk-tournament-banner .tff-uk-tournament-copy { min-width: 0; }
.tff-uk-tournament-banner .tff-uk-tournament-kicker {
  display: block;
  margin-bottom: .3em;
  color: #9be29e;
  font-size: .82em;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tff-uk-tournament-banner h2 {
  margin: 0 0 .35em;
  color: #F0EBDD;
  font-size: 1.55em;
  line-height: 1.2;
}
.tff-uk-tournament-banner p { margin: 0; color: #F0EBDD; }
.tff-uk-tournament-banner .tff-uk-calendar-link { margin-top: .65em; font-size: .92em; }
.tff-uk-tournament-banner .tff-uk-calendar-link a { color: #F0EBDD; text-decoration: underline; text-underline-offset: 2px; }
.tff-uk-tournament-banner .tff-uk-calendar-link a:hover,
.tff-uk-tournament-banner .tff-uk-calendar-link a:focus { color: #9be29e; }
.tff-uk-tournament-banner .tff-uk-tournament-button {
  flex: 0 0 auto;
  display: inline-block;
  padding: .85em 1.15em;
  color: #172b1b !important;
  background: #4CAF50;
  border: 1px solid #72cf76;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}
.tff-uk-tournament-banner .tff-uk-tournament-button:hover,
.tff-uk-tournament-banner .tff-uk-tournament-button:focus {
  color: #102313 !important;
  background: #70d474;
  text-decoration: underline;
}
@media (max-width: 650px) {
  .tff-uk-tournament-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 1em;
    padding: 1.2em;
  }
  .tff-uk-tournament-banner h2 { font-size: 1.3em; }
  .tff-uk-tournament-banner .tff-uk-tournament-button { align-self: flex-start; }
}

/* ==========================================================
   TFF BLOOD BOWL - PARCHMENT / CHARCOAL PALETTE
   v3 - stronger phpBB row and text selectors
   Existing layout and functional rules above are retained.
   ========================================================== */

:root {
  --tff-bg: #d4cec2;
  --tff-surface: #e9e4d8;
  --tff-panel: #f5f1e8;
  --tff-panel-raised: #e2ddd2;
  --tff-green: #8c2929;
  --tff-green-bright: #f5f1e8;
  --tff-text: #252525;
  --tff-muted: #625e57;
  --tff-line: #b8b1a3;
  --tff-red: #8c2929;
  --tff-blue: #344b5b;
  --tff-charcoal: #302d2a;
}

/* Main background and central page */
html, body {
  background-color: #d4cec2 !important;
  color: #252525 !important;
}
.wrap {
  background: rgba(233,228,216,.97) !important;
  border-color: #b8b1a3 !important;
  color: #252525 !important;
}

/* Charcoal navigation */
.navbar {
  background: #252525 !important;
  border-color: #171717 !important;
}
.navbar, .navbar *, .navbar a, .navbar .icon {
  color: #f5f1e8 !important;
}
.navbar a:hover, .navbar .icon:hover { color: #d99a91 !important; }

/* General typography */
h2, h3, .panel h2 { color: #302d2a; }
a, .linklist a, .action-bar a { color: #344b5b; }
a:hover, .linklist a:hover, .action-bar a:hover { color: #8c2929; }

/* Charcoal category bars */
.forabg, .forumbg {
  background: #302d2a !important;
  border: 1px solid #252525 !important;
}
.forabg .header, .forumbg .header {
  background: #302d2a !important;
  border-bottom: 3px solid #8c2929 !important;
}
.forabg .header, .forabg .header *,
.forumbg .header, .forumbg .header * { color: #f5f1e8 !important; }

/*
 * IMPORTANT: phpBB applies row backgrounds to topiclist elements and
 * row-item dl elements, not just the outer li.row. Target all of them.
 */
.forabg li.row,
.forumbg li.row,
.forabg li.row.bg1,
.forabg li.row.bg2,
.forumbg li.row.bg1,
.forumbg li.row.bg2,
.forabg .topiclist li,
.forumbg .topiclist li,
.forabg .topiclist .bg1,
.forabg .topiclist .bg2,
.forumbg .topiclist .bg1,
.forumbg .topiclist .bg2,
.forabg .topiclist .row-item,
.forumbg .topiclist .row-item,
.forabg dl.row-item,
.forumbg dl.row-item,
.forabg .row-item,
.forumbg .row-item {
  background-color: #f5f1e8 !important;
  color: #45413b !important;
  border-color: #b8b1a3 !important;
  text-shadow: none !important;
}

/* Subtle alternate parchment rows */
.forabg li.row:nth-child(even),
.forumbg li.row:nth-child(even),
.forabg .topiclist li:nth-child(even),
.forumbg .topiclist li:nth-child(even),
.forabg .topiclist .bg2,
.forumbg .topiclist .bg2,
.forabg .row-item.bg2,
.forumbg .row-item.bg2 {
  background-color: #e2ddd2 !important;
}

/* Hover only slightly darkens the parchment */
.forabg li.row:hover,
.forumbg li.row:hover,
.forabg .topiclist li:hover,
.forumbg .topiclist li:hover,
.forabg .row-item:hover,
.forumbg .row-item:hover {
  background-color: #d8d0c3 !important;
}

/* Make every ordinary text element within forum/topic rows readable */
.forabg li.row *,
.forumbg li.row *,
.forabg .topiclist *,
.forumbg .topiclist * {
  text-shadow: none !important;
}
.forabg li.row,
.forumbg li.row,
.forabg li.row dt,
.forumbg li.row dt,
.forabg li.row dd,
.forumbg li.row dd,
.forabg li.row .list-inner,
.forumbg li.row .list-inner,
.forabg li.row .forumtitle,
.forumbg li.row .forumtitle,
.forabg li.row .topictitle,
.forumbg li.row .topictitle,
.forabg li.row .forum-desc,
.forumbg li.row .forum-desc,
.forabg li.row .forum-description,
.forumbg li.row .forum-description,
.forabg li.row .topics,
.forumbg li.row .topics,
.forabg li.row .posts,
.forumbg li.row .posts,
.forabg li.row .lastpost,
.forumbg li.row .lastpost,
.forabg li.row .lastpost span,
.forumbg li.row .lastpost span,
.forabg li.row .lastpost time,
.forumbg li.row .lastpost time,
.forabg li.row .responsive-show,
.forumbg li.row .responsive-show,
.forabg li.row .responsive-hide,
.forumbg li.row .responsive-hide,
.forabg .topiclist dt,
.forumbg .topiclist dt,
.forabg .topiclist dd,
.forumbg .topiclist dd,
.forabg .topiclist .list-inner,
.forumbg .topiclist .list-inner,
.forabg .topiclist .lastpost,
.forumbg .topiclist .lastpost {
  color: #45413b !important;
  opacity: 1 !important;
}

/* Links inside rows retain a distinct but dark readable colour */
.forabg li.row a,
.forumbg li.row a,
.forabg .topiclist a,
.forumbg .topiclist a {
  color: #344b5b !important;
  opacity: 1 !important;
}
.forabg li.row a:hover,
.forumbg li.row a:hover,
.forabg .topiclist a:hover,
.forumbg .topiclist a:hover {
  color: #8c2929 !important;
}

/* Category heading text remains light */
.forabg .header *,
.forumbg .header * { color: #f5f1e8 !important; }

/* Panels and posts */
.panel, .stat-block, .post {
  background: #f5f1e8 !important;
  color: #252525 !important;
  border-color: #b8b1a3 !important;
}
.post .content, .postbody, .postbody .content, .panel .content {
  color: #252525 !important;
}
.post h3, .postbody h3 { color: #302d2a !important; }
.postprofile, .postprofile *, .postprofile .author,
.postprofile dd { color: #45413b !important; }

/* Sideboxes */
.tff-sidebox {
  background: #e9e4d8 !important;
  border: 1px solid #b8b1a3 !important;
  color: #252525 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.12) !important;
}
.tff-sidebox h3 {
  background: #302d2a !important;
  color: #f5f1e8 !important;
  border-bottom: 3px solid #8c2929 !important;
}
.tff-sidebox .tff-side-content,
.tff-sidebox .tff-side-content *,
.tff-sidebox .tff-about-tagline { color: #252525 !important; }
.tff-sidebox a { color: #344b5b !important; }
.tff-sidebox a:hover { color: #8c2929 !important; }
.tff-sidebox .tff-kicker { color: #8c2929 !important; }
.tff-sidebox .tff-callout {
  background: #ded8cc !important;
  border-left: 3px solid #8c2929 !important;
  color: #252525 !important;
}
.tff-fact-count { color: #625e57 !important; }
.tff-tournament-link {
  background: #ded8cc !important;
  border-left-color: #8c2929 !important;
}

/* Sidebox action links */
.tff-about-box .tff-search-link {
  background: #344b5b !important;
  border-color: #344b5b !important;
  color: #fff !important;
}
.tff-nav-box li.tff-account-action a {
  background: #8c2929 !important;
  border-color: #a94a40 !important;
  color: #fff !important;
}
.tff-nav-box li.tff-account-action a:hover {
  background: #a43a32 !important;
  color: #fff !important;
}

/* Tournament hub */
.tff-uk-tournament-banner {
  background: #302d2a !important;
  border-left-color: #8c2929 !important;
  color: #f5f1e8 !important;
}
.tff-uk-tournament-banner h2,
.tff-uk-tournament-banner p,
.tff-uk-tournament-banner .tff-uk-calendar-link a {
  color: #f5f1e8 !important;
}
.tff-uk-tournament-banner .tff-uk-tournament-kicker { color: #d99a91 !important; }
.tff-uk-tournament-banner .tff-uk-tournament-button {
  background: #8c2929 !important;
  border-color: #a94a40 !important;
  color: #fff !important;
}

/* Dropdowns */
.dropdown-contents, .cp-menu, .notification_list, .dropdown {
  background: #f5f1e8 !important;
  color: #252525 !important;
  border-color: #b8b1a3 !important;
}
.dropdown-contents *, .cp-menu *, .notification_list *, .dropdown * {
  color: #252525;
}
.dropdown-contents a, .cp-menu a, .notification_list a, .dropdown a {
  color: #344b5b !important;
}
.dropdown-contents a:hover, .cp-menu a:hover,
.notification_list a:hover, .dropdown a:hover {
  background: #e2ddd2 !important;
  color: #8c2929 !important;
}

/* Buttons and pagination */
.button, .button1, input.button1, a.button1 {
  background: #8c2929 !important;
  border-color: #a94a40 !important;
  color: #fff !important;
}
.button:hover, .button1:hover, a.button1:hover {
  background: #a43a32 !important;
  color: #fff !important;
}
.button-secondary, .button2 {
  background: #344b5b !important;
  border-color: #536c7e !important;
  color: #fff !important;
}
.pagination li a {
  background: #e9e4d8 !important;
  border-color: #b8b1a3 !important;
  color: #344b5b !important;
}
.pagination li.active span {
  background: #8c2929 !important;
  border-color: #a94a40 !important;
  color: #fff !important;
}

/* Form controls */
.inputbox, select, textarea {
  background: #fffdf8 !important;
  color: #252525 !important;
  border-color: #a9a195 !important;
}
.inputbox:focus, select:focus, textarea:focus { border-color: #8c2929 !important; }

/* UCP and footer */
.cp-main, .cp-main .panel, .cp-main .panel-container,
.cp-main .inner, .cp-main fieldset, .cp-main .bg1, .cp-main .bg2 {
  background-color: #f5f1e8 !important;
  color: #252525 !important;
  border-color: #b8b1a3 !important;
}
.cp-main h2, .cp-main h3, .cp-main legend,
.cp-main label, .cp-main dt, .cp-main dd,
.cp-main p, .cp-main li, .cp-main .content { color: #252525 !important; }
.cp-main a { color: #344b5b !important; }
.cp-main a:hover { color: #8c2929 !important; }
.cp-main .tabs .activetab > a,
.cp-main .tabs .activetab > a:hover {
  background-color: #8c2929 !important;
  border-bottom-color: #8c2929 !important;
  color: #fff !important;
}
#page-footer { color: #625e57 !important; }
#page-footer a { color: #344b5b !important; }

@media (max-width: 700px) {
  body { background-attachment: scroll !important; }
}

/* ==========================================================
   TFF PALETTE REFINEMENT v5
   Warmer parchment + muted sage alternate rows + burgundy accents.
   This intentionally preserves v4's icon-safe background handling.
   ========================================================== */
:root {
  --tff-bg: #c9c1b2;
  --tff-surface: #ddd3c2;
  --tff-panel: #e7ddcb;
  --tff-panel-raised: #d5cbb9;
  --tff-green: #70433a;
  --tff-green-bright: #e7ddcb;
  --tff-text: #292622;
  --tff-muted: #62584d;
  --tff-line: #b4a894;
  --tff-red: #70433a;
  --tff-blue: #344b5b;
  --tff-charcoal: #302d2a;
}

/* Slightly warmer and less bright page surfaces */
html, body {
  background-color: #c9c1b2 !important;
  color: #292622 !important;
}
.wrap {
  background-color: rgba(221,211,194,.98) !important;
}

/* Warm sand main forum rows */
.forabg li.row,
.forumbg li.row,
.forabg li.row.bg1,
.forabg li.row.bg2,
.forumbg li.row.bg1,
.forumbg li.row.bg2,
.forabg .topiclist .bg1,
.forumbg .topiclist .bg1,
.forabg .row-item.bg1,
.forumbg .row-item.bg1 {
  background-color: #e7ddcb !important;
  color: #292622 !important;
}

/* Muted sage alternate rows */
.forabg li.row:nth-child(even),
.forumbg li.row:nth-child(even),
.forabg .topiclist .bg2,
.forumbg .topiclist .bg2,
.forabg .row-item.bg2,
.forumbg .row-item.bg2 {
  background-color: #d6d6c6 !important;
  color: #292622 !important;
}

/* Avoid overly bright hover; use a gentle darker sand */
.forabg li.row:hover,
.forumbg li.row:hover,
.forabg .topiclist li:hover,
.forumbg .topiclist li:hover,
.forabg .row-item:hover,
.forumbg .row-item:hover {
  background-color: #cfc4b1 !important;
}

/* Richer burgundy category underline and hub accents */
.forabg .header, .forumbg .header {
  border-bottom-color: #70433a !important;
}
.tff-sidebox h3 {
  border-bottom-color: #70433a !important;
}
.tff-uk-tournament-banner {
  border-left-color: #70433a !important;
}
.tff-uk-tournament-banner .tff-uk-tournament-button,
.button, .button1, input.button1, a.button1 {
  background-color: #70433a !important;
  border-color: #87564b !important;
}
.tff-uk-tournament-banner .tff-uk-tournament-button:hover,
.button:hover, .button1:hover, a.button1:hover {
  background-color: #87564b !important;
}

/* Warmer sideboxes and panels, without changing readable text */
.tff-sidebox, .panel, .stat-block, .post {
  background-color: #e7ddcb !important;
}
.tff-sidebox .tff-callout,
.tff-tournament-link {
  background-color: #d6d6c6 !important;
}
.dropdown-contents, .cp-menu, .notification_list, .dropdown {
  background-color: #e7ddcb !important;
}
.inputbox, select, textarea {
  background-color: #f3eadb !important;
}
.pagination li a {
  background-color: #d6d6c6 !important;
}
.cp-main, .cp-main .panel, .cp-main .panel-container,
.cp-main .inner, .cp-main fieldset, .cp-main .bg1, .cp-main .bg2 {
  background-color: #e7ddcb !important;
}

/* ==========================================================
   TFF PALETTE REFINEMENT v6 - MORE DISTINCT ROW COLOURS
   Strong overrides for phpBB row item backgrounds.
   ========================================================== */
html body #wrap,
html body .wrap {
  background-color: #d2c5ad !important;
}

html body .forabg li.row,
html body .forumbg li.row,
html body .forabg dl.row-item,
html body .forumbg dl.row-item,
html body .forabg .row-item,
html body .forumbg .row-item,
html body .forabg .topiclist li,
html body .forumbg .topiclist li,
html body .forabg .topiclist dd,
html body .forumbg .topiclist dd {
  background-color: #e4cfad !important;
  color: #292622 !important;
}

/* Distinct but still subdued olive-sage alternate forum rows */
html body .forabg li.row:nth-child(even),
html body .forumbg li.row:nth-child(even),
html body .forabg dl.row-item:nth-child(even),
html body .forumbg dl.row-item:nth-child(even),
html body .forabg .row-item.bg2,
html body .forumbg .row-item.bg2,
html body .forabg dl.bg2,
html body .forumbg dl.bg2,
html body .forabg .topiclist .bg2,
html body .forumbg .topiclist .bg2 {
  background-color: #c8cbb5 !important;
}

/* Explicit phpBB alternating bg1/bg2 targeting */
html body .forabg .bg1,
html body .forumbg .bg1,
html body .forabg dl.bg1,
html body .forumbg dl.bg1 {
  background-color: #e4cfad !important;
}
html body .forabg .bg2,
html body .forumbg .bg2,
html body .forabg dl.bg2,
html body .forumbg dl.bg2 {
  background-color: #c8cbb5 !important;
}

/* Readable text and icons remain untouched; don't suppress row images */
html body .forabg li.row *,
html body .forumbg li.row *,
html body .forabg dl.row-item *,
html body .forumbg dl.row-item * {
  color: inherit;
  text-shadow: none !important;
}
html body .forabg li.row a,
html body .forumbg li.row a,
html body .forabg dl.row-item a,
html body .forumbg dl.row-item a {
  color: #344b5b !important;
}
html body .forabg li.row a:hover,
html body .forumbg li.row a:hover,
html body .forabg dl.row-item a:hover,
html body .forumbg dl.row-item a:hover {
  color: #70433a !important;
}

/* ==========================================================
   TFF v8 - QUICK LINKS / NAVIGATION DROPDOWN CONTRAST FIX
   ========================================================== */
html body .dropdown,
html body .dropdown .dropdown-contents,
html body .dropdown-contents,
html body .dropdown-menu,
html body .quick-links,
html body #quick-links,
html body .quick-links .dropdown-contents {
  background-color: #e7ddcb !important;
  color: #292622 !important;
  border-color: #b9aa91 !important;
  text-shadow: none !important;
}

html body .dropdown .dropdown-contents *,
html body .dropdown-contents *,
html body .dropdown-menu *,
html body .quick-links *,
html body #quick-links * {
  color: #292622 !important;
  text-shadow: none !important;
}

html body .dropdown .dropdown-contents a,
html body .dropdown-contents a,
html body .dropdown-menu a,
html body .quick-links a,
html body #quick-links a {
  color: #344b5b !important;
  text-decoration: none;
}

html body .dropdown .dropdown-contents a:hover,
html body .dropdown-contents a:hover,
html body .dropdown-menu a:hover,
html body .quick-links a:hover,
html body #quick-links a:hover {
  background-color: #c8cbb5 !important;
  color: #292622 !important;
}

html body .dropdown .dropdown-contents li,
html body .dropdown-contents li,
html body .dropdown-menu li,
html body .quick-links li,
html body #quick-links li {
  border-color: #b9aa91 !important;
}
