/*
 * Warisan theme: a photo-led heritage editorial. Forest green and gold,
 * Newsreader for headings with Plus Jakarta Sans for text, square 2px corners.
 */

.st-theme--warisan {
    --st-display: 'Newsreader', Georgia, 'Times New Roman', serif;
    --st-ink: #182019;
    --st-muted: #4E5B52;
    --st-line: #E2E5DE;
    --st-line-strong: #C7CDC3;
    --st-accent: #10301F;
    --st-accent-hover: #0A2015;
    --st-tint: #EEF0EA;
    --st-band: #EEF0EA;
    --st-gold: #D6B25E;
    --st-gold-deep: #C9A24A;
    --st-focus: #182019;
    --st-focus-on-dark: #D6B25E;
    --st-radius-btn: 2px;
    --st-radius-panel: 2px;
    --st-radius-chip: 2px;
    --st-footer-bg: #10301F;
    --st-footer-muted: #C9D6CC;
    --st-footer-heading: #D6B25E;

    /* Inner pages keep their layout but pick up the theme type and colour. */
    --tg-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tg-heading-font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
    --tg-primary-color: #10301F;
    --tg-secondary-color: #10301F;
    --tg-heading-font-color: #10301F;
    --tg-black: #182019;
}

.st-theme--warisan .st-header {
    border-top: 3px solid var(--st-gold-deep);
}

.st-theme--warisan .st-brand img {
    height: 46px;
}

.st-theme--warisan .st-nav__link {
    border-radius: 0;
}

