/* The one web icon source (flag web_icon_family) — templates/components/web_icons.html.
   Loaded only while the flag is on. Line = currentColor; gold only draws a light.
   Gold per theme mirrors mobile ICON_GOLD: deepened on light surfaces for contrast. */

body.dark {
    --ln-icon-gold: #F2D48A;
    --ln-icon-gold-wash: rgba(242, 212, 138, 0.2);
    --ln-icon-sunset: rgba(240, 160, 80, 0.45);
}
body.light,
body.zen,
body.zenGarden {
    --ln-icon-gold: #A87B1E;
    --ln-icon-gold-wash: rgba(233, 196, 106, 0.32);
    --ln-icon-sunset: rgba(227, 140, 60, 0.5);
}

/* Sidebar nav icons force stroke on the <svg> (modern-sidebar.css); the gold
   parts must out-rank that inherited value. */
.ln-icon .ln-gold,
.ln-icon .ln-gold * {
    stroke: var(--ln-icon-gold, #C9A227) !important;
}
.ln-icon .ln-gold-wash { fill: var(--ln-icon-gold-wash, rgba(233, 196, 106, 0.32)); }
.ln-icon .ln-gold-sunset { fill: var(--ln-icon-sunset, rgba(227, 140, 60, 0.5)); }
.ln-icon .ln-gold-fill {
    fill: var(--ln-icon-gold, #C9A227);
    stroke: none !important;
}

/* Today: one sky at a time, chosen by the visitor's local hour (sidebar script
   sets data-tod with the Today greeting's cut-offs). Without script: afternoon. */
.ln-icon-today .ln-tod { display: none; }
.ln-icon-today:not([data-tod]) .ln-tod-afternoon,
.ln-icon-today[data-tod="morning"] .ln-tod-morning,
.ln-icon-today[data-tod="afternoon"] .ln-tod-afternoon,
.ln-icon-today[data-tod="evening"] .ln-tod-evening,
.ln-icon-today[data-tod="night"] .ln-tod-night { display: inline; }

/* ---- "Journal with <mentor>" (flag web_council_actions) -------------------
   Profile modal: Journal, Chat, follow in one slim row — mobile
   MentorProfileModal slimRow (Journal solid, Chat soft, follow a ribbon). */
.mentor-profile-modal .modal-actions-journal {
    align-items: center;
    gap: 0.625rem;
}
.mentor-profile-modal .modal-actions-journal .modal-journal-btn,
.mentor-profile-modal .modal-actions-journal .modal-chat-btn {
    height: 2.875rem;
    padding: 0 1.25rem;
    border-radius: 9999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.mentor-profile-modal .modal-actions-journal .modal-journal-btn {
    flex: 1.35 1 0;
    background: var(--accent-purple);
    color: #fff;
}
.mentor-profile-modal .modal-actions-journal .modal-journal-btn:hover {
    background: var(--accent-purple-hover);
}
.mentor-profile-modal .modal-actions-journal .modal-chat-btn {
    flex: 1 1 0;
    background: color-mix(in srgb, var(--accent-purple) 14%, transparent);
    color: var(--accent-purple);
}
.mentor-profile-modal .modal-actions-journal .modal-chat-btn:hover {
    background: color-mix(in srgb, var(--accent-purple) 24%, transparent);
    color: var(--accent-purple);
    transform: none;
}
.mentor-profile-modal .modal-actions-journal .ln-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}
.mentor-profile-modal .modal-actions-journal .modal-follow-btn,
.mentor-profile-modal .modal-actions-journal .modal-follow-btn.following {
    flex: 0 0 auto;
    width: 2.875rem;
    height: 2.875rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--text-color, currentColor) 18%, transparent);
    color: var(--text-color);
    opacity: 0.85;
}
.mentor-profile-modal .modal-actions-journal .modal-follow-btn.following {
    border-color: color-mix(in srgb, var(--accent-purple) 35%, transparent);
    color: var(--accent-purple);
    opacity: 1;
}
.mentor-profile-modal .modal-actions-journal .modal-follow-btn .ln-icon { width: 21px; height: 21px; }
.mentor-profile-modal .modal-actions-journal .modal-follow-btn.following .ln-follow-ribbon { fill: currentColor; }
/* The label is the button's accessible name; both profile scripts still write it. */
.mentor-profile-modal .modal-actions-journal .modal-follow-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
@media (max-width: 640px) {
    .mentor-profile-modal .modal-actions-journal { flex-direction: row; }
    .mentor-profile-modal .modal-actions-journal .modal-journal-btn,
    .mentor-profile-modal .modal-actions-journal .modal-chat-btn { width: auto; padding: 0 0.75rem; }
}

