* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #172033;
    background: #eef2f7;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.guide-page {
    width: min(1040px, calc(100% - 32px));
    margin: 28px auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
    padding: 32px;
}

.guide-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 2px solid #1f2937;
    padding-bottom: 22px;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    margin-bottom: 14px;
    font-size: 1.25rem;
}

section {
    margin-top: 26px;
}

.lead {
    max-width: 720px;
    color: #475467;
    font-size: 1rem;
}

.print-btn {
    align-self: flex-start;
    border: 0;
    border-radius: 10px;
    background: #4f46e5;
    color: white;
    cursor: pointer;
    font-weight: 800;
    padding: 11px 15px;
    white-space: nowrap;
}

.access-panel {
    border: 1px solid #d8dee9;
    border-radius: 12px;
    background: #f8fafc;
    padding: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.info-grid div,
.legend-grid div {
    border: 1px solid #d8dee9;
    border-radius: 10px;
    background: #ffffff;
    padding: 14px;
}

.info-grid span {
    display: block;
    color: #667085;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.info-grid strong {
    overflow-wrap: anywhere;
}

.note {
    color: #667085;
    font-size: 0.9rem;
    margin: 12px 0 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #d8dee9;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1f5f9;
}

code {
    background: #eef2ff;
    border-radius: 6px;
    color: #3730a3;
    font-weight: 700;
    padding: 2px 6px;
}

.steps ol {
    padding-left: 22px;
}

.steps li,
ul li {
    margin-bottom: 8px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.legend-grid strong {
    display: block;
    margin-bottom: 4px;
}

.legend-grid p {
    color: #667085;
    margin: 0;
}

.dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.worship {
    background: #4f46e5;
}

.dot.reached {
    background: #10b981;
}

.dot.outside {
    background: #ef4444;
}

@media (max-width: 800px) {
    .guide-hero,
    .info-grid,
    .legend-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .guide-page {
        padding: 22px;
    }
}

@media print {
    body {
        background: white;
    }

    .guide-page {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .print-btn {
        display: none;
    }
}
