/* =========================================================================
   ACCESSIBILITY CSS  –  Shoval Haifa
   Font increase / decrease support for the "Ally" (pojo-accessibility)
   plugin, legacy toolbar mode.

   HOW THE PLUGIN WORKS
   --------------------
   app.min.js keeps a counter that starts at 120 (= normal size) and moves in
   steps of 10 between 120 and 200. Every time the value is above 120 it puts
   a class on the <body>:

        pojo-a11y-resize-font-130 ... pojo-a11y-resize-font-200

   "A+" adds 10, "A-" removes 10, and at 120 no class is left on the body,
   which is how the decrease button returns the site to its normal size.
   There is no class below 130, so decreasing never goes under 100%.

   WHY THIS FILE IS NEEDED
   -----------------------
   The plugin stylesheet applies "font-size: 130%..200% !important" to a fixed
   list of tags (p, li, span, label, input, select, h1-h6 ...). On this theme
   that causes three problems:

     1. Percentages are relative to the PARENT, so a span inside a li inside
        a p is multiplied three times (200% x 200% x 200% = 8x).
     2. Tags the plugin does not list - a, button, td, th, .btn, .nav-link -
        never grow, so the menu, the search buttons and the price table stay
        small while the rest of the page explodes.
     3. Every p/li/span is forced to the same size, so the theme's typographic
        hierarchy (18px body text vs 44px headings) is flattened.

   WHAT THIS FILE DOES
   -------------------
   Each body class is translated into one variable, --a11y-font-scale, and the
   theme's real font sizes are re-declared multiplied by that variable. Every
   element therefore keeps its designed proportion and grows exactly once, and
   px line-heights are re-declared as ratios so they grow with the text.

   Rules are prefixed with "html body[class*=...]" so they always outrank the
   plugin's own !important declarations, whatever order the stylesheets load.

   THE TOOLBAR
   -----------
   Section 0 pins the size of the menu item labels, and section 7 scales the
   panel itself. The plugin ships a fixed 180px box parked at left:-180px with
   the round toggle sitting at left:180px, so if only the text grew the labels
   would wrap onto two and three lines inside an unchanged popup. The width and
   both offsets therefore follow the same factor as the text.

   Structure:
     0. Toolbar menu item labels
     1. Scale steps
     2. Neutralise the plugin's compounding rules
     3. Base + headings
     4. Theme font sizes x scale  (mirrors assets/css/style.css)
     5. Responsive font sizes x scale  (mirrors assets/css/responsive.css)
     6. Layout protection at large sizes
     7. Toolbar panel width x scale
   ========================================================================= */


/* =========================================================================
   0. TOOLBAR MENU ITEM LABELS
   The plugin sizes the item links at 80% (12.8px), but the theme's global
   "span" rule in style.css (".fils-for-downlaod a, span { font-size: 16px }")
   reaches inside the widget and pushes every label back up to 16px, so the
   menu reads as large as the body text around it. The label span is pinned to
   13px so the list sits clearly below the 18px "כלי נגישות" title.

   Only .pojo-a11y-toolbar-text is touched. The icon span keeps its 16px,
   because the icons are <svg width="1em"> and would shrink with it.

   Both rules carry an ID, so they outrank the generic span declarations in
   sections 2 and 4 whatever order the file is read in.
   ========================================================================= */

#pojo-a11y-toolbar .pojo-a11y-toolbar-overlay ul.pojo-a11y-toolbar-items li.pojo-a11y-toolbar-item a .pojo-a11y-toolbar-text {
    font-size: 13px !important;
    line-height: 1.3 !important;
}
/* the labels still grow with A+, one step below everything else */
html body[class*="pojo-a11y-resize-font-"] #pojo-a11y-toolbar .pojo-a11y-toolbar-overlay ul.pojo-a11y-toolbar-items li.pojo-a11y-toolbar-item a .pojo-a11y-toolbar-text {
    font-size: calc(13px * var(--a11y-font-scale)) !important;
    line-height: 1.3 !important;
}


/* =========================================================================
   1. SCALE STEPS
   The plugin's first class is already 130, so taking its number literally
   made a single click jump the whole site by 30%. The classes are remapped
   onto a 10% ramp instead: the first click is a gentle 1.1 and the eight
   steps run up to 1.8. Every value stays above 1, so no step of the toolbar
   can ever render text smaller than the theme's own size.
   ========================================================================= */

   :root {
    --a11y-font-scale: 1;
}

