/* Skip-link: hidden until focused (accessibility) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: #0d6efd;
    color: #fff;
    z-index: 9999;
    border-radius: 4px;
}

/* Subtle Windows-11-Fluent-adjacent card hover */
.tool-card {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.tool-card:hover,
.tool-card:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 110, 253, 0.35);
}

/* Result chips — monospaced, click-to-copy */
.result-chip {
    font-family: var(--bs-font-monospace);
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    min-height: 32px;
}
.result-chip:hover,
.result-chip:focus-visible {
    background-color: rgba(13, 110, 253, 0.08);
    border-color: #0d6efd;
    color: #0a58ca;
}

/* Copy toast — bottom-centre, fades in/out */
.copy-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: #212529;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 9999;
}
.copy-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Ad slot placeholder — reserves height even while disabled to prevent CLS */
.ad-slot {
    margin: 2rem 0;
    border-radius: 6px;
    background: transparent;
}

/* Wordle Helper board */
.wordle-board {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.wordle-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 48px;
}
.wordle-letter {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    font-weight: 600;
    border: 2px solid #ced4da;
    border-radius: 4px;
    padding: 0;
    background: #fff;
    color: #212529;
}
.wordle-letter:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.2);
}
.wordle-colour {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.1s ease;
}
.wordle-tile--b .wordle-colour {
    background: #6c757d;
    color: #fff;
    border-color: #5c636a;
}
.wordle-tile--y .wordle-colour {
    background: #b58900;   /* darker yellow so white icon meets AA contrast */
    color: #fff;
    border-color: #927000;
}
.wordle-tile--g .wordle-colour {
    background: #198754;
    color: #fff;
    border-color: #146c43;
}
