/* Islam Kindles, shared by all eight pages. Tokens, nav and footer come from shared/site.css. */
:root {
    --accent: #10b981;
    --accent-dark: #10b981;
    --accent-dark: #10b981;
    --surface2: var(--surface-2);
    --font-d: var(--font-display);
    --font-m: var(--font-mono);
}

/* ─── TOP NAV ──────────────────────────────────────────────── */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 64px;
    background: color-mix(in oklab, var(--bg) 86%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo a {
    font-family: var(--font-d);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
}

.logo span { color: var(--accent-text); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (min-width: 701px) {
    .nav-links { display: flex !important; }
}

.nav-links a {
    font-family: var(--font-m);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface2);
}

.nav-links a.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}

.nav-links a.nav-search {
    color: var(--accent);
    border-color: color-mix(in oklab, var(--accent) 40%, transparent);
    background: var(--accent-dim);
    font-weight: 700;
}

.nav-links a.nav-search:hover {
    background: color-mix(in oklab, var(--accent) 20%, transparent);
    border-color: var(--accent);
    color: var(--accent);
}

/* mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

/* ─── PAGE SHELL ───────────────────────────────────────────── */
.page-shell {
    position: relative;
    z-index: 1;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 56px var(--gutter) 88px;
}

/* ─── SECTION HEADER ───────────────────────────────────────── */
.section-eyebrow {
    font-family: var(--font-m);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 14px;
}

.section-title .acc { color: var(--accent-text); }

.section-sub {
    font-family: var(--font-m);
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 40px;
}

/* ─── CARDS ────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text);
}

.card p {
    font-family: var(--font-m);
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
}

/* ─── DIVIDER ──────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* ─── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-2 { animation: fadeUp 0.5s ease 0.1s both; }
.fade-up-3 { animation: fadeUp 0.5s ease 0.2s both; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 700px) {
    .top-bar { height: 56px; }
    .logo a { font-size: 1.1rem; }
    .nav-links { display: none; flex-direction: column; align-items: stretch; gap: 6px; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 12px var(--gutter) 16px;
    }
    .nav-links a { padding: 10px 14px; }
    .menu-toggle { display: grid; place-items: center; width: 44px; height: 40px; padding: 0; }
    .page-shell { padding: 32px var(--gutter) 64px; }
}

/* ─── EXTRACTED INLINE STYLES ────────────────────────────── */
.info-tile-link { text-decoration: none; color: inherit; }
