/* ============================================================================
   ipconfig.is — guide / FAQ pages (design v5). Loaded after /styles.css, which
   supplies the tokens, base type, nav, buttons and footer. This file adds the
   article only. The page CSP allows no inline styles: everything lives here.
   ========================================================================== */

.theme-toggle .i-moon, .theme-toggle .i-sun { display: grid; place-items: center; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: grid; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .i-sun { display: grid; }
    :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

body { position: relative; isolation: isolate; }
body::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 440px; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 1px 1px, var(--dot-grid) 1px, transparent 1.5px) 0 0 / 24px 24px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
    mask-image: linear-gradient(to bottom, #000, transparent);
}
.page-main { max-width: 760px; margin: 0 auto; padding: 64px 24px 0; }

.breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.breadcrumb a { color: var(--accent-ink); }
.breadcrumb span[aria-hidden] { color: var(--line-3); }

.article { color: var(--text-2); font-size: 1.0625rem; line-height: 1.75; }
.article h1 {
    margin: 16px 0 24px; color: var(--text); text-wrap: balance;
    font-size: clamp(2.2rem, 4.8vw, 3.1rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08;
}
.article h1 + p { font-size: 1.1875rem; line-height: 1.7; color: var(--text); }
.article h2 { margin: 48px 0 12px; color: var(--text); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.028em; line-height: 1.25; }
.article h3 { margin: 28px 0 8px; color: var(--text); font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; }
.article p { margin: 0 0 16px; }
.article strong { color: var(--text); font-weight: 650; }
.article a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.article a:hover { text-decoration-color: currentColor; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
.article li { position: relative; padding-left: 24px; margin: 9px 0; }
.article ul > li::before {
    content: ""; position: absolute; left: 5px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%;
    background: var(--point); box-shadow: 0 0 0 3px var(--point-soft);
}
.article ol { counter-reset: n; }
.article ol > li { counter-increment: n; padding-left: 32px; }
.article ol > li::before { content: counter(n); position: absolute; left: 0; top: 0.14em; font-family: var(--mono); font-size: 0.8125rem; font-weight: 700; color: var(--accent-ink); }
.article code {
    font-family: var(--mono); font-size: 0.86em; color: var(--text);
    background: var(--surface-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
}
.article pre {
    margin: 0 0 20px; padding: 18px 20px; overflow-x: auto; border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--term-bg-2), var(--term-bg)); border: 1px solid var(--term-border);
    color: var(--term-text); font-size: 0.875rem; line-height: 1.7; box-shadow: var(--shadow-md);
}
.article pre code { background: none; border: 0; padding: 0; color: inherit; }
.article abbr { text-decoration: underline dotted; cursor: help; }

.article-table {
    width: 100%; border-collapse: separate; border-spacing: 0; margin: 6px 0 24px; font-size: 0.9375rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.article-table th, .article-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.article-table tr:last-child td { border-bottom: 0; }
.article-table thead th {
    background: var(--surface-2); color: var(--text-3);
    font-family: var(--mono); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
}
.article-table td:first-child { color: var(--text); font-weight: 600; }
.article-table code { overflow-wrap: anywhere; }

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.faq-item {
    padding: 20px 24px; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm), var(--highlight);
}
.article .faq-q { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.012em; }
.faq-q::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--point); box-shadow: 0 0 0 3px var(--point-soft); transform: translateY(-2px); }
.article .faq-a { margin: 0; padding-left: 19px; font-size: 1rem; }

.article-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    margin: 52px 0 0; padding: 24px 26px; border-radius: var(--r-xl);
    background: linear-gradient(180deg, var(--term-bg-2), var(--term-bg)); border: 1px solid var(--term-border); box-shadow: var(--shadow-md);
}
.article-cta-title { color: #f3f6f9; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.018em; }
.article-cta-sub { margin-top: 2px; color: #95a2af; font-size: 0.9375rem; line-height: 1.5; }
.article .article-cta-btn { background: #3ecf8e; color: #04110a; text-decoration: none; }
.article .article-cta-btn:hover { background: #67dda9; text-decoration: none; }
.article-cta :focus-visible { outline-color: #3ecf8e; }

.page-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.page-related-label { margin-right: 6px; font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.page-related a {
    display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 0.875rem; font-weight: 550;
    transition: border-color .15s ease, background-color .15s ease;
}
.page-related a:hover { border-color: var(--line-3); background: var(--surface-2); text-decoration: none; }

@media (max-width: 760px) {
    .page-main { padding: 40px 16px 0; }
    .article h1 + p { font-size: 1.0625rem; }
    .faq-item { padding: 16px 18px; }
    .article .faq-a { padding-left: 0; }
    .article-cta { padding: 20px; }
    .article-cta-btn { width: 100%; }
}
@media (max-width: 560px) {
    .article-table { display: block; overflow-x: auto; }
}
