MediaWiki:Timeless.css: Difference between revisions

No edit summary
No edit summary
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* All CSS here will be loaded for users of the Timeless skin */
/*
⚠️ Do not reorder rules below this line — contrast overrides depend on cascade order.
*/
 
/* =========================================================
/* =========================================================
   Bellingham Heritage Centre – Timeless skin branding (CSS-only)
   Bellingham Heritage Centre – Timeless skin branding (CSS-only)
Line 12: Line 15:
   --bhc-olive: rgb(165,174,121);
   --bhc-olive: rgb(165,174,121);
   --bhc-sand: rgb(228,186,149);
   --bhc-sand: rgb(228,186,149);
   --bhc-maroon: #800020;
 
  /* Site colours */
   --bhc-maroon: rgb(93, 8, 58);      /* main burgundy */
  --bhc-gold: rgb(228, 186, 123);   /* site gold/yellow */
 
   --bhc-link: #005DB3;
   --bhc-link: #005DB3;
   --bhc-text: #202020;
   --bhc-text: #202020;


   /* Header now WHITE (per request) */
   /* Header is WHITE */
   --bhc-header-bg: #ffffff;
   --bhc-header-bg: #ffffff;
   --bhc-header-text: #202020;
   --bhc-header-text: #202020;
  /* Bars */
  --bhc-topbar-olive: rgb(165, 174, 121);
  --bhc-topbar-teal: rgb(130, 156, 149);
  --bhc-bottombar-sand: rgb(228, 186, 123);
  --bhc-bottombar-maroon: rgb(95, 8, 58);


   /* Fonts */
   /* Fonts */
Line 26: Line 39:


   /* Readability */
   /* Readability */
   font-size: 18px;
   font-size: 112.5%;
   line-height: 1.65;
   line-height: 1.65;


   overflow-x: hidden;
   overflow-x: hidden;
  background: #eaecf0; /* page background */
}
}


Line 47: Line 61:
}
}


body.skin-timeless a{ color: var(--bhc-link); }
body.skin-timeless a,
body.skin-timeless a:hover{ text-decoration: underline; }
body.skin-timeless a:visited{
  color: var(--bhc-link);
}
 
body.skin-timeless a:hover{
  text-decoration: underline;
}


body.skin-timeless .mw-parser-output h1,
body.skin-timeless .mw-parser-output h1,
Line 106: Line 126:


/* =========================================================
/* =========================================================
   HEADER: Timeless header full-width + WHITE background
   HEADER: white background + top/bottom bars (20px each)
   ========================================================= */
   ========================================================= */


/* The overall header bar */
/* Hide Timeless fixed decorative bars that can “float” during scroll */
body.skin-timeless #mw-header-hack,
body.skin-timeless #mw-header-nav-hack,
body.skin-timeless .color-bar{
  display: none !important;
}
 
/* Header container – ensure no clipping */
body.skin-timeless #mw-header-container{
body.skin-timeless #mw-header-container{
   background: var(--bhc-header-bg) !important;     /* white */
  position: relative !important;
   border-top: 5px solid var(--bhc-olive) !important;
   background: var(--bhc-header-bg) !important; /* white */
   border-bottom: 10px solid var(--bhc-sand) !important;
   border: 0 !important;
   overflow: visible !important;
}
}


/* Make all header text dark by default */
/* Top bar (olive then teal) */
body.skin-timeless #mw-header-container::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 20px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--bhc-topbar-olive) 0 25%,
    var(--bhc-topbar-teal) 25% 100%
  );
}
 
/* Bottom bar (gold then maroon) */
body.skin-timeless #mw-header-container::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 20px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--bhc-bottombar-sand) 0 33%,
    var(--bhc-bottombar-maroon) 33% 100%
  );
}
 
/* Make header text dark by default */
body.skin-timeless #mw-header,
body.skin-timeless #mw-header,
body.skin-timeless #mw-header a{
body.skin-timeless #mw-header a{
Line 122: Line 184:
}
}


/* Ensure header content can host absolute strapline */
/* =========================================================
  HEADER LAYOUT: stack title/strapline, then search, then user-tools
  (prevents large-screen collisions)
  ========================================================= */
 
