/* Scoped public layouts; the original navigation and other sections keep their styles. */
.content-hero.page-heading {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.content-hero h1 {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.content-breadcrumb .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
}

.content-breadcrumb .breadcrumb li {
    min-width: 0;
    overflow-wrap: anywhere;
}

.company-page,
.awards-page {
    background: #fffff;
    padding: 48px 0 64px;
}

.content-paper {
    padding: 36px;
    background: #fff;
    border: 1px solid #e2eae4;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(20, 48, 30, .035);
}

.company-page .content-media {
    margin: 0 0 28px;
    text-align: center;
}

.company-page .content-media img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

.company-page .content-media:last-child {
    margin-bottom: 0;
}

.company-page .page-content {
    color: #435148;
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.company-page:not(.organization-page) .page-content {
    max-width: 960px;
    margin: 0 auto;
}

.company-page .page-content> :first-child {
    margin-top: 0;
}

.company-page .page-content> :last-child {
    margin-bottom: 0;
}

.company-page .page-content p {
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 18px;
    text-align: left;
}

.company-page .page-content h2,
.company-page .page-content h3,
.company-page .page-content h4 {
    color: #183d26;
    font-weight: 600;
    line-height: 1.5;
    margin: 28px 0 14px;
}

.company-page .page-content ul,
.company-page .page-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.company-page .page-content ul {
    list-style: disc;
}

.company-page .page-content ol {
    list-style: decimal;
}

.company-page .page-content li {
    margin: 6px 0;
}

.company-page .page-content img {
    max-width: 100% !important;
    height: auto !important;
}

.company-page .page-content :where(div, p, figure) {
    max-width: 100%;
}

.company-page .page-content iframe,
.company-page .page-content video,
.company-page .page-content object,
.company-page .page-content embed {
    max-width: 100%;
}

.company-page .page-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.company-page .page-content th,
.company-page .page-content td {
    padding: 10px 14px;
    border: 1px solid #e2eae4;
}

.company-page .page-content a {
    color: #116530;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.organization-page .page-content {
    overflow-x: auto;
}

.organization-page .page-content img {
    display: block;
    margin: 0 auto;
}

.content-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e2eae4;
}

.content-toolbar p {
    margin: 0;
    color: #657269;
    flex: 1 1 280px;
}

.content-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 16px;
    min-height: 44px;
    border: 1px solid #cedfd2;
    border-radius: 8px;
    color: #116530;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.content-action:hover {
    color: #fff;
    background: #116530;
    border-color: #116530;
}

.content-footer {
    border-top: 1px solid #e2eae4;
    padding-top: 24px;
    margin-top: 30px;
}

.content-empty {
    grid-column: 1 / -1;
    color: #68766c;
    text-align: center;
    padding: 36px 20px;
    margin: 0;
    background: #fff;
    border: 1px dashed #d6e3d9;
    border-radius: 10px;
}

.content-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.content-section-heading p {
    max-width: 740px;
    margin: 0;
    color: #526258;
}

.content-count {
    background: #eaf3ec;
    color: #116530;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.award-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e2eae4;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.award-card:hover {
    border-color: #93b49d;
    box-shadow: 0 8px 24px rgba(20, 48, 30, .07);
}

.award-card-image {
    aspect-ratio: 16 / 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f4f0;
    padding: 18px;
    border-bottom: 1px solid #e2eae4;
}

.award-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.award-card-image>i {
    font-size: 48px;
    color: #719a7c;
}

.award-card-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.award-card-copy h2 {
    font-size: 18px;
    line-height: 1.6;
    color: #203e2b;
    font-weight: 600;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.award-card-copy p {
    color: #657269;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-read-more {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: #116530;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    margin-top: auto;
}

.content-read-more:hover {
    color: #0a431e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.award-detail-page .award-certificate {
    margin-top: 28px;
}

.award-certificate figcaption {
    color: #68766c;
    font-size: 12px;
    margin-top: 14px;
}

.home-latest-news,
.home-partners {
    padding: 64px 0;
}

.home-latest-news {
    background: #fff;
}

.home-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 30px;
}

