Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Portal.css: Difference between revisions

MediaWiki interface page
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Joe Beaudoin Jr. (talk | contribs)
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
/*
/*
* Portal layout — BattlestarWiki
  * MediaWiki:Portal.css — BattlestarWiki
  * MediaWiki:Portal.css
  * Loaded via MediaWiki:Common.js
*
* Design tokens from MediaWiki:Citizen.css (dark theme)
  * Loaded via MediaWiki:Citizen.js — do not add to MediaWiki:Common.css.
* Uses Citizen skin CSS custom properties throughout so light/dark mode
* and any theme overrides apply automatically.
*
* Citizen property reference:
*  --color-surface-0        page background
*  --color-surface-1        card / widget background
*  --color-surface-2        subtle raised surface (headers, pills)
*  --color-surface-3        more raised (hover states)
*  --color-base            primary text
*  --color-base--subtle    muted / secondary text
*  --color-link            link blue
*  --color-primary          accent (Citizen teal/blue)
*  --border-color-base      standard border
*  --border-color-interactive  hovered border
*  --border-radius-medium  ~4–6px
*  --border-radius-large    ~8px
*  --font-size-small        ~0.8125rem
*  --font-size-x-small      ~0.75rem
  */
  */


/* ─────────────────────────────────────────────────────────────
/* ═══════════════════════════════════════════════════════════
   PAGE SHELL
   PAGE SHELL
   ───────────────────────────────────────────────────────────── */
   ═══════════════════════════════════════════════════════════ */


.portal-page {
.portal-page {
Line 33: Line 14:
}
}


/* ─────────────────────────────────────────────────────────────
/* ═══════════════════════════════════════════════════════════
   HEADER (title · badge · breadcrumb · stats bar)
   HEADER
   ───────────────────────────────────────────────────────────── */
  Structure: .portal-header > .portal-header-top + .portal-stats-bar
   ═══════════════════════════════════════════════════════════ */


.portal-header {
.portal-header {
     background: var( --color-surface-2 );
     background: var(--background2);
     border: 1px solid var( --border-color-base );
     border: 1px solid var(--border-color-base);
     border-radius: var( --border-radius-large, 8px );
     border-radius: 0;
     padding: 14px 18px;
    border-top: 3px solid var(--border-color-base);
     padding: 12px 16px 0;
     margin-bottom: 12px;
     margin-bottom: 12px;
}
}
Line 51: Line 34:
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 8px;
     gap: 8px;
     margin-bottom: 10px;
     padding-bottom: 10px;
}
}


.portal-title {
.portal-title {
     font-size: 1.3em;
     font-size: 1.25em;
     font-weight: 600;
     font-weight: 700;
    line-height: 1.3;
     color: var(--color-primary);
     color: var( --color-base );
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
Line 66: Line 48:


.portal-badge {
.portal-badge {
     font-size: var( --font-size-x-small, 0.75em );
     font-size: 0.65em;
     font-weight: 500;
     font-weight: 500;
     padding: 2px 9px;
     padding: 2px 9px;
     border-radius: 999px;
     border-radius: 999px;
     border: 1px solid var( --border-color-base );
     border: 1px solid var(--border-color-base--lighter);
     color: var( --color-base--subtle );
     color: var(--color-base--subtle);
     background: var( --color-surface-1 );
     background: var(--background3);
     vertical-align: middle;
     vertical-align: middle;
    font-family: var(--font-family-base);
}
}


.portal-breadcrumb {
.portal-breadcrumb {
     font-size: var( --font-size-small, 0.8125em );
     font-size: 0.75em;
     color: var( --color-base--subtle );
     color: var(--color-base--subtle);
     margin-top: 3px;
     margin-top: 2px;
}
}


.portal-header-links {
.portal-header-links {
     font-size: var( --font-size-small, 0.8125em );
     font-size: 0.75em;
     color: var( --color-base--subtle );
     color: var(--color-link);
     white-space: nowrap;
     white-space: nowrap;
     padding-top: 4px;
     padding-top: 2px;
}
 
.portal-header-links a {
    color: var(--color-link);
    text-decoration: none;
}
 
.portal-header-links a:hover {
    color: var(--color-link--hover);
}
}


/* Stats bar */
/* Stats bar */
.portal-stats-bar {
.portal-stats-bar {
     display: flex;
     display: flex;
     gap: 20px;
     gap: 0;
    flex-wrap: wrap;
     border-top: 1px solid var(--border-color-base);
     border-top: 1px solid var( --border-color-base );
    margin: 0 -16px;
     padding-top: 10px;
     padding: 0;
}
}


.portal-stat {
.portal-stat {
    flex: 1;
     text-align: center;
     text-align: center;
     min-width: 50px;
     padding: 8px 4px;
    border-right: 1px solid var(--border-color-base);
}
 
.portal-stat:last-child {
    border-right: none;
}
}


.portal-stat-num {
.portal-stat-num {
     font-size: 1.25em;
     font-size: 1.25em;
     font-weight: 600;
     font-weight: 700;
     line-height: 1.2;
     line-height: 1.1;
     color: var( --color-base );
     color: var(--color-primary);
    display: block;
}
}


.portal-stat-label {
.portal-stat-label {
     font-size: var( --font-size-x-small, 0.72em );
     font-size: 0.6rem;
     color: var( --color-base--subtle );
     color: var(--color-base--subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
     margin-top: 1px;
     margin-top: 1px;
}
}


/* ─────────────────────────────────────────────────────────────
/* ═══════════════════════════════════════════════════════════
   SERIES NAVIGATION PILLS
   SERIES NAV PILLS
   ───────────────────────────────────────────────────────────── */
   ═══════════════════════════════════════════════════════════ */


.portal-series-nav {
.portal-series-nav {
Line 127: Line 128:
     margin-bottom: 12px;
     margin-bottom: 12px;
     align-items: center;
     align-items: center;
}
/* MW wraps link text in <a>; strip default link styling */
.portal-series-nav a {
    color: inherit;
    text-decoration: none;
}
}


.portal-series-pill {
.portal-series-pill {
     display: inline-block;
     display: inline-block;
     font-size: var( --font-size-small, 0.8em );
     font-size: 0.78em;
     padding: 4px 12px;
     padding: 4px 12px;
     border-radius: 999px;
     border-radius: 999px;
     border: 1px solid var( --border-color-base );
     border: 1px solid var(--border-color-base--lighter);
     color: var( --color-base--subtle );
     color: var(--color-base--subtle);
     background: var( --color-surface-1 );
     background: transparent;
     cursor: pointer;
     cursor: pointer;
     text-decoration: none !important;
     text-decoration: none !important;
     white-space: nowrap;
     white-space: nowrap;
     transition: background 0.15s, border-color 0.15s;
     transition: background 0.15s, border-color 0.15s, color 0.15s;
}
}


.portal-series-pill:hover {
.portal-series-pill:hover {
     border-color: var( --border-color-interactive );
     border-color: var(--border-color-base);
     background: var( --color-surface-3, var( --color-surface-2 ) );
     background: var(--background-color-quiet--hover);
     color: var( --color-base );
     color: var(--color-base);
}
}


.portal-series-pill--active {
.portal-series-pill--active {
     border-color: var( --border-color-interactive );
     border-color: var(--border-color-base);
     background: var( --color-surface-2 );
     background: var(--background-color-quiet--hover);
     color: var( --color-base );
     color: var(--color-primary);
     font-weight: 600;
     font-weight: 600;
     cursor: default;
     cursor: default;
Line 167: Line 162:
}
}


/* Visual spacer between series pills and topic pills */
.portal-series-pill-sep {
.portal-series-pill-sep {
     flex: 0 0 8px;
     flex: 0 0 8px;
}
}


/* ─────────────────────────────────────────────────────────────
.portal-series-nav a {
   MAIN TWO-COLUMN GRID
    color: inherit;
   ───────────────────────────────────────────────────────────── */
    text-decoration: none;
}
 
/* ═══════════════════════════════════════════════════════════
   MAIN GRID
   ═══════════════════════════════════════════════════════════ */


.portal-main-grid {
.portal-main-grid {
     display: grid;
     display: grid;
     grid-template-columns: 1fr 270px;
     grid-template-columns: 1fr 280px;
     gap: 12px;
     gap: 12px;
     align-items: start;
     align-items: start;
}
}


@media screen and ( max-width: 800px ) {
@media screen and (max-width: 800px) {
     .portal-main-grid {
     .portal-main-grid { grid-template-columns: 1fr; }
        grid-template-columns: 1fr;
    }
}
}


Line 196: Line 193:
}
}


