/* ============================================================
   Torgsoft — стиль довгих статей/новин (scoped .ts-news)
   Підключати у head ПІСЛЯ main.css:
   <link rel="stylesheet" href="[(site_url)]assets/css/news-article.css?v=3">
   Бренд: red #D43911 · graphite #28282B · yellow #FAC739 · blue #1377BD
   Шрифт: Rubik (self-hosted у main.css)
   ============================================================ */

.ts-news{
    --ts-red:#D43911;
    --ts-red-dark:#B9310F;
    --ts-graphite:#28282B;
    --ts-yellow:#FAC739;
    --ts-blue:#1377BD;
    --ts-ink:#1F2430;
    --ts-muted:#5B6270;
    --ts-line:#E7E9EF;
    --ts-bg-soft:#F7F8FB;

    font-family:'Rubik',sans-serif;
    color:var(--ts-ink);
    max-width:860px;
    margin:0 auto;
    padding:8px 0 24px;
    font-size:17px;
    line-height:1.62;
    -webkit-font-smoothing:antialiased;
}
.ts-news *{box-sizing:border-box;}

/* ---- скидання конфліктів із легасі .content ---- */
.ts-news p,
.ts-news ul,
.ts-news ol,
.ts-news li,
.ts-news table,
.ts-news h2,
.ts-news h3{
    float:none;
    width:auto;
}

/* ---- Шапка статті ---- */
.ts-news__eyebrow{
    display:inline-block;
    font-size:13px;
    font-weight:600;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--ts-red);
    background:rgba(212,57,17,.08);
    padding:5px 12px;
    border-radius:20px;
    margin-bottom:16px;
}
.ts-news__title{
    font-size:38px;
    line-height:1.18;
    font-weight:700;
    color:var(--ts-graphite);
    margin:0 0 14px;
    letter-spacing:-.01em;
}
.ts-news__meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 16px;
    color:var(--ts-muted);
    font-size:14px;
    padding-bottom:22px;
    margin-bottom:26px;
    border-bottom:2px solid var(--ts-line);
}
.ts-news__meta b{color:var(--ts-graphite);font-weight:600;}
.ts-news__meta span{display:inline-flex;align-items:center;gap:6px;}
.ts-news__meta span::before{
    content:"";
    width:6px;height:6px;border-radius:50%;
    background:var(--ts-yellow);
}

/* ---- Лід ---- */
.ts-news__lead{
    font-size:19px;
    line-height:1.6;
    color:var(--ts-ink);
    background:var(--ts-bg-soft);
    border-left:4px solid var(--ts-yellow);
    padding:18px 22px;
    border-radius:0 12px 12px 0;
    margin:0 0 14px;
}
.ts-news__lead + p{margin-top:0;}

/* ---- Абзаци, текст ---- */
.ts-news p{margin:0 0 18px;}
.ts-news strong,.ts-news b{font-weight:600;color:var(--ts-graphite);}
.ts-news a{
    color:var(--ts-blue);
    text-decoration:none;
    border-bottom:1px solid rgba(19,119,189,.35);
    transition:color .2s ease,border-color .2s ease;
    overflow-wrap:anywhere;
}
.ts-news a:hover{color:var(--ts-red);border-color:var(--ts-red);}

/* ---- Заголовки розділів ---- */
.ts-news h2{
    font-size:25px;
    line-height:1.25;
    font-weight:700;
    color:var(--ts-graphite);
    margin:44px 0 16px;
    padding-left:16px;
    position:relative;
}
.ts-news h2::before{
    content:"";
    position:absolute;left:0;top:5px;bottom:5px;
    width:5px;border-radius:3px;
    background:linear-gradient(180deg,var(--ts-red),var(--ts-yellow));
}
.ts-news h3{
    font-size:19px;
    font-weight:600;
    color:var(--ts-graphite);
    margin:28px 0 12px;
}

/* ---- Списки ---- */
/* захист від легасі-декору списків із глобального main.css:
   лівого бордера-смужки, жовтої крапки, фонів і float — усе гасимо всередині .ts-news */
