2026-03-28 14:59:40 +00:00
|
|
|
.wrapper {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-left: 0.3em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon {
|
2026-07-02 21:34:07 +01:00
|
|
|
/* A real button: 24px tap target (WCAG 2.5.8) drawn as the small glyph. */
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
min-width: 24px;
|
|
|
|
|
min-height: 24px;
|
|
|
|
|
margin: -6px 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
border: none;
|
|
|
|
|
background: none;
|
|
|
|
|
font-size: 0.9em;
|
2026-03-28 14:59:40 +00:00
|
|
|
color: var(--text-muted, #8a7a72);
|
|
|
|
|
cursor: help;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
user-select: none;
|
|
|
|
|
transition: color 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-02 21:34:07 +01:00
|
|
|
.wrapper:hover .icon,
|
|
|
|
|
.icon[aria-expanded="true"] {
|
|
|
|
|
color: var(--accent-coral-dark, #b04a2e);
|
2026-03-28 14:59:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tooltip {
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: calc(100% + 6px);
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
z-index: 9999;
|
|
|
|
|
width: 220px;
|
|
|
|
|
background: var(--bg-primary, #faf7f2);
|
|
|
|
|
border: 1px solid var(--border-color, #e8ddd4);
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
box-shadow: 0 4px 16px rgba(44, 36, 32, 0.15);
|
|
|
|
|
padding: 0.6rem 0.75rem;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 0.3rem;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
transition: opacity 0.15s ease, visibility 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-02 21:34:07 +01:00
|
|
|
/* Reveal on hover (desktop), keyboard focus, or explicit tap/click toggle. */
|
|
|
|
|
.wrapper:hover .tooltip,
|
|
|
|
|
.wrapper:focus-within .tooltip,
|
|
|
|
|
.tooltipOpen {
|
2026-03-28 14:59:40 +00:00
|
|
|
visibility: visible;
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-02 21:34:07 +01:00
|
|
|
.tooltipOpen {
|
|
|
|
|
pointer-events: auto;
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-28 14:59:40 +00:00
|
|
|
/* Small arrow pointing down */
|
|
|
|
|
.tooltip::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 100%;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
border: 5px solid transparent;
|
|
|
|
|
border-top-color: var(--border-color, #e8ddd4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tooltipLabel {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
color: var(--text-primary, #2c2420);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tooltipPlain {
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
color: var(--text-secondary, #5a4a44);
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tooltipDetail {
|
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
color: var(--text-muted, #8a7a72);
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
margin-top: 0.1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
|
.tooltip {
|
|
|
|
|
width: 180px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-05-19 09:38:48 +01:00
|
|
|
|
2026-07-02 21:34:07 +01:00
|
|
|
/* Anchor the bubble to open rightward on phones — icons follow their labels,
|
|
|
|
|
which start at the left edge, so centring pushed the bubble off-screen. */
|
2026-05-19 09:38:48 +01:00
|
|
|
@media (max-width: 640px) {
|
2026-07-02 21:34:07 +01:00
|
|
|
.tooltip {
|
|
|
|
|
left: -12px;
|
|
|
|
|
right: auto;
|
|
|
|
|
transform: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tooltip::after {
|
|
|
|
|
left: 16px;
|
|
|
|
|
transform: none;
|
2026-05-19 09:38:48 +01:00
|
|
|
}
|
|
|
|
|
}
|