/*
 * Trix editor — Tailwind-aligned styling
 */

/* ── Editor ── */
trix-editor {
  border: 1px solid #d4d4d4;
  /* neutral-300 */
  border-radius: 0 0 0.5rem 0.5rem;
  margin: 0;
  padding: 0.25rem 0.75rem;
  min-height: 8rem;
  outline: none;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #171717;
  /* neutral-900 */
  background: #fff;
  transition: border-color 0.15s ease;
}

trix-editor.trix-content {
  overflow-wrap: break-word;
  word-break: break-word;
}

trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
  -webkit-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]::selection {
  background: highlight;
}

/* ── Toolbar ── */
trix-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

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

trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  padding: 0.5rem;
  border: 1px solid #d4d4d4;
  /* neutral-300 */
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  background: #fafafa;
  /* neutral-50 */
  overflow-x: auto;
}

trix-toolbar .trix-button-group {
  display: inline-flex;
  gap: 1px;
  margin: 0;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
}

trix-toolbar .trix-button-group:not(:first-child) {
  margin-left: 0.25rem;
  padding-left: 0.5rem;
  border-left: 1px solid #e5e5e5;
  /* neutral-200 */
  border-radius: 0;
}

trix-toolbar .trix-button-group-spacer {
  flex-grow: 1;
}

/* ── Buttons ── */
trix-toolbar .trix-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #525252;
  /* neutral-600 */
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.25rem;
  margin: 0;
  outline: none;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

trix-toolbar .trix-button:not(:disabled):hover {
  background: #e5e5e5;
  /* neutral-200 */
  color: #171717;
  /* neutral-900 */
}

trix-toolbar .trix-button.trix-active {
  background: #e0e7ff;
  /* indigo-100 */
  color: #4338ca;
  /* indigo-700 */
}

trix-toolbar .trix-button:not(:disabled) {
  cursor: pointer;
}

trix-toolbar .trix-button:disabled {
  color: #d4d4d4;
  /* neutral-300 */
  cursor: default;
}

/* ── Icon buttons ── */
trix-toolbar .trix-button--icon {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0;
  color: transparent;
  overflow: hidden;
}

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: 1rem;
}

trix-toolbar .trix-button--icon:not(:disabled):hover::before {
  opacity: 1;
}

trix-toolbar .trix-button--icon.trix-active::before {
  opacity: 1;
}

trix-toolbar .trix-button--icon:disabled::before {
  opacity: 0.2;
}

/* ── Icon SVGs (Lucide) ── */
trix-toolbar .trix-button--icon-attach::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m16%206-8.414%208.586a2%202%200%200%200%202.829%202.829l8.414-8.586a4%204%200%201%200-5.657-5.657l-8.379%208.551a6%206%200%201%200%208.485%208.485l8.379-8.551%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-bold::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2012h9a4%204%200%200%201%200%208H7a1%201%200%200%201-1-1V5a1%201%200%200%201%201-1h7a4%204%200%200%201%200%208%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-italic::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cline%20x1%3D%2219%22%20x2%3D%2210%22%20y1%3D%224%22%20y2%3D%224%22%2F%3E%3Cline%20x1%3D%2214%22%20x2%3D%225%22%20y1%3D%2220%22%20y2%3D%2220%22%2F%3E%3Cline%20x1%3D%2215%22%20x2%3D%229%22%20y1%3D%224%22%20y2%3D%2220%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-link::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%2013a5%205%200%200%200%207.54.54l3-3a5%205%200%200%200-7.07-7.07l-1.72%201.71%22%2F%3E%3Cpath%20d%3D%22M14%2011a5%205%200%200%200-7.54-.54l-3%203a5%205%200%200%200%207.07%207.07l1.71-1.71%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-strike::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%204H9a3%203%200%200%200-2.83%204%22%2F%3E%3Cpath%20d%3D%22M14%2012a4%204%200%200%201%200%208H6%22%2F%3E%3Cline%20x1%3D%224%22%20x2%3D%2220%22%20y1%3D%2212%22%20y2%3D%2212%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-quote::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M17%205H3%22%2F%3E%3Cpath%20d%3D%22M21%2012H8%22%2F%3E%3Cpath%20d%3D%22M21%2019H8%22%2F%3E%3Cpath%20d%3D%22M3%2012v7%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-heading-1::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2012h8%22%2F%3E%3Cpath%20d%3D%22M4%2018V6%22%2F%3E%3Cpath%20d%3D%22M12%2018V6%22%2F%3E%3Cpath%20d%3D%22m17%2012%203-2v8%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-code::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m18%2016%204-4-4-4%22%2F%3E%3Cpath%20d%3D%22m6%208-4%204%204%204%22%2F%3E%3Cpath%20d%3D%22m14.5%204-5%2016%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-bullet-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h.01%22%2F%3E%3Cpath%20d%3D%22M3%2012h.01%22%2F%3E%3Cpath%20d%3D%22M3%2019h.01%22%2F%3E%3Cpath%20d%3D%22M8%205h13%22%2F%3E%3Cpath%20d%3D%22M8%2012h13%22%2F%3E%3Cpath%20d%3D%22M8%2019h13%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-number-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M11%205h10%22%2F%3E%3Cpath%20d%3D%22M11%2012h10%22%2F%3E%3Cpath%20d%3D%22M11%2019h10%22%2F%3E%3Cpath%20d%3D%22M4%204h1v5%22%2F%3E%3Cpath%20d%3D%22M4%209h2%22%2F%3E%3Cpath%20d%3D%22M6.5%2020H3.4c0-1%202.6-1.925%202.6-3.5a1.5%201.5%200%200%200-2.6-1.02%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-undo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2014%204%209l5-5%22%2F%3E%3Cpath%20d%3D%22M4%209h10.5a5.5%205.5%200%200%201%205.5%205.5a5.5%205.5%200%200%201-5.5%205.5H11%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-redo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m15%2014%205-5-5-5%22%2F%3E%3Cpath%20d%3D%22M20%209H9.5A5.5%205.5%200%200%200%204%2014.5A5.5%205.5%200%200%200%209.5%2020H13%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-decrease-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%205H11%22%2F%3E%3Cpath%20d%3D%22M21%2012H11%22%2F%3E%3Cpath%20d%3D%22M21%2019H11%22%2F%3E%3Cpath%20d%3D%22m7%208-4%204%204%204%22%2F%3E%3C%2Fsvg%3E");
}

