/* SGF v13 — contrast, legibility, and presentation fixes */

/* —— Image overlays: always light text (both themes) —— */
.gose-bento__overlay {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(7, 17, 31, 0.55) 18%,
        rgba(7, 17, 31, 0.94) 72%,
        rgba(7, 17, 31, 0.98) 100%
    );
}

.gose-bento__overlay h3 {
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.gose-bento__overlay p {
    color: rgba(236, 242, 248, 0.92) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.gose-bento__card--feature .gose-bento__overlay {
    background: linear-gradient(
        90deg,
        rgba(7, 17, 31, 0.94) 0%,
        rgba(7, 17, 31, 0.82) 42%,
        rgba(7, 17, 31, 0.35) 68%,
        transparent 100%
    );
}

@media (min-width: 600px) {
    .gose-bento__card--feature .gose-bento__overlay {
        inset: 0 auto 0 0;
        width: min(52%, 34rem);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 1.75rem 1.6rem 1.5rem;
    }
}

/* —— Secretariat / HQ address card —— */
.gose-hq-card {
    background: rgba(43, 99, 198, 0.12);
    border-color: rgba(74, 132, 232, 0.35);
}

.gose-hq-card > span {
    color: #9ec0ff;
}

.gose-hq-card address {
    color: #e8eef5;
    font-weight: 500;
}

html[data-theme='light'] .gose-hq-card {
    background: #fff;
    border: 1px solid rgba(43, 99, 198, 0.22);
    box-shadow: 0 10px 28px rgba(21, 32, 51, 0.07);
}

html[data-theme='light'] .gose-hq-card > span {
    color: #1a56b0;
}

html[data-theme='light'] .gose-hq-card address {
    color: #152033;
}

/* Hero logo: gose-brand.css + gose.css */

/* Hero text on photo — dark veil in both themes */
html[data-theme='light'] .gose-hero__veil {
    background:
        linear-gradient(180deg, rgba(7, 17, 31, 0.42) 0%, rgba(7, 17, 31, 0.78) 55%, rgba(7, 17, 31, 0.9) 100%),
        linear-gradient(90deg, rgba(7, 17, 31, 0.88) 0%, rgba(7, 17, 31, 0.42) 55%, rgba(7, 17, 31, 0.78) 100%);
}

html[data-theme='light'] .gose-hero__tagline,
html[data-theme='light'] .gose-hero__tagline-zh,
html[data-theme='light'] .gose-hero__lead,
html[data-theme='light'] .gose-hero__copy .gose-kicker {
    color: #f4f7fb;
}

html[data-theme='light'] .gose-hero__tagline-zh {
    color: rgba(244, 247, 251, 0.82);
}

html[data-theme='light'] .gose-hero__lead {
    color: rgba(236, 242, 248, 0.9);
}

/* —— Hero console readability —— */
.gose-console__note {
    color: #d0dae6;
    line-height: 1.6;
}

html[data-theme='light'] .gose-hero__console {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(21, 32, 51, 0.1);
    box-shadow: 0 20px 50px rgba(21, 32, 51, 0.12);
}

html[data-theme='light'] .gose-console__head {
    color: #5a6b7d;
}

html[data-theme='light'] .gose-console__stats {
    background: rgba(43, 99, 198, 0.06);
}

html[data-theme='light'] .gose-console__stats span {
    color: #5a6b7d;
}

html[data-theme='light'] .gose-console__note {
    color: #3d4f63;
}

/* —— Light nav: no white bar on desktop —— */
@media (min-width: 920px) {
    html[data-theme='light'] .gose-nav__links {
        background: transparent !important;
    }

    html[data-theme='light'] .gose-nav.is-scrolled {
        background: rgba(255, 255, 255, 0.92);
    }
}

@media (max-width: 919px) {
    html[data-theme='light'] .gose-nav__links {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* —— Light theme section text —— */
html[data-theme='light'] .gose-stack-list strong {
    color: #152033;
}

html[data-theme='light'] .gose-partners li {
    color: #3d4f63;
}

/* —— Bento images: sharper scaling —— */
.gose-bento__card img {
    image-rendering: auto;
}

.gose-bento__card--feature img {
    object-position: center 42%;
}

/* Hero layout: gose-layout.css */

@media (min-width: 768px) {
    .gose-hero__scroll {
        display: none;
    }
}

.gose-hero {
    padding-bottom: 3rem;
}

/* —— Bento: show full text, no phone-stock crop —— */
.gose-bento__card:not(.gose-bento__card--feature) {
    aspect-ratio: unset;
    min-height: 300px;
}

.gose-bento__overlay p {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
}

.gose-bento__card--digital img {
    object-position: center 30%;
}

/* —— Governance grid: no truncated roles —— */
.gose-governance__grid li span {
    min-width: 0;
    line-height: 1.35;
}

.gose-governance__grid li {
    font-size: 0.84rem;
}

@media (min-width: 700px) and (max-width: 1023px) {
    .gose-governance__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* —— Contact meta: compact —— */
.gose-contact-meta li {
    padding: 0.6rem 0.85rem;
    gap: 0.12rem;
}

@media (min-width: 900px) {
    .gose-contact__copy {
        align-self: start;
    }
}
html[data-theme='light'] .gose-marquee__label {
    background: rgba(255, 255, 255, 0.65);
}

html[data-theme='light'] .gose-marquee {
    background: rgba(255, 255, 255, 0.65);
}
