Difference between revisions of "MediaWiki:Common.css"

From Holdfast: Nations At War
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
/*****************************************************
+
/*************************************************
  * HOLDFAST WIKI MODERN THEME  (2025-10-10)
+
  * Holdfast Wiki Global Theme (compact, fixed)
  * – Mobile-first, responsive banner & sidebar
+
  * Banner (top-left) + Dark Left Column + Parchment
*  – Vector 2010 + Vector 2022 + Minerva compatible
+
  *************************************************/
  *****************************************************/
 
  
/* ---------------------------------------------------
+
/* ===== Variables ===== */
  0.  GLOBAL TOKENS
 
  --------------------------------------------------- */
 
 
:root{
 
:root{
  /* spacing scale */
+
   --hf-banner-w: 1250px;        /* banner width */
   --space-1: .25rem;
+
   --hf-banner-h: 300px;        /* banner height */
  --space-2: .5rem;
+
   --hf-sidebar-w: 200px;       /* actual sidebar width + content offset */
  --space-3: 1rem;
+
   --hf-parchment: #E1DCCE;     /* base page background */
 
+
   --hf-left-top: #2F2D2B;       /* dark column gradient top */
  /* widths (desktop) */
+
   --hf-left-bot: #1E1E1D;       /* dark column gradient bottom */
  --sidebar-w: 200px;        /* desktop off-canvas width */
 
   --banner-h: 300px;        /* height of top gradient band */
 
 
 
  /* fonts */
 
   --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
 
  --font-size-base: 1rem;         /* 16 px */
 
   --font-size-nav: .6875rem;       /* 11 px */
 
 
 
  /* colours */
 
   --color-parchment: #E1DCCE;
 
  --color-sidebar-top: #2F2D2B;
 
   --color-sidebar-bot: #1E1E1D;
 
  --color-text: #16181D;
 
  --color-link: #1666FF;
 
  --color-link-visited: #3b46ff;
 
 
}
 
}
  
/* ---------------------------------------------------
+
/* ===== Page background only (no element sizing) =====
   1.  BASE RESET  (small & safe)
+
   Order: 1) banner patch, 2) dark column from top to bottom, 3) parchment fill */
  --------------------------------------------------- */
