MediaWiki:Common.css: Difference between revisions

From KSI Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* ===== Existing badge backgrounds ===== */
/* ===== Existing badge backgrounds ===== */
.HOF-Background {
.HOF-Background{
   background-image: url("http://wiki.ksiglobal.com/images/7/70/Hall_of_fame_bg.png");
   background-image: url("http://wiki.ksiglobal.com/images/7/70/Hall_of_fame_bg.png");
   width: 250px;
   width: 250px;
   height: 75px;
   height: 75px;
}
}
 
.Red-Background{
.Red-Background {
   background-image: url("https://wiki.ksiglobal.com/images/a/a1/Red-Background.png");
   background-image: url("https://wiki.ksiglobal.com/images/a/a1/Red-Background.png");
   width: 250px;
   width: 250px;
   height: 75px;
   height: 75px;
}
}
 
.Blue-Background{
.Blue-Background {
   background-image: url("https://wiki.ksiglobal.com/images/5/53/Blue_bg.png");
   background-image: url("https://wiki.ksiglobal.com/images/5/53/Blue_bg.png");
   width: 250px;
   width: 250px;
   height: 75px;
   height: 75px;
}
}
 
.Green-Background{
.Green-Background {
   background-image: url("https://wiki.ksiglobal.com/images/b/b2/United_bg.png");
   background-image: url("https://wiki.ksiglobal.com/images/b/b2/United_bg.png");
   width: 250px;
   width: 250px;
   height: 75px;
   height: 75px;
}
}
 
.AlignTop{
.AlignTop {
   display: inline-block;
   display: inline-block;
   vertical-align: top;
   vertical-align: top;
}
}
/* ===== KSI Modern Profile Layout (DarkVector-safe) ===== */
/* ===== KSI Modern Profile Layout (DarkVector-safe) ===== */
.ksiprofile{
.ksiprofile{
   display: grid;
   display: grid;
   grid-template-columns: 1fr 340px;
   grid-template-columns: 1fr 340px;
   gap: 18px;
   gap: 18px;
   align-items: start;
   align-items: stretch;
  margin-top: 0 !important;
}
}
@media (max-width: 900px){
@media (max-width: 900px){
   .ksiprofile{ grid-template-columns: 1fr; }
   .ksiprofile{ grid-template-columns: 1fr; }
}
}
 
/* Card style */
/* Base card */
.ksicard{
.ksicard{
   background: rgba(255,255,255,0.03);
   background: rgba(255,255,255,0.03);
Line 53: Line 45:
   margin: 12px 0;
   margin: 12px 0;
}
}
 
/* Align first cards (prevents "right is higher" issues) */
/* Sticky infobox card */
.ksimain > .ksicard:first-child{ margin-top: 0 !important; }
@media (min-width: 901px){
.ksiside > .ksicard:first-child{ margin-top: 0 !important; }
  .ksisticky{ position: sticky; top: 76px; }
}
 
/* Clean section headings inside cards */
/* Clean section headings inside cards */
.ksicard h2{
.ksicard h2{
Line 65: Line 54:
   padding-bottom: 6px;
   padding-bottom: 6px;
}
}
 
/* Subtle hover polish */
/* Subtle hover polish for images inside cards */
.ksicard img{
.ksicard img{
   border-radius: 10px;
   border-radius: 10px;
Line 75: Line 63:
   box-shadow: 0 10px 18px rgba(0,0,0,0.35);
   box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}
}
 
/* ===== Sidebar layout ===== */
/* ===== Sidebar behavior ===== */
 
/* Sidebar is a vertical stack */
.ksiside{
.ksiside{
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
   gap: 10px;           /* tighter than before */
   gap: 12px !important;     /* "green gap" knob */
   margin: 0 !important;
   margin: 0 !important;
   padding: 0 !important;
   padding: 0 !important;
}
}
 
.ksiside .ksicard{
/* Each sidebar child is its own block; no floats; no weird positioning */
  margin: 0 !important;    /* spacing handled by gap */
  padding: 10px 12px !important;
}
/* Kill random floats/positioning inside sidebar */
.ksiside > *{
.ksiside > *{
   display: block !important;
   display: block !important;
Line 95: Line 83:
   position: relative !important;
   position: relative !important;
   z-index: 1 !important;
   z-index: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}
}
/* MediaWiki wrappers that sometimes float (kill them in sidebar) */
.ksiside .floatright,
.ksiside .floatright,
.ksiside .tright,
.ksiside .tright,
Line 109: Line 93:
   margin: 0 !important;
   margin: 0 !important;
}
}
 
