* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Instrument Sans", sans-serif;
    color: #12203a;
    background:
        radial-gradient(circle at top left, rgba(20, 102, 59, 0.08), transparent 24%),
        radial-gradient(circle at top right, rgba(239, 246, 241, 0.95), transparent 24%),
        #ffffff;
}

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

.detail-page-shell {
    /* width: 100%; */
    max-width: 1680px;
    margin: 0 auto;
    padding: 18px 20px 28px;
}

.detail-page {
    margin-top: 0;
    /* padding: 0 32px; */
}

/* .detail-hero {
    padding: 22px 64px 26px;
    background: url("/assets/images/announcement-hero-bg.png");
    color: #fff;
    position: relative;
    overflow: hidden;
} */

.detail-hero {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;

    padding: 22px 64px 26px;
    background: url("/assets/images/announcement-hero-bg.png");
    background-size: cover;
    background-position: center;

    color: #fff;
    overflow: hidden;
}

.detail-breadcrumbs,
.detail-hero-row,
.detail-meta-row,
.detail-highlight,
.share-row,
.share-icons,
.detail-pagination,
.detail-page-nav,
.detail-side-head,
.related-item,
.related-meta,
.detail-category-item,
.detail-category-left,
.detail-side-link {
    display: flex;
    align-items: center;
}

.detail-breadcrumbs,
.detail-hero-row {
    max-width: 1640px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.detail-breadcrumbs {
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
}

.detail-breadcrumbs strong {
    color: #f7c948;
}

.detail-hero-row {
    justify-content: space-between;
    gap: 18px;
    margin-top: 10px;
}

.detail-hero h1 {
    margin: 0;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.detail-hero-line {
    width: 58px;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: #f6c22d;
}

.detail-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: #fff;
    color: #0f5132;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.detail-role-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #15803d;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(340px, 0.78fr);
    gap: 18px;
    max-width: auto;
    margin: 22px auto 0;
}

.detail-article-card,
.detail-side-card,
.detail-help-card {
    border: 1px solid #e8eef3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(18, 35, 82, 0.06);
}

.detail-cover {
    padding: 16px 16px 0;
}

.detail-cover img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

.detail-body {
    padding: 16px 20px 18px;
}

.detail-tag,
.related-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.detail-tag {
    background: #e8f7ee;
    color: #15803d;
}

.detail-body h2 {
    margin: 14px 0 8px;
    color: #11653c;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.detail-summary {
    margin: 0;
    color: #5b6880;
    font-size: 16px;
    line-height: 1.55;
}

.detail-meta-row {
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 14px 0;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    color: #64748b;
    font-size: 14px;
}

.detail-meta-row span,
.related-views {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.detail-ui-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.detail-ui-icon.is-small {
    width: 18px;
    height: 18px;
}

.detail-ui-icon.is-mini {
    width: 16px;
    height: 16px;
}

.detail-content {
    padding-top: 18px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
}

.detail-content p {
    margin: 0 0 12px;
}

.detail-highlight {
    gap: 14px;
    margin: 18px 0 10px;
    padding: 14px 16px;
    border: 1px solid #f5d97c;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffaf0 0%, #fffdf8 100%);
}

.detail-highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #ffd45a;
    color: #8a5b00;
    flex: 0 0 auto;
}

.detail-highlight-label {
    color: #1f2937;
    font-size: 15px;
    font-weight: 800;
}

.detail-highlight strong {
    display: block;
    margin-top: 2px;
    color: #1f2937;
    font-size: 16px;
}

.detail-content h3 {
    margin: 12px 0 8px;
    color: #11653c;
    font-size: 20px;
    font-weight: 800;
}

.detail-list {
    margin: 0 0 10px 0;
    padding-left: 22px;
}

.detail-list li {
    margin-bottom: 4px;
}

.attachment-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.attachment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e6edf2;
    border-radius: 14px;
    background: #fff;
}

.attachment-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 26px;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.attachment-type-red {
    background: #ef4444;
}

.attachment-type-green {
    background: #15803d;
}

.attachment-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.attachment-copy strong {
    display: block;
    color: #1f2d4d;
    font-size: 14px;
}