.home-section-heading>div {
    max-width: 750px;
}

.home-section-heading h2 {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.4;
    font-weight: 600;
    color: #223c2b;
}

.home-section-heading h2 span {
    color: #116530;
}

.home-section-heading p {
    margin: 0;
    color: #657269;
}

.home-section-heading>.content-action {
    flex-shrink: 0;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e2eae4;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.home-news-image {
    display: block;
    aspect-ratio: 16 / 10;
    background: #eef3ef;
    overflow: hidden;
}

.home-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}

.home-news-card:hover .home-news-image img {
    transform: scale(1.025);
}

.home-news-copy {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-news-copy time {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6c7b70;
    font-size: 12px;
    margin-bottom: 12px;
}

.home-news-copy h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.home-news-copy h3 a {
    color: #203e2b;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.home-news-copy h3 a:hover {
    color: #116530;
}

.home-news-copy p {
    font-size: 13px;
    color: #657269;
    line-height: 1.8;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.home-news-copy .content-read-more {
    padding-top: 4px;
}

.home-partners {
    background: #f9f9f9;
}

.home-partners .about-area {
    padding: 0;
    background: transparent;
}

/* Flatten the original six-logo rows so admin-saved section markup also wraps cleanly. */
.home-partners .container {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.home-partners .container::before,
.home-partners .container::after,
.home-partners .container>.row::before,
.home-partners .container>.row::after {
    display: none;
}

.home-partners .container>.row {
    display: contents;
}

.home-partners .site-heading {
    grid-column: 1 / -1;
    margin: 0 0 12px;
    text-align: left;
}

.home-partners .site-heading>div {
    width: 100%;
    padding: 0;
    float: none;
    text-align: left;
}

.home-partners .site-heading h2 {
    font-size: 30px;
    font-weight: 600;
    text-transform: none;
    color: #223c2b;
    line-height: 1.4;
    margin: 0;
    padding-bottom: 18px;
    text-align: left;
}

.home-partners .site-heading h2::before {
    left: 30px;
    margin-left: 0;
}

.home-partners .site-heading h2::after {
    left: 0;
    margin-left: 0;
}

.home-partners .container>.row>[class*="col-"] {
    width: auto;
    float: none;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 132px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2eae4;
    border-radius: 10px;
}

.home-partners .container>.row>[class*="col-"] img {
    display: block;
    max-width: 100% !important;
    max-height: 88px;
    width: auto;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain;
}

.company-page a:focus-visible,
.awards-page a:focus-visible,
.home-latest-news a:focus-visible {
    outline: 3px solid #83b493;
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .content-paper {
        padding: 28px;
    }

    .awards-grid,
    .home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .home-partners .container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .content-hero.page-heading {
        padding: 64px 0;
        background-attachment: scroll;
    }

    .company-page,
    .awards-page {
        padding: 28px 0 40px;
    }

    .content-paper {
        padding: 20px;
        border-radius: 10px;
    }

    .company-page .page-content {
        font-size: 14px;
        line-height: 1.85;
    }

    .content-toolbar {
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .content-toolbar .content-action {
        width: 100%;
    }

    .home-latest-news,
    .home-partners {
        padding: 40px 0;
    }

    .home-section-heading h2,
    .home-partners .site-heading h2 {
        font-size: 26px;
    }

    .awards-grid,
    .home-news-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .award-card-copy,
    .home-news-copy {
        padding: 20px;
    }

    .home-partners .container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .home-partners .container>.row>[class*="col-"] {
        height: 104px;
        padding: 14px;
    }

    .home-partners .container>.row>[class*="col-"] img {
        max-height: 72px;
    }
}

@media (max-width: 379px) {
    .home-partners .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-news-image img,
    .award-card {
        transition: none;
    }

    .home-news-card:hover .home-news-image img {
        transform: none;
    }
}

/* News archive and article pages. */
.news-list-page {
    padding: 40px 0 56px;
    background: #fffff;
}

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
}

.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #dce6de;
    border-radius: 24px;
    background: #fff;
    color: #526359;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.news-categories a:hover {
    border-color: #116530;
    color: #116530;
}

.news-categories a.is-active {
    background: #116530;
    border-color: #116530;
    color: #fff;
}

.news-search {
    display: flex;
    width: 320px;
    max-width: 100%;
    min-height: 46px;
    background: #fff;
    border: 1px solid #dce6de;
    border-radius: 8px;
}

.news-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0;
    border-radius: 8px 0 0 8px;
    padding: 10px 14px;
    background: transparent;
    color: #263f2e;
    font-size: 14px;
}

.news-search button {
    flex-shrink: 0;
    width: 46px;
    min-height: 44px;
    border: 0;
    border-left: 1px solid #dce6de;
    border-radius: 0 8px 8px 0;
    color: #116530;
    background: #eef5ef;
    cursor: pointer;
}

.news-search button:hover {
    color: #fff;
    background: #116530;
}

.news-search-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 22px;
}

