/* Web Respawn accessibility panel, adapted to Dearly Told's identity. */

.dt-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: "Public Sans", Arial, sans-serif;
  color: #0b2230;
}

.dt-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 #c8b99f;
  border-radius: 12px;
  background: #fffdf8;
  color: #0b2230;
  box-shadow: 0 16px 42px #0b223018, 0 0 22px #ad89521c;
  font: 800 12px/1 "Public Sans", Arial, sans-serif;
  cursor: pointer;
}

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

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

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

.dt-a11y-trigger svg {
  width: 38px;
  height: 38px;
  padding: 7px;
  border-radius: 12px;
  background: #0b2230;
  fill: none;
  stroke: #fffdf8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dt-a11y-trigger:hover,
.dt-a11y-trigger:focus-visible {
  border-color: #ad8952;
  background: #f5f0e6;
}

.dt-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: "Public Sans", Arial, sans-serif;
  color: #0b2230;
  isolation: isolate;
}

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

.dt-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 #c8b99f;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 28px 90px #0b223026, 0 0 0 1px #ad895218;
  color: #0b2230;
  outline: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

.dt-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: #fffdf8;
}

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

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

.dt-a11y-step button {
  width: 44px;
  min-height: 44px;
  border: 1px solid #d3c9b8;
  border-radius: 9px;
  background: #fffdf8;
  color: #0b2230;
  font: 850 18px "Public Sans", Arial, sans-serif;
  cursor: pointer;
}

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

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

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

.dt-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: #fffdf8;
  color: #0b2230;
  text-align: left;
  cursor: pointer;
}

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

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

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

.dt-a11y-option strong {
  color: #0b2230;
  font: 800 12px/1.3 "Public Sans", Arial, sans-serif;
}

.dt-a11y-option small {
  margin-top: 4px;
  color: #52616a;
  font: 500 10px/1.35 "Public Sans", Arial, sans-serif;
}

.dt-a11y-option:hover,
.dt-a11y-option:focus-visible {
  border-color: #0b2230;
  background: #f5f0e6;
}

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

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

.dt-a11y-option[aria-checked="true"] {
  border-color: #0b2230;
  background: #f5f0e6;
}

.dt-a11y-option[aria-checked="true"] > i {
  background: #0b2230;
}

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

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

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

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

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

.dt-a11y-color-modes button[aria-pressed="true"] {
  border-color: #0b2230;
  background: #f5f0e6;
  color: #0b2230;
}

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

.dt-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: #fffdf8;
}

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

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

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

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

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

