/*
 * Build 0085 visual correction for the Phase 1 main-site information pages.
 * Filename is retained for stable asset compatibility. The presentation now
 * carries the fuller Donate-derived composition language: hero, accent rail,
 * dark support panel, topic pills, richer section surfaces, and stronger cards.
 */

.buzzen-site-page {
    min-height: 55vh;
}

.buzzen-site-panel {
    width: 100%;
}

/* Donate-derived information hero */
.buzzen-site-hero,
.buzzen-credits-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(245px, .72fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 93% 8%, rgba(255, 210, 74, .20) 0, rgba(255, 210, 74, 0) 28%),
        linear-gradient(135deg, #ffffff 0%, #edf7fd 100%);
}

.buzzen-site-hero::before,
.buzzen-credits-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #1b79bd 0%, #ffd24a 100%);
}

.buzzen-site-hero-copy,
.buzzen-credits-hero-copy {
    min-width: 0;
    padding: 4px 4px 4px 8px;
}

.buzzen-site-hero-kicker,
.buzzen-credits-hero .buzzen-v5-kicker {
    margin-bottom: 8px;
}

.buzzen-site-hero h1,
.buzzen-credits-hero h1 {
    max-width: 720px;
    margin: 0 0 10px;
    color: #123d5c;
    font-family: var(--buzzen-font-heading);
    font-size: clamp(29px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.08;
}

.buzzen-site-hero-copy > p,
.buzzen-credits-hero-copy > p {
    max-width: 760px;
    margin: 0;
    color: #405c70;
    font-size: 15px;
    line-height: 1.7;
}

.buzzen-site-hero-points,
.buzzen-credits-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.buzzen-site-hero-points span,
.buzzen-credits-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(27, 121, 189, .14);
    border-radius: var(--buzzen-radius-pill);
    background: rgba(255, 255, 255, .84);
    color: #31566d;
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 5px 13px rgba(17, 71, 111, .04);
}

.buzzen-site-hero-points i,
.buzzen-credits-hero-points i {
    color: #1b79bd;
}

.buzzen-site-hero-panel,
.buzzen-credits-hero-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 21px;
    overflow: hidden;
    border: 1px solid rgba(18, 61, 92, .16);
    border-radius: var(--buzzen-radius-md);
    background: linear-gradient(145deg, #103858 0%, #155c91 70%, #1b79bd 100%);
    color: #fff;
    box-shadow: var(--buzzen-shadow-elevated);
}

.buzzen-site-hero-panel::after,
.buzzen-credits-hero-panel::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -48px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgba(255, 210, 74, .13);
}

.buzzen-site-hero-panel-icon,
.buzzen-credits-hero-panel-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 13px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--buzzen-radius-md);
    background: rgba(255, 255, 255, .10);
    color: #ffd24a;
    font-size: 22px;
}

.buzzen-site-hero-panel-label,
.buzzen-credits-hero-panel > span {
    position: relative;
    z-index: 1;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, .70);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.buzzen-site-hero-panel > strong,
.buzzen-credits-hero-panel > strong {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: var(--buzzen-font-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
}

.buzzen-site-hero-updated {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 5px;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.buzzen-site-hero-updated span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 650;
}

.buzzen-site-hero-updated b {
    color: #fff;
    font-size: 14px;
}

.buzzen-credits-hero-panel > p {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .80);
    font-size: 13px;
    line-height: 1.55;
}

/* Main information section */
.buzzen-site-card {
    overflow: hidden;
}