/* ─────────────────────────────────────────────────────────────
/* ═══════════════════════════════════════════════════════════
   WIDGET CARD
   WIDGET CARD — matches bsw-card exactly
   ───────────────────────────────────────────────────────────── */
   ═══════════════════════════════════════════════════════════ */


.portal-widget {
.portal-widget {
     background: var( --color-surface-2 );
     background: var(--background2);
    border: 1px solid var( --border-color-base );
    border-radius: var( --border-radius-large, 8px );
     overflow: hidden;
     overflow: hidden;
}
}


/* Head — matches bsw-card-hd */
.portal-widget-head {
.portal-widget-head {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: space-between;
     justify-content: space-between;
     padding: 8px 14px;
     padding: 5px 12px;
     border-bottom: 1px solid var( --border-color-base );
     background: var(--color-surface-2--active);
     background: var( --color-surface-2 );
     border-bottom: 1px solid var(--border-color-base);
     gap: 8px;
     gap: 8px;
     flex-wrap: wrap;
     flex-wrap: wrap;
Line 219: Line 215:


.portal-widget-title {
.portal-widget-title {
     font-size: var( --font-size-small, 0.875em );
     font-size: 0.6875rem;
     font-weight: 600;
     font-weight: 600;
     color: var( --color-base );
     color: var(--color-primary);
}
     text-transform: uppercase;
 
     letter-spacing: 0.08em;
.portal-widget-meta {
     font-size: var( --font-size-x-small, 0.75em );
    color: var( --color-base--subtle );
    flex: 1;
     text-align: right;
}
}


.portal-widget-edit {
.portal-widget-edit {
     font-size: var( --font-size-x-small, 0.75em );
     font-size: 0.6875rem;
     color: var( --color-link );
     color: var(--color-link);
     white-space: nowrap;
     white-space: nowrap;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
}


.portal-widget-foot {
.portal-widget-edit a,
    display: flex;
.portal-widget-head a {
    justify-content: space-between;
     color: var(--color-link);
    align-items: center;
     text-decoration: none;
    padding: 6px 14px;
    border-top: 1px solid var( --border-color-base );
    background: var( --color-surface-1 );
    font-size: var( --font-size-x-small, 0.75em );
     color: var( --color-base--subtle );
     gap: 8px;
    flex-wrap: wrap;
}
}


.portal-widget-body {
.portal-widget-edit a:hover,
    padding: 12px 14px;
.portal-widget-head a:hover {
     background: var( --color-surface-1 );
     color: var(--color-link--hover);
}
}


/* ─────────────────────────────────────────────────────────────
.portal-widget-foot {
  IMAGE CAROUSEL
  ───────────────────────────────────────────────────────────── */
 
.portal-slider-wrapper {
    padding: 10px;
}
 
.portal-slider-image {
    display: block;
    width: 100%;
    border-radius: var( --border-radius-medium, 6px );
    max-height: 260px;
    object-fit: cover;
}
 
.portal-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
    background: var( --color-surface-2 );
    border: 1px dashed var( --border-color-base );
    border-radius: var( --border-radius-medium, 6px );
    font-size: var( --font-size-small, 0.8em );
    color: var( --color-base--subtle );
    padding: 14px;
}
 
.portal-slider-caption {
    font-size: var( --font-size-x-small, 0.78em );
    color: var( --color-base--subtle );
    margin-top: 4px;
    min-height: 1.2em;
}
 
.portal-slider-nav {
     display: flex;
     display: flex;
    justify-content: space-between;
     align-items: center;
     align-items: center;
    padding: 5px 12px;
    border-top: 1px solid var(--border-color-base);
    font-size: 0.6875rem;
    color: var(--color-base--subtle);
     gap: 8px;
     gap: 8px;
     margin-top: 8px;
     flex-wrap: wrap;
    background: var(--background3);
}
}


.portal-slider-prev,
.portal-widget-foot a {
.portal-slider-next {
     color: var(--color-link);
    width: 26px;
     text-decoration: none;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var( --border-color-base );
    background: var( --color-surface-1 );
     color: var( --color-base );
     cursor: pointer;
    font-size: 1.1em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
    transition: background 0.15s;
}
}


.portal-slider-prev:hover,
.portal-widget-foot a:hover {
.portal-slider-next:hover {
     color: var(--color-link--hover);
     background: var( --color-surface-2 );
}
}


.portal-slider-prev:focus-visible,
.portal-widget-body {
.portal-slider-next:focus-visible {
     padding: 10px 12px;
     outline: 2px solid var( --color-progressive, #36c );
    outline-offset: 1px;
}
 
.portal-slider-dots {
    display: flex;
    gap: 4px;
    flex: 1;
}
}


.portal-slider-dot {
/* ═══════════════════════════════════════════════════════════
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var( --border-color-base );
    cursor: pointer;
    transition: background 0.2s;
}
 
.portal-slider-dot.is-active {
    background: var( --color-base );
}
 
.portal-slider-counter {
    flex-shrink: 0;
    font-size: var( --font-size-x-small, 0.78em );
    color: var( --color-base--subtle );
}
 
.portal-slider-source {
    white-space: nowrap;
    font-size: var( --font-size-x-small, 0.78em );
    color: var( --color-link );
    text-decoration: none;
}
 
/* ─────────────────────────────────────────────────────────────
   NEWEST ARTICLE
   NEWEST ARTICLE
   ───────────────────────────────────────────────────────────── */
   ═══════════════════════════════════════════════════════════ */


.portal-newest-inner {
.portal-newest-inner {
     font-size: var( --font-size-small, 0.875em );
     display: flex;
    min-height: 52px; /* prevents layout jump before JS populates */
     gap: 10px;
}
     align-items: flex-start;
 
.portal-newest-title {
     font-size: 1.05em;
     font-weight: 600;
    margin-bottom: 2px;
}
}


.portal-newest-meta {
/* Uses bsw-fa-* classes from Citizen.css — no extra styles needed */
    font-size: var( --font-size-x-small, 0.8em );
    color: var( --color-base--subtle );
    margin-top: 2px;
}


/* ─────────────────────────────────────────────────────────────
/* ═══════════════════════════════════════════════════════════
   COLONIAL CALENDAR
   COLONIAL CALENDAR
   ───────────────────────────────────────────────────────────── */
   ═══════════════════════════════════════════════════════════ */


.portal-calendar-date {
.portal-calendar-date {
     font-size: 1.4em;
     font-size: 1.6em;
     font-weight: 600;
     font-weight: 700;
    color: var(--color-primary);
     line-height: 1.2;
     line-height: 1.2;
    color: var( --color-base );
}
}


.portal-calendar-sub {
.portal-calendar-sub {
     font-size: var( --font-size-x-small, 0.75em );
     font-size: 0.75em;
     color: var( --color-base--subtle );
     color: var(--color-base--subtle);
     margin-bottom: 10px;
     margin-bottom: 8px;
}
}


Line 406: Line 304:


.portal-calendar-event {
.portal-calendar-event {
     font-size: var( --font-size-small, 0.82em );
     font-size: 0.8125em;
     color: var( --color-base );
     color: var(--color-base);
     padding: 6px 0;
     padding: 5px 0;
     border-bottom: 1px solid var( --border-color-base );
     border-bottom: 1px solid var(--border-color-base);
     line-height: 1.5;
     line-height: 1.5;
}
}


.portal-calendar-event:last-child {
.portal-calendar-event:last-child { border-bottom: none; }
    border-bottom: none;
}


.portal-calendar-year {
.portal-calendar-year {
     font-weight: 600;
     font-weight: 600;
     color: var( --color-base--subtle );
     color: var(--color-primary);
     margin-right: 2px;
     margin-right: 3px;
}
}


.portal-calendar-none {
.portal-calendar-none {
     font-size: var( --font-size-small, 0.82em );
     font-size: 0.8125em;
     color: var( --color-base--subtle );
     color: var(--color-base--subtle);
}
}


/* ─────────────────────────────────────────────────────────────
/* ═══════════════════════════════════════════════════════════
   RELATED PORTALS GRID
   RELATED PORTALS
   ───────────────────────────────────────────────────────────── */
   ═══════════════════════════════════════════════════════════ */


.portal-related-grid {
.portal-related-grid {
     display: grid;
     display: grid;
     grid-template-columns: 1fr 1fr;
     grid-template-columns: 1fr 1fr;
     gap: 6px;
     gap: 5px;
}
}


.portal-related-tile {
.portal-related-tile {
     background: var( --color-surface-2 );
     background: var(--background3);
     border: 1px solid var( --border-color-base );
     clip-path: polygon(0 6px,6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px));
    border-radius: var( --border-radius-medium, 6px );
     padding: 7px 9px;
     padding: 7px 10px;
     font-size: 0.8em;
     font-size: var( --font-size-small, 0.8em );
     transition: background 0.15s;
     transition: border-color 0.15s;
}
}


.portal-related-tile:hover {
.portal-related-title {
     border-color: var( --border-color-interactive );
    font-weight: 600;
    line-height: 1.3;
}
 
.portal-related-sub {
     font-size: 0.85em;
    color: var(--color-base--subtle);
    margin-top: 2px;
    line-height: 1.3;
}
}


.portal-related-title {
.portal-related-tile:hover {
     font-weight: 600;
     background: var(--color-surface-2--hover);
}
}


.portal-related-title a {
.portal-related-title a {
     color: var( --color-base );
     color: var(--color-link);
     text-decoration: none;
     text-decoration: none;
}
}


.portal-related-sub {
.portal-related-title a:hover { color: var(--color-link--hover); }
    font-size: var( --font-size-x-small, 0.85em );
    color: var( --color-base--subtle );
    margin-top: 1px;
}


/* ─────────────────────────────────────────────────────────────
/* ═══════════════════════════════════════════════════════════
   DID YOU KNOW
   DYK
   ───────────────────────────────────────────────────────────── */
   ═══════════════════════════════════════════════════════════ */


.portal-dyk-body li,
.portal-dyk-body li,
.portal-dyk-body p {
.portal-dyk-body p {
     font-size: var( --font-size-small, 0.875em );
     font-size: 0.8125em;
     line-height: 1.6;
     line-height: 1.65;
     padding: 6px 0;
     padding: 5px 0;
     border-bottom: 1px solid var( --border-color-base );
     border-bottom: 1px solid var(--border-color-base);
     margin: 0;
     margin: 0;
    color: var(--color-base--subtle);
}
}


.portal-dyk-body li:last-child,
.portal-dyk-body li:last-child,
.portal-dyk-body p:last-child {
.portal-dyk-body p:last-child { border-bottom: none; }
    border-bottom: none;
}


/* ─────────────────────────────────────────────────────────────
/* ═══════════════════════════════════════════════════════════
   ORPHANED ARTICLES CHIPS
   ORPHANED ARTICLES
   ───────────────────────────────────────────────────────────── */
   ═══════════════════════════════════════════════════════════ */


.portal-orphan-chips {
.portal-orphan-chips {
Line 495: Line 393:


.portal-orphan-chip {
.portal-orphan-chip {
     font-size: var( --font-size-x-small, 0.75em );
     font-size: 0.75em;
     padding: 2px 8px;
     padding: 2px 8px;
     border-radius: 999px;
     border-radius: 999px;
     border: 1px solid #c8a000; /* amber — no Citizen variable for warning */
     border: 1px solid var(--border-color-base--lighter);
     color: #7a5c00;
     color: var(--color-base--subtle);
     background: #fdf7e3;
     background: var(--background3);
     white-space: nowrap;
     white-space: nowrap;
}
}


/* Dark mode override for orphan chips (Citizen sets data-theme on <html>) */
/* ═══════════════════════════════════════════════════════════
html[ data-skin-citizen-theme="dark" ] .portal-orphan-chip,
  BROWSE BY TOPIC
@media ( prefers-color-scheme: dark ) {
  ═══════════════════════════════════════════════════════════ */
     .portal-orphan-chip {
 
        background: #2a2200;
.portal-browse-bar {
        border-color: #6a4e00;
     display: flex;
        color: #d4a800;
    flex-wrap: wrap;
    }
    gap: 5px;
}
}


/* ─────────────────────────────────────────────────────────────
.portal-browse-topic { display: inline-block; }
  CATEGORIES CLOUD
  ───────────────────────────────────────────────────────────── */


.portal-cat-section {
.portal-browse-topic a {
     margin-bottom: 8px;
     display: inline-block;
    font-size: 0.8125rem;
    padding: 3px 11px;
    border-radius: 999px;
    border: 1px solid var(--border-color-base--lighter);
    color: var(--color-base) !important;
    background: var(--background3);
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
}


.portal-cat-section:last-of-type {
.portal-browse-topic a:hover {
     margin-bottom: 0;
    background: var(--background-color-quiet--hover);
     border-color: var(--border-color-base);
    color: var(--color-primary) !important;
}
}


.portal-cat-label {
/* ═══════════════════════════════════════════════════════════
    font-size: var( --font-size-x-small, 0.72em );
  PODCAST TEASER
    font-weight: 600;
  ═══════════════════════════════════════════════════════════ */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var( --color-base--subtle );
    margin-bottom: 4px;
}


.portal-cat-cloud {
.portal-podcast-teaser {
     display: flex;
     font-size: 0.8125rem;
     flex-wrap: wrap;
     color: var(--color-base--subtle);
     gap: 4px;
     line-height: 1.5;
}
}


.portal-cat-tag {
.portal-podcast-teaser a {
    font-size: var( --font-size-x-small, 0.75em );
     color: var(--color-link);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var( --border-color-base );
     color: var( --color-base--subtle );
    background: var( --color-surface-2 );
    white-space: nowrap;
     text-decoration: none;
     text-decoration: none;
    transition: border-color 0.15s;
}
}


.portal-cat-tag:hover {
/* ═══════════════════════════════════════════════════════════
    border-color: var( --border-color-interactive );
   SUBPORTALS
    color: var( --color-base );
   ═══════════════════════════════════════════════════════════ */
}
 
/* ─────────────────────────────────────────────────────────────
   SUBPORTALS TWO-COLUMN LINK LIST
   ───────────────────────────────────────────────────────────── */


.portal-subportals {
.portal-subportals {
     display: grid;
     display: grid;
     grid-template-columns: 1fr 1fr;
     grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
     gap: 12px;
     gap: 12px;
}
@media screen and ( max-width: 500px ) {
    .portal-subportals {
        grid-template-columns: 1fr;
    }
}
}


.portal-subportals-heading {
.portal-subportals-heading {
     font-size: var( --font-size-small, 0.875em );
     font-size: 0.6875rem;
     font-weight: 600;
     font-weight: 600;
     color: var( --color-base );
     color: var(--color-primary);
     margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-color-base);
     padding-bottom: 3px;
}
}


Line 587: Line 475:
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 4px;
     gap: 3px;
    font-size: 0.8125em;
}
}


.portal-subportals-list li {
.portal-subportals-list li {
    font-size: var( --font-size-small, 0.875em );
    line-height: 1.4;
     padding-left: 10px;
     padding-left: 10px;
     position: relative;
     position: relative;
Line 601: Line 488:
     position: absolute;
     position: absolute;
     left: 0;
     left: 0;
     color: var( --color-base--subtle );
     color: var(--color-primary);
}
}


/* ─────────────────────────────────────────────────────────────
.portal-subportals-list a {
  CHARACTER GRID
     color: var(--color-link);
  ───────────────────────────────────────────────────────────── */
     text-decoration: none;
 
.portal-char-grid {
     display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 90px, 1fr ) );
     gap: 8px;
    align-items: start;
}
}


