/*
 * Default Trix editor styles. See Action Text overwrites below.
*/

trix-editor {
  border: 1px solid #bbb;
  border-radius: 3px;
  margin: 0;
  padding: 0.4em 0.6em;
  min-height: 5em;
  outline: none; }

trix-toolbar * {
  box-sizing: border-box; }

trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto; }

trix-toolbar .trix-button-group {
  display: flex;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-top-color: #ccc;
  border-bottom-color: #888;
  border-radius: 3px; }
  trix-toolbar .trix-button-group:not(:first-child) {
    margin-left: 1.5vw; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button-group:not(:first-child) {
        margin-left: 0; } }

trix-toolbar .trix-button-group-spacer {
  flex-grow: 1; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button-group-spacer {
      display: none; } }

trix-toolbar .trix-button {
  position: relative;
  float: left;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.5em;
  margin: 0;
  outline: none;
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent; }
  trix-toolbar .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-toolbar .trix-button.trix-active {
    background: #cbeefa;
    color: black; }
  trix-toolbar .trix-button:not(:disabled) {
    cursor: pointer; }
  trix-toolbar .trix-button:disabled {
    color: rgba(0, 0, 0, 0.125); }
  @media (max-width: 768px) {
    trix-toolbar .trix-button {
      letter-spacing: -0.01em;
      padding: 0 0.3em; } }

trix-toolbar .trix-button--icon {
  font-size: inherit;
  width: 2.6em;
  height: 1.6em;
  max-width: calc(0.8em + 4vw);
  text-indent: -9999px; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button--icon {
      height: 2em;
      max-width: calc(0.8em + 3.5vw); } }
  trix-toolbar .trix-button--icon::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.6;
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button--icon::before {
        right: 6%;
        left: 6%; } }
  trix-toolbar .trix-button--icon.trix-active::before {
    opacity: 1; }
  trix-toolbar .trix-button--icon:disabled::before {
    opacity: 0.125; }

trix-toolbar .trix-button--icon-attach::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  top: 8%;
  bottom: 4%; }

trix-toolbar .trix-button--icon-bold::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-italic::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-link::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-strike::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-quote::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-heading-1::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-code::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-bullet-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-number-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-undo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-redo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-decrease-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-increase-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-dialogs {
  position: relative; }

trix-toolbar .trix-dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.75em;
  padding: 15px 10px;
  background: #fff;
  box-shadow: 0 0.3em 1em #ccc;
  border-top: 2px solid #888;
  border-radius: 5px;
  z-index: 5; }