/* ===== Badge card ===== */
/* Sidebar cards: slightly tighter padding than main cards */
.ksiside .ksicard{
  padding: 10px 12px !important;
  margin: 0 !important; /* remove big vertical gaps between sidebar cards */
  clear: both !important;
}
 
/* ===== Badges inside the badge card ===== */
 
/* Put your badges into a clean centered stack */
.ksibadges{
.ksibadges{
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
   gap: 10px;
   gap: 10px;
   align-items: center; /* centers 250px-wide badges */
   align-items: center;
  padding-bottom: 12px !important;  /* <-- yellow area spacing */
}
/* Each badge template is wrapped in .ksibadge in your page source */
.ksibadges .ksibadge{
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
}
/* Prevent template wrappers from pushing things around */
.ksibadges .ksibadge table,
.ksibadges .ksibadge div{
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}
}
 
/* Force badge backgrounds to be identical and "card-like" */
/* Badge blocks: fixed size, centered, no extra margins */
.ksibadges .HOF-Background,
.ksibadges .HOF-Background,
.ksibadges .Red-Background,
.ksibadges .Red-Background,
Line 135: Line 122:
   width: 250px !important;
   width: 250px !important;
   height: 75px !important;
   height: 75px !important;
   margin: 0 !important;
   margin: 0 auto !important;
   position: static !important;
   position: static !important;
   float: none !important;
   float: none !important;
   border-radius: 14px;
   border-radius: 14px;
   border: 1px solid rgba(255,255,255,0.10);
   border: 1px solid rgba(255,255,255,0.10);
Line 144: Line 130:
   overflow: hidden;
   overflow: hidden;
}
}
 
/* Stop stray spacing inside badge card */
/* If badge templates output stray spacing, neutralize it inside badge card */
.ksibadges p{ margin: 0 !important; padding: 0 !important; }
.ksibadges p{
.ksibadges br{ display: none !important; }
  margin: 0 !important;
.ksibadges table{
}
   width: auto !important;
.ksibadges br{
  height: auto !important;
  display: none !important;
  border-spacing: 0 !important;
}
   padding: 0 !important;
 
/* Tighten the gap between badge card and infobox card */
.ksiside .ksibadges{
   margin-bottom: 6px !important;
}
.ksiside .ksiprofilecard{
   margin-top: 0 !important;
}
}
/* ===== Infobox containment ===== */
/* ===== Infobox containment ===== */
/* Prevent infobox/table widths from overflowing the sidebar */
.ksiside .infobox,
.ksiside .infobox,
.ksiside .portable-infobox,
.ksiside .portable-infobox,
Line 172: Line 148:
   margin: 0 !important;
   margin: 0 !important;
}
}
/* If your infobox uses table cells, keep it from creating extra spacing */
.ksiside table td,
.ksiside table td,
.ksiside table th{
.ksiside table th{
   vertical-align: top;
   vertical-align: top;
}
}
/* Make both columns start at the same vertical baseline */
/* ===== Sticky behavior (fixed: no dead runway) ===== */
.ksiprofile{
@media (min-width: 901px){
  margin-top: 12px !important;
  .ksiside{ align-self: start; }
  /* Only the profile card should stick */
  .ksiside .ksiprofilecard.ksisticky{
    position: sticky !important;
    top: 12px !important;
  }
}
}
/* Ensure badges have spacing between them */
/* ===== Main Page Redesign (added 2026-08-18) ===== */
.ksibadges .HOF-Background,
.mp-hero {
.ksibadges .Red-Background,
  position: relative;
.ksibadges .Blue-Background,
  border-radius: 18px;
.ksibadges .Green-Background{
  overflow: hidden;
   margin: 0 !important;
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
   margin: 12px 0 20px;
}
}
 
.mp-hero img { display: block; width: 100%; height: auto; }
.ksibadges .HOF-Background + .HOF-Background,
.mp-hero-overlay {
.ksibadges .HOF-Background + .Red-Background,
  position: absolute;
.ksibadges .HOF-Background + .Blue-Background,
  inset: auto 0 0 0;
.ksibadges .HOF-Background + .Green-Background,
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 65%, rgba(0,0,0,0.88) 100%);
.ksibadges .Red-Background + .HOF-Background,
  padding: 60px 24px 20px;