.portal-char-card {
.portal-subportals-list a:hover { color: var(--color-link--hover); }
    /* MW wraps [[Link|...]] in <a>, so we style the card container */
}


.portal-char-card a {
/* ═══════════════════════════════════════════════════════════
    display: block;
  HERO SLIDER  — mirrors bsw-hero / bsw-slide exactly
    text-decoration: none !important;
  ═══════════════════════════════════════════════════════════ */
    border-radius: var( --border-radius-medium, 6px );
    overflow: hidden;
    border: 1px solid var( --border-color-base );
    transition: border-color 0.15s, transform 0.15s;
    background: var( --color-surface-2 );
}


.portal-char-card a:hover {
.portal-hero {
     border-color: var( --border-color-interactive );
     position: relative;
    transform: translateY( -2px );
     height: 420px;
}
 
/* frameless File: MW wraps in <span typeof="mw:File/Frameless"><a class="mw-file-description"><img></a></span>
  Target all layers to enforce fixed equal height */
.portal-char-card span[typeof~="mw:File/Frameless"] {
    display: block;
    width: 100%;
     height: 130px;
     overflow: hidden;
     overflow: hidden;
     line-height: 0;
     background: var(--background3);
    margin-bottom: 12px;
}
}


.portal-char-card .mw-file-description {
.portal-slide {
     display: block;
     position: absolute;
     width: 100%;
     inset: 0;
     height: 130px;
     opacity: 0;
     overflow: hidden;
     transition: opacity 0.8s ease;
     background: var( --color-surface-2 );
     display: flex;
     line-height: 0;
     align-items: flex-end;
}
}