+
/* ===== Page Background (banner + top dark strip + left column + parchment) ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
+
/* ===== Page Background (banner + extended dark top + dark column + parchment) ===== */
html{scroll-behavior:smooth;}
+
html, body {
img{max-width:100%;height:auto;}
+
  margin: 0 !important;
 +
  background:
 +
    /* 1) Holdfast banner (top-left) */
 +
    url("/Special:FilePath/BannerImage.png") left top no-repeat,
  
/* ---------------------------------------------------
+
    /* 2) Extended dark top gradient (covers full top band behind banner and header) */
  2.  BODY + BACKGROUND STACK
+
    linear-gradient(to right, var(--hf-left-top) 0%, var(--hf-left-bot) 100%) left top no-repeat,
  --------------------------------------------------- */
 
body{
 
  margin:0;
 
  background:var(--color-parchment);
 
  color:var(--color-text);
 
  font:400 var(--font-size-base)/1.55 var(--font-sans);
 
  -webkit-font-smoothing:antialiased;
 
  text-rendering:optimizeLegibility;
 
}
 
  
/* Desktop / tablet: show banner + sidebar gradients */
+
     /* 3) Vertical dark column for sidebar */
@media (min-width:720px){
+
    linear-gradient(to bottom, var(--hf-left-top) 0%, var(--hf-left-bot) 100%) left top repeat-y,
  body{
 
     background:
 
      /* 1) banner */
 
      url("/Special:FilePath/BannerImage.png") left top/40vw no-repeat,
 
      /* 2) dark top strip (full-width) */
 
      linear-gradient(to right,var(--color-sidebar-top)0%,var(--color-sidebar-bot)100%)
 
        left top/100% var(--banner-h) no-repeat,
 
      /* 3) vertical sidebar column */
 
      linear-gradient(to bottom,var(--color-sidebar-top)0%,var(--color-sidebar-bot)100%)
 
        left top/var(--sidebar-w) 100% repeat-y,
 
      /* 4) parchment fill */
 
      var(--color-parchment);
 
    background-attachment:scroll; /* avoids iOS repaint jank */
 
  }
 
}
 
  
/* Keep site chrome transparent so bg shows through */
+
    /* 4) Parchment base */
#mw-page-base,#mw-head-base,#mw-head,
+
    var(--hf-parchment);
.vector-header-container,
+
  background-size:
#mw-panel,#column-one,.mw-sidebar{background:transparent!important;}
+
    var(--hf-banner-w) var(--hf-banner-h),  /* banner image */
 
+
    100% 400px,                              /* dark top bar — extend higher */
/* ---------------------------------------------------
+
    var(--hf-sidebar-w) 100%,               /* vertical sidebar column */
  3.  SIDEBAR (MW panel) – off-canvas on mobile
+
    auto;                                  /* parchment fill */
  --------------------------------------------------- */
+
   background-position:
body.skin-vector #mw-panel,
+
    left top,
body.skin-vector-2022 #mw-panel,
+
    left top,
body.skin-vector #column-one{/* legacy Vector alias */
+
    left top,
   position:fixed;
+
    left top;
   top:0;left:-100%;             /* hide out of view */
+
   background-attachment: fixed, fixed, fixed, fixed;
   width:var(--sidebar-w);
+
   background-repeat: no-repeat, no-repeat, no-repeat, repeat;
   padding:var(--space-3) var(--space-2) var(--space-3);
+
   background-color: var(--hf-parchment);
  background:transparent;
+
   z-index: 0;
  color:#EEEDEB;
 
  transition:left .3s ease;
 
   z-index:1000;
 
 
}
 
}
  
body.menu-open #mw-panel,
 
body.menu-open #column-one{left:0;}    /* toggled via JS */
 
  
/* Portal headings */
 
#mw-panel .portal .portal-title,
 
#mw-panel .vector-menu-heading,
 
#column-one h3{
 
  background:#63635B;
 
  color:#EEEDEB;
 
  font:700 var(--font-size-nav)/1.4 var(--font-sans);
 
  padding:5px 8px;
 
  margin:var(--space-2) var(--space-1) var(--space-1);
 
  border:0;
 
}
 
  
/* Lists & links */
+
/* ===== Keep site chrome transparent so the page bg shows ===== */
#mw-panel .vector-menu-content-list,
+
#mw-page-base, #mw-head-base, #mw-head, .vector-header-container,
#column-one .pBody ul{list-style:none;padding:0;margin:var(--space-2) 0 0;}
+
#mw-panel, #column-one, .mw-sidebar { background: transparent !important; }
#mw-panel .vector-menu-content-list>li,
 
#column-one .pBody ul li{padding:3px 6px;line-height:1.35;}
 
  
#mw-panel a,#column-one a{
+
/* ===== Content is opaque parchment so the dark column doesn't bleed ===== */
   display:block;
+
#content, .mw-body, .vector-body .mw-body,
  padding:2px 4px;
+
.mw-workspace-container, .mw-content-container{
  color:#EEEDEB!important;
+
   background: var(--hf-parchment) !important;
   text-decoration:none;
+
   position: relative;
   font:400 var(--font-size-nav)/1.35 var(--font-sans);
+
   z-index: 1;
 
}
 
}
#mw-panel a:hover,#column-one a:hover{background:rgba(255,255,255,.08);}
 
  
/* Call-out button (Discord) */
+
/* ===== Layout: single source of truth for widths/offsets ===== */
#mw-panel a.external[href*="discord"]{
+
#mw-panel, .mw-sidebar, #column-one{ width: var(--hf-sidebar-w) !important; box-sizing: border-box; }
  background:#5A65EA;color:#fff!important;
