/* ==========================================================================
   DLS – Tudástár (gyűjtőoldal + cikk) kiegészítő stílusok
   A meglévő dls.hu style.css UTÁN töltendő be; azt nem írja felül,
   minden szabály a .tudastar / .tt- előtagú osztályokra vonatkozik.
   Színek és betűk a style.css-ből: Montserrat 400/600/800,
   #27348B kék, #BABFC4 szürke, #4A4E52 / #9DA1A6 szövegszürkék.
   ========================================================================== */

/* 1. Változók --------------------------------------------------------------- */
.tudastar {
  --tt-blue: #27348B;
  --tt-blue-link: #26348b;
  --tt-grey: #BABFC4;
  --tt-grey-light: #F1F2F3;
  --tt-text: #212529;
  --tt-text-2: #4A4E52;
  --tt-text-3: #9DA1A6;
  --tt-line: #d1d1d1;
  --tt-measure: 820px;           /* olvasható sorhossz a cikkben */
  color: var(--tt-text);
}

/* 2. Kenyérmorzsa ----------------------------------------------------------- */
.tt-breadcrumb { font-size: 13px; text-transform: uppercase; margin: 0; }
.tt-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.tt-breadcrumb li { color: var(--tt-text-3); }
.tt-breadcrumb li + li::before { content: '›'; padding: 0 .5rem; color: var(--tt-text-3); }
.tt-breadcrumb a { color: var(--tt-blue-link); }
.tt-breadcrumb a:hover { text-decoration: underline; }
.tt-hero .tt-breadcrumb li,
.tt-hero .tt-breadcrumb li + li::before { color: rgba(255,255,255,.7); }
.tt-hero .tt-breadcrumb a { color: #fff; }

/* 3. Gyűjtőoldal – fejsáv --------------------------------------------------- */
.tt-hero { background: var(--tt-blue); color: #fff; position: relative; overflow: hidden; }
.tt-hero::after {               /* ferde szürke sáv – a dls.hu skew motívuma */
  content: ''; position: absolute; top: 0; bottom: 0; right: -6rem; width: 18rem;
  background: var(--tt-grey); opacity: .18; transform: skew(-14deg);
}
.tt-hero h1 { color: #fff; font-size: 3rem; line-height: 1.1; margin: 1rem 0; position: relative; z-index: 1; }
.tt-hero .tt-lead { font-size: 1.2rem; max-width: 46rem; color: rgba(255,255,255,.9); position: relative; z-index: 1; }

/* 4. Gyűjtőoldal – kategória és kártyák ------------------------------------ */
.tt-cat-title { color: var(--tt-blue-link); font-size: 28px; margin-bottom: 1.5rem; display: flex; align-items: center; }
.tt-cat-title::before {          /* ferde kék jelölő a kategóriacím előtt */
  content: ''; display: inline-block; width: 14px; height: 1.6rem; margin-right: .75rem;
  background: var(--tt-blue); transform: skew(-14deg);
}
.tt-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-top: 6px solid var(--tt-blue);
  box-shadow: 0 0 0 1px #e3e5e8; padding: 1.75rem 1.5rem 1.5rem;
  color: var(--tt-text-2);
}
a.tt-card:hover { color: var(--tt-text-2); }
.tt-card .category { margin-bottom: .5rem; }
.tt-card h3 { color: var(--tt-blue-link); font-size: 24px; margin-bottom: .75rem; }
.tt-card p { font-size: .95rem; line-height: 1.6; margin-bottom: 1.25rem !important; }
.tt-card-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e3e5e8; padding-top: 1rem; }
.tt-card-meta time { font-size: 13px; color: var(--tt-text-3); }
.tt-card .more { font-weight: 600; }
.tt-card .more::after { content: ''; }

/* 5. Cikk – fej ------------------------------------------------------------- */
.tt-article { max-width: var(--tt-measure); margin: 0 auto; }
.tt-article h1 { color: var(--tt-blue-link); font-size: 2.4rem; line-height: 1.2; margin: 1.25rem 0 .75rem; }
.tt-article .updated { font-size: 14px; color: #555; margin-bottom: 1.5rem !important; }

/* Válaszmag – a H1 utáni első elem, kiemelt dobozban (nem kép, nem lenyíló) */
.tt-answer {
  background: var(--tt-grey-light); border-left: 6px solid var(--tt-blue);
  padding: 1.5rem 1.75rem; margin-bottom: 2rem;
}
.tt-answer p { font-size: 1.15rem; line-height: 1.65; font-weight: 600; color: var(--tt-text); margin: 0; }

/* 6. Cikk – törzsszöveg ----------------------------------------------------- */
.tt-body h2, .tt-faq h2 { color: var(--tt-blue-link); font-size: 28px; margin: 2.5rem 0 1rem; }
.tt-body p { line-height: 1.75; margin-bottom: 1rem !important; }
.tt-body a, .tt-faq a { text-decoration: underline; text-underline-offset: 2px; }
.tt-body a:hover, .tt-faq a:hover { color: var(--tt-blue); text-decoration: none; }
/* kimenő link jelölése (új lapon nyílik) */
.tt-body a[target="_blank"]::after, .tt-faq a[target="_blank"]::after { content: '\2197'; font-size: .8em; margin-left: .15em; text-decoration: none; display: inline-block; }

/* számozott lista – ferde kék sorszám */
.tt-body ol { list-style: none; counter-reset: tt-ol; padding: 0; margin: 0 0 1.25rem; }
.tt-body ol > li { counter-increment: tt-ol; position: relative; padding-left: 3.25rem; margin-bottom: 1rem; line-height: 1.75; }
.tt-body ol > li::before {
  content: counter(tt-ol); position: absolute; left: 0; top: .1rem;
  width: 2.1rem; height: 2.1rem; line-height: 2.1rem; text-align: center;
  background: var(--tt-blue); color: #fff; font-weight: 800; transform: skew(-10deg);
}
/* felsorolás – ferde kék négyzet */
.tt-body ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.tt-body ul > li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; line-height: 1.75; }
.tt-body ul > li::before {
  content: ''; position: absolute; left: .25rem; top: .6rem;
  width: 10px; height: 10px; background: var(--tt-blue); transform: skew(-14deg);
}
.tt-body li strong { color: var(--tt-text); font-weight: 800; }

/* táblázat – valódi <table>, mobilon vízszintesen görgethető tárolóban */
.tt-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25rem 0 1.5rem; }
.tt-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.tt-table th { background: var(--tt-blue); color: #fff; font-weight: 600; text-align: left; padding: .75rem 1rem; }
.tt-table td { padding: .75rem 1rem; border-bottom: 1px solid #e3e5e8; vertical-align: top; }
.tt-table tbody tr:nth-child(even) td { background: var(--tt-grey-light); }
.tt-table td:not(:first-child), .tt-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.tt-table.tt-table--text td:not(:first-child), .tt-table.tt-table--text th:not(:first-child) { text-align: left; white-space: normal; }
.tt-table caption { caption-side: bottom; font-size: 13px; color: var(--tt-text-2); padding: .5rem 0 0; }

/* letöltés blokk (T03-típusú cikkhez) */
.tt-download { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; background: var(--tt-grey-light); padding: 1.25rem 1.5rem; }
.tt-download p { margin: 0 !important; flex: 1 1 16rem; }
.tt-download .btn { color: #fff; }

/* 7. GYIK – minden válasz alapból látható, nincs harmonika ----------------- */
.tt-faq { margin-top: 0; }
.tt-faq-item { border-top: 1px solid var(--tt-line); padding: 1.25rem 0; }
.tt-faq-item:last-child { border-bottom: 1px solid var(--tt-line); }
.tt-faq h3 { font-size: 20px; font-weight: 600; color: var(--tt-text-2); margin: 0 0 .5rem; }
.tt-faq p { margin: 0 !important; }

/* 8. Szerzői sáv ------------------------------------------------------------ */
.tt-author { margin-top: 2.5rem; background: var(--tt-grey-light); padding: 1.5rem 1.75rem; border-top: 3px solid var(--tt-grey); }
.tt-author p { margin: 0 !important; line-height: 1.6; }
.tt-author .tt-author-name { font-weight: 600; color: var(--tt-text); }
.tt-author .tt-legal { margin-top: .75rem !important; font-size: 14px; color: var(--tt-text-2); }

/* 9. Fókuszállapot ---------------------------------------------------------- */
.tudastar a:focus-visible { outline: 2px solid var(--tt-blue); outline-offset: 3px; }

/* 10. Reszponzív ------------------------------------------------------------ */
@media (max-width: 992px) {
  .tt-hero h1 { font-size: 2.25rem; }
  .tt-article h1 { font-size: 2rem; }
}
@media (max-width: 576px) {
  .tt-hero h1 { font-size: 1.9rem; }
  .tt-hero .tt-lead { font-size: 1rem; }
  .tt-article h1 { font-size: 1.6rem; }
  .tt-answer { padding: 1.25rem; }
  .tt-answer p { font-size: 1.05rem; }
  .tt-body h2, .tt-faq h2 { font-size: 22px !important; margin-top: 2rem; }   /* style.css 576px alatt h2:21px!important */
  .tt-faq h3 { font-size: 18px !important; }
  .tt-card h3 { font-size: 21px !important; }
  .tt-body ol > li { padding-left: 2.75rem; }
}

/* 11. Nyomtatás (a PDF-változat is ebből készülhet) ------------------------ */
@media print {
  .tt-body a[target="_blank"]::after { content: ' (' attr(href) ')'; font-size: .8em; }
  .tt-table { overflow: visible; }
  .tt-answer, .tt-author, .tt-table tbody tr:nth-child(even) td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