body.skin-timeless #mw-header{
body.skin-timeless #mw-header{
   position: relative;
   position: relative;
   padding-top: 10px;
  display: flex;
   padding-bottom: 22px; /* breathing room for strapline */
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
 
  /* leave room for the bars */
   padding-top: calc(14px + 20px);
   padding-bottom: calc(12px + 20px);
}
 
/* Row 1: Title block is always full width */
body.skin-timeless #mw-header #p-logo-text{
  min-width: 0;
  flex: 1 1 100%;
  width: 100%;
  order: 1;
}
}


/* ---------------------------------------------------------
/* Row 2: Search sits on its own row, right aligned, constrained */
  Header layout: give p-logo-text more room, shrink p-search
body.skin-timeless #mw-header #p-search{
  --------------------------------------------------------- */
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  margin-left: 0;
  order: 2;
}
 
/* Constrain the inner search box and right-align it */
body.skin-timeless #mw-header #p-search form#searchform,
body.skin-timeless #mw-header #p-search #simpleSearch{
  max-width: 520px;
  margin-left: auto; /* right align */
}
 
/* Row 3: User tools on its own row, right aligned */
body.skin-timeless #mw-header #user-tools{
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  margin-left: 0;
  order: 3;
  text-align: right;
}


/* Timeless header is within #mw-header; make it a flex row */
body.skin-timeless #mw-header #user-tools #personal{
body.skin-timeless #mw-header{
   display: inline-block;
   display: flex;
  align-items: flex-start;
  gap: 16px;
}
}


/* Logged-in / personal area stays at far right (Timeless markup varies),
/* Optional: open dropdown from right edge */
  so we let main blocks flex and personal sits naturally. */
body.skin-timeless #mw-header #user-tools #personal-inner.dropdown{
body.skin-timeless #p-logo-text{
   right: 0 !important;
   flex: 1 1 auto;         /* take remaining space */
   left: auto !important;
   min-width: 420px;       /* wide enough for your title */
}
}


body.skin-timeless #p-search{
/* Small widths: keep things simple */
   flex: 0 0 auto;          /* do not grow */
@media (max-width: 720px){
  width: 420px;            /* container width (input will be smaller) */
  body.skin-timeless #mw-header #p-search form#searchform,
  max-width: 38vw;         /* responsive */
   body.skin-timeless #mw-header #p-search #simpleSearch{
  margin-left: auto;       /* push to the right */
    max-width: none;
    margin-left: 0;
  }
}
}


/* ---------------------------------------------------------
/* =========================================================
   1) SITE TITLE + LOGO at left
   SITE TITLE + LOGO (left)
   Timeless uses: #p-logo-text a#p-banner
   Timeless uses: #p-logo-text a#p-banner
   --------------------------------------------------------- */
   ========================================================= */


/* KEY FIX:
  Put the logo + reserved height on #p-logo-text, not on #p-banner,
  so strapline can sit close under the title without “dead air”. */
body.skin-timeless #p-logo-text{
body.skin-timeless #p-logo-text{
   position: relative;
   position: relative;
  background-image: url(/resources/assets/BHClogo.jpg);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 96px 96px;
  min-height: 96px;      /* reserves logo height */
  padding-left: 118px;  /* reserves logo width + gap */
}
}


/* Title link should not carry logo spacing */
body.skin-timeless #p-logo-text #p-banner{
body.skin-timeless #p-logo-text #p-banner{
   display: inline-block;
   display: block;
  text-decoration: none;
 
   font-family: var(--bhc-heading-font) !important;
   font-family: var(--bhc-heading-font) !important;
   font-weight: 700;
   font-weight: 700;
   font-size: 1.45rem;
   font-size: 40px;
   letter-spacing: .02em;
   letter-spacing: .01em;
   text-decoration: none;
   color: var(--bhc-maroon) !important;


   background-image: url(/resources/assets/BHClogo.jpg);
   background: none !important;
   background-repeat: no-repeat;
   min-height: 0 !important;
   background-position: left center;
   padding-left: 0 !important;
  background-size: 56px 56px;


   padding-left: 72px;     /* logo + gap */
   line-height: 1.05;
   min-height: 56px;
   white-space: normal;
   line-height: 56px;
   margin: 0;
}


   color: var(--bhc-header-text) !important;
