/* Acervo · Terceira idade (60+) — céu azul, serifada alta e fotos de flores. Leitura confortável. */

body[data-idade="terceira-idade"] {
    --bg: #f7fafc;
    --bg-alt: #eef4f9;
    --ink: #1f3550;
    --muted: #34506f;
    --line: #d3e0ec;
    --line-strong: #8fb0cf;
    --accent: #1f3550;
    --on-accent: #fff;
    --accent-2: #b8432f;
    --on-accent-2: #fff;
    --card: #fff;
    --hl-bg: transparent;
    --hl-ink: inherit;
    --radius: 6px;
    --f-display: "Instrument Serif", Georgia, serif;
    --f-body: "Atkinson Hyperlegible", Verdana, sans-serif;
    --d-weight: 400;
    --base: 1.2rem;
    --card-border: 1px solid #dbe5ef;
    --card-shadow: 0 22px 44px -32px rgba(31, 53, 80, 0.5);
    --try-bg: #eef4f9;
    --try-label: #b8432f;
    --kicker: #b8432f;
    --nav-bg: rgba(255, 255, 255, 0.6);
    --nav-hover: rgba(255, 255, 255, 0.9);
    --nav-current: #1f3550;
    --nav-current-ink: #fff;
    line-height: 1.7;
}
body.ai[data-idade="terceira-idade"] {
    background:
        linear-gradient(180deg, #a3c1dc 0, #b1cbe2 1000px, #d3e3f0 1900px, #f1f6fa 2700px, #f7fafc 3200px) !important;
}

[data-idade="terceira-idade"] em { font-style: italic; }
[data-idade="terceira-idade"] .br-kicker {
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
}
[data-idade="terceira-idade"] .br-h {
    font-size: clamp(2.8rem, 6vw, 4.6rem) !important;
    line-height: 0.95 !important;
}
[data-idade="terceira-idade"] .br-sub { font-size: clamp(1.5rem, 3vw, 2.1rem); }
[data-idade="terceira-idade"] .br-sub em { color: var(--accent-2); }
[data-idade="terceira-idade"] .br-lead,
[data-idade="terceira-idade"] .af-topic > p,
[data-idade="terceira-idade"] .af-marks p,
[data-idade="terceira-idade"] .af-mat p,
[data-idade="terceira-idade"] .br-next p,
[data-idade="terceira-idade"] .br-steps li,
[data-idade="terceira-idade"] .af-signs li { font-size: 1.1rem; color: var(--ink); }

/* ---------- Capa ---------- */
.ti-hero {
    position: relative;
    min-height: clamp(660px, 96svh, 920px);
    padding: 1.6rem 5% 9rem;
    overflow: hidden;
}
.ti-pills {
    position: absolute;
    z-index: 3;
    top: 1.5rem;
    right: 5.4rem;
    display: flex;
    gap: 0.4rem;
}
.ti-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 0.95rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.88);
    color: #1f3550;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}
