/* ==========================================================================
   Wifivia — shared stylesheet for guide / landing pages
   Design tokens are copied verbatim from the homepage so the guides read as
   the same product: off-white ground, Times display type, hairline rules.
   ========================================================================== */

:root {
    --bg: #FAFAF9;
    --card-bg: #FFFFFF;
    --text: #111111;
    --text-muted: #767676;
    --border: #E5E7EB;
    --border-focus: #111111;
    --accent: #111111;
    --font-display: "Times New Roman", Times, Georgia, serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --radius: 4px;
    --transition: all 0.2s ease;
    --wrap: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Site header ---------- */
.site-head {
    border-bottom: 1px solid var(--border);
}

.site-head .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 22px;
    padding-bottom: 22px;
}

.brand {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

.site-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.site-nav a {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ---------- Article ---------- */
article { padding: 56px 0 0; }

.eyebrow {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1.12;
    letter-spacing: 0.2px;
    margin-bottom: 22px;
}

.lede {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    max-width: 650px;
    margin-bottom: 16px;
}

.updated {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.55rem;
    letter-spacing: 0.2px;
    line-height: 1.25;
    margin: 48px 0 16px;
}

h3 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 16px;
}

p strong, li strong { color: var(--text); font-weight: 600; }

p a, li a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

p a:hover, li a:hover { border-bottom-color: var(--text); }

/* ---------- Lists ---------- */
ul.dash { list-style: none; display: grid; gap: 12px; margin: 0 0 22px; }

ul.dash li {
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
}

ul.dash li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.78em;
    width: 12px;
    height: 1px;
    background: var(--text-muted);
    opacity: 0.5;
}

ol.steps { list-style: none; display: grid; gap: 20px; margin: 0 0 22px; }

ol.steps li {
    border-left: 1px solid var(--border);
    padding-left: 20px;
}

ol.steps li p { margin: 0; }

/* ---------- Spec table ---------- */
table.spec {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0 24px;
}

table.spec th,
table.spec td {
    text-align: left;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-weight: 400;
}

table.spec th {
    width: 42%;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-right: 20px;
}

table.spec td { font-size: 0.92rem; color: var(--text); }

/* ---------- Callout ---------- */
.callout {
    border-left: 2px solid var(--text);
    padding: 4px 0 4px 20px;
    margin: 0 0 24px;
}

.callout p { margin: 0; color: var(--text); font-size: 0.92rem; }

/* ---------- CTA ---------- */
.cta-band {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    padding: 28px;
    margin: 56px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-band p { margin: 0; max-width: 400px; font-size: 0.9rem; }

.btn {
    display: inline-block;
    padding: 15px 28px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:hover { background: transparent; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); margin-top: 4px; }

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.faq-item h3 {
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
    margin-bottom: 6px;
}

.faq-item p { margin: 0; }

.faq-item code {
    font-size: 0.85em;
    background: #F1F1EF;
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--text);
}

/* ---------- Related ---------- */
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }

.related ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 32px;
}

.related a {
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: var(--transition);
}

.related a:hover { border-bottom-color: var(--text); }

/* ---------- Footer ---------- */
.site-foot {
    border-top: 1px solid var(--border);
    margin-top: 64px;
}

.site-foot .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 28px;
    padding-bottom: 48px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    article { padding-top: 40px; }
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.35rem; margin-top: 40px; }
    .cta-band { flex-direction: column; align-items: stretch; }
    .cta-band p { max-width: none; }
    .related ul { grid-template-columns: 1fr; }
    .site-head .wrap { padding-top: 18px; padding-bottom: 18px; }
    .site-nav { gap: 16px; }
}

/* ---------- Print: guides are for reading, not printing ---------- */
@media print {
    .site-head, .site-foot, .cta-band, .related { display: none !important; }
    body { background: #FFFFFF; }
    a { border-bottom: none !important; }
}
