/* Web Respawn accessibility panel, adapted to Your Life, Filmed's identity. */

.ylf-a11y {
  position: fixed;
  z-index: 1100;
  right: auto;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  left: max(24px, calc(env(safe-area-inset-left) + 16px));
  font-family: "DM Sans", Arial, sans-serif;
  color: #131210;
}

.ylf-a11y-trigger {
  width: 56px;
  height: 56px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #d6c8b0;
  border-radius: 12px;
  background: #fbf8f1;
  color: #131210;
  box-shadow: 0 16px 42px #13121018, 0 0 22px #a480451c;
  font: 800 12px/1 "DM Sans", Arial, sans-serif;
  cursor: pointer;
}

.ylf-a11y-trigger > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.ylf-a11y-trigger > span strong,
.ylf-a11y-trigger > span small {
  display: block;
}

.ylf-a11y-trigger > span small {
  color: #755628;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .03em;
}

.ylf-a11y-trigger svg {
  width: 38px;
  height: 38px;
  padding: 7px;
  border-radius: 12px;
  background: #131210;
  fill: none;
  stroke: #fbf8f1;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ylf-a11y-trigger:hover,
.ylf-a11y-trigger:focus-visible {
  border-color: #a48045;
  background: #f3ebdd;
}

.ylf-a11y-modal-layer {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  font-family: "DM Sans", Arial, sans-serif;
  color: #131210;
  isolation: isolate;
}

.ylf-a11y-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgb(235 231 221 / 85%);
  backdrop-filter: blur(3px);
}