.attachment-copy span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 13px;
}

.attachment-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #b8dfc7;
    border-radius: 10px;
    color: #15803d;
}

.share-row {
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.share-row > span {
    color: #1f2937;
    font-weight: 700;
}

.share-icons {
    gap: 10px;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.share-icon.whatsapp {
    background: #16a34a;
}

.share-icon.facebook {
    background: #2563eb;
}

.share-icon.x {
    background: #111827;
}

.share-icon.telegram {
    background: #38bdf8;
}

.share-icon.link {
    background: #fff;
    color: #64748b;
    border: 1px solid #d8e1ea;
}

.detail-pagination {
    justify-content: space-between;
    gap: 0;
    border-top: 1px solid #edf2f7;
}

.detail-page-nav {
    justify-content: space-between;
    gap: 16px;
    width: 50%;
    padding: 16px 20px;
}

.detail-page-nav + .detail-page-nav {
    border-left: 1px solid #edf2f7;
}

.detail-page-nav small {
    display: block;
    color: #94a3b8;
    font-size: 13px;
}

.detail-page-nav strong {
    display: block;
    margin-top: 4px;
    color: #22356f;
    font-size: 14px;
    line-height: 1.45;
}

.detail-page-nav.next {
    text-align: right;
}

.detail-page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff5db;
    color: #6b4e00;
    flex: 0 0 auto;
}

.detail-sidebar {
    display: grid;
    gap: 14px;
}

.detail-side-card,
.detail-help-card {
    padding: 18px 18px 16px;
}

.detail-side-head {
    gap: 10px;
    margin-bottom: 14px;
    color: #22356f;
}

.detail-side-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.related-list,
.detail-category-list {
    display: grid;
}

.related-item {
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
}

.related-item:last-child {
    border-bottom: 0;
}

.related-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-height: 64px;
    border: 1px solid #e6edf2;
    border-radius: 12px;
    color: #1f2937;
    line-height: 1;
    flex: 0 0 auto;
}

.related-date-box strong {
    font-size: 22px;
}

.related-date-box span {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
}

.related-copy h4 {
    margin: 0;
    color: #22356f;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.related-meta {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}

.related-tag-orange {
    background: #fff2d9;
    color: #ea8f00;
}

.related-tag-blue {
    background: #e9f3ff;
    color: #1d7ed8;
}

.related-tag-purple {
    background: #f0eaff;
    color: #7c3aed;
}

.detail-side-link {
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    color: #15803d;
    font-size: 15px;
    font-weight: 700;
}

.detail-category-item {
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.detail-category-item:last-child {
    border-bottom: 0;
}

.detail-category-left {
    gap: 10px;
    color: #4b5563;
    font-size: 15px;
}

.detail-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eaf6ef;
    color: #15803d;
    font-size: 13px;
    font-weight: 800;
}

.detail-help-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.detail-help-copy h3 {
    margin: 0 0 8px;
    color: #11653c;
    font-size: 20px;
    font-weight: 800;
}

.detail-help-copy p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
}

.detail-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    margin-top: 16px;
    padding: 0 16px;
    border-radius: 12px;
    background: #15803d;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.detail-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: radial-gradient(circle at center, #f3fbf6 0%, #e8f5ec 100%);
    color: #15803d;
    flex: 0 0 auto;
}

.detail-help-icon svg {
    width: 84px;
    height: 70px;
}

@media (max-width: 1320px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .attachment-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .detail-hero {
        padding: 18px 24px 24px;
    }

    .detail-hero-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 760px) {
    .detail-page-shell {
        padding: 14px 14px 24px;
    }

    .detail-article-card,
    .detail-side-card,
    .detail-help-card {
        border-radius: 20px;
    }

    .detail-body {
        padding: 14px 16px 18px;
    }

    .detail-cover {
        padding: 12px 12px 0;
    }

    .detail-cover img {
        height: 180px;
    }

    .detail-pagination {
        flex-direction: column;
    }

    .detail-page-nav {
        width: 100%;
    }

    .detail-page-nav + .detail-page-nav {
        border-left: 0;
        border-top: 1px solid #edf2f7;
    }

    .detail-help-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
