@font-face {
    font-family: "Inter-Light";  src: url("/jakarta.faces.resource/fonts/inter/Inter_24pt-Light.ttf.xhtml?ln=default");
}

@font-face {
    font-family: "Inter-Medium";  src: url("/jakarta.faces.resource/fonts/inter/Inter_24pt-Medium.ttf.xhtml?ln=default");
}

@font-face {
    font-family: "Inter-Regular";  src: url("/jakarta.faces.resource/fonts/inter/Inter_24pt-Regular.ttf.xhtml?ln=default");
}

@font-face {
    font-family: "Inter-SemiBold";  src: url("/jakarta.faces.resource/fonts/inter/Inter_24pt-SemiBold.ttf.xhtml?ln=default");
}

@font-face {
    font-family: "Inter-Bold";  src: url("/jakarta.faces.resource/fonts/inter/Inter_24pt-Bold.ttf.xhtml?ln=default");
}

.inter-light {
    font-family: 'Inter-Light', serif;
}

.inter-medium {
    font-family: 'Inter-Medium', serif;
}

.inter-regular {
    font-family: 'Inter-Regular', serif;
}

.inter-semibold {
    font-family: 'Inter-SemiBold', serif;
}

.inter-bold {
    font-family: 'Inter-Bold', serif;
}

html {
    font-size: 16px; /* 1rem = 16px */
}

body {
    /* line-height: 1.5; */
    font-family: 'Inter-Regular', sans-serif;
    font-size: 1rem;
    @media (max-width: 600px) {
        font-size: 0.875rem;
    }
    @media (min-width: 1200px) {
        font-size: 1.125rem;
    }
}

a {
    text-decoration: none;
    color: blue;
}

.header-icon-link {
    color: var(--blue-700);
    display: inline-block;
}

.header-icon {
    transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.header-icon-link:hover .header-icon,
.header-icon-link:focus .header-icon {
    color: var(--blue-500);
    opacity: .9;
    transform: translateY(-1px);
}

.page-title {
    display: block;
    margin-bottom: .5em;
    text-transform: uppercase;
    color: var(--blue-700) !important;
    font-size: 2rem;
    @media (max-width: 600px) {
        font-size: 1.75rem;
    }
    @media (min-width: 1200px) {
        font-size: 2.25rem;
    }
}

.container-title {
    margin-bottom: .8em;
    font-weight: bold;
    color: var(--blue-700) !important;
    font-size: 1.5rem;
    @media (max-width: 600px) {
        font-size: 1.25rem;
    }
    @media (min-width: 1200px) {
        font-size: 1.75rem;
    }
}

.container-subtitle {
    margin-bottom: .8em;
    font-weight: bold !important;;
    font-size: 1.2rem !important;
    @media (max-width: 600px) {
        font-size: 1rem !important;;
    }
    @media (min-width: 1200px) {
        font-size: 1.5rem !important;;
    }
}

.container-appendix {
    margin-bottom: .8em;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    color: var(--green-700) !important;
@media (max-width: 600px) {
    font-size: 1rem !important;;
}
@media (min-width: 1200px) {
    font-size: 1.5rem !important;;
}
}

.container-remark {
    margin-bottom: 1.2em;
    margin-top: 2em;
    font-weight: bold;
}

.container-special {
    margin-bottom: 1.2em;
    font-style: italic;
}

.container-paragraph {
    margin-bottom: 1.2em;
    text-align: justify;
}

.home-citation-callout {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--blue-50);
    border: 1px solid var(--blue-300);
    border-radius: 6px;
}

.home-citation-callout-title {
    margin-bottom: .75rem;
    color: var(--blue-700);
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

.home-citation-callout-text {
    margin-bottom: 0;
    color: var(--text-color);
    text-align: justify;
}

.coverage-table thead th {
    font-size: .75rem !important;
}

.coverage-table-rotated thead th {
    rotate: -45deg !important;
    background-color: transparent !important;
}

.coverage-table {
    font-size: .9rem !important;
}

.coverage-table tbody tr td:not(:first-child) {
    text-align: center !important;
}

.ypn-agronomists-table thead {
    font-size: .9rem !important;
    display: none;
}

.image-picture-icon {
    max-width: 56px;
    max-height: 72px;
}

.image-picture-preview {
    max-width: 36px;
    max-height: 72px;
}

.image-logo-icon {
    max-width: 72px;
    max-height: 36px;
}

.image-profile-picture {
    max-width: 160px;
    max-height: 200px;
}

.image-logo {
    max-width: 300px;
    max-height: 200px;
}

.import-result-panel {
    margin: .25rem .5rem 1rem .5rem;
    background: #eff6ff;
    border: 1px solid #60a5fa;
    border-radius: 6px;
    color: #1e3a8a;
}

.import-result-panel .ui-panel-titlebar {
    background: transparent;
    border: none;
    color: #1d4ed8;
    font-weight: 700;
    padding: .75rem .9rem .25rem .9rem;
}

.import-result-panel .ui-panel-content {
    background: transparent;
    border: none;
    padding: .25rem .9rem .9rem .9rem;
}

.import-result-panel-error {
    background: #fef2f2;
    border-color: #f87171;
    color: #7f1d1d;
}

.import-result-panel-error .ui-panel-titlebar {
    color: #b91c1c;
}

.import-result-summary {
    display: block;
    margin-bottom: .65rem;
    font-weight: 600;
}

.import-result-table {
    font-size: .875rem;
}

.import-result-table .ui-datatable-tablewrapper {
    border-radius: 4px;
}

.import-result-type-column {
    width: 7rem;
    font-weight: 700;
}

.import-result-row-error td {
    background: #fee2e2;
    color: #7f1d1d;
}

.import-result-row-info td {
    background: #f8fafc;
}

.content-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--surface-300);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