/* Strapline injected (LocalSettings-driven). Expect element id="bhc-strapline" or class="bhc-strapline".
  We style BOTH for safety. */
body.skin-timeless #bhc-strapline,
body.skin-timeless .bhc-strapline{
  margin-top: 0.15rem;
  font-family: var(--bhc-accent-font);
   color: var(--bhc-teal);
  font-size: 20px;
  line-height: 1.12;
  font-weight: 400;
  white-space: normal;
  max-width: 52rem;
}
}


/* Hide Timeless sidebar logo so we don’t double-brand */
@media (max-width: 1024px){
body.skin-timeless #mw-site-navigation #p-logo{
  body.skin-timeless #bhc-strapline,
  display: none !important;
  body.skin-timeless .bhc-strapline{
    font-size: 18px;
    max-width: 100%;
  }
}
}


/* ---------------------------------------------------------
@media (max-width: 720px){
  2) STRAPLINE (Option A): reuse #siteSub, position in header
  body.skin-timeless #bhc-strapline,
  --------------------------------------------------------- */
  body.skin-timeless .bhc-strapline{
    font-size: 16px;
  }
}


body.skin-timeless #siteSub{
/* Remove any old pseudo-element strapline rules (belt & braces) */
  position: absolute;
body.skin-timeless #p-logo-text #p-banner::after{
 
   content: none !important;
  /* Align under the title start (72px = 56 logo + 16 gap) */
}
  left: 72px;
  top: 58px;
 
   margin: 0;
  padding: 0;


  font-family: var(--bhc-body-font);
/* Small widths: reduce left indent + logo size (logo is on #p-logo-text now) */
  font-size: 1.0rem;
@media (max-width: 768px){
  line-height: 1.25;
  body.skin-timeless #p-logo-text{
  font-style: normal;
    background-size: 72px 72px !important;
   color: rgba(32,32,32,.85) !important;
    padding-left: 92px !important; /* 72 + ~20 gap */
    min-height: 72px !important;
   }


   z-index: 2;
   body.skin-timeless #p-logo-text #p-banner{
   pointer-events: none;
    line-height: 1.05 !important;
   }
}
}


/* Prevent #siteSub reserving visible space in content area */
/* Hide Timeless sidebar logo to avoid double branding */
body.skin-timeless #bodyContentOuter #siteSub{
body.skin-timeless #mw-site-navigation #p-logo{
   height: 0;
   display: none !important;
  overflow: visible;
}
}


/* ---------------------------------------------------------
/* =========================================================
   3) SEARCH: smaller, right aligned, white background, dark text
   SEARCH: icon OUTSIDE input (right side)
  Also: keep room for search icon if Timeless overlays one
   ========================================================= */
   --------------------------------------------------------- */


/* Tidy wrapper */
body.skin-timeless #p-search #simpleSearch{
body.skin-timeless #p-search #simpleSearch,
   position: relative;
body.skin-timeless #p-search #searchInput-container{
   background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
}


/* The input itself */
/* Input */
body.skin-timeless #p-search input[type="search"],
body.skin-timeless #p-search input[type="search"],
body.skin-timeless #p-search #searchInput{
body.skin-timeless #p-search #searchInput{
   width: min(320px, 28vw);
   width: 100%;
   max-width: 100%;
   box-sizing: border-box;


   padding: .45rem .9rem;   /* base padding */
   padding: .45rem .8rem;
  padding-right: 2.4rem;  /* leave space for a search icon inside the field */
   border-radius: 10px;
 
   border-radius: 8px;


   background: #fff !important;
   background: #fff !important;
Line 252: Line 373:
   appearance: none;
   appearance: none;


   float: right;            /* right-align within p-search container */
   /* room for icon */
  padding-right: 3.1rem !important;
}
}


/* Placeholder */
body.skin-timeless #p-search input[type="search"]::placeholder,
body.skin-timeless #p-search input[type="search"]::placeholder,
body.skin-timeless #p-search #searchInput::placeholder{
body.skin-timeless #p-search #searchInput::placeholder{
Line 261: Line 382:
}
}


