body {
    font-family: "Inter", sans-serif;
    font-size: 16.5px;
    /* slightly larger */
    line-height: 1.65;

    background: #f3f0fc;
    color: #2a1f37;
    margin: 0;
}

h1,
h2,
h3 {
    font-family: "Manrope", sans-serif;
}

a {
    color: #6e3ec8; 
}

a:active {
    color: #783597; /* darker shade */
}

/* after it has been visited */
a:visited {
    color: #391f6b; /* slightly darker than base */
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: #382775;
    color: white;

    padding: 20px 16px;
    text-align: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow: 0 4px 20px rgba(156, 37, 235, 0.25);
}

header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 20px;

    background: radial-gradient(ellipse at center,
            rgba(139, 37, 235, 0.25),
            transparent 70%);

    pointer-events: none;
}

/* TYPOGRAPHY */
h1 {
    margin: 0;
    font-size: 2rem;
}

h2 {
    color: #1f1027;
    margin-bottom: 15px;
    border-left: 4px solid #54386b;
    padding-left: 10px;
}

/* LAYOUT */
.section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* QUICK ACTIONS */
.quick-actions {
    text-align: center;
    padding: 40px 20px 10px;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* CARDS */
.card-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 260px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card h3 {
    margin-top: 0;
}

.card a {
    color: #7125eb;
    font-weight: 500;
}

/* LISTS */
ul {
    line-height: 1.8;
}

/* CODE BLOCK */
code {
    display: block;
    background: #140b1a;
    color: #e7e5eb;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9em;
}

/* ACCORDION */
.accordion-btn {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #1e1127;
    width: 100%;
    text-align: left;
    padding: 12px;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 500;
}

.accordion-btn:hover {
    background: #f9fafb;
}

.accordion-content {
    display: none;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-top: none;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    color: #6b7280;
}

/* HERO */
.hero {
    max-width: 1000px;
    margin: 40px auto 20px;
    padding: 20px;
    text-align: center;
}

/* SUBTITLE */
.subtitle {
    margin-top: 6px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* GRID (replaces metrics) */
.action-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 40px auto;
    gap: 30px;
    
}

.action-card {
    flex: 1 1 250px;
    max-width: 320px;

    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;

    text-decoration: none;
    color: inherit;

    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* PRIMARY CARD (MAP) */
.action-card.primary {
    background: linear-gradient(135deg, #7125eb, #5e1dd8);
    color: white;
    border: none;
}

.action-card.primary p {
    color: rgba(255, 255, 255, 0.85);
}

/* TITLE */
.action-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1e1127;
}

/* DESCRIPTION */
.action-card p {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #6c6375;
}

.action-card::after {
    content: "→";
    float: right;
    font-size: 1.8rem;
    color: #93809c;
    line-height: 1;
}

.icon {
    margin-bottom: 10px;
}

.icon svg {
    width: 22px;
    height: 22px;
    color: #382775;
}

.action-card.primary .icon svg {
    color: white;
}

.map-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.map-preview iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* Overlay */
.preview-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.preview-overlay a {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
}

.table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* TABLE HEADER */
.styled-table thead {
    background: #382775;
    color: white;
}

.styled-table th {
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

/* CELLS */
.styled-table td {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    vertical-align: middle;
}

/* METRIC COLUMN */
.metric-col {
    background: #fefcff;
    font-weight: 600;
    color: #4d1e8a;
    border-right: 2px solid #dbc7fe;
    text-align: left;
}

/* RANGE COLUMN */
.range-col {
    font-weight: 600;
    color: #4d1e8a;
}

/* DATA COLUMNS */
.central-col,
.western-col {
    color: #374151;
}

/* HIGHLIGHT VALUES */
.highlight {
    font-weight: 700;
}

/* GROUP SEPARATION */
.group-row td {
    border-top: 2px solid #dbc7fe;
}

/* ROW HOVER */
.styled-table tbody tr:hover td:not(.metric-col) {
    background: #e0e7ff;
}

footer {
    margin-top: 20px;
    padding: 4px 8px;

    background: #382775;
    border-top: 1px solid #ddd6fe;

    text-align: center;
    color: #6b7280;

    line-height: 1.2;
}

/* REMOVE DEFAULT P MARGINS */
footer p {
    margin: 0;
}

/* FLEX ALIGNMENT */
.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* LINKS */
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 3;
}

/* ICONS */
.footer-links svg {
    width: 14px;
    height: 14px;
}

/* DIVIDER */
.divider {
    color: #e0b5fd;
    font-size: 0.8rem;
}

.footer-icon {
    color: white;
    width: 14px;
    height: 14px;
    vertical-align: middle;
}