.den-tool {
    display: grid;
    gap: 18px;
    overflow-wrap: anywhere;
}

.den-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
    align-items: stretch;
}

.den-hero-copy,
.den-map-card,
.den-panel,
.den-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(19, 41, 32, .96), rgba(10, 22, 18, .97));
    box-shadow: var(--shadow);
}

.den-hero-copy,
.den-panel,
.den-card > div {
    padding: 18px;
}

.den-hero-copy h2,
.den-section-heading h2 {
    margin: 0;
    color: #fff;
    line-height: 1.12;
}

.den-hero-copy h2 {
    max-width: 840px;
    font-size: clamp(28px, 5vw, 46px);
}

.den-lede,
.den-panel p,
.den-card p,
.den-route-grid span,
.den-check em,
.den-fix-result,
.den-note-grid p {
    color: #d6e6de;
}

.den-lede {
    max-width: 820px;
    font-size: 17px;
}

.den-answer-strip,
.den-toolbar,
.den-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.den-answer-strip span,
.den-links a,
.den-toolbar button,
.den-progress button {
    border: 1px solid rgba(226, 180, 67, .36);
    border-radius: 6px;
    background: rgba(226, 180, 67, .1);
    color: var(--gold-2);
}

.den-answer-strip span {
    padding: 7px 10px;
    font-weight: 850;
}

.den-map-card {
    display: grid;
    margin: 0;
    overflow: hidden;
}

.den-map-card img,
.den-card img {
    width: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    background: #0a1411;
}

.den-map-card img {
    height: 100%;
    min-height: 270px;
}

.den-map-card figcaption {
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    color: #b7c8c0;
    font-size: 13px;
}

.den-alert {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    border-color: rgba(226, 180, 67, .42);
    background: linear-gradient(135deg, rgba(226, 180, 67, .16), rgba(10, 22, 18, .97));
}

.den-toolbar {
    position: sticky;
    top: 64px;
    z-index: 5;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .92);
    backdrop-filter: blur(12px);
}

.den-toolbar button,
.den-progress button {
    min-height: 36px;
    padding: 7px 12px;
    cursor: pointer;
}

.den-toolbar button.is-active,
.den-toolbar button:hover,
.den-progress button:hover {
    background: var(--gold);
    color: #08100d;
}

.den-section-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}

.den-table-wrap {
    overflow-x: auto;
}

.den-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    color: #dceae3;
}

.den-table th,
.den-table td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(79, 103, 91, .55);
    text-align: left;
    vertical-align: top;
}

.den-table th {
    color: #fff;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.den-table strong,
.den-route-grid strong,
.den-check strong,
.den-card h3,
.den-note-grid h3 {
    color: #fff;
}

.den-route-grid,
.den-check-grid,
.den-card-grid,
.den-note-grid {
    display: grid;
    gap: 12px;
}

.den-route-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.den-route-grid article {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(79, 103, 91, .5);
    border-radius: 8px;
    background: rgba(8, 16, 13, .42);
}

.den-route-grid strong {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gold);
    color: #08100d;
}

.den-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.den-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(79, 103, 91, .5);
    border-radius: 8px;
    background: rgba(8, 16, 13, .42);
}

.den-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--gold);
}

.den-check span,
.den-check em {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.den-check em {
    color: #b7c8c0;
    font-size: 13px;
    font-style: normal;
    line-height: 1.4;
}

.den-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--gold-2);
    font-weight: 800;
}

.den-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.den-card {
    display: grid;
    grid-template-columns: minmax(180px, 42%) minmax(0, 1fr);
    overflow: hidden;
}

.den-card img {
    height: 100%;
    min-height: 210px;
}

.den-fix-tool {
    display: grid;
    gap: 10px;
}

.den-fix-tool label {
    color: #fff;
    font-weight: 850;
}

.den-fix-tool select {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #0a1411;
    color: #fff;
}

.den-fix-result {
    min-height: 58px;
    padding: 13px;
    border: 1px solid rgba(101, 168, 255, .34);
    border-radius: 8px;
    background: rgba(101, 168, 255, .09);
}

.den-note-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.den-note-grid article {
    padding: 13px;
    border: 1px solid rgba(79, 103, 91, .5);
    border-radius: 8px;
    background: rgba(8, 16, 13, .42);
}

.den-note-grid h3,
.den-card h3 {
    margin: 0 0 8px;
}

.den-links a {
    padding: 8px 10px;
    font-weight: 800;
}

.den-links a:hover {
    background: var(--gold);
    color: #08100d;
}

@media (max-width: 980px) {
    .den-hero,
    .den-alert,
    .den-card {
        grid-template-columns: 1fr;
    }

    .den-route-grid,
    .den-note-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .den-card img {
        max-height: 260px;
    }
}

@media (max-width: 680px) {
    .den-hero-copy,
    .den-panel,
    .den-card > div {
        padding: 14px;
    }

    .den-hero-copy h2 {
        font-size: 30px;
    }

    .den-toolbar {
        top: 58px;
    }

    .den-route-grid,
    .den-check-grid,
    .den-card-grid,
    .den-note-grid {
        grid-template-columns: 1fr;
    }

    .den-map-card img {
        min-height: 220px;
    }
}