/* Remove internal “X / decorations” in WebKit search fields */
/* Hide WebKit search decorations */
body.skin-timeless #p-search input[type="search"]::-webkit-search-decoration,
body.skin-timeless #p-search input[type="search"]::-webkit-search-decoration,
body.skin-timeless #p-search input[type="search"]::-webkit-search-cancel-button,
body.skin-timeless #p-search input[type="search"]::-webkit-search-cancel-button,
Line 270: Line 391:
}
}


/* If Timeless shows a label, keep it subtle (dark) */
/* Keep ONE icon button (Search), hide Go */
body.skin-timeless #p-search input#mw-searchButton,
body.skin-timeless #p-search input#searchButton{
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
 
  width: 38px;
  height: 38px;
 
  padding: 0;
  margin: 0;
 
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
 
  cursor: pointer;
 
  text-indent: -9999px;
  overflow: hidden;
 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M10 18a8 8 0 1 1 5.293-14.293A8 8 0 0 1 10 18m0-2a6 6 0 1 0-6-6a6 6 0 0 0 6 6m9.707 6.293l-5.1-5.1l1.414-1.414l5.1 5.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
 
body.skin-timeless #p-search input#searchButton{
  display: none !important;
}
 
/* Label styling */
body.skin-timeless #p-search label{
body.skin-timeless #p-search label{
   color: rgba(32,32,32,.75) !important;
   color: rgba(32,32,32,.75) !important;
}
}


/* If Timeless adds a search icon element inside the container, keep it visible.
/* =========================================================
  (These selectors are “best guess” safe overrides; harmless if not present.) */
   Personal dropdown: ensure text is dark (header is white)
body.skin-timeless #p-search .searchButton,
   ========================================================= */
body.skin-timeless #p-search .mw-searchButton,
body.skin-timeless #p-search .mw-fallbackSearchButton{
  filter: none !important;
}
 
/* ---------------------------------------------------------
   Personal dropdown (#personal): text should be black
   --------------------------------------------------------- */


body.skin-timeless #personal,
body.skin-timeless #personal,
Line 296: Line 441:
}
}


/* If the dropdown panel has a background, keep it white */
body.skin-timeless #personal .dropdown,
body.skin-timeless #personal .dropdown,
body.skin-timeless #personal .mw-portlet-body{
body.skin-timeless #personal .mw-portlet-body{
Line 302: Line 446:
}
}


/* ---------------------------------------------------------
/* =========================================================
   4) FOOTER: keep full width, adopt palette
  CONTENT WRAPPER FIXES
   --------------------------------------------------------- */
  ========================================================= */
 
body.skin-timeless #mw-content-container{
  background: #eaecf0 !important;
  background-image: none !important;
  border-bottom: 0 !important;
  padding-top: 1rem !important; /* breathing space under header bar */
}
 
/* Reduce Timeless default top gap below header */
@media screen and (min-width: 851px) {
  body.skin-timeless #mw-content-container{
    margin-top: 0.5rem !important;
    padding-bottom: 1em !important;
  }
}
 
/* =========================================================
   FOOTER: match site (burgundy, white text, gold links) + top border
   ========================================================= */


body.skin-timeless #mw-footer-container{
body.skin-timeless #mw-footer-container{
   border-top: 6px solid var(--bhc-sand);
  background: var(--bhc-maroon) !important;
   background: #f6f6f6;
   border-top: 10px solid var(--bhc-gold) !important;
}
 
/* Full-bleed footer: remove Timeless .ts-inner side padding ONLY in footer */
body.skin-timeless #mw-footer-container .ts-inner{
  max-width: none !important;
   padding-left: 0 !important;
  padding-right: 0 !important;
}
}


body.skin-timeless #mw-footer{
body.skin-timeless #mw-footer{
   font-family: var(--bhc-body-font);
   font-family: var(--bhc-body-font);
   color: #222;
   color: #fff !important;
}
}


/* ---------------------------------------------------------
/* Footer links */
   5) Spacing: ensure content doesn’t jam up under the header
body.skin-timeless #mw-footer a,
   --------------------------------------------------------- */
