/* Public health portal guide. Visual tokens match welcome-portal.css. */
.portal-guide {
    --guide-accent: #ff4b32;
    --guide-accent-soft: #fff3ef;
    --guide-blue: #1a56db;
    --guide-blue-soft: #e8f0fe;
    --guide-ink: #203240;
    --guide-text: #2d3748;
    --guide-muted: #59677b;
    --guide-bg: #f5f8ff;
    --guide-border: #e4e9f2;
    margin: 0;
    background: var(--guide-bg);
    color: var(--guide-text);
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-text-size-adjust: 100%;
}

.portal-guide *,
.portal-guide *::before,
.portal-guide *::after {
    box-sizing: border-box;
}

.portal-guide h1,
.portal-guide h2,
.portal-guide h3,
.portal-guide h4,
.guide-button,
.guide-languages,
.guide-badge,
.guide-index,
.guide-eyebrow {
    font-family: 'Poppins', Arial, sans-serif;
}

.portal-guide h1,
.portal-guide h2,
.portal-guide h3,
.portal-guide h4 {
    margin: 0;
    color: var(--guide-ink);
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.portal-guide p {
    margin: 0 0 16px;
}

.portal-guide p:last-child {
    margin-bottom: 0;
}

.portal-guide a {
    color: var(--guide-blue);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.portal-guide a:hover {
    text-decoration-thickness: 2px;
}

.portal-guide a:focus-visible {
    outline: 3px solid var(--guide-blue);
    outline-offset: 5px;
    border-radius: 4px;
}

.portal-guide [id] {
    scroll-margin-top: 24px;
}

.guide-shell {
    width: min(960px, calc(100% - 48px));
    margin-inline: auto;
}

.guide-skip-link {
    position: absolute;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 12px 20px;
    border: 2px solid var(--guide-blue);
    border-radius: 8px;
    background: #fff;
    transform: translateY(-180%);
}

.guide-skip-link:focus {
    transform: translateY(0);
}

.guide-header {
    border-bottom: 1px solid var(--guide-border);
    background: #fff;
}

.guide-header-inner {
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
}

.guide-logo-link {
    display: inline-flex;
    flex: 0 1 220px;
    min-width: 0;
}

.guide-logo {
    display: block;
    width: 100%;
    height: auto;
}

.guide-languages {
    display: flex;
    flex-shrink: 0;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--guide-border);
    border-radius: 28px;
    background: var(--guide-bg);
    font-size: 13px;
    font-weight: 500;
}

.guide-languages a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    border-radius: 22px;
    color: var(--guide-muted);
    text-decoration: none;
}

.guide-languages a[aria-current='page'] {
    background: var(--guide-blue);
    color: #fff;
}

.guide-languages a:not([aria-current]):hover {
    background: var(--guide-blue-soft);
    color: var(--guide-blue);
}

.guide-hero {
    padding: 64px 24px 44px;
    text-align: center;
}

.guide-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 15px;
    border-radius: 24px;
    background: var(--guide-blue-soft);
    color: var(--guide-blue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.guide-hero h1 {
    max-width: 730px;
    margin-inline: auto;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -1px;
}

.guide-hero p {
    max-width: 670px;
    margin: 20px auto 26px;
    color: var(--guide-muted);
    font-size: 17px;
}

.portal-guide .guide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    max-width: 100%;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--guide-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    text-align: center;
    transition: background-color 150ms ease;
}

.portal-guide .guide-button:hover {
    background: #ff634e;
}

.guide-button svg {
    flex-shrink: 0;
}

.guide-index,
.guide-card {
    margin-bottom: 24px;
    padding: 30px 32px;
    border: 1px solid var(--guide-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgb(0 0 0 / 4%);
}

.guide-index {
    margin-bottom: 36px;
    padding: 24px;
}

.guide-index-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 16px;
}

.guide-index-heading h2 {
    font-size: 16px;
}

.guide-index-heading p {
    margin: 0;
    color: var(--guide-muted);
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 14px;
}

.guide-index ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-index a {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    min-height: 66px;
    padding: 12px;
    border: 1px solid var(--guide-border);
    border-radius: 7px;
    color: var(--guide-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}

.guide-index a:hover {
    border-color: #b5caf2;
    background: var(--guide-bg);
    color: var(--guide-blue);
}

.guide-index-number {
    color: var(--guide-blue);
    font-size: 12px;
    font-weight: 600;
}

.guide-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--guide-blue-soft);
}

.guide-section-number {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 9px;
    background: var(--guide-blue-soft);
    color: var(--guide-blue);
    font-size: 14px;
    font-weight: 500;
}

.guide-section-heading h2 {
    color: var(--guide-blue);
    font-size: 21px;
}

.guide-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.guide-role {
    padding: 20px;
    border: 1px solid var(--guide-border);
    border-radius: 8px;
    background: #fbfcff;
}

.guide-role h3 {
    margin-bottom: 8px;
    font-size: 14px;
}

.guide-role p {
    font-size: 14px;
}

.guide-role .guide-identifier {
    margin-bottom: 8px;
    color: var(--guide-blue);
    font-size: 20px;
    font-weight: 500;
}

.guide-note {
    margin: 24px 0;
    padding: 20px 22px;
    border-left: 3px solid var(--guide-blue);
    border-radius: 0 8px 8px 0;
    background: var(--guide-bg);
}

.guide-note h3 {
    margin-bottom: 8px;
    font-size: 15px;
}

.guide-note p {
    font-size: 15px;
}

.guide-note .guide-reference {
    color: var(--guide-muted);
    font-size: 13px;
}