trix-toolbar .trix-input--dialog {
  font-size: inherit;
  font-weight: normal;
  padding: 0.5em 0.8em;
  margin: 0 10px 0 0;
  border-radius: 3px;
  border: 1px solid #bbb;
  background-color: #fff;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }
  trix-toolbar .trix-input--dialog.validate:invalid {
    box-shadow: #F00 0px 0px 1.5px 1px; }

trix-toolbar .trix-button--dialog {
  font-size: inherit;
  padding: 0.5em;
  border-bottom: none; }

trix-toolbar .trix-dialog--link {
  max-width: 600px; }

trix-toolbar .trix-dialog__link-fields {
  display: flex;
  align-items: baseline; }
  trix-toolbar .trix-dialog__link-fields .trix-input {
    flex: 1; }
  trix-toolbar .trix-dialog__link-fields .trix-button-group {
    flex: 0 0 content;
    margin: 0; }

trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; }

trix-editor [data-trix-mutable]::-moz-selection,
trix-editor [data-trix-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection {
  background: none; }

trix-editor [data-trix-mutable]::selection,
trix-editor [data-trix-cursor-target]::selection, trix-editor [data-trix-mutable] ::selection {
  background: none; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::-moz-selection {
  background: highlight; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::selection {
  background: highlight; }

trix-editor [data-trix-mutable].attachment.attachment--file {
  box-shadow: 0 0 0 2px highlight;
  border-color: transparent; }

trix-editor [data-trix-mutable].attachment img {
  box-shadow: 0 0 0 2px highlight; }

trix-editor .attachment {
  position: relative; }
  trix-editor .attachment:hover {
    cursor: default; }

trix-editor .attachment--preview .attachment__caption:hover {
  cursor: text; }

trix-editor .attachment__progress {
  position: absolute;
  z-index: 1;
  height: 20px;
  top: calc(50% - 10px);
  left: 5%;
  width: 90%;
  opacity: 0.9;
  transition: opacity 200ms ease-in; }
  trix-editor .attachment__progress[value="100"] {
    opacity: 0; }

trix-editor .attachment__caption-editor {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;
  vertical-align: top;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }

trix-editor .attachment__toolbar {
  position: absolute;
  z-index: 1;
  top: -0.9em;
  left: 0;
  width: 100%;
  text-align: center; }

trix-editor .trix-button-group {
  display: inline-flex; }

trix-editor .trix-button {
  position: relative;
  float: left;
  color: #666;
  white-space: nowrap;
  font-size: 80%;
  padding: 0 0.8em;
  margin: 0;
  outline: none;
  border: none;
  border-radius: 0;
  background: transparent; }
  trix-editor .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-editor .trix-button.trix-active {
    background: #cbeefa; }
  trix-editor .trix-button:not(:disabled) {
    cursor: pointer; }

trix-editor .trix-button--remove {
  text-indent: -9999px;
  display: inline-block;
  padding: 0;
  outline: none;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid highlight;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25); }
  trix-editor .trix-button--remove::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%; }
  trix-editor .trix-button--remove:hover {
    border-color: #333; }
    trix-editor .trix-button--remove:hover::before {
      opacity: 1; }

trix-editor .attachment__metadata-container {
  position: relative; }

trix-editor .attachment__metadata {
  position: absolute;
  left: 50%;
  top: 2em;
  transform: translate(-50%, 0);
  max-width: 90%;
  padding: 0.1em 0.6em;
  font-size: 0.8em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 3px; }
  trix-editor .attachment__metadata .attachment__name {
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }
  trix-editor .attachment__metadata .attachment__size {
    margin-left: 0.2em;
    white-space: nowrap; }

.trix-content {
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word; }
  .trix-content * {
    box-sizing: border-box;
    margin: 0;
    padding: 0; }
  .trix-content h1 {
    font-size: 1.2em;
    line-height: 1.2; }
  .trix-content blockquote {
    border: 0 solid #ccc;
    border-left-width: 0.3em;
    margin-left: 0.3em;
    padding-left: 0.6em; }
  .trix-content [dir=rtl] blockquote,
  .trix-content blockquote[dir=rtl] {
    border-width: 0;
    border-right-width: 0.3em;
    margin-right: 0.3em;
    padding-right: 0.6em; }
  .trix-content li {
    margin-left: 1em; }
  .trix-content [dir=rtl] li {
    margin-right: 1em; }
  .trix-content pre {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    font-family: monospace;
    font-size: 0.9em;
    padding: 0.5em;
    white-space: pre;
    background-color: #eee;
    overflow-x: auto; }
  .trix-content img {
    max-width: 100%;
    height: auto; }
  .trix-content .attachment {
    display: inline-block;
    position: relative;
    max-width: 100%; }
    .trix-content .attachment a {
      color: inherit;
      text-decoration: none; }
      .trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
        color: inherit; }
  .trix-content .attachment__caption {
    text-align: center; }
    .trix-content .attachment__caption .attachment__name + .attachment__size::before {
      content: ' \2022 '; }
  .trix-content .attachment--preview {
    width: 100%;
    text-align: center; }
    .trix-content .attachment--preview .attachment__caption {
      color: #666;
      font-size: 0.9em;
      line-height: 1.2; }
  .trix-content .attachment--file {
    color: #333;
    line-height: 1;
    margin: 0 2px 2px 2px;
    padding: 0.4em 1em;
    border: 1px solid #bbb;
    border-radius: 5px; }
  .trix-content .attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    position: relative; }
    .trix-content .attachment-gallery .attachment {
      flex: 1 0 33%;
      padding: 0 0.5em;
      max-width: 33%; }
    .trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
      flex-basis: 50%;
      max-width: 50%; }

/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom styles */
/* Enhanced form input styling */

/* Text inputs, textareas, and selects */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
textarea,
select {
  padding-top: 0.625rem !important; /* py-2.5 */
  padding-bottom: 0.625rem !important; /* py-2.5 */
  /* Only set horizontal padding if not already set via classes */
  font-size: 1rem !important; /* text-base */
  line-height: 1.5rem !important;
  border-radius: 0.5rem !important; /* rounded-lg */
  border: 1px solid #d1d5db !important; /* border-gray-300 */
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important; /* shadow-sm */
  transition: all 150ms ease-in-out !important;
}

/* Default horizontal padding when no padding-left/right classes are present */
input[type="text"]:not([class*="pl-"]),
input[type="email"]:not([class*="pl-"]),
input[type="password"]:not([class*="pl-"]),
input[type="tel"]:not([class*="pl-"]),
input[type="url"]:not([class*="pl-"]),
input[type="search"]:not([class*="pl-"]),
input[type="number"]:not([class*="pl-"]),
input[type="date"]:not([class*="pl-"]),
input[type="datetime-local"]:not([class*="pl-"]),
input[type="time"]:not([class*="pl-"]),
textarea:not([class*="pl-"]) {
  padding-left: 1rem !important; /* px-4 */
}

input[type="text"]:not([class*="pr-"]),
input[type="email"]:not([class*="pr-"]),
input[type="password"]:not([class*="pr-"]),
input[type="tel"]:not([class*="pr-"]),
input[type="url"]:not([class*="pr-"]),
input[type="search"]:not([class*="pr-"]),
input[type="number"]:not([class*="pr-"]),
input[type="date"]:not([class*="pr-"]),
input[type="datetime-local"]:not([class*="pr-"]),
input[type="time"]:not([class*="pr-"]),
textarea:not([class*="pr-"]) {
  padding-right: 1rem !important; /* px-4 */
}

/* Focus states */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #6366f1 !important; /* border-indigo-500 */
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important; /* ring-2 ring-indigo-500 */
}

