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

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Tag: Reverted
Joe Beaudoin Jr. (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 161: Line 161:
}
}


/**
/* ============================================================
* BattlestarWiki — Responsive Main Page styles
  Portal layout — BattlestarWiki
* Append to MediaWiki:Citizen.css
  Base classes shared across all portal pages.
*
  New components (hero, char grid, etc.) are in MediaWiki:Portal.css
* All colors use variables defined in Citizen.css / skin theme.
  ============================================================ */
* Adapts automatically to dark / light / black Citizen themes.
* Only hardcoded colors are per-series portal stripe accents.
*
* Breakpoints:
*  Desktop  ≥ 1080px
*  Tablet  640px – 1079px
*  Mobile  < 640px
*  XSmall  < 380px
*/


/* ── Reset ───────────────────────────────────────────────────────── */
/* ── Page shell ─────────────────────────────────────────── */
.bsw-main-page *,
.portal-page {
.bsw-main-page *::before,
    max-width: 1100px;
.bsw-main-page *::after {
     margin: 0 auto;
     box-sizing: border-box;
}
}


/* ── Wrapper ─────────────────────────────────────────────────────── */
/* ── Header ─────────────────────────────────────────────── */
.bsw-main-page {
.portal-header {
     /* Pull edge-to-edge inside Citizen's content padding */
    background: var( --color-surface-2 );
     margin: -1rem;
     border: 1px solid var( --border-color-base );
     padding: 0;
     border-radius: var( --border-radius-large, 8px );
     background: var(--background3);
     padding: 14px 18px;
     color: var(--color-base);
     margin-bottom: 12px;
     font-size: 0.875rem;
}
     line-height: 1.5;
.portal-header-top {
    display: flex;
     align-items: flex-start;
    justify-content: space-between;
     flex-wrap: wrap;
    gap: 8px;
     margin-bottom: 10px;
}
}
 
.portal-title {
/* ── Shared section header bar ───────────────────────────────────── */
     font-size: 1.3em;
.bsw-card-hd,
.bsw-votd-hd,
.bsw-portals-label {
    background: var(--color-surface-2--active);
    color: var(--color-primary);
    border-bottom: 1px solid var(--border-color-base);
     font-size: 0.6875rem;
     font-weight: 600;
     font-weight: 600;
     text-transform: uppercase;
     line-height: 1.3;
     letter-spacing: 0.08em;
     color: var( --color-base );
}
 
.bsw-card-hd,
.bsw-votd-hd {
    padding: 0.3125rem 0.75rem;
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
    justify-content: space-between;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 4px;
     gap: 8px;
}
}
 
.portal-badge {
.bsw-card-hd a,
     font-size: var( --font-size-x-small, 0.75em );
.bsw-votd-hd a {
     font-weight: 500;
     font-size: 0.6875rem;
     padding: 2px 9px;
     font-weight: 400;
     border-radius: 999px;
     color: var(--color-link);
     border: 1px solid var( --border-color-base );
     text-transform: none;
     color: var( --color-base--subtle );
     letter-spacing: 0;
     background: var( --color-surface-1 );
    text-decoration: none;
     vertical-align: middle;
}
 
.bsw-card-hd a:hover,
.bsw-votd-hd a:hover {
     color: var(--color-link--hover);
}
 
/* ── Generic card ────────────────────────────────────────────────── */
.bsw-card {
     background: var(--background2);
    /* outline is not clipped by clip-path, border is — so use outline for the stroke */
    outline: 1px solid var(--border-color-base);
     clip-path: polygon(
        0 10px, 10px 0,
        calc(100% - 8px) 0, 100% 10px,
        100% calc(100% - 10px), calc(100% - 10px) 100%,
        10px 100%, 0 calc(100% - 10px)
    );
}
}
 
.portal-breadcrumb {
.bsw-card-body {
     font-size: var( --font-size-small, 0.8125em );
     padding: 0.625rem 0.75rem;
    color: var( --color-base--subtle );
    margin-top: 3px;
}
}
 
.portal-header-links {
/* ── Hero slideshow ──────────────────────────────────────────────── */
     font-size: var( --font-size-small, 0.8125em );
.bsw-hero {
     color: var( --color-base--subtle );
     position: relative;
    white-space: nowrap;
    height: 280px;
    padding-top: 4px;
    overflow: hidden;
    background: var(--background3);
     border-bottom: 1px solid var(--border-color-base);
}
}


.bsw-slide {
/* ── Stats bar ───────────────────────────────────────────── */
    position: absolute;
.portal-stats-bar {
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
     display: flex;
     display: flex;
     align-items: flex-end;
     gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid var( --border-color-base );
    padding-top: 10px;
}
}
 
.portal-stat {
.bsw-slide.bsw-active { opacity: 1; }
    text-align: center;
 
     min-width: 50px;
.bsw-slide-overlay {
    position: absolute;
     inset: 0;
    /* Fade up from background3 so slide content is always legible */
    background: linear-gradient(
        to top,
        var(--background3) 0%,
        rgba(0,0,0,0.35) 55%,
        transparent 100%
    );
}
}
 
.portal-stat-num {
/* Background image injected by JS */
     font-size: 1.25em;
.bsw-slide-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
 
.bsw-slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    /* Override wiki-wide image clip-path for hero backgrounds */
    clip-path: none !important;
}
 
