:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #17211c;
    background: #f6f8f5;
    font-synthesis: none;
    line-height: 1.6;
    --green-950: #0b2e20;
    --green-900: #123f2c;
    --green-800: #145a3a;
    --green-700: #177046;
    --green-100: #e7f2eb;
    --gold-700: #8c5707;
    --gold-500: #d5a339;
    --ink: #17211c;
    --muted: #5b685f;
    --line: #d8e1da;
    --paper: #fff;
    --shell: min(1180px, calc(100% - 2rem));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #f6f8f5; overflow-x: hidden; }
body, button, input { font: inherit; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green-800); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f4be46; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .7rem 1rem; color: #fff; background: var(--green-950); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.content-shell { width: var(--shell); margin-inline: auto; }

.public-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgb(20 90 58 / 12%); background: rgb(255 255 255 / 94%); box-shadow: 0 8px 30px rgb(11 46 32 / 5%); backdrop-filter: blur(14px); }
.header-inner { display: flex; width: min(1280px, calc(100% - 4rem)); min-height: 88px; margin-inline: auto; padding-block: .75rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.public-brand { display: flex; min-width: 0; align-items: center; gap: .75rem; color: var(--green-950); text-decoration: none; }
.public-brand img { width: 52px; height: 52px; flex: 0 0 auto; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 1.5rem; line-height: 1.25; letter-spacing: .08em; }
.brand-copy small { color: var(--muted); font-size: 1rem; line-height: 1.3; }
.public-navigation { display: flex; align-items: center; gap: clamp(1.5rem, 2.2vw, 2rem); }
.public-navigation a { position: relative; color: #34443a; font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.public-navigation a::after { position: absolute; right: 0; bottom: -.55rem; left: 0; height: 2px; content: ""; background: var(--gold-500); transform: scaleX(0); transition: transform 160ms ease; }
.public-navigation a:hover::after, .public-navigation a[aria-current="page"]::after { transform: scaleX(1); }
.public-navigation a[aria-current="page"] { color: var(--green-800); }
.mobile-menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); color: var(--green-950); background: #fff; border-radius: 9px; }
.mobile-menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: currentColor; }

