/* intro v25 — Sagmeister ticket: corner patch, spiral binding, ticket perforation, square thumb */

/* Corner accent patch → triangle */
.intro-tkt__patch {
    width: 10rem;
    height: 10rem;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0.9;
}
.intro-tkt__spiral { height: 1rem; }
.intro-tkt__body { min-width: 0; }
.intro-tkt__close { width: 2rem; height: 2rem; }

/* Torn notebook spiral binding holes (colour from Tailwind text-*, holes via mask) */
.intro-tkt__spiral {
    -webkit-mask: radial-gradient(circle 5px at center, black 98%, transparent 100%) 0 0 / 30px 100%;
    mask: radial-gradient(circle 5px at center, black 98%, transparent 100%) 0 0 / 30px 100%;
    background: currentColor;
    opacity: 0.5;
}

/* Square cropped thumbnail */
.intro-tkt__thumb {
    width: 6rem;
    height: 6rem;
    object-fit: cover;
}

/* Ticket stub perforation (currentColor from the card text) */
.intro-tkt__ticket { transition: box-shadow 240ms ease; }
.intro-tkt__ticket::after {
    content: "";
    position: absolute;
    top: 0.75rem;
    bottom: 0.75rem;
    left: 7.5rem;
    border-left: 2px dashed currentColor;
    opacity: 0.25;
    pointer-events: none;
}
@media (max-width: 575.98px) {
    .intro-tkt__ticket::after { display: none; }
}

.features-hud-panel__decor--pulse {
    top: -5rem;
    left: 33.333333%;
    animation: features-hud-panel-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.features-hud-panel__decor--spin {
    bottom: -6rem;
    right: 25%;
    animation: features-hud-panel-spin-kf 1s linear infinite;
}

.features-hud-panel__decor--bounce {
    top: 50%;
    right: 33.333333%;
    transform: rotate(45deg);
    animation: features-hud-panel-bounce-kf 1s infinite;
}

.features-hud-panel__decor--line {
    top: 33.333333%;
    right: 25%;
    transform: rotate(-12deg);
}

.features-hud-panel__grid-overlay {
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* ── BS-mode: panel shell (colors live in template bg-dark) ── */
.features-hud-panel__bs-panel {
    min-width: 0;
}

.features-hud-panel__bs-accent-top {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--bs-primary), transparent);
}

.features-hud-panel__bs-accent-bottom {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(var(--bs-primary-rgb), 0.4), transparent);
}

.features-hud-panel__bs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.features-hud-panel__bs-grid > figure {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.features-hud-panel__bs-grid > figure:nth-child(2n) {
    border-right: none;
}

.features-hud-panel__bs-grid > figure:nth-last-child(-n+2):nth-child(2n+1),
.features-hud-panel__bs-grid > figure:nth-last-child(-n+2):nth-child(2n+1) ~ figure {
    border-bottom: none;
}

@media (max-width: 575.98px) {
    .features-hud-panel__bs-grid {
        grid-template-columns: 1fr;
    }
    .features-hud-panel__bs-grid > figure {
        border-right: none;
    }
    .features-hud-panel__bs-grid > figure:last-child {
        border-bottom: none;
    }
}

/* ── BS-mode decorative shapes ── */
.features-hud-panel__decor--bs-blob {
    background-color: var(--bs-primary-bg-subtle);
    opacity: 0.3;
    filter: blur(48px);
}

.features-hud-panel__decor--bs-shape {
    opacity: 0.12;
}

.features-hud-panel__decor--bs-line {
    border-left: 1px solid var(--bs-primary-border-subtle);
    opacity: 0.18;
}

.features-hud-panel__item {
    min-width: 0;
}

.features-hud-panel__dot--pulse {
    animation: features-hud-panel-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes features-hud-panel-pulse-kf {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes features-hud-panel-spin-kf {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes features-hud-panel-bounce-kf {
    0%, 100% { transform: translateY(-25%) rotate(45deg); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
/* glossary gazette — multi-column flow (not CSS grid), brick avoid breaks, footnote icon */
.glossary-gazette__columns {
    column-count: 1;
    column-gap: 1.25rem;
}

@media (min-width: 768px) {
    .glossary-gazette__columns {
        column-count: 2;
        column-gap: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .glossary-gazette__columns {
        column-count: 3;
    }
}

.glossary-gazette__brick {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.glossary-gazette__note-ico {
    width: 3.25rem;
    height: 3.25rem;
}

.glossary-gazette__note-icon {
    font-size: 1.25rem;
    line-height: 1;
}