.ts-news ul,.ts-news ol{
    border:0 !important;
    background:none !important;
    box-shadow:none !important;
    list-style:none;
    margin:0 0 20px;
    padding-left:4px;
}
.ts-news ul::before,.ts-news ul::after,
.ts-news ol::before,.ts-news ol::after{content:none !important;}
.ts-news ul li,.ts-news ol li{
    border:0 !important;
    background:none !important;
    float:none !important;
}
.ts-news ul li::after,
.ts-news ol li::after{content:none !important;display:none !important;}
.ts-news ul li,.ts-news ol li{
    position:relative;
    padding-left:28px;
    margin-bottom:9px;
    list-style:none;
}
.ts-news ul li::before{
    content:"";
    position:absolute;left:6px;top:10px;
    width:7px;height:7px;border-radius:2px;
    background:var(--ts-red);
    transform:rotate(45deg);
}
.ts-news ol{counter-reset:tsnum;}
.ts-news ol li{padding-left:34px;}
.ts-news ol li::before{
    counter-increment:tsnum;
    content:counter(tsnum);
    position:absolute;left:0;top:2px;
    width:22px;height:22px;
    display:flex;align-items:center;justify-content:center;
    font-size:12px;font-weight:600;
    color:#fff;background:var(--ts-graphite);
    border-radius:50%;
}

/* ---- Картки ключових дат ---- */
.ts-datecards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
    gap:12px;
    margin:24px 0 8px;
}
.ts-datecard{
    background:#fff;
    border:1px solid var(--ts-line);
    border-top:3px solid var(--ts-red);
    border-radius:12px;
    padding:16px 16px 14px;
    box-shadow:0 2px 10px rgba(40,40,43,.04);
}
.ts-datecard .d{
    font-size:15px;font-weight:700;color:var(--ts-red);
    margin-bottom:6px;
}
.ts-datecard .t{font-size:14px;color:var(--ts-muted);line-height:1.45;}

/* ---- Виноски / callout ---- */
.ts-callout{
    border-radius:12px;
    padding:16px 18px 16px 52px;
    margin:22px 0;
    position:relative;
    font-size:16px;
    line-height:1.55;
}
.ts-callout p{margin:0;}
.ts-callout p + p{margin-top:10px;}
.ts-callout::before{
    position:absolute;left:16px;top:16px;
    width:24px;height:24px;
    display:flex;align-items:center;justify-content:center;
    font-weight:700;font-size:14px;border-radius:50%;color:#fff;
}
.ts-callout--info{background:rgba(19,119,189,.07);border:1px solid rgba(19,119,189,.22);}
.ts-callout--info::before{content:"i";background:var(--ts-blue);font-style:italic;}
.ts-callout--warn{background:rgba(212,57,17,.06);border:1px solid rgba(212,57,17,.22);}
.ts-callout--warn::before{content:"!";background:var(--ts-red);}
.ts-callout--tip{background:rgba(250,199,57,.14);border:1px solid rgba(250,199,57,.5);}
.ts-callout--tip::before{content:"✓";background:#C99700;}
.ts-callout__title{
    display:block;font-weight:600;color:var(--ts-graphite);
    margin-bottom:4px;
}

/* ---- Таблиці ---- */
.ts-table-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    margin:6px 0 24px;
    border:1px solid var(--ts-line);
    border-radius:12px;
}
.ts-news table.ts-table{
    width:100%;
    min-width:520px;
    border-collapse:collapse;
    margin:0;
    font-size:15px;
    background:#fff;
}
.ts-news table.ts-table th,
.ts-news table.ts-table td{
    text-align:left;
    padding:11px 14px;
    border:none;
    border-bottom:1px solid var(--ts-line);
    vertical-align:top;
    color:var(--ts-ink);
}
.ts-news table.ts-table thead th{
    background:var(--ts-graphite);
    color:#fff;
    font-weight:600;
    font-size:14px;
    white-space:nowrap;
}
.ts-news table.ts-table thead th:first-child{border-top-left-radius:12px;}
.ts-news table.ts-table thead th:last-child{border-top-right-radius:12px;}
.ts-news table.ts-table tbody tr:nth-child(even){background:var(--ts-bg-soft);}
.ts-news table.ts-table tbody tr:hover{background:rgba(250,199,57,.12);}
.ts-news table.ts-table tbody tr:last-child td{border-bottom:none;}