.home-hero, .detail-hero { position: relative; color: #fff; background: linear-gradient(120deg, rgb(11 46 32 / 98%), rgb(20 90 58 / 94%)), repeating-linear-gradient(45deg, transparent 0 24px, rgb(255 255 255 / 4%) 24px 25px); overflow: hidden; }
.home-hero::after { position: absolute; width: 420px; height: 420px; right: -160px; bottom: -260px; content: ""; border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%; box-shadow: 0 0 0 64px rgb(255 255 255 / 3%), 0 0 0 128px rgb(255 255 255 / 2%); }
.home-hero .hero-grid { position: relative; z-index: 1; display: grid; width: min(1280px, calc(100% - 4rem)); padding-block: clamp(5rem, 6vw, 6rem); align-items: start; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; }
.section-label, .card-kicker, .agency-label, .panel-label { margin: 0 0 .55rem; color: var(--gold-700); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.light-label { color: #f4c762; }
.home-hero .hero-copy { min-width: 0; }
.home-hero .hero-wordmark { width: 100%; max-width: 640px; margin: 0; line-height: 1; }
.home-hero .hero-wordmark img { width: 100%; height: auto; object-fit: contain; }
.home-hero .hero-subtitle { max-width: 640px; margin: .5rem 0 0; color: #eef6f1; font-size: 2rem; font-weight: 700; line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere; }
.home-hero .hero-description { max-width: 640px; margin: 1.5rem 0 0; color: rgb(255 255 255 / 84%); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.hero-actions, .card-actions { display: flex; margin-top: 1.7rem; align-items: center; flex-wrap: wrap; gap: .8rem; }
.button, .admin-links a { display: inline-flex; width: fit-content; min-height: 44px; padding: .72rem 1rem; border: 1px solid transparent; align-items: center; justify-content: center; color: #fff; background: var(--green-800); border-radius: 9px; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-light { color: var(--green-950); background: #fff; }
.button-outline-light { border-color: rgb(255 255 255 / 42%); background: transparent; }
.button-secondary, .secondary { background: #4d5b52; }
.home-hero .agency-card { min-width: 0; width: 100%; max-width: 480px; padding: 1.5rem 2rem; border: 1px solid rgb(255 255 255 / 18%); background: rgb(255 255 255 / 6%); border-radius: 20px; }
.home-hero .agency-identity { display: grid; gap: 1rem; align-items: center; }
.home-hero .agency-card img { width: 96px; height: 96px; object-fit: contain; }
.home-hero .agency-card h2 { min-width: 0; margin: 0; font-size: 1.5rem; line-height: 1.333333; text-wrap: balance; overflow-wrap: anywhere; }
.home-hero .agency-label { margin: 0 0 1.5rem; color: #d7e8dc; font-size: 1rem; line-height: 1.5; letter-spacing: .1em; }
.agency-contact-card img { width: 94px; height: 94px; flex: 0 0 auto; object-fit: contain; }

.section-block { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.home-hero + .section-block { padding-top: clamp(3rem, 4vw, 4rem); }
.agency-greeting-section { padding-bottom: clamp(3rem, 4vw, 4rem); color: var(--ink); background: #f1f6f2; }
.agency-greeting-grid { display: grid; align-items: center; grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.agency-greeting-grid.is-text-only { grid-template-columns: minmax(0, 820px); }
.agency-greeting-copy { min-width: 0; }
.agency-greeting-heading { margin-bottom: .5rem; font-size: 1rem; line-height: 1.5rem; }
.agency-greeting-body { max-width: 760px; color: #34463d; font-size: 1rem; line-height: 1.7; }
.agency-greeting-body p { margin: 0; }
.agency-greeting-body p + p { margin-top: 1rem; }
.agency-head-profile { display: flex; min-width: 0; margin: 0; align-self: center; align-items: center; flex-direction: column; text-align: center; }
.agency-head-photo { display: flex; width: 100%; min-width: 0; justify-content: center; }
.agency-head-photo img { width: min(100%, 250px); height: auto; max-height: 360px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 14px 14px rgb(11 46 32 / 10%)); }
.agency-head-identity { width: 100%; min-width: 0; margin-top: 1rem; }
.agency-head-name { margin: 0; color: var(--green-950); font-size: clamp(.82rem, 1.15vw, 1rem); font-weight: 800; line-height: 1.4; white-space: nowrap; }
.agency-head-title { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; font-weight: 600; line-height: 1.45; }
.agency-head-title span { display: block; }
.training-section { background: linear-gradient(rgb(255 255 255 / 97%), rgb(255 255 255 / 97%)), radial-gradient(circle at 1px 1px, #145a3a 1px, transparent 0); background-size: auto, 22px 22px; }
.training-section, .map-section, .publication-section { padding-block: clamp(4rem, 5vw, 5rem); }
.map-section { background: #f1f6f2; }
.map-preview-button { flex: 0 0 auto; }
.publication-section { background: #fff; }
.publication-preview-button { flex: 0 0 auto; }
.section-heading { max-width: 760px; margin-bottom: 2.3rem; }
.section-heading h2, .page-hero h1, .detail-hero h1 { margin: 0; color: var(--green-950); font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > div > p:last-child, .page-hero p:last-child { margin: .85rem 0 0; color: var(--muted); }
.split-heading { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 2rem; }
.split-heading > div { max-width: 760px; }
.home-section-heading { align-items: flex-start; }
.home-section-heading > div { width: 58%; max-width: 700px; }
.home-section-heading .section-label { margin-bottom: .5rem; font-size: 1rem; line-height: 1.5rem; }
.home-section-heading h2 { font-size: 2rem; line-height: 2.5rem; letter-spacing: -.02em; white-space: nowrap; }
.home-section-heading > div > p:last-child { margin-top: .5rem; font-size: 1rem; line-height: 1.5rem; }
.home-section-cta { flex: 0 0 auto; margin-top: 2rem; font-size: 1rem; }
.text-link { color: var(--green-800); font-weight: 800; text-decoration: none; white-space: nowrap; }
.training-grid, .publication-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.training-card, .publication-card { min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 16px; box-shadow: 0 16px 45px rgb(11 46 32 / 6%); overflow: hidden; }
.training-card, .publication-card { display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 16 / 9; background: #dfece4; overflow: hidden; }
.card-media img, .detail-cover:not(.media-fallback) { width: 100%; height: 100%; object-fit: cover; }
.publication-media { background: #edf3ef; }
.publication-media img { display: block; object-fit: cover; object-position: center; }
.media-fallback { display: grid; width: 100%; height: 100%; color: rgb(255 255 255 / 80%); background: linear-gradient(135deg, rgb(11 46 32 / 94%), rgb(23 112 70 / 84%)), repeating-linear-gradient(45deg, transparent 0 18px, rgb(255 255 255 / 5%) 18px 19px); place-items: center; }
.media-fallback span { font-size: 2rem; font-weight: 800; letter-spacing: .12em; }
.publication-fallback { background: linear-gradient(135deg, #163c2b, #9a6b12); }
.status-pill { position: absolute; top: .85rem; right: .85rem; padding: .35rem .55rem; color: #fff; background: var(--green-800); border-radius: 99px; font-size: .68rem; font-weight: 800; }
.status-pendaftaran-ditutup, .status-selesai { background: #46534b; }
.status-akan-datang { color: #402d00; background: #f4c762; }
.card-body { padding: 1.25rem; }
.training-card .card-body, .publication-card .card-body { display: flex; flex: 1; flex-direction: column; }
.card-body h3 { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.card-body h3 a { color: var(--green-950); text-decoration: none; }
.card-summary { margin: .7rem 0 0; color: var(--muted); font-size: .93rem; }
.training-card .card-body h3, .publication-card .card-body h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; }
.training-card .card-body h3 { height: 3.9em; max-height: 3.9em; -webkit-line-clamp: 3; }
.publication-card .card-body h3 { min-height: 3.1em; -webkit-line-clamp: 2; }
.training-card .card-summary, .publication-card .card-summary { display: -webkit-box; min-height: 4.65em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.publication-card .card-body h3 { min-height: 2.6em; }
.line-clamp { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.compact-facts, .detail-facts { display: grid; margin: 1rem 0 0; gap: .65rem; }
.compact-facts div, .detail-facts div { display: grid; align-items: start; gap: .75rem; }
.compact-facts div { grid-template-columns: 112px minmax(0, 1fr); }
.compact-facts dt, .detail-facts dt { color: #718078; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.compact-facts dd, .detail-facts dd { margin: 0; overflow-wrap: anywhere; }
.card-actions { justify-content: space-between; border-top: 1px solid #edf1ee; padding-top: 1rem; }
.publication-card .card-actions { margin-top: auto; }
.card-actions time, .registration-ready { color: var(--muted); font-size: .76rem; font-weight: 700; }
.training-actions { display: grid; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #edf1ee; gap: .75rem; }
.training-card .training-actions { margin-top: auto; }
.training-action-group { display: flex; min-width: 0; flex-wrap: wrap; gap: .625rem; }
.training-registration-actions, .training-navigation-actions { display: grid; }
.training-registration-actions .training-action, .training-navigation-actions .training-action { width: 100%; }
.training-action { display: inline-flex; min-height: 40px; padding: .58rem .8rem; border: 1px solid transparent; align-items: center; justify-content: center; border-radius: 9px; font-size: .84rem; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; }
.training-action-detail { border-color: #bfd0c4; color: var(--green-800); background: #f5f9f6; }
.training-action-primary { color: #fff; background: var(--green-800); }
.training-action-secondary { border-color: var(--green-800); color: var(--green-800); background: #fff; }
.training-action-execution { color: #342600; background: #f4c762; }
.training-execution-actions { margin-top: .25rem; padding-top: .75rem; border-top: 1px dashed #c9d5cc; }
.training-action-group-label { width: 100%; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.empty-state, .map-unavailable, .public-disclaimer { padding: 1.4rem; border: 1px dashed #b7c7bc; color: var(--muted); background: #fff; border-radius: 14px; }
.list-summary { margin-bottom: 1.5rem; color: var(--muted); }
.public-pagination { margin-top: 2.25rem; }
.public-pagination-items { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.public-pagination a { text-decoration: none; }
.public-pagination-page, .public-pagination-direction, .public-pagination-ellipsis { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; font-size: 1rem; line-height: 1; }
.public-pagination-page { width: 40px; border: 1px solid #b9cbbf; color: var(--green-800); background: #fff; border-radius: 8px; font-weight: 800; }
.public-pagination-direction { min-width: 112px; padding-inline: .85rem; border: 1px solid var(--green-800); color: var(--green-800); background: #fff; border-radius: 8px; font-weight: 800; }
.public-pagination-page:hover, .public-pagination-page:focus-visible, .public-pagination-direction:hover, .public-pagination-direction:focus-visible { color: #fff; background: var(--green-800); outline: 3px solid rgb(20 90 58 / 20%); outline-offset: 2px; }
.public-pagination-page.is-active { border-color: var(--green-800); color: #fff; background: var(--green-800); }
.public-pagination-direction.is-disabled { border-color: #d5ded8; color: #7d8981; background: #f3f6f4; }
.public-pagination-ellipsis { width: 24px; color: var(--muted); }

.page-hero { background: #eaf2ed; border-bottom: 1px solid #d7e3da; }
.page-hero-inner { padding-block: clamp(4rem, 8vw, 6.5rem); }
.page-hero p:last-child { max-width: 780px; }
.education-page-hero { color: #fff; background: linear-gradient(120deg, rgb(11 46 32 / 98%), rgb(20 90 58 / 94%)); border-bottom-color: rgb(255 255 255 / 12%); }
:is(.education-page-hero, .education-detail-hero, .publication-detail-hero) :is(.page-hero-inner, .detail-hero-inner) { padding-block: 4rem; }
:is(.education-page-hero, .education-detail-hero, .publication-detail-hero) .section-label { margin: 0 0 .75rem; color: #f4c762; font-size: 1rem; line-height: 1.5rem; }
:is(.education-page-hero, .education-detail-hero, .publication-detail-hero) h1 { max-width: 900px; color: #fff; font-size: 3rem; line-height: 3.5rem; letter-spacing: -.03em; }
:is(.education-page-hero, .education-detail-hero, .publication-detail-hero) p:not(.section-label) { max-width: 760px; margin: .75rem 0 0; font-size: 1rem; line-height: 1.75rem; }
.education-page-hero p:last-child { color: rgb(255 255 255 / 84%); }
:is(.education-detail-hero, .publication-detail-hero) .back-link { margin-bottom: 1.5rem; }
:is(.education-detail-hero, .publication-detail-hero).detail-hero time { margin-top: .75rem; }
.education-list-section { padding-block: 4rem; }
.education-list-heading { margin-bottom: 2rem; }
.education-list-heading h2 { margin: 0; color: var(--green-950); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: .02em; }
.education-list-heading .list-summary { margin: .5rem 0 0; }
.detail-hero-inner { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.detail-hero h1 { max-width: 900px; color: #fff; }
.detail-hero p:not(.section-label) { max-width: 760px; color: rgb(255 255 255 / 78%); }
.detail-hero time { display: block; margin-top: 1rem; color: rgb(255 255 255 / 70%); }
.back-link { display: inline-block; margin-bottom: 2rem; color: #fff; font-weight: 800; text-decoration: none; }
.detail-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.detail-content, .detail-sidebar, .article-shell { min-width: 0; }
.detail-cover { min-height: 260px; max-height: 560px; margin-bottom: 2rem; background: #dfece4; border-radius: 16px; overflow: hidden; }
.detail-content h2, .detail-sidebar h2, .public-disclaimer h2, .contact-layout h2 { color: var(--green-950); line-height: 1.25; }
.detail-sidebar { position: sticky; top: 96px; padding: 1.4rem; border: 1px solid var(--line); background: #fff; border-radius: 16px; }
.detail-facts div { grid-template-columns: 112px minmax(0, 1fr); padding-bottom: .65rem; border-bottom: 1px solid #edf1ee; }
.detail-facts dd { overflow-wrap: break-word; }
.registration-box { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 2px solid var(--green-100); }
.registration-box h3 { margin: 0; color: var(--green-950); font-size: 1.15rem; }
.registration-box > p { margin: .5rem 0 0; color: var(--muted); }
.registration-box .button { width: 100%; margin-top: .6rem; }
.registration-box .training-actions { margin-top: .75rem; padding-top: 0; border-top: 0; }
.detail-sidebar .training-action-group { display: grid; }
.detail-sidebar .training-action { width: 100%; }
.education-detail-section { padding-block: 4rem; }
.registration-section { padding-block: clamp(3rem, 6vw, 5rem); }
.registration-shell { max-width: 820px; }
.registration-code-box { display: flex; margin-block: 1rem; align-items: stretch; gap: .75rem; }
.registration-code-box input { min-width: 0; padding: .8rem 1rem; border: 1px solid #b8c8be; color: #123f2c; background: #fff; border-radius: 9px; font: 800 1.05rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .05em; text-align: center; }
.registration-copy-status { min-height: 1.4em; color: var(--muted); font-size: .82rem; }

@media (max-width: 520px) {
    .registration-code-box { align-items: stretch; flex-direction: column; }
    .registration-code-box .button { width: 100%; }
}
.registration-form .admin-panel { padding: clamp(1.25rem, 4vw, 2rem); }
.registration-privacy { margin: -.35rem 0 1.25rem; color: var(--muted); }
.evaluation-shell { max-width: 1120px; }
.evaluation-question-list { display: grid; gap: 1.25rem; }
.evaluation-group-heading { margin: .5rem 0 -.25rem; padding-bottom: .6rem; border-bottom: 2px solid var(--green-100); color: var(--green-800); font-size: 1rem; line-height: 1.5; letter-spacing: .06em; }
.evaluation-question { min-width: 0; margin: 0; padding: clamp(1rem, 2vw, 1.35rem); border: 1px solid #dce5df; background: #f8faf8; border-radius: 12px; }
.evaluation-question-heading { display: grid; color: var(--green-950); font-weight: 800; grid-template-columns: auto minmax(0, 1fr); gap: .4rem; line-height: 1.5; }
.evaluation-question-number { color: var(--green-800); }
.evaluation-required { color: #9a2f2f; }
.evaluation-optional { display: inline-block; margin-left: .4rem; color: var(--muted); font-size: .75rem; font-weight: 700; }
.evaluation-question .evaluation-choices { display: grid; margin: .85rem 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.evaluation-question .evaluation-scale-choices { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.evaluation-choices label { width: 100%; min-height: 44px; margin: 0; padding: .55rem .65rem; border: 1px solid #dce5df; background: #fff; border-radius: 9px; line-height: 1.35; }
.evaluation-choices label:has(input:focus-visible) { border-color: var(--green-800); outline: 3px solid rgb(20 90 58 / 20%); outline-offset: 1px; }
.evaluation-question .field { margin-top: .85rem; }
.evaluation-question .field-error { margin-top: .6rem; }
.evaluation-form .admin-form-actions { margin-top: 1.5rem; }
.certificate-facts { margin-top: 1.25rem; }
.registration-notice { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid #bcd6c6; background: #fff; border-radius: 16px; box-shadow: 0 16px 45px rgb(11 46 32 / 6%); }
.registration-notice h2 { margin: 0; color: var(--green-950); }
.registration-notice p { color: var(--muted); }
.registration-notice .button { margin-top: .5rem; }
.forgot-code-results { margin-top: 1.5rem; }
.forgot-code-list { display: grid; margin-block: 1.25rem; gap: .875rem; }
.forgot-code-item { padding: 1rem; border: 1px solid #d6e2da; background: #f7faf8; border-radius: 12px; }
.forgot-code-item h3 { margin: 0; color: var(--green-950); font-size: 1rem; line-height: 1.45; }
.forgot-code-item p { margin: .7rem 0 .2rem; font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.forgot-code-item code { color: var(--green-950); font: 800 1.05rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .05em; overflow-wrap: anywhere; }
.forgot-code-limit-note { font-size: .9rem; }
.registration-success-actions { display: flex; margin-top: 1rem; justify-content: center; }
.registration-success-actions .button { margin-top: 0; }
.prose { color: #334139; line-height: 1.85; overflow-wrap: anywhere; }
.article-shell { max-width: 860px; }
.publication-list-section { padding-block: 4rem; background: #f8faf8; }
.publication-list-heading { margin-bottom: 2rem; }
.publication-list-heading h2 { margin: 0; color: var(--green-950); font-size: 2rem; line-height: 2.5rem; letter-spacing: .02em; }
.publication-list-heading .list-summary { margin: .5rem 0 0; font-size: 1rem; line-height: 1.5rem; }
.publication-detail-section { padding-block: 4rem; background: #f8faf8; }
.publication-detail-section .article-shell { max-width: 760px; }
.detail-cover.publication-cover, .publication-detail-section .publication-fallback { width: min(100%, 420px); height: auto; min-height: 0; max-height: none; aspect-ratio: 3 / 4; margin: 0 auto 1.5rem; object-fit: contain; }
.publication-prose { max-width: 720px; margin-inline: auto; font-size: 1rem; line-height: 2rem; }
.document-button { margin-top: 1.5rem; }

.conflict-map { padding: clamp(.85rem, 2vw, 1.3rem); border: 1px solid #cfdcd3; background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgb(11 46 32 / 7%); }
.map-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .6fr); gap: 1.25rem; }
.map-canvas-wrap { min-width: 0; }
.kepri-map { width: 100%; height: auto; border-radius: 15px; }
.map-sea { fill: #e9f3f5; stroke: #c5dadd; stroke-width: 1; }
.sea-label { fill: #8aa7ac; font-size: 15px; font-weight: 700; letter-spacing: .22em; }
.compass path, .compass circle { fill: #315e57; }
.compass text { fill: #315e57; font-size: 14px; font-weight: 800; text-anchor: middle; }
.map-region { cursor: pointer; }
.map-region-shape { fill-opacity: .86; stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill-opacity 150ms ease, stroke-width 150ms ease, filter 150ms ease; }
.map-region:hover .map-region-shape, .map-region:focus .map-region-shape, .map-region.is-selected .map-region-shape { fill-opacity: 1; stroke-width: 2.5; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 22%)); }
.map-region:focus { outline: none; }
.map-region:focus .map-label rect { stroke: #162e26; stroke-width: 2; }
.map-callout { stroke: #637b71; stroke-width: .9; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.map-label rect { fill: rgb(255 255 255 / 88%); stroke: rgb(49 94 87 / 44%); stroke-width: .8; vector-effect: non-scaling-stroke; }
.map-label text { fill: #18332a; font-size: 14px; font-weight: 800; }
.map-risk-dot { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.risk-low { fill: #16a34a; stroke: #166534; background: #16a34a; }
.risk-medium { fill: #facc15; stroke: #a16207; background: #facc15; }
.risk-high { fill: #f97316; stroke: #c2410c; background: #f97316; }
.risk-critical { fill: #dc2626; stroke: #991b1b; background: #dc2626; }
.risk-unrated { fill: #94a3b8; stroke: #475569; background: #94a3b8; }
.map-panel { padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--line); background: #f9fbf9; border-radius: 15px; }
.map-panel h3 { margin: 0; color: var(--green-950); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; }
.risk-badge { display: inline-block; padding: .3rem .6rem; border-radius: 99px; color: #fff; font-size: .75rem; font-weight: 800; }
.risk-badge.risk-medium { color: #342600; }
.map-public-note { min-height: 4.8em; color: #34443a; overflow-wrap: anywhere; }
.map-assessment, .map-attribution { color: var(--muted); font-size: .76rem; }
.map-attribution { margin: .75rem .25rem 0; }
.map-panel-heading { margin: 1.25rem 0 .6rem; color: var(--green-950); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.region-selector { display: flex; flex-wrap: wrap; gap: .4rem; }
.region-button { min-height: 38px; padding: .4rem .6rem; border: 1px solid #c8d5cc; color: var(--green-950); background: #fff; border-radius: 8px; font-size: .73rem; font-weight: 800; cursor: pointer; }
.region-button.is-selected { border-color: var(--green-800); color: #fff; background: var(--green-800); }
.risk-legend { display: grid; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); gap: .55rem; color: #425047; font-size: .75rem; }
.risk-legend .map-panel-heading { margin: 0 0 .1rem; }
.risk-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.risk-legend i { width: 11px; height: 11px; border: 1px solid rgb(0 0 0 / 18%); border-radius: 50%; }
.conflict-map-compact .kepri-map { max-height: 510px; margin-inline: auto; }
.conflict-map-compact .map-panel { padding: 1.15rem; }
.conflict-map-compact .map-public-note { min-height: 0; margin-bottom: 0; }
.conflict-map-section { padding-block: 4rem; background: #f1f6f2; }
.conflict-data-section { padding-block: 4rem; background: #fff; }
.conflict-data-heading { max-width: 820px; margin-bottom: 2rem; }
.conflict-data-heading .section-label { margin-bottom: .5rem; font-size: 1rem; line-height: 1.5rem; }
.conflict-data-heading h2 { margin: 0; color: var(--green-950); font-size: 2rem; line-height: 2.5rem; letter-spacing: -.02em; }
.conflict-data-heading > p:last-child { margin: .85rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.conflict-data-filters { display: flex; margin-bottom: 2rem; flex-wrap: wrap; gap: .5rem; }
.conflict-filter-button { min-height: 42px; padding: .55rem .8rem; border: 1px solid #c8d5cc; color: var(--green-950); background: #fff; border-radius: 9px; font-size: .8rem; font-weight: 800; cursor: pointer; }
.conflict-filter-button.is-selected { border-color: var(--green-800); color: #fff; background: var(--green-800); }
.conflict-data-list { display: grid; gap: 1.25rem; }
.conflict-data-card { display: grid; min-width: 0; padding: 1rem; border: 1px solid var(--line); background: #fff; border-radius: 16px; box-shadow: 0 16px 45px rgb(11 46 32 / 6%); grid-template-columns: minmax(280px, 310px) minmax(0, 1fr); gap: 1.5rem; }
.conflict-data-media { aspect-ratio: 16 / 9; min-width: 0; background: var(--green-100); border-radius: 12px; overflow: hidden; }
.conflict-data-media img { width: 100%; height: 100%; object-fit: cover; }
.conflict-data-body { display: flex; min-width: 0; padding: .3rem .35rem .3rem 0; flex-direction: column; }
.conflict-data-meta, .conflict-data-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; }
.conflict-data-meta { color: var(--muted); font-size: .76rem; font-weight: 800; }
.conflict-data-body h3 { margin: .55rem 0 0; color: var(--green-950); font-size: 1.35rem; line-height: 1.3; }
.conflict-data-body > p { margin: .6rem 0 0; color: var(--muted); }
.conflict-data-footer { margin-top: auto; padding-top: 1rem; }
.conflict-data-footer a { color: var(--green-800); font-weight: 800; text-decoration: none; }
.conflict-risk-indicator { display: inline-flex; align-items: center; gap: .45rem; color: #425047; font-size: .78rem; font-weight: 800; }
.conflict-risk-indicator i { width: 11px; height: 11px; border: 1px solid rgb(0 0 0 / 18%); border-radius: 50%; }
.conflict-data-empty { width: 100%; }
.public-disclaimer { margin-top: 1.5rem; }
.public-disclaimer h2 { margin-top: 0; }
.public-disclaimer p { margin-bottom: 0; }

.contact-layout { display: grid; align-items: stretch; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 1.5rem; }
.agency-contact-card, .contact-details { display: flex; padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid var(--line); background: #fff; border-radius: 16px; gap: 1.5rem; }
.agency-contact-card img { width: 112px; height: 112px; }
.agency-contact-card h2, .contact-details h2 { margin-top: 0; }
.contact-details { display: block; }

.public-footer { padding: 3rem max(1rem, calc((100% - 1180px) / 2)); color: rgb(255 255 255 / 72%); background: var(--green-950); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(200px, .65fr); align-items: start; gap: 3rem; }
.footer-column { min-width: 0; max-width: 360px; }
.footer-inner p { margin: .5rem 0 0; font-size: 1rem; line-height: 1.5rem; }
.footer-brand, .footer-inner strong { display: block; color: #fff; font-weight: 800; text-decoration: none; }
.footer-brand { font-size: 1.5rem; line-height: 2rem; }
.footer-inner strong { font-size: 1rem; line-height: 1.5rem; }
.footer-inner address { display: grid; min-width: 0; justify-self: start; font-style: normal; gap: .5rem; }
.footer-inner address a { color: #fff; font-size: 1rem; line-height: 1.5rem; overflow-wrap: anywhere; }
.footer-legal { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 1rem; line-height: 1.5rem; }

/* M2 administration foundation stays deliberately simple. */
.site-header { display: flex; min-height: 72px; padding: .75rem clamp(1rem, 5vw, 5rem); align-items: center; justify-content: space-between; gap: 2rem; color: #fff; background: var(--green-900); }
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; place-items: center; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand small { font-size: .72rem; opacity: .82; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-header nav a { color: #fff; text-decoration: none; }
body:not(.public-site) main { min-height: calc(100vh - 152px); padding: clamp(2rem, 7vw, 6rem) 1rem; }
.placeholder, .auth-card, .admin-shell { width: min(100%, 720px); margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--line); background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgb(18 63 44 / 8%); }
.auth-card { width: min(100%, 480px); }
.auth-card h1, .admin-shell h1 { margin: 0 0 1rem; font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1.1; }
form { display: grid; margin-top: 1.5rem; gap: .75rem; }
label { font-weight: 700; }
input { width: 100%; padding: .8rem .9rem; border: 1px solid #aebbb2; border-radius: 8px; }
button { cursor: pointer; }
.auth-card button, .admin-shell button { display: inline-block; width: fit-content; padding: .75rem 1rem; border: 0; color: #fff; background: var(--green-800); border-radius: 8px; font-weight: 700; }
.alert { padding: .8rem 1rem; border: 1px solid #e7aaaa; color: #801f1f; background: #fff2f2; border-radius: 8px; }
.admin-links { display: flex; margin-top: 1.5rem; flex-wrap: wrap; gap: .75rem; }
body:not(.public-site) > footer { padding: 1rem; color: #526158; text-align: center; }

.workspace-login-page { min-width: 320px; min-height: 100vh; color: var(--green-950); background: linear-gradient(180deg, #f3f8f5 0%, #fff 100%); }
.workspace-login-header { display: flex; min-height: 80px; padding: 16px max(24px, calc((100% - 1180px) / 2)); align-items: center; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 94%); }
.workspace-login-brand { display: inline-flex; min-width: 0; align-items: center; color: var(--green-950); text-decoration: none; gap: 16px; }
.workspace-login-brand img { display: block; width: 48px; height: 48px; object-fit: contain; }
.workspace-login-brand span, .workspace-login-brand strong, .workspace-login-brand small { display: block; }
.workspace-login-brand strong { font-size: 24px; line-height: 32px; letter-spacing: .04em; }
.workspace-login-brand small { color: var(--muted); font-size: 16px; line-height: 24px; }
body.workspace-login-page .workspace-login-main { display: grid; min-height: calc(100vh - 152px); padding: 48px 24px; place-items: center; }
.workspace-login-card { width: min(100%, 560px); padding: 40px; border: 1px solid var(--line); background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgb(18 63 44 / 8%); }
.workspace-login-eyebrow { margin: 0 0 8px; color: var(--gold-700); font-size: 16px; font-weight: 800; line-height: 24px; letter-spacing: .08em; }
.workspace-login-card h1 { margin: 0 0 8px; font-size: 48px; line-height: 56px; }
.workspace-login-card > p:not(.workspace-login-eyebrow) { margin: 0; color: var(--muted); font-size: 16px; line-height: 24px; }
.workspace-login-form { display: grid; margin-top: 32px; gap: 16px; }
.workspace-login-form label { font-size: 16px; line-height: 24px; }
.workspace-login-form input { min-height: 48px; padding: 8px 16px; font-size: 16px; line-height: 24px; }
.workspace-login-form button { min-height: 48px; margin-top: 8px; padding: 8px 24px; border: 0; color: #fff; background: var(--green-800); border-radius: 8px; font-size: 16px; font-weight: 800; line-height: 24px; }
.workspace-login-page > .workspace-login-footer { min-height: 72px; padding: 24px; color: var(--muted); text-align: center; }
.workspace-login-footer p { margin: 0; font-size: 16px; line-height: 24px; }

@media (max-width: 980px) {
    .header-inner { min-height: 80px; }
    .mobile-menu-toggle { display: block; flex: 0 0 auto; }
    .public-navigation { position: absolute; top: calc(100% + 1px); right: 2rem; left: 2rem; display: grid; gap: .25rem; padding: .8rem; border: 1px solid var(--line); background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgb(11 46 32 / 14%); }
    .public-navigation:not(.is-open) { display: none; }
    .public-navigation a { min-height: 44px; padding: .65rem .75rem; }
    .public-navigation a::after { display: none; }
    .public-navigation a[aria-current="page"] { background: var(--green-100); border-radius: 8px; box-shadow: inset 2px 0 var(--gold-500); }
    .home-hero .hero-grid { padding-block: 4rem; grid-template-columns: 1fr; gap: 2.5rem; }
    .home-hero .hero-wordmark { max-width: 480px; }
    .home-hero .agency-card { max-width: 640px; }
    .home-hero .agency-identity { grid-template-columns: 96px minmax(0, 1fr); }
    .training-grid, .publication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-layout { grid-template-columns: 1fr; }
    .conflict-map-compact .kepri-map { max-height: none; }
    .map-public-note { min-height: 0; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    :is(.education-page-hero, .education-detail-hero, .publication-detail-hero) :is(.page-hero-inner, .detail-hero-inner) { padding-block: 3rem; }
    :is(.education-page-hero, .education-detail-hero, .publication-detail-hero) h1 { font-size: 2.5rem; line-height: 3rem; }
    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .split-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .agency-greeting-grid { grid-template-columns: 1fr; gap: 2rem; }
    .agency-head-photo img { width: min(100%, 210px); max-height: 320px; }
    .home-section-heading > div { width: 100%; }
    .home-section-heading h2 { white-space: normal; }
    .home-section-cta { margin-top: 0; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    :root { --shell: min(100% - 1.25rem, 1180px); }
    .header-inner { width: calc(100% - 2rem); min-height: 72px; gap: .75rem; }
    .public-brand { gap: .5rem; }
    .public-brand img { width: 40px; height: 40px; }
    .brand-copy strong { font-size: 1.25rem; }
    .brand-copy small { font-size: .75rem; line-height: 1.35; }
    .public-navigation { right: 1rem; left: 1rem; }
    .home-hero .hero-grid { width: calc(100% - 2rem); padding-block: 2rem; gap: 1.5rem; }
    .home-hero .hero-wordmark { max-width: 320px; }
    .workspace-login-header { padding: 16px; }
    .workspace-login-brand { gap: 8px; }
    .workspace-login-brand img { width: 40px; height: 40px; }
    .workspace-login-brand strong { font-size: 24px; line-height: 32px; }
    .workspace-login-brand small { font-size: 16px; line-height: 24px; }
    body.workspace-login-page .workspace-login-main { padding: 32px 16px; }
    .workspace-login-card { padding: 24px; }
    .home-hero .hero-subtitle { margin-top: .5rem; font-size: 1.5rem; line-height: 1.333333; }
    .home-hero .hero-description { margin-top: .75rem; line-height: 1.5; }
    .home-hero .agency-card { padding: 1.25rem; }
    .home-hero .agency-identity { grid-template-columns: 1fr; gap: .75rem; }
    .home-hero .agency-card img { width: 80px; height: 80px; }
    .home-hero .agency-card h2 { font-size: 1.375rem; line-height: 1.35; }
    .home-hero .agency-label { margin-bottom: .75rem; }
    .agency-contact-card { align-items: flex-start; }
    .agency-contact-card img { width: 72px; height: 72px; }
    .section-block { padding-block: 4rem; }
    .agency-greeting-section { padding-block: 2.5rem 2rem; }
    .agency-greeting-grid { gap: 1.25rem; }
    .agency-greeting-heading { margin-bottom: .5rem; }
    .agency-greeting-body { line-height: 1.7; }
    .agency-head-photo img { width: min(70%, 170px); max-height: 260px; }
    .agency-head-identity { margin-top: .75rem; }
    .agency-head-name { font-size: clamp(.68rem, 3.45vw, .875rem); }
    .agency-head-title { font-size: .875rem; }
    .training-section, .map-section { padding-block: 2.5rem; }
    .publication-section { padding-block: 2.5rem 2.25rem; }
    .home-section-heading { margin-bottom: 1.5rem; gap: .75rem; }
    .home-section-heading h2 { font-size: 1.5rem; line-height: 2rem; }
    .home-section-heading > div > p:last-child { margin-top: .375rem; }
    .home-section-cta { width: 100%; }
    #edukasi .training-grid, #publikasi .publication-grid { gap: 1rem; }
    #edukasi .training-card .card-body, #publikasi .publication-card .card-body { padding: 1rem 1.1rem; }
    #edukasi .training-card .training-actions { margin-top: 1rem; padding-top: .875rem; }
    #publikasi .publication-card .card-actions { margin-top: 1.25rem; padding-top: .875rem; }
    :is(.education-page-hero, .education-detail-hero, .publication-detail-hero) :is(.page-hero-inner, .detail-hero-inner) { padding-block: 2.5rem; }
    :is(.education-page-hero, .education-detail-hero, .publication-detail-hero) .section-label { margin-bottom: .5rem; }
    :is(.education-page-hero, .education-detail-hero, .publication-detail-hero) h1 { max-width: 100%; font-size: 2rem; line-height: 2.5rem; }
    :is(.education-page-hero, .education-detail-hero, .publication-detail-hero) p:not(.section-label) { max-width: 100%; margin-top: .625rem; }
    :is(.education-detail-hero, .publication-detail-hero) .back-link { margin-bottom: 1.25rem; }
    .education-list-section { padding-block: 2.5rem; }
    .education-detail-section { padding-block: 2.5rem; }
    .education-list-heading { margin-bottom: 1.25rem; }
    .education-list-heading .list-summary { margin-top: .375rem; }
    .education-list-section .training-grid { gap: 1rem; }
    .education-list-section .training-card .card-body { padding: 1rem 1.1rem; }
    .education-list-section .training-card .training-actions { margin-top: 1rem; padding-top: .875rem; }
    .education-detail-section .detail-layout { gap: 1.5rem; }
    .education-detail-section .detail-cover { margin-bottom: 1.5rem; }
    .education-detail-section .detail-content h2 { margin: 0 0 .625rem; }
    .education-detail-section .detail-sidebar { padding: 1.15rem; }
    .education-detail-section .detail-facts { gap: .5rem; }
    .education-detail-section .detail-facts div { grid-template-columns: 104px minmax(0, 1fr); gap: .75rem; padding-bottom: .55rem; }
    .education-detail-section .registration-box { margin-top: 1rem; padding-top: 1rem; }
    .education-detail-section .registration-box .training-actions { gap: .625rem; }
    .registration-section { padding-block: 2.5rem; }
    .registration-form .admin-panel, .registration-notice { padding: 1.25rem; }
    .registration-form .admin-form-grid { gap: .875rem; }
    .registration-form .admin-form-actions { margin-top: 1rem; }
    .registration-form .admin-form-actions .button { width: 100%; }
    .registration-privacy { margin: -.25rem 0 1rem; }
    .evaluation-question-list { gap: 1rem; }
    .evaluation-group-heading { margin-top: .25rem; }
    .evaluation-question { padding: 1rem; }
    .evaluation-question .evaluation-choices, .evaluation-question .evaluation-scale-choices { grid-template-columns: 1fr; }
    .evaluation-choices label { min-height: 44px; }
    .evaluation-form .admin-form-actions { margin-top: 1.25rem; }
    .registration-code-box { margin-block: .875rem; gap: .625rem; }
    .registration-notice p { margin: .5rem 0 0; }
    .registration-success-actions { margin-top: .875rem; }
    .training-card .card-body h3, .training-card .card-summary, .publication-card .card-body h3, .publication-card .card-summary { min-height: 0; }
    .training-action-group { display: grid; }
    .training-action { width: 100%; }
    .training-grid, .publication-grid { grid-template-columns: 1fr; }
    .map-preview-button { width: 100%; }
    .conflict-map-section { padding-block: 2rem 1.5rem; }
    .conflict-data-section { padding-block: 2rem 2.5rem; }
    .conflict-map { padding: .55rem; border-radius: 14px; }
    .conflict-map-full { padding: .5rem; }
    .conflict-map-full .map-layout { gap: .875rem; }
    .conflict-map-full .map-attribution { margin: .5rem .35rem 0; padding-inline: 0; line-height: 1.5; }
    .conflict-map-full .map-panel { padding: 1rem; }
    .conflict-map-full .map-panel > .panel-label { margin-bottom: .375rem; }
    .conflict-map-full .map-panel h3 + p { margin: .625rem 0; }
    .conflict-map-full .map-public-note { margin: .625rem 0; }
    .conflict-map-full .map-assessment { margin: .625rem 0 0; }
    .conflict-map-full .map-panel-heading { margin: .875rem 0 .5rem; }
    .conflict-map-full .region-selector { gap: .5rem; }
    .conflict-map-full .region-button { min-height: 42px; }
    .conflict-map-full .region-button:last-child { flex-basis: 100%; }
    .conflict-map-full .risk-legend { margin-top: .875rem; padding-top: .75rem; gap: .4rem; }
    .conflict-map-full .risk-legend .map-panel-heading { margin: 0 0 .1rem; }
    .conflict-map-compact .map-panel { padding: .875rem; }
    .conflict-map-compact .map-panel-heading { margin-top: 1rem; }
    .conflict-map-compact .risk-legend { margin-top: 1rem; padding-top: .875rem; }
    .map-label text { font-size: 13px; }
    .region-button { flex: 1 1 calc(50% - .4rem); }
    .conflict-data-heading { margin-bottom: 1.25rem; }
    .conflict-data-heading .section-label { margin-bottom: .375rem; }
    .conflict-data-heading > p:last-child { margin-top: .625rem; }
    .conflict-data-filters { display: grid; margin-bottom: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .conflict-filter-button:first-child { grid-column: 1 / -1; }
    .conflict-filter-button:last-child { grid-column: 1 / -1; }
    .conflict-data-empty { padding: 1rem; }
    .conflict-data-card { grid-template-columns: 1fr; gap: 1rem; }
    .conflict-data-body { padding: 0 .25rem .25rem; }
    .publication-preview-button { width: 100%; }
    .publication-list-section, .publication-detail-section { padding-block: 3rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    body:has(.home-hero) .public-footer { padding-block: 2.25rem; }
    body:has(.home-hero) .footer-inner { gap: 1.5rem; }
    body:has(.home-hero) .footer-brand { font-size: 1.25rem; line-height: 1.75rem; }
    body:has(.home-hero) .footer-inner p { margin-top: .375rem; }
    body:has(.home-hero) .footer-inner address { gap: .25rem; }
    body:has(.home-hero) .footer-legal { margin-top: 1.25rem; padding-top: 1rem; }
    .public-pagination { margin-top: 2rem; }
    .public-pagination-items { gap: .4rem; }
    .public-pagination-direction { min-width: 104px; padding-inline: .65rem; }
    .detail-facts div { grid-template-columns: 78px minmax(0, 1fr); }
    .agency-contact-card { flex-direction: column; }
    .site-header { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* M4 Admin workspace */
.admin-body { min-width: 0; color: #17211b; background: #f3f6f4; overflow-x: hidden; }
.admin-skip { position: fixed; top: .75rem; left: 1rem; z-index: 100; padding: .65rem 1rem; color: #fff; background: #123f30; border-radius: 8px; transform: translateY(-150%); }
.admin-skip:focus { transform: translateY(0); }
.admin-layout { min-height: 100vh; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; width: 288px; min-width: 0; border-right: 1px solid #dce5df; background: #fff; flex-direction: column; transform: translateX(-102%); transition: transform 180ms ease; }
.admin-menu-open .admin-sidebar { transform: translateX(0); }
.admin-brand { display: flex; min-height: 80px; padding: 1rem 1.25rem; border-bottom: 1px solid #e5ebe7; align-items: center; justify-content: space-between; }
.admin-brand a { display: flex; min-width: 0; align-items: center; gap: 16px; color: #10281f; text-decoration: none; }
.admin-brand a > img { display: block; width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { font-size: 16px; line-height: 24px; }
.admin-brand small { color: #718078; font-size: 16px; font-weight: 500; line-height: 24px; }
.admin-sidebar-close { display: grid; width: 44px; height: 44px; padding: 0; border: 0; color: #526158; background: #f3f6f4; border-radius: 10px; place-items: center; font-size: 1.5rem; }
.admin-sidebar nav { flex: 1; padding: 1.25rem 1rem; overflow-y: auto; }
.admin-sidebar nav p { margin: 24px 12px 8px; color: #76847c; font-size: 16px; font-weight: 900; line-height: 24px; letter-spacing: .08em; text-transform: uppercase; }
.admin-sidebar nav p:first-child { margin-top: 0; }
.admin-sidebar nav a { display: flex; min-height: 48px; margin: 0; padding: 8px 16px; align-items: center; color: #526158; border-radius: 10px; font-size: 16px; font-weight: 750; line-height: 24px; text-decoration: none; }
.admin-sidebar nav a:hover { color: #10281f; background: #f4f7f5; }
.admin-sidebar nav a[aria-current="page"] { color: #164f3c; background: #e8f4ee; box-shadow: inset 3px 0 #1b7459; }
.admin-backdrop { position: fixed; inset: 0; z-index: 50; display: none; width: 100%; height: 100%; padding: 0; border: 0; background: rgb(9 28 21 / 48%); }
.admin-menu-open .admin-backdrop { display: block; }
.admin-workspace { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 40; display: flex; min-height: 72px; padding: .75rem 1rem; border-bottom: 1px solid #dce5df; align-items: center; gap: .8rem; background: rgb(255 255 255 / 96%); backdrop-filter: blur(10px); }
.admin-topbar > div:nth-of-type(1) { min-width: 0; flex: 1; }
.admin-topbar strong, .admin-topbar small { display: block; }
.admin-topbar > div:first-of-type strong { font-size: 16px; line-height: 24px; }
.admin-topbar small { color: #738078; font-size: 16px; line-height: 24px; }
.admin-menu-button { display: inline-flex; min-height: 44px; padding: .55rem .75rem; border: 1px solid #cad6ce; align-items: center; gap: .45rem; color: #274038; background: #fff; border-radius: 10px; font-weight: 800; }
.admin-menu-button span { display: none; }
.admin-topbar-user { display: none; min-width: 0; text-align: right; }
.admin-topbar-user span { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; }
.admin-topbar-user span { font-size: 16px; line-height: 24px; }
.admin-topbar form { display: block; margin: 0; }
.admin-topbar .button { min-height: 48px; padding: 8px 16px; font-size: 16px; line-height: 24px; }
body.admin-body main.admin-main { width: min(100%, 1600px); min-height: calc(100vh - 72px); margin: 0 auto; padding: clamp(1.1rem, 3vw, 2rem); }
.admin-alert { margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid; border-radius: 10px; font-size: .9rem; font-weight: 700; }
.admin-alert-success { border-color: #9dd6bd; color: #15543e; background: #eaf8f0; }
.admin-alert-error { border-color: #e6aaaa; color: #842626; background: #fff1f1; }
.admin-welcome { padding: 32px; color: #fff; background: linear-gradient(135deg,#123b30,#165a47 66%,#15705b); border-radius: 22px; box-shadow: 0 14px 36px rgb(14 64 46 / 13%); }
.admin-welcome h1 { margin: 8px 0; font-size: 40px; line-height: 48px; }
.admin-welcome p:last-child { margin: 0; color: #d9eee5; font-size: 16px; line-height: 24px; }
.admin-eyebrow { margin: 0; color: #25745a; font-size: .7rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.admin-welcome .admin-eyebrow, .admin-section .admin-eyebrow { font-size: 16px; line-height: 24px; letter-spacing: .08em; }
.admin-welcome .admin-eyebrow { color: #b9e1d0; }
.admin-section { margin-top: 32px; }
.admin-section-heading, .admin-page-heading { display: flex; margin-bottom: 16px; align-items: flex-end; justify-content: space-between; gap: 16px; }
.admin-section-heading h2, .admin-page-heading h1 { margin: .25rem 0 0; color: #112b21; line-height: 1.15; }
.admin-section-heading h2 { font-size: 24px; line-height: 32px; }
.admin-page-heading h1 { font-size: clamp(1.8rem,4vw,2.5rem); }
.admin-page-heading p:last-child, .admin-section-heading > span { margin: .45rem 0 0; color: #69776f; font-size: .88rem; }
.admin-heading-actions, .admin-form-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.admin-stat-grid article { display: flex; min-width: 0; padding: 24px; border: 1px solid #dce5df; background: #fff; border-radius: 14px; flex-direction: column; }
.admin-stat-grid span { color: #627169; font-size: 16px; font-weight: 750; line-height: 24px; }
.admin-stat-grid strong { margin-top: 8px; color: #143c2f; font-size: 40px; line-height: 48px; }
.admin-stat-grid small { margin-top: 8px; color: #7b8981; font-size: 16px; line-height: 24px; }
.admin-dashboard-grid { display: grid; margin-top: 24px; gap: 16px; }
.admin-panel { min-width: 0; padding: clamp(1rem,3vw,1.5rem); border: 1px solid #dce5df; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgb(20 61 47 / 5%); }
.admin-panel h2 { margin: 0 0 1rem; color: #183c30; font-size: 1.1rem; }
.admin-panel h2:not(:first-child) { margin-top: 1.5rem; }
.admin-dashboard-grid .admin-panel h2 { margin-bottom: 16px; font-size: 24px; line-height: 32px; }
.admin-quick-links { display: grid; gap: 8px; }
.admin-quick-links a { display: flex; min-height: 48px; padding: 8px 16px; border: 1px solid #d6e3db; align-items: center; color: #17533f; background: #f7faf8; border-radius: 10px; font-size: 16px; font-weight: 800; line-height: 24px; text-decoration: none; }
.admin-activity { padding: 16px 0; border-bottom: 1px solid #e8eeea; }
.admin-activity:last-child { border-bottom: 0; }
.admin-activity strong, .admin-activity p, .admin-activity time { font-size: 16px; line-height: 24px; }
.admin-activity p { margin: 8px 0; color: #526158; }
.admin-activity time { color: #7c8982; }
.admin-muted { color: #68776f; font-size: .88rem; }
.admin-filters { display: flex; margin-bottom: 1rem; padding-bottom: .25rem; gap: .45rem; overflow-x: auto; }
.admin-filters a { display: inline-flex; min-height: 42px; padding: .6rem .75rem; border: 1px solid #d3ded7; align-items: center; gap: .45rem; color: #42534a; background: #fff; border-radius: 10px; font-size: .82rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.admin-filters a[aria-current="page"] { border-color: #1d7256; color: #fff; background: #1d7256; }
.admin-filters span { display: inline-grid; min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; background: rgb(255 255 255 / 18%); border-radius: 99px; place-items: center; }
.admin-table-wrap { max-width: 100%; border: 1px solid #dce5df; background: #fff; border-radius: 14px; overflow-x: auto; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: .85rem 1rem; border-bottom: 1px solid #e7ece9; text-align: left; vertical-align: middle; }
.admin-table th { color: #65736b; background: #f6f8f7; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.admin-table td { color: #34463d; font-size: .84rem; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { margin-top: .2rem; max-width: 340px; color: #7a8780; overflow-wrap: anywhere; }
.admin-action-link { display: inline-flex; min-height: 40px; padding: .5rem .7rem; border: 1px solid #bcd3c6; align-items: center; color: #17543f; border-radius: 8px; font-weight: 800; text-decoration: none; }
.admin-badge { display: inline-flex; padding: .28rem .55rem; color: #315043; background: #edf3ef; border-radius: 99px; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.admin-badge.is-active { color: #15603f; background: #e5f7ed; }
.admin-badge.is-inactive { color: #852d2d; background: #faeaea; }
.admin-empty { padding: 2rem; color: #758179; text-align: center; }
.admin-form { display: grid; margin: 0; gap: 1rem; }
.admin-form-grid { display: grid; gap: 1rem; }
.field { display: grid; align-content: start; gap: .4rem; }
.field label { color: #263d34; font-size: .84rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: .75rem .8rem; border: 1px solid #b8c8be; color: #17241e; background: #fff; border-radius: 9px; font: inherit; }
.field textarea { line-height: 1.55; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #1d7256; outline: 3px solid rgb(29 114 86 / 16%); }
.field [aria-invalid="true"] { border-color: #bd3d3d; }
.field small { color: #6f7d75; font-size: .75rem; line-height: 1.45; }
.field-error { margin: 0; color: #9a2f2f; font-size: .76rem; font-weight: 700; }
.admin-photo-preview { width: auto; height: auto; max-height: 280px; margin-bottom: .6rem; object-fit: contain; object-position: left bottom; }
.choice-row { display: flex; margin-bottom: 1rem; flex-wrap: wrap; gap: .6rem 1rem; }
.choice-row label { display: inline-flex; min-height: 40px; align-items: center; gap: .4rem; font-size: .82rem; }
.choice-row input { width: auto; }
.admin-form-actions { margin-top: 1.1rem; }
.button-danger { background: #a33030; }
.admin-danger-zone { margin-top: 1rem; padding: 1.1rem; border: 1px solid #e2b5b5; background: #fff8f8; border-radius: 14px; }
.admin-danger-zone h2 { margin: 0; color: #722727; font-size: 1.05rem; }
.admin-danger-zone p { color: #765555; }
.admin-danger-zone form { display: block; margin: 0; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.admin-detail-grid div { min-width: 0; padding: .75rem; background: #f5f8f6; border-radius: 10px; }
.admin-detail-grid span, .admin-detail-grid strong { display: block; }
.admin-detail-grid span { color: #6c7972; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.admin-detail-grid strong { margin-top: .25rem; overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.admin-card-grid { display: grid; gap: 1rem; }
.admin-region-card { padding: 1rem; border: 1px solid #dce5df; background: #fff; border-radius: 14px; }
.admin-region-card > div { display: flex; align-items: center; gap: .5rem; }
.admin-region-card > div p { margin: 0; color: #718078; font-size: .72rem; font-weight: 850; letter-spacing: .08em; }
.admin-region-card h2 { margin: .7rem 0 .4rem; font-size: 1.1rem; }
.admin-region-card p { color: #5d6d64; font-size: .82rem; }
.admin-risk-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.admin-body code { padding: .15rem .35rem; color: #254d3e; background: #eaf1ed; border-radius: 5px; overflow-wrap: anywhere; }
.admin-evaluation-summary { margin-bottom: 1.25rem; }
.admin-evaluation-question-results { display: grid; gap: 1rem; }
.admin-evaluation-result { min-width: 0; padding: 1rem; border: 1px solid #dce5df; background: #f9fbfa; border-radius: 12px; }
.admin-evaluation-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.admin-evaluation-result h3, .admin-participant-answers h3 { margin: .25rem 0 0; color: #183c30; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.admin-evaluation-average { margin: 1rem 0 .75rem; color: #4d5e55; }
.admin-result-list { display: grid; margin-top: 1rem; gap: .5rem; }
.admin-result-list div { display: flex; min-width: 0; padding: .65rem .75rem; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border-radius: 8px; }
.admin-result-list span { overflow-wrap: anywhere; }
.admin-result-list strong { flex: 0 0 auto; }
.admin-text-responses { display: grid; margin-top: 1rem; gap: .65rem; }
.admin-text-responses > div { min-width: 0; padding: .75rem; background: #fff; border-radius: 8px; }
.admin-text-responses p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.admin-text-responses small { display: block; margin-top: .5rem; color: #6c7972; overflow-wrap: anywhere; }
.admin-results-note { margin: 1rem 0 0; }
.admin-results-participant-heading { margin-top: 1.5rem; }
.admin-pagination { display: flex; margin-top: 1rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .65rem; }
.admin-pagination a, .admin-pagination span { display: inline-flex; min-height: 40px; padding: .5rem .75rem; border: 1px solid #bcd3c6; align-items: center; color: #17543f; background: #fff; border-radius: 8px; font-weight: 800; text-decoration: none; }
.admin-pagination span { border-color: #dce5df; color: #87928c; background: #f6f8f7; }
.admin-pagination strong { color: #526158; font-size: .84rem; }
.admin-participant-answers { display: grid; gap: .75rem; }
.admin-participant-answers article { min-width: 0; padding: 1rem; border: 1px solid #e0e7e3; background: #f9fbfa; border-radius: 10px; }
.admin-participant-answers article > p:last-child { margin: .65rem 0 0; color: #34463d; }
.admin-certificate-search { max-width: 640px; margin: 1rem 0; grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.admin-certificate-search .admin-form-actions { margin: 0; align-items: center; }
.admin-certificate-bulk-upload { margin: 1.25rem 0; padding: 1rem; border: 1px solid #dce5df; border-radius: 12px; background: #f7faf8; }
.admin-certificate-bulk-upload h3 { margin: 0 0 .35rem; color: #183c30; font-size: 1rem; }
.admin-certificate-bulk-upload > p, .admin-certificate-expiry { color: #64736b; font-size: .85rem; }
.admin-certificate-bulk-upload .admin-form { margin-top: 1rem; }
.admin-certificate-bulk-table { min-width: 920px; }
.admin-certificate-bulk-table td:first-child { max-width: 300px; overflow-wrap: anywhere; }
.admin-certificate-replacement { display: inline-flex; gap: .45rem; align-items: center; font-size: .82rem; font-weight: 700; }
.admin-certificate-import-progress { padding: 1rem; border-radius: 12px; background: #f5f8f6; }
.admin-certificate-import-progress progress { width: 100%; height: 1rem; accent-color: #176b4d; }
.admin-certificate-import-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; margin: 1rem 0 0; }
.admin-certificate-import-summary[hidden] { display: none; }
.admin-certificate-import-summary div { padding: .75rem; border-radius: 10px; background: #fff; }
.admin-certificate-import-summary dt { color: #65736b; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.admin-certificate-import-summary dd { margin: .25rem 0 0; color: #183c30; font-size: 1.15rem; font-weight: 800; }
.admin-certificate-form { display: grid; min-width: 220px; gap: .45rem; }
.admin-certificate-form input[type="file"] { max-width: 280px; font-size: .76rem; }
.admin-certificate-form .admin-action-link { width: fit-content; background: #fff; cursor: pointer; }

@media (min-width: 640px) {
    .admin-menu-button span, .admin-topbar-user { display: block; }
    .admin-stat-grid, .admin-detail-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .admin-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .field-wide { grid-column: 1 / -1; }
    .admin-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 639px) {
    .admin-certificate-search { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
    .admin-sidebar { transform: translateX(0); }
    .admin-sidebar-close, .admin-menu-button, .admin-backdrop { display: none !important; }
    .admin-workspace { padding-left: 288px; }
    .admin-topbar { min-height: 80px; padding-inline: 2rem; }
    body.admin-body main.admin-main { min-height: calc(100vh - 80px); }
    .admin-stat-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
    .admin-dashboard-grid { grid-template-columns: 1.1fr .9fr; }
    .admin-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 639px) {
    .admin-topbar { align-items: flex-start; flex-wrap: wrap; }
    .admin-topbar > div:first-of-type { align-self: center; }
    .admin-topbar form { margin-left: auto; }
    .admin-welcome { padding: 24px; }
    .admin-welcome h1 { font-size: 32px; line-height: 40px; }
    .admin-page-heading, .admin-section-heading { align-items: flex-start; flex-direction: column; }
    .admin-page-heading > .button, .admin-heading-actions, .admin-heading-actions .button { width: 100%; }
    .admin-form-actions, .admin-form-actions .button { width: 100%; }
    .admin-detail-grid { grid-template-columns: 1fr; }
    .admin-certificate-import-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-evaluation-result-heading { flex-direction: column; }
    .admin-pagination { justify-content: center; }
}
