:root {
    color-scheme: light;
    --s24-bg: #faf8f5;
    --s24-white: #ffffff;
    --s24-ink: #1a1a1a;
    --s24-muted: #5f5f5f;
    --s24-border: #e9e9e9;
    --s24-brand: #f97316;
    --s24-warm: #fdf5ed;
    --s24-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--s24-bg);
    color: var(--s24-ink);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.4);
    outline-offset: 3px;
    border-radius: 8px;
}


.s24-main {
    display: flex;
    flex-direction: column;
}

.s24-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.s24-section {
    padding: 96px 0;
}

.s24-section-white {
    background: var(--s24-white);
}

.s24-section-warm {
    background: var(--s24-warm);
}

.s24-hero {
    padding: 90px 0 72px;
    background: var(--s24-warm);
}

.s24-hero-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 960px) {
    .s24-hero-grid {
        grid-template-columns: 3fr 1fr;
        align-items: center;
    }
}

.s24-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--s24-brand);
}

.s24-title {
    font-size: clamp(2.2rem, 2.5vw, 3rem);
    line-height: 1.15;
    margin: 12px 0 16px;
}

.s24-subtitle {
    font-size: 1.05rem;
    color: var(--s24-muted);
    margin-bottom: 16px;
}

.s24-content p {
    margin-bottom: 16px;
    /* Restored from previous CSS for spacing */
    max-width: 100%;
    /* Keep optimal reading length */
}

.s24-inline-meta {
    font-size: 0.95rem;
    color: var(--s24-muted);
    margin: 12px 0 20px;
}

.s24-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.s24-btn-primary {
    background: var(--s24-brand) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.s24-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.32);
}

.s24-btn-secondary {
    border: 1px solid var(--s24-brand);
    color: var(--s24-brand);
    background: transparent;
}

.s24-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.s24-section-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 48px;
}

.s24-section-title {
    font-size: clamp(1.9rem, 2.3vw, 2.5rem);
    font-weight: 700;
    color: var(--s24-ink);
    margin-bottom: 24px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--s24-ink);
}

.s24-content h2,
.s24-content h3 {
    margin-top: 48px;
}

.s24-content h2:first-child,
.s24-content h3:first-child {
    margin-top: 0;
}

.s24-card {
    background: var(--s24-white);
    border: 1px solid var(--s24-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--s24-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.s24-card-title {
    font-size: 1.25rem;
}

.s24-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: transparent;
    color: var(--s24-brand);
    font-weight: 700;
    font-size: 0.85rem;
    width: fit-content;
}

.s24-grid {
    display: grid;
    gap: 20px;
}

/* Specific override for Top Tools section */
#top-tools .s24-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.s24-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.s24-list-numbered li {
    display: list-item;
    color: #3f3f46;
    margin-bottom: 6px;
    /* consistent spacing */
}

/* Removed legacy span selector as standard lists don't use it */

.s24-list-bulleted {
    list-style: disc;
    padding-left: 18px;
}

.s24-list-bulleted li {
    display: list-item;
    color: #3f3f46;
}

.s24-main-layout {
    display: grid;
    gap: 30px;
    margin-top: 48px;
    margin-bottom: 96px;
}

@media (min-width: 1024px) {
    .s24-main-layout {
        grid-template-columns: 260px 1fr;
        align-items: flex-start;
    }
}

.s24-toc {
    position: sticky;
    top: 24px;
    background: var(--s24-white);
    border: 1px solid var(--s24-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.s24-toc-title {
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.s24-toc-list,
.s24-toc nav ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.s24-toc-list a,
.s24-toc nav a {
    font-weight: 600;
    color: #1f2937;
    display: block;
    font-size: 0.95rem;
}

.s24-toc-list a.is-active,
.s24-toc nav a.active {
    color: var(--s24-brand);
}

.s24-content {
    display: grid;
    gap: 24px;
}

.s24-link-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.s24-link-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s24-link-grid-1 {
    grid-template-columns: 1fr;
}

.s24-link-grid a {
    background: #fff;
    border: 1px solid var(--s24-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.s24-link-grid a:hover,
.s24-link-grid a:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--s24-brand);
}

.s24-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.4);
    background: transparent;
    color: #9a3412;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.s24-button-link-light {
    border: 1px solid var(--s24-border);
    background: transparent;
    color: var(--s24-brand);
    box-shadow: none;
}

.s24-button-link-light:hover,
.s24-button-link-light:focus {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.s24-button-link:hover,
.s24-button-link:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.18);
}