body.pojo-a11y-resize-font-130 { --a11y-font-scale: 1.1; }
body.pojo-a11y-resize-font-140 { --a11y-font-scale: 1.2; }
body.pojo-a11y-resize-font-150 { --a11y-font-scale: 1.3; }
body.pojo-a11y-resize-font-160 { --a11y-font-scale: 1.4; }
body.pojo-a11y-resize-font-170 { --a11y-font-scale: 1.5; }
body.pojo-a11y-resize-font-180 { --a11y-font-scale: 1.6; }
body.pojo-a11y-resize-font-190 { --a11y-font-scale: 1.7; }
body.pojo-a11y-resize-font-200 { --a11y-font-scale: 1.8; }


/* =========================================================================
   2. NEUTRALISE THE PLUGIN'S COMPOUNDING RULES
   Everything the plugin over-writes goes back to inheriting, so a size is
   applied once per element instead of once per nesting level. Section 4 then
   gives each element the theme size it is supposed to have.
   ========================================================================= */

html body[class*="pojo-a11y-resize-font-"] :is(p, li, label, input, select,
textarea, legend, code, pre, dd, dt, span, blockquote) {
    font-size: inherit !important;
}

body.pojo-a11y-high-contrast {
    background: #000 !important;
}

/* =========================================================================
   3. BASE SIZE AND HEADINGS
   ========================================================================= */

html body[class*="pojo-a11y-resize-font-"] {
    font-size: calc(16px * var(--a11y-font-scale)) !important;
    overflow-wrap: break-word;
}

html body[class*="pojo-a11y-resize-font-"] h1 { font-size: calc(40px * var(--a11y-font-scale)) !important; }
html body[class*="pojo-a11y-resize-font-"] h3 { font-size: calc(28px * var(--a11y-font-scale)) !important; }
html body[class*="pojo-a11y-resize-font-"] h4 { font-size: calc(24px * var(--a11y-font-scale)) !important; }
html body[class*="pojo-a11y-resize-font-"] h5 { font-size: calc(20px * var(--a11y-font-scale)) !important; }
html body[class*="pojo-a11y-resize-font-"] h6 { font-size: calc(16px * var(--a11y-font-scale)) !important; }

/* relative sizes already follow the parent, they only need protection from
   the plugin's !important declarations */
html body[class*="pojo-a11y-resize-font-"] small,
html body[class*="pojo-a11y-resize-font-"] sub,
html body[class*="pojo-a11y-resize-font-"] sup {
    font-size: 0.875em !important;
}

/* bootstrap components the plugin never touches, so they would stay small */
html body[class*="pojo-a11y-resize-font-"] :is(.btn, .accordion-button,
.nav-link, .form-control, .form-select, .dropdown-item) {
    font-size: calc(16px * var(--a11y-font-scale)) !important;
}


/* =========================================================================
   4. THEME FONT SIZES x SCALE
   Mirrors assets/css/style.css, same selectors and same order, so the
   cascade between these rules stays identical to the original design.
   ========================================================================= */

