Jump to content

MediaWiki:Common.css: Difference between revisions

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
Add modern registration page styling with clean hCaptcha integration
Hero stats: keep labels on one line on small screens
 
(10 intermediate revisions by 2 users not shown)
Line 615: Line 615:
     justify-content: center;
     justify-content: center;
     margin: 24px 0;
     margin: 24px 0;
}
/* ============================================
  FOOTER COPYRIGHT VISIBILITY
  Added: 2025-10-21-v8
  Ensures footer disclaimer is always visible
  ============================================ */
/* Ensure footer copyright section is visible */
#footer-info {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* Make copyright text stand out */
#footer-info-copyright {
    font-size: 0.85em !important;
    line-height: 1.6 !important;
    color: #202122 !important;
    display: block !important;
}
/* ============================================
  ADDITIONAL RESPONSIVE IMAGE FIXES
  Aggressive CSS to ensure images resize
  ============================================ */
/* Force all images on Main Page to be responsive */
.page-Main_Page img {
    max-width: 100% !important;
    height: auto !important;
}
/* Specifically target CEO profile card images */
.page-Main_Page table[style*="33%"] img,
.page-Main_Page table[style*="25%"] img,
.page-Main_Page .thumbimage {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}
/* Make image containers flexible */
.page-Main_Page table[style*="min-height"] {
    min-height: auto !important;
}
/* Responsive card layout */
@media (max-width: 1200px) {
    .page-Main_Page table[style*="width: 33%"] {
        width: 48% !important;
        margin: 10px 1% !important;
    }
}
@media (max-width: 768px) {
    .page-Main_Page table[style*="width: 33%"] {
        width: 100% !important;
        display: block !important;
        margin: 15px 0 !important;
    }
}
/* ============================================
  HOME PAGE HERO  (.ceo-hero)
  The Main Page rule above forces text-align:left !important on every
  descendant, so this component is designed left-aligned rather than
  fighting it. Links must be styled here: the wikitext parser escapes
  raw <a> tags, so inline styles cannot reach them.
  Two columns. The prose column is capped for readability, which used to
  leave roughly a quarter of the panel empty on the right; the stats rail
  now occupies that space so the narrow measure reads as deliberate.
  ============================================ */
