/* ==========================================================================
   AnimeSklep – strony tekstowe (page.php: Regulamin, Polityka prywatności…),
   port 1:1 z beta/assets/css/regulamin.css (prefiks as-tx-). Bloki artykułu
   stylowane też po zwykłych tagach z edytora (p, ul, ol, table, blockquote),
   żeby redaktor nie musiał znać klas bety; klasy bety (as-tx-steps, -callout,
   -bullets, -table) działają, gdy wklei je w bloku HTML.
   Ładowany tylko na tych stronach (inc/text-page.php), po theme.css.
   ========================================================================== */

.as-tx-main{position:relative;z-index:1;width:100%;max-width:var(--container);margin:0 auto;padding:0 var(--gutter) 112px;box-sizing:border-box}
.as-tx-kanji{position:absolute;right:-30px;top:40px;font-family:var(--font-jp);font-weight:900;font-size:340px;line-height:1;color:var(--g-900);letter-spacing:-.04em;pointer-events:none;user-select:none;z-index:0}

/* ---------- Breadcrumb ---------- */
.as-tx-crumb{position:relative;z-index:1;padding:24px 0 0;display:flex;align-items:center;gap:10px;font-size:14px;color:var(--g-400);flex-wrap:wrap}
.as-tx-crumb a{color:var(--g-400);text-decoration:none}
.as-tx-crumb a:hover{color:var(--v-400)}
.as-tx-crumb span{color:var(--g-700)}
.as-tx-crumb__current{color:var(--text)!important}

/* ---------- Nagłówek strony ---------- */
.as-tx-head{position:relative;z-index:1;padding:56px 0 48px;border-bottom:1px solid var(--border)}
.as-tx-h1{margin:0;font-family:var(--font-display);font-weight:900;font-size:64px;letter-spacing:-.04em;line-height:.95;max-width:900px;text-wrap:balance;color:var(--g-100)}

/* ---------- Układ: spis treści + artykuł ---------- */
.as-tx-layout{position:relative;z-index:1;display:flex;gap:64px;align-items:flex-start;padding-top:48px}

/* ---------- Spis treści (sticky, scroll-spy) ---------- */
.as-tx-toc{position:sticky;top:106px;flex:0 0 260px;display:flex;flex-direction:column;gap:20px}
.as-tx-toc__label{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--g-400)}
.as-tx-toc__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border-left:1px solid var(--border)}
.as-tx-toc__list a{display:flex;gap:12px;padding:9px 0 9px 16px;margin-left:-1px;border-left:2px solid transparent;font-size:14px;font-weight:500;line-height:1.35;color:var(--g-400);text-decoration:none;transition:color .2s,border-color .2s,padding-left .2s}
.as-tx-toc__list a:hover{color:var(--text)}
.as-tx-toc__num{flex:none;min-width:18px;padding-top:2px;font-family:var(--font-display);font-weight:700;font-size:12px;color:var(--g-700)}
.as-tx-toc__list a.is-active{padding-left:20px;border-left-color:var(--v-400);font-weight:600;color:var(--text)}
.as-tx-toc__list a.is-active .as-tx-toc__num{color:var(--v-400)}

/* ---------- Artykuł ---------- */
.as-tx-article{flex:1 1 520px;min-width:0;max-width:760px;display:flex;flex-direction:column;gap:16px;font-size:17px;line-height:1.7;color:var(--g-300)}
.as-tx-article > *{margin:0}
.as-tx-article p{margin:0;text-wrap:pretty}
.as-tx-article a{font-weight:500}
.as-tx-article strong{color:var(--text);font-weight:600}

.as-tx-h2{margin:40px 0 8px;font-family:var(--font-display);font-weight:900;font-size:30px;letter-spacing:-.03em;line-height:1.1;color:var(--text);display:flex;gap:16px;align-items:baseline;scroll-margin-top:110px}
.as-tx-article > .as-tx-h2:first-child{margin-top:0}
.as-tx-h2__num{color:var(--v-600);font-size:20px}
.as-tx-h3,.as-tx-article h3{margin:8px 0 0;font-family:var(--font-display);font-weight:700;font-size:20px;letter-spacing:-.01em;color:var(--text)}

