/* Citation widget of the tplegacy.net theme (assets/src/widgets/cite.css) on the site's tokens. */
/* The theme's own variables, on the site's tokens */
:root {
  --color-typ: var(--ink);
  --color-typ-tone: var(--ink-soft);
  --color-brd: var(--rule);
  --color-bgr: var(--paper);
  --color-bgr-tone: var(--paper-deep);
  --color-accent: var(--seal);
}
/* Citation widget — extracted from partials/citeassermon.hbs.
   Imported by assets/src/tple.css, shipped in assets/built/tple.css. */

.tple-cite {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-family: var(--sans);
}

.tple-cite__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
  flex-wrap: wrap;
  gap: 8px;
}

.tple-cite__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tple-cite__title svg { color: var(--seal); }

.tple-cite__accessed {
  font-size: 12px;
  color: var(--ink-soft);
}

.tple-cite__context {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 1rem;
  padding-left: 12px;
  border-left: 2px solid var(--rule);
}

.tple-cite__context[hidden] { display: none; }
.tple-cite__context strong { color: var(--ink); font-weight: 500; }

.tple-cite__tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.tple-cite__tab {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  border-radius: 0;
  transition: color .15s ease;
}

.tple-cite__tab:hover { color: var(--ink); }

.tple-cite__tab[aria-selected="true"] {
  color: var(--seal);
  font-weight: 500;
  border-bottom-color: var(--seal);
}

.tple-cite__body {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 12px;
  min-height: 88px;
  white-space: pre-wrap;
  word-break: break-word;
}

.tple-cite__body--mono {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.tple-cite__body em { font-style: italic; }

.tple-cite__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tple-cite__note { font-size: 11px; color: var(--ink-soft); }

.tple-cite__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tple-cite__note a:hover { color: var(--seal); }

.tple-cite__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: inherit;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease;
}

.tple-cite__copy:hover { background: var(--paper-deep); }

.tple-cite__copy[data-copied="true"] {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--white);
}

@media (max-width: 480px) {
  .tple-cite__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .tple-cite__tab { text-align: center; }
}
