/* ============ rva.mtg.sk – new.css ============ */
:root{
  --bg1:#f3efe4; --bg2:#e7e1cf;
  --card:#ffffff; --line:#e6e0cc;
  --ink:#2a2a28; --muted:#7d765f;
  --accent:#c8643a; --accent2:#e98a4f;
  --label1:#f8f3e6; --label2:#efe6cf;
}

html{background:var(--bg1)}
body{
  margin:0; padding:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:15.5px; line-height:1.6; color:var(--ink);
  background:linear-gradient(180deg,var(--bg1),var(--bg2)) fixed;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(200,100,58,.3);transition:color .15s,border-color .15s}
a:hover{color:#9e4520;border-bottom-color:currentColor}
a:has(img){border-bottom:0}

/* ---------- layout ---------- */
.content{max-width:1000px;margin:0 auto !important;padding:48px 20px 40px;box-sizing:border-box}
.content > hr{display:none}
.content > h2 + p{display:none}            /* prázdny <p><br></p> pod "Free downloads" */

/* ---------- hlavička ---------- */
h1,h2,h1.title{font-family:Fraunces,Georgia,serif;letter-spacing:-.01em}
h1.title{font-size:3.2em;font-weight:700;margin:0;line-height:1.1}
.content > h1.title + hr + h2{margin:.25em 0 1.6em;font-size:1.35em;font-weight:500}
.content > h1.title + hr + h2 font{color:var(--accent2) !important}
h2 i{font-style:italic;font-weight:500}

/* intro tabuľka -> karta */
.content > table:first-of-type{
  display:block;background:var(--card);border:1px solid var(--line);border-radius:18px;
  box-shadow:0 4px 18px rgba(60,50,20,.07);padding:22px 26px;margin:0 0 48px;
}
.content > table:first-of-type > tbody{display:block}
.content > table:first-of-type tr{display:flex;gap:24px;align-items:center}
.content > table:first-of-type td{padding:0;font-size:1.02em}
.content > table:first-of-type td:first-child img{
  width:112px;height:112px;object-fit:cover;border-radius:50%;
  border:4px solid #fff;box-shadow:0 3px 12px rgba(0,0,0,.15);display:block;
}
.content > table:first-of-type center{
  margin-top:14px;padding-top:14px;border-top:1px dashed var(--line);font-size:.9em
}
.content > table:first-of-type center img{border-radius:6px;margin-top:6px;box-shadow:0 2px 8px rgba(0,0,0,.12)}

/* nadpis sekcie */
.content > h2[align="center"]:not(:first-of-type),
.content > table:first-of-type + hr + h2{
  font-size:.82em;font-family:Inter,sans-serif;font-weight:600;text-transform:uppercase;
  letter-spacing:.22em;color:var(--muted);margin:0 0 6px;
  display:flex;align-items:center;gap:16px;
}
.content > table:first-of-type + hr + h2::before,
.content > table:first-of-type + hr + h2::after{content:"";flex:1;height:1px;background:var(--line)}

/* ---------- karty programov ---------- */
.all{overflow:visible;background:transparent !important;border:0 !important;margin:20px 0 !important}
.all .inner,.all table.inner{background:transparent !important;width:100%;border-spacing:0}
.all table.inner,.all table.inner > tbody{display:block}
.all table.inner > tbody > tr{
  display:grid;grid-template-columns:200px 1fr;
  background:var(--card);border:1px solid var(--line);border-radius:16px;
  box-shadow:0 2px 10px rgba(60,50,20,.06);margin-bottom:22px;overflow:hidden;
  transition:box-shadow .2s,transform .2s;
}
.all table.inner > tbody > tr:hover{box-shadow:0 10px 28px rgba(60,50,20,.13);transform:translateY(-2px)}
.all table.inner > tbody > tr > td{
  padding:22px 26px;line-height:1.65;min-width:0;box-sizing:border-box;
  background:var(--card) !important;border-radius:0 !important;width:auto !important;vertical-align:top;
}
.all table.inner > tbody > tr > td.label{
  border-right:1px solid var(--line);font-weight:600;
  background:linear-gradient(160deg,var(--label1),var(--label2)) !important;
}
.all td.label a.download{
  font-family:Fraunces,Georgia,serif;font-size:1.3em;font-weight:700;color:var(--ink);
  display:block;line-height:1.25;margin-bottom:6px;border:0;
}
.all td.label a.download:hover{color:var(--accent)}
.all td.label a.download i{
  display:inline-block;margin-top:10px;font-family:Inter,sans-serif;font-style:normal;
  font-size:.62em;font-weight:600;color:#fff;background:var(--accent);
  padding:5px 12px;border-radius:999px;box-shadow:0 2px 6px rgba(200,100,58,.3);
  white-space:nowrap;
}
.all td.label a.download:hover i{background:#a94f2a}
.all td.label i{font-weight:400;font-size:.85em;color:var(--muted)}
.all td.label i a{font-size:1em}
.all td hr{border:0;border-top:1px solid var(--line);height:0;margin:16px 0}
.all td b{color:var(--accent);font-weight:600}
.all td font[color]{color:var(--accent) !important}
.all td img{border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.13);max-width:100%;height:auto}
.all td img[align="left"]{margin:0 22px 12px 0}
.all td img[align="right"]{margin:0 0 12px 22px}

/* ---------- pätička ---------- */
.content > center{
  display:block;background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:22px;margin:28px 0 0;box-shadow:0 2px 10px rgba(60,50,20,.05);
}
.content > center h2{font-size:1.15em;font-weight:500;margin:0 0 12px}
.content > p{text-align:center;margin:28px 0 0}
.content > p font{font-family:Inter,sans-serif !important}
.content > br{display:none}

/* ---------- mobil ---------- */
@media (max-width:700px){
  .content{padding:28px 14px}
  h1.title{font-size:2.3em}
  .content > table:first-of-type tr{flex-direction:column;text-align:center}
  .all table.inner > tbody > tr{grid-template-columns:1fr}
  .all table.inner > tbody > tr > td.label{border-right:0;border-bottom:1px solid var(--line)}
  .all td img[align]{float:none;display:block;margin:0 auto 12px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.all td{overflow-wrap:anywhere}
.all td img,.all td table,.content img{max-width:100%;height:auto}

}



.all td div[style*="width:850px"]{
  width:auto !important;max-width:100%;
  display:flex;flex-wrap:wrap;justify-content:center;gap:12px;
}
.all td div[style*="width:850px"] > a{float:none !important;margin:0 !important;flex:1 1 220px;text-align:center;border:0}
.all td div[style*="width:850px"] img{width:100%;height:auto;display:block;margin-bottom:6px}
.all td div[style*="width:850px"] a br{display:none}

/* bez hover efektu na dotykových zariadeniach */
@media (hover:none){
  .all table.inner > tbody > tr:hover{transform:none;box-shadow:0 2px 10px rgba(60,50,20,.06)}
}

@media (max-width:700px){
  body{font-size:15px;line-height:1.55}
  .content{padding:22px 12px 28px}
  .content > h1.title + hr + h2{font-size:1.15em;margin-bottom:1.2em}

  /* intro karta */
  .content > table:first-of-type{padding:18px 16px;margin-bottom:32px;border-radius:14px}
  .content > table:first-of-type tr{gap:14px}
  .content > table:first-of-type td:first-child img{width:96px;height:96px}

  /* karty programov */
  .all{margin:14px 0 !important}
  .all table.inner > tbody > tr{border-radius:14px;margin-bottom:16px}
  .all table.inner > tbody > tr > td{padding:16px 16px;line-height:1.55}
  .all table.inner > tbody > tr > td.label{padding:14px 16px 12px}
  .all td.label a.download{font-size:1.2em;margin-bottom:4px}
  .all td.label a.download i{margin-top:6px;padding:6px 14px;font-size:.66em}
  .all td.label br + br{display:none}          /* menej prázdneho miesta (Cathy) */
  .all td hr{margin:12px 0}
  .all td center{text-align:center}

  /* pätička */
  .content > center{padding:16px;border-radius:14px}
  .content > p{margin-top:20px;font-size:.95em}
}

@media (max-width:400px){
  h1.title{font-size:2em}
  .content{padding-left:10px;padding-right:10px}
  .all table.inner > tbody > tr > td{padding:14px 14px}
}