/* GSM Media: our own rules on top of the base (prefix gs-). Colours come from theme.css. */

.brand .gs-logo { height: 44px; width: auto; display: block; }
.site-footer .gs-logo { height: 46px; }
.gs-lang { font-weight: 600; font-size: 0.9375rem; color: var(--color-text); padding: 0.5rem 0.75rem; }
.gs-lang:hover { color: var(--color-primary); }

.gs-art path { stroke: currentColor; }

/* hero: a word with a small chip */
.gs-chip { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.3em 0.6em; font-family: var(--font-sans); font-weight: 600; line-height: 1; color: #fff; background: var(--color-primary); border-radius: 0.6em; }

/* hero mock: a business system with an assistant panel */
.gs-app { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) 19rem; min-height: 27rem; font-size: 0.8125rem; text-align: left; color: var(--color-text); background: var(--custom-card); }
.gs-app-side { display: flex; flex-direction: column; gap: 0.15rem; padding: 1rem 0.75rem; background: var(--custom-soft); border-right: 1px solid var(--custom-line); }
.gs-app-brand { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; padding: 0 0.5rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.9375rem; }
.gs-app-brand b { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; font-size: 0.75rem; color: #fff; background: var(--color-primary); border-radius: 0.4rem; }
.gs-app-nav { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.5rem; color: var(--custom-meta); border-radius: 0.5rem; }
.gs-app-nav i { font-size: 1rem; }
.gs-app-nav.is-active { color: var(--color-text); font-weight: 600; background: var(--custom-card); box-shadow: 0 0 0 1px var(--custom-line); }
.gs-app-nav em { margin-left: auto; padding: 0.1rem 0.4rem; font-style: normal; font-size: 0.6875rem; font-weight: 600; color: #fff; background: var(--color-accent); border-radius: 1rem; }
.gs-app-nav--foot { margin-top: auto; }
.gs-app-main { display: grid; align-content: start; gap: 0.9rem; padding: 1rem 1.1rem; min-width: 0; }
.gs-app-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gs-app-head strong { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; }
.gs-app-head span { color: var(--custom-meta); }
.gs-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.gs-kpi { display: grid; gap: 0.15rem; padding: 0.7rem 0.8rem; border-radius: 0.7rem; box-shadow: 0 0 0 1px var(--custom-line); }
.gs-kpi span { color: var(--custom-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-kpi strong { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gs-kpi small { font-size: 0.6875rem; font-weight: 600; color: var(--color-primary); }
.gs-kpi small.is-warn { color: var(--color-accent); }
.gs-chart { display: grid; gap: 0.6rem; padding: 0.8rem; border-radius: 0.7rem; box-shadow: 0 0 0 1px var(--custom-line); }
.gs-chart-bars { display: flex; align-items: flex-end; gap: 0.45rem; height: 6.5rem; }
.gs-chart-bars i { flex: 1; height: calc(var(--h) * 1%); background: color-mix(in srgb, var(--color-primary) 22%, transparent); border-radius: 0.3rem 0.3rem 0 0; }
.gs-chart-bars i.is-now { background: var(--color-primary); }
.gs-chart-bars i.is-next { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 55%, transparent) 0 4px, color-mix(in srgb, var(--color-accent) 20%, transparent) 4px 8px); }
.gs-chart-legend { display: flex; gap: 1rem; color: var(--custom-meta); }
.gs-chart-legend b { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.35rem; border-radius: 0.15rem; background: var(--color-primary); }
.gs-chart-legend b.is-next { background: var(--color-accent); }
.gs-rows { display: grid; }
.gs-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding: 0.5rem 0.1rem; border-top: 1px solid var(--custom-line); }
.gs-row i { font-size: 1rem; color: var(--custom-meta); }
.gs-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-row em { font-style: normal; color: var(--custom-meta); }
.gs-ai { display: flex; flex-direction: column; gap: 0.7rem; padding: 1rem; background: var(--custom-ink); color: var(--custom-on-ink); }
.gs-ai-head { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.9375rem; }
.gs-ai-head i { color: var(--custom-primary-on-ink); font-size: 1.1rem; }
.gs-ai-head small { margin-left: auto; font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 500; color: var(--custom-on-ink-soft); }
.gs-ai-q { align-self: flex-end; max-width: 92%; padding: 0.55rem 0.75rem; background: var(--color-primary); color: #fff; border-radius: 0.9rem 0.9rem 0.2rem 0.9rem; }
.gs-ai-a { display: grid; gap: 0.5rem; padding: 0.7rem 0.75rem; background: #ffffff14; border-radius: 0.9rem 0.9rem 0.9rem 0.2rem; }
.gs-ai-a table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gs-ai-a td { padding: 0.28rem 0; border-top: 1px solid var(--custom-line-ink); }
.gs-ai-a td:last-child { text-align: right; font-weight: 600; }
.gs-ai-a td small { color: var(--custom-on-ink-soft); }
.gs-ai-src { color: var(--custom-on-ink-soft); font-size: 0.6875rem; }
.gs-ai-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gs-ai-actions span { padding: 0.35rem 0.65rem; font-weight: 600; font-size: 0.75rem; border: 1px solid var(--custom-line-ink); border-radius: 2rem; }
.gs-ai-actions span.is-main { color: var(--color-secondary-base); background: #fff; border-color: #fff; }
.gs-ai-input { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; padding: 0.55rem 0.75rem; color: var(--custom-on-ink-soft); border: 1px solid var(--custom-line-ink); border-radius: 2rem; }
.gs-ai-input i { margin-left: auto; color: var(--custom-primary-on-ink); }
.gs-ai-caret { display: inline-block; width: 1px; height: 1em; background: currentColor; animation: gs-blink 1s steps(1) infinite; }
@keyframes gs-blink { 50% { opacity: 0; } }

@media (max-width: 62rem) {
    .gs-app { grid-template-columns: minmax(0, 1fr) 17rem; }
    .gs-app-side { display: none; }
}
@media (max-width: 43rem) {
    .gs-app { grid-template-columns: minmax(0, 1fr); }
    .gs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gs-chart, .gs-rows { display: none; }
}

/* small chat card used on the AI page */
.gs-chat { display: grid; gap: 0.7rem; padding: 1.25rem; font-size: 0.9375rem; background: var(--custom-ink); color: var(--custom-on-ink); border-radius: var(--custom-radius-card); }
.gs-chat .gs-ai-q, .gs-chat .gs-ai-a { font-size: 0.9375rem; }

/* figures */
.gs-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gs-stat { display: grid; gap: 0.35rem; align-content: start; padding: 1.5rem; background: var(--custom-card); border-radius: var(--custom-radius-card); box-shadow: 0 0 0 1px var(--custom-line); }
.gs-stat strong { font-family: var(--font-heading); font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.gs-stat span { color: var(--color-text-soft); }
.gs-stat--main { color: #fff; background: var(--color-primary); box-shadow: none; }
.gs-stat--main span { color: #ffffffd9; }
.gs-stats--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 56rem) { .gs-stats--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* institutions */
.gs-partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.gs-partners li { display: grid; place-items: center; padding: 0.75rem 1.5rem; border-left: 1px solid var(--custom-line); }
.gs-partners img { max-height: 3.25rem; width: auto; max-width: 100%; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.gs-partners a:hover img { filter: none; opacity: 1; }
@media (max-width: 48rem) { .gs-partners li { border-left: 0; padding: 0.5rem; } }

/* engagement cards: a word where the price would be */
.gs-plan-word { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; }

/* form feedback */
.gs-alert { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.9rem 1.1rem; font-weight: 500; border-radius: 0.9rem; }
.gs-alert--ok { color: #0d5a36; background: #e3f6ec; }
.gs-alert--err { color: #a12a1b; background: #fde9e6; }
.gs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gs-field-err { color: #c0392b; font-size: 0.875rem; }

.gs-footer-cta { display: grid; gap: 1.25rem; justify-items: start; max-width: 31rem; }
.gs-footer-cta p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--custom-on-ink-soft); }

/* the base draws an up-arrow in front of every chip (votes); ours are plain labels */
.custom-vote::before { display: none; }
.custom-vote { padding-inline: 0.6em; }
.custom-vote i { font-size: 1.15em; }

/* Izbor na jazik: paghachko meni vo hederot, red so kodovi vo mobilnoto meni */
[x-cloak] { display: none !important; }
.gs-lang { position: relative; display: none; }
@media (min-width: 62rem) { .gs-lang { display: block; } }
.gs-lang-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.6rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; color: inherit; background: none; border: 0; border-radius: 0.6rem; cursor: pointer; }
.gs-lang-btn:hover, .gs-lang-btn[aria-expanded="true"] { background: rgb(11 26 51 / 0.06); }
.gs-lang-btn .ph-globe { font-size: 1.1rem; }
.gs-lang-caret { font-size: 0.7rem; transition: transform 0.2s; }
.gs-lang-btn[aria-expanded="true"] .gs-lang-caret { transform: rotate(180deg); }
.gs-lang-menu { position: absolute; top: calc(100% + 0.6rem); right: 0; z-index: 60; min-width: 12rem; margin: 0; padding: 0.4rem; list-style: none; background: #fff; border: 1px solid rgb(11 26 51 / 0.08); border-radius: 0.9rem; box-shadow: 0 18px 40px -18px rgb(11 26 51 / 0.35); }
.gs-lang-menu a { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.7rem; font-size: 0.9375rem; color: #0b1a33; text-decoration: none; border-radius: 0.6rem; }
.gs-lang-menu a span { width: 1.6rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: #5b6b82; }
.gs-lang-menu a:hover { background: #e8f0fc; }
.gs-lang-menu a.is-current { font-weight: 600; background: #f3f6fb; }
.gs-lang-menu a.is-current span { color: #2f6fd6; }
.gs-lang-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.gs-lang-row a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.9rem; padding: 0.5rem 0.7rem; font-size: 0.875rem; font-weight: 600; color: #0b1a33; text-decoration: none; border: 1px solid rgb(11 26 51 / 0.16); border-radius: 0.6rem; }
.gs-lang-row a.is-current { color: #fff; background: #0b1a33; border-color: #0b1a33; }
/* Most megju kopcheto i menito, za da ne se zatvori na hover dodeka glushecot minuva preku prazninata */
.gs-lang::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 0.7rem; }
/* Gornata lenta na mobilen: porakata ne sobira vo eden red, pa se dvizi. Dve kopii, pomestuvanje -50% = krug bez skok. */
.gs-topbar-run { display: none; }
@media (width <= 639px) {
  html[data-demo='site'] .header-topbar .site-topbar-inner { display: none; }
  .gs-topbar-run { display: flex; align-items: center; height: var(--topbar-h); overflow: hidden; color: inherit; text-decoration: none; }
  .gs-topbar-run-track { display: flex; flex: none; animation: gs-topbar-run 18s linear infinite; }
  .gs-topbar-run-item { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; padding-right: 3rem; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
  .gs-topbar-run-item b { font-weight: 600; }
  .gs-topbar-run:active .gs-topbar-run-track { animation-play-state: paused; }
}
@keyframes gs-topbar-run { to { transform: translateX(-50%); } }
/* Bez animacii: lentata stoi, a tekstot se vlece so prst */
@media (prefers-reduced-motion: reduce) {
  .gs-topbar-run { overflow-x: auto; scrollbar-width: none; }
  .gs-topbar-run-track { animation: none; padding-left: 1rem; }
}