.bsw-slide-content {
    position: relative;
    z-index: 2;
    padding: 1rem 1.25rem;
    width: 100%;
}
 
.bsw-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;
}
 
.bsw-slide-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}
 
.bsw-slide-badge span {
    font-size: 0.6875rem;
    color: var(--color-primary--hover);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
 
.bsw-slide-title {
     font-size: 1.375rem;
     font-weight: 600;
     font-weight: 600;
    color: var(--color-base);
    margin-bottom: 0.25rem;
     line-height: 1.2;
     line-height: 1.2;
    color: var( --color-base );
}
}
 
.portal-stat-label {
.bsw-slide-title a {
    font-size: var( --font-size-x-small, 0.72em );
     color: var(--color-base);
     color: var( --color-base--subtle );
     text-decoration: none;
     margin-top: 1px;
}
}


.bsw-slide-title a:hover {
/* ── Series nav pills ────────────────────────────────────── */
    color: var(--color-primary--hover);
.portal-series-nav {
}
 
.bsw-slide-desc {
    font-size: 0.8125rem;
    color: var(--color-base--subtle);
    max-width: 560px;
    line-height: 1.55;
}
 
 
 
/* Hero nav dots */
.bsw-hero-dots {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
     display: flex;
     display: flex;
    flex-wrap: wrap;
     gap: 5px;
     gap: 5px;
     z-index: 10;
     margin-bottom: 12px;
    align-items: center;
}
}
 
.portal-series-pill {
.bsw-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--background-color-icon);
    cursor: pointer;
    transition: background 0.2s;
     display: inline-block;
     display: inline-block;
     vertical-align: middle;
     font-size: var( --font-size-small, 0.8125em );
}
     padding: 4px 12px;
 
     border-radius: 999px;
.bsw-hero-dot.bsw-active {
     border: 1px solid var( --border-color-base );
    background: var(--color-primary);
     color: var( --color-base--subtle );
}
     background: var( --color-surface-0 );
 
.bsw-hero-nav {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 5px;
    z-index: 10;
}
 
.bsw-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.8125rem;
     cursor: pointer;
     cursor: pointer;
    display: inline-flex;
     text-decoration: none !important;
    align-items: center;
     white-space: nowrap;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
    user-select: none;
}
 
.bsw-hero-btn:hover {
    background: var(--background-color-quiet--active);
    color: var(--color-primary--hover);
}
 
/* ── Portals bar ─────────────────────────────────────────────────── */
.bsw-portals {
    background: var(--background2);
    border-bottom: 1px solid var(--border-color-base);
    padding: 0.625rem 0.875rem;
}
 
.bsw-portals-label {
    padding: 0.25rem 0;
    margin-bottom: 0.5rem;
     text-align: center;
    border-bottom: none;
     background: transparent;
}
 
.bsw-portals-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
 
.bsw-portal {
    background: var(--background3);
    outline: 1px solid var(--border-color-base);
    padding: 0.5rem 0.375rem;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
     transition: background 0.15s, border-color 0.15s;
     transition: background 0.15s, border-color 0.15s;
    display: block;
    clip-path: polygon(
        0 8px, 8px 0,
        calc(100% - 8px) 0, 100% 8px,
        100% calc(100% - 8px), calc(100% - 8px) 100%,
        8px 100%, 0 calc(100% - 8px)
    );
}
}
 
.portal-series-pill:hover {
.bsw-portal:hover {
    border-color: var( --border-color-interactive );
     background: var(--color-surface-2--hover);
     background: var( --color-surface-2 );
     border-color: var(--border-color-base--darker);
     color: var( --color-base );
    text-decoration: none;
}
}
 
.portal-series-pill--active {
.bsw-portal-stripe {
     border-color: var( --border-color-interactive );
     height: 2px;
     background: var( --color-surface-2 );
     position: absolute;
     color: var( --color-base );
    top: 0;
    left: 0;
    right: 0;
}
 
.bsw-portal-icon {
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.25rem;
     line-height: 1;
}
 
.bsw-portal-name {
    font-size: 0.6875rem;
     font-weight: 600;
     font-weight: 600;
     color: var(--color-base);
     cursor: default;
    line-height: 1.25;
    display: block;
}
}
 
.portal-series-pill--jump {
.bsw-portal-sub {
     border-style: dashed;
    font-size: 0.625rem;
    color: var(--color-base--subtle);
    display: block;
     margin-top: 1px;
}
}
 
.portal-series-pill-sep {
/* ── Video of the Day band ───────────────────────────────────────── */
     flex: 0 0 8px;
.bsw-votd-band {
     background: var(--background2);
    border-bottom: 1px solid var(--border-color-base);
}
}
 
.portal-series-nav a {
.bsw-votd-hd-inner {
     color: inherit;
     display: flex;
     text-decoration: none;
    align-items: center;
    gap: 6px;
}
 
.bsw-votd-hd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
     flex-shrink: 0;
}
}


.bsw-votd-inner {
/* ── Main two-column grid ────────────────────────────────── */
.portal-main-grid {
     display: grid;
     display: grid;
     grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
     grid-template-columns: 1fr 270px;
}
     gap: 12px;
 
     align-items: start;
.bsw-votd-player {
     background: var(--background3);
     position: relative;
    border-right: 1px solid var(--border-color-base);
}
}
 