/* Disabled states */
input:disabled,
textarea:disabled,
select:disabled {
  background-color: #f3f4f6 !important; /* bg-gray-100 */
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
  color: #9ca3af !important; /* text-gray-400 */
}

/* Select elements - make dropdown arrow more visible */
select {
  background-color: white !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 0.75rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.25em 1.25em !important;
  padding-right: 2.75rem !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer !important;
}

/* Remove default arrow in IE */
select::-ms-expand {
  display: none !important;
}

/* Option elements */
select option {
  padding: 0.5rem !important;
  font-size: 1rem !important;
}

/* Checkbox and radio inputs - make them larger */
input[type="checkbox"],
input[type="radio"] {
  width: 1.25rem !important; /* w-5 */
  height: 1.25rem !important; /* h-5 */
  border-radius: 0.25rem !important; /* rounded */
  border: 1px solid #d1d5db !important; /* border-gray-300 */
  cursor: pointer !important;
  transition: all 150ms ease-in-out !important;
}

input[type="radio"] {
  border-radius: 50% !important; /* rounded-full */
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: #6366f1 !important; /* bg-indigo-600 */
  border-color: #6366f1 !important;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(99, 102, 241, 0.5) !important; /* ring-2 ring-offset-2 ring-indigo-500 */
}

/* File inputs */
input[type="file"] {
  font-size: 0.875rem !important;
  color: #4b5563 !important; /* text-gray-600 */
}

input[type="file"]::file-selector-button {
  margin-right: 1rem !important;
  padding: 0.625rem 1rem !important;
  border-radius: 0.5rem !important;
  border: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  background-color: #eef2ff !important; /* bg-indigo-50 */
  color: #4338ca !important; /* text-indigo-700 */
  cursor: pointer !important;
  transition: background-color 150ms ease-in-out !important;
}

input[type="file"]::file-selector-button:hover {
  background-color: #e0e7ff !important; /* hover:bg-indigo-100 */
}

/* Labels */
label {
  font-size: 0.875rem !important; /* text-sm */
  font-weight: 500 !important; /* font-medium */
  color: #374151 !important; /* text-gray-700 */
  cursor: pointer !important;
}

/* Form error states */
input.error,
textarea.error,
select.error {
  border-color: #fca5a5 !important; /* border-red-300 */
}

