/* Styles for the crawlable subject/topic pages (kept tiny for speed). Palette and header match intellectmedicos.com. */
:root {
  --bg: #faf8f3; --surface: #ffffff; --ink: #0b0a08; --ink-2: #5a554b; --line: #e3ddd0;
  --gold: #c29b3c; --gold-soft: #d8b968; --accent-soft: #f3ead3; --accent-text: #6e5313; --band: #0b0a08; --band-ink: #faf8f3;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0a08; --surface: #15140f; --ink: #faf8f3; --ink-2: #c9c2b3; --line: #2a2822; --accent-soft: #2e2716; --accent-text: #d8b968; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin: 0.2em 0 0.4em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); }
.hdr { background: #0b0a08; color: #faf8f3; padding: 14px 0; position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 #2a2822; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; color: #faf8f3; text-decoration: none; }
.mark { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #c29b3c; background: #faf8f3; padding: 2px; object-fit: cover; }
.word { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 19px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.links { display: flex; align-items: center; gap: 24px; }
.links a { color: #faf8f3; opacity: 0.85; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.links a:hover { opacity: 1; color: #d8b968; }
.links .box { border: 1px solid #c29b3c; border-radius: 2px; padding: 9px 18px; opacity: 1; }
.links .box:hover { background: #c29b3c; color: #0b0a08; }
.mnav { display: none; }
.mnav summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 10px 6px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { width: 24px; height: 2px; background: #faf8f3; display: block; }
.mnav nav { position: absolute; right: 0; top: calc(100% + 14px); left: 0; background: #0b0a08; padding: 8px 22px 22px; border-bottom: 1px solid #2a2822; }
.mnav nav a { display: block; color: #faf8f3; text-decoration: none; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 1.35rem; padding: 12px 0; border-bottom: 1px solid #2a2822; }
.sub { background: #141310; border-bottom: 1px solid #2a2822; }
.sub-in { display: flex; justify-content: space-between; align-items: center; min-height: 50px; gap: 12px; }
.sub-name { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: #faf8f3; text-decoration: none; }
.sub-name span { font: 500 11px 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #d8b968; margin-left: 8px; }
.sub .cta { background: #c29b3c; color: #0b0a08; padding: 10px 16px; border-radius: 2px; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
@media (max-width: 959px) { .links { display: none; } .mnav { display: block; } }
@media (max-width: 420px) { .sub-name span { display: none; } }
main { max-width: 820px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); }
.crumbs { font-size: 0.9rem; color: var(--ink-2); }
.lede { color: var(--ink-2); max-width: 65ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #0b0a08; }
.btn:hover { box-shadow: 0 10px 24px -12px rgba(194, 155, 60, 0.8); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: card; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.qa .q { font-weight: 600; margin: 0 0 8px; }
.qa summary { cursor: pointer; color: var(--accent-text); font-weight: 600; }
.qa .a { font-weight: 600; background: var(--accent-soft); padding: 8px 12px; border-radius: 3px; border-left: 2px solid var(--gold); }
.qa .why { color: var(--ink-2); margin: 8px 0 0; }
.topics { list-style: none; padding: 0; display: grid; gap: 8px; }
.topics a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; }
.topics a:hover { border-color: var(--gold); }
.topics .n { color: var(--ink-2); font-weight: 400; }
.more ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.more a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.draft-banner { background: var(--accent-soft); border: 1px dashed var(--accent-text); padding: 10px 14px; border-radius: 3px; }
footer { max-width: 820px; margin: 0 auto; padding: 0 16px 40px; color: var(--ink-2); font-size: 0.9rem; }