.buzzen-site-primary-section {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.buzzen-site-card-header {
    align-items: center;
}

.buzzen-site-heading-copy {
    min-width: 0;
}

.buzzen-site-card-header h2 {
    margin: 0;
    color: #123d5c;
    font-family: var(--buzzen-font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.buzzen-site-card-header p {
    margin: 4px 0 0;
    color: #61798a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.buzzen-site-card-body {
    padding: 22px 24px 26px;
}

.buzzen-site-content {
    color: #405d71;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.buzzen-site-content > :first-child {
    margin-top: 0 !important;
}

.buzzen-site-content > :last-child {
    margin-bottom: 0 !important;
}

.buzzen-site-content p,
.buzzen-site-content ul,
.buzzen-site-content ol,
.buzzen-site-content blockquote,
.buzzen-site-content table,
.buzzen-site-content pre {
    margin-bottom: 1rem;
}

.buzzen-site-content h1,
.buzzen-site-content h2,
.buzzen-site-content h3,
.buzzen-site-content h4,
.buzzen-site-content h5,
.buzzen-site-content h6 {
    color: #153f5d;
    font-family: var(--buzzen-font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.buzzen-site-content h1,
.buzzen-site-content h2 {
    position: relative;
    margin: 1.55em 0 .72em;
    padding: 10px 13px 10px 16px;
    border: 1px solid rgba(34, 103, 154, .11);
    border-radius: var(--buzzen-radius-sm);
    background: linear-gradient(135deg, #eef7fd 0%, #fbfdff 78%);
}

.buzzen-site-content h1::before,
.buzzen-site-content h2::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #1b79bd 0%, #ffd24a 100%);
}

.buzzen-site-content h1 {
    font-size: 27px;
}

.buzzen-site-content h2 {
    font-size: 23px;
}

.buzzen-site-content h3 {
    margin: 1.4em 0 .55em;
    padding-bottom: 7px;
    border-bottom: 1px solid #dce8f0;
    font-size: 20px;
}

.buzzen-site-content h3::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 7px;
    border-radius: var(--buzzen-radius-pill);
    background: #ffd24a;
}

.buzzen-site-content h4 {
    margin: 1.35em 0 .5em;
    font-size: 18px;
}

.buzzen-site-content h5,
.buzzen-site-content h6 {
    margin: 1.3em 0 .5em;
    font-size: 16px;
}

.buzzen-site-content ul,
.buzzen-site-content ol {
    padding-left: 1.4rem;
}

.buzzen-site-content li + li {
    margin-top: .38rem;
}

.buzzen-site-content li::marker {
    color: #1b79bd;
    font-weight: 800;
}

.buzzen-site-content blockquote {
    position: relative;
    padding: 14px 17px 14px 19px;
    border: 1px solid rgba(245, 173, 36, .25);
    border-left: 4px solid #f5ad24;
    border-radius: 0 var(--buzzen-radius-sm) var(--buzzen-radius-sm) 0;
    background: linear-gradient(135deg, #fffaf0 0%, #f7fbfe 100%);
    color: #536f82;
}

.buzzen-site-content hr {
    margin: 1.6rem 0;
    border: 0;
    border-top: 1px solid #dce7ef;
    opacity: 1;
}

.buzzen-site-content img {
    height: auto;
    max-width: 100%;
    border-radius: var(--buzzen-radius-sm);
}

.buzzen-site-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--buzzen-shadow-soft);
}

.buzzen-site-content th,
.buzzen-site-content td {
    padding: 10px 12px;
    border: 1px solid #dce6ed;
    vertical-align: top;
}

.buzzen-site-content th {
    background: linear-gradient(135deg, #eaf5fc 0%, #f5faff 100%);
    color: #234d6c;
    font-weight: 800;
}

.buzzen-site-content pre,
.buzzen-site-content code {
    font-size: .92em;
}

.buzzen-site-content pre {
    max-width: 100%;
    padding: 12px 14px;
    overflow-x: auto;
    border: 1px solid #dae5ed;
    border-radius: var(--buzzen-radius-sm);
    background: #f6f9fb;
}

.buzzen-site-content a {
    color: #12669b;
    font-weight: 650;
    overflow-wrap: anywhere;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.buzzen-site-content a:hover,
.buzzen-site-content a:focus {
    color: #0b7ed8;
}

.buzzen-site-empty {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 14px 15px;
    border-color: #f0d588;
    border-radius: var(--buzzen-radius-sm);
    background: linear-gradient(135deg, #fff9e9 0%, #fffdf8 100%);
    font-size: 14px;
}

.buzzen-site-empty i {
    margin-top: .18rem;
    color: #c68a00;
}

/* Stored History gallery compatibility. */
.buzzen-site-content .buzzen-gallery-container {
    max-width: 100%;
    padding: 0;
}

.buzzen-site-content .buzzen-gallery-container .row {
    row-gap: 1rem;
}

.buzzen-site-content .buzzen-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(34, 103, 154, .14);
    border-radius: var(--buzzen-radius-md);
    background: linear-gradient(145deg, #ffffff 0%, #f4f9fd 100%);
    box-shadow: var(--buzzen-shadow-card);
}

.buzzen-site-content .buzzen-thumb {
    display: block;
    width: 100%;
    border-radius: 0;
}

.buzzen-site-content .buzzen-caption {
    padding: 11px 12px;
    border-top: 1px solid #e2ecf3;
    color: #315a76;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
}

.buzzen-site-content .buzzen-interview {
    margin-top: 1rem;
}

/* Credits: deliberately more composed than a generic equal-height card grid. */
.buzzen-credits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.buzzen-credit-card {
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.buzzen-credit-card-technology {
    grid-column: 1 / -1;
    border-color: rgba(245, 173, 36, .28);
    background:
        radial-gradient(circle at 94% 0%, rgba(255, 210, 74, .13) 0, rgba(255, 210, 74, 0) 27%),
        linear-gradient(135deg, #ffffff 0%, #f4faff 100%);
}

.buzzen-credit-card-heading {
    align-items: center;
}

.buzzen-credit-card-heading > div {
    min-width: 0;
}

.buzzen-credit-card-heading h2 {
    margin: 0;
    color: #173f5d;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
}

.buzzen-credit-card-heading p {
    margin: 3px 0 0;
    color: #667f91;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.buzzen-credit-card-icon {
    flex: 0 0 38px;
}

.buzzen-credit-list {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 16px 18px 18px;
}

.buzzen-credit-list-technology {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.buzzen-credit-list li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 12px 12px 12px 16px;
    border-top: 1px solid #edf1f4;
    color: #516d7f;
    font-size: 14px;
    line-height: 1.45;
}

.buzzen-credit-list li::before {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 0;
    width: 3px;
    border-radius: var(--buzzen-radius-pill);
    background: linear-gradient(180deg, #1b79bd 0%, #ffd24a 100%);
    opacity: .8;
}

.buzzen-credit-list li:first-child,
.buzzen-credit-list-technology li:nth-child(2) {
    border-top-color: transparent;
}

.buzzen-credit-list strong {
    color: #234d69;
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.buzzen-credit-list a {
    width: fit-content;
    max-width: 100%;
    color: #176a9e;
    font-weight: 650;
    overflow-wrap: anywhere;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.buzzen-credit-list a:hover,
.buzzen-credit-list a:focus {
    color: #0b7ed8;
}

.buzzen-credit-role {
    color: #718795;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1.25;
    text-transform: uppercase;
}

.buzzen-credit-inactive {
    display: inline-flex;
    margin-left: 3px;
    padding: 2px 6px;
    border: 1px solid #d8e2e9;
    border-radius: var(--buzzen-radius-pill);
    background: #f4f7f9;
    color: #788b98;
    font-family: var(--buzzen-font-body);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    .buzzen-site-hero,
    .buzzen-credits-hero {
        grid-template-columns: 1fr;
    }

    .buzzen-site-hero-panel,
    .buzzen-credits-hero-panel {
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    .buzzen-site-hero,
    .buzzen-credits-hero {
        gap: 16px;
        padding: 21px;
    }

    .buzzen-site-hero h1,
    .buzzen-credits-hero h1 {
        font-size: 29px;
    }

    .buzzen-site-card-body {
        padding: 18px 16px 20px;
    }

    .buzzen-site-card-header h2,
    .buzzen-credit-card-heading h2 {
        font-size: 20px;
    }

    .buzzen-site-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .buzzen-credits-grid {
        grid-template-columns: 1fr;
    }

    .buzzen-credit-card-technology {
        grid-column: auto;
    }

    .buzzen-credit-list-technology {
        grid-template-columns: 1fr;
    }

    .buzzen-credit-list-technology li:nth-child(2) {
        border-top-color: #edf1f4;
    }
}

@media (max-width: 575.98px) {
    .buzzen-site-hero,
    .buzzen-credits-hero {
        padding: 18px 16px 18px 19px;
    }

    .buzzen-site-hero-copy,
    .buzzen-credits-hero-copy {
        padding-left: 4px;
    }

    .buzzen-site-hero-points,
    .buzzen-credits-hero-points {
        display: grid;
        grid-template-columns: 1fr;
    }

    .buzzen-site-hero-points span,
    .buzzen-credits-hero-points span {
        width: fit-content;
        max-width: 100%;
    }

    .buzzen-site-hero-panel,
    .buzzen-credits-hero-panel {
        padding: 18px;
    }

    .buzzen-site-card-header,
    .buzzen-credit-card-heading {
        align-items: flex-start;
    }

    .buzzen-site-content h1,
    .buzzen-site-content h2 {
        padding-right: 10px;
    }

    .buzzen-site-content .col-xs-6 {
        width: 50%;
    }

    .buzzen-credit-list {
        padding: 14px 15px 16px;
    }
}
