/* ============================================
   Biblioteca de técnicas - Dr. Heury Ferr
   ============================================ */

:root {
    --bg: #03050b;
    --bg-card: #0b1220;
    --bg-code: #070d18;
    --line: #1a2740;
    --text: #edf0f5;
    --muted: #a9b7cc;
    --dim: #7e8ca3;
    --gold: #d4a843;
    --gold-soft: rgba(212, 168, 67, 0.12);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* topo */
.top { border-bottom: 1px solid rgba(26, 39, 64, 0.7); }

.top__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 20px 0;
}

.brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem; font-weight: 700; text-decoration: none;
}

.brand span { color: var(--gold); }

.top__nav { display: flex; align-items: center; gap: 22px; font-size: 0.9rem; }
.top__nav a { color: var(--muted); text-decoration: none; }
.top__nav a:hover { color: var(--gold); }

.top__cta {
    background: var(--gold); color: #171100 !important; font-weight: 600;
    padding: 10px 20px; border-radius: 100px;
}

.top__cta:hover { background: #e6c35c; }

/* artigo */
.article { max-width: 800px; padding: 34px 24px 40px; }

.crumbs { font-size: 0.82rem; color: var(--dim); margin-bottom: 22px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 6px; }

h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem; line-height: 1.16; font-weight: 700;
    letter-spacing: -0.4px; margin-bottom: 18px;
}

.lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 8px; }

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem; font-weight: 700;
    margin: 40px 0 14px; padding-top: 22px;
    border-top: 1px solid rgba(26, 39, 64, 0.7);
}

h2:first-of-type { border-top: none; padding-top: 0; }

ul { list-style: none; display: grid; gap: 9px; margin-bottom: 6px; }

ul li {
    position: relative; padding-left: 22px;
    color: var(--muted); font-size: 0.98rem;
}

ul li::before {
    content: ''; position: absolute; left: 4px; top: 12px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* codigo */
.codes { display: grid; gap: 14px; margin-bottom: 6px; }

.code {
    background: var(--bg-code); border: 1px solid var(--line);
    border-radius: 12px; overflow: hidden;
}

.code__label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--gold);
    background: rgba(212, 168, 67, 0.07);
    border-bottom: 1px solid var(--line); padding: 9px 16px;
}

.code pre { overflow-x: auto; padding: 16px; }

.code code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.86rem; line-height: 1.6; color: #cfe3ff; white-space: pre;
}

/* citacao */
blockquote {
    margin: 6px 0; padding: 18px 22px;
    border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, rgba(212, 168, 67, 0.09), transparent);
    border-radius: 0 12px 12px 0;
    color: var(--text); font-size: 0.97rem; line-height: 1.65;
}

/* faq */
.faq { display: grid; gap: 10px; }

.faq details {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 12px; padding: 16px 20px;
}

.faq details[open] { border-color: rgba(212, 168, 67, 0.3); }

.faq summary {
    cursor: pointer; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; font-weight: 600; font-size: 0.96rem; line-height: 1.4;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+'; flex: none; color: var(--gold);
    font-size: 1.2rem; line-height: 1;
}

.faq details[open] summary::after { content: '\2212'; }

.faq details p { margin-top: 10px; color: var(--muted); font-size: 0.93rem; }

/* cta */
.cta {
    margin: 46px 0 10px; padding: 34px 30px; text-align: center;
    background: linear-gradient(165deg, rgba(212, 168, 67, 0.10), #0b1220 60%);
    border: 1px solid rgba(212, 168, 67, 0.28); border-radius: 18px;
}

.cta h2 { border: none; padding: 0; margin: 0 0 10px; font-size: 1.5rem; }

.cta p {
    color: var(--muted); max-width: 560px;
    margin: 0 auto 20px; font-size: 0.97rem;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 100px;
    background: var(--gold); color: #171100; font-weight: 600;
    text-decoration: none; transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover { background: #e6c35c; transform: translateY(-2px); }

/* relacionados */
.related { margin-top: 44px; }

.related__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}

.related__item {
    display: block; padding: 15px 18px;
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 12px; text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.related__item:hover { border-color: var(--gold); color: var(--gold); }

/* rodape */
.foot {
    border-top: 1px solid rgba(26, 39, 64, 0.7);
    margin-top: 50px; padding: 26px 0 34px;
    font-size: 0.84rem; color: var(--dim);
}

.foot__inner {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 12px;
}

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

@media (max-width: 760px) {
    body { font-size: 16px; }
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.25rem; margin-top: 32px; }
    .article { padding: 26px 20px 30px; }
    .related__grid { grid-template-columns: 1fr; }
    .cta { padding: 26px 20px; }
    .top__nav { gap: 14px; font-size: 0.84rem; }
    .top__cta { padding: 9px 16px; }
}