input.error:focus,
textarea.error:focus,
select.error:focus {
  border-color: #ef4444 !important; /* border-red-500 */
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important; /* ring-2 ring-red-500 */
}
/*
 * Low Vision Mode (BTH-25)
 *
 * Alternate, accessibility-first rendering of the application. Activated
 * by adding the `low-vision` class to <body> (see app/helpers/application_helper.rb
 * and app/views/layouts/application.html.erb). Toggled per-user by an admin
 * from the user edit form.
 *
 * Design goals:
 *   - Bigger default type, buttons, form controls
 *   - Full-screen-width layouts (override Tailwind max-w-* containers)
 *   - Higher contrast, thicker borders, clearer focus rings
 *   - Simplified dashboard: hide charts and secondary stat cards,
 *     keep the primary actions huge and obvious
 *   - Single-column stacking of grid layouts
 *
 * Implementation note: every rule is scoped to `body.low-vision` so this
 * stylesheet is completely inert for users that do not have low vision
 * mode enabled. All overrides use !important because Tailwind's compiled
 * utility classes are loaded in the same cascade layer and we want this
 * file to always win, no matter the markup.
 */

/* ---------- Base typography & layout -------------------------------- */

body.low-vision {
  font-size: 28px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.02em !important;
  color: #111827 !important;
  background-color: #ffffff !important;
}

body.low-vision main,
body.low-vision main.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Neutralize Tailwind max-width containers so every page uses full width. */
body.low-vision .max-w-xs,
body.low-vision .max-w-sm,
body.low-vision .max-w-md,
body.low-vision .max-w-lg,
body.low-vision .max-w-xl,
body.low-vision .max-w-2xl,
body.low-vision .max-w-3xl,
body.low-vision .max-w-4xl,
body.low-vision .max-w-5xl,
body.low-vision .max-w-6xl,
body.low-vision .max-w-7xl,
body.low-vision .container {
  max-width: 100% !important;
  width: 100% !important;
}

/* ---------- Headings --------------------------------------------------- */

body.low-vision h1,
body.low-vision .text-4xl,
body.low-vision .text-3xl {
  font-size: 3.5rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  color: #000000 !important;
}

body.low-vision h2,
body.low-vision .text-2xl {
  font-size: 2.75rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: #000000 !important;
}

body.low-vision h3,
body.low-vision .text-xl,
body.low-vision .text-lg {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #000000 !important;
}

body.low-vision p,
body.low-vision .text-base,
body.low-vision .text-sm,
body.low-vision .text-xs {
  font-size: 1.5rem !important;
  line-height: 1.7 !important;
  color: #000000 !important;
}

/* Don't shrink labels down. */
body.low-vision label:not([for="mobile-menu-toggle"]) {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #000000 !important;
  margin-bottom: 0.5rem !important;
  display: inline-block !important;
}

/* Definition list terms (field labels on client profile) */
body.low-vision dt {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #000000 !important;
}

body.low-vision dd {
  font-size: 1.75rem !important;
  color: #000000 !important;
}

/* ---------- Buttons, links, form controls ---------------------------- */