@media screen and ( max-width: 800px ) {
.bsw-votd-poster {
     .portal-main-grid {
    width: 100%;
        grid-template-columns: 1fr;
    aspect-ratio: 16 / 9;
     }
    position: relative;
    overflow: hidden;
     cursor: pointer;
    display: block;
    background: var(--background3);
}
 
.bsw-votd-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
     display: block;
}
}
 
.portal-main-col,
.bsw-votd-poster-overlay {
.portal-sidebar {
    position: absolute;
    inset: 0;
    background: var(--background-color-quiet--hover);
     display: flex;
     display: flex;
     align-items: center;
     flex-direction: column;
     justify-content: center;
     gap: 12px;
    transition: background 0.15s;
}
}


.bsw-votd-poster:hover .bsw-votd-poster-overlay {
/* ── Widget card ─────────────────────────────────────────── */
     background: var(--background-color-quiet--active);
.portal-widget {
    background: var( --color-surface-1 );
     border: 1px solid var( --border-color-base );
    border-radius: var( --border-radius-large, 8px );
    overflow: hidden;
}
}
 
.portal-widget-head {
.bsw-votd-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--background-color-primary--hover);
    border: 2px solid var(--border-color-base--lighter);
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: space-between;
     transition: background 0.15s, transform 0.1s;
     padding: 8px 14px;
}
    border-bottom: 1px solid var( --border-color-base );
 
     background: var( --color-surface-2 );
.bsw-votd-poster:hover .bsw-votd-play {
     gap: 8px;
     background: var(--background-color-primary--active);
    flex-wrap: wrap;
     transform: scale(1.06);
}
}
 
.portal-widget-title {
.bsw-votd-play-arrow {
     font-size: var( --font-size-small, 0.875em );
     width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 16px solid var(--color-base);
    margin-left: 4px;
}
 
.bsw-votd-info {
    padding: 0.75rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    background: var(--background2);
}
 
.bsw-votd-title {
    font-size: 0.9375rem;
     font-weight: 600;
     font-weight: 600;
     color: var(--color-base);
     color: var( --color-base );
    line-height: 1.3;
}
}
 
.portal-widget-meta {
.bsw-votd-meta {
     font-size: var( --font-size-x-small, 0.75em );
     font-size: 0.6875rem;
     color: var( --color-base--subtle );
    color: var(--color-base--subtle);
}
 
.bsw-votd-desc {
    font-size: 0.8125rem;
     color: var(--color-base--subtle);
    line-height: 1.65;
     flex: 1;
     flex: 1;
    text-align: right;
}
}
 
.portal-widget-edit {
.bsw-votd-desc a {
    font-size: var( --font-size-x-small, 0.75em );
     color: var(--color-link);
     color: var( --color-link );
    white-space: nowrap;
}
}
 
.portal-widget-foot {
.bsw-votd-desc a:hover {
    color: var(--color-link--hover);
}
 
.bsw-votd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
 
.bsw-votd-tag {
    font-size: 0.625rem;
    padding: 1px 7px;
    border-radius: 10px;
    border: 1px solid var(--border-color-base--lighter);
    color: var(--color-base--subtle);
    background: var(--background3);
}
 
.bsw-votd-actions {
     display: flex;
     display: flex;
    justify-content: space-between;
     align-items: center;
     align-items: center;
     gap: 0.625rem;
     padding: 6px 14px;
    border-top: 1px solid var( --border-color-base );
    font-size: var( --font-size-x-small, 0.75em );
    color: var( --color-base--subtle );
    gap: 8px;
     flex-wrap: wrap;
     flex-wrap: wrap;
    padding-top: 0.375rem;
    border-top: 1px solid var(--border-color-base);
}
}
 
.portal-widget-body {
.bsw-votd-watch {
     padding: 12px 14px;
    display: inline-block;
     padding: 0.3125rem 0.875rem;
    background: var(--background-color-primary--hover);
    color: var(--color-base);    outline: 1px solid var(--border-color-base);
    clip-path: polygon(
        0 5px, 5px 0,
        calc(100% - 5px) 0, 100% 5px,
        100% calc(100% - 5px), calc(100% - 5px) 100%,
        5px 100%, 0 calc(100% - 5px)
    );
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}
}


.bsw-votd-watch:hover {
/* ── Newest article ─────────────────────────────────────── */
     background: var(--background-color-primary--active);
.portal-newest-title {
     color: var(--color-base);
     font-size: 1.05em;
     text-decoration: none;
     font-weight: 600;
     margin-bottom: 4px;
}
}
 
.portal-newest-meta {
.bsw-votd-archive {
     font-size: var( --font-size-x-small, 0.8em );
     font-size: 0.75rem;
     color: var( --color-base--subtle );
     color: var(--color-link);
     margin-top: 4px;
     text-decoration: none;
}
}


.bsw-votd-archive:hover {
/* ── Colonial Calendar ───────────────────────────────────── */
     color: var(--color-link--hover);
.portal-calendar-date {
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.2;
     color: var( --color-base );
}
}
 
.portal-calendar-sub {
.bsw-votd-stats {
     font-size: var( --font-size-x-small, 0.75em );
     font-size: 0.6875rem;
     color: var( --color-base--subtle );
     color: var(--color-base--subtle);
    margin-bottom: 10px;
}
}
 
