/**
 * =============================================================================
 *  Project:        Enterramon
 *  Filename:       assets/css/guide-fix.css
 *  Description:    The copyable fix block on a finding guide
 *  Copyright :     (c) 2026 InlineBlack. All rights reserved.
 * =============================================================================
 *
 *  Emitted by inc/blocks/guide-fix.php. Loaded only by the guides that carry a
 *  fix block, through $extraStyles, so the other pages pay nothing.
 */

.guide-fix {
    margin: 3rem 0;
}

.fix-panel {
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, .02);
}

.fix-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: rgba(0, 0, 0, .03);
}

.fix-where {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-primary, #f04e23);
}

.fix-note {
    font-size: .84rem;
    opacity: .7;
    line-height: 1.4;
}

.fix-code {
    position: relative;
}

.fix-code pre {
    margin: 0;
    padding: 18px 20px;
    background: var(--color-on-surface, #1a1a1a);
    color: #eeeeee;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

.fix-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #eeeeee;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    cursor: pointer;
}

.fix-copy:hover {
    background: rgba(255, 255, 255, .22);
}

.fix-copy:focus-visible {
    outline: 2px solid var(--color-primary, #f04e23);
    outline-offset: 2px;
}