.portal-char-card .mw-file-element {
.portal-slide.portal-active { opacity: 1; }
    width: 100% !important;
    height: 130px !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
}
 
.portal-char-name {
    font-size: var( --font-size-x-small, 0.72em );
    color: var( --color-base );
    text-align: center;
    padding: 4px 4px 5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}/* ─────────────────────────────────────────────────────────────
  PORTAL HERO SLIDER  (matches bsw-hero pattern from Main Page)
  ───────────────────────────────────────────────────────────── */


.portal-hero {
.portal-slide-bg {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var( --color-surface-3, #111 );
    border-radius: var( --border-radius-large, 8px );
    margin-bottom: 16px;
    cursor: default;
}
 
/* Sharp contain layer — shows full image without cropping */
.portal-hero-bg {
     position: absolute;
     position: absolute;
     inset: 0;
     inset: 0;
     background-size: contain;
     overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
    z-index: 1;
}
}


/* Blurred fill layer — separate element injected by JS, sits behind sharp layer */
.portal-slide-bg-blur {
.portal-hero-blur {
     position: absolute;
     position: absolute;
     inset: -30px; /* extend beyond edges to hide blur fringing */
     inset: -20px;
     background-size: cover;
    width: calc(100% + 40px);
     background-position: center;
     height: calc(100% + 40px);
     background-repeat: no-repeat;
     object-fit: cover;
     filter: blur( 20px ) brightness( 0.55 ) saturate( 1.1 );
     object-position: center;
     transition: background-image 0.5s ease;
     filter: blur(24px) brightness(0.45) saturate(1.4);
     z-index: 0;
     display: block;
    clip-path: none !important;
     transform: scale(1.05);
}
}


/* Gradient overlay — stronger at bottom-left for text legibility */
.portal-slide-bg-img {
.portal-hero-overlay {
     position: absolute;
     position: absolute;
     inset: 0;
     inset: 0;
     background: linear-gradient(
     width: 100%;
        to top right,
    height: 100%;
        rgba( 0, 0, 0, 0.85 ) 0%,
    object-fit: contain;
        rgba( 0, 0, 0, 0.5 ) 35%,
    object-position: center;
        transparent 65%
    display: block;
     );
     clip-path: none !important;
}
}


/* Clickable overlay — full hero area, below content and nav */
.portal-slide-overlay {
.portal-hero-link {
     position: absolute;
     position: absolute;
     inset: 0;
     inset: 0;
    background: linear-gradient(to top, var(--background3) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
     z-index: 1;
     z-index: 1;
    display: block;
    cursor: pointer;
}
}


.portal-hero-link:focus-visible {
.portal-slide-content {
    outline: 3px solid var( --color-progressive, #36c );
     position: relative;
    outline-offset: -3px;
}
 
/* Content area — bottom-left, matches Main Page bsw-slide-content */
.portal-hero-content {
     position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    padding: 0 20px 20px;
     z-index: 2;
     z-index: 2;
     pointer-events: none; /* let link overlay handle clicks */
     padding: 1rem 1.25rem;
    width: 100%;
}
}


/* Series badge pill above title — matches bsw-slide-badge */
.portal-slide-badge {
.portal-hero-badge {
     display: inline-flex;
     display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba( 255, 255, 255, 0.9 );
    background: rgba( 0, 0, 0, 0.45 );
    border: 1px solid rgba( 255, 255, 255, 0.3 );
    border-radius: 999px;
    padding: 2px 8px;
    margin-bottom: 6px;
}
 
/* Article title — matches bsw-slide-title */
.portal-hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba( 0, 0, 0, 0.9 );
}
 
/* Short extract — matches bsw-slide-extract */
.portal-hero-extract {
    font-size: 0.8rem;
    color: rgba( 255, 255, 255, 0.82 );
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.8 );
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
 
/* Legacy caption wrapper — kept for compat, unstyled */
.portal-hero-caption {}
 
/* Nav — bottom-right, matches Main Page arrow placement */
.portal-hero-nav {
    position: absolute;
    bottom: 12px;
    right: 14px;
    display: flex;
     align-items: center;
     align-items: center;
    gap: 6px;
    z-index: 3;
}
.portal-hero-prev,
.portal-hero-next {
    color: #fff;
    font-size: 1.3em;
    line-height: 1;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba( 0, 0, 0, 0.45 );
    border: 1px solid rgba( 255, 255, 255, 0.25 );
    user-select: none;
    transition: background 0.15s;
}
.portal-hero-prev:hover,
.portal-hero-next:hover {
    background: rgba( 0, 0, 0, 0.7 );
}
.portal-hero-dots {
    display: flex;
     gap: 5px;
     gap: 5px;
     align-items: center;
     background: var(--background-color-quiet--hover);
    border: 1px solid var(--border-color-base--lighter);
    border-radius: 12px;
    padding: 2px 9px;
    margin-bottom: 0.375rem;
}
}


.portal-hero-dot {
.portal-slide-badge-dot {
     width: 6px;
     width: 6px;
     height: 6px;
     height: 6px;
     border-radius: 50%;
     border-radius: 50%;
     background: rgba( 255, 255, 255, 0.4 );
     background: var(--color-primary);
     cursor: pointer;
     flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}
}


.portal-hero-dot.is-active {
.portal-slide-badge span {
    background: #fff;
     font-size: 0.6875rem;
    transform: scale( 1.35 );
     color: var(--color-primary--hover);
}
     text-transform: uppercase;
 
     letter-spacing: 0.08em;
/* Browse gallery — top-right pill, same as before */
.portal-hero-footer {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    display: flex;
    gap: 8px;
    align-items: center;
     font-size: var( --font-size-x-small, 0.72em );
}
 
.portal-hero-edit,
.portal-hero-footer a {
     color: rgba( 255, 255, 255, 0.8 ) !important;
    text-decoration: none !important;
    background: rgba( 0, 0, 0, 0.45 );
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba( 255, 255, 255, 0.2 );
    transition: color 0.15s, background 0.15s;
}
 
.portal-hero-edit:hover,
.portal-hero-footer a:hover {
    color: #fff !important;
    background: rgba( 0, 0, 0, 0.65 );
}
 
@media screen and ( max-width: 600px ) {
    .portal-hero {
        aspect-ratio: 4 / 3;
     }
    .portal-hero-content {
        width: 90%;
    }
    .portal-hero-extract {
        -webkit-line-clamp: 2;
     }
}
 
/* ─────────────────────────────────────────────────────────────
  PAGE SHELL
  ───────────────────────────────────────────────────────────── */
 
.portal-page {
    max-width: 1100px;
    margin: 0 auto;
}
}


/* ─────────────────────────────────────────────────────────────
.portal-slide-title {
  HEADER  (title · badge · breadcrumb · stats bar)
     font-size: 1.375rem;
  ───────────────────────────────────────────────────────────── */
 
.portal-header {
    background: var( --color-surface-2 );
    border: 1px solid var( --border-color-base );
    border-radius: var( --border-radius-large, 8px );
    padding: 14px 18px;
    margin-bottom: 12px;
}
 
.portal-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
 
.portal-title {
     font-size: 1.3em;
     font-weight: 600;
     font-weight: 600;
    line-height: 1.3;
     color: var(--color-base);
     color: var( --color-base );
     margin-bottom: 0.25rem;
     display: flex;
     line-height: 1.2;
    align-items: center;
     flex-wrap: wrap;
    gap: 8px;
}
}


.portal-badge {
.portal-slide-title a {
    font-size: var( --font-size-x-small, 0.75em );
     color: var(--color-base);
    font-weight: 500;
     text-decoration: none;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid var( --border-color-base );
     color: var( --color-base--subtle );
    background: var( --color-surface-1 );
     vertical-align: middle;
}
}


.portal-breadcrumb {
.portal-slide-title a:hover { color: var(--color-primary--hover); }
    font-size: var( --font-size-small, 0.8125em );
    color: var( --color-base--subtle );
    margin-top: 3px;
}


.portal-header-links {
.portal-slide-desc {
     font-size: var( --font-size-small, 0.8125em );
     font-size: 0.8125rem;
     color: var( --color-base--subtle );
     color: var(--color-base--subtle);
     white-space: nowrap;
     max-width: 560px;
     padding-top: 4px;
     line-height: 1.55;
}
}


/* Stats bar */
.portal-hero-dots {
 
     position: absolute;
.portal-stats-bar {
     top: 0.75rem;
     display: flex;
     right: 0.75rem;
    gap: 20px;
    flex-wrap: wrap;
     border-top: 1px solid var( --border-color-base );
    padding-top: 10px;
}
 
.portal-stat {
    text-align: center;
    min-width: 50px;
}
 
.portal-stat-num {
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.2;
    color: var( --color-base );
}
 
.portal-stat-label {
     font-size: var( --font-size-x-small, 0.72em );
    color: var( --color-base--subtle );
    margin-top: 1px;
}
 
/* ─────────────────────────────────────────────────────────────
  SERIES NAVIGATION PILLS
  ───────────────────────────────────────────────────────────── */
 
.portal-series-nav {
     display: flex;
     display: flex;
    flex-wrap: wrap;
     gap: 5px;
     gap: 5px;
     margin-bottom: 12px;
     z-index: 10;
    align-items: center;
}
}


/* MW wraps link text in <a>; strip default link styling */
.portal-hero-dot {
.portal-series-nav a {
     width: 7px;
     color: inherit;
    height: 7px;
     text-decoration: none;
     border-radius: 50%;
}
    background: var(--background-color-icon);
 
    cursor: pointer;
.portal-series-pill {
    transition: background 0.2s;
     display: inline-block;
     display: inline-block;
    font-size: var( --font-size-small, 0.8em );
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var( --border-color-base );
    color: var( --color-base--subtle );
    background: var( --color-surface-1 );
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
}


.portal-series-pill:hover {
.portal-hero-dot.is-active { background: var(--color-primary); }
    border-color: var( --border-color-interactive );
    background: var( --color-surface-3, var( --color-surface-2 ) );
    color: var( --color-base );
}


.portal-series-pill--active {
.portal-hero-nav {
     border-color: var( --border-color-interactive );
     position: absolute;
     background: var( --color-surface-2 );
     bottom: 0.75rem;
    color: var( --color-base );
     right: 0.75rem;
    font-weight: 600;
    cursor: default;
}
 
.portal-series-pill--jump {
    border-style: dashed;
}
 
/* Visual spacer between series pills and topic pills */
.portal-series-pill-sep {
     flex: 0 0 8px;
}
 
/* ─────────────────────────────────────────────────────────────
  MAIN TWO-COLUMN GRID
  ───────────────────────────────────────────────────────────── */
 
.portal-main-grid {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 12px;
    align-items: start;
}
 
@media screen and ( max-width: 800px ) {
    .portal-main-grid {
        grid-template-columns: 1fr;
    }
}
 
.portal-main-col,
.portal-sidebar {
     display: flex;
     display: flex;
    flex-direction: column;
     gap: 5px;
     gap: 12px;
     z-index: 10;
}
 
/* ─────────────────────────────────────────────────────────────
  WIDGET CARD
  ───────────────────────────────────────────────────────────── */
 
.portal-widget {
     background: var( --color-surface-2 );
    border: 1px solid var( --border-color-base );
    border-radius: var( --border-radius-large, 8px );
    overflow: hidden;
}
}


.portal-widget-head {
.portal-hero-btn {
    display: flex;
     width: 24px;
    align-items: center;
     height: 24px;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid var( --border-color-base );
    background: var( --color-surface-2 );
    gap: 8px;
    flex-wrap: wrap;
}
 
.portal-widget-title {
    font-size: var( --font-size-small, 0.875em );
    font-weight: 600;
    color: var( --color-base );
}
 
.portal-widget-meta {
    font-size: var( --font-size-x-small, 0.75em );
    color: var( --color-base--subtle );
    flex: 1;
    text-align: right;
}
 
.portal-widget-edit {
    font-size: var( --font-size-x-small, 0.75em );
    color: var( --color-link );
    white-space: nowrap;
}
 
.portal-widget-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    border-top: 1px solid var( --border-color-base );
    background: var( --color-surface-1 );
    font-size: var( --font-size-x-small, 0.75em );
    color: var( --color-base--subtle );
    gap: 8px;
    flex-wrap: wrap;
}
 
.portal-widget-body {
    padding: 12px 14px;
    background: var( --color-surface-1 );
}
 
/* ─────────────────────────────────────────────────────────────
  IMAGE CAROUSEL
  ───────────────────────────────────────────────────────────── */
 
.portal-slider-wrapper {
    padding: 10px;
}
 
.portal-slider-image {
    display: block;
    width: 100%;
    border-radius: var( --border-radius-medium, 6px );
    max-height: 260px;
    object-fit: cover;
}
 
.portal-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
    background: var( --color-surface-2 );
    border: 1px dashed var( --border-color-base );
    border-radius: var( --border-radius-medium, 6px );
    font-size: var( --font-size-small, 0.8em );
    color: var( --color-base--subtle );
    padding: 14px;
}
 
.portal-slider-caption {
    font-size: var( --font-size-x-small, 0.78em );
    color: var( --color-base--subtle );
    margin-top: 4px;
    min-height: 1.2em;
}
 
.portal-slider-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
 
.portal-slider-prev,
.portal-slider-next {
     width: 26px;
     height: 26px;
     border-radius: 50%;
     border-radius: 50%;
     border: 1px solid var( --border-color-base );
     background: var(--background-color-quiet--hover);
     background: var( --color-surface-1 );
     border: 1px solid var(--border-color-base--lighter);
     color: var( --color-base );
     color: var(--color-primary);
    font-size: 0.875rem;
     cursor: pointer;
     cursor: pointer;
    font-size: 1.1em;
    line-height: 1;
     display: inline-flex;
     display: inline-flex;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     flex-shrink: 0;
     line-height: 1;
    transition: background 0.15s;
     user-select: none;
     user-select: none;
    transition: background 0.15s;
}
.portal-slider-prev:hover,
.portal-slider-next:hover {
    background: var( --color-surface-2 );
}
.portal-slider-prev:focus-visible,
.portal-slider-next:focus-visible {
    outline: 2px solid var( --color-progressive, #36c );
    outline-offset: 1px;
}
.portal-slider-dots {
    display: flex;
    gap: 4px;
    flex: 1;
}
.portal-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var( --border-color-base );
    cursor: pointer;
    transition: background 0.2s;
}
.portal-slider-dot.is-active {
    background: var( --color-base );
}
.portal-slider-counter {
    flex-shrink: 0;
    font-size: var( --font-size-x-small, 0.78em );
    color: var( --color-base--subtle );
}
.portal-slider-source {
    white-space: nowrap;
    font-size: var( --font-size-x-small, 0.78em );
    color: var( --color-link );
    text-decoration: none;
}
/* ─────────────────────────────────────────────────────────────
  NEWEST ARTICLE
  ───────────────────────────────────────────────────────────── */
.portal-newest-inner {
    font-size: var( --font-size-small, 0.875em );
    min-height: 52px; /* prevents layout jump before JS populates */
}
.portal-newest-title {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 2px;
}
.portal-newest-meta {
    font-size: var( --font-size-x-small, 0.8em );
    color: var( --color-base--subtle );
    margin-top: 2px;
}
/* ─────────────────────────────────────────────────────────────
  COLONIAL CALENDAR
  ───────────────────────────────────────────────────────────── */
.portal-calendar-date {
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.2;
    color: var( --color-base );
}
.portal-calendar-sub {
    font-size: var( --font-size-x-small, 0.75em );
    color: var( --color-base--subtle );
    margin-bottom: 10px;
}
.portal-calendar-events {
    list-style: none;
    padding: 0;
    margin: 0;
}
.portal-calendar-event {
    font-size: var( --font-size-small, 0.82em );
    color: var( --color-base );
    padding: 6px 0;
    border-bottom: 1px solid var( --border-color-base );
    line-height: 1.5;
}
}