.portal-calendar-events {
/* ── Loading / error states ──────────────────────────────────────── */
     list-style: none;
.bsw-loading,
     padding: 0;
.bsw-error {
     margin: 0;
     padding: 1.5rem 1rem;
    text-align: center;
     color: var(--color-base--subtle);
    font-size: 0.8125rem;
}
 
.bsw-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color-base--lighter);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: bsw-spin 0.8s linear infinite;
     margin: 0 auto 0.75rem;
}
 
@keyframes bsw-spin { to { transform: rotate(360deg); } }
 
.bsw-error { color: var(--red, #d44); }
 
/* ── Page body grid ──────────────────────────────────────────────── */
.bsw-body {
    padding: 0.75rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    background: var(--background3);
}
 
.bsw-col-left,
.bsw-col-right {
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
    gap: 0.75rem;
}
}
 
.portal-calendar-event {
/* ── Featured article ────────────────────────────────────────────── */
     font-size: var( --font-size-small, 0.82em );
#bsw-featured-inner {
     color: var( --color-base );
     display: flex;
    padding: 6px 0;
     gap: 0.75rem;
     border-bottom: 1px solid var( --border-color-base );
     align-items: flex-start;
    line-height: 1.5;
}
}
 
.portal-calendar-event:last-child {
.bsw-fa-thumb {
     border-bottom: none;
    width: 80px;
    height: 80px;
    object-fit: cover;
     flex-shrink: 0;    outline: 1px solid var(--border-color-base);
    background: var(--background3);
    display: block;
    clip-path: polygon(
        0 8px, 8px 0,
        calc(100% - 8px) 0, 100% 8px,
        100% calc(100% - 8px), calc(100% - 8px) 100%,
        8px 100%, 0 calc(100% - 8px)
    );
}
}
 
.portal-calendar-year {
.bsw-fa-thumb-ph {
     font-weight: 600;
     width: 80px;
     color: var( --color-base--subtle );
     height: 80px;
     margin-right: 2px;
    flex-shrink: 0;    outline: 1px solid var(--border-color-base);
    background: var(--background3);
     display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    clip-path: polygon(
        0 8px, 8px 0,
        calc(100% - 8px) 0, 100% 8px,
        100% calc(100% - 8px), calc(100% - 8px) 100%,
        8px 100%, 0 calc(100% - 8px)
    );
}
}
 
.portal-calendar-none {
.bsw-fa-title {
     font-size: var( --font-size-small, 0.82em );
     font-size: 0.9375rem;
     color: var( --color-base--subtle );
    font-weight: 600;
     color: var(--color-base);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
}


.bsw-fa-title a {
/* ── Related portals grid ────────────────────────────────── */
     color: var(--color-link);
.portal-related-grid {
     text-decoration: none;
     display: grid;
    grid-template-columns: 1fr 1fr;
     gap: 6px;
}
}
 
.portal-related-tile {
.bsw-fa-title a:hover { color: var(--color-link--hover); }
    background: var( --color-surface-2 );
 
    border: 1px solid var( --border-color-base );
.bsw-fa-extract {
    border-radius: var( --border-radius-medium, 6px );
     font-size: 0.8125rem;
     padding: 7px 10px;
     color: var(--color-base--subtle);
     font-size: var( --font-size-small, 0.8em );
     line-height: 1.65;
     transition: border-color 0.15s;
}
}
 
.portal-related-tile:hover {
.bsw-fa-extract p { margin: 0 0 0.25rem; }
    border-color: var( --border-color-interactive );
.bsw-fa-extract p:last-child { margin-bottom: 0; }
.bsw-fa-extract a { color: var(--color-link); }
.bsw-fa-extract a:hover { color: var(--color-link--hover); }
 
/* ── Photo Lab ───────────────────────────────────────────────────── */
.bsw-photo-img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    clip-path: none; /* override global image clip-path on main page images */
}
}
 
.portal-related-title {
.bsw-photo-nav {
     font-weight: 600;
     display: flex;
     font-size: 1em;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-top: 1px solid var(--border-color-base);
     font-size: 0.75rem;
    background: var(--background2);
}
}
 
.portal-related-title a {
.bsw-photo-nav a {
     color: var( --color-base );
     color: var(--color-link);
     text-decoration: none;
     text-decoration: none;
}
}
 
.portal-related-sub {
.bsw-photo-nav a:hover { color: var(--color-link--hover); }
    font-size: 0.85em;
 
     color: var( --color-base--subtle );
.bsw-photo-caption {
     margin-top: 1px;
     color: var(--color-base--subtle);
     font-size: 0.75rem;
    text-align: center;
    flex: 1;
    padding: 0 0.5rem;
}
}


/* ── Did you know ────────────────────────────────────────────────── */
/* ── DYK body ────────────────────────────────────────────── */
.bsw-dyk {
.portal-dyk-body li,
     list-style: none;
.portal-dyk-body p {
     display: flex;
     font-size: var( --font-size-small, 0.85em );
     flex-direction: column;
    line-height: 1.6;
     gap: 0.5rem;
     padding: 6px 0;
     border-bottom: 1px solid var( --border-color-base );
     margin: 0;
}
}
 
.portal-dyk-body li:last-child,
.bsw-dyk li {
.portal-dyk-body p:last-child {
    font-size: 0.8125rem;
     border-bottom: none;
    color: var(--color-base--subtle);
    padding-left: 1rem;
    position: relative;
     line-height: 1.65;
}
}


