/*
 * links.css
 *
 * Shared by all pages.
 *
 * 1. Colour of text links. Change the colours below to change every link
 *    at once. Buttons, the navigation and the speech bubbles are not
 *    affected.
 * 2. The round home button in the top left corner of every page.
 * 3. Start page only: the bubble groups are always folded behind one
 *    bubble each, on every screen size.
 * 4. Start page only: QR code and donation address are centred.
 * 5. Start page only: the "Your thesis?" bubble is larger and sits in the
 *    middle of the left edge.
 */
.card a:not(.btn-primary):not(.btn-secondary):not(.bubble):not(.home-btn),
.whoami-box a {
    color: #fde68a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.card a:not(.btn-primary):not(.btn-secondary):not(.bubble):not(.home-btn):hover,
.card a:not(.btn-primary):not(.btn-secondary):not(.bubble):not(.home-btn):focus-visible,
.whoami-box a:hover,
.whoami-box a:focus-visible {
    color: #ffffff;
}

/* Home button */
.home-btn {
    position: fixed;
    top: 24px;
    left: 20px;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(2, 16, 31, 0.75);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: background 0.15s ease, transform 0.15s ease;
}

.home-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-btn:hover,
.home-btn:focus-visible {
    background: #fde68a;
    color: #02101f;
    transform: translateY(-1px);
}

.home-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* Start page: bubble groups folded by default, on every screen size.
   A click on the toggle bubble opens the group. To go back to the
   automatic behaviour (open on large screens), delete this block. */
.group-label {
    display: none;
}

.theses-toggle,
.prompts-toggle,
.frank-toggle {
    display: inline-block;
}

.thesis-group,
.prompt-group,
.frank-group {
    display: none;
}

.thesis-group.open,
.prompt-group.open,
.frank-group.open {
    display: flex;
}

/* Start page: QR code and donation address centred */
.support .qr {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.support .wallet {
    text-align: center;
}

/* Start page: the "Your thesis?" bubble, larger and more prominent,
   in the middle of the left edge. Same size as the Debate of the Month
   bubble on the right. To move it up or down, change margin-top
   (it is about half the height of the bubble; "top: 50%" is the middle
   of the window). */
.bubble.small.yours {
    position: fixed;
    left: 24px;
    top: 50%;
    margin-top: -40px;
    padding: 16px 26px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #f9a8d4;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.bubble.small.yours .sub {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.bubble.small.yours:hover,
.bubble.small.yours:focus-visible {
    background: #f472b6;
}

.bubble.small.yours::after {
    border-top-color: #f9a8d4;
}

.bubble.small.yours:hover::after,
.bubble.small.yours:focus-visible::after {
    border-top-color: #f472b6;
}

/* On narrow screens the navigation uses the whole width, so the button
   becomes smaller and sits in the free space to the left of it. */
@media (max-width: 768px) {
    .home-btn {
        top: 14px;
        left: 6px;
        width: 32px;
        height: 32px;
    }

    .home-btn svg {
        width: 16px;
        height: 16px;
    }

    .bubble.small.yours {
        left: 16px;
        margin-top: -32px;
        padding: 12px 18px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-btn {
        transition: none;
    }
}
