/* Shared public action language. Deliberately no Unicode navigation icons. */
:root { --action-ink: #f1dfba; --action-edge: rgba(231, 202, 145, .32); --action-surface: rgba(231, 202, 145, .065); }
:is(.site-action, .history-disk-link, .history-archive-links a, .heritage-summary__links a,
.training-text-link, .branch-text-link, .schedule-event__registration,
.schedule-event__registration-link, .schedule-event__link, .library-back,
.legal-page__back, .archive-library .text-link, .archive-library .routes a,
.archive-library .press-open) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--action-edge);
    border-radius: 12px;
    background: var(--action-surface);
    color: var(--action-ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
:is(.site-action, .history-disk-link, .history-archive-links a, .heritage-summary__links a,
.training-text-link, .branch-text-link, .schedule-event__registration,
.schedule-event__registration-link, .schedule-event__link, .library-back,
.legal-page__back, .archive-library .text-link, .archive-library .routes a,
.archive-library .press-open):focus-visible {
    outline: 2px solid #f0d68f;
    outline-offset: 4px;
}
@media (hover: hover) {
    :is(.site-action, .history-disk-link, .history-archive-links a, .heritage-summary__links a,
    .training-text-link, .branch-text-link, .schedule-event__registration,
    .schedule-event__registration-link, .schedule-event__link, .library-back,
    .legal-page__back, .archive-library .text-link, .archive-library .routes a,
    .archive-library .press-open):hover {
        background: rgba(231,202,145,.13);
        border-color: rgba(231,202,145,.64);
        color: var(--action-ink);
        text-decoration: none;
    }
}
/* Paper surfaces retain a dark readable foreground. */
:is(.schedule-event, .schedule-main, .schedule-paper, .shop-product, .legal-page,
.archive-library .rash-quote, .archive-library .press-card) {
    --action-ink: #48272a;
    --action-edge: rgba(80,43,33,.25);
    --action-surface: rgba(80,43,33,.04);
}
.history-disk-link { margin-top: 12px; align-self: flex-start; }
.history-archive-links, .heritage-summary__links { gap: 10px; align-items: flex-start; }
.archive-library .routes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}
.archive-library .routes a { justify-content: flex-start; text-align: left; padding: 12px 16px; }
.archive-library .routes a::before, .archive-library .external { display: none; }
.archive-library .chapter-links, .archive-library .founder-links { gap: 10px; align-items: flex-start; }
.archive-library :is(.book, .people-grid, .chapter-links, .rash-quote, .founder-links, .library-films) .text-link {
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
}
/* Entire source cards are already buttons; avoid a button inside their label. */
.archive-library .history-item .text-link {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.archive-library .topic-nav a { border-radius: 8px; }
.archive-library .topic-nav a:not(.active) { text-decoration: underline; text-decoration-color: rgba(231,202,145,.3); text-underline-offset: 6px; }
/* Links embedded in a sentence remain recognisable without adding a box. */
main p a:not([class]), .contact-form__legal a, .contact-form__consent a {
    text-decoration: underline;
    text-underline-offset: 4px;
}
@media (max-width: 600px) {
    .archive-library .routes { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .archive-library .routes a { padding: 12px; font-size: 13px; }
    .archive-library .routes a:last-child:nth-child(odd) { grid-column: 1/-1; }
    .history-archive-links { display: grid; grid-template-columns: minmax(0,1fr); }
    .history-archive-links a { justify-content: flex-start; text-align: left; }
    .archive-library .chapter-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .archive-library .chapter-links .text-link { justify-content: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    :is(.site-action, .history-disk-link, .archive-library .text-link, .archive-library .routes a) { transition: none; }
}
.archive-library .topic-nav .shell { gap: 8px; padding-block: 8px; }
.archive-library .topic-nav a {
    flex-shrink: 0;
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid rgba(231,202,145,.18);
    background: rgba(231,202,145,.045);
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
}
.archive-library .topic-nav a:not(.active) { text-decoration: none; }
.archive-library .topic-nav a.active { background: rgba(231,202,145,.14); border-color: rgba(231,202,145,.5); }
main a[href^="tel:"], main a[href^="mailto:"], .archive-library .press-card h3 a,
footer a:not(.brand):not([class*="brand"]):not([class*="button"]) {
    text-decoration: underline;
    text-underline-offset: 4px;
}
main a[href^="tel:"], main a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