.ksibadges .Red-Background + .Red-Background,
  display: flex;
.ksibadges .Red-Background + .Blue-Background,
  flex-direction: column;
.ksibadges .Red-Background + .Green-Background,
   gap: 10px;
.ksibadges .Blue-Background + .HOF-Background,
.ksibadges .Blue-Background + .Red-Background,
.ksibadges .Blue-Background + .Blue-Background,
.ksibadges .Blue-Background + .Green-Background,
.ksibadges .Green-Background + .HOF-Background,
.ksibadges .Green-Background + .Red-Background,
.ksibadges .Green-Background + .Blue-Background,
.ksibadges .Green-Background + .Green-Background{
   margin-top: 10px !important; /* set to 6px if you want tighter */
}
}
/* Match sidebar vertical rhythm to left column */
.mp-hero-title {
.ksiside .ksibadges{
  font-size: 220%;
   margin-bottom: 12px !important; /* same “one card gap” feel */
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
   letter-spacing: 0.02em;
}
}
 
.mp-hero-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 95%; }
.ksiside .ksiprofilecard{
.mp-hero-links a { color: #ffc266; font-weight: 600; }
   margin-top: 0 !important;
.mp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
   margin: 0 0 20px;
}
}
/* ===== PATCH: Align top, clean badge spacing, normalize gaps ===== */
@media (max-width: 700px) { .mp-stats { grid-template-columns: repeat(2, 1fr); } }
 
