body { background: var(--sand-light, #f8f6f2); }
main { padding: 1rem 0 3rem; }

.nav-hero {
    background: linear-gradient(135deg, #0B2545 0%, #134E6F 100%);
    color: #fff;
    padding: 1.5rem 1rem;
    text-align: center;
}
.nav-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0 0 .4rem;
}
.nav-hero p {
    opacity: .85;
    margin: 0 auto;
    max-width: 640px;
    font-size: .88rem;
    line-height: 1.45;
}

.tip-box {
    max-width: 900px;
    margin: 1.25rem auto 0;
    padding: .9rem 1rem;
    background: #fff;
    border-left: 4px solid #2EC4B6;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.tip-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #0B2545;
    margin: 0 0 .4rem;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.tip-box p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
    color: #334155;
}

.nav-section { padding: 1.25rem 0; }
.nav-section.alt { background: #eef2f6; }

.nav-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #0B2545;
    text-align: center;
    margin: 0 0 .3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 0 1rem;
}
.nav-sub {
    text-align: center;
    color: #64748b;
    font-size: .86rem;
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 1rem;
    padding: 0 1rem;
}

.mark-grid {
    display: grid;
    gap: 1rem;
    padding: 0 .75rem;
    max-width: 1000px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}
.mark-grid-1 { max-width: 520px; }

.compass-center { display: none; }
.compass-rose {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B2545;
}
.compass-rose i {
    font-size: 7rem;
    opacity: .18;
}
.rose-label {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #0B2545;
    opacity: .6;
    letter-spacing: .05em;
}
.rose-n { top: 4px; left: 50%; transform: translateX(-50%); }
.rose-s { bottom: 4px; left: 50%; transform: translateX(-50%); }
.rose-e { right: 6px; top: 50%; transform: translateY(-50%); }
.rose-w { left: 6px; top: 50%; transform: translateY(-50%); }

.mark-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1rem;
    align-items: start;
}

.mark-visual {
    width: 88px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.mark-visual img {
    width: 100%;
    height: auto;
    max-height: 170px;
    display: block;
}

.mark-info { min-width: 0; }

.mark-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #0B2545;
    margin: 0 0 .55rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    line-height: 1.15;
}

.dir-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0B2545;
    color: #fff;
    font-family: 'Work Sans', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.danger-badge { background: #dc2626; }

.mark-dl {
    margin: 0 0 .65rem;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .2rem .65rem;
    font-size: .82rem;
    line-height: 1.4;
}
.mark-dl dt {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .04em;
    align-self: center;
}
.mark-dl dd {
    margin: 0;
    color: #1e293b;
}

.mark-rule {
    margin: 0;
    font-size: .84rem;
    line-height: 1.5;
    color: #334155;
    padding: .5rem .7rem;
    background: #f8fafc;
    border-left: 3px solid #2EC4B6;
    border-radius: 4px;
}
.mark-rule strong { color: #0B2545; }

.mnemonic {
    max-width: 700px;
    margin: 1.25rem auto 0;
    padding: .85rem 1rem;
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    font-size: .85rem;
    line-height: 1.55;
    color: #78350f;
}
.mnemonic strong { color: #78350f; }

@media (min-width: 560px) {
    .mark-grid { gap: 1.1rem; padding: 0; }
    .mark-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .mark-grid-compass { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
    main { padding: 2.5rem 0 4rem; }
    .nav-hero { padding: 2rem 0; }
    .nav-hero h1 { font-size: 2.4rem; }
    .nav-hero p { font-size: .95rem; }
    .tip-box { padding: 1rem 1.25rem; margin: 1.5rem auto 0; }
    .tip-box h3 { font-size: 1.1rem; }
    .tip-box p { font-size: .95rem; }
    .nav-section { padding: 1.75rem 0; }
    .nav-heading { font-size: 1.6rem; }
    .nav-sub { font-size: .92rem; margin-bottom: 1.5rem; }
    .mark-card { padding: 1.1rem 1.15rem; grid-template-columns: 100px 1fr; gap: 1.15rem; }
    .mark-visual { width: 100px; }
    .mark-name { font-size: 1.3rem; }
    .mark-dl { font-size: .88rem; gap: .25rem .8rem; }
    .mark-dl dt { font-size: .72rem; }
    .mark-rule { font-size: .9rem; padding: .6rem .8rem; }
    .mnemonic { padding: 1rem 1.25rem; font-size: .9rem; margin: 1.5rem auto 0; }
}

@media (min-width: 900px) {
    .mark-grid-compass {
        position: relative;
        display: block;
        width: 900px;
        max-width: 100%;
        height: 900px;
        margin: 1.5rem auto 2rem;
        padding: 0;
        background:
            radial-gradient(circle at center, rgba(46,196,182,.10) 0%, rgba(11,37,69,.05) 55%, transparent 72%);
        border-radius: 50%;
    }
    .mark-grid-compass::before,
    .mark-grid-compass::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }
    .mark-grid-compass::before {
        inset: 6%;
        border: 2px dashed rgba(11,37,69,.18);
    }
    .mark-grid-compass::after {
        inset: 32%;
        border: 1px solid rgba(11,37,69,.10);
    }
    .mark-grid-compass .mark-card {
        position: absolute;
        width: 240px;
        grid-template-columns: 1fr;
        padding: .85rem .9rem;
        text-align: left;
        margin: 0;
        z-index: 2;
    }
    .mark-grid-compass .mark-visual {
        width: 100%;
        margin: 0 auto .5rem;
        justify-content: center;
    }
    .mark-grid-compass .mark-visual img { max-height: 120px; }
    .mark-grid-compass .mark-name { font-size: 1.05rem; margin-bottom: .4rem; }
    .mark-grid-compass .mark-dl { font-size: .76rem; gap: .15rem .55rem; }
    .mark-grid-compass .mark-dl dt { font-size: .65rem; }
    .mark-grid-compass .mark-rule { font-size: .78rem; padding: .4rem .55rem; line-height: 1.4; }

    .compass-n { top: 0;    left: 50%; transform: translateX(-50%); }
    .compass-s { bottom: 0; left: 50%; transform: translateX(-50%); }
    .compass-w { left: 0;   top: 50%;  transform: translateY(-50%); }
    .compass-e { right: 0;  top: 50%;  transform: translateY(-50%); }
    .compass-center {
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }
    .compass-rose { max-width: 220px; }
    .compass-rose i { font-size: 9rem; opacity: .25; }
    .rose-label { font-size: 1.5rem; opacity: .75; }
}