.s24-split {
    display: grid;
    gap: 18px;
}

@media (min-width: 860px) {
    .s24-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.s24-note {
    background: #fff7ed;
    border: 1px solid #ffe2c2;
    padding: 12px 14px;
    border-radius: 12px;
    color: #4b5563;
}

.s24-mini-note {
    font-size: 0.95rem;
    color: var(--s24-muted);
    margin-top: 12px;
}

.s24-mini-card {
    background: #fff7ed;
    border: 1px solid #ffe2c2;
    border-radius: 14px;
    padding: 18px;
    display: grid;
    gap: 10px;
}

/* FAQ Details */
.s24-faq-details,
.s24-faq details {
    background: white;
    border: 1px solid var(--s24-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    padding: 14px 16px;
}

.s24-faq-details summary,
.s24-faq summary {
    padding: 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.s24-faq-details summary::-webkit-details-marker {
    display: none;
}

.s24-faq-details summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--s24-brand);
}

.s24-faq-details[open] summary::after {
    content: "-";
}

.s24-faq-details p {
    padding: 10px 0 0 0;
    margin: 0;
    color: var(--s24-muted);
}

/* Mobile TOC overrides */
@media (max-width: 1023px) {
    .s24-toc {
        position: static;
        margin-bottom: 24px;
    }
}

/* ----------------------------------------------------------------- */
/* PRESERVED: Table Styles - Scrollable & Hints (Not in reference) */
/* ----------------------------------------------------------------- */
.s24-table-container {
    overflow-x: auto;
    border-radius: var(--s24-radius);
    /* will use 12px unless overwritten */
    border: 1px solid var(--s24-border);
    background: white;
    box-shadow: var(--s24-shadow);
    margin-top: 24px;
    -webkit-overflow-scrolling: touch;
    background:
        linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
        linear-gradient(to right, rgba(255, 255, 255, 0), white 70%) 0 100%,
        radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
        radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) 0 100%;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-attachment: local, local, scroll, scroll;
}

.s24-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    text-align: left;
    min-width: 600px;
}

.s24-table th,
.s24-table td {
    padding: 16px;
    border-bottom: 1px solid var(--s24-border);
}

.s24-table th {
    background: #f9fafb;
    font-weight: 600;
    color: var(--s24-ink);
    white-space: nowrap;
}

.s24-table td {
    color: var(--s24-muted);
}

.s24-table tr:hover td {
    background: #fdfdfd;
}

/* Utility */
.mb-4 {
    margin-bottom: 16px;
}

.mt-4 {
    margin-top: 16px;
}

/* Print Styles */
@media print {

    .s24-toc,
    .s24-btn,
    .s24-hero {
        display: none;
    }

    .s24-main-layout {
        display: block;
    }

    .s24-content {
        max-width: 100%;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* Ensure centering of hero content explicitly */
.s24-hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ----------------------------------------------------------------- */
/* NEW: FAQ & CTA Styles (Adapted from Audit Service Page)           */
/* ----------------------------------------------------------------- */

/* FAQ */
.s24-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.s24-faq-item {
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e5e5;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.s24-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.05rem;
    list-style: none;
    /* Hide default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s24-faq-item summary::-webkit-details-marker {
    display: none;
}

.s24-faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--s24-brand);
}

.s24-faq-item[open] summary::after {
    content: '-';
}

.s24-faq-item p {
    margin-top: 10px;
    color: #666666;
    line-height: 1.7;
}

/* CTA */
.s24-cta-card {
    background-color: #f97316;
    color: #ffffff;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.35);
    max-width: 900px;
    margin: 0 auto;
}

.s24-cta-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.s24-cta-card p {
    font-size: 1.0625rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.s24-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 520px) {
    .s24-cta-buttons {
        flex-direction: row;
    }
}

.s24-btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* Invert colors for white-on-orange button */
.s24-cta-card .s24-btn-secondary {
    background: #ffffff;
    color: #f97316;
    border: none;
}

.s24-scenarios-stack {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

/* Recommended Reading Grid */
.s24-link-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.s24-link-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s24-link-grid a {
    background: #fff;
    border: 1px solid var(--s24-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.s24-link-grid a:hover,
.s24-link-grid a:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--s24-brand);
}