.portal-calendar-event:last-child {
.portal-hero-btn:hover {
     border-bottom: none;
     background: var(--background-color-quiet--active);
    color: var(--color-primary--hover);
}
}


.portal-calendar-year {
    font-weight: 600;
    color: var( --color-base--subtle );
    margin-right: 2px;
}


.portal-calendar-none {
    font-size: var( --font-size-small, 0.82em );
    color: var( --color-base--subtle );
}


/* ─────────────────────────────────────────────────────────────
@media screen and (max-width: 600px) {
  RELATED PORTALS GRID
    .portal-hero { height: 280px; }
  ───────────────────────────────────────────────────────────── */
     .portal-slide-title { font-size: 1rem; }
 
     .portal-slide-desc { font-size: 0.75rem; }
.portal-related-grid {
    display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 6px;
}
}


.portal-related-tile {
/* ═══════════════════════════════════════════════════════════
    background: var( --color-surface-2 );
    border: 1px solid var( --border-color-base );
    border-radius: var( --border-radius-medium, 6px );
    padding: 7px 10px;
    font-size: var( --font-size-small, 0.8em );
    transition: border-color 0.15s;
}
 
.portal-related-tile:hover {
    border-color: var( --border-color-interactive );
}
 
.portal-related-title {
    font-weight: 600;
}
 
.portal-related-title a {
    color: var( --color-base );
    text-decoration: none;
}
 
.portal-related-sub {
    font-size: var( --font-size-x-small, 0.85em );
    color: var( --color-base--subtle );
    margin-top: 1px;
}
 
/* ─────────────────────────────────────────────────────────────
  DID YOU KNOW
  ───────────────────────────────────────────────────────────── */
 
.portal-dyk-body li,
.portal-dyk-body p {
    font-size: var( --font-size-small, 0.875em );
    line-height: 1.6;
    padding: 6px 0;
    border-bottom: 1px solid var( --border-color-base );
    margin: 0;
}
 
.portal-dyk-body li:last-child,
.portal-dyk-body p:last-child {
    border-bottom: none;
}
 
/* ─────────────────────────────────────────────────────────────
  ORPHANED ARTICLES CHIPS
  ───────────────────────────────────────────────────────────── */
 
.portal-orphan-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
 
.portal-orphan-chip {
    font-size: var( --font-size-x-small, 0.75em );
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #c8a000; /* amber — no Citizen variable for warning */
    color: #7a5c00;
    background: #fdf7e3;
    white-space: nowrap;
}
 
/* Dark mode override for orphan chips (Citizen sets data-theme on <html>) */
html[ data-skin-citizen-theme="dark" ] .portal-orphan-chip,
@media ( prefers-color-scheme: dark ) {
    .portal-orphan-chip {
        background: #2a2200;
        border-color: #6a4e00;
        color: #d4a800;
    }
}
 
/* ─────────────────────────────────────────────────────────────
  CATEGORIES CLOUD
  ───────────────────────────────────────────────────────────── */
 
.portal-cat-section {
    margin-bottom: 8px;
}
 
.portal-cat-section:last-of-type {
    margin-bottom: 0;
}
 
.portal-cat-label {
    font-size: var( --font-size-x-small, 0.72em );
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var( --color-base--subtle );
    margin-bottom: 4px;
}
 
.portal-cat-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
 
.portal-cat-tag {
    font-size: var( --font-size-x-small, 0.75em );
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var( --border-color-base );
    color: var( --color-base--subtle );
    background: var( --color-surface-2 );
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 0.15s;
}
 
.portal-cat-tag:hover {
    border-color: var( --border-color-interactive );
    color: var( --color-base );
}
 
/* ─────────────────────────────────────────────────────────────
  SUBPORTALS TWO-COLUMN LINK LIST
  ───────────────────────────────────────────────────────────── */
 
.portal-subportals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
 
@media screen and ( max-width: 500px ) {
    .portal-subportals {
        grid-template-columns: 1fr;
    }
}
 
.portal-subportals-heading {
    font-size: var( --font-size-small, 0.875em );
    font-weight: 600;
    color: var( --color-base );
    margin-bottom: 6px;
}
 
.portal-subportals-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
 
.portal-subportals-list li {
    font-size: var( --font-size-small, 0.875em );
    line-height: 1.4;
    padding-left: 10px;
    position: relative;
}
 
.portal-subportals-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var( --color-base--subtle );
}
 