/* ---- Mentor faces: name line swaps to "Journal · Chat" -------------------
   CEO 2026-10-03 (decisions.md 'mentor FACES'): nothing covers the portrait.
   Hover or keyboard focus on ONE face swaps only its name line to two small
   text links, in the same box (no layout shift). Touch never swaps. */
.mentor-face-line { position: relative; display: block; }
.mentor-face-actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}
.shelf-name.mentor-face-line .mentor-face-actions { align-items: flex-start; }
.mentor-face-actions button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 600;
    line-height: inherit;
    color: var(--accent-purple);
    cursor: pointer;
}
.mentor-face-actions button:hover { text-decoration: underline; text-underline-offset: 2px; }
.mentor-face-actions button:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
    border-radius: 3px;
}
.mentor-face-dot { opacity: 0.55; color: var(--muted-text, currentColor); }
@media (hover: hover) {
    .council-seat:hover .mentor-face-line,
    .shelf-tile:hover .mentor-face-line { overflow: visible; }
    .council-seat:hover .mentor-face-name,
    .shelf-tile:hover .mentor-face-name { visibility: hidden; }
    .council-seat:hover .mentor-face-actions,
    .shelf-tile:hover .mentor-face-actions { opacity: 1; pointer-events: auto; }
}
.mentor-face-line:focus-within { overflow: visible; }
.mentor-face-line:focus-within .mentor-face-name { visibility: hidden; }
.mentor-face-line:focus-within .mentor-face-actions { opacity: 1; pointer-events: auto; }
@media (hover: none) {
    .mentor-face-actions { display: none; }
    .mentor-face-line:focus-within .mentor-face-name { visibility: visible; }
}

/* ---- Tooltips: [data-ln-tip] (web parity round 1, Discover card row) -------
   One bubble, placed by journal_with_mentor.js. Inverted theme tokens, so it
   reads in all four themes. */
.ln-tip {
    position: fixed;
    z-index: 1000010;
    max-width: 240px;
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
    background: var(--text-color, #2C1810);
    color: var(--background-color, #FFFFFF);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
}
.ln-tip.ln-tip-visible { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
    .ln-tip { transition: none; }
}

/* ---- Discover card hover: the profile row (web parity round 1) ------------
   Journal solid, Chat soft, follow a ribbon — mobile MentorProfileModal
   slimRow. Hover-only like the old pair: touch taps the card for the profile. */
#discover-gallery .mentor-card-actions.mentor-card-actions-row,
.mentor-card-actions.mentor-card-actions-row {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}
.mentor-card .mentor-card-actions-row .mentor-card-journal,
.mentor-card .mentor-card-actions-row .mentor-card-chat {
    height: 2.5rem;
    min-width: 0;
    padding: 0 0.85rem;
    border-radius: 9999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: auto;
    box-shadow: none;
}
.mentor-card .mentor-card-actions-row .mentor-card-journal span,
.mentor-card .mentor-card-actions-row .mentor-card-chat span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mentor-card .mentor-card-actions-row .mentor-card-journal {
    flex: 1.35 1 0;
    background: var(--accent-purple);
    color: #fff;
}
.mentor-card .mentor-card-actions-row .mentor-card-journal:hover { background: var(--accent-purple-hover); }
.mentor-card .mentor-card-actions-row .mentor-card-chat {
    flex: 1 1 0;
    background: color-mix(in srgb, var(--accent-purple) 14%, transparent);
    color: var(--accent-purple);
}
.mentor-card .mentor-card-actions-row .mentor-card-chat:hover {
    background: color-mix(in srgb, var(--accent-purple) 24%, transparent);
    color: var(--accent-purple);
    transform: none;
}
.mentor-card .mentor-card-actions-row .ln-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}
.mentor-card .mentor-card-actions-row .card-ribbon-follow {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--text-color, currentColor) 18%, transparent);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.mentor-card .mentor-card-actions-row .card-ribbon-follow:hover {
    border-color: color-mix(in srgb, var(--accent-purple) 45%, transparent);
    color: var(--accent-purple);
}
.mentor-card .mentor-card-actions-row .card-ribbon-follow .ln-icon { width: 19px; height: 19px; }
.mentor-card .mentor-card-actions-row .card-ribbon-follow.following {
    border-color: color-mix(in srgb, var(--accent-purple) 35%, transparent);
    color: var(--accent-purple);
}
.mentor-card .mentor-card-actions-row .card-ribbon-follow.following .ln-follow-ribbon { fill: currentColor; }
.mentor-card .mentor-card-actions-row button:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}