/* ---- Numerowane kroki: zwykłe <ol> z edytora i .as-tx-steps ---- */
.as-tx-steps,.as-tx-article ol:not([class]){margin:0;padding:0 0 0 4px;list-style:none;display:flex;flex-direction:column;gap:12px;counter-reset:as-step}
.as-tx-steps li,.as-tx-article ol:not([class]) > li{display:flex;gap:16px}
.as-tx-steps__num,.as-tx-article ol:not([class]) > li::before{flex:none;width:28px;height:28px;margin-top:4px;border-radius:50%;background:var(--g-900);border:1px solid var(--border);display:grid;place-items:center;font-family:var(--font-display);font-weight:700;font-size:13px;color:var(--v-400)}
.as-tx-article ol:not([class]) > li::before{counter-increment:as-step;content:counter(as-step)}

/* ---- Dymek informacyjny ---- */
.as-tx-callout{display:flex;gap:16px;padding:18px 20px;border-radius:4px;background:rgba(167,139,250,.08);border:1px solid rgba(167,139,250,.25);font-size:15px;line-height:1.6}
.as-tx-callout strong{color:var(--text);font-weight:600}
.as-tx-callout__dot{flex:none;width:7px;height:7px;margin-top:9px;border-radius:50%;background:var(--v-400)}

/* ---- Wypunktowanie: zwykłe <ul> z edytora i .as-tx-bullets ---- */
.as-tx-bullets,.as-tx-article ul:not([class]){margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.as-tx-bullets li,.as-tx-article ul:not([class]) > li{display:flex;gap:14px}
.as-tx-bullets__dot,.as-tx-article ul:not([class]) > li::before{content:"";flex:none;width:6px;height:6px;margin-top:12px;border-radius:50%;background:var(--pink)}

/* ---- Tabela ---- */
.as-tx-tablewrap{border:1px solid var(--border);border-radius:4px;overflow:auto;background:var(--g-880)}
.as-tx-article figure.wp-block-table{margin:0;border:1px solid var(--border);border-radius:4px;overflow:auto;background:var(--g-880)}
.as-tx-table,.as-tx-article table{width:100%;border-collapse:collapse;font-size:15px;margin:0}
.as-tx-table thead tr,.as-tx-article thead tr{background:var(--g-900)}
.as-tx-table th,.as-tx-article th{text-align:left;padding:14px 20px;font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--g-400);border:0;border-bottom:1px solid var(--border)}
.as-tx-table td,.as-tx-article td{padding:14px 20px;border:0;border-bottom:1px solid var(--border);color:var(--text);font-weight:500}
.as-tx-table tbody tr:last-child td,.as-tx-article tbody tr:last-child td{border-bottom:0}
.as-tx-table__muted{color:var(--g-400);font-weight:400}
.as-tx-table__num{text-align:right}
.as-tx-table__price{font-family:var(--font-display);font-weight:700;color:var(--text)}
.as-tx-table__price--free{color:var(--emerald)}
.as-tx-note{font-size:15px;color:var(--g-400)}

/* ---- Cytat ---- */
.as-tx-quote,.as-tx-article blockquote{margin:8px 0 0;padding:4px 0 4px 24px;border-left:3px solid var(--pink);font-family:var(--font-display);font-weight:500;font-size:20px;line-height:1.45;letter-spacing:-.01em;color:var(--text);text-wrap:pretty}
.as-tx-article blockquote p{margin:0;font:inherit;color:inherit}

/* ---- Stopka artykułu ---- */
.as-tx-footnote{margin-top:40px;padding-top:32px;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;font-size:14px;color:var(--g-500)}
.as-tx-footnote__links{display:flex;gap:24px}
.as-tx-footnote__links a{color:var(--g-300);text-decoration:none}
.as-tx-footnote__links a:hover{color:var(--v-400)}

/* ---------- Responsywność ---------- */
@media (max-width:1023px){
  .as-tx-layout{flex-direction:column;gap:40px;padding-top:40px}
  .as-tx-toc{position:static;flex:none;width:100%}
  .as-tx-kanji{display:none}
  .as-tx-h1{font-size:44px}
  .as-tx-head{padding:40px 0 32px}
}
@media (max-width:639px){
  .as-tx-h1{font-size:34px}
  .as-tx-article{font-size:16px}
  .as-tx-h2{font-size:24px;margin-top:32px}
  .as-tx-table td,.as-tx-table th,.as-tx-article td,.as-tx-article th{padding:12px 14px}
  .as-tx-main{padding-bottom:64px}
}