/* ─────────────────────────────────────────────────────────────
   CHARACTER GRID
   CHARACTER GRID
   ───────────────────────────────────────────────────────────── */
   ═══════════════════════════════════════════════════════════ */


.portal-char-grid {
.portal-char-grid {
     display: grid;
     display: grid;
     grid-template-columns: repeat( auto-fill, minmax( 90px, 1fr ) );
     grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
     gap: 8px;
     gap: 6px;
     align-items: start;
     align-items: start;
}
}


.portal-char-card {
.portal-char-card { }
    /* MW wraps [[Link|...]] in <a>, so we style the card container */
}


.portal-char-card a {
.portal-char-card a {
     display: block;
     display: block;
     text-decoration: none !important;
     text-decoration: none !important;
     border-radius: var( --border-radius-medium, 6px );
     background: var(--background3);
    clip-path: polygon(0 6px,6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px));
     overflow: hidden;
     overflow: hidden;
    border: 1px solid var( --border-color-base );
     transition: background 0.15s, transform 0.15s;
     transition: border-color 0.15s, transform 0.15s;
    background: var( --color-surface-2 );
}
}


.portal-char-card a:hover {
.portal-char-card a:hover {
     border-color: var( --border-color-interactive );
     background: var(--color-surface-2--hover);
     transform: translateY( -2px );
     transform: translateY(-2px);
}
}


