:root {
    --primary-color: #1a2a3a;
    --secondary-color: #0d8a72;
    --accent-color: #e04f3f;
    --bg-color: #f4f6f9;
    --text-color: #2c3e50;
    --text-muted: #5a6c7d;
    --border-color: #dbe2e9;
    --code-bg: #111625;
    --white: #ffffff;
    
    /* Highly readable colors optimized for dark CTA background blocks */
    --download-bg: #1e293b; /* Premium slate/dark blue background */
    --download-text: #f1f5f9; /* Ultra-clear off-white text */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth; /* Enables smooth animated jumping when clicking links */
}

header {
    background-color: var(--white);
    border-bottom: 4px solid var(--primary-color);
    padding: 24px 0;
    box-shadow: 0 4px 12px rgba(26, 42, 58, 0.06);
}

.header-container {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

/* Set to exactly 33% width of its parent layout container */
.logo-area img {
    width: 33%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.header-title {
    text-align: right;
}

.header-title h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.75px;
}

.header-title p {
    margin: 4px 0 0 0;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.container {
    max-width: 1040px;
    margin: 48px auto;
    padding: 0 24px;
}

.download-box {
    background-color: var(--download-bg);
    color: var(--download-text);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(26, 42, 58, 0.12);
}

.download-text h2 {
    color: var(--white) !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin: 0 0 6px 0 !important;
    font-size: 22px;
    font-weight: 700;
}

.download-text p {
    margin: 0;
    color: var(--download-text); 
    font-size: 15px;
}

.download-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(13, 138, 114, 0.3);
}

.download-btn:hover {
    background-color: #0b735f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 138, 114, 0.4);
}

.index-box {
    background: var(--white);
    padding: 32px 40px;
    border-radius: 12px;
    margin-bottom: 48px;
    box-shadow: 0 4px 16px rgba(142, 153, 165, 0.08);
    border: 1px solid var(--border-color);
}

.index-list {
    margin: 0;
    padding-left: 24px;
}

.index-list li {
    margin-bottom: 10px;
    font-size: 16px;
}

.index-list a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.index-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

section {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(142, 153, 165, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid #ebf0f5;
    padding-bottom: 12px;
    margin-top: 0;
    font-size: 24px;
    font-weight: 700;
}

h3 {
    color: var(--primary-color);
    font-size: 19px;
    margin-top: 32px;
    font-weight: 600;
}

h4 {
    color: var(--secondary-color);
    font-size: 15px;
    margin-top: 24px;
    margin-bottom: 6px;
    font-weight: 700;
}

p, ul, ol {
    margin-bottom: 1.5em;
    color: #4a5568;
}

li {
    margin-bottom: 0.6em;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background-color: #f0f3f6;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #b8296a;
    font-weight: 500;
}

pre {
    background-color: var(--code-bg);
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.75em 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #1e2538;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: #e2e8f0;
    font-size: 13.5px;
    line-height: 1.6;
}

.table-container {
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
}

th, td {
    padding: 14px 18px;
}

th {
    background-color: #f8fafc;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

td {
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fdfefe;
}

.accent-block {
    border-left: 4px solid var(--secondary-color);
    background-color: #f0fdfa;
    padding: 18px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.accent-block p {
    margin: 0;
    color: #115e59;
    font-size: 15px;
}

.contact-details a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.return-link-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    border-top: 1px dashed var(--border-color);
    padding-top: 14px;
}

.back-to-index {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.back-to-index:hover {
    color: var(--secondary-color);
}

footer {
    text-align: center;
    padding: 36px 0;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-top: 1px solid var(--border-color);
    margin-top: 72px;
    background-color: var(--white);
}

@media (max-width: 768px) {
    .header-container, .download-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .header-title {
        text-align: center;
    }
    /* Expands to take more width on small screens to remain legible */
    .logo-area img {
        width: 60%;
        margin: 0 auto;
    }
}