/* TITOV EDITION · journal typography, v3. Scoped to actual Blog theme markup. */
:root {
  --titov-display: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --titov-reading: 'PT Serif', Georgia, 'Times New Roman', serif;
  --titov-violet: #3a0ca3;
  --titov-ink: #202027;
}

/* Main editorial titles and the article stream. */
.blogpost > h1.category-name,
.bc-category-title,
.news__title,
.page-content h1 {
  font-family: var(--titov-display);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.14;
  text-wrap: balance;
}

.blogpost .blogpost__text p,
.blogpost .blogpost__text li,
.blogpost .blogpost__text blockquote,
.bc-category-description p,
.bc-category-description li,
.page-content p,
.page-content li {
  font-family: var(--titov-reading);
  font-size: clamp(18px, 1.08vw, 20px);
  line-height: 1.82;
  letter-spacing: 0;
}

/* Some articles ship their own inline presentation rules. This restrained
   override keeps the reading size consistent without changing headings or UI. */
@media (min-width: 768px) {
  .blogpost .blogpost__text p,
  .blogpost .blogpost__text li {
    font-size: 20px !important;
    line-height: 1.8 !important;
  }
}

.blogpost .blogpost__text h2,
.blogpost .blogpost__text h3,
.blogpost .blogpost__text h4,
.bc-category-description h2,
.bc-category-description h3,
.page-content h2,
.page-content h3 {
  font-family: var(--titov-display);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
  text-wrap: balance;
}

/* Editorial tables remain legible on narrow mobile screens. */
.blogpost .blogpost__text table {max-width:100%;border-collapse:collapse}
.blogpost .blogpost__text th,
.blogpost .blogpost__text td {padding:12px 15px;line-height:1.55;vertical-align:top}
.blogpost .blogpost__text blockquote {border-inline-start:2px solid var(--titov-violet);padding-inline-start:1.25em}
.blogpost .blogpost__text img {max-width:100%;height:auto}

/* Replace emerald navigation accents with the shared restrained brand system. */
.ts-journal-toolbar .ts-journal-toolbar__submit,
.ts-journal-toolbar .ts-journal-toolbar__submit[type='submit'] {
  background:var(--titov-violet);
  border-color:var(--titov-violet);
  color:#fff;
}
.ts-journal-toolbar .ts-journal-toolbar__submit:hover,
.ts-journal-toolbar .ts-journal-toolbar__submit[type='submit']:hover {background:#2c087e;color:#fff}
.ts-journal-toolbar .ts-journal-toolbar__searchline:focus-within {border-color:var(--titov-violet)}
.ts-journal-toolbar .ts-journal-menu__details > summary {color:var(--titov-ink)}

/* Journal catalogue: two calm editorial columns, entirely text-based. */
#post-stream.h-news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  align-items: stretch;
}
#post-stream.h-news > .news__one {
  float: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(34, 25, 49, .12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 7px 28px rgba(22, 15, 36, .045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  overflow: hidden;
}
#post-stream.h-news > .news__one:hover {
  transform: translateY(-2px);
  border-color: rgba(58, 12, 163, .28);
  box-shadow: 0 14px 36px rgba(22, 15, 36, .09);
}
#post-stream.h-news .news__inner {
  padding: clamp(22px, 2.3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 228px;
  height: 100%;
  background: transparent;
}
#post-stream.h-news .news__title {
  font-family: var(--titov-display);
  font-weight: 600;
  font-size: clamp(23px, 1.48vw, 30px);
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--titov-ink);
  margin: 0;
}
#post-stream.h-news .news__excerpt {
  font-family: var(--titov-reading);
  font-size: 16px;
  line-height: 1.7;
  color: #57525f;
  margin: 0;
  overflow-wrap: anywhere;
}
#post-stream.h-news .news__description {
  margin-top: auto;
  padding-top: 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: #817c8c;
}
#post-stream.h-news > .news__one:focus-within {
  outline: 2px solid var(--titov-violet);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  #post-stream.h-news {grid-template-columns: 1fr;gap: 16px}
  #post-stream.h-news .news__inner {min-height: 0;padding: 24px}
}

@media(max-width:767px) {
  .blogpost .blogpost__text p,
  .blogpost .blogpost__text li,
  .bc-category-description p,
  .page-content p,
  .page-content li {font-size:17px;line-height:1.75}
  .blogpost .blogpost__text p,
  .blogpost .blogpost__text li {font-size:17px!important;line-height:1.75!important}
  .blogpost .blogpost__text table {display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
