/* Accessibility menu (floating button, bottom right) and the page adjustments it switches on.
   Every adjustment is a class on <html>, so it works on the main site, listing pages and the Brookton page. */

/* ---------- skip link ---------- */
.skip-link{position:absolute;left:12px;top:-60px;z-index:1000;background:#1B1A1A;color:#fff;padding:12px 16px;font:700 15px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;transition:top .15s}
.skip-link:focus{top:12px;outline:3px solid #EB5400}

/* ---------- widget ---------- */
#a11y{position:fixed;right:calc(18px + env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:900;
  font:400 15px/1.4 "Montserrat","Segoe UI",Helvetica,Arial,sans-serif;color:#1B1A1A}
#a11y *{box-sizing:border-box}
#a11y .a11y-fab{all:unset;cursor:pointer;width:52px;height:52px;border-radius:50%;background:#1B1A1A;color:#fff;display:grid;place-items:center;
  box-shadow:0 6px 20px rgba(0,0,0,.3);border:2px solid #fff}
#a11y .a11y-fab:hover{background:#000}
#a11y .a11y-fab:focus-visible{outline:3px solid #EB5400;outline-offset:3px}
#a11y .a11y-fab svg{width:30px;height:30px}
#a11y .a11y-panel{position:absolute;right:0;bottom:64px;width:min(380px,calc(100vw - 36px));max-height:min(78vh,720px);overflow:auto;background:#fff;
  border:1px solid rgba(0,0,0,.12);box-shadow:0 18px 50px rgba(0,0,0,.28);border-radius:6px}
#a11y .a11y-panel[hidden]{display:none}
#a11y .a11y-head{position:sticky;top:0;background:#1B1A1A;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;z-index:1}
#a11y .a11y-head h2{margin:0;font:800 18px/1.1 "Outfit",Arial,sans-serif;text-transform:uppercase;letter-spacing:.02em}
#a11y .a11y-head small{display:block;font:600 11px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#CFC6C1;margin-top:3px}
#a11y button{font:inherit;color:inherit}
#a11y .a11y-x{all:unset;cursor:pointer;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;font-size:22px;line-height:1}
#a11y .a11y-x:hover{background:rgba(255,255,255,.12)}
#a11y .a11y-x:focus-visible{outline:3px solid #EB5400}
#a11y .a11y-body{padding:14px 16px 16px;display:grid;gap:14px}
#a11y .a11y-sec{font:700 12px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#5E5754;margin:2px 0 -4px}
#a11y .a11y-profiles{display:grid;gap:8px}
#a11y .a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#a11y .a11y-tile{all:unset;box-sizing:border-box;cursor:pointer;display:grid;gap:4px;align-content:start;padding:11px 12px;background:#F6F3F1;border:2px solid transparent;border-radius:4px;min-height:64px}
#a11y .a11y-tile:hover{background:#EFE9E5}
#a11y .a11y-tile:focus-visible{outline:3px solid #EB5400;outline-offset:2px}
#a11y .a11y-tile b{font:700 14px/1.2 "Montserrat",Arial,sans-serif}
#a11y .a11y-tile span{font-size:12.5px;color:#5E5754}
#a11y .a11y-tile[aria-pressed="true"],#a11y .a11y-tile.is-set{border-color:#EB5400;background:#FFF1E8}
#a11y .a11y-tile[aria-pressed="true"] span,#a11y .a11y-tile.is-set span{color:#C24500;font-weight:600}
#a11y .a11y-foot{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;border-top:1px solid #E4DED9;padding-top:12px}
#a11y .a11y-reset{all:unset;cursor:pointer;padding:10px 14px;background:#1B1A1A;color:#fff;font:700 13px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase}
#a11y .a11y-reset:focus-visible{outline:3px solid #EB5400;outline-offset:2px}
#a11y .a11y-foot a{color:#C24500;font-weight:600;font-size:13.5px}
#a11y .a11y-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:420px){#a11y .a11y-grid{grid-template-columns:1fr}}

/* ---------- adjustments (classes on <html>) ---------- */
/* text size: zoom scales the whole page proportionally, keeping the layout intact */
html.a11y-text-1 :is(body > header, body > main, body > footer, body > section){zoom:1.12}
html.a11y-text-2 :is(body > header, body > main, body > footer, body > section){zoom:1.25}
html.a11y-text-3 :is(body > header, body > main, body > footer, body > section){zoom:1.4}
html.a11y-lh-1 :is(p,li,blockquote,td,th,dd,label,figcaption){line-height:1.9!important}
html.a11y-lh-2 :is(p,li,blockquote,td,th,dd,label,figcaption){line-height:2.3!important}
html.a11y-ls-1 :is(body > header, body > main, body > footer) *{letter-spacing:.08em!important;word-spacing:.16em!important}
html.a11y-ls-2 :is(body > header, body > main, body > footer) *{letter-spacing:.14em!important;word-spacing:.3em!important}
html.a11y-align-left :is(main,footer) :is(p,li,h1,h2,h3,blockquote,td,th){text-align:left!important}
html.a11y-align-center :is(main,footer) :is(p,li,h1,h2,h3,blockquote,td,th){text-align:center!important}
/* contrast / saturation are combined into one filter by a11y.js */
html.a11y-filter :is(body > header, body > main, body > footer, body > section){filter:var(--a11y-filter)}
html.a11y-dark :is(body > header, body > main, body > footer, body > section) :is(img,video,iframe,.hood-hero,.yt,[style*="background-image"]){filter:invert(1) hue-rotate(180deg)}
html.a11y-font :is(body > header, body > main, body > footer) *:not(svg):not(svg *){font-family:"Atkinson Hyperlegible",Verdana,Tahoma,sans-serif!important}
html.a11y-noimg :is(main,footer,header) :is(img,video,picture){opacity:0!important}
html.a11y-noimg :is(.hood-hero,.search-hero,[style*="background-image"]){background-image:none!important}
html.a11y-noimg .search-hero::before{background:#1B1A1A!important}
html.a11y-links :is(main,footer,header) a{text-decoration:underline!important;text-underline-offset:3px;outline:2px solid #EB5400;outline-offset:2px;background-color:#FFF8C5!important;color:#1B1A1A!important}
html.a11y-heads :is(main) :is(h1,h2,h3,h4){outline:3px dashed #EB5400;outline-offset:6px}
html.a11y-cursor, html.a11y-cursor *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 27-13 1 8 15-6 3-8-15-11 9z' fill='%231B1A1A' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3,auto!important}
html.a11y-kbd *:focus{outline:4px solid #1B1A1A!important;outline-offset:3px!important;box-shadow:0 0 0 8px #FFD400!important}
html.a11y-pause *,html.a11y-pause *::before,html.a11y-pause *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.a11y-speak :is(main,footer) :is(p,h1,h2,h3,li,td,th,blockquote,figcaption,label):hover{background:#FFF8C5;cursor:pointer}

/* reading guide and mask */
#a11y-guide{position:fixed;left:0;right:0;height:12px;margin-top:-6px;background:rgba(235,84,0,.25);border-top:2px solid #EB5400;border-bottom:2px solid #EB5400;pointer-events:none;z-index:899}
#a11y-mask-top,#a11y-mask-bot{position:fixed;left:0;right:0;background:rgba(0,0,0,.55);pointer-events:none;z-index:899}
#a11y-mask-top{top:0}
#a11y-mask-bot{bottom:0}
html.a11y-links :is(main,footer,header) a *{color:#1B1A1A!important;background-color:transparent!important}
html.a11y-links :is(main,footer,header) a :is(img,svg){opacity:1}