+
#content, .mw-body, .vector-body, .mw-content-container{ margin-left: var(--hf-sidebar-w) !important; }
  padding:8px 10px;margin:var(--space-2) 0 var(--space-3);
 
  border-radius:4px;border:1px solid rgba(0,0,0,.15);
 
  font:700 .75rem/1 var(--font-sans);
 
}
 
#mw-panel a.external[href*="discord"]:hover{background:#545DD9;}
 
  
/* ---------------------------------------------------
+
/* ===== Sidebar: flat, compact; let background show through ===== */
  4. LOGO
+
#mw-panel .vector-menu,
  --------------------------------------------------- */
+
#mw-panel .vector-main-menu,
#p-logo a,.mw-wiki-logo{
+
#mw-panel .vector-menu-content,
   background:url("/Special:FilePath/Holdfast_Logo_White_Gold_Compass.png")
+
#mw-panel .vector-menu-content-list,
            center/contain no-repeat!important;
+
#column-one .portlet, #column-one .pBody{
  width:120px;height:120px;display:block;
+
   background: transparent !important; border: 0 !important; padding: 0; margin: 0;
 
}
 
}
#p-logo-text,.mw-wiki-logo-text{display:none!important;}
 
  
/* ---------------------------------------------------
+
#mw-panel, .mw-sidebar, #column-one{ color: #EEEDEB !important; padding: 10px 8px 24px; }
  5.  CONTENT COLUMN  (offset only on ≥720 px)
 
  --------------------------------------------------- */
 
#content,.mw-body,.mw-content-container,
 
.mw-workspace-container{
 
  background:var(--color-parchment)!important;
 
  position:relative;
 
  z-index:1;
 
  padding:0 var(--space-3) var(--space-3);
 
}
 
  
@media (min-width:720px){
+
#mw-panel .portal .portal-title,
  #content,.mw-body,.mw-content-container{
+
#mw-panel .vector-menu-heading,
    margin-left:calc(var(--sidebar-w) + var(--space-3));
+
#column-one h3, .mw-sidebar h2{
  }
+
  background: #63635B !important; color: #EEEDEB !important;
 +
  padding: 5px 8px; margin: 12px 4px 4px; border: 0 !important;
 +
  font: 700 10px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .2px;
 
}
 
}
  
/* ---------------------------------------------------
+
#mw-panel .vector-menu-content-list, #column-one .pBody ul{ list-style: none; padding: 0; margin: 6px 0 0; }
  6. TYPOGRAPHY
+
#mw-panel .vector-menu-content-list > li, #column-one .pBody ul li{ padding: 3px 6px; line-height: 1.35; }
  --------------------------------------------------- */
 
.mw-parser-output p,
 
.mw-parser-output li,
 
.mw-parser-output td,
 
.mw-parser-output th{
 
  letter-spacing:.2px;
 
}
 
  
.mw-parser-output h1,
+
#mw-panel a, #column-one a, .mw-sidebar a{
.mw-parser-output h2,
+
   display: block; padding: 2px 4px;
.mw-parser-output h3,
+
   color: #EEEDEB !important; text-decoration: none;
.mw-parser-output h4,
+
  font: 400 10px/1.35 "Helvetica Neue", Helvetica, Arial, sans-serif;
.mw-parser-output h5{
 
   font-family:var(--font-sans);
 
   font-weight:600;letter-spacing:.3px;margin:var(--space-3) 0 var(--space-2);
 
 
}
 
}
 
+
#mw-panel a:hover, #column-one a:hover, .mw-sidebar a:hover{
#content a{color:var(--color-link);text-decoration-thickness:2px;}
+
   background: rgba(255,255,255,0.08); color: #EEEDEB !important; text-decoration: none;
#content a:visited{color:var(--color-link-visited);}
 
#content a:hover{color:#0046ff;}
 
 
 
code,pre,.mw-code{font-family:"Courier New",Courier,monospace!important;}
 
 
 
/* ---------------------------------------------------
 
  7.  PAGE TABS ALIGNMENT (Vector skins, desktop only)
 
  --------------------------------------------------- */
 