.bsw-dyk li::before {
/* ── Orphaned articles ───────────────────────────────────── */
    content: '∞';
.portal-orphan-chips {
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.6875rem;
    top: 3px;
}
 
.bsw-dyk li strong { color: var(--color-base); font-weight: 600; }
.bsw-dyk li a { color: var(--color-link); }
.bsw-dyk li a:hover { color: var(--color-link--hover); }
 
/* ── Recent changes tabs ─────────────────────────────────────────── */
.bsw-wiki-tabs {
     display: flex;
     display: flex;
    gap: 3px;
     flex-wrap: wrap;
     flex-wrap: wrap;
    gap: 4px;
}
}
 
.portal-orphan-chip {
.bsw-wtab {
     font-size: var( --font-size-x-small, 0.75em );
     font-size: 0.6875rem;
     padding: 2px 8px;
     padding: 2px 8px;
     border-radius: 10px;
     border-radius: 999px;
     border: 1px solid var(--border-color-base--lighter);
     border: 1px solid var( --color-warning-subtle, #e0b44a );
    background: transparent;
     color: var( --color-warning, #7a5c00 );
    cursor: pointer;
     background: var( --color-surface-2 );
     color: var(--color-base--subtle);
     white-space: nowrap;
     transition: all 0.15s;
    display: inline-block;
     user-select: none;
}
}


.bsw-wtab.bsw-active {
/* ── Browse by topic bar ─────────────────────────────────── */
     background: var(--background-color-primary--hover);
.portal-browse-bar {
     border-color: var(--border-color-base);
     display: flex;
     color: var(--color-base);
    flex-wrap: wrap;
     gap: 6px;
     padding: 2px 0;
}
}
 
.portal-browse-topic {
.bsw-wtab:hover:not(.bsw-active) {
     display: inline-block;
     background: var(--background-color-quiet--hover);
    color: var(--color-base);
}
}
 
.portal-browse-topic a {
/* Card header link — span used when href is '#' (JS updates to real URL) */
    display: inline-block;
.bsw-card-hd-link {
     font-size: var( --font-size-small, 0.8125rem );
     font-size: 0.6875rem;
     font-weight: 500;
     font-weight: 400;
    padding: 4px 12px;
     color: var(--color-link);
    border-radius: 999px;
     cursor: pointer;
    border: 1px solid var( --border-color-base );
     text-transform: none;
     color: var( --color-base ) !important;
     letter-spacing: 0;
     background: var( --color-surface-2 );
     text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s;
     white-space: nowrap;
}
}
 
.portal-browse-topic a:hover {
/* Stat links rendered as spans wrapping wikitext links */
     background: var( --color-surface-3 );
.bsw-stat-link {
     border-color: var( --border-color-interactive );
    display: block;
    text-align: center;
    font-size: 0.6875rem;
    padding: 0.3125rem;
     background: var(--background3);
    outline: 1px solid var(--border-color-base--lighter);
     clip-path: polygon(0 5px,5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px));
    color: var(--color-link);
    transition: background 0.15s;
}
}


.bsw-stat-links a:hover .bsw-stat-link {
/* ── Podcast teaser ──────────────────────────────────────── */
     background: var(--background-color-quiet--hover);
.portal-podcast-teaser {
     color: var(--color-link--hover);
     font-size: var( --font-size-small, 0.8125rem );
     color: var( --color-base--subtle );
    line-height: 1.5;
}
}
 
.portal-podcast-teaser a {
/* Portal links — wikitext link wraps a div.bsw-portal */
     display: inline-block;
.bsw-portals-grid a {
     margin-top: 6px;
    text-decoration: none;
     font-weight: 500;
}
 
.bsw-portals-grid a:hover .bsw-portal {
    border-color: var(--border-color-base--darker);
    background: var(--color-surface-2--hover);
}
 
.bsw-recent {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
}
 
.bsw-recent li {
     display: flex;
    justify-content: space-between;
     align-items: baseline;
     font-size: 0.8125rem;
}
 
.bsw-recent li a {
    color: var(--color-link);
    text-decoration: none;
}
}


.bsw-recent li a:hover { color: var(--color-link--hover); }
/* ── Subportals ──────────────────────────────────────────── */
 
.portal-subportals {
.bsw-recent-time {
    font-size: 0.6875rem;
    color: var(--color-base--subtle);
    flex-shrink: 0;
    margin-left: 0.5rem;
}
 
/* ── Statistics ──────────────────────────────────────────────────── */
.bsw-stats-grid {
     display: grid;
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
     gap: 5px;
     gap: 12px;
    margin-bottom: 0.5rem;
}
}
 
.portal-subportals-heading {
.bsw-stat {
     font-size: var( --font-size-small, 0.8125em );
     background: var(--background3);
    outline: 1px solid var(--border-color-base--lighter);
    clip-path: polygon(
        0 5px, 5px 0,
        calc(100% - 5px) 0, 100% 5px,
        100% calc(100% - 5px), calc(100% - 5px) 100%,
        5px 100%, 0 calc(100% - 5px)
    );
    padding: 0.4375rem 0.25rem;
    text-align: center;
}
 
.bsw-stat-n {
    font-size: 1.0625rem;
     font-weight: 600;
     font-weight: 600;
    color: var(--color-primary);
     color: var( --color-base--subtle );
    line-height: 1;
}
 
.bsw-stat-l {
    font-size: 0.625rem;
     color: var(--color-base--subtle);
     text-transform: uppercase;
     text-transform: uppercase;
     letter-spacing: 0.04em;
     letter-spacing: 0.05em;
     margin-top: 2px;
     margin-bottom: 6px;
}
    border-bottom: 1px solid var( --border-color-base );
 
     padding-bottom: 4px;
.bsw-stat-links {
    display: flex;
     gap: 5px;
}
}
 
.portal-subportals-list {
.bsw-stat-link {
    flex: 1;
    text-align: center;
    font-size: 0.6875rem;
    padding: 0.3125rem;
    background: var(--background3);
    outline: 1px solid var(--border-color-base--lighter);
    clip-path: polygon(
        0 5px, 5px 0,
        calc(100% - 5px) 0, 100% 5px,
        100% calc(100% - 5px), calc(100% - 5px) 100%,
        5px 100%, 0 calc(100% - 5px)
    );
    color: var(--color-link);
    text-decoration: none;
    transition: background 0.15s;
    display: block;
}
 
.bsw-stat-link:hover {
    background: var(--background-color-quiet--hover);
    color: var(--color-link--hover);
    text-decoration: none;
}
 
/* ── On this day ─────────────────────────────────────────────────── */
.bsw-otd-date {
    font-size: 0.6875rem;
    color: var(--color-base--subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}
 
.bsw-otd-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-base);
    margin-bottom: 0.25rem;
}
 
.bsw-otd-body {
    font-size: 0.8125rem;
    color: var(--color-base--subtle);
    line-height: 1.65;
}
 
.bsw-otd-body a { color: var(--color-link); }
.bsw-otd-body a:hover { color: var(--color-link--hover); }
 
/* ── Wiki news ───────────────────────────────────────────────────── */
.bsw-news {
     list-style: none;
     list-style: none;
    padding: 0;
    margin: 0;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 0.5rem;
     gap: 4px;
}
     font-size: var( --font-size-small, 0.8125em );
 
.bsw-news li {
     font-size: 0.8125rem;
    color: var(--color-base--subtle);
    line-height: 1.55;
}
 
.bsw-news li strong { color: var(--color-base); font-weight: 600; }
.bsw-news-date { font-size: 0.6875rem; color: var(--color-base--subtle); display: block; margin-top: 1px; opacity: 0.6; }
 
/* ── Newest article ──────────────────────────────────────────────── */
.bsw-newest-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-base);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
}
 
