/* ==========================================================================
   content.css — стили SEO-страниц (гайды, продающие страницы, сравнения,
   хаб /guides/ и инструмент /cover-maker/). Подключается ПОСЛЕ brand.css и
   использует только его токены (--paper, --ink, --blue, шрифты и т.д.),
   поэтому тёмная тема работает сама.

   Идея: не «блог», а журнальный разворот. Киккеры над заголовками, буквица,
   нумерованные списки как в глянце («01», «02»), цитаты-выноски, рамка
   «Короткий ответ», плашка TL;DR, FAQ на <details>.
   Телефон 390px: поля 16px (var(--gutter)), ничего не шире экрана.
   ========================================================================== */

/* ---------- 0. Мелочи доступности ---------- */
.skip {                                   /* «перейти к тексту» для клавиатуры */
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 14px;
  font-family: var(--f-ui); font-size: 14px;
}
.skip:focus { left: 8px; }

/* Длинные слова и ссылки не должны распирать экран телефона. */
.story, .site-footer, .hub { overflow-wrap: anywhere; }

/* ---------- 1. Шапка сайта ---------- */
.site-header {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px;
}
.site-brand {                             /* имя бренда как мастхед */
  font-family: var(--f-mast); font-weight: 800; font-size: 22px;
  letter-spacing: .02em; text-decoration: none; line-height: 1;
  white-space: nowrap;
}
.site-nav {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  font-family: var(--f-ui); font-size: 14px; font-weight: 600;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .btn { padding: 10px 16px; font-size: 14px; }
/* На телефоне прячем текстовые пункты меню, остаётся бренд + кнопка;
   пункты меню дублируются строкой ниже (sub-row), чтобы не терять навигацию. */
.site-header__sub {
  display: flex; gap: 18px; padding-top: 8px; padding-bottom: 10px; border-top: 1px solid var(--rule);
  font-family: var(--f-ui); font-size: 13px; font-weight: 600;
}
.site-header__sub a { text-decoration: none; color: var(--ink-2); }
@media (max-width: 719px) {
  .site-nav .nav-text { display: none; }
}
@media (min-width: 720px) {
  .site-header__sub { display: none; }
}

/* ---------- 2. Хлебные крошки ---------- */
.crumbs ol {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 8px;
  font-family: var(--f-ui); font-size: 13px; color: var(--ink-2);
}
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- 3. Колонка статьи ---------- */
.story { max-width: 720px; margin: 0 auto; padding-bottom: 24px; }
.story-head { padding: 28px 0 8px; }
.story-head .kicker { display: inline-block; color: var(--blue); }
.page-title {
  font-family: var(--f-head); font-weight: 400;
  font-size: clamp(40px, 10.5vw, 78px); line-height: 1.0;
  letter-spacing: -.01em; margin: 10px 0 14px;
}
.dek {                                    /* подзаголовок под H1 */
  font-family: var(--f-body); font-style: italic; font-size: 21px; line-height: 1.4;
  color: var(--ink-2); margin: 0 0 18px;
}
.byline {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-family: var(--f-ui); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  border-top: 1px solid var(--ink); padding-top: 10px;
}

/* ---------- 4. «Короткий ответ» (answer-first) ---------- */
.answer {
  position: relative; margin: 28px 0 22px; padding: 26px 20px 18px;
  background: var(--white); border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--blue);
}
.answer__label {                          /* вкладка над рамкой */
  position: absolute; top: -12px; left: 16px;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; padding: 4px 10px;
}
.answer p { margin: 0; font-size: 19px; line-height: 1.5; }

/* ---------- 5. TL;DR ---------- */
.tldr {
  margin: 0 0 30px; padding: 14px 0 6px;
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
}
.tldr__label {
  font-family: var(--f-mast); font-style: italic; font-weight: 700; font-size: 20px;
}
.tldr ul { margin: 8px 0 8px; padding: 0; list-style: none; }
.tldr li {
  position: relative; padding-left: 22px; margin: 6px 0;
  font-size: 17px; line-height: 1.45;
}
.tldr li::before {                        /* синий квадратик вместо точки */
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 8px; height: 8px; background: var(--blue);
}