@media (min-width:720px){
 
   /* legacy Vector */
 
  #mw-head #left-navigation,
 
  #mw-head #right-navigation{
 
    position:relative;
 
    left:calc(var(--sidebar-w) + var(--space-3));
 
    margin-left:0!important;
 
  }
 
  #mw-head #p-views,
 
  #mw-head .vectorTabs,
 
  #mw-head .vector-menu-tabs{margin-left:0!important;}
 
 
 
  /* Vector 2022 */
 
  .vector-header-container .vector-page-toolbar,
 
  .vector-header-container .vector-menu-tabs{
 
    position:relative;
 
    left:calc(var(--sidebar-w) + var(--space-3));
 
    margin-left:0!important;
 
    z-index:5; /* above banner */
 
  }
 
 
}
 
}
  
/* ---------------------------------------------------
 
  8.  MISC UTILITIES
 
  --------------------------------------------------- */
 
 
/* Optional thin group divider */
 
/* Optional thin group divider */
#mw-panel .portal,#column-one .portlet{
+
#mw-panel .portal, #column-one .portlet{ margin-top: 10px; padding-top: 6px; border-top: 1px solid rgba(217,215,209,0.12); }
  margin-top:var(--space-2);
+
#mw-panel .portal:first-child, #column-one .portlet:first-child{ border-top: 0; margin-top: 0; padding-top: 0; }
  padding-top:var(--space-2);
+
 
   border-top:1px solid rgba(217,215,209,.12);
+
/* Discord button (flat) */
 +
#mw-panel a.external[href*="discord"]{
 +
  background: #5A65EA; color: #fff !important;
 +
  display: inline-block; padding: 8px 10px; margin: 6px 0 10px;
 +
   border-radius: 4px; border: 1px solid rgba(0,0,0,0.15);
 +
  font: 700 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
 
}
 
}
#mw-panel .portal:first-child,
+
#mw-panel a.external[href*="discord"]:hover{ background: #545DD9; }
#column-one .portlet:first-child{border-top:0;margin-top:0;padding-top:0;}
 
  
/* ---------------------------------------------------
+
/* ===== Branding: Holdfast compass logo ===== */
  A.  Keep sidebar ON-SCREEN for desktop / tablets
+
#p-logo a, .mw-wiki-logo{
  --------------------------------------------------- */
+
   background: url("/Special:FilePath/Holdfast_Logo_White_Gold_Compass.png") center/contain no-repeat !important;
@media (min-width: 720px){
+
   width: 150px !important; height: 150px !important; display: block;
  body.skin-vector #mw-panel,
 
  body.skin-vector-2022 #mw-panel,
 
   body.skin-vector #column-one{      /* legacy Vector alias */
 
    left: 0;                /* instead of -100% */
 
   }
 
 
}
 
}
 +
#p-logo-text, .mw-wiki-logo-text{ display: none !important; }
  
/* ---------------------------------------------------
+
/* ===== Typography: Helvetica Neue (14px main / 10px sidebar) ===== */
  B. Make sure the logo shows in BOTH Vector skins
+
html, body, .mw-body, .vector-body, .mw-content-text, #content,
  --------------------------------------------------- */
+
.vector-header-container, .vector-menu, .vector-menu-content, .vector-menu-heading,
#p-logo a,             /* Vector 2010 / legacy */
+
#p-logo-text, #firstHeading, .mw-parser-output, .mw-parser-output p,
.mw-wiki-logo,         /* generic */
+
.mw-parser-output li, .mw-parser-output td, .mw-parser-output th{
.vector-header-logo{   /* Vector 2022 */
+
   font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
   background: url("/Special:FilePath/Holdfast_Logo_White_Gold_Compass.png")
+
   font-size: 14px !important; line-height: 1.55;
              center/contain no-repeat !important;
+
   -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
   width: 150px;                 /* revert to your original size */
+
   font-weight: 400; letter-spacing: .2px; color: #16181D;
  height: 150px;
 
   display: block;
 
   margin: var(--space-3) auto; /* vertical breathing room */
 
 
}
 
}
  