/* frameless File: MW wraps in <span typeof="mw:File/Frameless"><a class="mw-file-description"><img></a></span>
  Target all layers to enforce fixed equal height */
.portal-char-card span[typeof~="mw:File/Frameless"] {
.portal-char-card span[typeof~="mw:File/Frameless"] {
     display: block;
     display: block;
Line 1,507: Line 713:
     height: 130px;
     height: 130px;
     overflow: hidden;
     overflow: hidden;
     background: var( --color-surface-2 );
     background: var(--background3);
     line-height: 0;
     line-height: 0;
}
}
Line 1,522: Line 728:


.portal-char-name {
.portal-char-name {
     font-size: var( --font-size-x-small, 0.72em );
     font-size: 0.7rem;
     color: var( --color-base );
     color: var(--color-base);
     text-align: center;
     text-align: center;
     padding: 4px 4px 5px;
     padding: 4px 4px 5px;
Line 1,530: Line 736:
     overflow: hidden;
     overflow: hidden;
     text-overflow: ellipsis;
     text-overflow: ellipsis;
    background: var(--background2);
}
}


/* ─────────────────────────────────────────────────────────────
/* ═══════════════════════════════════════════════════════════
   FEATURED EPISODE SLIDER NAV (in widget head)
   FEATURED EPISODE NAV
   ───────────────────────────────────────────────────────────── */
   ═══════════════════════════════════════════════════════════ */


.portal-featured-nav {
.portal-featured-nav {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     gap: 5px;
     gap: 6px;
}
}


.portal-featured-prev,
.portal-featured-prev,
.portal-featured-next {
.portal-featured-next {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--background3);
    border: 1px solid var(--border-color-base--lighter);
    color: var(--color-primary);
    font-size: 0.875rem;
     cursor: pointer;
     cursor: pointer;
     font-size: 1em;
     display: inline-flex;
     color: var( --color-base );
     align-items: center;
     padding: 0 3px;
     justify-content: center;
     user-select: none;
     user-select: none;
    opacity: 0.7;
     transition: background 0.15s;
     transition: opacity 0.15s;
}
}


.portal-featured-prev:hover,
.portal-featured-prev:hover,
.portal-featured-next:hover {
.portal-featured-next:hover {
     opacity: 1;
     background: var(--background-color-quiet--hover);
}
}


Line 1,565: Line 778:


.portal-featured-dot {
.portal-featured-dot {
     width: 6px;
     width: 5px;
     height: 6px;
     height: 5px;
     border-radius: 50%;
     border-radius: 50%;
     background: var( --border-color-base );
     background: var(--background-color-icon);
     cursor: pointer;
     cursor: pointer;
     transition: background 0.2s, transform 0.2s;
     transition: background 0.2s;
}
 
.portal-featured-dot.is-active {
    background: var( --color-progressive, #3366cc );
    transform: scale( 1.3 );
}
 
/* ─────────────────────────────────────────────────────────────
  BROWSE BY TOPIC BAR
  ───────────────────────────────────────────────────────────── */
 
.portal-browse-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 0;
}
 
.portal-browse-topic {
    display: inline-block;
}
 
.portal-browse-topic a {
    display: inline-block;
    font-size: var( --font-size-small, 0.8125rem );
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var( --border-color-base );
    color: var( --color-base ) !important;
    background: var( --color-surface-2 );
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
}


.portal-browse-topic a:hover {
.portal-featured-dot.is-active { background: var(--color-primary); }
    background: var( --color-surface-3 );
    border-color: var( --border-color-interactive );
    color: var( --color-emphasized ) !important;
}
 
/* ─────────────────────────────────────────────────────────────
  PODCAST TEASER
  ───────────────────────────────────────────────────────────── */
 
.portal-podcast-teaser {
    font-size: var( --font-size-small, 0.8125rem );
    color: var( --color-base--subtle );
    line-height: 1.5;
}
 
.portal-podcast-teaser a {
    display: inline-block;
    margin-top: 6px;
    font-weight: 500;
}

Latest revision as of 13:56, 16 April 2026

/*
 * MediaWiki:Portal.css — BattlestarWiki
 * Loaded via MediaWiki:Common.js
 * Design tokens from MediaWiki:Citizen.css (dark theme)
 */

/* ═══════════════════════════════════════════════════════════
   PAGE SHELL
   ═══════════════════════════════════════════════════════════ */

.portal-page {
    max-width: 1100px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   Structure: .portal-header > .portal-header-top + .portal-stats-bar
   ═══════════════════════════════════════════════════════════ */

.portal-header {
    background: var(--background2);
    border: 1px solid var(--border-color-base);
    border-radius: 0;
    border-top: 3px solid var(--border-color-base);
    padding: 12px 16px 0;
    margin-bottom: 12px;
}

.portal-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
}

.portal-title {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-badge {
    font-size: 0.65em;
    font-weight: 500;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid var(--border-color-base--lighter);
    color: var(--color-base--subtle);
    background: var(--background3);
    vertical-align: middle;
    font-family: var(--font-family-base);
}

.portal-breadcrumb {
    font-size: 0.75em;
    color: var(--color-base--subtle);
    margin-top: 2px;
}

.portal-header-links {
    font-size: 0.75em;
    color: var(--color-link);
    white-space: nowrap;
    padding-top: 2px;
}

.portal-header-links a {
    color: var(--color-link);
    text-decoration: none;
}

.portal-header-links a:hover {
    color: var(--color-link--hover);
}

/* Stats bar */
.portal-stats-bar {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border-color-base);
    margin: 0 -16px;
    padding: 0;
}

.portal-stat {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-right: 1px solid var(--border-color-base);
}

.portal-stat:last-child {
    border-right: none;
}

.portal-stat-num {
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
    display: block;
}

.portal-stat-label {
    font-size: 0.6rem;
    color: var(--color-base--subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-top: 1px;
}

/* ═══════════════════════════════════════════════════════════
   SERIES NAV PILLS
   ═══════════════════════════════════════════════════════════ */

.portal-series-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
    align-items: center;
}

.portal-series-pill {
    display: inline-block;
    font-size: 0.78em;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color-base--lighter);
    color: var(--color-base--subtle);
    background: transparent;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.portal-series-pill:hover {
    border-color: var(--border-color-base);
    background: var(--background-color-quiet--hover);
    color: var(--color-base);
}

.portal-series-pill--active {
    border-color: var(--border-color-base);
    background: var(--background-color-quiet--hover);
    color: var(--color-primary);
    font-weight: 600;
    cursor: default;
}

.portal-series-pill--jump {
    border-style: dashed;
}

.portal-series-pill-sep {
    flex: 0 0 8px;
}

.portal-series-nav a {
    color: inherit;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   MAIN GRID
   ═══════════════════════════════════════════════════════════ */

.portal-main-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 12px;
    align-items: start;
}

@media screen and (max-width: 800px) {
    .portal-main-grid { grid-template-columns: 1fr; }
}

.portal-main-col,
.portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════
   WIDGET CARD  — matches bsw-card exactly
   ═══════════════════════════════════════════════════════════ */

.portal-widget {
    background: var(--background2);
    overflow: hidden;
}

/* Head — matches bsw-card-hd */
.portal-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 12px;
    background: var(--color-surface-2--active);
    border-bottom: 1px solid var(--border-color-base);
    gap: 8px;
    flex-wrap: wrap;
}

.portal-widget-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-widget-edit {
    font-size: 0.6875rem;
    color: var(--color-link);
    white-space: nowrap;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.portal-widget-edit a,
.portal-widget-head a {
    color: var(--color-link);
    text-decoration: none;
}

.portal-widget-edit a:hover,
.portal-widget-head a:hover {
    color: var(--color-link--hover);
}

.portal-widget-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 12px;
    border-top: 1px solid var(--border-color-base);
    font-size: 0.6875rem;
    color: var(--color-base--subtle);
    gap: 8px;
    flex-wrap: wrap;
    background: var(--background3);
}

