/* Activități — the public page (/activitati, once /statistici; js/statistici.js). */
.st-body {
    --st-bg: #f4f7f6;
    --st-surface: #ffffff;
    --st-ink: #1f2430;
    --st-muted: #5b6474;
    --st-line: #dde5e3;
    --st-accent: #0f766e;
    --st-accent-soft: #ccfbf1;
    --st-bar: #14b8a6;
    --st-track: #e7eeed;
    --st-skel: #e3ebe9;
    background: var(--st-bg);
    color: var(--st-ink);
}
body.dark-theme.st-body {
    --st-bg: #10161a;
    --st-surface: #182127;
    --st-ink: #eef1f6;
    --st-muted: #a7b0bf;
    --st-line: #2a3740;
    --st-accent: #5eead4;
    --st-accent-soft: #123b37;
    --st-bar: #2dd4bf;
    --st-track: #22303a;
    --st-skel: #24313a;
}
/* body already leaves 72px for the fixed navbar; the hero colour runs up under it */
.st-main { padding-top: 0; }

.st-hero { padding: 64px 0 34px; background: radial-gradient(ellipse at 15% 0%, rgba(45, 212, 191, .3), transparent 60%), linear-gradient(135deg, #062b2b, #1f2937 70%); color: #fff; }
.st-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5eead4; }
.st-hero h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.st-hero h1 span { color: #5eead4; }
.st-lead { max-width: 760px; margin: 0; font-size: 1.05rem; opacity: .9; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.st-chips li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(0, 0, 0, .2); font-size: .88rem; line-height: 1.3; }
.st-chips strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.st-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }

/* Loading text is for screen readers; the placeholder rows show it on screen. */
.st-status:not(.is-error) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.st-status.is-error { margin: 20px 0 0; padding: 12px 16px; border: 1px solid #fca5a5; border-radius: 14px; background: #fef2f2; color: #991b1b; font-weight: 600; }
body.dark-theme .st-status.is-error { border-color: #7f1d1d; background: #2a1414; color: #fecaca; }

.st-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 28px; padding-bottom: 12px; }
.st-section { padding-top: 24px; }
.st-section + .st-section { padding-top: 20px; }
/* the activities: cards side by side */
.st-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
/* the favourite pages: two columns on a wide screen */
@media (min-width: 992px) {
    .st-card-pages .st-list { columns: 2; column-gap: 36px; }
    .st-card-pages .st-row { break-inside: avoid; }
    .st-card-pages .st-row:first-child, .st-card-pages .st-row { border-top: 0; border-bottom: 1px solid var(--st-line); }
}
.st-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.st-card { min-width: 0; padding: 20px; border: 1px solid var(--st-line); border-radius: 18px; background: var(--st-surface); box-shadow: 0 12px 34px rgba(20, 24, 33, .06); }
.st-card-head h2 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.st-sub { margin: 4px 0 12px; color: var(--st-muted); font-size: .9rem; }

.st-list { margin: 0; padding: 0; list-style: none; }
.st-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--st-line); }
.st-row:first-child { border-top: 0; }
.st-rank { color: var(--st-muted); font-size: .82rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.st-row-body { min-width: 0; }
.st-name { display: block; overflow: hidden; color: inherit; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
a.st-name { text-decoration: none; }
a.st-name:hover, a.st-name:focus-visible { color: var(--st-accent); text-decoration: underline; }
.st-flag { font-weight: 400; }
.st-bar { display: block; height: 6px; margin-top: 5px; border-radius: 999px; background: var(--st-track); overflow: hidden; }
.st-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--st-bar); }
.st-count { min-width: 2.5rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.st-row-tail .st-name { color: var(--st-muted); font-style: italic; }
.st-row-tail .st-bar-fill { background: var(--st-muted); opacity: .45; }

.st-more { margin-top: 12px; padding: 7px 16px; border: 1px solid var(--st-accent); border-radius: 999px; background: transparent; color: var(--st-accent); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.st-more:hover, .st-more:focus-visible { background: var(--st-accent-soft); }
.st-more[hidden] { display: none !important; }

.st-events { margin: 0; padding: 0; list-style: none; }
.st-event { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--st-accent-soft); }
.st-event-icon { flex: none; font-size: 1.35rem; line-height: 1.2; }
.st-event-text { min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.st-event-num { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.st-event-link { color: var(--st-accent); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.st-event-link::before { content: "· "; color: var(--st-muted); }
/* under each action: what you can do there too, with the whole address */
.st-event-cta { display: flex; flex-direction: column; margin-top: 6px; color: var(--st-accent); text-decoration: none; }
.st-event-cta-text { font-size: .9rem; font-weight: 700; }
.st-event-cta-url { color: var(--st-muted); font-size: .78rem; overflow-wrap: anywhere; }
.st-event-cta:hover .st-event-cta-text, .st-event-cta:focus-visible .st-event-cta-text { text-decoration: underline; }
.st-event.is-none { background: transparent; border: 1px dashed var(--st-line); }
.st-event-who { color: var(--st-muted); font-size: .9rem; white-space: nowrap; }
.st-event.is-none .st-event-cta { margin-top: 0; }

.st-empty { padding: 18px; border: 1px dashed var(--st-line); border-radius: 12px; color: var(--st-muted); text-align: center; }

/* Placeholder rows while the numbers load. */
.st-skel { height: 34px; margin: 6px 0; border-radius: 10px; background: linear-gradient(90deg, var(--st-skel) var(--w, 80%), transparent 0); animation: st-pulse 1.4s ease-in-out infinite; }
.st-events .st-skel { height: 52px; margin: 0; border-radius: 14px; background: var(--st-skel); }
@keyframes st-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .st-skel { animation: none; } }

.st-info { max-width: 900px; padding-top: 18px; padding-bottom: 48px; }
.st-note { max-width: 900px; margin: 0 auto; padding-top: 22px; padding-bottom: 48px; color: var(--st-muted); font-size: .88rem; text-align: center; }
.st-info h2 { font-size: 1.3rem; font-weight: 800; }
.st-info li { margin-bottom: 6px; color: var(--st-muted); }
.st-info strong { color: var(--st-ink); }

/* Harta TutorialEu: the site as nodes joined by connectors (an SVG behind them, drawn by js/statistici.js). */
.st-content { padding-top: 20px; }
/* #harta / #continut land below the fixed menu, not under it */
#harta, #continut { scroll-margin-top: 84px; }
.st-map { position: relative; display: grid; grid-template-columns: 170px 220px minmax(0, 1fr); gap: 22px 56px; align-items: start; }
.st-map-lines { position: absolute; inset: 0; z-index: 0; overflow: visible; pointer-events: none; }
.st-map-lines path { fill: none; stroke-width: 2; opacity: .3; }
.st-map-lines path.is-on { opacity: .85; stroke-width: 2.5; }
.st-map-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-map-root { align-self: start; padding-top: 112px; }   /* (level with the middle of the five sections, not of a long panel) */
.st-node { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 2px solid var(--node, var(--st-accent)); border-radius: 14px; background: var(--st-surface); color: var(--st-ink); text-align: left; }
.st-node strong { font-size: 1.02rem; font-weight: 800; line-height: 1.2; }
.st-node span { color: var(--st-muted); font-size: .8rem; }
.st-node-root { border-color: var(--st-ink); background: var(--st-ink); color: var(--st-surface); text-align: center; }
.st-node-root span { color: inherit; opacity: .75; }
button.st-node-cat { font: inherit; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
button.st-node-cat:hover, button.st-node-cat:focus-visible { transform: translateX(3px); }
button.st-node-cat[aria-selected="true"] { background: var(--node); color: #fff; }
button.st-node-cat[aria-selected="true"] span { color: rgba(255, 255, 255, .85); }
.st-node-group { border-width: 1px 1px 1px 5px; padding: 8px 12px 10px; }
.st-node-group h3 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px; color: var(--node); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.st-node-group h3 span { color: var(--st-muted); font-size: .75rem; letter-spacing: 0; }
.st-node-group ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.st-leaf { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--st-line); border-radius: 999px; color: inherit; font-size: .85rem; text-decoration: none; }
.st-leaf:hover, .st-leaf:focus-visible { border-color: var(--node); color: var(--node); }
.st-leaf i { color: var(--node); font-size: .8em; }
@media (max-width: 991px) {
    .st-map { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .st-map-root { align-self: center; width: min(260px, 100%); padding-top: 0; }
    .st-map-cats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .st-map-cats .st-node-cat { flex: 1 1 140px; }
    button.st-node-cat:hover, button.st-node-cat:focus-visible { transform: translateY(-2px); }
}

@media (max-width: 991px) {
    .st-grid { grid-template-columns: minmax(0, 1fr); }
    .st-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .st-hero { padding: 44px 0 24px; }
    .st-main .container { padding-left: 16px; padding-right: 16px; }
    .st-card { padding: 14px; }
    .st-grid { gap: 16px; }
    .st-side { gap: 16px; }
    .st-row { grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: 8px; }
    .st-chips li { border-radius: 14px; }
}