.news-search-summary p {
    margin: 0;
    color: #647269;
    overflow-wrap: anywhere;
}

.news-search-summary a {
    color: #116530;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.news-grid .home-news-copy {
    padding: 26px;
}

.news-grid .home-news-copy h3 {
    font-size: 20px;
}

.news-grid .home-news-copy p {
    font-size: 14px;
}

.news-grid .home-news-card {
    box-shadow: 0 3px 16px rgba(20, 48, 30, .025);
}

.news-grid .home-news-card:hover,
.news-grid .home-news-card:focus-within {
    border-color: #a9c6b1;
}

.news-grid .content-empty>i {
    display: block;
    color: #91a997;
    font-size: 34px;
    margin-bottom: 16px;
}

.news-grid .content-empty p {
    margin: 0 0 8px;
}

.news-grid .content-empty p:last-child {
    margin: 0;
}

.news-pagination {
    margin-top: 32px;
    text-align: center;
}

.news-pagination .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.news-pagination .pagination>li {
    display: block;
}

.news-pagination .pagination>li>a,
.news-pagination .pagination>li>span {
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 44px;
    padding: 8px 12px;
    margin: 0;
    border: 1px solid #dce6de;
    border-radius: 8px;
    color: #116530;
    background: #fff;
}

.news-pagination .pagination>.active>span {
    color: #fff;
    background: #116530;
    border-color: #116530;
}

.news-pagination .pagination>.disabled>span {
    color: #939e96;
    background: #f2f5f2;
}

.news-pagination .pagination>li>a:hover {
    background: #eaf3ec;
}

.news-related {
    padding: 48px 0 60px;
    background: #fff;
}

.news-related .home-section-heading {
    margin-bottom: 28px;
}

.news-related .home-section-heading h2 {
    margin-bottom: 0;
}

.news-detail-page .news-article {
    max-width: 980px;
    margin: 0 auto;
}

.news-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid #e2eae4;
    color: #68766c;
    font-size: 12px;
}

.news-article-meta time,
.news-article-meta>span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.news-category-badge {
    border-radius: 20px;
    background: #edf5ee;
    color: #116530;
    padding: 6px 12px;
    font-weight: 600;
}

.news-category-badge:hover {
    color: #fff;
    background: #116530;
}

.company-page.news-detail-page .page-content {
    max-width: 820px;
    font-size: 16px;
    line-height: 1.95;
}

.company-page.news-detail-page .page-content blockquote {
    padding: 18px 24px;
    margin: 24px 0;
    background: #f3f7f3;
    border-left: 3px solid #116530;
    color: #365140;
    font-size: inherit;
}

.news-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 26px;
    margin-top: 32px;
    border-top: 1px solid #e2eae4;
}

.news-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.news-share>span {
    color: #68766c;
    font-size: 13px;
}

.news-share-links {
    display: flex;
    gap: 8px;
}

.news-share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dce6de;
    border-radius: 50%;
    color: #116530;
    background: #fff;
    font-size: 17px;
}