body.low-vision a,
body.low-vision button,
body.low-vision [role="button"],
body.low-vision input[type="submit"],
body.low-vision input[type="button"],
body.low-vision .btn {
  font-size: 1.75rem !important;
  min-height: 4rem !important;
  padding: 1.25rem 2rem !important;
  border-width: 3px !important;
  border-radius: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

/* Inline links inside paragraphs shouldn't grow to button size. */
body.low-vision p a,
body.low-vision li a,
body.low-vision span a {
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 2px !important;
  color: #1d4ed8 !important;
}

body.low-vision input[type="text"],
body.low-vision input[type="email"],
body.low-vision input[type="password"],
body.low-vision input[type="number"],
body.low-vision input[type="search"],
body.low-vision input[type="tel"],
body.low-vision input[type="url"],
body.low-vision input[type="date"],
body.low-vision input[type="datetime-local"],
body.low-vision select,
body.low-vision textarea {
  font-size: 1.75rem !important;
  min-height: 4rem !important;
  padding: 1rem 1.25rem !important;
  border-width: 3px !important;
  border-color: #000000 !important;
  border-radius: 0.75rem !important;
  background-color: #ffffff !important;
  color: #000000 !important;
}

body.low-vision input[type="checkbox"],
body.low-vision input[type="radio"] {
  width: 2.25rem !important;
  height: 2.25rem !important;
  transform: scale(1) !important;
  accent-color: #1d4ed8 !important;
}

/* ---------- Focus rings (critical for low-vision users) -------------- */

body.low-vision *:focus,
body.low-vision *:focus-visible {
  outline: 4px solid #f59e0b !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.35) !important;
}

/* ---------- Contrast boost for Tailwind utility colors --------------- */

body.low-vision .text-gray-400,
body.low-vision .text-gray-500,
body.low-vision .text-gray-600 {
  color: #1f2937 !important;
}

body.low-vision .text-gray-700,
body.low-vision .text-gray-800 {
  color: #000000 !important;
}

body.low-vision .bg-gray-50,
body.low-vision .bg-gray-100 {
  background-color: #ffffff !important;
}

body.low-vision .border,
body.low-vision .border-gray-100,
body.low-vision .border-gray-200,
body.low-vision .border-gray-300 {
  border-color: #111827 !important;
  border-width: 2px !important;
}

/* Primary / action color: solid indigo-700 instead of 500/600 for contrast. */
body.low-vision .bg-indigo-500,
body.low-vision .bg-indigo-600,
body.low-vision .hover\:bg-indigo-600:hover,
body.low-vision .hover\:bg-indigo-700:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

body.low-vision .text-indigo-600,
body.low-vision .text-indigo-700 {
  color: #1d4ed8 !important;
}

/* Danger / destructive color: deep red for contrast. */
body.low-vision .bg-red-500,
body.low-vision .bg-red-600 {
  background-color: #b91c1c !important;
  color: #ffffff !important;
}

/* ---------- Collapse multi-column grids to single column ------------- */

body.low-vision .grid.grid-cols-2,
body.low-vision .grid.grid-cols-3,
body.low-vision .grid.grid-cols-4,
body.low-vision .grid.sm\:grid-cols-2,
body.low-vision .grid.sm\:grid-cols-3,
body.low-vision .grid.sm\:grid-cols-4,
body.low-vision .grid.md\:grid-cols-2,
body.low-vision .grid.md\:grid-cols-3,
body.low-vision .grid.md\:grid-cols-4,
body.low-vision .grid.lg\:grid-cols-2,
body.low-vision .grid.lg\:grid-cols-3,
body.low-vision .grid.lg\:grid-cols-4 {
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
}

/* ---------- Cards & panels ------------------------------------------- */

body.low-vision .shadow,
body.low-vision .shadow-md,
body.low-vision .shadow-lg,
body.low-vision .shadow-xl,
body.low-vision .shadow-2xl {
  box-shadow: 0 0 0 3px #111827 !important;
}

body.low-vision .rounded,
body.low-vision .rounded-md,
body.low-vision .rounded-lg,
body.low-vision .rounded-xl {
  border-radius: 1rem !important;
}

/* ---------- Dashboard simplifications (BTH-25) ----------------------- */

/*
 * Hide the stats-grid counts and the four chart partials so the dashboard
 * becomes a clean landing page with only the big action buttons. The
 * underlying DOM is unchanged; we just elide the noise for low-vision
 * users so they can focus on the primary actions.
 */
body.low-vision #dashboard-stats,
body.low-vision .dashboard-charts,
body.low-vision [id$="_chart"],
body.low-vision [id$="-chart"],
body.low-vision .chart-container,
body.low-vision canvas,
body.low-vision [data-controller~="chart"] {
  display: none !important;
}

/* Dashboard "quick actions" row: stack and supersize. */
body.low-vision .dashboard-quick-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

body.low-vision .dashboard-quick-actions a,
body.low-vision .dashboard-quick-actions button {
  width: 100% !important;
  min-height: 5rem !important;
  font-size: 1.75rem !important;
  justify-content: center !important;
  text-align: center !important;
}

/* ---------- Client profile simplification ----------------------------- */
/*
 * In low-vision mode the client show page strips away the stats-heavy
 * right column (event counts, service usage table, attendance calendar)
 * and shows only the essentials: photo, name, attributes, ban status.
 * The left column expands to full width.
 */
body.low-vision .client-stats-column {
  display: none !important;
}

/* Make the left info column span full width when stats column is hidden. */
body.low-vision .lg\:col-span-2 {
  grid-column: 1 / -1 !important;
}

/* Make the client photo larger and more prominent. */
body.low-vision .lg\:col-span-2 img {
  width: 100% !important;
  max-width: 500px !important;
}

/* Badge / pill text needs to be readable too. */
body.low-vision .rounded-full {
  font-size: 1.25rem !important;
  padding: 0.5rem 1rem !important;
}

/* ---------- Navigation ----------------------------------------------- */

/* Keep nav links and text at a reasonable size so they fit horizontally. */
body.low-vision nav a,
body.low-vision nav button {
  font-size: 1.125rem !important;
  padding: 0.5rem 0.75rem !important;
  min-height: 0 !important;
  border-width: 0 !important;
  border-radius: 0 !important;
}

/* Restore border-bottom on active nav links. */
body.low-vision nav a.border-b-2 {
  border-bottom-width: 2px !important;
}

/* Keep nav helper text small. */
body.low-vision nav .text-sm,
body.low-vision nav .text-xs {
  font-size: 1rem !important;
}

/* Shrink the logo block so it doesn't hog space. */
body.low-vision nav .h-10.w-10 {
  width: 2rem !important;
  height: 2rem !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body.low-vision nav .ml-3.text-xl {
  font-size: 1.125rem !important;
}

/* Keep nav badges readable but compact. */
body.low-vision nav .rounded-full {
  font-size: 0.75rem !important;
  padding: 0.125rem 0.5rem !important;
  min-height: 0 !important;
}

/* ---------- Tables --------------------------------------------------- */

body.low-vision table {
  font-size: 1.5rem !important;
  border-collapse: collapse !important;
  width: 100% !important;
}

body.low-vision table th,
body.low-vision table td {
  padding: 1.25rem 1.5rem !important;
  border: 3px solid #000000 !important;
}

body.low-vision table th {
  background-color: #e5e7eb !important;
  font-weight: 900 !important;
  color: #000000 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* ---------- Reduce motion by default for this mode ------------------- */

body.low-vision *,
body.low-vision *::before,
body.low-vision *::after {
  animation-duration: 0.001s !important;
  transition-duration: 0.001s !important;
}

/* ---------- Hide decorative SVG icons from assistive tech ------------ */
/*
 * Any inline <svg> without an aria-label or role="img" is decorative and
 * should be hidden from screen readers. We can't add attributes from
 * here, but we can enlarge them so sighted low-vision users can still
 * perceive them.
 */
body.low-vision svg {
  width: 2.25rem !important;
  height: 2.25rem !important;
}

/* ---------- Services index simplification ----------------------------- */
/*
 * On the services index, hide the table headers and extra columns
 * (next event, status, actions) and make the service names huge
 * so a low-vision user can just tap the one they want.
 */
body.low-vision .services-index table thead {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

body.low-vision .services-index table td {
  border: none !important;
  border-bottom: 3px solid #000000 !important;
}

/* Hide non-name columns on services index. */
body.low-vision .services-index table td:not(:first-child) {
  display: none !important;
}

/* Make service name links giant. */
body.low-vision .services-index table td .text-indigo-600.font-medium {
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  color: #1d4ed8 !important;
}

/* Make the color dot bigger. */
body.low-vision .services-index table td .w-3.h-3.rounded-full {
  width: 1.25rem !important;
  height: 1.25rem !important;
}

/* colgroup widths become irrelevant in low-vision mode. */
body.low-vision table colgroup {
  display: none !important;
}

/* ---------- Clients index simplification ------------------------------ */
/*
 * Show photo and name big, hide DOB/gender/race/status/actions columns.
 * Keep the filters panel hidden too — just search + big name list.
 */
body.low-vision .clients-index table thead {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Hide DOB (3rd), race (5th), actions (7th) columns. Keep gender (4th) and status (6th). */
body.low-vision .clients-index table td:nth-child(3),
body.low-vision .clients-index table td:nth-child(5),
body.low-vision .clients-index table td:nth-child(7) {
  display: none !important;
}

/* Make gender text bigger. */
body.low-vision .clients-index table td:nth-child(4) {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
}

/* Hide phone number under the name. */
body.low-vision .clients-index table td .text-gray-500 {
  display: none !important;
}

/* Make client name link giant. */
body.low-vision .clients-index table td .text-indigo-600 {
  font-size: 2.5rem !important;
  font-weight: 900 !important;
}

/* Make the client name container not clip. */
body.low-vision .clients-index table td {
  white-space: normal !important;
  padding: 1.25rem 1rem !important;
  border: none !important;
  border-bottom: 3px solid #000000 !important;
}

/* Bigger photos in the client list. */
body.low-vision .clients-index .h-16.w-16 {
  width: 5rem !important;
  height: 5rem !important;
}

body.low-vision .clients-index .h-16.w-16 img {
  width: 5rem !important;
  height: 5rem !important;
}

/* Hide the advanced filters panel in low vision — just use the search box. */
body.low-vision .clients-index [data-controller="disclosure"] {
  display: none !important;
}

/* Hide the export/filter buttons row. */
body.low-vision .clients-index .hidden.sm\:block {
  display: none !important;
}

/* ---------- Approval list member rows --------------------------------- */
/*
 * The approval list has a mobile label and a desktop link for each
 * client name. In low-vision mode, show only the desktop link (which
 * is the clickable one) and hide the mobile label to prevent duplication.
 */
body.low-vision .member-row label.sm\:hidden {
  display: none !important;
}

body.low-vision .member-row .hidden.sm\:block {
  display: block !important;
}

/* Hide start/end date columns (header + data). */
body.low-vision .approval-list-dates {
  display: none !important;
}

body.low-vision .member-row td:nth-child(2),
body.low-vision .member-row td:nth-child(3) {
  display: none !important;
}

/* Force status and actions columns visible (override Tailwind hidden sm:table-cell). */
body.low-vision .approval-list-table thead th:nth-child(4),
body.low-vision .approval-list-table thead th:nth-child(5),
body.low-vision .member-row td:nth-child(4),
body.low-vision .member-row td:nth-child(5) {
  display: table-cell !important;
}

/* The expandable detail rows should stay hidden on desktop. */
body.low-vision .member-detail.sm\:hidden {
  display: none !important;
}

/* The hidden checkbox toggle should stay hidden. */
body.low-vision .member-toggle.hidden {
  display: none !important;
}

/* ---------- Service show: prominent current event ---------------------- */
/*
 * In low-vision mode the service show page transforms the current/next
 * event from a small dt/dd into a huge, prominent banner. The rest of the
 * Service Information card (type, capacity, times) is hidden as noise.
 * Recent events (histogram charts) are also hidden.
 */

/* Hide the service details card items we don't need. */
body.low-vision .service-details-card dl > div:not(.service-current-event) {
  display: none !important;
}

/* Collapse the dl grid to single column and remove gaps. */
body.low-vision .service-details-card dl {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

/* Make the current event div a big centered banner. */
body.low-vision .service-current-event {
  text-align: center !important;
  padding: 2rem 1rem !important;
}

/* The "Current Event" / "Next Event" label — big and bold. */
body.low-vision .service-current-event dt {
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  color: #000000 !important;
  margin-bottom: 1rem !important;
}

/* The event name link — huge. */
body.low-vision .service-current-event dd a {
  font-size: 3rem !important;
  font-weight: 900 !important;
  color: #1d4ed8 !important;
  text-decoration: none !important;
  border: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* The "In Progress" badge — make it a huge green pill. */
body.low-vision .service-current-event .rounded-full {
  font-size: 2.5rem !important;
  padding: 0.75rem 2rem !important;
  background-color: #166534 !important;
  color: #ffffff !important;
  display: inline-block !important;
  margin-top: 0.75rem !important;
}

/* Hide the verbose datetime line — the service name is enough. */
body.low-vision .service-event-datetime {
  display: none !important;
}

/* Hide verbose date/badge info in upcoming events list. */
body.low-vision .service-show ul.divide-y .text-gray-500,
body.low-vision .service-show ul.divide-y .text-gray-400,
body.low-vision .service-show ul.divide-y .rounded-full {
  display: none !important;
}

/* In low vision mode, show dates instead of event names in upcoming events. */
body.low-vision .service-show ul.divide-y .upcoming-event-name {
  display: none !important;
}

body.low-vision .service-show ul.divide-y .upcoming-event-date {
  display: inline !important;
}

/* Make upcoming event text bigger. */
body.low-vision .service-show ul.divide-y .text-sm.font-medium {
  font-size: 2rem !important;
  font-weight: 800 !important;
}

/* Hide recent events section in low vision — not needed. */
body.low-vision .service-show .recent-events-section {
  display: none !important;
}

/* ---------- Calendar: convert grid to list ----------------------------- */
/*
 * The simple_calendar gem renders a 7-column <table>. In low-vision mode
 * we flatten it into a vertical list: one row per day (empty days hidden),
 * with the day number as a prominent header and events as large list items.
 */

/* Flatten table structure to block layout. */
body.low-vision .simple-calendar table,
body.low-vision .simple-calendar tbody,
body.low-vision .simple-calendar tr {
  display: block !important;
  width: 100% !important;
}

/* Visually hide day-of-week headers — not useful in list view, but keep for screen readers. */
body.low-vision .simple-calendar thead {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Each day cell becomes a full-width block. */
body.low-vision .simple-calendar td {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  border: none !important;
  border-bottom: 3px solid #000000 !important;
  padding: 1rem 1.5rem !important;
}

/* Hide day cells that have no events (uses :has selector). */
body.low-vision .simple-calendar td:not(:has(.mt-1)) {
  display: none !important;
}

/* Hide prev/next month day cells entirely. */
body.low-vision .simple-calendar td.prev-month,
body.low-vision .simple-calendar td.next-month {
  display: none !important;
}

/* Day number — prominent date header. */
body.low-vision .simple-calendar td .font-semibold.text-gray-700 {
  font-size: 2.25rem !important;
  font-weight: 900 !important;
  color: #000000 !important;
  margin-bottom: 0.75rem !important;
}

/* Today highlight. */
body.low-vision .simple-calendar td .bg-yellow-50,
body.low-vision .simple-calendar td div[class*="bg-yellow"] {
  background-color: transparent !important;
}

body.low-vision .simple-calendar td.today {
  background-color: #fef9c3 !important;
}

/* Event blocks — full width, large text, no truncation. */
body.low-vision .simple-calendar td a.block {
  display: block !important;
  padding: 0.75rem 1rem !important;
  margin-bottom: 0.5rem !important;
  border-radius: 0.75rem !important;
  border-left-width: 6px !important;
  min-height: 0 !important;
}

body.low-vision .simple-calendar td a.block .truncate {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}

body.low-vision .simple-calendar td a.block .font-medium {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
}

body.low-vision .simple-calendar td a.block .truncate:last-child {
  font-size: 1.5rem !important;
}

/* The calendar nav description text. */
body.low-vision .simple-calendar + p,
body.low-vision p.mt-2.text-sm.text-gray-700 {
  font-size: 1.5rem !important;
}

/* Skip link that becomes visible on focus (see layout). */
.skip-link:focus {
  clip: auto !important;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
}
.simple-calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.simple-calendar table {
  width: 100%;
}

.simple-calendar thead {
  background-color: #f9fafb;
}

.simple-calendar th {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
  width: 14.28%; /* 100% / 7 days */
}

.simple-calendar td {
  padding: 0;
  vertical-align: top;
  border: 1px solid #e5e7eb;
  background-color: white;
  width: 14.28%; /* 100% / 7 days */
  height: 140px;
  position: relative;
}

.simple-calendar .day {
  height: 140px;
  overflow: hidden;
  padding: 4px;
}

.simple-calendar .today {
  background-color: #fef3c7;
}

.simple-calendar .wday-0 {
  /* Sunday */
  background-color: #fefefe;
}

.simple-calendar .wday-6 {
  /* Saturday */
  background-color: #fefefe;
}

.simple-calendar .prev-month,
.simple-calendar .next-month {
  background-color: #f9fafb !important;
  color: #9ca3af;
}

.simple-calendar .prev-month .day,
.simple-calendar .next-month .day {
  color: #9ca3af;
}

.simple-calendar .current-month {
  /* Current month days */
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