/*****************************************************
+
.mw-parser-output h1, .mw-parser-output h2, .mw-parser-output h3,
*  SIDEBAR “HERO” REVAMP  (2025-10-10)
+
.mw-parser-output h4, .mw-parser-output h5{
*  – gradient column + photo header + centred logo
+
   font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
*****************************************************/
+
  font-weight: 600 !important; letter-spacing: .3px;
 
 
/* ----- CONFIG ----- */
 
:root{
 
   --hf-sidebar-hero-h: 210px;                         /* visible hero height */
 
 
}
 
}
  
/* ----- SIDEBAR BACKGROUND & LAYOUT ----- */
+
/* Code blocks keep monospace */
body.skin-vector #mw-panel,
+
code, pre, .mw-code{ font-family: "Courier New", Courier, monospace !important; }
body.skin-vector-2022 #mw-panel,
 
body.skin-vector #column-one{
 
  /* darker, more opaque gradient */
 
  background: linear-gradient(180deg,#2F2D2B 0%,#1E1E1D 100%) !important;
 
  
  /* give the header photo some breathing room */
+
/* ===== Align page tabs with content edge (Vector legacy + Vector-2022) ===== */
   padding-top: calc(var(--hf-sidebar-hero-h) + var(--space-3));
+
:root {
  overflow: hidden;       /* hide photo bleed for very long pages */
+
   --hf-content-pad: 16px; /* left inner padding of the content column */
 
}
 
}
  
/* ----- HERO PHOTO (TOP OF SIDEBAR) ----- */
+
/* Your content gets this padding; keep it explicit so we can reuse it */
body.skin-vector #mw-panel::before,
+
#content, .mw-body, .mw-content-container {
body.skin-vector-2022 #mw-panel::before,
+
   padding-left: var(--hf-content-pad);
body.skin-vector #column-one::before{
 
   content: "";
 
  position: absolute;
 
  top: 0; left: 0;
 
  width: 100%;
 
  height: var(--hf-sidebar-hero-h);
 
  background: url("/Special:FilePath/Sidebar-Hero.jpg") center/cover no-repeat;
 
  z-index: -1;            /* sits behind links & headings */
 
  filter: brightness(.82);/* subtle darken so white logo pops */
 
 
}
 
}
  
/* ----- COMPASS LOGO, CENTRED WITHIN PHOTO ----- */
+
/* 1) Legacy Vector (tabs live in #left-navigation / #right-navigation) */
#p-logo a,                /* Vector 2010 / legacy */
+
#mw-head #left-navigation,
.mw-wiki-logo,             /* fallback */
+
#mw-head #right-navigation {
.vector-header-logo{       /* Vector 2022 */
+
   position: relative;
   position: absolute;
+
   left: calc(var(--hf-sidebar-w) + var(--hf-content-pad)) !important;
   top: calc(var(--hf-sidebar-hero-h) - 120px);  /* vertically centres 150-px logo */
+
   margin-left: 0 !important; /* nuke any default margin */
  left: 50%;
 
  width: 150px; height: 150px;
 
   margin-left: -75px;     /* half of width – centres horizontally */
 
  background: url("/Special:FilePath/Holdfast_Logo_White_Gold_Compass.png")
 
              center/contain no-repeat !important;
 
  display: block !important;
 
 
}
 
}
  
/* ----- DISCORD BUTTON – FULL-WIDTH & SPACED ----- */
+
/* Also zero margins on the tab lists themselves so they don't re-offset */
#mw-panel a.external[href*="discord"]{
+
#mw-head #p-views,
  display:block;
+
#mw-head .vectorTabs,
  text-align:center;
+
#mw-head .vector-menu-tabs {
  margin: var(--space-3) 0 var(--space-3);
+
   margin-left: 0 !important;
   width:100%;
 
 
}
 
}
  