.portal-subportals-list li::before {
.bsw-newest-title a { color: var(--color-link); text-decoration: none; }
     content: "› ";
.bsw-newest-title a:hover { color: var(--color-link--hover); }
     color: var( --color-base--subtle );
 
.bsw-newest-body {
     font-size: 0.8125rem;
     color: var(--color-base--subtle);
    line-height: 1.65;
    margin-bottom: 0.375rem;
}
}


/* ── Sister projects ─────────────────────────────────────────────── */
/* ── Loading spinner (matches bsw-loading / bsw-spinner) ─── */
.bsw-sister-link {
.portal-loading {
    display: block;
    text-align: left;
    padding: 0.375rem 0.625rem;
    background: var(--background3);
    outline: 1px solid var(--border-color-base--lighter);
    clip-path: polygon(
        0 5px, 5px 0,
        calc(100% - 5px) 0, 100% 5px,
        100% calc(100% - 5px), calc(100% - 5px) 100%,
        5px 100%, 0 calc(100% - 5px)
    );
    color: var(--color-link);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background 0.15s;
}
 
.bsw-sister-link:hover {
    background: var(--background-color-quiet--hover);
    color: var(--color-link--hover);
    text-decoration: none;
}
 
/* ── Interwiki bar ───────────────────────────────────────────────── */
.bsw-interwiki {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
    flex-wrap: wrap;
     gap: 8px;
     gap: 5px;
     font-size: var( --font-size-small, 0.8125em );
     padding: 0.5rem 0.75rem;
     color: var( --color-base--subtle );
    background: var(--background2);
    padding: 8px 0;
     border-top: 1px solid var(--border-color-base);
}
}
 
