:root {
    --guides-brand: #0f766e;
    --guides-brand-dark: #115e59;
    --guides-brand-soft: #f0fdfa;
    --guides-ink: #0f172a;
    --guides-copy: #475569;
    --guides-muted: #64748b;
    --guides-line: #e2e8f0;
    --guides-surface: #f8fafc;
}

html {
    scroll-behavior: smooth;
}

.guides-page {
    overflow: hidden;
    background: #fff;
    color: var(--guides-ink);
    font-family: "Noto Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

.guides-page *,
.guides-page *::before,
.guides-page *::after {
    box-sizing: border-box;
}

.guides-page a {
    color: inherit;
}

.guides-shell {
    width: min(100% - 40px, 1408px);
    margin-inline: auto;
}

.guides-eyebrow {
    margin: 0 0 8px;
    color: var(--guides-brand);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.guides-hero {
    position: relative;
    border-bottom: 1px solid #ccfbf1;
    background:
        radial-gradient(circle at 18% 0%, rgb(20 184 166 / .13), transparent 27rem),
        linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
    padding: 50px 0 52px;
    text-align: center;
}

.guides-hero::after {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgb(15 118 110 / .035) 1px, transparent 1px),
        linear-gradient(90deg, rgb(15 118 110 / .035) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
    pointer-events: none;
}

.guides-hero .guides-shell {
    position: relative;
    z-index: 1;
}

.guides-hero h1 {
    margin: 0;
    color: var(--guides-ink);
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.06;
}

.guides-hero p:last-child {
    max-width: 760px;
    margin: 17px auto 0;
    color: var(--guides-copy);
    font-size: 18px;
    line-height: 1.7;
}

.guides-library {
    padding: 66px 0 76px;
    background: var(--guides-surface);
}

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

.guides-section-heading > div {
    max-width: 820px;
}

.guides-section-heading h2 {
    margin: 0;
    color: var(--guides-ink);
    font-size: clamp(29px, 3vw, 40px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.guides-section-heading > div > p:last-child {
    margin: 10px 0 0;
    color: var(--guides-copy);
    font-size: 16px;
}

.guides-section-heading > span {
    flex: 0 0 auto;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    background: var(--guides-brand-soft);
    padding: 7px 12px;
    color: var(--guides-brand-dark);
    font-size: 12px;
    font-weight: 850;
}

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

.guide-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--guides-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 8px rgb(15 23 42 / .04);
    transition: .2s ease;
}

.guide-card:hover {
    border-color: #99f6e4;
    box-shadow: 0 16px 38px rgb(15 23 42 / .08);
    transform: translateY(-2px);
}

.guide-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dbeafe;
}

.guide-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.guide-card:hover .guide-card__media img {
    transform: scale(1.025);
}

.guide-card__body {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    padding: clamp(25px, 2.6vw, 36px);
}

.guide-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 15px;
    color: var(--guides-muted);
    font-size: 12px;
    font-weight: 750;
}

.guide-card__meta .guide-card__type {
    border: 1px solid #99f6e4;
    border-radius: 999px;
    background: var(--guides-brand-soft);
    padding: 4px 9px;
    color: var(--guides-brand);
    font-weight: 850;
}

.guide-card__meta .guide-card__category {
    color: var(--guides-brand-dark);
    font-weight: 850;
}

.guide-card__meta span + span::before {
    margin-right: 15px;
    color: #cbd5e1;
    content: "•";
}

.guide-card__meta .guide-card__category::before {
    display: none;
}

.guide-card h3 {
    margin: 14px 0 0;
    color: var(--guides-ink);
    font-size: clamp(25px, 2.5vw, 32px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.16;
}

.guide-card h3 a {
    text-decoration: none;
}

.guide-card h3 a:hover {
    color: var(--guides-brand-dark);
}

.guide-card__body > p {
    margin: 14px 0 0;
    color: var(--guides-copy);
    font-size: 15px;
    line-height: 1.75;
}

.guide-card__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.guide-card__topics li {
    border: 1px solid var(--guides-line);
    border-radius: 999px;
    background: var(--guides-surface);
    padding: 5px 10px;
    color: var(--guides-copy);
    font-size: 11px;
    font-weight: 800;
}

.guide-card__link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 22px;
    color: var(--guides-brand) !important;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.guide-card__link:hover {
    color: var(--guides-brand-dark) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.guides-tools {
    padding: 68px 0 78px;
    background: #fff;
}

.guides-verification {
    border-top: 1px solid #ccfbf1;
    background: #fff;
    padding: 0 0 78px;
}

.guides-verification__panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    border: 1px solid #99f6e4;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgb(20 184 166 / .13), transparent 22rem),
        var(--guides-brand-soft);
    padding: 30px 34px;
}

.guides-verification__mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 14px;
    background: var(--guides-brand);
    color: #fff;
    font-size: 25px;
    font-weight: 900;
}

.guides-verification__body h2 {
    margin: 0;
    color: var(--guides-ink);
    font-size: clamp(23px, 2.4vw, 31px);
    font-weight: 850;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.guides-verification__body > p:last-child {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--guides-copy);
    font-size: 14px;
    line-height: 1.65;
}

.guides-verification__link {
    border: 1px solid var(--guides-brand);
    border-radius: 10px;
    background: #fff;
    padding: 11px 15px;
    color: var(--guides-brand-dark) !important;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.guides-verification__link:hover {
    background: var(--guides-brand);
    color: #fff !important;
}

.guides-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.guides-tool-card {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    border: 1px solid var(--guides-line);
    border-radius: 16px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 1px 2px rgb(15 23 42 / .04);
    text-decoration: none;
    transition: .18s ease;
}

.guides-tool-card:hover {
    border-color: #99f6e4;
    box-shadow: 0 13px 32px rgb(15 118 110 / .09);
    text-decoration: none;
    transform: translateY(-2px);
}

.guides-tool-card__mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    background: #ccfbf1;
    color: var(--guides-brand-dark);
    font-size: 13px;
    font-weight: 900;
}

.guides-tool-card__body {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.guides-tool-card strong,
.guides-tool-card small,
.guides-tool-card b {
    display: block;
}

.guides-tool-card strong {
    margin-top: 18px;
    color: var(--guides-ink);
    font-size: 17px;
    line-height: 1.35;
}

.guides-tool-card small {
    margin-top: 8px;
    color: var(--guides-muted);
    font-size: 13px;
    line-height: 1.6;
}

.guides-tool-card b {
    margin-top: auto;
    padding-top: 18px;
    color: var(--guides-brand);
    font-size: 12px;
}

@media (max-width: 1020px) {
    .guides-verification__panel {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .guides-verification__link {
        grid-column: 2;
        justify-self: start;
    }

    .guides-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guides-tool-card {
        min-height: 220px;
    }
}

@media (max-width: 800px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }

    .guide-card__media {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .guides-shell {
        width: min(100% - 28px, 1408px);
    }

    .guides-hero {
        padding: 40px 0 42px;
    }

    .guides-hero h1 {
        font-size: 38px;
    }

    .guides-hero p:last-child {
        font-size: 16px;
    }

    .guides-library,
    .guides-verification,
    .guides-tools {
        padding-block: 52px 58px;
    }

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

    .guide-card__body {
        padding: 26px 22px 29px;
    }

    .guide-card__meta {
        gap: 7px 10px;
    }

    .guide-card__meta span:nth-child(n + 3) {
        width: 100%;
    }

    .guide-card__meta span:nth-child(n + 3)::before {
        display: none;
    }

    .guide-card h3 {
        font-size: 27px;
    }

    .guides-tool-grid {
        grid-template-columns: 1fr;
    }

    .guides-tool-card {
        min-height: 0;
    }

    .guides-verification__panel {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 25px 22px;
    }

    .guides-verification__link {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .guide-card,
    .guide-card__media img,
    .guides-verification__link,
    .guides-tool-card {
        transition: none;
    }
}