/* ----- SECTION HEADINGS – FLUSH LEFT (NO INDENT) ----- */
+
/* 2) Vector-2022 (tabs / page tools bar) */
#mw-panel .portal .portal-title,
+
.vector-header-container .vector-page-toolbar,
#column-one h3{
+
.vector-header-container .vector-menu-tabs {
   margin-left:0;
+
  position: relative;
   margin-right:0;
+
  left: calc(var(--hf-sidebar-w) + var(--hf-content-pad)) !important;
 +
   margin-left: 0 !important;
 +
   z-index: 5; /* stay above the banner image */
 
}
 
}

Latest revision as of 23:51, 10 October 2025

/*************************************************
 * Holdfast Wiki – Global Theme (compact, fixed)
 * Banner (top-left) + Dark Left Column + Parchment
 *************************************************/

/* ===== Variables ===== */
:root{
  --hf-banner-w: 1250px;        /* banner width */
  --hf-banner-h: 300px;         /* banner height */
  --hf-sidebar-w: 200px;        /* actual sidebar width + content offset */
  --hf-parchment: #E1DCCE;      /* base page background */
  --hf-left-top: #2F2D2B;       /* dark column gradient top */
  --hf-left-bot: #1E1E1D;       /* dark column gradient bottom */
}

/* ===== Page background only (no element sizing) =====
   Order: 1) banner patch, 2) dark column from top to bottom, 3) parchment fill */
/* ===== Page Background (banner + top dark strip + left column + parchment) ===== */
/* ===== Page Background (banner + extended dark top + dark column + parchment) ===== */
html, body {
  margin: 0 !important;
  background:
    /* 1) Holdfast banner (top-left) */
    url("/Special:FilePath/BannerImage.png") left top no-repeat,

    /* 2) Extended dark top gradient (covers full top band behind banner and header) */
    linear-gradient(to right, var(--hf-left-top) 0%, var(--hf-left-bot) 100%) left top no-repeat,

    /* 3) Vertical dark column for sidebar */
    linear-gradient(to bottom, var(--hf-left-top) 0%, var(--hf-left-bot) 100%) left top repeat-y,

    /* 4) Parchment base */
    var(--hf-parchment);
  background-size:
    var(--hf-banner-w) var(--hf-banner-h),   /* banner image */
    100% 400px,                              /* dark top bar — extend higher */
    var(--hf-sidebar-w) 100%,                /* vertical sidebar column */
    auto;                                   /* parchment fill */
  background-position:
    left top,
    left top,
    left top,
    left top;
  background-attachment: fixed, fixed, fixed, fixed;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-color: var(--hf-parchment);
  z-index: 0;
}



/* ===== Keep site chrome transparent so the page bg shows ===== */
#mw-page-base, #mw-head-base, #mw-head, .vector-header-container,
#mw-panel, #column-one, .mw-sidebar { background: transparent !important; }

/* ===== Content is opaque parchment so the dark column doesn't bleed ===== */
#content, .mw-body, .vector-body .mw-body,
.mw-workspace-container, .mw-content-container{
  background: var(--hf-parchment) !important;
  position: relative;
  z-index: 1;
}

/* ===== Layout: single source of truth for widths/offsets ===== */
#mw-panel, .mw-sidebar, #column-one{ width: var(--hf-sidebar-w) !important; box-sizing: border-box; }
#content, .mw-body, .vector-body, .mw-content-container{ margin-left: var(--hf-sidebar-w) !important; }

/* ===== Sidebar: flat, compact; let background show through ===== */
#mw-panel .vector-menu,
#mw-panel .vector-main-menu,
#mw-panel .vector-menu-content,
#mw-panel .vector-menu-content-list,
#column-one .portlet, #column-one .pBody{
  background: transparent !important; border: 0 !important; padding: 0; margin: 0;
}

#mw-panel, .mw-sidebar, #column-one{ color: #EEEDEB !important; padding: 10px 8px 24px; }