.st-theme--warisan .st-nav__link:hover,
.st-theme--warisan .st-nav__item:hover > .st-nav__link {
    color: var(--st-ink);
    text-decoration: underline;
    text-decoration-color: var(--st-gold-deep);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.st-theme--warisan .st-nav__item.is-current > .st-nav__link {
    color: var(--st-ink);
    text-decoration: underline;
    text-decoration-color: var(--st-gold-deep);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.st-theme--warisan .st-link-btn {
    border-color: transparent;
    padding: 0 10px;
    font-weight: 500;
}

.st-theme--warisan .st-link-btn:hover {
    border-color: transparent;
    color: var(--st-ink);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.st-theme--warisan .st-drawer__actions .st-link-btn {
    border-color: var(--st-line-strong);
    padding: 0 16px;
}

.st-theme--warisan .st-footer__bottom {
    padding-top: 24px;
}

/* ---------------------------------------------------------------- Homepage */

.wr-home {
    background: #FFFFFF;
    color: var(--st-ink);
    font-family: var(--st-font);
}

.wr-home *,
.wr-home *::before,
.wr-home *::after {
    box-sizing: border-box;
}

.wr-home a {
    transition: none;
}

.wr-shell {
    max-width: var(--st-shell);
    margin: 0 auto;
    padding: 0 var(--st-gutter);
}

.wr-section {
    padding: 104px 0;
}

.wr-band {
    background: var(--st-band);
    padding: 96px 0;
}

.wr-dark {
    background: var(--st-accent);
    color: #FFFFFF;
    padding: 96px 0;
}

.wr-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.wr-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.st-theme .wr-h2 {
    margin: 0;
    color: var(--st-accent);
    font-family: var(--st-display);
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.01em;
}

.st-theme .wr-h2--light {
    color: #FFFFFF;
}

.st-theme .wr-kicker {
    margin: 0;
    color: var(--st-muted);
    font-family: var(--st-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.wr-home .wr-link {
    align-self: flex-start;
    color: var(--st-accent);
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--st-gold-deep);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.wr-home .wr-link:hover {
    color: var(--st-accent-hover);
    text-decoration-color: var(--st-accent);
}

.wr-home .wr-link--gold {
    color: var(--st-gold);
    text-decoration-color: rgba(214, 178, 94, .55);
}

.wr-home .wr-link--gold:hover {
    color: var(--st-gold);
    text-decoration-color: var(--st-gold);
}

.wr-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.wr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--st-radius-btn);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.wr-home .wr-btn {
    transition: background-color .15s ease;
}

.wr-btn--gold {
    background: var(--st-gold);
    color: var(--st-accent);
}

.wr-btn--gold:hover,
.wr-btn--gold:focus {
    background: var(--st-gold-deep);
    color: var(--st-accent);
}

.wr-btn--outline {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.wr-btn--outline:hover,
.wr-btn--outline:focus {
    background: rgba(255, 255, 255, .12);
    color: #FFFFFF;
}

.wr-btn--forest {
    background: var(--st-accent);
    color: #FFFFFF;
}

.wr-btn--forest:hover,
.wr-btn--forest:focus {
    background: var(--st-accent-hover);
    color: #FFFFFF;
}

/* Hero */

.wr-hero {
    position: relative;
    overflow: hidden;
    background: #0B1E14;
    color: #FFFFFF;
}

.wr-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
}

.wr-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 22, 14, .88) 0%, rgba(8, 22, 14, .7) 42%, rgba(8, 22, 14, .3) 100%);
}

.wr-hero__inner {
    position: relative;
    max-width: var(--st-shell);
    margin: 0 auto;
    padding: 128px var(--st-gutter) 112px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.st-theme .wr-hero__title {
    max-width: 640px;
    margin: 0;
    color: #FFFFFF;
    font-family: var(--st-display);
    font-size: clamp(44px, 6vw, 84px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.01em;
}

.st-theme .wr-hero__lede {
    max-width: 31em;
    margin: 0;
    color: #E6ECE6;
    font-size: 19px;
    line-height: 1.6;
}

.st-theme .wr-hero__note {
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #E6ECE6;
    font-size: 14px;
    line-height: 1.5;
}

.wr-rule {
    flex: 0 0 32px;
    width: 32px;
    height: 1px;
    background: var(--st-gold);
}

.wr-home .wr-hero__credit {
    position: absolute;
    right: 24px;
    bottom: 16px;
    max-width: min(46ch, calc(100% - 48px));
    overflow: hidden;
    color: #E6ECE6;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.wr-home .wr-hero__credit:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* About */

.wr-about__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 56px 96px;
}

.wr-about__lead {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.st-theme .wr-statement {
    max-width: 20em;
    margin: 0;
    color: var(--st-accent);
    font-family: var(--st-display);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 500;
    line-height: 1.22;
}

.wr-work {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wr-work .wr-kicker {
    margin-bottom: 8px;
}

.wr-work__item {
    padding: 18px 0;
    border-top: 1px solid var(--st-line);
}

.wr-work__item:last-child {
    border-bottom: 1px solid var(--st-line);
}

.st-theme .wr-work__title {
    margin: 0;
    color: var(--st-accent);
    font-family: var(--st-display);
    font-size: 23px;
    font-weight: 500;
    line-height: 1.25;
}

.st-theme .wr-work__text {
    margin: 6px 0 0;
    color: var(--st-muted);
    font-size: 16px;
    line-height: 1.55;
}

/* News */

.wr-news__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 48px;
}

.wr-story {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--st-ink);
    text-decoration: none;
}

.wr-story:hover {
    color: var(--st-ink);
}

.wr-story:hover .wr-story__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.wr-story--lead {
    flex: 1 1 600px;
    min-width: 0;
    gap: 18px;
}

.wr-news__side {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wr-story__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #DDE2DA;
}

.wr-story__image--wide {
    aspect-ratio: 3 / 2;
}

.wr-meta {
    color: var(--st-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.wr-story__title {
    color: var(--st-accent);
    font-family: var(--st-display);
    font-weight: 500;
}

.wr-story__title--lead {
    max-width: 20em;
    font-size: 36px;
    line-height: 1.15;
}

.wr-story__title--mid {
    font-size: 24px;
    line-height: 1.2;
}

.wr-story__title--row {
    font-size: 21px;
    line-height: 1.25;
}

.wr-story__excerpt {
    max-width: 58ch;
    color: var(--st-muted);
    font-size: 17px;
    line-height: 1.6;
}

.wr-list {
    display: flex;
    flex-direction: column;
}

.wr-story--row {
    gap: 6px;
    padding: 16px 0;
    border-top: 1px solid #C9CFC4;
}

.wr-story--row:last-child {
    border-bottom: 1px solid #C9CFC4;
}

.st-theme .wr-empty {
    margin: 0;
    color: var(--st-muted);
    font-size: 17px;
}

/* Agenda */

.wr-agenda__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 96px;
}

.wr-agenda__intro {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.st-theme .wr-agenda__text {
    max-width: 24em;
    margin: 0;
    color: #C9D6CC;
    font-size: 17px;
    line-height: 1.6;
}

.wr-agenda__list {
    flex: 2 1 560px;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wr-agenda__item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 40px;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.wr-agenda__item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.wr-agenda__date {
    flex: 0 0 220px;
    color: var(--st-gold);
    font-family: var(--st-display);
    font-size: 32px;
    line-height: 1.08;
}

.wr-agenda__body {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wr-agenda__title {
    color: #FFFFFF;
    font-family: var(--st-display);
    font-size: 26px;
    line-height: 1.2;
    text-decoration: none;
}

.wr-home a.wr-agenda__title:hover {
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.wr-agenda__detail {
    color: #C9D6CC;
    font-size: 16px;
    line-height: 1.55;
}

.wr-badge {
    align-self: flex-start;
    margin-top: 6px;
    padding: 3px 10px;
    border: 1px solid var(--st-gold);
    border-radius: 2px;
    color: var(--st-gold);
    font-size: 13px;
    font-weight: 700;
}

/* Programs */

.wr-programs__list {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--st-line);
}

.wr-program {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 48px;
    padding: 28px 0;
    border-top: 1px solid var(--st-line);
}

.st-theme .wr-program__title {
    flex: 0 0 300px;
    margin: 0;
    color: var(--st-accent);
    font-family: var(--st-display);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.1;
}

.st-theme .wr-program__text {
    flex: 1 1 360px;
    margin: 0;
    color: var(--st-muted);
    font-size: 17px;
    line-height: 1.6;
}

.wr-program .wr-link {
    flex: 0 0 auto;
}

/* Membership */

.wr-join__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px 96px;
}

.wr-join__copy {
    flex: 1 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.wr-join .wr-h2 {
    max-width: 12em;
    line-height: 1.05;
}

.st-theme .wr-join__text {
    max-width: 30em;
    margin: 0;
    color: var(--st-ink);
    font-size: 18px;
    line-height: 1.6;
}

.wr-benefits {
    flex: 1 1 460px;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px 40px;
}

.wr-benefits li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 16px;
    border-top: 2px solid var(--st-gold-deep);
}

.wr-benefits__title {
    color: var(--st-accent);
    font-family: var(--st-display);
    font-size: 22px;
    line-height: 1.2;
}

.wr-benefits__text {
    color: var(--st-muted);
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 1099.98px) {
    .wr-section {
        padding: 80px 0;
    }

    .wr-hero__inner {
        padding-top: 96px;
        padding-bottom: 96px;
    }
}

@media (max-width: 640px) {
    .wr-section,
    .wr-band,
    .wr-dark {
        padding: 64px 0;
    }

    .wr-stack {
        gap: 28px;
    }

    .wr-hero__shade {
        background: linear-gradient(180deg, rgba(8, 22, 14, .62) 0%, rgba(8, 22, 14, .86) 100%);
    }

    .wr-hero__inner {
        padding-top: 72px;
        padding-bottom: 88px;
        gap: 22px;
    }

    .st-theme .wr-hero__lede {
        font-size: 17px;
    }

    .wr-actions .wr-btn {
        flex: 1 1 100%;
    }

    .wr-home .wr-hero__credit {
        left: var(--st-gutter);
        right: var(--st-gutter);
        max-width: none;
    }

    .wr-about__grid {
        gap: 40px;
    }

    .wr-story__title--lead {
        font-size: 28px;
    }

    .wr-agenda__date {
        flex-basis: 100%;
        font-size: 26px;
    }

    .wr-agenda__title {
        font-size: 23px;
    }

    .wr-agenda__item {
        padding: 22px 0;
    }

    .st-theme .wr-program__title {
        flex-basis: 100%;
        font-size: 30px;
    }

    .wr-program {
        padding: 22px 0;
    }

    .wr-join__grid {
        gap: 40px;
    }
}