.ti-pills a:hover { background: #fff; }
.ti-brand { position: relative; z-index: 2; max-width: 30rem; color: #1f3550; }
.ti-kicker { font-size: 0.95rem; font-weight: 700; }
.ai .ti-logo {
    margin-top: 0.4rem !important;
    color: #fffaf0 !important;
    font-size: clamp(4.6rem, 11vw, 10.5rem) !important;
    line-height: 0.84 !important;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 36px rgba(31, 53, 80, 0.22);
}
.ti-intro { max-width: 20rem; margin-top: 1.4rem !important; font-size: 1.05rem; line-height: 1.5; }
.ti-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0.6rem;
    border-bottom: 2px solid currentColor;
    color: #1f3550;
    font-weight: 700;
    text-decoration: none;
}
.ti-photo {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(60%, 860px);
    margin: 0;
}
.ti-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 18%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(0deg, transparent 0, #000 22%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(0deg, transparent 0, #000 22%);
    mask-composite: intersect;
}
.ti-motto {
    position: absolute;
    z-index: 2;
    left: 5%;
    bottom: 10rem;
    font-family: var(--f-display);
    font-size: clamp(2.6rem, 5.4vw, 4.8rem);
    line-height: 0.95;
    color: #fff;
    text-shadow: 0 2px 30px rgba(31, 53, 80, 0.28);
}

/* Faixa de fotos */
.ti-strip {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: -7.5rem;
    padding: 0 1rem 3.5rem;
    overflow: hidden;
}
.ti-strip img {
    flex: none;
    width: 132px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 14px 30px -16px rgba(31, 53, 80, 0.55);
}
.ti-strip img:nth-child(2),
.ti-strip img:nth-child(4) { width: 156px; transform: translateY(-10px); }
.ti-strip img.is-big { width: 212px; }

/* Fases */
[data-idade="terceira-idade"] .af-phases {
    position: static;
    border-color: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
[data-idade="terceira-idade"] .af-phases i { display: none; }
[data-idade="terceira-idade"] .af-phases strong { font-size: 1.05rem; }
[data-idade="terceira-idade"] .af-phases small { font-size: 0.9rem; opacity: 1; }

/* ---------- Retrato ---------- */
.ti-quote-sec,
.ti-acolher { background: transparent !important; }
.ti-quote { display: grid; justify-items: start; }
.ti-quote .br-kicker { color: #1f3550; }
.ai .ti-quote-h {
    max-width: 21ch;
    margin-left: auto !important;
    color: #1f3550 !important;
    font-size: clamp(2.3rem, 4.6vw, 3.9rem) !important;
    line-height: 1 !important;
}
.ti-quote-h em { display: block; margin-top: 0.3rem; color: #fffaf0; text-shadow: 0 2px 24px rgba(31, 53, 80, 0.35); }
.ti-quote .br-lead { max-width: 30rem; margin-left: auto !important; margin-right: 12% !important; }
[data-idade="terceira-idade"] .af-marks { width: 100%; margin-top: 3.5rem; }
[data-idade="terceira-idade"] .af-marks div {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.9);
}
[data-idade="terceira-idade"] .af-marks i {
    background: none;
    padding: 0;
    color: var(--accent-2);
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 400;
}
[data-idade="terceira-idade"] .af-marks h3 { margin-top: 0.3rem !important; font-size: 1.9rem !important; }

/* ---------- Temas ---------- */
.ti-center { text-align: center; }
.ti-center .br-lead { margin-left: auto !important; margin-right: auto !important; }
.ti-moods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin: 2.8rem 0 4.5rem;
    padding: 0;
    list-style: none;
}
.ti-moods li:nth-child(1),
.ti-moods li:nth-child(5) { transform: translateY(18px); }
.ti-moods li:nth-child(2),
.ti-moods li:nth-child(4) { transform: translateY(40px); }
.ti-moods a {
    display: grid;
    place-items: center;
    width: 160px;
    height: 100px;
    background: #fff;
    color: #1f3550;
    font-family: var(--f-display);
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 24px 44px -26px rgba(31, 53, 80, 0.45);
    transition: transform 0.2s ease;
}
.ti-moods a:hover,
.ti-moods a:focus-visible { transform: translateY(-5px); }
[data-idade="terceira-idade"] .af-topic > span {
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent-2);
}
[data-idade="terceira-idade"] .af-topic h3 { font-size: 2.1rem !important; }
[data-idade="terceira-idade"] .af-try b { font-size: 1rem; letter-spacing: 0; text-transform: none; }
[data-idade="terceira-idade"] .af-topic { scroll-margin-top: 2rem; }

/* ---------- Praticar ---------- */
.ti-praticar,
.ti-materiais { background: #fff !important; }
.ti-sinais,
.ti-aviso { background: #eef4f9 !important; }
[data-idade="terceira-idade"] .br-steps li { border-color: var(--line); }
[data-idade="terceira-idade"] .br-steps li::before { font-family: var(--f-body); }
[data-idade="terceira-idade"] .br-steps b { font-size: 1.5rem; }
[data-idade="terceira-idade"] .af-drawbox {
    --draw-bg: linear-gradient(180deg, #a3c1dc, #cfe0ee);
    padding: 0 0 1.75rem;
    overflow: hidden;
    border: 0;
    background: var(--draw-bg);
}
.ti-draw-img { display: block; width: 100%; height: 190px; object-fit: cover; border-bottom: 6px solid #fff; }
[data-idade="terceira-idade"] .af-drawbox > span,
[data-idade="terceira-idade"] .af-drawbox h3,
[data-idade="terceira-idade"] .af-drawbox .br-draw { margin-left: 1.75rem; margin-right: 1.75rem; }
[data-idade="terceira-idade"] .af-drawbox > span {
    display: block;
    margin-top: 1.4rem;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    color: #1f3550;
}
[data-idade="terceira-idade"] .af-drawbox h3 { font-size: 2.4rem !important; }
[data-idade="terceira-idade"] .br-draw-card {
    border: 0;
    background: #fff;
    font-family: var(--f-body);
    font-size: 1.25rem;
}
[data-idade="terceira-idade"] .br-draw-card.is-pop { animation: none; }
[data-idade="terceira-idade"] .br-btn {
    min-height: 56px;
    padding: 0.9rem 1.9rem;
    font-size: 1.1rem;
}

/* ---------- Sinais, materiais, aviso ---------- */
[data-idade="terceira-idade"] .af-signs li::before { font-family: var(--f-body); }
[data-idade="terceira-idade"] .af-who { border-left-color: var(--accent-2); }
[data-idade="terceira-idade"] .af-who b { font-size: 1.6rem; }
[data-idade="terceira-idade"] .af-mat span {
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    background: #eef4f9;
    color: #1f3550;
}
[data-idade="terceira-idade"] .af-mat h3 { font-size: 2rem !important; }
[data-idade="terceira-idade"] .af-mats-foot a:not(.br-btn),
[data-idade="terceira-idade"] .br-foot a { text-decoration: underline; }
[data-idade="terceira-idade"] .br-alert h2 { font-size: clamp(2.6rem, 5vw, 3.6rem) !important; }
[data-idade="terceira-idade"] .br-next span {
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent-2);
}
[data-idade="terceira-idade"] .br-next h3 { font-size: 2.1rem !important; }
[data-idade="terceira-idade"] .br-foot { font-size: 1rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    [data-idade="terceira-idade"] .af-phases ol { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
    .ai .ti-quote-h,
    .ti-quote .br-lead { margin-left: 0 !important; margin-right: 0 !important; }
}
@media (max-width: 900px) {
    .ti-hero { min-height: 0; padding-bottom: 0; }
    .ti-pills { right: 4.8rem; }
    .ti-photo {
        position: relative;
        width: auto;
        height: 460px;
        margin: 1rem -5.5% 0;
    }
    .ti-photo img {
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 68%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 68%, transparent 100%);
    }
    .ti-motto { position: relative; left: auto; bottom: auto; margin-top: -7rem !important; }
    .ti-strip { justify-content: flex-start; margin-top: 1.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2.5rem; }
    .ti-strip::-webkit-scrollbar { display: none; }
}
@media (max-width: 620px) {
    .ti-pills { display: none; }
    .ti-hero { padding-top: 1.4rem; }
    .ti-brand { padding-right: 3.5rem; }
    .ti-photo { height: 380px; }
    .ti-strip img { width: 104px; }
    .ti-strip img:nth-child(2),
    .ti-strip img:nth-child(4) { width: 118px; }
    .ti-strip img.is-big { width: 150px; }
    [data-idade="terceira-idade"] .af-phases { padding: 0 0.75rem; }
    [data-idade="terceira-idade"] .af-phases ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ti-moods { gap: 0.7rem; margin-bottom: 3rem; }
    .ti-moods li { transform: none !important; width: calc(50% - 0.35rem); }
    .ti-moods li:last-child { width: 100%; }
    .ti-moods a { width: 100%; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    .ti-moods a { transition: none; }
}