.portal-spinner {
.bsw-iw {
     width: 14px;
     display: inline-flex;
     height: 14px;
     align-items: center;
     border: 2px solid var( --border-color-base );
     gap: 4px;
     border-top-color: var( --color-progressive, #3366cc );
    background: var(--background3);
     border-radius: 50%;
    outline: 1px solid var(--border-color-base--lighter);
     animation: portal-spin 0.7s linear infinite;
     clip-path: polygon(
     flex-shrink: 0;
        0 5px, 5px 0,
        calc(100% - 5px) 0, 100% 5px,
        100% calc(100% - 5px), calc(100% - 5px) 100%,
        5px 100%, 0 calc(100% - 5px)
    );
     padding: 3px 9px;
     font-size: 0.8125rem;
     color: var(--color-base);
    text-decoration: none;
    transition: background 0.15s;
}
}
 
@keyframes portal-spin {
.bsw-iw:hover {
     to { transform: rotate( 360deg ); }
    background: var(--background-color-quiet--hover);
    text-decoration: none;
}
 
.bsw-iw a { color: var(--color-link); text-decoration: none; }
.bsw-iw a:hover { color: var(--color-link--hover); }
 
/* ── Tagline ─────────────────────────────────────────────────────── */
.bsw-tagline {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-base--subtle);
    padding: 0.625rem 0.75rem;
    border-top: 1px solid var(--border-color-base);
    background: var(--background2);
    line-height: 1.7;
}
 
.bsw-tagline strong { color: var(--color-primary); }
 
/* ══════════════════════════════════════════
  RESPONSIVE BREAKPOINTS
  ══════════════════════════════════════════ */
 
/* ── Tablet (640px – 1079px) ─────────────────────────────────────── */
@media screen and (max-width: 1079px) {
    .bsw-hero { height: 240px; }
    .bsw-slide-title { font-size: 1.1875rem; }
}
 
/* ── Mobile (< 640px) ────────────────────────────────────────────── */
@media screen and (max-width: 639px) {
 
    .bsw-main-page { margin: -0.5rem; }
 
    .bsw-hero { height: 200px; }
    .bsw-slide-title { font-size: 1rem; }
    .bsw-slide-desc { font-size: 0.75rem; }
    .bsw-slide-content { padding: 0.75rem; }
 
    /* Portals: 3-column on mobile */
    .bsw-portals-grid { grid-template-columns: repeat(3, 1fr); }
 
    /* VotD: stack vertically */
    .bsw-votd-inner { grid-template-columns: 1fr; }
    .bsw-votd-player { border-right: none; border-bottom: 1px solid var(--border-color-base); }
 
    /* Body: single column, left before right */
    .bsw-body { grid-template-columns: 1fr; padding: 0.5rem; gap: 0.5rem; }
    .bsw-col-left  { order: 1; }
    .bsw-col-right { order: 2; }
 
    /* Smaller featured thumbnail */
    .bsw-fa-thumb,
    .bsw-fa-thumb-ph { width: 60px; height: 60px; }
 
    /* VotD play button */
    .bsw-votd-play { width: 42px; height: 42px; }
}
 
/* ── Very small (< 380px) ────────────────────────────────────────── */
@media screen and (max-width: 379px) {
    .bsw-portals-grid { grid-template-columns: repeat(2, 1fr); }
    .bsw-portal-sub { display: none; }
     .bsw-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
}

Latest revision as of 23:05, 15 April 2026

/*
 * Styling for links generated by [[MediaWiki:Edittools]]
 * @source www.mediawiki.org/wiki/Extension:CharInsert#Styling
 * @updated 2012-02-29
 */
.mw-charinsert-buttons {
	margin-top: 10px;
	border: 1px solid #a2a9b1;
	padding: 1px;
	text-align: center;
	font-size: 110%;
}
.mw-charinsert-buttons a {
	color: black;
	background-color: #cde !important;
	font-weight: bold;
	font-size: .9em;
	text-decoration: none;
	border: thin #069 outset;
	padding: 0 .1em .1em;
}
.mw-charinsert-buttons a:hover,
.mw-charinsert-buttons a:active {
	background-color: #bcd;
	border-style: inset;
}
.client-js .mw-edittools-section {
	display: inline;
}
.client-js .mw-edittools-section input[type="button"] {
	font-size: 0.9em;
	padding-left: 1px;
	padding-right: 1px;
	margin-left: 1px;
}

/* To deal with the AddThis Extension Floater */

.mw-parser-output {
    clear: both;
}

/* Handling of various Google ads with Citizen skin */

.adsbygoogle {
    text-align: center;
}

/* Centered DIV / Table Elements */

.centered {
    margin: auto;
}

.infobox {
	max-width: 350px !important;
}

/* Inline Video Element Overrides - 5.25.25 */

.video-js.vjs-mediacms .vjs-corner-layer .media-links-top-left .title-link {
    padding-left: 0px !important; 
    padding-top: 0px !important;
    overflow: visible !important;
}

.video-js.vjs-mediacms .vjs-corner-layer .media-links-top-left .user-thumb-link {
	display: none !important;
	visibility: hidden !important;
}

/* For Indicators - 7.19.25 */

/*
 * Styles for the EraIndicator Template
 * The ID must match the 'name' attribute from the <indicator> tag,
 * prefixed with '#mw-indicator-'.
 */

/* Common styles for all indicators */
#mw-indicator-tos-indicator,
#mw-indicator-trs-indicator,
#mw-indicator-caprica-indicator,
#mw-indicator-1980-indicator,
#mw-indicator-bac-indicator,
#mw-indicator-sepcon-indicator,
#mw-indicator-gallery-indicator { /* CHANGED from licensed-indicator */
    border: 1px solid #000;
    padding: 2px 6px;
    font-size: 9pt;
    font-weight: bold;
    border-radius: 5px;
}

/* TOS Indicator */
#mw-indicator-tos-indicator {
    background-color: #D4AF37; /* Gold */
    color: #000;
}

/* TRS Indicator */
#mw-indicator-trs-indicator {
    border-color: #CCC;
    background-color: #444444; /* Dark Gray */
    color: #FFF;
}

/* Caprica Indicator */
#mw-indicator-caprica-indicator {
    background-color: #A1C6E7; /* Light Blue */
    color: #000;
}

/* 1980 Indicator */
#mw-indicator-1980-indicator {
    background-color: #CD7F32; /* Bronze */
    color: #FFF;
}