/* ---- Блок «Торгсофт допомагає» ---- */
.ts-tsoft{
    background:linear-gradient(180deg,#FFFDF5,#FFF7E0);
    border:1px solid rgba(250,199,57,.55);
    border-radius:14px;
    padding:18px 20px;
    margin:22px 0;
}
.ts-tsoft__head{
    display:flex;align-items:center;gap:10px;
    font-weight:600;color:var(--ts-graphite);
    font-size:16px;margin-bottom:8px;
}
.ts-tsoft__head::before{
    content:"";
    width:26px;height:26px;border-radius:7px;flex:none;
    background:var(--ts-red);
    -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 3 7v6c0 5 3.8 8.3 9 9 5.2-.7 9-4 9-9V7l-9-5Zm-1 13-3.5-3.5 1.4-1.4L11 12.2l4.1-4.1 1.4 1.4L11 15Z'/></svg>") center/22px no-repeat;
            mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 3 7v6c0 5 3.8 8.3 9 9 5.2-.7 9-4 9-9V7l-9-5Zm-1 13-3.5-3.5 1.4-1.4L11 12.2l4.1-4.1 1.4 1.4L11 15Z'/></svg>") center/22px no-repeat;
}
.ts-tsoft p{margin:0;font-size:15.5px;color:var(--ts-ink);}
.ts-tsoft a{font-weight:500;}

/* ---- Чек-лист ---- */
.ts-checklist{
    background:var(--ts-bg-soft);
    border:1px solid var(--ts-line);
    border-radius:14px;
    padding:22px 24px 8px;
    margin:22px 0;
}

/* ---- Часті запитання (FAQ) ---- */
.ts-faq{margin:22px 0;}
.ts-faq__item{
    border-bottom:1px solid var(--ts-line);
    padding:16px 0;
}
.ts-faq__item:first-child{border-top:1px solid var(--ts-line);}
.ts-faq__q{
    font-size:17px;
    font-weight:600;
    color:var(--ts-graphite);
    margin:0 0 6px;
    padding-left:30px;
    position:relative;
}
.ts-faq__q::before{
    content:"?";
    position:absolute;left:0;top:0;
    width:21px;height:21px;
    display:flex;align-items:center;justify-content:center;
    font-size:13px;font-weight:700;color:#fff;
    background:var(--ts-blue);border-radius:50%;
}
.ts-faq__a{margin:0;color:var(--ts-ink);}

/* ---- Заклик до дії (CTA) ---- */
.ts-cta{
    background:linear-gradient(180deg,#FFFDF5,#FFF7E0);
    border:1px solid rgba(250,199,57,.55);
    border-radius:14px;
    padding:24px;
    margin:28px 0;
    text-align:center;
}
.ts-cta p{margin:0 0 14px;font-size:17px;color:var(--ts-ink);}
.ts-news .ts-cta__btn{
    display:inline-block;
    background:var(--ts-red);
    color:#fff;
    font-weight:600;
    font-size:16px;
    padding:12px 28px;
    border-radius:10px;
    border-bottom:0;
    text-decoration:none;
    transition:background .2s ease;
}
.ts-news .ts-cta__btn:hover{
    background:var(--ts-red-dark);
    color:#fff;
    border-color:transparent;
}

/* ---- Джерела ---- */
.ts-sources{
    margin-top:44px;
    border-top:2px solid var(--ts-line);
    padding-top:26px;
}
.ts-sources h2{margin-top:0;}
.ts-sources ol{padding-left:4px;}
.ts-sources ol li{
    padding-left:34px;
    margin-bottom:12px;
    font-size:14.5px;
    line-height:1.5;
    color:var(--ts-muted);
}
.ts-sources ol li::before{background:var(--ts-blue);}
.ts-sources a{color:var(--ts-blue);}

/* ---- Підвал / дисклеймер ---- */
.ts-news__footer{
    margin-top:30px;
    padding:16px 18px;
    background:var(--ts-bg-soft);
    border-radius:12px;
    font-size:13.5px;
    color:var(--ts-muted);
    line-height:1.5;
}

/* ---- Адаптив ---- */
@media (max-width:640px){
    .ts-news{font-size:16px;padding:4px 0 16px;}
    .ts-news__title{font-size:29px;}
    .ts-news h2{font-size:22px;}
    .ts-news__lead{font-size:17px;padding:16px 18px;}
    .ts-callout{padding:14px 16px 14px 46px;}
}