body.skin-timeless #mw-footer a:visited{
  color: var(--bhc-gold) !important;
}
 
/* Footer padding */
body.skin-timeless #footer-list {padding-left:20px; padding-bottom: 20px;}
body.skin-timeless #footer-icons {padding-right: 20px;}
 
/* =========================================================
  Hide empty "Wiki Tools" (site-tools) portlet on smaller screens
  ========================================================= */
@media (max-width: 1100px){
  body.skin-timeless #site-tools{
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}
 
/* =========================================================
  Remove Timeless default borders on MediaWiki heading wrappers and TOC title
  ========================================================= */
body.skin-timeless .toctitle,
body.skin-timeless .mw-heading2,
body.skin-timeless .mw-heading3,
body.skin-timeless .mw-heading4,
body.skin-timeless .mw-heading5 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
 
/* =========================================================
   Header: use available width on large screens (reduce height)
   - Keep wrap on smaller screens
  ========================================================= */
 
/* Make sure the logo/title portlet is not shrink-wrapped by skin rules */
body.skin-timeless #p-logo-text{
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}
 
/* Wide screens: keep title + strapline on single lines */
@media (min-width: 1100px){
  body.skin-timeless #p-logo-text #p-banner{
    white-space: nowrap !important;
    font-size: 52px !important;      /* tweak 48–56 if you want */
    line-height: 1.02 !important;
  }
 
  body.skin-timeless #bhc-strapline,
  body.skin-timeless .bhc-strapline{
    white-space: nowrap !important;
    max-width: none !important;
    margin-top: 0.05rem !important;
  }
}


body.skin-timeless #mw-content-container{
/* Medium screens: allow title to wrap but keep it tighter */
   padding-top: 1.1rem;
@media (max-width: 1099px){
  body.skin-timeless #p-logo-text #p-banner{
    line-height: 1.05 !important;
  }
  body.skin-timeless #bhc-strapline,
   body.skin-timeless .bhc-strapline{
    margin-top: 0.12rem !important;
  }
}
}

Latest revision as of 11:22, 29 January 2026

/*
⚠️ Do not reorder rules below this line — contrast overrides depend on cascade order.
*/

/* =========================================================
   Bellingham Heritage Centre – Timeless skin branding (CSS-only)
   Applies ONLY when the Timeless skin is in use.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Condensed:wght@400;700&family=Satisfy&display=swap');

body.skin-timeless{
  /* Palette */
  --bhc-teal: rgb(130,156,149);
  --bhc-olive: rgb(165,174,121);
  --bhc-sand: rgb(228,186,149);

  /* Site colours */
  --bhc-maroon: rgb(93, 8, 58);      /* main burgundy */
  --bhc-gold: rgb(228, 186, 123);    /* site gold/yellow */

  --bhc-link: #005DB3;
  --bhc-text: #202020;

  /* Header is WHITE */
  --bhc-header-bg: #ffffff;
  --bhc-header-text: #202020;

  /* Bars */
  --bhc-topbar-olive: rgb(165, 174, 121);
  --bhc-topbar-teal: rgb(130, 156, 149);
  --bhc-bottombar-sand: rgb(228, 186, 123);
  --bhc-bottombar-maroon: rgb(95, 8, 58);

  /* Fonts */
  --bhc-body-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bhc-heading-font: "Roboto Condensed", "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bhc-accent-font: "Satisfy", cursive;

  /* Readability */
  font-size: 112.5%;
  line-height: 1.65;

  overflow-x: hidden;
  background: #eaecf0; /* page background */
}

@media (max-width: 720px){
  body.skin-timeless{ font-size: 16.5px; }
}

/* ---------------------------------------------------------
   Global typography (content)
   --------------------------------------------------------- */

body.skin-timeless,
body.skin-timeless .mw-body,
body.skin-timeless .mw-parser-output{
  font-family: var(--bhc-body-font);
  color: var(--bhc-text);
}

body.skin-timeless a,
body.skin-timeless a:visited{
  color: var(--bhc-link);
}

body.skin-timeless a:hover{
  text-decoration: underline;
}