.content-card-image-wrapper {
    flex: 0 0 220px;
}

.content-card-image {
    width: 220px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.content-card-body {
    flex: 1;
}

.content-card-meta,
.content-detail-meta {
    margin-bottom: .4rem;
    color: var(--blue-700);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.content-card-title {
    margin-bottom: .5rem;
    color: var(--blue-900);
    font-size: 1.35rem;
    font-weight: 700;
}

.content-card-summary,
.content-detail-summary,
.home-featured-news-summary {
    margin-bottom: .85rem;
    color: var(--text-color);
    line-height: 1.55;
}

.content-card-authors,
.content-card-doi,
.content-detail-event {
    margin-bottom: .75rem;
    color: var(--text-color-secondary);
    font-weight: 600;
}

.content-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.content-action-link {
    color: var(--blue-700) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.content-action-button {
    display: inline-block;
    padding: .5rem .9rem;
    color: #ffffff !important;
    background: var(--blue-800);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none !important;
}

.content-pill {
    display: inline-block;
    margin-left: .35rem;
    padding: .15rem .5rem;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    font-size: .75rem;
}

.content-back-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--blue-700) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.content-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.content-detail-news-flyer {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 600px;
    margin: 0 auto 1.5rem auto;
}

.content-detail-body {
    margin: 1.5rem 0;
    line-height: 1.7;
    white-space: pre-line;
}

.home-featured-news {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border: 1px solid var(--blue-200);
    border-radius: 6px;
}

.home-featured-news-top {
    width: 85%;
    margin: 0 auto 2rem auto;
}

.home-featured-news-title {
    margin-bottom: .9rem;
    color: var(--blue-700);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.home-featured-news-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--surface-300);
}

.home-featured-news-item-title {
    margin-bottom: .4rem;
    color: var(--blue-900);
    font-size: 1.05rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .home-featured-news-top {
        width: 95%;
    }

    .content-card {
        flex-direction: column;
    }

    .content-card-image-wrapper,
    .content-card-image {
        width: 100%;
        flex-basis: auto;
    }
}

.home-featured-flyers {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--blue-200);
    border-radius: 8px;
}

.home-featured-news-slot {
    margin-bottom: 1.5rem;
}

.home-featured-event-link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}

.home-featured-event-card {
    display: flex;
    gap: 1.15rem;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
    border: 1px solid var(--blue-100);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.home-featured-event-link:hover .home-featured-event-card {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.home-atlas-map-link {
    display: block;
    cursor: pointer;
    color: inherit !important;
    text-decoration: none !important;
}

.home-atlas-map-frame {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.home-atlas-map-image {
    display: block;
    transition: filter .18s ease;
}

.home-atlas-map-cta {
    position: absolute;
    right: .85rem;
    bottom: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .75rem;
    color: #ffffff;
    background: rgba(30, 64, 175, .92);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color .18s ease;
}

.home-atlas-map-link:hover .home-atlas-map-image {
    filter: contrast(1.1) saturate(1.08) brightness(.80);
}

.home-atlas-map-link:hover .home-atlas-map-cta {
    background: rgba(29, 78, 216, 1);
}

.home-featured-event-media {
    flex: 0 0 145px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-featured-event-body {
    flex: 1;
    min-width: 0;
}

.home-featured-event-eyebrow {
    margin-bottom: .45rem;
    color: var(--blue-700);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.home-featured-event-title {
    margin-bottom: .55rem;
    color: var(--blue-900);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.22;
}

.home-featured-event-summary {
    margin-bottom: .75rem;
    color: var(--text-color);
    font-size: .95rem;
    line-height: 1.45;
}

.home-featured-event-cta {
    color: var(--blue-800);
    font-size: .9rem;
    font-weight: 800;
}

.home-featured-flyer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.home-featured-flyer-link {
    display: block;
    text-decoration: none !important;
}

.home-featured-flyer-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 260px;
    margin: 0;
    aspect-ratio: 20 / 27;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
}

.home-featured-flyer-placeholder {
    min-height: 180px;
    padding: 1rem;
    background: #ffffff;
    border: 1px dashed var(--blue-300);
    border-radius: 7px;
}

.content-admin-flyer-thumb {
    width: 54px;
    height: 73px;
    object-fit: cover;
    border-radius: 4px;
}

.content-admin-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
}

.content-admin-image-cell {
    position: relative;
    display: block;
    width: 80px;
    max-width: 80px;
    max-height: 80px;
    margin: 0 auto;
}

.content-admin-image-wrapper {
    display: block;
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.content-admin-upload-placeholder {
    display: flex;
    width: 32px;
    height: 32px;
    max-width: 80px;
    max-height: 80px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--blue-500);
    border-radius: 4px;
    font-size: 1.5rem;
    margin: 0 auto;
}

.content-admin-upload-icon {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}

.content-admin-remove-file {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: #b91c1c;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: .8rem;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .25);
}

.content-admin-file-field {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.content-admin-file-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.content-admin-file-icon {
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--blue-500);
    border-radius: 4px;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .home-featured-event-card {
        flex-direction: column;
        align-items: stretch;
    }

    .home-featured-event-media {
        flex-basis: auto;
    }

    .home-featured-flyer-image {
        max-height: 350px;
        margin: 0 auto;
    }

    .home-featured-flyer-grid {
        grid-template-columns: 1fr;
    }
}
