/* Layout utilities — structural only, no color embellishment */

/* ===== Body padding override ===== */
body {
    padding: 2.618rem 11.09vw;
}

/* ===== Navigation ===== */
nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding: 1rem 11.09vw;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    margin: -2.618rem -11.09vw 0;
}

nav a {
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > span {
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 0.5rem 0;
    min-width: 10rem;
    z-index: 101;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
    background: #f5f5f5;
}

/* Push Sign In to the right */
nav .nav-signin {
    margin-left: auto;
}

/* ===== Header / Hero ===== */
header {
    text-align: left;
    padding: 6.854rem 11.09vw 4.236rem;
    margin: 0 -11.09vw 2.618rem;
    border-bottom: 1px solid #e5e5e5;
}

header h1 {
    max-width: 36rem;
}

header p {
    max-width: 42rem;
}

/* ===== Inline text links ===== */
p a, li a, td a, .email-notice a {
    text-decoration: none;
    border-bottom: 1px dashed #000;
}

p a:hover, p a:focus,
li a:hover, li a:focus,
td a:hover, td a:focus {
    border-bottom-style: solid;
}

/* ===== Buttons / CTAs ===== */
button, .cta {
    display: inline-block;
    width: auto;
}

a[href]:where(header a, .card a, section > p > a) {
    display: inline-block;
    border: 2px solid #000;
    padding: 0.618rem 1.618rem;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.618rem;
    transition: background 0.15s, color 0.15s;
}

a[href]:where(header a, .card a, section > p > a):hover {
    background: #000;
    color: #fff;
}

/* ===== Cards Grid ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1.618rem;
    margin-bottom: 2.618rem;
}

.card {
    border: 1px solid #e5e5e5;
    padding: 1.618rem;
}

/* ===== Two-column variant ===== */
.cards-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
    gap: 1.618rem;
    margin-bottom: 2.618rem;
}

/* ===== Section spacing ===== */
main > section {
    margin-bottom: 4.236rem;
}

/* ===== Main padding for non-hero pages ===== */
main > h1:first-child,
main > small:first-child {
    margin-top: 4.236rem;
}

/* ===== Footer ===== */
footer {
    border-top: 1px solid #e5e5e5;
    padding-top: 2.618rem;
    margin-top: 4.236rem;
}

/* ===== Blockquote ===== */
blockquote {
    border-left: 3px solid #e5e5e5;
    padding-left: 1.618rem;
    margin-bottom: 1.618rem;
}

/* ===== Table improvements ===== */
table {
    width: 100%;
    margin-bottom: 2.618rem;
}

th, td {
    text-align: left;
    padding: 0.618rem 1rem;
    border-bottom: 1px solid #e5e5e5;
    font-size: 1.618rem;
    line-height: 1.618;
}

th {
    font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 618px) {
    body {
        padding: 1rem 5vw;
    }

    nav {
        padding: 0.75rem 5vw;
        gap: 0.25rem 1rem;
        margin: -1rem -5vw 0;
    }

    nav a {
        font-size: 0.85rem;
    }

    header {
        padding: 4.236rem 5vw 2.618rem;
        margin: 0 -5vw 1.618rem;
    }

    .cards, .cards-2 {
        grid-template-columns: 1fr;
    }

    th, td {
        padding: 0.5rem 0.5rem;
        font-size: 1.2rem;
    }
}
