body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f7f7f7;
    color: #222;
}

header {
    background: #1f2937;
    color: white;
    padding: 1rem 2rem;
}

header h1 {
    margin: 0;
    font-size: 1.6rem;
}

nav {
    margin-top: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 1rem;
}

.nav-help-link {
    display: inline-block;
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.nav-help-link:hover {
    text-decoration: underline;
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h2,
h3 {
    margin-top: 0;
}

.league-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fafafa;
}

.muted {
    color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background: #f0f0f0;
}

form.search-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

input,
select,
textarea,
button {
    padding: 0.6rem;
    font-size: 1rem;
}

button {
    cursor: pointer;
}

.notification-menu {
    position: relative;
    display: inline-block;
}

.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    background: white;
    color: #222;
    min-width: 320px;
    max-width: 380px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 0.75rem;
    z-index: 1000;
}

.notification-menu:hover .notification-dropdown,
.notification-dropdown:hover {
    display: block;
}

.notification-dropdown a {
    color: #222;
    display: block;
    text-decoration: none;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.4rem;
    border-radius: 6px;
}

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

.notification-title {
    font-weight: bold;
}

.notification-time {
    color: #666;
    font-size: 0.85rem;
}

.notification-unread h3 {
    font-weight: 700;
}

.league-card.notification-unread {
    border-left: 5px solid #1f2937;
    background-color: #f8fafc;
}