.ceo-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 380px at 8% -30%, rgba(96,150,220,0.28), transparent 60%),
        linear-gradient(135deg, #0a1929 0%, #14294a 55%, #1a2942 100%);
    border-radius: 10px;
    padding: 3.4rem 3rem 3rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 28px rgba(10,25,41,0.28);
    color: #fff;
}
.ceo-hero::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #e3b23c 0%, #c9902a 100%);
}
/* two-column shell */
.ceo-hero-inner {
    display: flex;
    align-items: stretch;
    gap: 3rem;
}
.ceo-hero-main { flex: 1 1 auto; min-width: 0; }
/* stats rail */
.ceo-hero-stats {
    flex: 0 0 216px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.15rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255,255,255,0.16);
}
.ceo-stat { display: block; }
.ceo-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #e3b23c;
}
.ceo-stat-label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
    margin-top: 0.15rem;
}
.ceo-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e3b23c;
    margin-bottom: 0.85rem;
}
.ceo-hero-title {
    /* capped so the headline stays on one line in the narrowest desktop
      column (539px at a 1280px viewport); it wrapped at 3rem there but
      not at 1024px, which read as inconsistent */
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
    color: #fff;
}
/* no max-width here: the flex column now sets the measure */
.ceo-hero-tagline {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.5;
    color: rgba(255,255,255,0.86);
    margin: 0;
}
.ceo-hero-rule {
    height: 1px;
    width: 76px;
    background: rgba(255,255,255,0.28);
    margin: 1.6rem 0 1.25rem;
}
.ceo-hero-invite {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.80);
    margin: 0 0 1.6rem;
}
.ceo-hero-invite strong { color: #fff; font-weight: 600; }
/* action row.
  The parser wraps loose links in a <p>, so the flex container has to be that
  <p> rather than the wrapper div. */
.ceo-hero-actions p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    margin: 0;
}
body.page-Main_Page .ceo-hero-actions a,
body.page-Main_Page .ceo-hero-actions a:visited {
    display: inline-block;
    padding: 0.62rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
/* wikitext links take no class, so the primary button is chosen positionally */
body.page-Main_Page .ceo-hero-actions a:first-of-type,
body.page-Main_Page .ceo-hero-actions a:first-of-type:visited {
    background: #e3b23c;
    border-color: #e3b23c;
    color: #10233d;
}
body.page-Main_Page .ceo-hero-actions a:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
}
body.page-Main_Page .ceo-hero-actions a:first-of-type:hover {
    background: #f0c258;
    border-color: #f0c258;
}
body.page-Main_Page .ceo-hero-invite a,
body.page-Main_Page .ceo-hero-invite a:visited {
    color: #ffd479;
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.page-Main_Page .ceo-hero-invite a:hover { color: #ffe6ad; }
/* stack the rail under the prose before the columns get cramped */
@media (max-width: 900px) {
    .ceo-hero-inner { flex-direction: column; gap: 2rem; }
    .ceo-hero-stats {
        flex: 1 1 auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 2.5rem;
        padding-left: 0;
        padding-top: 1.5rem;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.16);
    }
}
@media (max-width: 720px) {
    .ceo-hero { padding: 2.25rem 1.5rem 2rem; }
    .ceo-hero-rule { margin: 1.2rem 0 1rem; }
    body.page-Main_Page .ceo-hero-actions a { width: 100%; text-align: center !important; }
    .ceo-hero-stats { gap: 1.25rem; }
    .ceo-stat-num { font-size: 1.6rem; }
    /* nowrap keeps the three stats the same height; "CEO PROFILES" otherwise
      breaks onto two lines and the row looks ragged */
    .ceo-stat-label { font-size: 0.7rem; letter-spacing: 0.06em; white-space: nowrap; }
}
}

Latest revision as of 08:12, 26 August 2026

/* ============================================
   ARTICLE TEXT JUSTIFICATION - CEO PAGES ONLY
   Justify text only in CEO biography articles (pages with infoboxes)
   Excludes Main Page, Special pages, and Project pages
   ============================================ */

/* Apply justification only to main namespace articles (not Main Page) */
body.ns-0:not(.page-Main_Page) .mw-parser-output p {
    text-align: justify;
    text-justify: inter-word;
}

body.ns-0:not(.page-Main_Page) .mw-parser-output li {
    text-align: justify;
    text-justify: inter-word;
}

/* Explicitly keep Main Page left-aligned */
body.page-Main_Page .mw-parser-output * {
    text-align: left !important;
}

/* Keep special pages left-aligned */
body.ns-special .mw-parser-output p,
body.ns-special .mw-parser-output li {
    text-align: left !important;
}

/* Keep project namespace (CEO.wiki:) pages left-aligned */
body.ns-4 .mw-parser-output p,
body.ns-4 .mw-parser-output li {
    text-align: left !important;
}

/* Keep headings left-aligned everywhere */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6 {
    text-align: left !important;
}

/* Keep infobox content left-aligned */
.infobox,
.infobox * {
    text-align: left !important;
}

/* Keep navigation elements left-aligned */
.mw-navigation,
.mw-navigation * {
    text-align: left !important;
}

/* Keep tables left-aligned */
.wikitable,
.wikitable * {
    text-align: left !important;
}


/* ============================================
   ACCOUNT CREATION PAGE STYLING
   Center all form elements
   ============================================ */

/* Center the entire create account form */
.mw-special-Userlogin #userloginForm {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

/* Center all form rows */
    text-align: center;
    margin: 0 auto;
}

/* Center labels */
    display: block;
    text-align: center;
    margin: 10px auto 5px auto;
    font-weight: 600;
}

/* Center input fields */
    display: block;
    margin: 5px auto 15px auto;
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    font-size: 14px;
}

/* Center help text */
    text-align: center;
    margin: 5px auto 15px auto;
    font-size: 0.9em;
    color: #54595d;
    max-width: 400px;
}