body.skin-timeless .mw-parser-output h1,
body.skin-timeless .mw-parser-output h2,
body.skin-timeless .mw-parser-output h3{
  font-family: var(--bhc-heading-font);
  letter-spacing: .02em;
  color: var(--bhc-maroon);
}

body.skin-timeless .mw-parser-output h1{
  font-size: 2.05rem;
  line-height: 1.15;
  margin: 0.25rem 0 0.75rem;
  font-weight: 700;
}

body.skin-timeless .mw-parser-output h2{
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 1.6rem 0 0.6rem;
  border-bottom: 3px solid var(--bhc-sand);
  padding-bottom: .25rem;
}

body.skin-timeless .mw-parser-output h3{
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 1.2rem 0 0.45rem;
}

body.skin-timeless .mw-parser-output h4{
  font-size: 1.1rem;
  line-height: 1.3;
}

body.skin-timeless .mw-parser-output p{ margin: 0.75rem 0; }

body.skin-timeless .mw-parser-output ul,
body.skin-timeless .mw-parser-output ol{ margin: 0.6rem 0 0.9rem 1.25rem; }

body.skin-timeless .mw-parser-output li{ margin: 0.2rem 0; }

body.skin-timeless #toc,
body.skin-timeless .toc,
body.skin-timeless .mw-normal-catlinks,
body.skin-timeless .catlinks,
body.skin-timeless .mw-editsection,
body.skin-timeless .mw-editsection a,
body.skin-timeless .mw-changeslist,
body.skin-timeless .mw-footer{
  font-size: 0.95rem;
}

/* Optional accent class you can use in wiki content */
body.skin-timeless .bhc-script{ font-family: var(--bhc-accent-font); }

/* =========================================================
   HEADER: white background + top/bottom bars (20px each)
   ========================================================= */

/* Hide Timeless fixed decorative bars that can “float” during scroll */
body.skin-timeless #mw-header-hack,
body.skin-timeless #mw-header-nav-hack,
body.skin-timeless .color-bar{
  display: none !important;
}

/* Header container – ensure no clipping */
body.skin-timeless #mw-header-container{
  position: relative !important;
  background: var(--bhc-header-bg) !important; /* white */
  border: 0 !important;
  overflow: visible !important;
}

/* Top bar (olive then teal) */
body.skin-timeless #mw-header-container::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 20px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--bhc-topbar-olive) 0 25%,
    var(--bhc-topbar-teal) 25% 100%
  );
}

/* Bottom bar (gold then maroon) */
body.skin-timeless #mw-header-container::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 20px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--bhc-bottombar-sand) 0 33%,
    var(--bhc-bottombar-maroon) 33% 100%
  );
}

/* Make header text dark by default */
body.skin-timeless #mw-header,
body.skin-timeless #mw-header a{
  color: var(--bhc-header-text) !important;
}

/* =========================================================
   HEADER LAYOUT: stack title/strapline, then search, then user-tools
   (prevents large-screen collisions)
   ========================================================= */

body.skin-timeless #mw-header{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;

  /* leave room for the bars */
  padding-top: calc(14px + 20px);
  padding-bottom: calc(12px + 20px);
}

/* Row 1: Title block is always full width */
body.skin-timeless #mw-header #p-logo-text{
  min-width: 0;
  flex: 1 1 100%;
  width: 100%;
  order: 1;
}

/* Row 2: Search sits on its own row, right aligned, constrained */
body.skin-timeless #mw-header #p-search{
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  margin-left: 0;
  order: 2;
}

/* Constrain the inner search box and right-align it */
body.skin-timeless #mw-header #p-search form#searchform,
body.skin-timeless #mw-header #p-search #simpleSearch{
  max-width: 520px;
  margin-left: auto; /* right align */
}

/* Row 3: User tools on its own row, right aligned */
body.skin-timeless #mw-header #user-tools{
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  margin-left: 0;
  order: 3;
  text-align: right;
}

body.skin-timeless #mw-header #user-tools #personal{
  display: inline-block;
}

/* Optional: open dropdown from right edge */
body.skin-timeless #mw-header #user-tools #personal-inner.dropdown{
  right: 0 !important;
  left: auto !important;
}