/* Separate Continuity Indicator */
#mw-indicator-sepcon-indicator {
    background-color: #4B0082; /* Indigo */
    color: #FFF;
    border-color: #AAA;
}

#mw-indicator-bac-indicator {
    background-color: #2F4F4F; /* Dark Slate Gray */
    color: #00FFFF; /* Cyan */
    border-color: #00FFFF;
}

#mw-indicator-gallery-indicator {
    background-color: #36454f; /* Charcoal: Neutral enough for both modes */
    color: #00ced1;            /* Dark Turquoise: Readable on charcoal and white */
    border: 1px solid #00ced1;
}

#mw-indicator-sepcon-indicator a, #mw-indicator-trs-indicator a, #mw-indicator-bac-indicator a, #mw-indicator-gallery-indicator a {
	color: white !important;
}

.mw-indicator a {
    color: black !important;
}

/* Category Hidden for Spoilerific Content */

.page-Ellen_Tigh #catlinks, .page-Saul_Tigh #catlinks, .page-Galen_Tyrol #catlinks, .page-Tory_Foster #catlinks, .page-Samuel_Anders #catlinks{
    display: none;
}

/* iFrame Height Adjust */

iframe {
	height: 50vh;
}

iframe.video {
	height: revert-layer;
}

/* ============================================================
   Portal layout — BattlestarWiki
   Base classes shared across all portal pages.
   New components (hero, char grid, etc.) are in MediaWiki:Portal.css
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────── */
.portal-page {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────── */
.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;
    line-height: 1.3;
    color: var( --color-base );
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.portal-badge {
    font-size: var( --font-size-x-small, 0.75em );
    font-weight: 500;
    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 {
    font-size: var( --font-size-small, 0.8125em );
    color: var( --color-base--subtle );
    margin-top: 3px;
}
.portal-header-links {
    font-size: var( --font-size-small, 0.8125em );
    color: var( --color-base--subtle );
    white-space: nowrap;
    padding-top: 4px;
}

/* ── Stats bar ───────────────────────────────────────────── */
.portal-stats-bar {
    display: flex;
    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 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: var( --font-size-small, 0.8125em );
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var( --border-color-base );
    color: var( --color-base--subtle );
    background: var( --color-surface-0 );
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.portal-series-pill:hover {
    border-color: var( --border-color-interactive );
    background: var( --color-surface-2 );
    color: var( --color-base );
}
.portal-series-pill--active {
    border-color: var( --border-color-interactive );
    background: var( --color-surface-2 );
    color: var( --color-base );
    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 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;
    flex-direction: column;
    gap: 12px;
}

/* ── Widget card ─────────────────────────────────────────── */
.portal-widget {
    background: var( --color-surface-1 );
    border: 1px solid var( --border-color-base );
    border-radius: var( --border-radius-large, 8px );
    overflow: hidden;
}
.portal-widget-head {
    display: flex;
    align-items: center;
    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 );
    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;
}

/* ── Newest article ─────────────────────────────────────── */
.portal-newest-title {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 4px;
}
.portal-newest-meta {
    font-size: var( --font-size-x-small, 0.8em );
    color: var( --color-base--subtle );
    margin-top: 4px;
}

/* ── Colonial Calendar ───────────────────────────────────── */
.portal-calendar-date {
    font-size: 1.6em;
    font-weight: 700;
    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;
    display: flex;
    flex-direction: column;
}
.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 {
    border-bottom: none;
}
.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 );
}

/* ── Related portals grid ────────────────────────────────── */
.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;
    font-size: 1em;
}
.portal-related-title a {
    color: var( --color-base );
    text-decoration: none;
}
.portal-related-sub {
    font-size: 0.85em;
    color: var( --color-base--subtle );
    margin-top: 1px;
}

/* ── DYK body ────────────────────────────────────────────── */
.portal-dyk-body li,
.portal-dyk-body p {
    font-size: var( --font-size-small, 0.85em );
    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 ───────────────────────────────────── */
.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 var( --color-warning-subtle, #e0b44a );
    color: var( --color-warning, #7a5c00 );
    background: var( --color-surface-2 );
    white-space: nowrap;
}

/* ── 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;
    white-space: nowrap;
}
.portal-browse-topic a:hover {
    background: var( --color-surface-3 );
    border-color: var( --border-color-interactive );
}

/* ── 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;
}

/* ── Subportals ──────────────────────────────────────────── */
.portal-subportals {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
    gap: 12px;
}
.portal-subportals-heading {
    font-size: var( --font-size-small, 0.8125em );
    font-weight: 600;
    color: var( --color-base--subtle );
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    border-bottom: 1px solid var( --border-color-base );
    padding-bottom: 4px;
}
.portal-subportals-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: var( --font-size-small, 0.8125em );
}
.portal-subportals-list li::before {
    content: "› ";
    color: var( --color-base--subtle );
}

/* ── Loading spinner (matches bsw-loading / bsw-spinner) ─── */
.portal-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var( --font-size-small, 0.8125em );
    color: var( --color-base--subtle );
    padding: 8px 0;
}
.portal-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var( --border-color-base );
    border-top-color: var( --color-progressive, #3366cc );
    border-radius: 50%;
    animation: portal-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes portal-spin {
    to { transform: rotate( 360deg ); }
}