﻿    @font-face {
        font-family: IstokWeb;
        font-style: normal;
        font-weight: 400;
        src: url('/static/assets/IstokWeb-Regular.ttf') format('truetype');
    }

    @font-face {
        font-family: IstokWeb;
        font-style: normal;
        font-weight: 700;
        src: url('/static/assets/IstokWeb-Bold.ttf') format('truetype');
    }

    html {
        scrollbar-color: #40B6A5 transparent;
        scrollbar-width: thin;
    }

    /* html, */
    body {
        width: 100%;
        /* Use min-height instead of fixed height to avoid mobile browser UI (address bar) issues. */
        min-height: 100vh;
        min-height: 100dvh;

        /* Allow narrow viewports (mobile) to fit without forcing horizontal scrolling.
           Header navigation adapts via burger menu logic in MainVc. */
        overflow-x: hidden;

        font-family: IstokWeb, Arial;
        font-weight: 400;
    }

    body,
    html {
        margin: 0px;
        padding: 0px;
    }

    .main {
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .container_mainContent {
        flex: 1;
        margin: 0px 8px 4px 8px;
    }

    textarea,
    input {
        padding: 4px;
    }

    .icon::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

    * {
        scrollbar-color: #40B6A5 transparent;
        scrollbar-width: thin;
    }

    *::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    *::-webkit-scrollbar-track {
        display: none;
    }

    *::-webkit-scrollbar-thumb {
        background: #40B6A5;
        border-radius: 4px;
    }

    /* Mobile devices - auto-hide scrollbars */
    @media (hover: none) or (pointer: coarse) {
        *::-webkit-scrollbar {
            width: 0;
            height: 0;
        }
    }

    h1,
    h2,
    h3,
    h4,
    h5 {
        margin-block-start: 0.67em;
        margin-block-end: 0.33em;
    }

    h1 {
        font-weight: 700;
    }

    p {
        margin-block-start: 0.5em;
        margin-block-end: 0.67em;
    }

    input,
    textarea {
        text-decoration: none;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
        padding: 4px 10px;
        gap: 10px;
        background: #FFFFFF;
        border: 1px solid #40B6A5;
        border-radius: 16px;
        /* font-style: normal;
        font-weight: 700; */
        font-size: 15px;
        /* height: 32px; */
        color: #000;
    }

    .container_inputDialog textarea {
        width: 320px;
        height: 260px;
    }

    input[readonly] {
        background-color: #eee;
    }

    a {
        /* text-decoration: none; */
        /* font-weight: bold; */
        color: #1b4b44;
    }

    a:hover {
        color: #40B6A5;
    }

    a:visited {
        color: #1b4b44;
    }

    button {
        text-decoration: none;
        box-sizing: border-box;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 12px 19px;
        gap: 10px;
        background: #FFFFFF;
        border: 3px solid #40B6A5;
        border-radius: 30px;
        font-style: normal;
        font-weight: 700;
        font-size: 15px;
        line-height: 12px;
        text-align: center;
        color: #000;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease, color 0.2s ease;
    }

    /* Menu links: white by default; current page is green (see active styles below). */
    .panel_style_menu a,
    .container_headerMenu a {
        text-decoration: none;
        box-sizing: border-box;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 12px 19px;
        gap: 10px;
        background: #fff;
        border: 3px solid #40B6A5;
        border-radius: 30px;
        font-style: normal;
        font-weight: 700;
        font-size: 15px;
        line-height: 12px;
        text-align: center;
        color: #000;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease, color 0.2s ease;
    }

    /* Button states inspired by TabbedVc tabs (subtle lift on hover, pressed on active). */
    button:not(.player_play):not(.player_pause):not(.player_forward):not(.player_backward):hover {
        background: #E3F1EE;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
    }

    /* Menu link hover (subtle mint + lift). */
    .panel_style_menu a:hover,
    .container_headerMenu a:hover {
        background: #E3F1EE;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
    }

    /* Current page (menu link active state): green background + white text. */
    .panel_style_menu a[aria-current="page"],
    .container_headerMenu a[aria-current="page"],
    .panel_style_menu a.menuLink_active,
    .container_headerMenu a.menuLink_active {
        background: #40B6A5;
        border-color: #40B6A5;
        color: #fff;
        transform: none;
        box-shadow: none;
    }

    .panel_style_menu a[aria-current="page"]:hover,
    .container_headerMenu a[aria-current="page"]:hover,
    .panel_style_menu a.menuLink_active:hover,
    .container_headerMenu a.menuLink_active:hover {
        background: #40B6A5;
        border-color: #40B6A5;
        color: #fff;
        transform: none;
        box-shadow: none;
    }

    button:not(.player_play):not(.player_pause):not(.player_forward):not(.player_backward):active {
        background: #c5e5de;
        transform: translateY(0px) scale(0.98);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
    }

    .panel_style_menu a:active,
    .container_headerMenu a:active {
        background: #279C8C;
        border-color: #279C8C;
        color: #fff;
        transform: translateY(0px) scale(0.98);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
    }

    button:not(.player_play):not(.player_pause):not(.player_forward):not(.player_backward):focus-visible {
        outline: none;
        border-color: #F6A318;
        box-shadow:
            0 0 0 3px rgba(246, 163, 24, 0.35),
            0 6px 14px rgba(0, 0, 0, 0.10);
    }

    /* Focus for menu links: subtle inset ring (not clipped by header overflow). */
    .panel_style_menu a:focus-visible,
    .container_headerMenu a:focus-visible {
        outline: none;
        box-shadow: inset 0 0 0 2px rgba(27, 75, 68, 0.35);
    }

    /* Keep "button-like" links from getting the default visited link color. */
    .panel_style_menu a:visited,
    .container_headerMenu a:visited {
        color: #000;
    }

    /* But keep active/current page green even when the link is visited. */
    .panel_style_menu a[aria-current="page"]:visited,
    .container_headerMenu a[aria-current="page"]:visited,
    .panel_style_menu a.menuLink_active:visited,
    .container_headerMenu a.menuLink_active:visited {
        color: #fff;
    }

    button[disabled],
    button:disabled,
    .panel_style_menu a[aria-disabled="true"],
    .container_headerMenu a[aria-disabled="true"] {
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    @media (prefers-reduced-motion: reduce) {
        button,
        .panel_style_menu a,
        .container_headerMenu a {
            transition: none;
        }

        button:not(.player_play):not(.player_pause):not(.player_forward):not(.player_backward):hover,
        .panel_style_menu a:hover,
        .container_headerMenu a:hover {
            transform: none;
        }
    }

    *[disabled] {
        opacity: 0.7;
    }

    .panel_style_menu a {
        display: block;
        margin: 8px;
    }

    .screen {}

    .dimmer {
        position: absolute;
        background: rgba(0, 0, 0, 0.3);
        z-index: 900;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 16px 8px;
        box-sizing: border-box;
    }

    .popup {
        position: absolute;
        background-color: white;
        z-index: 1000;
        padding: 8px;
    }

    .busyPopup {
        z-index: 2000;
        padding: 8px;
        background-color: white;
    }

    .container_header {
        margin: 8px;
        display: grid;
        /* symmetric side columns => center column is centered to the page, not “between logo and right controls” */
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        column-gap: 8px;
        box-sizing: border-box;
        position: relative;
    }

    .container_motto {
        margin: 2px 8px 0px 8px;
        font-size: .95em;
    }

    .logo {
        /* grid layout: keep logo in the left column (ignore old flex ordering) */
        order: 0;
        grid-column: 1;
        justify-self: start;
    }

    .logo,
    .userIcon,
    .menuIcon {
        height: 40px;
        cursor: pointer;
    }

    .menuIcons {
        /* grid layout: keep controls in the right column */
        order: 0;
        grid-column: 3;
        justify-self: end;

        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;

        /* Right-side cluster (burger/user/admin) */
        flex: 0 0 auto;
        min-width: 0;
    }

    .menuIcons>* {
        display: inline;
    }

    /* Desktop header menu (inline navigation) - centered in the header */
    .container_headerMenu {
        /* grid layout: force menu into the middle column */
        grid-column: 2;
        justify-self: center;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        max-width: 100%;
        overflow: hidden;
        min-width: 0;
    }

    /* ContentVc typically wraps HT content in a div/span. Keep it one row and centered too. */
    .container_headerMenu > * {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-wrap: nowrap;
        overflow: hidden;
        min-width: 0;
        max-width: 100%;
    }

    .container_headerMenu a {
        display: inline-flex;
        margin: 0;
        padding: 10px 16px;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    /* Burger icon is controlled by JS (shown only when header menu overflows). */
    .menuIcon {
        display: none;
    }

    .footer>div {
        color: #999 !important;
        font-size: .875em;
        border-top: 2px solid #bbb;
        margin: 0.2em 4px 0 4px;
        padding: .5em 0 .5em 0;


        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2em;
        /* width: 100%; */
    }

    .footer>div>* {
        margin: 0em 1em;
    }

    .footer a {
        color: #999;
        text-decoration: none !important;
        vertical-align: middle;
        /* line-height: 1.5em; */
        /* margin-bottom: 0.4em; */
    }

    .footer>div>div {
        display: flex;
        flex-wrap: nowrap;
        /* Prevents stacking */
        gap: 2em;
        /* Optional spacing between images */
    }

    .footer img {
        top: .7em;
        height: 1.5em;
    }

    .panel {
        padding: 4px;
        position: relative;
        /* overflow: hidden; */
    }

    .panel_header {
        margin: 4px;
        /* font-size: 1.1em; */
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .panel_header_title {
        font-size: 1.4rem;
        font-weight: bold;
        text-align: center;
        color: #F6A318;
    }

    .panel_close {
        order: 1;
        cursor: pointer;
    }

    .panel_close::before {
        margin-right: -8px;
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.5rem;
        width: 1.8rem;
        height: 1.8rem;
        color: #F6A318;
        content: "\f00d";
        display: inline-block;
    }

    .panel_menu {
        position: absolute;
        right: 4px;
        top: 16px;
        width: 30px;
        height: 30px;
        cursor: pointer;
    }

    .panel_menu::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.7rem;
        color: #40B6A5;
        content: "\f142";
        vertical-align: -5px;
    }


    .panel_content>* {
        margin: 4px;
    }

    /* TODO-3 This needs a proper fix.

       Page (route) wrapper in [`MainVc`](client/src/visual/Main/MainVc.ts:13):
       Many pages are rendered as a `Panel` with style `invisible` directly under `.container_mainContent`.

       This wrapper must not add its own padding/margins, and its *direct children* must not receive the
       default `.panel_content > * { margin: 4px; }` spacing.

       Otherwise, full-width blocks (e.g. Home `.homeContainer { width: 100%; }`) become effectively
       `100% + horizontal margins` and appear clipped/misaligned on mobile.
    */
    .container_mainContent > .panel_style_invisible {
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
    }

    .container_mainContent > .panel_style_invisible > .panel_header {
        display: none;
    }

    .container_mainContent > .panel_style_invisible > .panel_content {
        margin: 0;
        padding: 0;
    }

    .container_mainContent > .panel_style_invisible > .panel_content > * {
        margin: 0;
    }

    /* If a page is a real panel directly under `.container_mainContent`, align it to the header edges too. */
    .container_mainContent > .panel_style_default {
        margin: 0;
    }

    /* If a page renders a real panel (default style) under the invisible wrapper (Home does this),
       align it to the header/main content edges as well. */
    .container_mainContent > .panel_style_invisible .panel_style_default {
        margin: 0;
    }

    .panel textarea {
        /* width: 100%; */
    }

    /* for ht */

    .pg,
    .panel_style_pg {
        margin: 12px;
        margin-left: auto;
        margin-right: auto;
        max-width: 800px;
        padding: 12px;
        box-sizing: border-box;
        background: #fff;
        border: 2px solid #40B6A5;
        border-radius: 0px 26px 0px 0px;
    }

    .panel_style_pg .panel_header_title {
        color: #40B6A5;
    }

    .pg-green {
        margin: 4px auto 12px auto;
        width: 100%;
        max-width: 800px;
        padding: 16px;
        box-sizing: border-box;
        background: #f6fffa;
        border: 2px solid #40B6A5;
        border-radius: 0px 0px 26px 0px;
    }

    .pg-green > h1 {
        margin-top: 0;
        margin-block-start: 0;
    }

    /* SSR landing page (no-JS): keep the header/book layout close to the SPA's Home view. */
    .ssrLanding .ssrBookTitle,
    .ssrLanding .ssrAuthor {
        text-align: center;
    }

    .ssrLanding .ssrAuthor {
        margin-bottom: 12px;
    }

    .nojsNotice {
        margin-top: 16px;
        padding-top: 12px;
        border-top: 1px solid rgba(64, 182, 165, 0.6);
        color: #1b4b44;
    }

    .pnl {
        margin-top: 4px;
        margin-bottom: 4px;
        padding: 12px;
        box-sizing: border-box;
        background: #E3F1EE;
        border: 2px solid #40B6A5;
        border-radius: 0px 26px 0px 0px;
    }

    .panel_style_default {
        margin: 4px;
        box-sizing: border-box;
        background: #E3F1EE;
        border: 2px solid #40B6A5;
        border-radius: 0px 26px 0px 0px;
    }

    .panel_style_popup {
        z-index: 1000;
        max-width: 850px;
        max-height: 100%;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        box-sizing: border-box;
        align-items: center;
        gap: 22px;
        background: #FCFAF8;
        border: 3px solid #F6A318;
        border-radius: 0px 0px 30px 0px;
        touch-action: pan-y;
    }

    .panel_style_popup ::-webkit-scrollbar-thumb {
        background: #F6A318;
    }

    .panel_style_menu {
        z-index: 1000;

        box-sizing: border-box;
        align-items: center;
        gap: 22px;
        background: #FCFAF8;
        border: 3px solid #F6A318;
        border-radius: 0px 0px 30px 0px;
    }

    .panel_style_menu ::-webkit-scrollbar-thumb {
        background: #F6A318;
    }

    .panel_style_menu .panel_content>* {
        display: block;
        margin: 12px;
    }

    .player {
        display: flex;
        /* min-height: 50vh; */
        justify-content: center;
        /* align-items: center; */
    }

    .player_progress_container {
        height: 32px;
        cursor: pointer;
    }

    .player_progress_loaded {
        background-color: #FFA500;
        height: 2px;
        margin-top: 14px;
        border-radius: 50%;
    }

    .player_progress_played {
        background-color: #FFA500;
        height: 6px;
        margin-top: 12px;
        border-radius: 3px;
    }

    .player_progress_notLoaded {
        height: 32px;
    }

    .player_progress_position {
        background-color: #40B6A5;
        height: 18px;
        width: 18px;
        border-radius: 50%;
        translate: -8px 6px;
    }

    .player_play {
        border: none;
        background: none;
        display: inline-block;
        cursor: pointer;
    }

    .player_play::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.5rem;
        width: 1.8rem;
        height: 1.8rem;
        color: #40B6A5;
        content: "\f04b";
        display: inline-block;
    }

    .player_pause {
        border: none;
        background: none;
        display: inline-block;
        cursor: pointer;
    }

    .player_pause::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.5rem;
        width: 1.8rem;
        height: 1.8rem;
        color: #40B6A5;
        content: "\f04c";
        display: inline-block;
    }

    .player_forward {
        border: none;
        background: none;
        display: inline-block;
        cursor: pointer;
    }

    .player_forward::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.1rem;
        color: #40B6A5;
        content: "\f04e";
        display: inline-block;
        vertical-align: 2px;
        margin-left: 30px;
    }

    .player_backward {
        border: none;
        background: none;
        display: inline-block;
        cursor: pointer;
    }

    .player_backward::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.1rem;
        color: #40B6A5;
        content: "\f04a";
        display: inline-block;
        vertical-align: 2px;
        margin-right: 34px;
    }

    /* Player icon buttons should stay lightweight (no capsule hover/active effects). */
    button.player_play,
    button.player_pause,
    button.player_forward,
    button.player_backward {
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    button.player_play:focus-visible,
    button.player_pause:focus-visible,
    button.player_forward:focus-visible,
    button.player_backward:focus-visible {
        outline: 2px solid rgba(246, 163, 24, 0.75);
        outline-offset: 2px;
    }

    .container_imageAndVolume {
        display: flex;
        padding-left: 7px;
        position: relative;
    }

    .container_imageContainer {
        flex-grow: 1;
    }

    .container_blank {
        background-color: #fff;
    }

    .container_light {
        background-color: #fff;
        border: 1px solid #40B6A5;
    }

    .container_column {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .container_inline>* {
        display: inline-block;
    }

    .player_volume {
        position: absolute;
        left: -28px;
        top: 0px;
        color: #FFA500;
        width: 60px;
        height: 270px;
        padding: 16px 0px;
        box-sizing: border-box;
        cursor: pointer;
    }

    .player_volume svg {
        width: 30%;
        height: 100%;
    }

    .player_volume_position {
        background-color: #40B6A5;
        height: 18px;
        width: 18px;
        border-radius: 50%;
        translate: 21px;
    }

    .playlist_currentTrack {
        display: inline-block;
        font-style: normal;
        font-weight: 600;
        font-size: 1.0rem;
        color: #40B6A5;
        text-decoration: none;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
        padding: 12px 19px;
        gap: 10px;
        border: 3px solid #40B6A5;
        border-radius: 30px;
        font-style: normal;
        line-height: 0px;
        text-align: center;
        user-select: none;
        cursor: pointer;
    }

    .playlist_currentTrack::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.0rem;
        color: #40B6A5;
        content: "\f03a";
        position: relative;
        left: -0.5rem;
    }

    .playlist_previousTrack {
        display: inline-block;
        position: relative;
        left: -0.5rem;
        cursor: pointer;
    }

    .playlist_previousTrack::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.7rem;
        color: #40B6A5;
        content: "\f048";
        vertical-align: -5px;
    }

    .playlist_nextTrack {
        display: inline-block;
        position: relative;
        cursor: pointer;
    }

    .playlist_nextTrack::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.7rem;
        color: #40B6A5;
        content: "\f051";
        vertical-align: -5px;
    }

    .giftButton_boughtMode {
        font-weight: 600;
        font-size: 0.9rem;
        color: #40B6A5;
        cursor: pointer;
        padding: 4px;
    }



    #bookDetail {
        text-align: center;
    }

    #bookDetail h2 {
        font-size: 1.4rem;
    }

    #bookDetail h3 {
        font-size: 1rem;
    }

    .homeContainer {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        /* max-width: 1040px; */
        /* 2 * 520px */
        width: 100%;
        box-sizing: border-box;
    }

    /* Home page note:
       Home uses a top-level invisible page wrapper, which now strips margins from its direct children.
       No extra Home-only margin hacks needed here.
    */

    .homeContainer>div {
        flex: 1 1 700px;
        max-width: 700px;
        min-width: 0;
        box-sizing: border-box;
    }

    .container_bookInfo {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        /* align-items: center; */
    }

    .container_bookInfo>* {
        text-align: justify;
        flex: 1 1 300px;
        max-width: 300px;
        margin: 14px;
        font-size: 11pt;
    }

    .container_bookInfo>.container_left {
        flex: 1 1 300px;
        max-width: 300px;
        text-align: center;
    }

    .container_buyButtons>button {
        margin: 8px;
    }

    .container_buyForm {
        margin-left: 1rem;
    }

    .formField {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
        align-items: center;
        margin: 8px 0px 8px 0px;
    }

    .formLabel {
        flex: 1 1 auto;
        width: 240px;
        /* margin-left: 1rem; */
    }

    .formInput {
        flex: 2 1 auto;
    }

    .formInput * {
        width: 200px;
    }

    .formInput textarea {
        height: 50px;

    }

    .formError {
        width: 200px;
        margin-left: 2em;
        flex: 3 1 auto;
    }

    .formError,
    .error {
        color: #A00;
        font-size: 0.9em;
        font-weight: bold;
    }

    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Hide default checkbox */
    input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #40B6A5;
        border-radius: 4px;
        background-color: white;
        cursor: pointer;
        display: inline-block;
        position: relative;
        padding: 4px 4px;
    }

    /* Checked state */
    input[type="checkbox"]:checked {
        background-color: #40B6A5;
        border-color: #40B6A5;
    }

    /* Checkmark */
    input[type="checkbox"]::before {
        content: "\f00c";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 13px;
        color: white;
        display: none;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    input[type="checkbox"]:checked::before {
        display: block;
    }

    input[type="number"] {
        appearance: textfield;
        /* Firefox */
    }

    input:focus,
    textarea:focus {
        border: 2px solid #FFA500;
        outline: none;
    }

    label {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .qrCodeContainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 20px;
        font-size: 0.8em;
        text-decoration: none;
    }

    /* No-JS fallback content (rendered inside <noscript>). */
    .altBody {
        color: #000;
        background-color: #fff;
        opacity: 1;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: auto;
        box-sizing: border-box;
    }

    .altContent {
        padding: 2rem;
        max-width: 920px;
        margin: 0 auto;
    }

    /* Tabbed VC styles - folder-style tabs */
    .tabbed_vc {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .tabbed_vc_tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        margin-bottom: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding-left: 4px;
    }

    .tabbed_vc_tab {
        flex-shrink: 0;
        box-sizing: border-box;
        padding: 10px 20px 12px 20px;
        background: #E3F1EE;
        border: 2px solid #40B6A5;
        border-bottom: none;
        border-radius: 12px 12px 0 0;
        font-weight: 700;
        font-size: 15px;
        line-height: 1.2;
        text-align: center;
        color: #000;
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
        position: relative;
        margin-top: 4px;
        transition: all 0.2s ease;
    }

    .tabbed_vc_tab:hover {
        background: #c5e5de;
        margin-top: 2px;
        padding-bottom: 14px;
    }

    .tabbed_vc_tab_active {
        background: #fff;
        color: #40B6A5;
        margin-top: 0;
        padding-bottom: 14px;
        z-index: 1;
    }

    .tabbed_vc_tab_active:hover {
        background: #fff;
    }

    .tabbed_vc_content {
        flex: 1;
        min-height: 0;
        background: #fff;
        border: 2px solid #40B6A5;
        border-radius: 0 26px 0 0;
        padding: 12px;
        box-sizing: border-box;
        position: relative;
        margin-top: -2px;
    }

    .tabbed_vc_content>.panel {
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
    }

    .tabbed_vc_content>.panel>.panel_content {
        margin: 0;
    }

    /* Mobile responsiveness for tabs */
    @media (max-width: 600px) {
        .tabbed_vc_tab {
            padding: 8px 16px 10px 16px;
            font-size: 14px;
            min-width: 44px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tabbed_vc_tab:hover {
            padding-bottom: 12px;
        }

        .tabbed_vc_tab_active {
            padding-bottom: 12px;
        }
    }
