/* ==========================================================================
   Citation line + Copy button — the ONLY styles of template-parts/cite-copy.php
   (research "Use this data", calculator "Cite or link"; script: copy-cite.js).
   Enqueued with fb-copy-cite on single research and calculator pages
   (functions.php). Page CSS only spaces the block, never restyles it.

   Look = the research citation as approved by Nick (Nov 22, 2026): monospace
   13px line in a light box, Copy beside it at the same height; on phones the
   button runs full width under the line. Colours: design-system tokens (dark
   palette included), with light fallbacks for the old look (?fb_ds=0).
   Specificity is .fb-cite + class on purpose: Kadence styles every <button>
   (and its :hover/:focus/:active) and design-components.css sets
   `.fb-ds-v01 button { font: inherit }`.
   ========================================================================== */

.fb-cite {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: stretch;
}

.fb-cite .fb-cite__line {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--fb-color-border, #e3e7ee);
    border-radius: 8px;
    background: var(--fb-color-page, #f5f8fc);
    color: var(--fb-color-text, #14213a);
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

.fb-cite .fb-cite__copy {
    margin: 0;
    padding: 11px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--fb-color-action, #1a4fa0);
    color: var(--fb-color-on-action, #ffffff);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: none;
    cursor: pointer;
}
.fb-cite .fb-cite__copy:focus,
.fb-cite .fb-cite__copy:active {
    background: var(--fb-color-action, #1a4fa0);
    color: var(--fb-color-on-action, #ffffff);
    box-shadow: none;
}
.fb-cite .fb-cite__copy:hover {
    background: var(--fb-color-action-hover, #163f80);
    color: var(--fb-color-on-action, #ffffff);
    box-shadow: none;
}
.fb-cite .fb-cite__copy:focus-visible {
    outline: 3px solid var(--fb-color-focus, #1a4fa0);
    outline-offset: 2px;
}
.fb-cite .fb-cite__copy[hidden] { display: none; }

@media (max-width: 560px) {
    .fb-cite { grid-template-columns: 1fr; }
}