/* Small widths: keep things simple */
@media (max-width: 720px){
  body.skin-timeless #mw-header #p-search form#searchform,
  body.skin-timeless #mw-header #p-search #simpleSearch{
    max-width: none;
    margin-left: 0;
  }
}

/* =========================================================
   SITE TITLE + LOGO (left)
   Timeless uses: #p-logo-text a#p-banner
   ========================================================= */

/* KEY FIX:
   Put the logo + reserved height on #p-logo-text, not on #p-banner,
   so strapline can sit close under the title without “dead air”. */
body.skin-timeless #p-logo-text{
  position: relative;

  background-image: url(/resources/assets/BHClogo.jpg);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 96px 96px;

  min-height: 96px;      /* reserves logo height */
  padding-left: 118px;   /* reserves logo width + gap */
}

/* Title link should not carry logo spacing */
body.skin-timeless #p-logo-text #p-banner{
  display: block;
  text-decoration: none;

  font-family: var(--bhc-heading-font) !important;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: .01em;
  color: var(--bhc-maroon) !important;

  background: none !important;
  min-height: 0 !important;
  padding-left: 0 !important;

  line-height: 1.05;
  white-space: normal;
  margin: 0;
}

/* Strapline injected (LocalSettings-driven). Expect element id="bhc-strapline" or class="bhc-strapline".
   We style BOTH for safety. */
body.skin-timeless #bhc-strapline,
body.skin-timeless .bhc-strapline{
  margin-top: 0.15rem;
  font-family: var(--bhc-accent-font);
  color: var(--bhc-teal);
  font-size: 20px;
  line-height: 1.12;
  font-weight: 400;
  white-space: normal;
  max-width: 52rem;
}

@media (max-width: 1024px){
  body.skin-timeless #bhc-strapline,
  body.skin-timeless .bhc-strapline{
    font-size: 18px;
    max-width: 100%;
  }
}

@media (max-width: 720px){
  body.skin-timeless #bhc-strapline,
  body.skin-timeless .bhc-strapline{
    font-size: 16px;
  }
}

/* Remove any old pseudo-element strapline rules (belt & braces) */
body.skin-timeless #p-logo-text #p-banner::after{
  content: none !important;
}

/* Small widths: reduce left indent + logo size (logo is on #p-logo-text now) */
@media (max-width: 768px){
  body.skin-timeless #p-logo-text{
    background-size: 72px 72px !important;
    padding-left: 92px !important; /* 72 + ~20 gap */
    min-height: 72px !important;
  }

  body.skin-timeless #p-logo-text #p-banner{
    line-height: 1.05 !important;
  }
}

/* Hide Timeless sidebar logo to avoid double branding */
body.skin-timeless #mw-site-navigation #p-logo{
  display: none !important;
}

/* =========================================================
   SEARCH: icon OUTSIDE input (right side)
   ========================================================= */

body.skin-timeless #p-search #simpleSearch{
  position: relative;
}

/* Input */
body.skin-timeless #p-search input[type="search"],
body.skin-timeless #p-search #searchInput{
  width: 100%;
  box-sizing: border-box;

  padding: .45rem .8rem;
  border-radius: 10px;

  background: #fff !important;
  color: #202020 !important;
  caret-color: #202020 !important;

  border: 1px solid rgba(0,0,0,.18) !important;
  box-shadow: none !important;

  -webkit-appearance: none;
  appearance: none;

  /* room for icon */
  padding-right: 3.1rem !important;
}

body.skin-timeless #p-search input[type="search"]::placeholder,
body.skin-timeless #p-search #searchInput::placeholder{
  color: rgba(0,0,0,.55) !important;
}

/* Hide WebKit search decorations */
body.skin-timeless #p-search input[type="search"]::-webkit-search-decoration,
body.skin-timeless #p-search input[type="search"]::-webkit-search-cancel-button,
body.skin-timeless #p-search input[type="search"]::-webkit-search-results-button,
body.skin-timeless #p-search input[type="search"]::-webkit-search-results-decoration{
  -webkit-appearance: none;
  display: none;
}