/* ---------- 6. Текст статьи ---------- */
.story-body > p, .story-body li { font-size: 18px; line-height: 1.62; }
.story-body a, .answer a, .tldr a, .faq a, .hub a.inline {
  color: inherit; text-decoration-color: var(--blue); text-decoration-thickness: 2px;
}
.story-body a:hover { color: var(--blue); }
.story-body h2 {
  font-family: var(--f-head); font-weight: 400;
  font-size: clamp(30px, 7vw, 40px); line-height: 1.08;
  margin: 2.1em 0 .5em; padding-top: 18px; position: relative;
}
.story-body h2::before {                  /* короткая синяя линейка над H2 */
  content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px;
  background: var(--blue);
}
.story-body h3 {
  font-family: var(--f-ui); font-weight: 700; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; margin: 1.8em 0 .4em;
}
/* Буквица у первого абзаца тела, как в журнале. */
.story-body > p.lead::first-letter {
  font-family: var(--f-mast); font-weight: 700; color: var(--blue);
  float: left; font-size: 4.1em; line-height: .82; margin: .06em .1em 0 0;
}
.story-body ul:not([class]) { padding-left: 1.1em; }
.story-body ul:not([class]) li { margin: .35em 0; }
.story-body ul:not([class]) li::marker { color: var(--blue); }

/* Заметка на полях */
.note {
  font-family: var(--f-ui); font-size: 15px; line-height: 1.5; color: var(--ink-2);
  border-left: 3px solid var(--aqua); padding: 4px 0 4px 14px; margin: 18px 0;
}

/* Цитата-выноска */
.pull {
  margin: 34px 0; padding: 20px 0 16px; text-align: center;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-family: var(--f-head); font-style: italic;
  font-size: clamp(26px, 6.4vw, 34px); line-height: 1.18;
}
.pull::before {
  content: "\201C"; display: block; font-family: var(--f-mast); font-style: normal;
  font-size: 64px; line-height: .6; color: var(--blue); margin-bottom: 6px;
}

/* ---------- 7. Журнальный нумерованный список ---------- */
.mag-list { list-style: none; margin: 18px 0; padding: 0; counter-reset: mag; }
.mag-list > li {
  counter-increment: mag; position: relative;
  display: grid; grid-template-columns: 58px 1fr; gap: 0 12px;
  padding: 18px 0; border-top: 1px solid var(--rule);
}
.mag-list > li:last-child { border-bottom: 1px solid var(--rule); }
.mag-list > li::before {
  content: counter(mag, decimal-leading-zero);
  font-family: var(--f-mast); font-style: italic; font-weight: 600;
  font-size: 40px; line-height: 1; color: var(--blue);
}
/* .story-body .mag-list__title: специфичнее, чем .story-body h3 (тот — мелкие капители) */
.story-body .mag-list__title, .mag-list__title {
  font-family: var(--f-head); font-weight: 400; font-size: 26px; line-height: 1.12;
  letter-spacing: 0; text-transform: none; margin: 0 0 6px;
}
.mag-list__text { margin: 0; font-size: 17px; line-height: 1.55; }
.mag-list__minus {
  margin: 8px 0 0; font-family: var(--f-ui); font-size: 14px; line-height: 1.45; color: var(--ink-2);
}
.mag-list__minus b {                      /* плашка «Honest minus» */
  display: inline-block; margin-right: 6px; padding: 1px 7px;
  background: var(--blush); color: #141210; border-radius: var(--radius);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.mag-list__us {                           /* наш продукт в подборке: честная метка */
  display: inline-block; margin-left: 6px; vertical-align: middle;
  font-family: var(--f-ui); font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; border: 1px solid var(--blue); color: var(--blue); padding: 1px 6px;
}

/* ---------- 8. Подсказки / большие списки (60+ пунктов) ---------- */
.prompts { margin: 14px 0 8px; padding: 0; list-style: none; counter-reset: pr var(--start, 0); }
.prompts li {
  counter-increment: pr; position: relative; padding: 7px 0 7px 46px;
  border-bottom: 1px dotted var(--rule); font-size: 17px; line-height: 1.45;
  break-inside: avoid;
}
.prompts li::before {
  content: counter(pr); position: absolute; left: 0; top: 8px; width: 36px; text-align: right;
  font-family: var(--f-ui); font-weight: 700; font-size: 13px; color: var(--blue);
}
@media (min-width: 760px) {
  .prompts { columns: 2; column-gap: 34px; }
}