.ylf-a11y-panel {
  width: min(430px, calc(100vw - 32px));
  max-height: min(780px, calc(100dvh - 32px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #d6c8b0;
  border-radius: 12px;
  background: #fbf8f1;
  box-shadow: 0 28px 90px #13121026, 0 0 0 1px #a4804518;
  color: #131210;
  outline: none;
}

.ylf-a11y-panel > header {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 18px;
  border-bottom: 1px solid #ded6c7;
  background: #fbf8f1;
}

.ylf-a11y-panel > header > div {
  min-width: 0;
}

.ylf-a11y-panel > header small {
  display: block;
  margin-bottom: 5px;
  color: #755628;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.ylf-a11y-panel h2 {
  margin: 0;
  color: #131210;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.ylf-a11y-panel > header > button {
  width: 44px;
  height: 44px;
  flex: none;
  margin-left: auto;
  border: 1px solid #d6c8b0;
  border-radius: 11px;
  background: #fbf8f1;
  color: #131210;
  font: 300 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.ylf-a11y-panel :is(button, a):focus-visible {
  outline: 3px solid #a48045;
  outline-offset: 3px;
}

.ylf-a11y-panel-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  scrollbar-color: #b8a887 #f3ebdd;
  scrollbar-gutter: stable;
}

.ylf-a11y-intro {
  margin: 0 2px 15px;
  color: #474139;
  font-size: 12px;
  line-height: 1.55;
}

.ylf-a11y-group {
  padding: 14px;
  border: 1px solid #ded6c7;
  border-radius: 16px;
  background: #fbf8f1;
}

.ylf-a11y-group + .ylf-a11y-group {
  margin-top: 12px;
}

.ylf-a11y-group h3 {
  margin: 0 0 11px;
  color: #755628;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ylf-a11y-steps {
  display: grid;
  gap: 8px;
}

.ylf-a11y-step {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(170px, 1.3fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ded6c7;
  border-radius: 12px;
  background: #fbf8f1;
}

.ylf-a11y-step > span {
  color: #131210;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.ylf-a11y-step > div {
  display: grid;
  grid-template-columns: 44px minmax(70px, 1fr) 44px;
  align-items: center;
  gap: 5px;
}

.ylf-a11y-step button {
  width: 44px;
  min-height: 44px;
  border: 1px solid #d3c9b8;
  border-radius: 9px;
  background: #fbf8f1;
  color: #131210;
  font: 850 18px "DM Sans", Arial, sans-serif;
  cursor: pointer;
}

.ylf-a11y-step button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.ylf-a11y-step output {
  text-align: center;
  color: #131210;
  font-size: 11px;
  font-weight: 850;
}

.ylf-a11y-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.ylf-a11y-option {
  min-height: 86px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #3d4a60;
  border-radius: 12px;
  background: #fbf8f1;
  color: #131210;
  text-align: left;
  cursor: pointer;
}

.ylf-a11y-option:only-child {
  grid-column: 1 / -1;
  min-height: 72px;
}

.ylf-a11y-option > span {
  min-width: 0;
}

.ylf-a11y-option strong,
.ylf-a11y-option small {
  display: block;
}

.ylf-a11y-option strong {
  color: #131210;
  font: 800 12px/1.3 "DM Sans", Arial, sans-serif;
}

.ylf-a11y-option small {
  margin-top: 4px;
  color: #585249;
  font: 500 10px/1.35 "DM Sans", Arial, sans-serif;
}

.ylf-a11y-option:hover,
.ylf-a11y-option:focus-visible {
  border-color: #131210;
  background: #f3ebdd;
}

.ylf-a11y-option > i {
  width: 40px;
  height: 23px;
  flex: none;
  display: block;
  padding: 3px;
  border-radius: 999px;
  background: #9b9c98;
  transition: background-color .15s;
}

.ylf-a11y-option > i > b {
  width: 17px;
  height: 17px;
  display: block;
  border-radius: 50%;
  background: #131210;
  transition: transform .15s;
}

.ylf-a11y-option[aria-checked="true"] {
  border-color: #131210;
  background: #f3ebdd;
}

.ylf-a11y-option[aria-checked="true"] > i {
  background: #131210;
}

.ylf-a11y-option[aria-checked="true"] > i > b {
  transform: translateX(17px);
}

.ylf-a11y-color-modes {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ylf-a11y-color-modes legend {
  margin-bottom: 8px;
  color: #131210;
  font-size: 12px;
  font-weight: 800;
}

.ylf-a11y-color-modes > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ylf-a11y-color-modes button {
  min-height: 44px;
  padding: 7px;
  border: 1px solid #d3c9b8;
  border-radius: 10px;
  background: #fbf8f1;
  color: #131210;
  font: 750 10px/1.2 "DM Sans", Arial, sans-serif;
  cursor: pointer;
}

.ylf-a11y-color-modes button[aria-pressed="true"] {
  border-color: #131210;
  background: #f3ebdd;
  color: #131210;
}

.ylf-a11y-note {
  margin: 14px 2px 0;
  color: #585249;
  font-size: 11px;
  line-height: 1.5;
}

.ylf-a11y-panel > footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 13px 16px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid #ded6c7;
  background: #fbf8f1;
}

.ylf-a11y-panel > footer button,
.ylf-a11y-panel > footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6c8b0;
  border-radius: 10px;
  background: #f3ebdd;
  color: #131210;
  font: 750 11px "DM Sans", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.ylf-a11y-panel > footer strong {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: #755628;
  font-size: 9px;
  letter-spacing: .11em;
  text-align: center;
  text-transform: uppercase;
}

/* Keep widget typography independent from each editorial page theme. */
body .ylf-a11y-panel { font: 400 16px/1.65 "DM Sans", Arial, sans-serif; }
body .ylf-a11y-panel h2 { margin: 0; color: #131210; font: 500 21px/1.15 "DM Sans", Arial, sans-serif; letter-spacing: -.025em; text-align: left; }
body .ylf-a11y-panel h3 { margin: 0 0 11px; color: #131210; font: 700 12px/1.4 "DM Sans", Arial, sans-serif; letter-spacing: .08em; text-align: left; }
.ylf-a11y-panel button { text-transform: none; letter-spacing: normal; }
.ylf-a11y-panel > header small { color: #755628; }
.ylf-a11y-option > i > b { background: #fbf8f1; }
.ylf-a11y-option[aria-checked="true"] > i { background: #131210; }
.ylf-a11y-panel > header > button { padding: 0; }
.ylf-a11y-modal-layer[hidden] { display: none !important; }
.ylf-a11y-panel-scroll { -webkit-overflow-scrolling: touch; }
.ylf-a11y-trigger:focus-visible { outline: 3px solid #a48045; outline-offset: 4px; }

html[data-ylf-accessibility-modal-open] { overscroll-behavior: none; scroll-behavior: auto !important; }
html[data-ylf-line-height="1"] body > :where(header,main,footer) :where(p,li,dd,dt,label,legend,figcaption) { line-height: 1.85 !important; }
html[data-ylf-line-height="2"] body > :where(header,main,footer) :where(p,li,dd,dt,label,legend,figcaption) { line-height: 2.1 !important; }
html[data-ylf-letter-spacing="1"] body > :where(header,main,footer) :where(p,li,dd,dt,label,legend,figcaption,a,button,input,textarea,select,h1,h2,h3,h4,h5,h6) { letter-spacing: .035em !important; }
html[data-ylf-letter-spacing="2"] body > :where(header,main,footer) :where(p,li,dd,dt,label,legend,figcaption,a,button,input,textarea,select,h1,h2,h3,h4,h5,h6) { letter-spacing: .07em !important; }
html[data-ylf-readable-font] body > :where(header,main,footer),
html[data-ylf-readable-font] body > :where(header,main,footer) * { font-family: Arial, "Helvetica Neue", sans-serif !important; }
html { --ylf-site-contrast: 1; --ylf-site-saturation: 1; --ylf-site-grayscale: 0; }
html[data-ylf-high-contrast] { --ylf-site-contrast: 1.35; }
html[data-ylf-color-mode="low"] { --ylf-site-saturation: .42; }
html[data-ylf-color-mode="monochrome"] { --ylf-site-saturation: 0; --ylf-site-grayscale: 1; }
html[data-ylf-high-contrast] body > :where(header,main,footer),
html[data-ylf-color-mode="low"] body > :where(header,main,footer),
html[data-ylf-color-mode="monochrome"] body > :where(header,main,footer) {
  filter: contrast(var(--ylf-site-contrast)) saturate(var(--ylf-site-saturation)) grayscale(var(--ylf-site-grayscale));
}
html[data-ylf-highlight-links] body > :where(header,main,footer) a[href]:not(.brand):not(.button) {
  text-decoration: underline !important; text-decoration-thickness: 3px !important; text-underline-offset: 4px !important;
}
html[data-ylf-highlight-headings] body > :where(header,main,footer) :where(h1,h2,h3,h4,h5,h6) { outline: 3px solid #a48045 !important; outline-offset: 4px !important; }
html[data-ylf-focus-emphasis] :focus-visible { outline: 4px solid #a48045 !important; outline-offset: 5px !important; box-shadow: 0 0 0 3px #fbf8f1 !important; }
html[data-ylf-reduce-motion] { scroll-behavior: auto !important; }
html[data-ylf-reduce-motion] *, html[data-ylf-reduce-motion] *::before, html[data-ylf-reduce-motion] *::after {
  scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
}
html[data-ylf-reduce-motion] [data-motion-piece] { transform: none !important; }
html[data-ylf-reduce-motion] [data-reveal] { opacity: 1 !important; transform: none !important; }
html[data-ylf-hide-images] body > :where(header,main,footer) :is(img,picture,video,canvas,[role="img"]) { visibility: hidden !important; }
html[data-ylf-hide-images] body > :where(header,main,footer) *,
html[data-ylf-hide-images] body > :where(header,main,footer) *::before,
html[data-ylf-hide-images] body > :where(header,main,footer) *::after { background-image: none !important; }

@media (max-width:620px) {
  .ylf-a11y { left: max(12px,calc(env(safe-area-inset-left) + 8px)); bottom: max(13px,calc(env(safe-area-inset-bottom) + 9px)); }
  .ylf-a11y-trigger { width: 50px; height: 50px; min-height: 50px; padding: 7px; }
  .ylf-a11y-trigger svg { width: 34px; height: 34px; }
  .ylf-a11y-modal-layer { align-items: stretch; padding: max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom)); }
  .ylf-a11y-panel { width: 100%; max-height: calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom))); margin: auto 0; }
  .ylf-a11y-step { grid-template-columns: minmax(95px,1fr) minmax(160px,1.3fr); }
}
@media (max-width:370px) {
  .ylf-a11y-options { grid-template-columns: 1fr; }
  .ylf-a11y-option:only-child { grid-column: auto; }
  .ylf-a11y-step { grid-template-columns: 1fr; }
}
@media (forced-colors:active) {
  .ylf-a11y-trigger, .ylf-a11y-panel, .ylf-a11y-option, .ylf-a11y-step, .ylf-a11y-color-modes button { border: 1px solid ButtonText; }
  .ylf-a11y-trigger svg { stroke: ButtonText; }
  .ylf-a11y-backdrop { background: Canvas; opacity: .8; }
}
@media print { .ylf-a11y, .ylf-a11y-modal-layer { display: none !important; } }


/* Branded launcher, with the same Web Respawn preference controls. */
.ylf-a11y-trigger { width:auto; height:54px; display:flex; gap:10px; padding:7px 17px 7px 7px; border-radius:999px; background:#ead5af; border-color:#c6a36b; }
.ylf-a11y-trigger > span { position:static; width:auto; height:auto; overflow:visible; clip-path:none; text-align:left; }
.ylf-a11y-trigger > span strong { font-size:12px; line-height:1.4; }
.ylf-a11y-trigger > span small { margin-top:2px; font-size:9px; color:#624821; }
.ylf-a11y-trigger svg { border-radius:50%; }
html[data-ylf-reduce-motion] [data-ylf-reveal] { opacity:1 !important; transform:none !important; }
@media (max-width:620px) { .ylf-a11y-trigger {height:48px;min-height:48px;padding:6px 13px 6px 6px;gap:7px;} .ylf-a11y-trigger > span strong {font-size:11px;} .ylf-a11y-trigger > span small {font-size:8px;} }