/* Center checkboxes */
    text-align: center;
}

    margin-right: 5px;
}

/* Center CAPTCHA */
    text-align: center;
    margin: 20px auto;
}

    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

/* Center submit button */
    text-align: center;
    margin: 25px auto;
}

    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    background-color: #2c5aa0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    background-color: #1e3a6b;
}

/* Statistics box at top */
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6b 100%);
    color: white;
    padding: 30px 20px;
    margin: 0 auto 30px auto;
    max-width: 600px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 20px;
}

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

    text-align: center;
}

    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

    font-size: 0.9em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Center page title */
    text-align: center;
}

/* Responsive design */
@media (max-width: 600px) {
        grid-template-columns: 1fr;
        gap: 15px;
    }

        max-width: 100%;
    }
/* Infobox Shadow Styling */
.infobox {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}

/* Enhanced Infobox Executive Styling */
.infobox.executive,
table.infobox {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

/* ============================================================================
   SPECIAL:CREATEACCOUNT - CENTERED LAYOUT
   ============================================================================ */

/* Center the entire create account form */
.mw-special-CreateAccount #bodyContent {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Center the page title */
.mw-special-CreateAccount .firstHeading {
    text-align: center;
}

/* Center all form elements */
.mw-special-CreateAccount .mw-htmlform-field-HTMLFormFieldWithButton,
.mw-special-CreateAccount .mw-htmlform-field-HTMLTextField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLEmailField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLCheckField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLInfoField {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center labels */
.mw-special-CreateAccount label {
    display: block;
    text-align: center;
    margin: 15px auto 5px;
    font-weight: 600;
}

/* Center input fields */
.mw-special-CreateAccount input[type="text"],
.mw-special-CreateAccount input[type="password"],
.mw-special-CreateAccount input[type="email"] {
    display: block;
    margin: 0 auto;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

/* Center help text */
.mw-special-CreateAccount .htmlform-tip,
.mw-special-CreateAccount .mw-htmlform-help-message {
    text-align: center;
    margin: 5px auto 15px;
    display: block;
}

/* Center checkboxes */
.mw-special-CreateAccount .mw-htmlform-field-HTMLCheckField label {
    display: inline-block;
}

/* Center submit button */
.mw-special-CreateAccount .mw-htmlform-submit-buttons {
    text-align: center;
    margin-top: 20px;
}

.mw-special-CreateAccount button[type="submit"] {
    margin: 0 auto;
}

/* Statistics Banner at Top */
.createaccount-statistics-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 30px 20px;
    margin: -20px -20px 30px -20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.createaccount-statistics-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.95;
}

.createaccount-statistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.createaccount-stat-item {
    text-align: center;
}

.createaccount-stat-number {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    color: #fff;
}

.createaccount-stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive design */
@media (max-width: 600px) {
    .createaccount-statistics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mw-special-CreateAccount input[type="text"],
    .mw-special-CreateAccount input[type="password"],
    .mw-special-CreateAccount input[type="email"] {
        max-width: 100%;
    }
}/* ========================================
   REGISTRATION PAGE IMPROVEMENTS - CEO.wiki
   Clean, modern design for account creation
   ======================================== */

/* Registration form container */
#userlogin, #userloginForm {
    max-width: 480px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Form header */
.mw-ui-container h1,
.mw-createaccount-header {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

/* Form description */
.mw-form-related-link-container {
    text-align: center;
    margin-bottom: 24px;
    color: #666;
}

/* Input fields */
.mw-ui-input,
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.mw-ui-input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Field labels */
.mw-ui-vform-field > label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

/* hCaptcha container - clean integration */
.mw-confirmedit-captcha-and-reload,
.h-captcha {
    margin: 24px 0 !important;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hide redundant CAPTCHA labels/text */
.fancycaptcha-captcha-container .mw-label,
.mw-confirmedit-captcha .mw-label {
    display: none !important;
}

/* CAPTCHA help text - make it subtle */
.mw-confirmedit-captcha-fail {
    background-color: #fef2f2;
    border-color: #fecaca;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    color: #991b1b;
    font-size: 14px;
}

/* Submit button - modern design */
.mw-ui-button,
#wpCreateaccount,
button[type="submit"] {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.mw-ui-button:hover,
#wpCreateaccount:hover,
button[type="submit"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mw-ui-button:active,
#wpCreateaccount:active {
    transform: translateY(0);
}

/* Help text / hints */
.mw-helptext,
.mw-form-help {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.5;
}

/* Already have account link */
.mw-form-related-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.mw-form-related-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.mw-form-related-link a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Error messages */
.errorbox,
.mw-message-box-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Success messages */
.successbox,
.mw-message-box-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Checkbox styling (remember me, etc) */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

/* Privacy/Terms links */
.mw-createacct-benefits-container,
.mw-createacct-policy-container {
    font-size: 13px;
    color: #6b7280;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    line-height: 1.6;
}

.mw-createacct-benefits-container a,
.mw-createacct-policy-container a {
    color: #3b82f6;
    text-decoration: none;
}

.mw-createacct-benefits-container a:hover,
.mw-createacct-policy-container a:hover {
    text-decoration: underline;
}

/* Loading state for form submission */
.mw-ui-button:disabled,
#wpCreateaccount:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #9ca3af;
}

/* Responsive design */
@media (max-width: 768px) {
    #userlogin, #userloginForm {
        margin: 20px auto;
        padding: 20px;
        max-width: 100%;
    }

    .mw-ui-container h1 {
        font-size: 24px;
    }
}

/* Clean form field spacing */
.mw-ui-vform .mw-ui-vform-field {
    margin-bottom: 20px;
}

/* Remove unnecessary borders and backgrounds */
#userloginForm fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Make password requirements more visible */
.mw-createacct-password-validity {
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 4px;
    border-left: 3px solid #3b82f6;
}

/* Clean checkbox container */
.mw-ui-checkbox {
    display: flex;
    align-items: center;
    margin: 16px 0;
}

.mw-ui-checkbox label {
    margin: 0;
    font-weight: normal;
    color: #374151;
}

/* Add subtle hover effect to form */
#userlogin:hover, #userloginForm:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hide "Anti-Bot Protection" heading if it still appears */
h3:contains("Security Verification"),
h3:contains("Anti-Bot Protection") {
    display: none !important;
}

/* Style any remaining CAPTCHA wrapper cleanly */
.mw-htmlform-field-HTMLHCaptchaField {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Center the hCaptcha widget nicely */
.mw-htmlform-field-HTMLHCaptchaField > .mw-input {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

/* ============================================
   FOOTER COPYRIGHT VISIBILITY
   Added: 2025-10-21-v8
   Ensures footer disclaimer is always visible
   ============================================ */

/* Ensure footer copyright section is visible */
#footer-info {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Make copyright text stand out */
#footer-info-copyright {
    font-size: 0.85em !important;
    line-height: 1.6 !important;
    color: #202122 !important;
    display: block !important;
}
/* ============================================
   ADDITIONAL RESPONSIVE IMAGE FIXES
   Aggressive CSS to ensure images resize
   ============================================ */

/* Force all images on Main Page to be responsive */
.page-Main_Page img {
    max-width: 100% !important;
    height: auto !important;
}

/* Specifically target CEO profile card images */
.page-Main_Page table[style*="33%"] img,
.page-Main_Page table[style*="25%"] img,
.page-Main_Page .thumbimage {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Make image containers flexible */
.page-Main_Page table[style*="min-height"] {
    min-height: auto !important;
}

/* Responsive card layout */
@media (max-width: 1200px) {
    .page-Main_Page table[style*="width: 33%"] {
        width: 48% !important;
        margin: 10px 1% !important;
    }
}

@media (max-width: 768px) {
    .page-Main_Page table[style*="width: 33%"] {
        width: 100% !important;
        display: block !important;
        margin: 15px 0 !important;
    }
}
/* ============================================
   HOME PAGE HERO  (.ceo-hero)
   The Main Page rule above forces text-align:left !important on every
   descendant, so this component is designed left-aligned rather than
   fighting it. Links must be styled here: the wikitext parser escapes
   raw <a> tags, so inline styles cannot reach them.

   Two columns. The prose column is capped for readability, which used to
   leave roughly a quarter of the panel empty on the right; the stats rail
   now occupies that space so the narrow measure reads as deliberate.
   ============================================ */

.ceo-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 380px at 8% -30%, rgba(96,150,220,0.28), transparent 60%),
        linear-gradient(135deg, #0a1929 0%, #14294a 55%, #1a2942 100%);
    border-radius: 10px;
    padding: 3.4rem 3rem 3rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 28px rgba(10,25,41,0.28);
    color: #fff;
}

.ceo-hero::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #e3b23c 0%, #c9902a 100%);
}

/* two-column shell */
.ceo-hero-inner {
    display: flex;
    align-items: stretch;
    gap: 3rem;
}

.ceo-hero-main { flex: 1 1 auto; min-width: 0; }

/* stats rail */
.ceo-hero-stats {
    flex: 0 0 216px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.15rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255,255,255,0.16);
}

.ceo-stat { display: block; }

.ceo-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #e3b23c;
}

.ceo-stat-label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
    margin-top: 0.15rem;
}