.news-share-links a:hover {
    background: #116530;
    color: #fff;
    border-color: #116530;
}

.news-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.news-post-navigation a {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e2eae4;
    border-radius: 10px;
    background: #f8faf8;
}

.news-post-navigation a:hover {
    border-color: #94b6a0;
    background: #f0f6f1;
}

.news-post-navigation span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #69806f;
    margin-bottom: 8px;
}

.news-post-navigation strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #23402d;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.news-post-navigation .news-post-next {
    grid-column: 2;
    text-align: right;
}

.news-post-next span {
    justify-content: flex-end;
}

.news-list-page a:focus-visible,
.news-related a:focus-visible,
.news-search input:focus-visible,
.news-search button:focus-visible {
    outline: 3px solid #83b493;
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .news-grid {
        gap: 20px;
    }

    .news-grid .home-news-copy {
        padding: 22px;
    }

    .news-grid .home-news-copy h3 {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .news-list-page {
        padding: 26px 0 40px;
    }

    .news-toolbar {
        gap: 14px;
        margin-bottom: 22px;
    }

    .news-search {
        width: 100%;
    }

    .news-categories a {
        padding: 9px 14px;
    }

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .news-grid .home-news-copy {
        padding: 20px;
    }

    .news-related {
        padding: 34px 0 40px;
    }

    .news-article-meta {
        gap: 10px 16px;
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .company-page.news-detail-page .page-content {
        font-size: 15px;
        line-height: 1.9;
    }

    .news-post-navigation {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .news-post-navigation .news-post-next {
        grid-column: auto;
    }

    .news-article-footer {
        align-items: flex-start;
    }

    .news-pagination .pagination {
        gap: 4px;
    }

    .news-pagination .pagination>li>a,
    .news-pagination .pagination>li>span {
        min-width: 36px;
        padding: 8px 10px;
    }
}
/* Contact and publication pages share the original IOPRI green identity. */
.contact-page, .notes-page { padding: 52px 0 64px; background: #f7f9f7; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.contact-details { padding-top: 12px; }
.contact-eyebrow { color: #00773b; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; }
.contact-details h2 { margin: 14px 0 10px; font-size: 30px; line-height: 1.35; }
.contact-details p, .contact-paper > p, .notes-heading p { color: #617068; line-height: 1.8; }
.contact-details .contact-subtitle { font-style: italic; margin-bottom: 22px; }
.contact-channels { padding: 0; margin: 28px 0 0; list-style: none; }
.contact-channels li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid #dfe8e1; }
.contact-channels li > i { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; background: #e8f2eb; border-radius: 10px; color: #00773b; font-size: 18px; }
.contact-channels h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.contact-channels p { margin: 0; }
.contact-channels a { color: #006b36; overflow-wrap: anywhere; }
.contact-paper { padding: 32px; border: 1px solid #e0e8e2; border-radius: 12px; background: white; box-shadow: 0 8px 30px #153c2410; }
.contact-paper h2, .contact-map h2, .notes-heading h2 { font-size: 25px; margin: 0 0 12px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-field label { display: block; font-size: 14px; margin-bottom: 8px; color: #263d2e; }
.contact-field input, .contact-field textarea { display: block; width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #cedbd2; border-radius: 6px; background: #fff; color: #243c2c; font: inherit; box-shadow: none; }
.contact-field textarea { resize: vertical; min-height: 150px; }
.contact-field input:focus, .contact-field textarea:focus { outline: 2px solid #00773b; outline-offset: 2px; }
.contact-field [aria-invalid="true"] { border-color: #b42318; }
.contact-field .contact-error { color: #b42318; font-size: 13px; margin: 6px 0 0; }
.contact-submit, .note-document { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: #00773b; color: #fff; border: 1px solid #00773b; border-radius: 6px; padding: 12px 22px; font-weight: 600; font-size: 14px; }
.contact-submit:hover, .note-document:hover, .note-document:focus { background: #005c2e; color: #fff; }
.contact-submit:focus-visible, .notes-page a:focus-visible, .contact-page a:focus-visible { outline: 3px solid #d7aa38; outline-offset: 4px; }
.contact-map { margin-top: 44px; border: 1px solid #dfe8e1; border-radius: 12px; overflow: hidden; background: #fff; }
.contact-map-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 26px; }
.contact-map-heading h2 { margin: 0; font-size: 20px; }
.contact-map-heading a { color: #00773b; font-size: 14px; }
.contact-map iframe { display: block; width: 100%; height: 340px; border: 0; }
.notes-heading { max-width: 720px; margin-bottom: 30px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.note-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #dfe8e1; border-radius: 10px; overflow: hidden; }
.note-cover { aspect-ratio: 4 / 5; padding: 20px; background: #edf1ec; border-bottom: 1px solid #e2e8e1; }
.note-cover > a { display: block; height: 100%; }
.note-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.note-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #68816d; }
.note-placeholder[hidden], .note-cover [hidden] { display: none; }
.note-placeholder i { font-size: 48px; }
.note-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.note-body h3 { font-size: 18px; line-height: 1.6; margin: 0 0 22px; overflow-wrap: anywhere; }
.note-actions { margin-top: auto; }
.note-document { font-size: 13px; padding: 10px 16px; }
.note-unavailable { color: #69786d; font-size: 13px; }
.notes-empty { grid-column: 1 / -1; text-align: center; padding: 56px 24px; background: #fff; border: 1px solid #dfe8e1; border-radius: 10px; }
.notes-empty > i { font-size: 40px; color: #00773b; margin-bottom: 20px; }
@media (max-width: 991px) {
    .contact-layout { grid-template-columns: 1fr; gap: 30px; }
    .contact-details h2 br { display: none; }
    .notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 575px) {
    .contact-page, .notes-page { padding: 32px 0 40px; }
    .contact-paper { padding: 24px 18px; }
    .contact-fields, .notes-grid { grid-template-columns: 1fr; }
    .contact-details h2 { font-size: 26px; }
    .contact-submit { width: 100%; }
    .contact-map-heading { padding: 20px; }
    .contact-map iframe { height: 280px; }
}

.related-products { padding: 48px 0 64px; background: #f5f8f5; border-top: 1px solid #e3ebe4; }
.related-products-heading { margin-bottom: 28px; }
.related-products-heading > span { font-size: 11px; font-weight: 700; color: #64766a; letter-spacing: 1.6px; }
.related-products-heading h2 { font-size: 28px; line-height: 1.4; margin: 8px 0 0; }
.related-products-heading h2 span { color: #00773b; }
.related-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.related-product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #dfe8e1; border-radius: 12px; background: #fff; overflow: hidden; color: #243c2c; transition: border-color .2s, box-shadow .2s; }
.related-product-card:hover { border-color: #88b599; box-shadow: 0 8px 24px rgba(27, 67, 39, .09); }
.related-product-card:focus-visible { outline: 3px solid #00773b; outline-offset: 4px; }
.related-product-image { aspect-ratio: 4 / 3; padding: 18px; background: #fff; border-bottom: 1px solid #edf1ed; }
.related-product-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.related-product-placeholder { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #718577; font-size: 12px; font-weight: 400; text-align: center; }
.related-product-placeholder i { font-size: 32px; color: #8ba892; }
.related-product-image [hidden] { display: none; }
.related-product-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.related-product-body h3 { font-size: 16px; font-weight: 600; line-height: 1.6; margin: 0 0 22px; overflow-wrap: anywhere; color: #243c2c; }
.related-product-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; font-size: 13px; color: #00773b; }
@media (max-width: 1199px) { .related-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) { .related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 575px) {
    .related-products { padding: 32px 0 40px; }
    .related-products-grid { grid-template-columns: 1fr; }
    .related-products-heading h2 { font-size: 24px; }
}

/* Publication archives and PPKS TV. */
.publication-page { padding: 48px 0 64px; background: #f7f9f7; }
.publication-heading { max-width: 760px; margin-bottom: 28px; }
.publication-heading h2 { font-size: 26px; line-height: 1.4; margin: 0 0 10px; }
.publication-heading p { color: #627268; line-height: 1.8; margin: 0; }
.publication-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.publication-card { display: flex; min-width: 0; flex-direction: column; background: #fff; border: 1px solid #dfe8e1; border-radius: 12px; overflow: hidden; color: #293e30; transition: border-color .2s, box-shadow .2s; }
.publication-card:hover { border-color: #9dbda6; box-shadow: 0 8px 24px rgba(25, 63, 37, .07); }
.publication-cover { aspect-ratio: 4 / 5; padding: 22px; background: #edf1ec; border-bottom: 1px solid #dfe8e1; }
.publication-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.publication-placeholder { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 18px; text-align: center; color: #6a806e; overflow-wrap: anywhere; }
.publication-placeholder i { font-size: 46px; }
.publication-cover [hidden], .video-thumbnail [hidden] { display: none; }
.publication-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.publication-meta { display: block; font-size: 11px; line-height: 1.7; letter-spacing: .8px; font-weight: 600; color: #667e6e; }
.publication-body h3 { font-size: 18px; line-height: 1.6; margin: 10px 0 18px; color: #263e2e; overflow-wrap: anywhere; }
.publication-body p { color: #6a796e; font-weight: 400; margin-bottom: 22px; }
.publication-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid #e8eee8; font-size: 13px; color: #00773b; }
.publication-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; }
.publication-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 11px 16px; border: 1px solid #00773b; border-radius: 6px; background: #00773b; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.6; }
.publication-button:hover, .publication-button:focus { color: #fff; background: #005c2e; }
.publication-preview { display: inline-flex; align-items: center; gap: 10px; color: #00773b; font-size: 13px; font-weight: 600; }
.publication-unavailable { font-size: 13px; color: #6c786f; }
.publication-page a:focus-visible { outline: 3px solid #d7aa38; outline-offset: 4px; }
.publication-empty { grid-column: 1 / -1; padding: 52px 24px; border: 1px solid #dfe8e1; border-radius: 12px; background: #fff; text-align: center; }
.publication-empty > i { font-size: 42px; color: #00773b; margin-bottom: 22px; }
.publication-empty h3 { font-size: 22px; }
.publication-empty p { color: #627268; }
.publication-empty .publication-button { margin-top: 12px; }
.journal-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.journal-edition { min-width: 0; }
.journal-edition .publication-cover { border: 1px solid #dfe8e1; border-radius: 10px; }
.journal-edition > a { margin-top: 20px; }
.journal-articles { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
.journal-article { background: #fff; border: 1px solid #dfe8e1; border-radius: 10px; padding: 26px; }
.journal-article h3 { font-size: 19px; line-height: 1.6; margin: 10px 0 12px; overflow-wrap: anywhere; }
.journal-writers { color: #627268; line-height: 1.8; overflow-wrap: anywhere; }
.journal-article .publication-button { margin-top: 6px; }
.video-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.video-heading .publication-heading { margin-bottom: 0; max-width: 680px; }
.video-heading > a { flex-shrink: 0; }
.video-thumbnail { position: relative; aspect-ratio: 16 / 9; background: #e5ede6; overflow: hidden; }
.video-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 90, 44, .92); color: #fff; box-shadow: 0 3px 20px #0003; }
.video-play i { margin-left: 3px; }
.video-card:hover .video-play { background: #00773b; }
.video-card .publication-body h3 { font-size: 17px; }
@media (max-width: 991px) {
    .publication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .journal-detail-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
    .video-heading { flex-direction: column; }
}
@media (max-width: 767px) {
    .journal-detail-layout { grid-template-columns: 1fr; }
    .journal-edition { max-width: 360px; width: 100%; margin: 0 auto; }
}
@media (max-width: 575px) {
    .publication-page { padding: 32px 0 40px; }
    .publication-grid { grid-template-columns: 1fr; }
    .publication-heading h2 { font-size: 23px; }
    .publication-body, .journal-article { padding: 20px; }
}