.guide-note-emphasis {
    border-color: var(--guide-accent);
    background: var(--guide-accent-soft);
}

.guide-steps {
    margin: 28px 0;
    padding-left: 34px;
}

.guide-steps li {
    padding-left: 10px;
}

.guide-steps li + li {
    margin-top: 22px;
}

.guide-steps li::marker {
    color: var(--guide-blue);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.guide-step-content h3 {
    margin-bottom: 6px;
    font-size: 16px;
}

.guide-screenshot {
    margin: 26px 0;
}

.guide-screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 208px;
    padding: 28px 20px;
    border: 1px dashed #a8bddb;
    border-radius: 8px;
    background: #f8faff;
    text-align: center;
}

.guide-image-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    color: #6483ad;
}

.guide-screenshot-title {
    color: #466183;
    font-size: 15px;
    font-weight: 500;
}

.guide-screenshot-hint {
    color: var(--guide-muted);
    font-size: 12px;
}

/* Screenshots can replace the placeholder while retaining the same figure. */
.guide-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--guide-border);
    border-radius: 8px;
}

.guide-screenshot-link {
    display: block;
    font-size: 13px;
}

.guide-screenshot-link > span {
    display: inline-block;
    padding-block: 10px;
}

.guide-screenshot figcaption {
    margin-top: 9px;
    color: var(--guide-muted);
    font-size: 13px;
    line-height: 1.6;
}

.portal-guide .guide-subheading {
    margin: 28px 0 12px;
    font-size: 18px;
}

.guide-campaigns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.guide-campaigns li {
    padding: 16px 0 0;
    border-top: 3px solid var(--guide-blue-soft);
}

.guide-campaigns h4 {
    margin-bottom: 8px;
    font-size: 15px;
}

.guide-campaigns p {
    font-size: 14px;
}

.guide-contacts {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.guide-contacts li {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 1.8fr);
    align-items: center;
    gap: 8px 24px;
    padding: 14px 0;
    border-top: 1px solid var(--guide-border);
}

.guide-contacts li > span {
    color: var(--guide-muted);
    font-size: 13px;
}

.guide-contacts a {
    display: block;
    min-height: 44px;
    padding-block: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.guide-card > :last-child {
    margin-bottom: 0;
}

.guide-closing {
    padding: 48px 48px 64px;
    text-align: center;
}

.guide-eyebrow {
    color: var(--guide-blue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.guide-closing h2 {
    max-width: 660px;
    margin: 14px auto 18px;
    font-size: 29px;
    line-height: 1.4;
}

.guide-closing p {
    max-width: 620px;
    margin: 0 auto 26px;
    color: var(--guide-muted);
}

.guide-footer {
    border-top: 1px solid var(--guide-border);
    background: #fff;
}

.guide-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 26px;
    color: var(--guide-muted);
    font-size: 12px;
}

.guide-footer-inner p {
    max-width: 590px;
    margin-bottom: 4px;
}

.guide-footer-brand {
    color: var(--guide-ink);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.guide-footer-inner > a {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    min-height: 44px;
}

@media (max-width: 800px) {
    .guide-index ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-contacts li {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}

@media (max-width: 575px) {
    .guide-shell {
        width: calc(100% - 32px);
    }

    .guide-header-inner {
        min-height: 82px;
        gap: 12px;
        padding-block: 14px;
    }

    .guide-logo-link {
        flex-basis: 166px;
    }

    .guide-languages {
        gap: 0;
        padding: 3px;
        font-size: 12px;
    }

    .guide-languages a {
        padding: 8px 10px;
    }

    .guide-hero {
        padding: 36px 0 30px;
    }

    .guide-hero h1 {
        font-size: 30px;
        letter-spacing: -0.7px;
    }

    .guide-hero p {
        margin-top: 16px;
        font-size: 16px;
    }

    .guide-card {
        padding: 24px 20px;
        margin-bottom: 18px;
    }

    .guide-index {
        padding: 20px;
        margin-bottom: 24px;
    }

    .guide-index ol,
    .guide-role-grid,
    .guide-campaigns {
        grid-template-columns: minmax(0, 1fr);
    }

    .guide-index a {
        min-height: 52px;
    }

    .guide-section-heading {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .guide-section-heading h2 {
        padding-top: 4px;
        font-size: 19px;
    }

    .guide-section-number {
        flex-basis: 32px;
        height: 32px;
        font-size: 12px;
    }

    .guide-role {
        padding: 16px;
    }

    .guide-note {
        padding: 16px;
    }

    .guide-steps {
        padding-left: 24px;
    }

    .guide-steps li {
        padding-left: 4px;
    }

    .guide-screenshot-placeholder {
        min-height: 178px;
    }

    .guide-closing {
        padding: 36px 4px 44px;
    }

    .guide-closing h2 {
        font-size: 25px;
    }

    .guide-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-guide .guide-button {
        transition: none;
    }
}

@media print {
    .portal-guide {
        background: #fff;
        font-size: 11pt;
    }

    .guide-shell {
        width: 100%;
        max-width: none;
    }

    .guide-header,
    .guide-index,
    .guide-skip-link,
    .portal-guide .guide-button,
    .guide-footer-inner > a {
        display: none;
    }

    .guide-hero,
    .guide-closing {
        padding: 20px 0;
    }

    .guide-card {
        padding: 20px 0;
        box-shadow: none;
        border-width: 0 0 1px;
        border-radius: 0;
    }

    .guide-section-heading,
    .portal-guide h3,
    .portal-guide h4 {
        break-after: avoid;
    }

    .guide-note,
    .guide-screenshot,
    .guide-steps li {
        break-inside: avoid;
    }
}
