/*
Theme Name: WPGen Base
Description: Базовая тема сети WP-генератора. Тёмная шапка и hero, светлый контент, зелёный CTA. Только whitelist-блоки: заголовки, текст, таблица, списки, pros/cons, картинка на всю ширину, цитата автора.
Version: 1.0.0
Author: WP-generator
Text Domain: wpgen
*/

/* Nunito Sans, варіативний, self-hosted (той самий шрифт, що на auspokies).
   Два файли покривають усі накреслення 300-800. */
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-var.woff2") format("woff2-variations"),
       url("assets/fonts/nunito-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-var-italic.woff2") format("woff2-variations"),
       url("assets/fonts/nunito-var-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-dark: #0b0e1a;
  --bg-dark-2: #141a30;
  --bg-hero: radial-gradient(120% 140% at 78% 40%, #2b1d4d 0%, #171a35 45%, #0b0e1a 100%);
  --accent: #1f9d4d;
  --accent-hover: #178040;
  --gold: #e8b23a;
  /* кольори лого PayPal. pp-blue освітлений відносно оригіналу #002F86,
     інакше темно-синій на майже чорному хедері не читається */
  --pp-blue: #4C7DF0;
  --pp-cyan: #22ACE8;
  --font: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --text: #1a1e28;
  --muted: #626b7d;
  --line: #e2e6ee;
  --card: #ffffff;
  --page: #f4f6fa;
  --pro: #eaf6ee;
  --pro-line: #1f9d4d;
  --con: #fdecec;
  --con-line: #d33b3b;
  --radius: 12px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 18px/1.65 var(--font);
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.2px; }

img { max-width: 100%; height: auto; }
a { color: #1462c4; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------------- header ---------------- */

.site-header { background: var(--bg-dark); border-bottom: 1px solid #1e2540; }

/* три колонки, щоб лого стояло рівно по центру незалежно від ширини кнопки */
.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.header-side { display: block; }
.header-side.right { display: flex; justify-content: flex-end; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 50px; height: 50px; border-radius: 14px; flex: 0 0 50px;
  background: #fff; padding: 4px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* два рядки однакової ширини: Casino / PayPal */
.logo-text { display: block; line-height: 1.02; }
/* трекінг у .l1 і кегль у .l2 підібрані так, щоб обидва рядки були однакової
   ширини; margin-right гасить хвостовий letter-spacing після останньої літери */
.logo-text .l1 {
  display: block; color: #fff; font-size: 21px; font-weight: 600; letter-spacing: 2.2px;
  margin-right: -2.2px; text-transform: uppercase;
}
.logo-text .l2 { display: block; font-size: 27px; font-weight: 800; font-style: italic; letter-spacing: -.2px; }
.logo-text .l2 b { color: var(--pp-blue); font-weight: 800; }
.logo-text .l2 i { color: var(--pp-cyan); font-weight: 800; font-style: italic; }

.header-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--pp-cyan); color: #04283c; text-decoration: none;
  font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 7px; white-space: nowrap;
}
.header-cta:hover { background: #2eb4ea; }

.main-nav { border-top: 1px solid #1e2540; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.main-nav a {
  display: block; color: #e4e8f4; text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 13px 16px;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: #fff; }

/* випадаюче підменю: відкривається по кліку (assets/nav.js), не по наведенню */
.main-nav li { position: relative; }

/* метрики один в один як у `.main-nav a`, інакше пункт з кареткою
   стає нижчим за сусідів і «під'їжджає» вгору */
.sub-toggle {
  display: flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  color: #e4e8f4; font: 600 15px/1.65 var(--font);
  padding: 13px 16px;
}
.sub-toggle:hover, .menu-item-has-children.is-open > .sub-toggle { color: #fff; }

.sub-caret {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
.menu-item-has-children.is-open .sub-caret { transform: rotate(-135deg) translate(-2px, -2px); }

.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 230px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #151b2f;
  border: 1px solid #27304d;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
.menu-item-has-children.is-open > .sub-menu { display: block; }

.main-nav .sub-menu a {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav .sub-menu a:hover { background: #1e2740; color: #fff; }

@media (max-width: 640px) {
  .main-nav li { position: static; }
  .sub-toggle { padding: 12px; font-size: 15px; }
  .main-nav .sub-menu { left: 16px; right: 16px; min-width: 0; }
}

/* ---------------- hero ---------------- */

.hero { background: var(--bg-hero); color: #fff; padding: 26px 0 34px; }
.hero .crumbs { font-size: 14px; color: #9aa3bd; margin-bottom: 18px; }
.hero .crumbs a { color: #9aa3bd; text-decoration: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 30px; align-items: center; }
.hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1; margin: 0 0 16px; font-weight: 700; letter-spacing: -.6px;
}
.hero p.lead { font-size: clamp(16px, 1.3vw, 18px); font-weight: 400; color: #e7ebf7; margin: 0 0 22px; }
.hero p.lead strong { color: #fff; font-weight: 700; }
.hero-art { border-radius: 14px; overflow: hidden; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.tile {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 16px 12px; text-align: center;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px;
}
.tile:hover { background: rgba(255,255,255,.12); }
.tile .ico { display: block; font-size: 24px; margin-bottom: 8px; }

/* ---------------- author blocks ---------------- */

.author-line { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-top: 22px; }
.author-line .who { display: flex; align-items: center; gap: 10px; }
.author-line img, .author-card img {
  border-radius: 50%; background: #2a3152; object-fit: cover; flex: 0 0 auto;
}
.author-line img { width: 42px; height: 42px; }
.author-card img { width: 72px; height: 72px; }
.author-line .meta { font-size: 13.5px; line-height: 1.4; color: #eef1f9; }
.author-line .meta .role { color: #b9c0d6; }
.author-line .meta a { color: #fff; font-weight: 700; text-decoration: none; }
.author-line .meta a:hover { text-decoration: underline; }

.author-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 18px; align-items: flex-start; margin: 34px 0;
}
.author-card .body { flex: 1; }
.author-card h2 { margin: 0 0 6px; font-size: 20px; }
.author-card .role { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.author-card p { margin: 0 0 10px; }
.author-card .more { font-weight: 700; text-decoration: none; }

.author-quote {
  border-left: 4px solid var(--accent); background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 30px 0; font-size: 18px; font-style: italic; color: #2b3140;
}
.author-quote footer { margin-top: 10px; font-size: 14px; font-style: normal; color: var(--muted); }

/* ---------------- content ---------------- */

.content-area { padding: 34px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }

.entry h2 { font-size: 27px; margin: 34px 0 12px; }
.entry h3 { font-size: 21px; margin: 26px 0 10px; }
.entry h2:first-child, .entry h3:first-child { margin-top: 0; }
.entry p { margin: 0 0 16px; }
.entry ul, .entry ol { margin: 0 0 18px; padding-left: 22px; }
.entry li { margin-bottom: 7px; }

.entry table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.entry th, .entry td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
.entry th { background: #eef1f7; font-weight: 700; }
.entry tr:nth-child(even) td { background: #fafbfd; }

.entry figure.full { margin: 26px 0; }
.entry figure.full img { width: 100%; border-radius: var(--radius); display: block; }
.entry figure.full figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.proscons > div { border-radius: var(--radius); padding: 18px 20px; }
.proscons .pros { background: var(--pro); border: 1px solid var(--pro-line); }
.proscons .cons { background: var(--con); border: 1px solid var(--con-line); }
.proscons h3 { margin: 0 0 10px; font-size: 17px; }
.proscons .pros h3 { color: #14742f; }
.proscons .cons h3 { color: #a82727; }
.proscons ul { margin: 0; padding-left: 20px; }

.faq h3 { font-size: 19px; margin: 22px 0 8px; }
.faq p { margin: 0 0 14px; }

/* акордеон: H3 + абзац у контенті перетворюються скриптом на клікабельний блок */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item.is-open { border-color: #c2d3ef; box-shadow: 0 2px 10px rgba(26, 43, 82, .07); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 16px 18px;
  font: 700 17px/1.4 var(--font);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.faq-q:hover { background: #f7f9fd; }
.faq-q-text { flex: 1; }

.faq-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  position: relative;
  border-radius: 50%;
  background: #eef2fa;
  transition: transform .18s ease, background .18s ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  background: #4a5568;
  border-radius: 2px;
}
.faq-icon::after { transform: rotate(90deg); transition: opacity .18s ease; }
.faq-item.is-open .faq-icon { background: var(--pp-cyan); transform: rotate(180deg); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: #fff; }
.faq-item.is-open .faq-icon::after { opacity: 0; }

.faq-a { display: none; padding: 0 18px 16px; }
.faq-item.is-open .faq-a { display: block; }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------------- footer ---------------- */

.site-footer { background: var(--bg-dark); color: #aab2c8; margin-top: 40px; padding: 34px 0 26px; font-size: 15px; }
/* чотири колонки: бренд, рубрики, магазин і EAT, зовнішня допомога.
   Меню в шапці свідомо коротке (6 пунктів), тому повний доступ до розділів
   дає футер — README 6.9. */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #aab2c8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-note { border-top: 1px solid #1e2540; margin-top: 26px; padding-top: 18px; font-size: 13px; color: #7d869c; }
.age { display: inline-block; border: 2px solid #d33b3b; color: #ff8a8a; border-radius: 50%; width: 34px; height: 34px; line-height: 30px; text-align: center; font-weight: 800; font-size: 12px; margin-right: 10px; vertical-align: middle; }

/* ---------------- responsive ---------------- */

/* На вузьких екранах текст іде першим, а картинка стає компактною ілюстрацією
   під ним. Раніше було навпаки (order: -1) — величезний арт зверху, текст унизу. */
@media (max-width: 980px) {
  .hero { padding: 22px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-art { order: 2; max-width: 440px; margin: 0 auto; width: 100%; }
  .tiles { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
  .tile { padding: 14px 10px; font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }

  .header-bar { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .header-side { display: none; }
  .header-side.right { display: flex; justify-content: center; }
  /* меню на мобільному це горизонтальна стрічка з прокруткою. nowrap потрібен і на
     .sub-toggle: відколи всі пункти верхнього рівня мають підменю, вони рендеряться
     кнопкою, а не посиланням, і без цього підпис ламається на два рядки всередині */
  .main-nav ul { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .main-nav a, .main-nav .sub-toggle { padding: 12px 12px; white-space: nowrap; }

  .hero-art { max-width: 340px; }
  .hero p.lead { font-size: 16px; }
  .author-line { gap: 14px; margin-top: 18px; }
  .author-line .who { flex: 1 1 100%; }

  .content-area { padding: 22px 0 6px; }
  .card { padding: 20px 16px; }
  .entry h2 { font-size: 23px; margin: 26px 0 10px; }
  .entry h3 { font-size: 19px; }
  .proscons { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .entry table { display: block; overflow-x: auto; }
}

/* ---------------- author profile (страницы авторов) ---------------- */

.author-profile {
  display: flex; gap: 22px; align-items: flex-start;
  background: #f7f9fc; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 0 0 28px;
}
.author-profile img {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; background: #2a3152; flex: 0 0 auto;
}
.author-profile .body { flex: 1; min-width: 0; }
.author-profile .role { font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 14px; }
.author-profile ul.facts { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.author-profile ul.facts li {
  padding: 7px 0; border-top: 1px solid var(--line); margin: 0;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.author-profile ul.facts li:first-child { border-top: 0; padding-top: 0; }
.author-profile ul.facts strong { flex: 0 0 210px; color: var(--muted); font-weight: 600; }

.author-profile.compact { margin: 0 0 18px; padding: 20px 22px; }
.author-profile.compact img { width: 120px; height: 120px; }
.author-profile.compact h3 { margin: 0 0 4px; font-size: 20px; }
.author-profile.compact h3 a { text-decoration: none; }
.author-profile.compact .role { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.author-profile.compact p { margin: 0 0 10px; }
.author-profile.compact .more { font-weight: 700; text-decoration: none; }

/* ---------------- auto-évaluation (тест ризику) ---------------- */

.autoeval { margin: 26px 0 32px; }
.autoeval-app {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #f7f9fc; padding: 24px 26px;
}
.autoeval-head h3 { margin: 0 0 4px; font-size: 20px; }
.autoeval-progress { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

/* лінію-роздільник малюємо через ::before, а не border-top:
   legend з display:flex перестає «розривати» рамку fieldset і риска йде крізь текст */
.autoeval-q { border: 0; margin: 0; padding: 0 0 4px; }
.autoeval-q + .autoeval-q::before {
  content: ""; display: block; height: 1px; background: var(--line); margin: 18px 0;
}
.autoeval-q legend { display: flex; gap: 10px; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.autoeval-q .opts { clear: both; }
.autoeval-q legend .num {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: #e3e8f2;
  color: var(--muted); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.autoeval-q.answered legend .num { background: var(--accent); color: #fff; }
.autoeval-q legend .txt { font-weight: 600; }

.autoeval-q .opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.autoeval-q .opts input { position: absolute; opacity: 0; width: 0; height: 0; }
.autoeval-q .opts label {
  display: block; text-align: center; cursor: pointer; user-select: none;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 10px 8px; font-size: 14px; line-height: 1.3;
}
.autoeval-q .opts label:hover { border-color: var(--accent); }
.autoeval-q .opts input:checked + label {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
}
.autoeval-q .opts input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.autoeval-submit, .autoeval-again {
  margin-top: 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 700; padding: 13px 22px;
}
.autoeval-submit:hover:enabled, .autoeval-again:hover { background: var(--accent-hover); }
.autoeval-submit:disabled { background: #d3d9e5; color: #7c8598; cursor: not-allowed; }
.autoeval-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

.autoeval-result { display: none; }
.autoeval-result.shown { display: block; margin-top: 26px; padding-top: 24px; border-top: 2px solid var(--line); }
.autoeval-badge { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 10px; color: #fff; }
.autoeval-badge .b-title { font-size: 21px; font-weight: 700; }
.autoeval-badge .b-score { font-size: 14px; opacity: .92; }
.autoeval-badge.z0 { background: #1f9d4d; }
.autoeval-badge.z1 { background: #6ba233; }
.autoeval-badge.z2 { background: #d1801d; }
.autoeval-badge.z3 { background: #c22f2f; }

.autoeval-gauge-wrap { margin: 18px 0 6px; }
.autoeval-gauge { width: 100%; height: auto; display: block; }
.autoeval-gauge .g-score { font-family: var(--font); font-size: 21px; font-weight: 700; fill: #1a1e28; }
.autoeval-gauge .g-band { font-family: var(--font); font-size: 13px; fill: #5b6478; }
.autoeval-gauge .g-axis { font-family: var(--font); font-size: 12.5px; fill: #8a92a6; }

.autoeval-lead { margin: 6px 0 18px; }
.autoeval-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 12px; }
.autoeval-sub .sub-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.autoeval-sub .sub-label { color: var(--muted); }
.autoeval-sub .sub-val { font-weight: 700; }
.autoeval-sub .sub-track { height: 12px; border-radius: 6px; background: #e3e8f2; overflow: hidden; }
.autoeval-sub .sub-fill { height: 100%; border-radius: 6px; }
.autoeval-subs-note { font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.autoeval-result h4 { font-size: 18px; margin: 0 0 10px; }
.autoeval-todo { margin: 0 0 18px; padding-left: 22px; }
.autoeval-todo li { margin-bottom: 8px; }
.autoeval-disclaimer { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .author-profile { flex-direction: column; padding: 18px 16px; }
  .author-profile img { width: 120px; height: 120px; }
  .author-profile ul.facts li { display: block; }
  .author-profile ul.facts strong { display: block; flex: none; }

  .autoeval-app { padding: 18px 14px; }
  .autoeval-q .opts { grid-template-columns: 1fr 1fr; }
  .autoeval-submit, .autoeval-again { width: 100%; }
  .autoeval-subs { grid-template-columns: 1fr; }
  /* svg масштабується разом з viewBox, тому на вузькому екрані підписи треба
     збільшувати в user-units, інакше вони стають нечитабельні */
  .autoeval-gauge .g-score { font-size: 30px; }
  .autoeval-gauge .g-band { font-size: 19px; }
  .autoeval-gauge .g-axis { font-size: 17px; }
  .autoeval-sub .sub-head { display: block; }
  .autoeval-sub .sub-val { display: block; margin-top: 2px; }
}

/* ---------- «Wie wir testen»: наскрізна схема методики ----------
   Три варіанти вигляду, вибір посайтовий (config: test_flow).
   Кольори беруться зі змінних, тому на кожному домені схема сама
   вбирається в його палітру, а не тягне за собою чужу.            */

.test-flow { margin: 30px 0 0; }
.tf-title { font-size: 22px; margin: 0 0 6px; letter-spacing: -.3px; }
.tf-lead { color: var(--muted); font-size: 16px; margin: 0 0 20px; max-width: 78ch; }
.tf-more { margin: 16px 0 0; font-size: 15px; }
.tf-icon { width: 24px; height: 24px; display: block; }

/* --- варіант rail: чотири кроки на спільній лінії --- */

.tf-rail .tf-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.tf-rail .tf-step { position: relative; padding: 0 14px; text-align: center; margin: 0; }
.tf-rail .tf-step::before {
  content: ""; position: absolute; top: 27px; left: 0; right: 50%;
  border-top: 2px solid var(--line);
}
.tf-rail .tf-step::after {
  content: ""; position: absolute; top: 27px; left: 50%; right: 0;
  border-top: 2px solid var(--line);
}
.tf-rail .tf-step:first-child::before, .tf-rail .tf-step:last-child::after { display: none; }
.tf-rail .tf-badge {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--bg-dark); color: #fff;
}
.tf-rail .is-clock .tf-badge { background: var(--pp-cyan); }
.tf-rail .tf-num {
  position: absolute; right: -4px; bottom: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--bg-dark);
  border: 2px solid var(--line);
  font-size: 12px; font-weight: 800; line-height: 18px; text-align: center;
}
.tf-rail .tf-body { display: block; margin-top: 12px; }
.tf-rail .tf-step-title { display: block; font-size: 16px; line-height: 1.3; }
.tf-rail .tf-note { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.tf-rail .tf-detail { display: block; font-size: 14px; line-height: 1.5; margin-top: 8px; text-align: left; }

/* --- варіант tiles: чотири щільні плитки, без лінії --- */

.tf-tiles .tf-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.tf-tiles .tf-step {
  position: relative; overflow: hidden; margin: 0;
  padding: 16px 16px 18px;
  background: var(--bg-dark); color: #fff; border-radius: var(--radius);
}
.tf-tiles .is-clock { background: linear-gradient(160deg, #2a2470 0%, var(--bg-dark) 70%); }
.tf-tiles .tf-badge { display: block; color: var(--pp-cyan); }
.tf-tiles .tf-num {
  position: absolute; right: 10px; top: 2px;
  font-size: 44px; font-weight: 800; line-height: 1;
  color: #fff; opacity: .13;
}
.tf-tiles .tf-body { display: block; margin-top: 12px; }
.tf-tiles .tf-step-title { display: block; font-size: 16px; line-height: 1.3; }
.tf-tiles .tf-note { display: block; color: #b9c0dd; font-size: 14px; line-height: 1.45; margin-top: 4px; }
.tf-tiles .tf-detail { display: block; color: #cfd4e8; font-size: 14px; line-height: 1.5; margin-top: 8px; }

/* --- варіант stopwatch: суцільне SVG, підписи всередині малюнка --- */

.tf-figure { margin: 0; }
.tf-svg { width: 100%; height: auto; display: block; }
.tf-svg-v { display: none; }

@media (max-width: 860px) {
  .tf-rail .tf-steps, .tf-tiles .tf-steps { grid-template-columns: 1fr 1fr; }
  .tf-rail .tf-step { padding-bottom: 20px; }
  .tf-rail .tf-step:nth-child(2)::after, .tf-rail .tf-step:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) {
  .tf-rail .tf-steps, .tf-tiles .tf-steps { grid-template-columns: 1fr; }
  .tf-rail .tf-step { display: flex; gap: 14px; text-align: left; padding: 0 0 18px; }
  .tf-rail .tf-step::before, .tf-rail .tf-step::after { display: none; }
  .tf-rail .tf-step:not(:last-child) .tf-badge::after {
    content: ""; position: absolute; left: 50%; top: 54px; height: 34px;
    border-left: 2px solid var(--line);
  }
  .tf-rail .tf-badge { flex: 0 0 54px; }
  .tf-rail .tf-body { margin-top: 2px; }
  .tf-svg-h { display: none; }
  .tf-svg-v { display: block; }
}

/* Рубрика «Wo es nicht geklappt hat» (README 6.8): бокс із протоколом збоїв
   усередині огляду казино. Іконка — маскот сайту, задається в посайтовому CSS
   через --note-icon, бо маскот у кожного домену свій. Без JS: це статичний
   блок, який має однаково працювати на десятках доменів. */
.fail-note {
  position: relative;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: #fffdf7;
  padding: 16px 18px 14px 60px;
  margin: 22px 0;
}
.fail-note::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 30px;
  height: 30px;
  background: var(--note-icon, none) center/contain no-repeat;
  opacity: .95;
}
.fail-note h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.fail-note p { margin: 0 0 10px; }
.fail-note p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .fail-note { padding: 14px 14px 12px 14px; }
  .fail-note::before { position: static; display: block; margin-bottom: 8px; }
}

/* Індекс дочірніх сторінок на хабі (README 6.9). Рендериться темою, тому стилі
   тут, а не в посайтовому CSS: механізм спільний, зміст у кожного свій. */
.child-index { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.child-index h2 { margin: 0 0 14px; }
.child-index ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.child-index li { line-height: 1.5; }
.child-index a { font-weight: 700; text-decoration: none; }
.child-index a:hover { text-decoration: underline; }
.child-index span { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .child-index ul { grid-template-columns: 1fr; } }

/* Хаб-сторінка зі списком статей (wpgen_listing_hub) */
.hub-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hub-card { border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.hub-card__rubric { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.hub-card__title { font-size: 20px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.hub-card__title:hover { text-decoration: underline; }
.hub-card__ex { margin: 0; color: var(--muted); line-height: 1.55; }
.hub-card__foot { margin-top: auto; padding-top: 10px; display: flex; gap: 16px; color: var(--muted); font-size: 14px; }
.hub-empty { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .hub-list { grid-template-columns: 1fr; } }
/* на хаб-лістингу зовнішня картка зайва: картки статей самі і є вмістом */
.entry:has(> .hub-list), .entry:has(> .hub-empty) { background: none; border: 0; padding: 0; }