.dashboard-header {
    margin-bottom: 1.5rem;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.button-link {
    display: inline-block;
    padding: 0.55rem 0.8rem;
    background: #1f2937;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.button-link:hover {
    background: #374151;
}

.button-link-brand {
    background: #58ba48;
    color: #10210d;
    border: 1px solid #4da840;
    font-weight: 700;
}

.button-link-brand:hover,
.button-link-brand:focus {
    background: #68c758;
    color: #10210d;
}

.button-link-deemphasized {
    display: inline-block;

    padding: 0.55rem 0.95rem;

    background: #ececec;
    border: 1px solid #b8b8b8;
    border-radius: 6px;

    color: #333;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.button-link-deemphasized:hover,
.button-link-deemphasized:focus {
    background: #e2e2e2;
    border-color: #969696;
    color: #111;
}

.status-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fafafa;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.status-pill {
    padding: 0.75rem;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e5e5;
}

.status-pill strong {
    display: block;
    margin-bottom: 0.25rem;
}

.match-panel {
    border-left: 5px solid #1f2937;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 1rem;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dashboard-section {
    margin-top: 2rem;
}

.compact-list {
    display: grid;
    gap: 0.75rem;
}

.compact-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0.85rem;
    background: #fafafa;
}

.compact-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.item-meta {
    color: #666;
    font-size: 0.9rem;
}

.empty-state {
    color: #666;
    padding: 1rem;
    background: #fafafa;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

.contact-box {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.match-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.inline-form {
    display: inline-block;
    margin-right: 0.5rem;
}



.filter-panel {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    background: #fafafa;
    margin-bottom: 1.5rem;
}



.filter-grid input {
    width: 100%;
    box-sizing: border-box;
}

.filter-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.league-result-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
}

.league-meta {
    color: #666;
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 0.85rem;
    margin-right: 0.35rem;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

.status-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge-success {
    background: #dcfce7;
    color: #166534;
}

.entrant-stats {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.4rem;
}



.match-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.match-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.match-status-confirmed {
    background: #dcfce7;
    color: #166534;
}

.match-status-disputed {
    background: #fee2e2;
    color: #991b1b;
}

.match-status-void {
    background: #e5e7eb;
    color: #374151;
}

.match-result-win {
    color: #166534;
    font-weight: bold;
}

.match-result-loss {
    color: #991b1b;
    font-weight: bold;
}

.form-indicator {
    display: inline-flex;
    gap: 0.25rem;
    margin-top: 0.4rem;
}

.form-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.form-dot-win {
    background: #22c55e;
}

.form-dot-loss {
    background: #ef4444;
}

/* Match Timeline */
.timeline {
    margin-top: 1rem;
    border-left: 3px solid #d1d5db;
    padding-left: 1rem;
}

.timeline-item {
    margin-bottom: 1rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #1f2937;
    border-radius: 999px;
    position: absolute;
    left: -1.42rem;
    top: 0.35rem;
}

.timeline-label {
    font-weight: bold;
}

.timeline-detail {
    color: #444;
}

.timeline-time {
    color: #666;
    font-size: 0.85rem;
}

/*End Match Timeline */

/*Start of Paswword Change Form */

.form-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    color: #555;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.form-label-block {
    padding-top: 0.35rem;
}

.form-input-block input,
.form-input-block textarea,
.form-input-block select {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
}

.password-help {
    max-width: 520px;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.password-help ul {
    margin-bottom: 0;
}

.form-actions {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-error,
.errorlist {
    color: #991b1b;
}

@media (max-width: 700px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    header {
        padding: 1rem;
    }

    main {
        margin: 1rem;
        padding: 1rem;
    }

    .site-nav {
        align-items: flex-start;
    }

    .nav-primary {
        width: 100%;
    }

    .nav-secondary {
        width: 100%;
        margin-left: 0;
    }

    .notification-dropdown {
        left: 0;
        right: auto;
        min-width: 280px;
        max-width: calc(100vw - 2rem);
    }
}

/* End of Paswword Change Form */

/* For disabled buttons */
.status-badge-muted {
    opacity: 0.8;
}


/* For Home page stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #555;
    font-size: 0.95rem;
}

/* For Home page logo */

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 1.2rem;
}

.site-logo {
    height: 36px;
    width: auto;
    display: block;
}

/* Home Page Styles */
.home-hero {
    background: linear-gradient(135deg, #111827, #374151);
    color: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.home-hero-content {
    max-width: 920px;
}

.home-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.home-hero-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.home-hero-logo {
    flex: 0 0 auto;
    width: clamp(115px, 18vw, 180px);
    height: auto;
    display: block;
}

.home-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.home-tagline {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.home-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
}

.home-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button-link.secondary {
    background: #eef7ec;
    color: #24571e;
    border: 1px solid #8fbf84;
    font-weight: 600;
}

.button-link.secondary:hover,
.button-link.secondary:focus {
    background: #e2f3dd;
    color: #163c12;
    border-color: #58ba48;
}

/* Leage List Styling */
.league-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.league-card h3 {
    margin: 0;
}

.league-card h3 a {
    text-decoration: none;
    color: #111827;
}

.league-card h3 a:hover {
    text-decoration: underline;
}

.league-card-actions {
    margin-top: 1rem;
}

/* For Private League Admin Dashboard */
.stack-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.list-row > div:last-child {
    margin-left: auto;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd;
}

.button-link-danger {
    background: #f5f5f5;
    color: #b00020;
}

.league-title-link {
    color: inherit;
    text-decoration: none;
}

.league-title-link:hover {
    text-decoration: underline;
}

.attention-card {
    border-left: 5px solid #c0392b;
}

.profile-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.profile-link:hover {
    text-decoration: underline;
}

.profile-link:visited {
    color: inherit;
}

.profile-link-leaderboard {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.profile-link-leaderboard:hover {
    text-decoration: underline;
}

.form-field {
    margin-bottom: 1rem;
}

.admin-role-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #eef3ff;
    border: 1px solid #c9d7ff;
    font-size: 0.75rem;
    font-weight: 600;
    color: #244078;
    vertical-align: middle;
}

.subtle-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.45;
    transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
}

.subtle-link:hover,
.subtle-link:focus {
    opacity: 1;
    text-decoration: underline;
}

.tournament-link {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.tournament-link:hover,
.tournament-link:focus {
    text-decoration: underline;
}

.messages {
    margin-bottom: 1.5rem;
}

.message {
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.message-success {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.message-info {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

.message-warning {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.message-error {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav a {
    margin-right: 0;
}

.nav-primary,
.nav-secondary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nav-secondary {
    margin-left: auto;
}

.nav-user {
    margin-left: 0;
}

.nav-logout-form {
    display: inline;
    margin-left: 0;
}

.nav-dashboard-button {
    display: inline-block;
    margin-left: 2rem;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    background: white;
    color: #111;
    font-weight: bold;
    text-decoration: none;
}

.nav-dashboard-button:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.nav-messages-button {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.nav-messages-button:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.notification-empty {
    margin: 0.5rem;
}


.notification-actions {
    margin-bottom: 1.5rem;
}

.notification-card-button {
    all: unset;
    cursor: pointer;
    display: block;
    width: 100%;
}

.table-scroll {
    overflow-x: auto;
    width: 100%;
}

.recent-result {
    margin-bottom: 1rem;
}

.form-dot-tie {
    background: #9ca3af;
}

.inline-form {
    display: inline-block;
    margin-right: 0.5rem;
}

.challenge-action {
    margin-top: 0.75rem;
}

.dispute-comment {
    margin-left: 1rem;
}

.home-section {
    margin-top: 3rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    margin-bottom: 0.5rem;
}

.section-heading p {
    margin: 0;
    color: #5f6873;
    line-height: 1.6;
}

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

.feature-card {
    padding: 1.5rem;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.65rem;
}

.feature-card p {
    margin-bottom: 0;
    line-height: 1.6;
}

.feature-card .text-link {
    display: inline-block;
    margin-top: 0.75rem;
}

.feature-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    background: #23364d;
    color: #ffffff;
    font-weight: bold;
}

.text-link {
    color: #23364d;
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.home-callout {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 10px;
    background: #f3f5f7;
    text-align: center;
}

.home-callout h2 {
    margin-top: 0;
}

.home-callout p {
    margin-bottom: 1.25rem;
    color: #5f6873;
}

.page-intro {
    max-width: 800px;
    margin-bottom: 2.5rem;
}

.page-intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5f6873;
}

.content-section {
    max-width: 900px;
    margin-top: 2.5rem;
}

.content-section p {
    line-height: 1.7;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

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

    .home-callout {
        padding: 1.5rem;
    }

    .home-hero {
        padding: 2rem 1.25rem;
    }

    .home-hero-main {
        align-items: flex-start;
        gap: 1rem;
    }

    .home-hero-logo {
        width: clamp(82px, 24vw, 115px);
    }

    .home-hero h1 {
        font-size: 2.25rem;
        line-height: 1.08;
    }
}

.page-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-heading-row h2 {
    margin: 0;
}

@media (max-width: 700px) {
    .page-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

.help-card {
    padding: 1.5rem;
}

.help-card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.help-card p {
    line-height: 1.6;
}

.guide-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
    padding: 1rem;
    background: #f3f5f7;
    border-radius: 8px;
}

.guide-navigation a {
    margin: 0;
    padding: 0.4rem 0.65rem;
    color: #23364d;
    background: white;
    border: 1px solid #d7dce2;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.guide-navigation a:hover {
    background: #e9edf1;
}

.guide-section {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
    scroll-margin-top: 1rem;
}

.guide-section h2 {
    margin-top: 0;
}

.guide-section p {
    line-height: 1.7;
}

.guide-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #23364d;
    color: white;
    font-weight: bold;
}

.guide-callout {
    margin-top: 3rem;
    padding: 2rem;
    background: #f3f5f7;
    border-radius: 10px;
}

.guide-callout h2 {
    margin-top: 0;
}

.guide-callout p {
    line-height: 1.7;
}

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

    .guide-section {
        grid-template-columns: 1fr;
    }

    .guide-step-number {
        margin-bottom: -0.5rem;
    }

    .guide-callout {
        padding: 1.5rem;
    }
}

.guide-highlight {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    background: #f3f5f7;
    border-left: 4px solid #23364d;
    border-radius: 6px;
}

.guide-highlight p {
    margin-bottom: 0.6rem;
}

.other-features-section {
    margin-top: 3rem;
    scroll-margin-top: 1rem;
}

.inline-feature-link,
.inline-feature-link:visited {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.inline-feature-link:hover,
.inline-feature-link:focus {
    text-decoration: underline;
}

.community-resource-contact {
    margin-top: 0.75rem;
    line-height: 1.6;
}

.community-resource-contact a {
    text-decoration: none;
}

.community-resource-contact a:hover,
.community-resource-contact a:focus {
    text-decoration: underline;
}

.community-resource-category {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #d6d9dd;
}

.community-resource-category:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.community-resource-category h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.community-resource-contact {
    margin-top: 0.75rem;
    line-height: 1.6;
}

.community-resource-contact a {
    text-decoration: none;
}

.community-resource-contact a:hover,
.community-resource-contact a:focus {
    text-decoration: underline;
}

.community-resource-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.partner-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border: 1px solid #d6d9dd;
    border-radius: 999px;
    background-color: #f6f7f8;
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

.founding-partner-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border: 1px solid #d9c27a;
    border-radius: 999px;
    background-color: #fcf7e3;
    color: #7a5a00;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.details-content {
    margin-top: 1rem;
}

/* Documentation */
.documentation-header {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 1.75rem 2rem;
    overflow: hidden;
    border: 1px solid #cfd8cc;
    border-left: 7px solid #58ba48;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            #f8fbf7 0%,
            #eef7ec 100%
        );
}

.documentation-header::after {
    content: "?";
    position: absolute;
    right: 1.5rem;
    bottom: -1.5rem;
    color: rgba(88, 186, 72, 0.10);
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.documentation-header h1 {
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.documentation-header .page-intro-text {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-bottom: 0;
}

.documentation-eyebrow {
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 0.35rem;
    color: #34792b;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.documentation-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 2rem;
    padding: 0.65rem;
    border: 1px solid #cfd8cc;
    border-radius: 8px;
    background: #f6faf5;
}

.documentation-nav a {
    display: inline-block;
    margin-right: 0;
    padding: 0.55rem 0.95rem;
    background: #eef7ec;
    border: 1px solid #8fbf84;
    border-radius: 6px;
    color: #24571e;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.documentation-nav a:hover,
.documentation-nav a:focus {
    background: #e2f3dd;
    border-color: #58ba48;
    color: #163c12;
}

.documentation-nav .documentation-nav-active {
    background: #58ba48;
    border-color: #58ba48;
    color: #10210d;
}

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

.documentation-card {
    padding: 1.5rem;
}

.documentation-card h2 {
    margin-top: 0;
}

.documentation-toc {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    border-left: 5px solid #58ba48;
    border-radius: 8px;
    background: #f8fafc;
}

.documentation-toc a {
    color: #24571e;
    font-weight: 600;
    text-decoration: none;
}

.documentation-toc a::before {
    content: "▸ ";
    color: #58ba48;
}

.documentation-toc a:hover,
.documentation-toc a:focus {
    color: #163c12;
    text-decoration: underline;
}

.documentation-toc h2 {
    margin-top: 0;
}

.documentation-toc ol {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.documentation-toc li {
    margin-bottom: 0.35rem;
}

.documentation-article {
    max-width: 860px;
}

.documentation-section {
    scroll-margin-top: 1rem;
    margin-bottom: 2.75rem;
}

.documentation-section h2 {
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #e5e7eb;
}

.documentation-section p,
.documentation-section li {
    line-height: 1.7;
}

.documentation-callout {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f8fafc;
}

.documentation-callout h3 {
    margin-top: 0;
}

.documentation-callout ul {
    margin-bottom: 0;
}

.documentation-page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 3rem;
    padding-top: 1rem;

    border-top: 1px solid #d1d5db;
}

.documentation-page-nav a {
    display: inline-block;

    padding: 0.55rem 0.95rem;

    background: #eef7ec;
    border: 1px solid #8fbf84;
    border-radius: 6px;

    color: #24571e;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.documentation-page-nav a:hover,
.documentation-page-nav a:focus {
    background: #e2f3dd;
    border-color: #58ba48;
    color: #163c12;
}


.documentation-article a,
.documentation-content a,
.documentation-callout a {
    color: #2d6b25;
    font-weight: 600;
    text-decoration: none;
}

.documentation-article a:visited,
.documentation-content a:visited,
.documentation-callout a:visited {
    color: #2d6b25;
}

.documentation-article a:hover,
.documentation-article a:focus,
.documentation-content a:hover,
.documentation-content a:focus,
.documentation-callout a:hover,
.documentation-callout a:focus {
    color: #1d4c18;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .documentation-header {
        padding: 1.4rem 1.25rem;
    }

    .documentation-header::after {
        right: 0.75rem;
        font-size: 5rem;
    }

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

    .documentation-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .documentation-nav a {
        width: 100%;
        box-sizing: border-box;
    }
    .documentation-page-nav {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .documentation-page-nav a {
        text-align: center;
    }
}