/* ---------- 9. Три шага ---------- */
.steps { display: grid; gap: 14px; margin: 18px 0; padding: 0; list-style: none; }
.steps li {
  background: var(--white); border: 1px solid var(--rule); padding: 18px 18px 16px;
  font-size: 16px; line-height: 1.5;
}
.steps__n {
  display: block; font-family: var(--f-mast); font-weight: 700; font-style: italic;
  font-size: 46px; line-height: 1; color: var(--blue);
}
.steps__t {
  display: block; margin: 8px 0 6px; font-family: var(--f-ui); font-weight: 700; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 10. Цены ---------- */
.price { display: grid; gap: 12px; margin: 18px 0 10px; }
.price__card {
  border: 1.5px solid var(--ink); padding: 18px; background: var(--white);
  display: flex; flex-direction: column; gap: 6px;
}
.price__card--main { background: var(--ink); color: var(--paper); }
.price__name {
  font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.price__amt { font-family: var(--f-mast); font-weight: 700; font-size: 48px; line-height: 1; }
.price__what { font-size: 15px; line-height: 1.45; margin: 0; }
.price__extra { font-family: var(--f-ui); font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (min-width: 760px) { .price { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 11. Гарантия: штамп ---------- */
.guarantee {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
  margin: 22px 0; padding: 16px; border: 1.5px dashed var(--ink);
}
.guarantee__stamp {
  width: 96px; height: 96px; border-radius: 50%; border: 3px double var(--blue);
  display: grid; place-items: center; text-align: center; transform: rotate(-9deg);
  font-family: var(--f-ui); font-weight: 800; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); line-height: 1.25; padding: 8px;
}
.guarantee p { margin: 0; font-size: 16px; line-height: 1.5; }
.guarantee strong { font-family: var(--f-head); font-weight: 400; font-size: 24px; display: block; line-height: 1.15; margin-bottom: 4px; }

/* ---------- 12. Живая обложка (виджет на продающих страницах) ---------- */
.cover-widget {
  display: grid; gap: 18px; align-items: center;
  margin: 8px 0 26px; padding: 18px; background: var(--paper-2); border: 1px solid var(--rule);
}
.cover-widget__art { margin: 0 auto; width: 100%; max-width: 300px; }
.cover-widget canvas {
  display: block; width: 100%; aspect-ratio: 1000 / 1414; height: auto;
  box-shadow: var(--shadow); background: var(--paper);
}
.cover-widget figcaption {
  font-family: var(--f-ui); font-size: 12px; color: var(--ink-2); margin-top: 8px; text-align: center;
}
.cover-widget__form label {
  display: block; font-family: var(--f-ui); font-weight: 700; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px;
}
.cover-widget__form p { font-size: 15px; line-height: 1.5; margin: 12px 0 14px; color: var(--ink-2); }
.field {
  width: 100%; font: 500 22px/1.2 var(--f-head); color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid var(--ink);
  padding: 8px 2px; border-radius: 0;
}
.field:focus { outline: none; border-bottom-color: var(--blue); }
.cover-widget .btn { width: 100%; }
.cover-widget__price { font-family: var(--f-ui); font-size: 13px; color: var(--ink-2); margin-top: 10px; text-align: center; }
@media (min-width: 680px) {
  .cover-widget { grid-template-columns: 260px 1fr; padding: 24px; gap: 28px; }
}

/* ---------- 13. Таблицы сравнения ---------- */
.table-wrap {                             /* прокрутка ТОЛЬКО внутри таблицы, не всей страницы */
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.4; }
.table-wrap th {
  text-align: left; font-family: var(--f-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 10px 10px 8px; border-bottom: 1px solid var(--ink);
}
.table-wrap td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; min-width: 8.5em; }
/* В таблице слова не рвём посередине (у .story стоит overflow-wrap:anywhere) — лучше прокрутка вбок внутри таблицы. */
.table-wrap th, .table-wrap td { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.table-wrap td:first-child { min-width: 7.5em; }
.table-wrap td:first-child { font-weight: 600; }
.table-wrap tr.is-us td { background: var(--paper-2); }
.table-caption { font-family: var(--f-ui); font-size: 12px; color: var(--ink-2); margin-top: -10px; }

/* ---------- 14. Вердикт (в сравнениях, рано) ---------- */
.verdict {
  margin: 24px 0; padding: 18px 18px 16px 20px; background: var(--white);
  border-left: 6px solid var(--blue); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.verdict__label {
  font-family: var(--f-mast); font-style: italic; font-weight: 700; font-size: 22px; display: block; margin-bottom: 4px;
}
.verdict p { margin: 6px 0 0; font-size: 17px; line-height: 1.55; }

/* ---------- 15. FAQ ---------- */
.faq { margin: 40px 0 10px; }
.faq h2 {
  font-family: var(--f-head); font-weight: 400; font-size: clamp(30px, 7vw, 40px); margin: 0 0 8px;
}
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-of-type { border-bottom: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 40px 16px 0; font-family: var(--f-head); font-size: 23px; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {                     /* плюс, который поворачивается в крестик */
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-family: var(--f-ui); font-size: 26px; font-weight: 400; color: var(--blue);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 16px; font-size: 17px; line-height: 1.6; }
.faq details > div p { margin: 0 0 .6em; }

/* ---------- 16. Полоса CTA ---------- */
.cta-band {
  margin: 40px 0 10px; padding: 28px 20px; background: var(--ink); color: var(--paper);
  text-align: center;
}
.cta-band p.cta-band__line {
  font-family: var(--f-head); font-style: italic; font-size: clamp(26px, 6.5vw, 38px);
  line-height: 1.12; margin: 0 0 16px;
}
.cta-band .btn { background: var(--blue); border-color: var(--blue); color: #fff; }
.cta-band small { display: block; margin-top: 12px; font-family: var(--f-ui); font-size: 13px; opacity: .8; }
.cta-inline { margin: 22px 0; }

/* ---------- 17. Связанные страницы ---------- */
.related { max-width: 960px; margin: 34px auto 50px; }
.related h2 {
  font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  border-top: 3px double var(--ink); padding-top: 10px; margin: 0 0 12px;
}
.card-grid { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: block; height: 100%; text-decoration: none; padding: 16px; background: var(--white);
  border: 1px solid var(--rule); transition: transform .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--ink); }
.card .kicker { font-size: 10px; color: var(--blue); }
.card__title { display: block; font-family: var(--f-head); font-size: 24px; line-height: 1.12; margin: 6px 0; }
.card__text { display: block; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* ---------- 18. Хаб /guides/ ---------- */
.hub { padding-bottom: 30px; }
.hub-head { max-width: 760px; padding: 30px 0 10px; }
.hub-section { margin: 34px 0; }
.hub-section > h2 {
  font-family: var(--f-head); font-weight: 400; font-size: clamp(30px, 7vw, 42px);
  margin: 0 0 4px; padding-top: 12px; border-top: 1.5px solid var(--ink);
}
.hub-section > p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; }

/* ---------- 19. Подвал ---------- */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 40px; padding: 34px 0 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand { font-family: var(--f-mast); font-weight: 800; font-size: 28px; }
.footer-grid { display: grid; gap: 22px; margin-top: 18px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-grid h3 {
  font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; margin: 0 0 8px; opacity: .7;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-family: var(--f-ui); font-size: 15px; line-height: 1.9; }
.footer-small { font-family: var(--f-ui); font-size: 13px; opacity: .7; margin-top: 22px; line-height: 1.5; }

/* ---------- 20. Инструмент /cover-maker/ ---------- */
.tool {
  display: grid; gap: 22px; margin: 10px 0 30px; padding: 16px;
  background: var(--paper-2); border: 1px solid var(--rule);
}
@media (min-width: 860px) {
  .tool { grid-template-columns: minmax(280px, 400px) 1fr; padding: 28px; gap: 36px; align-items: start; }
  .tool__preview { position: sticky; top: 16px; }
}
.tool__stage { width: 100%; max-width: 400px; margin: 0 auto; }
.tool__stage canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 1000 / 1414;
  box-shadow: var(--shadow); background: var(--paper);
}
.tool__mag { width: 100%; overflow: hidden; }       /* сюда рисует Magazine.renderCover */
.tool [hidden] { display: none !important; }         /* атрибут hidden сильнее наших display:block */
/* Миниатюра PNG рядом с кнопкой: скачивается canvas-версия, показываем её честно */
.tool__dl { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.tool__dl canvas { width: 64px; height: auto; aspect-ratio: 1000 / 1414; box-shadow: var(--shadow); }
.tool__dl .btn { width: 100%; }
.tool__privacy { font-family: var(--f-ui); font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 10px; }
.tool__form { display: grid; gap: 18px; min-width: 0; }
.tool__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.tool__group > legend, .tool__label {
  display: block; padding: 0; margin-bottom: 8px;
  font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 8px 13px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--f-ui); font-size: 14px; font-weight: 600; cursor: pointer; background: var(--white);
  transition: background .15s, color .15s;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.select {
  width: 100%; font: 600 16px var(--f-ui); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 11px 12px;
}
.file-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--f-ui); font-weight: 700; font-size: 15px;
  border: 1.5px dashed var(--ink); padding: 14px 16px; width: 100%; justify-content: center; background: var(--white);
}
.file-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-btn:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.tool__actions { display: grid; gap: 10px; }
.tool__actions .btn { width: 100%; }
.tool__hint { font-family: var(--f-ui); font-size: 13px; color: var(--ink-2); margin: 4px 0 0; }

/* ---------- 21. Печать: только текст ---------- */
@media print {
  .site-header, .site-footer, .cover-widget, .cta-band, .related, .tool { display: none !important; }
  body::before { display: none; }
}

/* ---------- 22. Конструктор «reasons why I love you» ---------- */
/* Слева — сборка списка (темы, подсказки, строки), справа — готовая карточка. */
@media (min-width: 860px) {
  .tool.rg { grid-template-columns: 1fr minmax(300px, 380px); }
  .rg__out { position: sticky; top: 16px; }
}
.rg__build, .rg__out { display: grid; gap: 18px; min-width: 0; }
.rg__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .rg__row { grid-template-columns: 1fr 1fr; } }
.rg-theme {                                /* вкладки тем: как чипы, но кнопки */
  font: 600 13px var(--f-ui); padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--white); color: var(--ink);
}
.rg-theme[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.rg__themes { margin-bottom: 12px; }
.rg__starters { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-starter {                              /* подсказка: «начало фразы…» */
  font: italic 400 17px/1.25 var(--f-body); text-align: left; cursor: pointer;
  padding: 8px 12px; border: 1px dashed var(--ink-2); background: transparent; color: var(--ink);
  border-radius: var(--radius); max-width: 100%;
}
.rg-starter:hover { border-style: solid; border-color: var(--blue); color: var(--blue); }
.rg__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.rg-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; }
.rg-item__n { padding-top: 10px; }
.rg-item__n { font: italic 700 20px/1 var(--f-mast); color: var(--blue); text-align: right; }
.rg-item textarea {
  resize: none; overflow: hidden; display: block;
  width: 100%; min-width: 0; font: 400 17px/1.3 var(--f-body); color: var(--ink);
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 9px 10px;
}
.rg-item textarea:focus { outline: none; border-color: var(--blue); }
.rg-item.is-unfinished textarea { border-style: dashed; border-color: var(--ink-2); }
.rg-item__tools { display: flex; gap: 0; padding-top: 3px; }
.rg-item__tools button {
  width: 28px; height: 34px; border: 0; background: transparent; cursor: pointer;
  font: 600 16px var(--f-ui); color: var(--ink-2); border-radius: var(--radius);
}
.rg-item__tools button:hover { background: var(--paper); color: var(--ink); }
.rg__add { width: 100%; }
/* Готовая карточка: журнальный список */
.rg-card {
  background: var(--white); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--blue);
  padding: 24px 20px 20px; color: var(--ink);
}
.rg-card__kicker { font: 700 11px var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.rg-card__title { font: 400 34px/1.05 var(--f-head); margin: 6px 0 14px; }
.rg-card__list { margin: 0; padding: 0; list-style: none; counter-reset: rg; }
.rg-card__list li {
  counter-increment: rg; display: grid; grid-template-columns: 34px 1fr; gap: 8px;
  padding: 8px 0; border-top: 1px solid var(--rule); font: 400 17px/1.45 var(--f-body);
}
.rg-card__list li::before { content: counter(rg); font: italic 700 22px/1.1 var(--f-mast); color: var(--blue); }
.rg-card__empty { font: italic 16px/1.5 var(--f-body); color: var(--ink-2); margin: 0; }

/* Печать списка: на листе только карточка (класс ставит generator.js перед window.print). */
@media print {
  body.print-reasons * { visibility: hidden; }
  body.print-reasons #rg-output, body.print-reasons #rg-output * { visibility: visible; }
  body.print-reasons #rg-output { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: 0; }
  body.print-reasons .tool { display: block !important; }   /* общий print-блок прячет .tool: возвращаем для этого случая */
}