.ceo-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e3b23c;
    margin-bottom: 0.85rem;
}

.ceo-hero-title {
    /* capped so the headline stays on one line in the narrowest desktop
       column (539px at a 1280px viewport); it wrapped at 3rem there but
       not at 1024px, which read as inconsistent */
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
    color: #fff;
}

/* no max-width here: the flex column now sets the measure */
.ceo-hero-tagline {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.5;
    color: rgba(255,255,255,0.86);
    margin: 0;
}

.ceo-hero-rule {
    height: 1px;
    width: 76px;
    background: rgba(255,255,255,0.28);
    margin: 1.6rem 0 1.25rem;
}

.ceo-hero-invite {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.80);
    margin: 0 0 1.6rem;
}

.ceo-hero-invite strong { color: #fff; font-weight: 600; }

/* action row.
   The parser wraps loose links in a <p>, so the flex container has to be that
   <p> rather than the wrapper div. */
.ceo-hero-actions p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    margin: 0;
}

body.page-Main_Page .ceo-hero-actions a,
body.page-Main_Page .ceo-hero-actions a:visited {
    display: inline-block;
    padding: 0.62rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* wikitext links take no class, so the primary button is chosen positionally */
body.page-Main_Page .ceo-hero-actions a:first-of-type,
body.page-Main_Page .ceo-hero-actions a:first-of-type:visited {
    background: #e3b23c;
    border-color: #e3b23c;
    color: #10233d;
}

body.page-Main_Page .ceo-hero-actions a:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
}