#mw-panel .portal .portal-title,
#mw-panel .vector-menu-heading,
#column-one h3, .mw-sidebar h2{
  background: #63635B !important; color: #EEEDEB !important;
  padding: 5px 8px; margin: 12px 4px 4px; border: 0 !important;
  font: 700 10px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .2px;
}

#mw-panel .vector-menu-content-list, #column-one .pBody ul{ list-style: none; padding: 0; margin: 6px 0 0; }
#mw-panel .vector-menu-content-list > li, #column-one .pBody ul li{ padding: 3px 6px; line-height: 1.35; }

#mw-panel a, #column-one a, .mw-sidebar a{
  display: block; padding: 2px 4px;
  color: #EEEDEB !important; text-decoration: none;
  font: 400 10px/1.35 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#mw-panel a:hover, #column-one a:hover, .mw-sidebar a:hover{
  background: rgba(255,255,255,0.08); color: #EEEDEB !important; text-decoration: none;
}

/* Optional thin group divider */
#mw-panel .portal, #column-one .portlet{ margin-top: 10px; padding-top: 6px; border-top: 1px solid rgba(217,215,209,0.12); }
#mw-panel .portal:first-child, #column-one .portlet:first-child{ border-top: 0; margin-top: 0; padding-top: 0; }

/* Discord button (flat) */
#mw-panel a.external[href*="discord"]{
  background: #5A65EA; color: #fff !important;
  display: inline-block; padding: 8px 10px; margin: 6px 0 10px;
  border-radius: 4px; border: 1px solid rgba(0,0,0,0.15);
  font: 700 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#mw-panel a.external[href*="discord"]:hover{ background: #545DD9; }

/* ===== Branding: Holdfast compass logo ===== */
#p-logo a, .mw-wiki-logo{
  background: url("/Special:FilePath/Holdfast_Logo_White_Gold_Compass.png") center/contain no-repeat !important;
  width: 150px !important; height: 150px !important; display: block;
}
#p-logo-text, .mw-wiki-logo-text{ display: none !important; }

/* ===== Typography: Helvetica Neue (14px main / 10px sidebar) ===== */
html, body, .mw-body, .vector-body, .mw-content-text, #content,
.vector-header-container, .vector-menu, .vector-menu-content, .vector-menu-heading,
#p-logo-text, #firstHeading, .mw-parser-output, .mw-parser-output p,
.mw-parser-output li, .mw-parser-output td, .mw-parser-output th{
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-weight: 400; letter-spacing: .2px; color: #16181D;
}

.mw-parser-output h1, .mw-parser-output h2, .mw-parser-output h3,
.mw-parser-output h4, .mw-parser-output h5{
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 600 !important; letter-spacing: .3px;
}

/* Code blocks keep monospace */
code, pre, .mw-code{ font-family: "Courier New", Courier, monospace !important; }

/* ===== Align page tabs with content edge (Vector legacy + Vector-2022) ===== */
:root {
  --hf-content-pad: 16px; /* left inner padding of the content column */
}

/* Your content gets this padding; keep it explicit so we can reuse it */
#content, .mw-body, .mw-content-container {
  padding-left: var(--hf-content-pad);
}

/* 1) Legacy Vector (tabs live in #left-navigation / #right-navigation) */
#mw-head #left-navigation,
#mw-head #right-navigation {
  position: relative;
  left: calc(var(--hf-sidebar-w) + var(--hf-content-pad)) !important;
  margin-left: 0 !important; /* nuke any default margin */
}

/* Also zero margins on the tab lists themselves so they don't re-offset */
#mw-head #p-views,
#mw-head .vectorTabs,
#mw-head .vector-menu-tabs {
  margin-left: 0 !important;
}

/* 2) Vector-2022 (tabs / page tools bar) */
.vector-header-container .vector-page-toolbar,
.vector-header-container .vector-menu-tabs {
  position: relative;
  left: calc(var(--hf-sidebar-w) + var(--hf-content-pad)) !important;
  margin-left: 0 !important;
  z-index: 5; /* stay above the banner image */
}