/* ==========================================
   FRANZ Framework - UI
========================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
}

#primary {
    scroll-margin-top: 110px;
}

.franz-card {
    background: var(--franz-card);
    border: 1px solid var(--franz-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card, var(--franz-shadow-md));
}

.franz-card--editorial,
.franz-card--feature,
.franz-card--quote,
.franz-card--minimal {
    position: relative;
}

.franz-card--editorial {
    overflow: hidden;
    padding: clamp(32px, 5vw, 64px);
    border-radius: var(--radius-lg);
    background: var(--franz-white);
    box-shadow: var(--shadow-soft, var(--franz-shadow-sm));
}

.franz-card--feature {
    overflow: hidden;
    min-height: clamp(420px, 48vw, 680px);
    padding: clamp(36px, 6vw, 80px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated, var(--franz-shadow-lg));
}

.franz-card--minimal {
    padding: clamp(24px, 4vw, 40px);
    border-color: rgba(31, 27, 22, 0.08);
    border-radius: var(--radius-sm);
    background: transparent;
    box-shadow: none;
}

.franz-card--quote,
.franz-editorial-quote {
    padding: clamp(48px, 8vw, 104px);
    border: 0;
    border-radius: var(--radius-lg);
    background: transparent;
    box-shadow: none;
}

.franz-card--quote::before,
.franz-editorial-quote::before {
    content: "\201C";
    display: block;
    margin-bottom: clamp(12px, 2vw, 24px);
    color: var(--franz-gold);
    font-family: var(--franz-font-heading);
    font-size: clamp(4rem, 11vw, 9rem);
    line-height: 0.72;
}

.franz-card--quote blockquote,
.franz-editorial-quote blockquote {
    max-width: 920px;
    margin: 0;
    font-family: var(--franz-font-heading);
    font-size: clamp(2.25rem, 6vw, 5.5rem);
    line-height: var(--franz-line-height-tight);
    letter-spacing: var(--franz-letter-spacing-heading);
    text-wrap: balance;
}

.franz-card--quote cite,
.franz-editorial-quote cite {
    display: block;
    margin-top: clamp(24px, 4vw, 48px);
    color: var(--franz-text-light);
    font-size: var(--franz-text-sm);
    font-style: normal;
    font-weight: 700;
    letter-spacing: var(--franz-letter-spacing-label);
    text-transform: uppercase;
}

.franz-card--interactive {
    transition:
        transform var(--motion-duration, 200ms) var(--motion-ease, ease),
        box-shadow var(--motion-duration, 200ms) var(--motion-ease, ease),
        border-color var(--motion-duration, 200ms) var(--motion-ease, ease),
        opacity var(--motion-duration, 200ms) var(--motion-ease, ease);
}

.franz-card--interactive:hover {
    transform: translateY(calc(var(--motion-lift, 4px) * -1));
}

.franz-card--interactive:focus-within {
    outline: 3px solid var(--franz-green);
    outline-offset: 4px;
    box-shadow: 0 0 0 7px var(--franz-white);
}

.franz-section-title {
    margin: 0 0 var(--space-md);
    color: var(--franz-text);
    font-size: var(--franz-heading-md);
    line-height: var(--franz-line-height-tight);
}

.franz-section-text {
    color: var(--franz-text-light);
    font-size: var(--franz-text-lg);
    line-height: var(--franz-line-height-body);
}

.franz-link-arrow::after {
    content: " \2192";
}

.site-header .site-logo img,
.site-header .header-image,
.site-branding-container .site-logo img {
    width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
}

.franz-breadcrumbs {
    margin-bottom: 32px;
    font-size: var(--franz-text-sm);
}

.franz-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.franz-breadcrumbs-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.franz-breadcrumbs-item:not(:last-child)::after {
    content: "/";
    opacity: 0.4;
}

.franz-breadcrumbs a {
    color: inherit;
    text-decoration: none;
    opacity: 0.72;
}

.franz-breadcrumbs a:hover,
.franz-breadcrumbs a:focus-visible {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* BX-010 opt-in reveal.
   Markup is visible by default. Concealment is allowed only after the
   dependency-free controller confirms observer and motion support. */

@media (prefers-reduced-motion: no-preference) {
    html.franz-motion-ready [data-franz-reveal] {
        opacity: var(--franz-motion-opacity-reveal);
        transform: translateY(var(--franz-motion-distance-reveal));
        transition:
            opacity var(--franz-motion-duration-reveal) var(--franz-motion-ease-enter),
            transform var(--franz-motion-duration-reveal) var(--franz-motion-ease-enter);
    }

    html.franz-motion-ready [data-franz-reveal].is-revealed,
    html.franz-motion-ready [data-franz-reveal]:focus-within {
        opacity: 1;
        transform: none;
    }

    html.franz-motion-ready [data-franz-reveal]:focus-within {
        transition-duration: var(--franz-motion-duration-instant);
    }
}

@media (prefers-reduced-motion: reduce) {
    .franz-card--interactive {
        transition: none;
    }

    .franz-card--interactive:hover {
        transform: none;
    }

    [data-franz-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 640px) {
    .franz-card--editorial,
    .franz-card--feature,
    .franz-card--quote,
    .franz-editorial-quote {
        border-radius: var(--radius-md);
    }
}
