.tc-office-lecon__trigger {
  appearance: none;
  margin-block-start: .7em;
  margin-block-start: .5lh;
  padding: .125em 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: .95em;
  line-height: 1.4;
  text-align: start;
  text-transform: none;
  white-space: normal;
}

.tc-office-lecon__trigger:hover {
  background: transparent;
  color: inherit;
}

.tc-office-lecon__label { font-weight: 600; }

.tc-office-lecon__title {
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .18em;
}

.tc-office-lecon__trigger:hover .tc-office-lecon__title {
  text-decoration-thickness: .12em;
}

.tc-office-lecon {
  box-sizing: border-box;
  width: min(42rem, calc(100% - 1.5rem));
  max-height: 84vh;
  max-height: 84dvh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: .65rem;
  background: #f4f0e9;
  color: #5e5650;
  color-scheme: light dark;
  box-shadow: 0 .75rem 3rem rgb(0 0 0 / 25%);
}

@media (prefers-color-scheme: dark) {
  .tc-office-lecon {
    background: #2c2a28;
    color: #b8afa5;
  }
}

.tc-office-lecon[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.tc-office-lecon::backdrop {
  background: rgb(0 0 0 / 55%);
}

.tc-office-lecon__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .75rem .5rem 1rem;
  border-bottom: 1px solid GrayText;
}

.tc-office-lecon__header h2 {
  align-self: center;
  margin: 0;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tc-office-lecon__close {
  flex: 0 0 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
}

.tc-office-lecon__close:hover {
  background: ButtonFace;
  color: ButtonText;
}

.tc-office-lecon__text {
  overflow: auto;
  overscroll-behavior: contain;
  padding: .75rem 1rem 1rem;
  font-size: 1rem;
}

.tc-office-lecon__text,
.tc-office-lecon__text :is(p, div, blockquote, li) {
  color: inherit;
  line-height: 1.3;
}

.tc-office-lecon__text > :first-child { margin-block-start: 0; }
.tc-office-lecon__text > :last-child { margin-block-end: 0; }

.tc-office-lecon__trigger:focus-visible,
.tc-office-lecon__close:focus-visible { outline: 2px solid currentColor; }

.tc-office-lecon__text:focus-visible { outline-offset: -3px; }
