* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f2f4f7;
    color: #111827;
}

header {
    nav {
        ol {
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1em;

            > div {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                gap: 2em;
            }
        }
    }
}

main {
    padding: 2em;

    .popover {
        max-width: 1100px;
        margin: 0 auto 2rem;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
        border: 1px solid #e5e7eb;
        overflow: hidden;
        position: absolute;
        top: 2em;
        left: 50%;

        .popover-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.25rem;
            background: #f8fafc;
            border-bottom: 1px solid #e5e7eb;
            gap: 0.75rem;

            .popover-title {
                display: flex;
                align-items: center;
                gap: 0.6rem;

                .popover-icon {
                    font-size: 1.25rem;
                    color: #060b1c;
                }

                h1 {
                    font-size: 1.1rem;
                    font-weight: 700;
                    color: #0f172a;
                }
            }

            .popover-toggle {
                border: none;
                background: transparent;
                font-size: 1.2rem;
                color: #334155;
                cursor: pointer;
            }
        }

        .popover-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
            padding: 1rem;

            section.popover-card {
                background: #fff;
                border: 1px solid #e5e7eb;
                border-radius: 12px;
                padding: 1rem;

                h2 {
                    font-size: 1rem;
                    margin-bottom: 0.45rem;
                    color: #0f172a;
                }

                p {
                    margin-bottom: 0.7rem;
                    color: #475569;
                    line-height: 1.45;
                }

                a {
                    color: #0f172a;
                    font-weight: 600;
                    text-decoration: none;
                }

                ol,
                ul {
                    margin-top: 0.75rem;
                    margin-left: 1.3rem;
                    color: #334155;

                    li {
                        margin-bottom: 0.4rem;

                        a {
                            color: #0f172a;
                            text-decoration: none;
                        }
                    }
                }
            }
        }

        .popover-actions {
            display: flex;
            justify-content: flex-start;
            gap: 0.75rem;
            padding: 1rem;
            border-top: 1px solid #e5e7eb;
            background: #f8fafc;

            .btn-primary,
            .btn-secondary {
                border: none;
                border-radius: 10px;
                padding: 0.75rem 1.25rem;
                font-weight: 600;
                font-size: 0.95rem;
                cursor: pointer;
            }

            .btn-primary {
                background: #060b1c;
                color: #fff;
            }

            .btn-secondary {
                background: #e2e8f0;
                color: #0f172a;
            }
        }
    }
}

@media (max-width: 900px) {
    main {

        .popover {
            .popover-grid {
                grid-template-columns: 1fr;
            }
        }
    }
}