/* --- header search bar --- */
html body[class*="pojo-a11y-resize-font-"] .price-form label {
    font-size: calc(16px * var(--a11y-font-scale)) !important;
    line-height: 1.125 !important;
}
html body[class*="pojo-a11y-resize-font-"] .price-form select {
    font-size: calc(14px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] :is(.ads-serch-btn-top,
.ads-serch-btn, .ads-serch-btn-comp4, .ads-serch-btn-topcomp4,
.ads-serch-btn-comp1) {
    font-size: calc(18px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .ads-clear-filter {
    font-size: calc(32px * var(--a11y-font-scale)) !important;
}

/* --- global typography --- */
html body[class*="pojo-a11y-resize-font-"] h2 {
    font-size: calc(44px * var(--a11y-font-scale)) !important;
    /* line-height: 1.14 !important; */
}
html body[class*="pojo-a11y-resize-font-"] .sub-heading {
    font-size: calc(22px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] p {
    font-size: calc(18px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] span {
    font-size: calc(16px * var(--a11y-font-scale)) !important;
}

/* --- developer section --- */
html body[class*="pojo-a11y-resize-font-"] .developer-title {
    font-size: calc(42px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .developer-subtitle {
    font-size: calc(28px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .developer-description p {
    font-size: calc(18px * var(--a11y-font-scale)) !important;
    line-height: 1.83 !important;
}
html body[class*="pojo-a11y-resize-font-"] .gallery-tag {
    font-size: calc(14px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .developer-gallery-disclaimer {
    font-size: calc(14px * var(--a11y-font-scale)) !important;
}

/* --- project info section --- */
html body[class*="pojo-a11y-resize-font-"] .project-content h2 {
    font-size: calc(42.95px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .project-description p {
    font-size: calc(18px * var(--a11y-font-scale)) !important;
    line-height: 1.72 !important;
}

/* --- project gallery section --- */
html body[class*="pojo-a11y-resize-font-"] .gallery-content h2 {
    font-size: calc(28px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .gallery-description p {
    font-size: calc(24px * var(--a11y-font-scale)) !important;
    line-height: 1.3 !important;
}

/* --- map and chart --- */
html body[class*="pojo-a11y-resize-font-"] .map-chart-wrap h2 {
    font-size: calc(44px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .map-chart-wrap a {
    font-size: calc(25px * var(--a11y-font-scale)) !important;
}

/* --- thumbnail gallery --- */
html body[class*="pojo-a11y-resize-font-"] .thumbnail-gallery-content h3 {
    font-size: calc(47px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .thumbnail-gallery-content h2 {
    font-size: calc(54px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .thumbnail-gallery-content p {
    font-size: calc(16px * var(--a11y-font-scale)) !important;
    line-height: 1.375 !important;
}
html body[class*="pojo-a11y-resize-font-"] .notice-gallery-thimbnail {
    font-size: calc(16px * var(--a11y-font-scale)) !important;
}

/* --- FAQ accordion --- */
html body[class*="pojo-a11y-resize-font-"] .faqs .accordion-header .accordion-button {
    font-size: calc(22px * var(--a11y-font-scale)) !important;
    line-height: 1.2 !important;
}
html body[class*="pojo-a11y-resize-font-"] .faqs .accordion-button span {
    font-size: calc(20px * var(--a11y-font-scale)) !important;
    line-height: 1.2 !important;
}
html body[class*="pojo-a11y-resize-font-"] .faqs .accordion-button p {
    font-size: calc(20px * var(--a11y-font-scale)) !important;
    line-height: 1.2 !important;
}
html body[class*="pojo-a11y-resize-font-"] .faqs .accordion-item {
    font-size: calc(18px * var(--a11y-font-scale)) !important;
    line-height: 1.2 !important;
}
html body[class*="pojo-a11y-resize-font-"] .faqs .accordion-body p {
    font-size: calc(18px * var(--a11y-font-scale)) !important;
    line-height: 1.2 !important;
}
html body[class*="pojo-a11y-resize-font-"] .faqs-bottom p {
    font-size: calc(16px * var(--a11y-font-scale)) !important;
    line-height: 1.2 !important;
}

/* --- payment / mortgage --- */
html body[class*="pojo-a11y-resize-font-"] .payemtn-lower li span,
html body[class*="pojo-a11y-resize-font-"] .payemtn-lower li {
    font-size: calc(18px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .mortga-list-style p,
html body[class*="pojo-a11y-resize-font-"] .mortgage-notice p {
    font-size: calc(16px * var(--a11y-font-scale)) !important;
}

/* --- price list --- */
html body[class*="pojo-a11y-resize-font-"] .price-list h2 {
    font-size: calc(72px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .price-list p {
    font-size: calc(25px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .price-list input[type='text'] {
    font-size: calc(14px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .price-list ::placeholder {
    font-size: calc(14px * var(--a11y-font-scale)) !important;
}

/* --- apartments table --- */
html body[class*="pojo-a11y-resize-font-"] .table-head-title :is(p, span) {
    font-size: calc(16px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .nav-tabs .nav-link {
    font-size: calc(19px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] table,
html body[class*="pojo-a11y-resize-font-"] table thead > tr > th,
html body[class*="pojo-a11y-resize-font-"] table td {
    font-size: calc(16px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .sale-property-strip p {
    font-size: calc(19px * var(--a11y-font-scale)) !important;
}

/* --- downloads, footer, menu --- */
html body[class*="pojo-a11y-resize-font-"] .fils-for-downlaod a {
    font-size: calc(16px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .footer-social a {
    font-size: calc(17px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .footer-social h2 {
    font-size: calc(24px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .main-menu li a {
    font-size: calc(16.52px * var(--a11y-font-scale)) !important;
}
html body[class*="pojo-a11y-resize-font-"] .floor-dropdown-menu li a {
    font-size: calc(18px * var(--a11y-font-scale)) !important;
    line-height: 1.3 !important;
}


/* =========================================================================
   5. RESPONSIVE FONT SIZES x SCALE
   Mirrors assets/css/responsive.css. Without these blocks the desktop rules
   above (which carry !important) would also apply on phones and break the
   mobile typography while the toolbar is in use.
   ========================================================================= */

/* tablet: the gallery column and the project heading are already reduced
   here, so the desktop sizes above would over-inflate them */
@media (min-width: 768px) and (max-width: 1200px) {

    html body[class*="pojo-a11y-resize-font-"] .project-content h2 {
        font-size: calc(34px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .gallery-content h2 {
        font-size: calc(24px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .gallery-description p {
        font-size: calc(16px * var(--a11y-font-scale)) !important;
    }
}

@media (max-width: 767px) {

    html body[class*="pojo-a11y-resize-font-"] p {
        font-size: calc(16px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] h2 {
        font-size: calc(32px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .sub-heading {
        font-size: calc(20px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .table-head-title :is(p, span) {
        font-size: calc(16px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .thumbnail-gallery-content h2 {
        font-size: calc(50px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .thumbnail-gallery-content h3 {
        font-size: calc(40px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .thumbnail-gallery-content p {
        font-size: calc(15px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .faqs .accordion-button p {
        font-size: calc(16px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .fils-for-downlaod span {
        font-size: calc(14px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .developer-title {
        font-size: calc(32px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .developer-subtitle {
        font-size: calc(22px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .developer-description,
    html body[class*="pojo-a11y-resize-font-"] .project-description {
        font-size: calc(16px * var(--a11y-font-scale)) !important;
        line-height: 1.75 !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .project-content h2 {
        font-size: calc(32px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .gallery-content h2 {
        font-size: calc(24px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .map-chart-wrap h2 {
        font-size: calc(42px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .developer-description p,
    html body[class*="pojo-a11y-resize-font-"] .project-description p,
    html body[class*="pojo-a11y-resize-font-"] .gallery-description p,
    html body[class*="pojo-a11y-resize-font-"] .faqs .accordion-body p {
        font-size: calc(16px * var(--a11y-font-scale)) !important;
        line-height: 1.6 !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .spread-payment p {
        font-size: calc(16px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .map-chart-wrap a {
        font-size: calc(20px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .price-list h2 {
        font-size: calc(50px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .price-list p {
        font-size: calc(20px * var(--a11y-font-scale)) !important;
    }
}

@media (max-width: 400px) {

    html body[class*="pojo-a11y-resize-font-"] .faqs .accordion-button p {
        font-size: calc(16px * var(--a11y-font-scale)) !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 365px) {

    html body[class*="pojo-a11y-resize-font-"] .price-form label {
        font-size: calc(14px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .thumbnail-gallery-content h2 {
        font-size: calc(46px * var(--a11y-font-scale)) !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .faqs .accordion-button p {
        font-size: calc(16px * var(--a11y-font-scale)) !important;
    }
}


/* =========================================================================
   6. LAYOUT PROTECTION AT LARGE SIZES
   Only active while a resize class is on the body. Fixed heights, fixed
   widths and clipping containers are released so enlarged text stays
   readable instead of being cut off.
   ========================================================================= */

/* The two filter bars line their selects and their search button up on one
   shared height (--filter-control-h in style.css). The selects grow with the
   text because their padding sits around a scaled font, while the button only
   ever had the fixed 43px to go on, so it ended up shorter than the fields it
   sits next to. Scaling the variable keeps the whole row on one height. */
html body[class*="pojo-a11y-resize-font-"] {
    --filter-control-h: calc(43px * var(--a11y-font-scale));
}

/* boxes that clip or lock their height around text.
   keep overflow hidden on .project-block - it is what clips the image to the
   rounded corner; releasing min-height alone is enough to stop text clipping */
html body[class*="pojo-a11y-resize-font-"] .project-block,
html body[class*="pojo-a11y-resize-font-"] .project-block-wrap {
    min-height: auto !important;
}
html body[class*="pojo-a11y-resize-font-"] .project-block .project-image {
    min-height: auto !important;
}
html body[class*="pojo-a11y-resize-font-"] .thumbnail-gallery-content {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 40px !important;
    background-size: 100% 100% !important;
}
html body[class*="pojo-a11y-resize-font-"] .thumb {
    min-height: auto !important;
}
html body[class*="pojo-a11y-resize-font-"] .faqs .accordion-header .accordion-button {
    max-height: none !important;
    height: auto !important;
    /* background-size: cover !important; */
}
html body[class*="pojo-a11y-resize-font-"] .fils-for-downlaod span,
html body[class*="pojo-a11y-resize-font-"] .fils-for-downlaod li {
    overflow: visible !important;
}

/* rows of controls that must be allowed to wrap */
html body[class*="pojo-a11y-resize-font-"] .top-filter-wrap,
html body[class*="pojo-a11y-resize-font-"] .searchbox,
html body[class*="pojo-a11y-resize-font-"] .main-menu-ul,
html body[class*="pojo-a11y-resize-font-"] .table-setting-ads,
html body[class*="pojo-a11y-resize-font-"] .footer-social ul {
    flex-wrap: wrap !important;
}
html body[class*="pojo-a11y-resize-font-"] .floor-dropdown-menu li a {
    white-space: normal !important;
}
html body[class*="pojo-a11y-resize-font-"] .floor-dropdown-menu {
    min-width: 0 !important;
    max-width: 90vw !important;
}

/* form controls with a fixed pixel width */
html body[class*="pojo-a11y-resize-font-"] .price-form select {
    width: auto !important;
    min-width: 139px !important;
    max-width: 100% !important;
}
html body[class*="pojo-a11y-resize-font-"] .price-list input[type='text'] {
    width: auto !important;
    min-width: 180px !important;
    max-width: 100% !important;
}
html body[class*="pojo-a11y-resize-font-"] .table-head-title {
    width: auto !important;
    min-width: calc(100% / 4 - 4px) !important;
}

/* the apartments table gets wider than its container, let it scroll */
html body[class*="pojo-a11y-resize-font-"] .main-table,
html body[class*="pojo-a11y-resize-font-"] #myTabContent,
html body[class*="pojo-a11y-resize-font-"] #myTabContent2 {
    overflow-x: auto !important;
}

/* keep the layout of the phone version intact */
@media (max-width: 767px) {

    html body[class*="pojo-a11y-resize-font-"] .price-form select,
    html body[class*="pojo-a11y-resize-font-"] .price-list input[type='text'] {
        width: 48% !important;
        min-width: 0 !important;
    }
    html body[class*="pojo-a11y-resize-font-"] .table-head-title {
        width: calc(100% / 3 - 3px) !important;
        min-width: 0 !important;
    }
}


/* =========================================================================
   7. TOOLBAR PANEL WIDTH x SCALE
   The plugin lays the widget out as a fixed 180px box:

       #pojo-a11y-toolbar            width: 180px;  left: -180px
       .pojo-a11y-toolbar-open       left: 0
       .pojo-a11y-toolbar-toggle     left: 180px    (flush to the panel edge)

   The text inside grows with the setting, so at 160% and above the longer
   labels ("ניגודיות גבוהה", "קו תחתון בקישורים") wrap onto two lines in a box
   that never changed size. Scaling the width by the same factor keeps every
   label on one line, and the two offsets have to follow it or the panel stops
   hiding off screen and the toggle overlaps the list.

   Capped at 90vw so the panel cannot cover a whole phone screen: at 200% the
   width would be 360px, which is wider than most phones are.

   The round toggle keeps its own size - it carries no text, and it is the
   control used to get back out of the setting.
   ========================================================================= */

html body[class*="pojo-a11y-resize-font-"] {
    --a11y-toolbar-width: min(calc(180px * var(--a11y-font-scale)), 90vw);
}

html body[class*="pojo-a11y-resize-font-"] #pojo-a11y-toolbar,
html body[class*="pojo-a11y-resize-font-"] #pojo-a11y-toolbar .pojo-a11y-toolbar-overlay {
    width: var(--a11y-toolbar-width) !important;
}

/* --- left hand position (the setting this site uses) --- */
html body[class*="pojo-a11y-resize-font-"] #pojo-a11y-toolbar.pojo-a11y-toolbar-left {
    left: calc(-1 * var(--a11y-toolbar-width)) !important;
}
html body[class*="pojo-a11y-resize-font-"] #pojo-a11y-toolbar.pojo-a11y-toolbar-left.pojo-a11y-toolbar-open {
    left: 0 !important;
}
html body[class*="pojo-a11y-resize-font-"] #pojo-a11y-toolbar.pojo-a11y-toolbar-left .pojo-a11y-toolbar-toggle {
    left: var(--a11y-toolbar-width) !important;
}

/* --- right hand position, in case the plugin setting is changed --- */
html body[class*="pojo-a11y-resize-font-"] #pojo-a11y-toolbar.pojo-a11y-toolbar-right {
    right: calc(-1 * var(--a11y-toolbar-width)) !important;
}
html body[class*="pojo-a11y-resize-font-"] #pojo-a11y-toolbar.pojo-a11y-toolbar-right.pojo-a11y-toolbar-open {
    right: 0 !important;
}
html body[class*="pojo-a11y-resize-font-"] #pojo-a11y-toolbar.pojo-a11y-toolbar-right .pojo-a11y-toolbar-toggle {
    right: var(--a11y-toolbar-width) !important;
}