/* links-awazon.online
 * Dark tool-like directory. AWAZON blue (#0066cc) on near-black.
 * System fonts only, inline SVG only, no external requests.
 */

:root {
    --bg: #0c1016;
    --bg-2: #0f141c;
    --panel: #131a24;
    --panel-2: #182130;
    --line: #223041;
    --line-2: #2f4258;
    --text: #e8edf5;
    --text-2: #c2cddb;
    --muted: #8b9cb3;
    --faint: #5d6f86;
    --brand: #0066cc;
    --accent: #4d9fff;
    --accent-dim: #2b6cb0;
    --ok: #46c06a;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(77, 159, 255, 0.32);
}

.wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 22px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
.mirror-addr:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ---------- header ---------- */

.site-head {
    border-top: 3px solid var(--brand);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.head-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    display: block;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: 0.13em;
    color: var(--text);
}

.brand-sub {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--faint);
    margin-top: 2px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 20px;
    margin-left: auto;
}

.site-nav a {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 7px 1px;
    position: relative;
    transition: color 0.16s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.site-nav a:hover {
    color: var(--text);
    text-decoration: none;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.site-nav a.active {
    color: var(--accent);
}

.site-nav a.active::after {
    transform: scaleX(1);
}

/* ---------- page ---------- */

.page {
    padding-top: 26px;
    padding-bottom: 64px;
}

/* ---------- mirror box (on every page) ---------- */

.mirror-box {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 20px 14px;
    margin-bottom: 36px;
}

.mirror-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
}

.mirror-kicker {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.mirror-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--brand);
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.9);
}

.mirror-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mirror {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: center;
    padding: 10px 10px;
    border-top: 1px solid var(--line);
    border-radius: 8px;
    transition: background 0.16s ease;
}

.mirror:hover {
    background: var(--panel-2);
}

.mirror-addr {
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.65;
    letter-spacing: 0.015em;
    color: var(--text-2);
    word-break: break-all;
    cursor: pointer;
    transition: color 0.16s ease;
}

.mirror:hover .mirror-addr {
    color: var(--text);
}

/* copy buttons */

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 7px;
    padding: 7px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.08s ease;
}

.btn-copy:hover {
    color: var(--text);
    border-color: var(--accent);
}

.btn-copy:active {
    transform: scale(0.97);
}

.btn-copy .ic {
    flex: none;
}

.btn-copy .ic-check {
    display: none;
}

.btn-copy.copied {
    color: var(--ok);
    border-color: var(--ok);
    background: rgba(70, 192, 106, 0.08);
}

.btn-copy.copied .ic-copy {
    display: none;
}

.btn-copy.copied .ic-check {
    display: inline-block;
}

.btn-copy-all {
    color: var(--accent);
    border-color: var(--accent-dim);
}

.btn-copy-all:hover {
    color: #7db9ff;
    border-color: var(--accent);
}

.btn-copy-all.copied {
    color: var(--ok);
    border-color: var(--ok);
}

.mirror-note {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--faint);
    margin: 12px 4px 0;
    letter-spacing: 0.02em;
}

/* ---------- content ---------- */

.content h1 {
    font-size: 27px;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
}

.content h2 {
    font-size: 18px;
    font-weight: 650;
    margin: 38px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content h2::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 2px;
    background: var(--brand);
}

.content h3 {
    font-size: 15.5px;
    font-weight: 650;
    margin: 26px 0 10px;
    color: var(--text);
}

.content p {
    margin: 0 0 15px;
    color: var(--text-2);
}

.content p:last-child {
    margin-bottom: 0;
}

.content ul,
.content ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.content li {
    margin-bottom: 7px;
    color: var(--text-2);
}

.content li::marker {
    color: var(--faint);
}

.content code {
    font-family: var(--mono);
    font-size: 13px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 1.5px 6px;
    color: var(--text);
}

.content blockquote {
    margin: 0 0 16px;
    padding: 4px 0 4px 16px;
    border-left: 3px solid var(--brand);
    color: var(--muted);
}

.content strong {
    color: var(--text);
}

/* glossary */

.content dl {
    margin: 0;
}

.content dt {
    font-weight: 650;
    color: var(--text);
    margin-top: 20px;
    font-size: 15px;
}

.content dt:first-of-type {
    margin-top: 4px;
}

.content dd {
    margin: 4px 0 0;
    color: var(--text-2);
}

/* troubleshooting table */

.tgrid-wrap {
    margin: 18px 0 22px;
}

.tgrid {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tgrid th {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    font-weight: 500;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line-2);
}

.tgrid td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    color: var(--text-2);
    line-height: 1.6;
}

.tgrid tbody tr {
    transition: background 0.14s ease;
}

.tgrid tbody tr:hover {
    background: var(--panel);
}

/* ---------- footer ---------- */

.site-foot {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    padding: 30px 0 34px;
}

.foot-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-bottom: 24px;
}

.foot-h {
    display: block;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 10px;
}

.foot-col a {
    display: block;
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.03em;
    color: var(--muted);
    padding: 3px 0;
}

.foot-col a:hover {
    color: var(--text);
    text-decoration: none;
}

.foot-note {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 0 12px;
}

.foot-meta {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--faint);
    margin: 0;
}

/* ---------- reveal animation ---------- */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(9px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .js .mirror-box {
        animation: rise 0.45s ease-out both;
    }

    .js .content > * {
        opacity: 0;
        animation: rise 0.45s ease-out both;
    }
}

/* ---------- mobile ---------- */

@media (max-width: 720px) {
    .head-in {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .site-nav {
        margin-left: 0;
        gap: 2px 16px;
    }

    .mirror {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-copy {
        justify-self: start;
    }

    .mirror-box {
        padding: 14px 14px 12px;
    }

    .content h1 {
        font-size: 23px;
    }

    .tgrid-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .foot-cols {
        grid-template-columns: 1fr;
    }
}
