/* Start Custom CSS for html */.sg { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.sg-head { margin-bottom: 22px; }
.sg-eticheta {
  display: inline-block; padding: 5px 16px; background: #efe6dd; color: #9a0002;
  border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* ===== Carduri ===== */
.sg-rez { display: grid; gap: 22px; }
.sg-card {
  position: relative; padding: 28px 26px 24px;
  background: #fffaf5; border-left: 5px solid #9a0002; border-radius: 16px;
  box-shadow: 0 6px 18px rgba(42, 27, 24, .10);
}
.sg-nr { position: absolute; top: 16px; right: 20px; color: #d49a52; font-size: 34px; font-weight: 800; line-height: 1; opacity: .8; }
.sg-card h3 { margin: 0 70px 10px 0; color: #9a0002; font-size: 26px; line-height: 1.25; }

/* Profesorii */
.sg-prof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px;
  color: #2a1b18; font-weight: 700;
}
.sg-prof span {
  padding: 3px 12px; background: #efe6dd; color: #9a0002; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}

/* Rezultatul */
.sg-ach {
  margin: 0 0 10px; padding-top: 16px; border-top: 2px dashed #efe6dd;
  color: #2a1b18; font-size: 19px; line-height: 1.3;
}
.sg-lead { margin: 0 0 12px; color: #2a1b18; line-height: 1.6; }
.sg-lead strong { color: #9a0002; }
.sg-intro { margin: 0 0 10px; color: #2a1b18; opacity: .85; }
.sg-fel { margin: 16px 0 0; padding: 12px 16px; background: #efe6dd; border-radius: 10px; color: #9a0002; font-weight: 700; }

/* Sportivi + medalii */
.sg-sportivi { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sg-sportivi li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; background: #efe6dd; border-left: 4px solid #d49a52; border-radius: 10px;
}
.sg-sportivi strong { color: #2a1b18; font-size: 17px; }
.sg-meds { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-med { padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sg-med--g { background: #d49a52; color: #2a1b18; }
.sg-med--s { background: #fffaf5; color: #2a1b18; border: 2px solid #d49a52; }
.sg-med--b { background: #9a0002; color: #efe6dd; }

/* Podium / premii */
.sg-podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sg-podium li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #efe6dd; border-radius: 10px; }
.sg-podium div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sg-podium strong { color: #2a1b18; }
.sg-podium div span { color: #2a1b18; opacity: .85; font-size: 14.5px; }
.sg-loc {
  flex: 0 0 auto; min-width: 82px; padding: 6px 12px; text-align: center;
  background: #9a0002; color: #efe6dd; border-radius: 8px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.sg-loc--2 { background: #730001; }
.sg-loc--3 { background: #d49a52; color: #2a1b18; }

/* ===== Galerii foto ===== */
.sg-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.sg-gal[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.sg-foto {
  position: relative; display: block; padding: 0; overflow: hidden; aspect-ratio: 4 / 3;
  background: #efe6dd; border: 0; border-radius: 12px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(42, 27, 24, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sg-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sg-foto::after {
  content: "⤢"; position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center;
  width: 32px; height: 32px; background: #9a0002; color: #efe6dd; border-radius: 50%; font-size: 16px;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.sg-foto:hover, .sg-foto:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(154, 0, 2, .25); }
.sg-foto:hover img, .sg-foto:focus-visible img { transform: scale(1.08); }
.sg-foto:hover::after, .sg-foto:focus-visible::after { opacity: 1; transform: none; }
.sg-foto:focus-visible { outline: 3px solid #d49a52; outline-offset: 2px; }

/* ===== Fereastra de mărire ===== */
.sg-dlg { position: fixed; padding: 0; border: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.sg-dlg::backdrop { background: rgba(42, 27, 24, .88); }
.sg-dlg img { display: block; max-width: 100%; max-height: 90vh; margin: 0 auto; border-radius: 12px; }
.sg-dlg [hidden] { display: none !important; }
.sg-dlg-x, .sg-dlg-nav {
  position: absolute; display: grid; place-items: center;
  background: #9a0002; color: #efe6dd; border: 0; border-radius: 50%; line-height: 1; cursor: pointer;
  transition: background .2s ease;
}
.sg-dlg-x { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 24px; }
.sg-dlg-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 30px; }
.sg-dlg-prev { left: 10px; }
.sg-dlg-next { right: 10px; }
.sg-dlg-x:hover, .sg-dlg-nav:hover { background: #730001; }
.sg-dlg-x:focus-visible, .sg-dlg-nav:focus-visible { outline: 3px solid #d49a52; outline-offset: 2px; }
.sg-dlg-count {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  padding: 4px 14px; background: rgba(42, 27, 24, .85); color: #efe6dd;
  border-radius: 999px; font-size: 13px; font-weight: 700;
}
.sg-dlg-count:empty { display: none; }

/* ===== Mobil ===== */
@media (max-width: 767px) {
  .sg-card { padding: 24px 16px 18px; }
  .sg-card h3 { font-size: 21px; margin-right: 54px; }
  .sg-nr { font-size: 26px; right: 14px; }
  .sg-podium li { flex-wrap: wrap; gap: 8px; }
  .sg-gal, .sg-gal[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
  .sg-gal[data-n="3"] .sg-foto:first-child { grid-column: 1 / -1; }
  .sg-dlg-nav { width: 40px; height: 40px; font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-foto, .sg-foto img, .sg-foto::after { transition: none; }
}

/* ===== Postarea originală ===== */
.sg-orig {
  margin-top: 18px; background: #f8f3ee; border-radius: 12px; overflow: hidden;
  border-left: 4px solid #d49a52;
}
.sg-orig > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; color: #9a0002; font-size: 14px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer; list-style: none;
  transition: background .2s ease;
}
.sg-orig > summary::-webkit-details-marker { display: none; }
.sg-orig > summary:hover { background: #efe6dd; }
.sg-orig > summary:focus-visible { outline: 3px solid #d49a52; outline-offset: -3px; }
.sg-orig > summary::after {
  content: "+"; display: grid; place-items: center; flex: 0 0 28px; height: 28px;
  background: #9a0002; color: #efe6dd; border-radius: 50%; font-size: 18px; letter-spacing: 0;
}
.sg-orig[open] > summary::after { content: "−"; }

.sg-orig blockquote { margin: 0; padding: 4px 18px 16px; }
.sg-orig blockquote p {
  margin: 0 0 10px; color: #2a1b18; font-size: 15.5px; line-height: 1.7;
  overflow-wrap: anywhere;
}
.sg-orig blockquote p:last-child { margin-bottom: 0; }/* End Custom CSS */