.portal-widget-foot a {
    color: var(--color-link);
    text-decoration: none;
}

.portal-widget-foot a:hover {
    color: var(--color-link--hover);
}

.portal-widget-body {
    padding: 10px 12px;
}

/* ═══════════════════════════════════════════════════════════
   NEWEST ARTICLE
   ═══════════════════════════════════════════════════════════ */

.portal-newest-inner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Uses bsw-fa-* classes from Citizen.css — no extra styles needed */

/* ═══════════════════════════════════════════════════════════
   COLONIAL CALENDAR
   ═══════════════════════════════════════════════════════════ */

.portal-calendar-date {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.portal-calendar-sub {
    font-size: 0.75em;
    color: var(--color-base--subtle);
    margin-bottom: 8px;
}

.portal-calendar-events {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-calendar-event {
    font-size: 0.8125em;
    color: var(--color-base);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color-base);
    line-height: 1.5;
}

.portal-calendar-event:last-child { border-bottom: none; }

.portal-calendar-year {
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 3px;
}

.portal-calendar-none {
    font-size: 0.8125em;
    color: var(--color-base--subtle);
}

/* ═══════════════════════════════════════════════════════════
   RELATED PORTALS
   ═══════════════════════════════════════════════════════════ */

.portal-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.portal-related-tile {
    background: var(--background3);
    clip-path: polygon(0 6px,6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px));
    padding: 7px 9px;
    font-size: 0.8em;
    transition: background 0.15s;
}

.portal-related-title {
    font-weight: 600;
    line-height: 1.3;
}

.portal-related-sub {
    font-size: 0.85em;
    color: var(--color-base--subtle);
    margin-top: 2px;
    line-height: 1.3;
}

.portal-related-tile:hover {
    background: var(--color-surface-2--hover);
}

.portal-related-title a {
    color: var(--color-link);
    text-decoration: none;
}

.portal-related-title a:hover { color: var(--color-link--hover); }

/* ═══════════════════════════════════════════════════════════
   DYK
   ═══════════════════════════════════════════════════════════ */

.portal-dyk-body li,
.portal-dyk-body p {
    font-size: 0.8125em;
    line-height: 1.65;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color-base);
    margin: 0;
    color: var(--color-base--subtle);
}

.portal-dyk-body li:last-child,
.portal-dyk-body p:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   ORPHANED ARTICLES
   ═══════════════════════════════════════════════════════════ */

.portal-orphan-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.portal-orphan-chip {
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-color-base--lighter);
    color: var(--color-base--subtle);
    background: var(--background3);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   BROWSE BY TOPIC
   ═══════════════════════════════════════════════════════════ */

.portal-browse-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.portal-browse-topic { display: inline-block; }

.portal-browse-topic a {
    display: inline-block;
    font-size: 0.8125rem;
    padding: 3px 11px;
    border-radius: 999px;
    border: 1px solid var(--border-color-base--lighter);
    color: var(--color-base) !important;
    background: var(--background3);
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.portal-browse-topic a:hover {
    background: var(--background-color-quiet--hover);
    border-color: var(--border-color-base);
    color: var(--color-primary) !important;
}

/* ═══════════════════════════════════════════════════════════
   PODCAST TEASER
   ═══════════════════════════════════════════════════════════ */

.portal-podcast-teaser {
    font-size: 0.8125rem;
    color: var(--color-base--subtle);
    line-height: 1.5;
}

.portal-podcast-teaser a {
    color: var(--color-link);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   SUBPORTALS
   ═══════════════════════════════════════════════════════════ */

.portal-subportals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.portal-subportals-heading {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-color-base);
    padding-bottom: 3px;
}

.portal-subportals-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.8125em;
}

.portal-subportals-list li {
    padding-left: 10px;
    position: relative;
}

.portal-subportals-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.portal-subportals-list a {
    color: var(--color-link);
    text-decoration: none;
}

.portal-subportals-list a:hover { color: var(--color-link--hover); }

/* ═══════════════════════════════════════════════════════════
   HERO SLIDER  — mirrors bsw-hero / bsw-slide exactly
   ═══════════════════════════════════════════════════════════ */

.portal-hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: var(--background3);
    margin-bottom: 12px;
}

.portal-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: flex-end;
}

.portal-slide.portal-active { opacity: 1; }

.portal-slide-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.portal-slide-bg-blur {
    position: absolute;
    inset: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    object-fit: cover;
    object-position: center;
    filter: blur(24px) brightness(0.45) saturate(1.4);
    display: block;
    clip-path: none !important;
    transform: scale(1.05);
}

.portal-slide-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    clip-path: none !important;
}

.portal-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background3) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
    z-index: 1;
}

.portal-slide-content {
    position: relative;
    z-index: 2;
    padding: 1rem 1.25rem;
    width: 100%;
}

.portal-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--background-color-quiet--hover);
    border: 1px solid var(--border-color-base--lighter);
    border-radius: 12px;
    padding: 2px 9px;
    margin-bottom: 0.375rem;
}

.portal-slide-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.portal-slide-badge span {
    font-size: 0.6875rem;
    color: var(--color-primary--hover);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-slide-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-base);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.portal-slide-title a {
    color: var(--color-base);
    text-decoration: none;
}

.portal-slide-title a:hover { color: var(--color-primary--hover); }

.portal-slide-desc {
    font-size: 0.8125rem;
    color: var(--color-base--subtle);
    max-width: 560px;
    line-height: 1.55;
}

.portal-hero-dots {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.portal-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--background-color-icon);
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}

.portal-hero-dot.is-active { background: var(--color-primary); }

.portal-hero-nav {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.portal-hero-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--background-color-quiet--hover);
    border: 1px solid var(--border-color-base--lighter);
    color: var(--color-primary);
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
    user-select: none;
}

.portal-hero-btn:hover {
    background: var(--background-color-quiet--active);
    color: var(--color-primary--hover);
}



@media screen and (max-width: 600px) {
    .portal-hero { height: 280px; }
    .portal-slide-title { font-size: 1rem; }
    .portal-slide-desc { font-size: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════
   CHARACTER GRID
   ═══════════════════════════════════════════════════════════ */

.portal-char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 6px;
    align-items: start;
}

.portal-char-card { }

.portal-char-card a {
    display: block;
    text-decoration: none !important;
    background: var(--background3);
    clip-path: polygon(0 6px,6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px));
    overflow: hidden;
    transition: background 0.15s, transform 0.15s;
}

.portal-char-card a:hover {
    background: var(--color-surface-2--hover);
    transform: translateY(-2px);
}

.portal-char-card span[typeof~="mw:File/Frameless"] {
    display: block;
    width: 100%;
    height: 130px;
    overflow: hidden;
    line-height: 0;
}

.portal-char-card .mw-file-description {
    display: block;
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: var(--background3);
    line-height: 0;
}

.portal-char-card .mw-file-element {
    width: 100% !important;
    height: 130px !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
}

.portal-char-name {
    font-size: 0.7rem;
    color: var(--color-base);
    text-align: center;
    padding: 4px 4px 5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--background2);
}

/* ═══════════════════════════════════════════════════════════
   FEATURED EPISODE NAV
   ═══════════════════════════════════════════════════════════ */

.portal-featured-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-featured-prev,
.portal-featured-next {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--background3);
    border: 1px solid var(--border-color-base--lighter);
    color: var(--color-primary);
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background 0.15s;
}

.portal-featured-prev:hover,
.portal-featured-next:hover {
    background: var(--background-color-quiet--hover);
}

.portal-featured-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.portal-featured-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--background-color-icon);
    cursor: pointer;
    transition: background 0.2s;
}

.portal-featured-dot.is-active { background: var(--color-primary); }