body.page-Main_Page .ceo-hero-actions a:first-of-type:hover {
    background: #f0c258;
    border-color: #f0c258;
}

body.page-Main_Page .ceo-hero-invite a,
body.page-Main_Page .ceo-hero-invite a:visited {
    color: #ffd479;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.page-Main_Page .ceo-hero-invite a:hover { color: #ffe6ad; }

/* stack the rail under the prose before the columns get cramped */
@media (max-width: 900px) {
    .ceo-hero-inner { flex-direction: column; gap: 2rem; }
    .ceo-hero-stats {
        flex: 1 1 auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 2.5rem;
        padding-left: 0;
        padding-top: 1.5rem;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.16);
    }
}

@media (max-width: 720px) {
    .ceo-hero { padding: 2.25rem 1.5rem 2rem; }
    .ceo-hero-rule { margin: 1.2rem 0 1rem; }
    body.page-Main_Page .ceo-hero-actions a { width: 100%; text-align: center !important; }
    .ceo-hero-stats { gap: 1.25rem; }
    .ceo-stat-num { font-size: 1.6rem; }
    /* nowrap keeps the three stats the same height; "CEO PROFILES" otherwise
       breaks onto two lines and the row looks ragged */
    .ceo-stat-label { font-size: 0.7rem; letter-spacing: 0.06em; white-space: nowrap; }
}