trix-toolbar .trix-button--icon-increase-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%205H11%22%2F%3E%3Cpath%20d%3D%22M21%2012H11%22%2F%3E%3Cpath%20d%3D%22M21%2019H11%22%2F%3E%3Cpath%20d%3D%22m3%208%204%204-4%204%22%2F%3E%3C%2Fsvg%3E");
}

/* ── Dialogs (link input, etc.) ── */
trix-toolbar .trix-dialogs {
  position: relative;
}

trix-toolbar .trix-dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.875rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #d4d4d4;
  /* neutral-300 */
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  /* shadow-md */
  z-index: 20;
}

trix-toolbar .trix-input--dialog {
  font-size: 0.875rem;
  font-weight: normal;
  padding: 0.375rem 0.75rem;
  margin: 0 0.5rem 0 0;
  border-radius: 0.375rem;
  border: 1px solid #d4d4d4;
  /* neutral-300 */
  background-color: #fff;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.15s ease;
}

trix-toolbar .trix-input--dialog:focus {
  border-color: #6366f1;
  /* indigo-500 */
  box-shadow: 0 0 0 1px #6366f1;
}

trix-toolbar .trix-input--dialog.validate:invalid {
  border-color: #ef4444;
  /* red-500 */
  box-shadow: 0 0 0 1px #ef4444;
}

trix-toolbar .trix-button--dialog {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 0.375rem;
  background: #f5f5f5;
  /* neutral-100 */
  color: #525252;
  /* neutral-600 */
  cursor: pointer;
  transition: background-color 0.15s ease;
}

trix-toolbar .trix-button--dialog:hover {
  background: #e5e5e5;
  /* neutral-200 */
}

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

trix-toolbar .trix-dialog__link-fields {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

trix-toolbar .trix-dialog__link-fields .trix-input {
  flex: 1;
}

trix-toolbar .trix-dialog__link-fields .trix-button-group {
  flex: 0 0 auto;
  margin: 0;
}

/* ── Attachments inside editor ── */
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: 4px;
  top: 0;
  left: 0;
  width: 100%;
  background: #e0e7ff;
  /* indigo-100 */
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
  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: #525252;
  /* neutral-600 */
  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 #e5e5e5;
  /* neutral-200 */
}

trix-editor .trix-button.trix-active {
  background: #e0e7ff;
  /* indigo-100 */
}

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.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  border-radius: 9999px;
  background-color: #fff;
  border: 1.5px solid #d4d4d4;
  /* neutral-300 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: border-color 0.15s ease;
}

trix-editor .trix-button--remove:hover {
  border-color: #ef4444;
  /* red-500 */
}

trix-editor .trix-button--remove::before {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.5;
  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::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.125rem 0.5rem;
  font-size: 0.75rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0.25rem;
}

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-editor [data-trix-mutable].attachment.attachment--file {
  box-shadow: 0 0 0 2px #6366f1;
  /* indigo-500 */
  border-color: transparent;
}

trix-editor [data-trix-mutable].attachment img {
  box-shadow: 0 0 0 2px #6366f1;
  /* indigo-500 */
}

/* ── Content area typography ── */
.trix-content {
  line-height: 1.625;
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: 0.875rem;
  color: #171717;
  /* neutral-900 */
}

.trix-content * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.trix-content h1 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #171717;
  /* neutral-900 */
}

.trix-content blockquote {
  border: 0 solid #d4d4d4;
  /* neutral-300 */
  border-left-width: 3px;
  margin-left: 0;
  padding-left: 0.75rem;
  color: #525252;
  /* neutral-600 */
  font-style: italic;
}

.trix-content [dir=rtl] blockquote,
.trix-content blockquote[dir=rtl] {
  border-width: 0;
  border-right-width: 3px;
  margin-right: 0;
  padding-right: 0.75rem;
}

.trix-content li {
  margin-left: 1.25rem;
}

.trix-content [dir=rtl] li {
  margin-right: 1.25rem;
}

.trix-content pre {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8125rem;
  padding: 0.75rem 1rem;
  white-space: pre;
  background-color: #f5f5f5;
  /* neutral-100 */
  border-radius: 0.375rem;
  border: 1px solid #e5e5e5;
  /* neutral-200 */
  overflow-x: auto;
  color: #171717;
  /* neutral-900 */
}

.trix-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.trix-content a {
  color: #4f46e5;
  /* indigo-600 */
  text-decoration: underline;
}

.trix-content a:hover {
  color: #4338ca;
  /* indigo-700 */
}

.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: #737373;
  /* neutral-500 */
  font-size: 0.8125rem;
  line-height: 1.4;
}

.trix-content .attachment--file {
  color: #404040;
  /* neutral-700 */
  line-height: 1;
  margin: 0 2px 2px 2px;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e5e5;
  /* neutral-200 */
  border-radius: 0.5rem;
  background: #fafafa;
  /* neutral-50 */
}

.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%;
}

.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;
}