/* ===== Base compartilhada para recursos terapêuticos =====
   Carregue em cada recurso com <link rel="stylesheet" href="../_shared.css">
*/
:root {
    --primary: #4A5F7C;
    --primary-dark: #3a4d65;
    --accent:#977539;
    --soft: #F8F5EE;
    --bg: #fdfbf6;
    --line: rgba(74,95,124,.12);
    --line-soft: rgba(74,95,124,.06);
    --text: #2b3741;
    --mute: #6f7c87;
    --green: #6b9e7c;
    --amber: #c89a52;
    --red: #c87567;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg); }
body { padding: 40px 48px 80px; line-height: 1.6; }

.wrap { max-width: 880px; margin: 0 auto; }
.wrap.wide { max-width: 1080px; }

/* HEADER */
.resource-head {
    max-width: 880px;
    margin: 0 auto 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.resource-head.wide { max-width: 1080px; }
.resource-head .crumb {
    display: inline-block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 14px;
}
.resource-head h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -.01em;
    line-height: 1.15;
    margin-bottom: 12px;
}
.resource-head .lead {
    font-size: 1rem;
    color: var(--mute);
    font-weight: 300;
    max-width: 680px;
    line-height: 1.65;
}

/* INFO CARD */
.info-card {
    background: rgba(151,117,57,.08);
    border-left: 3px solid var(--accent);
    padding: 18px 22px;
    border-radius: 4px;
    margin-bottom: 32px;
}
.info-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.info-card p {
    font-size: .92rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text);
}
.info-card p + p { margin-top: 8px; }
.info-card em { color: var(--primary); font-style: italic; }
.info-card strong { color: var(--primary); font-weight: 500; }

/* SECTION HEAD */
.section-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}
.section-h h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: -.005em;
}
.section-h .hint { font-size: .78rem; color: var(--mute); font-weight: 300; }

/* INPUT / FORM */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.field-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 600;
    color: var(--primary);
    opacity: .85;
}
.field-help {
    font-size: .78rem;
    color: var(--mute);
    font-weight: 300;
    line-height: 1.5;
    margin-top: -2px;
    margin-bottom: 4px;
}
.field input[type="text"],
.field input[type="date"],
.field input[type="number"],
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: all .18s;
    resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #a3adb6; font-weight: 300; }
.field input:focus, .field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(151,117,57,.15);
}
.field textarea { min-height: 80px; line-height: 1.55; }

/* BUTTONS */
.btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .18s, transform .12s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.btn:hover { background: var(--primary-dark); }
.btn:disabled { background: #c2cbd4; cursor: not-allowed; }
.btn-ghost {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(151,117,57,.06); border-color: var(--accent); }
.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(151,117,57,.4);
    text-underline-offset: 3px;
    padding: 4px 0;
}
.btn-link:hover { text-decoration-color: var(--accent); }

.btn svg, .btn-ghost svg { width: 14px; height: 14px; }

/* TOOLBAR */
.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.tb-btn {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--primary);
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .15s;
}
.tb-btn:hover { border-color: var(--accent); background: rgba(151,117,57,.06); }
.tb-btn.danger:hover { border-color: var(--red); color: var(--red); background: rgba(200,117,103,.06); }
.tb-btn svg { width: 13px; height: 13px; }

/* TIP */
.tip {
    margin-top: 32px;
    padding: 18px 22px;
    background: var(--soft);
    border-radius: 8px;
    font-size: .87rem;
    font-weight: 300;
    line-height: 1.65;
    border-left: 2px solid var(--accent);
    color: var(--text);
}
.tip strong { color: var(--primary); font-weight: 500; }
.tip em { font-style: italic; color: var(--primary); }

@media (max-width: 640px) {
    body { padding: 24px 18px 60px; }
    .resource-head h1 { font-size: 1.7rem; }
}

@media print {
    .toolbar, .btn-link, .field input[type="text"]:placeholder-shown { display: revert; }
    .tb-btn { display: none !important; }
    body { padding: 20px; background: #fff; }
}
