.lib-page {
    --green:      #1F5133;
    --green-dark: #153824;
    --slate:      #55779A;
    --gold:       #E4B94A;
    --cream:      #FCF7E6;
    --ink:        #16181C;
    --muted:      #6E7580;
    --line:       #E4E1D8;
    --wash:       #F4F2EC;
    --paper:      #FFFFFF;
    --pad:        20px;
    --display: "STIX Two Text", Georgia, "Times New Roman", serif;
    --ui:      "Archivo", system-ui, -apple-system, sans-serif;
}
.lib-page, .lib-page * { margin: 0; padding: 0; box-sizing: border-box; }
.lib-page {
    font-family: var(--ui); color: var(--ink); background: var(--paper);
    max-width: 480px; margin: 0 auto; padding: 48px var(--pad) 64px;
    min-height: 100vh; -webkit-font-smoothing: antialiased;
}
.lib-header {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; margin-bottom: 32px;
}
.lib-page .lib-header .lib-avatar {
    display: block; width: 88px; height: 88px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--line);
    margin: 0 0 16px; max-width: none; flex-shrink: 0;
}
.lib-page .lib-header .lib-avatar-ph {
    width: 88px; height: 88px; border-radius: 50%; background: var(--green);
    margin: 0 0 16px; display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-size: 34px; color: var(--paper);
    border: 2px solid var(--green-dark); flex-shrink: 0;
}
.lib-name {
    font-family: var(--display); font-size: 26px; font-weight: 600;
    line-height: 1.2; letter-spacing: -0.01em; color: var(--ink);
}
.lib-tagline {
    font-family: var(--ui); font-size: 14px; color: var(--muted);
    margin-top: 6px; line-height: 1.5;
}
/* ── YouTube link ── */
.lib-youtube {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px;
    background: #FFF; border: 1px solid var(--line); border-radius: 8px;
    text-decoration: none; color: var(--ink); margin-bottom: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.lib-youtube:visited { color: var(--ink); }
.lib-youtube:hover {
    border-color: #c4302b; box-shadow: 0 4px 14px rgba(196,48,43,0.1);
    transform: translateY(-1px); color: var(--ink);
}
.lib-youtube:active { transform: translateY(0); }
.lib-youtube:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.lib-youtube-icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px;
    background: #fee; border: 1px solid #f5d5d5;
    display: flex; align-items: center; justify-content: center; color: #c4302b;
}
.lib-youtube-label {
    flex: 1; min-width: 0; font-family: var(--ui); font-size: 14px;
    font-weight: 600; color: var(--ink); line-height: 1.3;
}
.lib-youtube-arrow {
    flex-shrink: 0; color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease;
}
.lib-youtube:hover .lib-youtube-arrow { color: #c4302b; transform: translateX(3px); }

.lib-cta-block { margin-bottom: 16px; }
.lib-cta-note {
    font-family: var(--display); font-style: italic; font-size: 14.5px;
    color: var(--muted); text-align: center; margin-bottom: 10px; line-height: 1.4;
}
.lib-cta {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px 24px; background: var(--green); color: #fff;
    text-decoration: none; border-radius: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}
.lib-cta:visited { color: #fff; }
.lib-cta:hover { background: var(--green-dark); transform: translateY(-1px); color: #fff; }
.lib-cta:active { transform: translateY(0); }
.lib-cta-pip {
    display: inline-block; width: 8px; height: 8px;
    background: var(--gold); border-radius: 2px; flex-shrink: 0;
}
.lib-cta-label {
    font-family: var(--ui); font-size: 13px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
}
.lib-cta-chev { flex-shrink: 0; color: rgba(255,255,255,0.7); transition: transform 0.2s ease; }
.lib-cta:hover .lib-cta-chev { transform: translateX(2px); }
.lib-cta:focus-visible, .lib-newsletter:focus-visible, .lib-card:focus-visible {
    outline: 2px solid var(--slate); outline-offset: 2px;
}
.lib-newsletter {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px;
    background: var(--cream); border: 1px solid var(--line); border-radius: 8px;
    text-decoration: none; color: var(--ink); margin-bottom: 36px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.lib-newsletter:visited { color: var(--ink); }
.lib-newsletter:hover {
    border-color: var(--slate); box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transform: translateY(-1px); color: var(--ink);
}
.lib-newsletter:active { transform: translateY(0); }
.lib-newsletter-icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px;
    background: var(--paper); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; color: var(--slate);
}
.lib-newsletter-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lib-newsletter-label { font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.lib-newsletter-note { font-family: var(--ui); font-size: 12.5px; color: var(--muted); margin-top: 1px; line-height: 1.3; }
.lib-newsletter-arrow { flex-shrink: 0; color: var(--muted); transition: color 0.2s ease, transform 0.2s ease; }
.lib-newsletter:hover .lib-newsletter-arrow { color: var(--slate); transform: translateX(3px); }
.lib-links-eyebrow {
    font-family: var(--ui); font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.lib-rule { border: none; border-top: 1px dotted var(--line); margin-bottom: 16px; }
.lib-cards { display: flex; flex-direction: column; gap: 10px; }
.lib-card {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
    text-decoration: none; color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.lib-card:visited { color: var(--ink); }
.lib-card:hover {
    border-color: var(--slate); box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transform: translateY(-1px); color: var(--ink);
}
.lib-card:active { transform: translateY(0); }
.lib-card-img {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px;
    object-fit: cover; background: var(--wash);
}
.lib-card-emoji {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px; background: var(--wash);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.lib-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lib-card-title {
    font-family: var(--display); font-size: 15px; font-weight: 600;
    line-height: 1.3; color: var(--ink);
}
.lib-card-desc { font-family: var(--ui); font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.lib-card-arrow { flex-shrink: 0; color: var(--line); transition: color 0.2s ease, transform 0.2s ease; }
.lib-card:hover .lib-card-arrow { color: var(--slate); transform: translateX(2px); }
.lib-footer {
    text-align: center; margin-top: 40px; font-family: var(--ui);
    font-size: 12px; color: var(--muted); letter-spacing: 0.04em;
}
.lib-footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.lib-footer a:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
    .lib-page, .lib-page * { transition: none !important; animation: none !important; }
}
@media (min-width: 760px) {
    .lib-name { font-size: 29px; }
    .lib-cta-note { font-size: 15px; }
    .lib-card-title { font-size: 16px; }
}
