/* Current additions also work with earlier ibindo Block themes. */
/* Existing language links stay intact; JS enables submenu toggles. */
.mobile-nav .ibindo-menu .sub-menu[hidden] { display: none; }
.mobile-nav .ibindo-menu .ibindo-has-submenu { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; column-gap: 12px; }
.mobile-nav .ibindo-has-submenu > a { grid-column: 1; grid-row: 1; }
.mobile-nav .ibindo-has-submenu > .sub-menu { grid-column: 1 / -1; grid-row: 2; }
.ibindo-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; background: var(--wash, #f4f8fb); border: 1px solid var(--line, #dce3eb); border-radius: 8px; color: var(--blue, #05396b); }
.ibindo-submenu-toggle::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.ibindo-submenu-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
.mobile-nav .ibindo-menu { gap: 4px; }
.mobile-nav .ibindo-menu a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; line-height: 1.4; overflow-wrap: anywhere; }
.mobile-nav .ibindo-menu .sub-menu { margin: 4px 0 8px; gap: 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--line, #dce3eb); }
.mobile-nav .trp-menu-ls-label { display: inline-flex; align-items: center; gap: 8px; }
.mobile-nav .ibindo-menu a img { display: inline-block; flex-shrink: 0; width: 20px; height: 16px; object-fit: contain; }
.mobile-nav > .ibindo-mobile-login, .mobile-nav > a[href*="//app.ibindo.at"] { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid var(--blue, #05396b); border-radius: 8px; background: var(--blue, #05396b); color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.mobile-nav .ibindo-mobile-login .ibindo-icon { width: 20px; height: 20px; }
.mobile-nav > .ibindo-mobile-login:hover { background: var(--blue-dark, #042e56); }

/* Keep the mobile navigation opaque across the entire visible viewport. */
html.ibindo-menu-open { overflow: hidden; scroll-behavior: auto; }
body.ibindo-menu-open { position: fixed; top: var(--ibindo-menu-scroll-offset, 0px); left: 0; right: 0; width: 100%; overflow: hidden; }
@media (max-width: 1280px) {
    body.ibindo-menu-open .site-header { position: fixed; top: var(--ibindo-menu-header-top, 0px); left: 0; right: 0; z-index: 99998; background: #fff; }
    body.ibindo-menu-open .mobile-nav:not([hidden]) {
        position: fixed;
        top: calc(var(--ibindo-menu-header-top, 0px) + var(--ibindo-menu-header-height, 80px));
        left: 0; right: 0;
        height: calc(var(--ibindo-menu-viewport-height, 100vh) - var(--ibindo-menu-admin-height, 0px) - var(--ibindo-menu-header-height, 80px));
        height: calc(var(--ibindo-menu-viewport-height, 100dvh) - var(--ibindo-menu-admin-height, 0px) - var(--ibindo-menu-header-height, 80px));
        max-height: none; min-height: 0;
        display: flex; flex-direction: column; align-items: stretch; gap: 20px;
        padding: 20px max(24px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
        background: #fff; border-bottom: 0; box-shadow: none;
        overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    }
    body.ibindo-menu-open .mobile-nav > * { flex-shrink: 0; }
    body.ibindo-menu-open .menu-toggle { position: relative; color: var(--blue, #05396b); }
    body.ibindo-menu-open .menu-toggle > .ibindo-icon,
    body.ibindo-menu-open .menu-toggle > svg { display: none; }
    body.ibindo-menu-open .menu-toggle::before,
    body.ibindo-menu-open .menu-toggle::after { content: ''; position: absolute; width: 20px; height: 2px; background: currentColor; transform: rotate(45deg); }
    body.ibindo-menu-open .menu-toggle::after { transform: rotate(-45deg); }
}

.release3-toc { margin-top: 36px; }
.release3-toc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; padding: 0; list-style: none; }
.release3-toc a { color: var(--blue, #05396b); text-decoration: underline; text-underline-offset: 3px; }
.release3-toc li { margin: 0; }

/* All usage levels belong to the same tariff. */
.usage-tariff { max-width: 930px; margin-inline: auto; padding: 36px; border: 1px solid var(--line, #dce3eb); border-radius: 16px; background: #fff; }
.usage-tariff h3 { margin-bottom: 12px; font-size: 1.5rem; }
.usage-tariff-intro { max-width: 700px; margin-bottom: 26px; }
.usage-rates { width: 100%; border-collapse: collapse; table-layout: fixed; }
.usage-rates caption { text-align: left; font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.usage-rates th, .usage-rates td { padding: 18px 16px; border-bottom: 1px solid var(--line, #dce3eb); text-align: left; vertical-align: middle; line-height: 1.5; }
.usage-rates thead th { font-size: .8125rem; font-weight: 500; color: var(--muted); background: var(--wash, #f4f8fb); }
.usage-rates tbody th { font-size: .9375rem; font-weight: 500; }
.usage-rates th:first-child { width: 56%; }
.usage-rates td { font-size: 1.6rem; font-weight: 600; color: var(--blue, #05396b); }
.usage-tariff .feature-list { margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.usage-tariff-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.usage-tariff-footer p { margin: 0; font-size: .875rem; }
.usage-tariff-footer .button { flex-shrink: 0; }
/* Edited legacy blocks should no longer suggest a preferred price level. */
.pricing-grid .price-card.featured { border: 1px solid var(--line, #dce3eb); }
.pricing-grid .price-badge { display: none; }
.pricing-grid .price-card .button { background: #fff; color: var(--ink); border-color: var(--line, #dce3eb); }
.pricing-grid .price-card .button:hover { background: var(--wash, #f4f8fb); }

@media (max-width: 720px) {
    .hero h1 { font-size: clamp(2rem, 9vw, 4.4rem); }
    .hero h1, .section h2 { overflow-wrap: anywhere; }
    .audience-grid { grid-template-columns: minmax(0, 1fr); }
    .audience-card, .audience-top h3 { min-width: 0; }
    .audience-top h3 { overflow-wrap: anywhere; }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-col, .footer-links, .site-footer .ibindo-widget { min-width: 0; }
    .footer-links a { overflow-wrap: anywhere; }
    .hero .hero-scene { display: flex; flex-direction: column; gap: 16px; min-height: 0; padding: 0; max-width: 550px; }
    .hero .hero-scene > * { min-width: 0; max-width: 100%; }
    .hero .hero-photo { order: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
    .hero .hero-scene .guest-card { order: 1; position: static; width: 100%; margin: 0; padding: 22px; }
    .hero .guest-card-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero .guest-card-field { min-width: 0; }
    .hero .complete { line-height: 1.5; }
    .hero .hero-scene .paper-free { order: 2; display: flex; position: static; width: 100%; max-width: none; margin: 0; padding: 14px 18px; z-index: auto; }
    .hero .paper-free > .icon-box { display: flex; }
    .release3-toc ul { grid-template-columns: 1fr; }
    .usage-tariff { padding: 24px 20px; }
    .usage-tariff h3 { font-size: 1.25rem; }
    .usage-rates th, .usage-rates td { padding: 16px 10px; }
    .usage-rates tbody th { font-size: .875rem; }
    .usage-rates td { font-size: 1.4rem; }
    .usage-tariff .feature-list { grid-template-columns: 1fr; gap: 12px; }
    .usage-tariff-footer { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
    .usage-tariff-footer .button { width: 100%; }
}