.mp-stat {
/* A) Fix: right column starts higher than left
  background: rgba(255,255,255,0.03);
  Cause: main cards still have margin-top, sidebar cards do not */
  border: 1px solid rgba(255,255,255,0.10);
.ksimain > .ksicard:first-child{
  border-radius: 14px;
   margin-top: 0 !important;
  padding: 16px;
  text-align: center;
   box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
}
.ksiside > .ksicard:first-child{
.mp-stat-value {
   margin-top: 0 !important;
   display: block;
}
   font-size: 190%;
 
   font-weight: 700;
/* Also remove the ksiprofile top offset you added earlier (if present) */
   color: #f79200;
.ksiprofile{
   line-height: 1.2;
   margin-top: 0 !important;
}
 
/* B) Make sidebar spacing match left column rhythm (one consistent source of spacing) */
.ksiside{
   gap: 12px !important;           /* same “card spacing” feel */
}
.ksiside .ksicard{
   margin: 0 !important;           /* spacing handled by gap */
}
 
/* C) Reliable badge separation (works even if templates wrap output oddly)
  We wrap each badge template in a .ksibadge container (see wikitext change below) */
.ksibadges{
   align-items: center;
}
}
.ksibadges .ksibadge{
.mp-stat-label {
   display: block;
   display: block;
   width: 100%;
   font-size: 85%;
   margin: 0 0 10px 0;             /* spacing between badges */
  color: #b8b8b8;
   margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
}
.ksibadges .ksibadge:last-child{
.mp-grid {
   margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
   margin: 0 0 16px;
}
}
 
@media (max-width: 900px) { .mp-grid { grid-template-columns: 1fr; } }
/* D) Reduce the “big gap” before the infobox card */
.mp-card {
.ksiside .ksibadges{
  background: rgba(255,255,255,0.03);
   margin-bottom: 0 !important;     /* let the sidebar gap handle spacing */
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 18px 20px;
   box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
}
.ksiside .ksiprofilecard{
.mp-card h2 {
   margin-top: 0 !important;
  font-size: 130%;
  font-weight: 700;
  color: #f0f0f0;
  border-bottom: 2px solid #f79200;
  padding-bottom: 8px;
   margin: 0 0 12px;
}
}
/* === Badge alignment: every badge is centered identically === */
.mp-card ul,
.ksibadges{
.mp-card p {
  align-items: center !important;
   flex-grow: 1;
}
   display: flex;
 
   flex-direction: column;
.ksibadges .ksibadge{
   justify-content: center;
  width: 100% !important;          /* container spans card */
  display: flex !important;
  justify-content: center !important; /* center the badge itself */
  margin: 0 0 10px 0 !important;  /* spacing between badges */
}
 
.ksibadges .ksibadge:last-child{
  margin-bottom: 0 !important;
}
 
/* Force the actual badge block to be consistent */
.ksibadges .HOF-Background,
.ksibadges .Red-Background,
.ksibadges .Blue-Background,
.ksibadges .Green-Background{
  display: block !important;
  width: 250px !important;
  height: 75px !important;
  margin: 0 !important;
}
/* === Tighten space between badge card and profile card === */
.ksiside{
  gap: 10px !important;  /* adjust this to taste: 8px / 10px / 12px */
}
 
/* specifically: less space after the badge card */
.ksiside .ksibadges{
  margin-bottom: -2px !important; /* subtle pull-up; use 0 if you don't like negatives */
}
 
/* and ensure profile card doesn't add its own top spacing */
.ksiside .ksiprofilecard{
   margin-top: 0 !important;
}
/* === Fix badge centering without pushing one off-screen === */
.ksibadges .ksibadge{
   display: block !important;
  width: 100% !important;
   text-align: center !important;  /* use text-align instead of flex */
  margin: 0 0 10px 0 !important;
}
.ksibadges .ksibadge:last-child{ margin-bottom: 0 !important; }
 
/* Kill right-align wrappers inside badges */
.ksibadges .ksibadge table,
.ksibadges .ksibadge div{
  margin-left: auto !important;
   margin-right: auto !important;
  float: none !important;
}
 
/* Force the actual badge backgrounds to be the consistent block */
.ksibadges .HOF-Background,
.ksibadges .Red-Background,
.ksibadges .Blue-Background,
.ksibadges .Green-Background{
  display: block !important;
  width: 250px !important;
  height: 75px !important;
  margin: 0 auto !important;
}
/* === Kill phantom space inside the badge card === */
.ksibadges{
  padding-bottom: 0 !important;
}
 
/* Common culprits: tables and paragraphs inside templates */
.ksibadges table{
  width: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-spacing: 0 !important;
}
.ksibadges p{
  margin: 0 !important;
  padding: 0 !important;
}
.ksibadges br{
  display: none !important;
}
/* === Reduce gap between badge card and profile card === */
.ksiside{
  gap: 10px !important;   /* try 8px if you want tighter */
}
}
.mp-card ul { list-style: none; margin: 0; padding: 0; }
.mp-card ul li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mp-card ul li:last-child { border-bottom: none; }
.mp-card p { line-height: 1.6; font-size: 105%; }
.mp-featured { display: flex; gap: 16px; align-items: flex-start; }
.mp-featured img { border-radius: 12px; flex-shrink: 0; }
@media (max-width: 500px) { .mp-featured { flex-direction: column; } }
/* Recent activity: strip MediaWiki's default RC chrome down to a clean list */
.mp-activity .mw-changeslist-legend,
.mp-activity .mw-enhancedchanges-checkbox,
.mp-activity h4 { display: none; }
.mp-activity table.mw-enhanced-rc { width: 100%; font-size: 90%; }
.mp-activity .mw-changeslist { max-height: 260px; overflow-y: auto; }

Latest revision as of 14:43, 18 August 2026

/* CSS placed here will be applied to all skins */
/* ===== Existing badge backgrounds ===== */
.HOF-Background{
  background-image: url("http://wiki.ksiglobal.com/images/7/70/Hall_of_fame_bg.png");
  width: 250px;
  height: 75px;
}
.Red-Background{
  background-image: url("https://wiki.ksiglobal.com/images/a/a1/Red-Background.png");
  width: 250px;
  height: 75px;
}
.Blue-Background{
  background-image: url("https://wiki.ksiglobal.com/images/5/53/Blue_bg.png");
  width: 250px;
  height: 75px;
}
.Green-Background{
  background-image: url("https://wiki.ksiglobal.com/images/b/b2/United_bg.png");
  width: 250px;
  height: 75px;
}
.AlignTop{
  display: inline-block;
  vertical-align: top;
}
/* ===== KSI Modern Profile Layout (DarkVector-safe) ===== */
.ksiprofile{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: stretch;
  margin-top: 0 !important;
}
@media (max-width: 900px){
  .ksiprofile{ grid-template-columns: 1fr; }
}
/* Card style */
.ksicard{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  margin: 12px 0;
}
/* Align first cards (prevents "right is higher" issues) */
.ksimain > .ksicard:first-child{ margin-top: 0 !important; }
.ksiside > .ksicard:first-child{ margin-top: 0 !important; }
/* Clean section headings inside cards */
.ksicard h2{
  border-bottom: 0 !important;
  margin-top: 0.2em;
  padding-bottom: 6px;
}
/* Subtle hover polish */
.ksicard img{
  border-radius: 10px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.ksicard img:hover{
  transform: scale(1.04);
  box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}
/* ===== Sidebar layout ===== */
.ksiside{
  display: flex;
  flex-direction: column;
  gap: 12px !important;     /* "green gap" knob */
  margin: 0 !important;
  padding: 0 !important;
}
.ksiside .ksicard{
  margin: 0 !important;     /* spacing handled by gap */
  padding: 10px 12px !important;
}
/* Kill random floats/positioning inside sidebar */
.ksiside > *{
  display: block !important;
  width: 100% !important;
  clear: both !important;
  float: none !important;
  position: relative !important;
  z-index: 1 !important;
}
.ksiside .floatright,
.ksiside .tright,
.ksiside .thumb,
.ksiside .thumbinner,
.ksiside .mw-halign-right{
  float: none !important;
  clear: both !important;
  margin: 0 !important;
}
/* ===== Badge card ===== */
.ksibadges{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px !important;  /* <-- yellow area spacing */
}
/* Each badge template is wrapped in .ksibadge in your page source */
.ksibadges .ksibadge{
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
}
/* Prevent template wrappers from pushing things around */
.ksibadges .ksibadge table,
.ksibadges .ksibadge div{
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}
/* Force badge backgrounds to be identical and "card-like" */
.ksibadges .HOF-Background,
.ksibadges .Red-Background,
.ksibadges .Blue-Background,
.ksibadges .Green-Background{
  display: block !important;
  width: 250px !important;
  height: 75px !important;
  margin: 0 auto !important;
  position: static !important;
  float: none !important;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  overflow: hidden;
}
/* Stop stray spacing inside badge card */
.ksibadges p{ margin: 0 !important; padding: 0 !important; }
.ksibadges br{ display: none !important; }
.ksibadges table{
  width: auto !important;
  height: auto !important;
  border-spacing: 0 !important;
  padding: 0 !important;
}
/* ===== Infobox containment ===== */
.ksiside .infobox,
.ksiside .portable-infobox,
.ksiside table{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
}
.ksiside table td,
.ksiside table th{
  vertical-align: top;
}
/* ===== Sticky behavior (fixed: no dead runway) ===== */
@media (min-width: 901px){
  .ksiside{ align-self: start; }
  /* Only the profile card should stick */
  .ksiside .ksiprofilecard.ksisticky{
    position: sticky !important;
    top: 12px !important;
  }
}
/* ===== Main Page Redesign (added 2026-08-18) ===== */
.mp-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
  margin: 12px 0 20px;
}
.mp-hero img { display: block; width: 100%; height: auto; }
.mp-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 65%, rgba(0,0,0,0.88) 100%);
  padding: 60px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mp-hero-title {
  font-size: 220%;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
}
.mp-hero-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 95%; }
.mp-hero-links a { color: #ffc266; font-weight: 600; }
.mp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 20px;
}
@media (max-width: 700px) { .mp-stats { grid-template-columns: repeat(2, 1fr); } }
.mp-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.mp-stat-value {
  display: block;
  font-size: 190%;
  font-weight: 700;
  color: #f79200;
  line-height: 1.2;
}
.mp-stat-label {
  display: block;
  font-size: 85%;
  color: #b8b8b8;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: 0 0 16px;
}
@media (max-width: 900px) { .mp-grid { grid-template-columns: 1fr; } }
.mp-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.mp-card h2 {
  font-size: 130%;
  font-weight: 700;
  color: #f0f0f0;
  border-bottom: 2px solid #f79200;
  padding-bottom: 8px;
  margin: 0 0 12px;
}
.mp-card ul,
.mp-card p {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mp-card ul { list-style: none; margin: 0; padding: 0; }
.mp-card ul li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mp-card ul li:last-child { border-bottom: none; }
.mp-card p { line-height: 1.6; font-size: 105%; }
.mp-featured { display: flex; gap: 16px; align-items: flex-start; }
.mp-featured img { border-radius: 12px; flex-shrink: 0; }
@media (max-width: 500px) { .mp-featured { flex-direction: column; } }
/* Recent activity: strip MediaWiki's default RC chrome down to a clean list */
.mp-activity .mw-changeslist-legend,
.mp-activity .mw-enhancedchanges-checkbox,
.mp-activity h4 { display: none; }
.mp-activity table.mw-enhanced-rc { width: 100%; font-size: 90%; }
.mp-activity .mw-changeslist { max-height: 260px; overflow-y: auto; }