/* Keep ONE icon button (Search), hide Go */
body.skin-timeless #p-search input#mw-searchButton,
body.skin-timeless #p-search input#searchButton{
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);

  width: 38px;
  height: 38px;

  padding: 0;
  margin: 0;

  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;

  cursor: pointer;

  text-indent: -9999px;
  overflow: hidden;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M10 18a8 8 0 1 1 5.293-14.293A8 8 0 0 1 10 18m0-2a6 6 0 1 0-6-6a6 6 0 0 0 6 6m9.707 6.293l-5.1-5.1l1.414-1.414l5.1 5.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

body.skin-timeless #p-search input#searchButton{
  display: none !important;
}

/* Label styling */
body.skin-timeless #p-search label{
  color: rgba(32,32,32,.75) !important;
}

/* =========================================================
   Personal dropdown: ensure text is dark (header is white)
   ========================================================= */

body.skin-timeless #personal,
body.skin-timeless #personal a,
body.skin-timeless #personal h2,
body.skin-timeless #personal h3,
body.skin-timeless #personal .mw-portlet,
body.skin-timeless #personal .mw-portlet *{
  color: #202020 !important;
}

body.skin-timeless #personal .dropdown,
body.skin-timeless #personal .mw-portlet-body{
  background: #fff !important;
}

/* =========================================================
   CONTENT WRAPPER FIXES
   ========================================================= */

body.skin-timeless #mw-content-container{
  background: #eaecf0 !important;
  background-image: none !important;
  border-bottom: 0 !important;
  padding-top: 1rem !important; /* breathing space under header bar */
}

/* Reduce Timeless default top gap below header */
@media screen and (min-width: 851px) {
  body.skin-timeless #mw-content-container{
    margin-top: 0.5rem !important;
    padding-bottom: 1em !important;
  }
}

/* =========================================================
   FOOTER: match site (burgundy, white text, gold links) + top border
   ========================================================= */

body.skin-timeless #mw-footer-container{
  background: var(--bhc-maroon) !important;
  border-top: 10px solid var(--bhc-gold) !important;
}

/* Full-bleed footer: remove Timeless .ts-inner side padding ONLY in footer */
body.skin-timeless #mw-footer-container .ts-inner{
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.skin-timeless #mw-footer{
  font-family: var(--bhc-body-font);
  color: #fff !important;
}

/* Footer links */
body.skin-timeless #mw-footer a,
body.skin-timeless #mw-footer a:visited{
  color: var(--bhc-gold) !important;
}

/* Footer padding */
body.skin-timeless #footer-list {padding-left:20px; padding-bottom: 20px;}
body.skin-timeless #footer-icons {padding-right: 20px;}

/* =========================================================
   Hide empty "Wiki Tools" (site-tools) portlet on smaller screens
   ========================================================= */
@media (max-width: 1100px){
  body.skin-timeless #site-tools{
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* =========================================================
   Remove Timeless default borders on MediaWiki heading wrappers and TOC title
   ========================================================= */
body.skin-timeless .toctitle,
body.skin-timeless .mw-heading2,
body.skin-timeless .mw-heading3,
body.skin-timeless .mw-heading4,
body.skin-timeless .mw-heading5 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* =========================================================
   Header: use available width on large screens (reduce height)
   - Keep wrap on smaller screens
   ========================================================= */

/* Make sure the logo/title portlet is not shrink-wrapped by skin rules */
body.skin-timeless #p-logo-text{
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

/* Wide screens: keep title + strapline on single lines */
@media (min-width: 1100px){
  body.skin-timeless #p-logo-text #p-banner{
    white-space: nowrap !important;
    font-size: 52px !important;      /* tweak 48–56 if you want */
    line-height: 1.02 !important;
  }

  body.skin-timeless #bhc-strapline,
  body.skin-timeless .bhc-strapline{
    white-space: nowrap !important;
    max-width: none !important;
    margin-top: 0.05rem !important;
  }
}

/* Medium screens: allow title to wrap but keep it tighter */
@media (max-width: 1099px){
  body.skin-timeless #p-logo-text #p-banner{
    line-height: 1.05 !important;
  }
  body.skin-timeless #bhc-strapline,
  body.skin-timeless .bhc-strapline{
    margin-top: 0.12rem !important;
  }
}