/* Template gallery (GB). Needs tokens.css, base.css, site.css (header) and themes.css.
   A thumbnail (.gt) is a small stage: every size inside is in cqw of its own width, so the same
   markup is a card picture and a large detail picture. Prefix g- (page) and gt- (thumbnail):
   site.css owns .stage, .frame, .tile and .gallery. */

.g-page main { padding-block: var(--s-6) var(--s-9); }
.g-main { padding-top: var(--s-5); }

/* Heading */
.g-top { margin-bottom: var(--s-6); }
.g-title {
  font: 560 var(--t-h1)/1.04 var(--f-display); font-variation-settings: var(--opsz-display);
  letter-spacing: -0.02em; margin: 0 0 var(--s-3); text-wrap: balance;
}
.g-lead { font-size: var(--t-lead); line-height: 1.5; color: var(--c-ink-2); margin: 0; max-width: 34em; text-wrap: pretty; }
.g-meta { margin: var(--s-4) 0 0; color: var(--c-ink-2); font-size: var(--t-2); }
.g-hold { margin: var(--s-2) 0 0; color: var(--c-ink-2); font-size: var(--t-2); max-width: 34em; text-wrap: pretty; }
.g-back { margin: 0 0 var(--s-4); font-size: var(--t-1); font-weight: 600; }
.g-back a { color: var(--c-ink-2); text-decoration: none; }
.g-back a:hover { color: var(--c-ink); text-decoration: underline; }
.g-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.g-actions form { margin: 0; }

/* Purpose filter: plain text, the chosen one inked and underlined. Four items; on a phone they
   wrap onto at most two lines (no sideways scrolling). */
.g-filter {
  display: flex; flex-wrap: wrap; column-gap: var(--s-5); margin: 0 0 var(--s-6); padding: 0;
  border-bottom: 1px solid var(--c-line);
}
.g-filter__item {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -1px;
  color: var(--c-ink-2); font-weight: 600; font-size: var(--t-1); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.g-filter__item:hover { color: var(--c-ink); }
.g-filter__item[aria-current="true"] { color: var(--c-ink); border-bottom-color: var(--c-ink); }
@media (max-width: 40rem) { .g-filter { column-gap: var(--s-4); } }

/* One section per purpose: a modest heading, one quiet line, then its cards. */
.g-sec { margin: 0 0 var(--s-8); }
.g-sec[hidden] { display: none; }
.g-sec__title { font: 560 var(--t-5)/1.2 var(--f-display); font-variation-settings: var(--opsz-sub); letter-spacing: -0.01em; margin: 0 0 var(--s-1); }
.g-sec__line { margin: 0 0 var(--s-5); color: var(--c-ink-2); font-size: var(--t-2); }

/* Card grid */
.g-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-5); }
@media (min-width: 40rem) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-card[hidden] { display: none; }
.g-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-radius: var(--r-1); }
.g-card__link .gt { margin-bottom: var(--s-3); }
.g-card__title { font: 560 var(--t-4)/1.2 var(--f-display); font-variation-settings: var(--opsz-sub); letter-spacing: -0.01em; margin: 0 0 var(--s-1); text-wrap: balance; }
.g-card__link:hover .g-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.g-card__link:hover .gt__stage { border-color: var(--c-line-strong); }
.g-card__summary {
  margin: 0 0 var(--s-2); color: var(--c-ink-2); font-size: 0.9375rem; line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  min-height: 3em;
}
.g-card__meta { margin: auto 0 0; color: var(--c-ink-3); font-size: var(--t-1); font-weight: 600; }

/* Detail: every slide as a larger picture */
.g-slides { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-5); margin-top: var(--s-7); }
@media (min-width: 48rem) { .g-slides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-slide__cap { margin: var(--s-3) 0 0; color: var(--c-ink-2); font-size: var(--t-1); font-weight: 600; }
.g-slide__n { display: inline-block; min-width: 1.5em; color: var(--c-ink); font-weight: 800; }

/* Thumbnail: a Bence stage in the template's theme */
.gt { container-type: inline-size; border-radius: var(--r-1); }
.gt__stage {
  aspect-ratio: 16 / 9; overflow: hidden; display: flex; flex-direction: column; gap: 3cqw;
  padding: 5.4cqw 6cqw; background: var(--c-paper); color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: var(--r-1);
  transition: border-color var(--d-2) var(--ease);
}
.gt__prompt {
  margin: 0; max-width: none; font: 560 5.2cqw/1.16 var(--f-display); font-variation-settings: var(--opsz-sub);
  letter-spacing: -0.012em; text-wrap: balance;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.gt__prompt--info { font-size: 6.4cqw; -webkit-line-clamp: 4; line-clamp: 4; }
.gt__body {
  margin: 0; max-width: none; color: var(--c-ink-2); font-size: 3.5cqw; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}

/* choice: bars, the leader in the accent, the others quiet */
.gt__bars { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 1.7cqw; }
.gt__bar { display: grid; grid-template-columns: 31cqw minmax(0, 1fr) 6.4cqw; align-items: center; gap: 2.4cqw; font-size: 3.2cqw; line-height: 1.2; }
.gt__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-ink-2); font-weight: 600; }
.gt__track { height: 2.8cqw; border-radius: 1.4cqw; background: var(--c-bar); overflow: hidden; }
.gt__fill { display: block; height: 100%; width: var(--w); border-radius: 1.4cqw; background: var(--c-ink); opacity: 0.34; }
.gt__pct { font-weight: 800; color: var(--c-ink-2); text-align: right; }
.gt__bar.is-lead .gt__label, .gt__bar.is-lead .gt__pct { color: var(--c-ink); }
.gt__bar.is-lead .gt__fill { background: var(--c-accent); opacity: 1; }

/* two options: the label sits above its bar, so that long wordings stay readable */
.gt__bars--stack { gap: 2.6cqw; }
.gt__bars--stack .gt__bar { grid-template-columns: minmax(0, 1fr) 6.4cqw; gap: 0.9cqw 2.4cqw; font-size: 3.5cqw; }
.gt__bars--stack .gt__label { grid-column: 1 / -1; }
.gt__bars--stack .gt__track { height: 3.2cqw; }

/* wordcloud: five words of different sizes */
.gt__cloud { margin: auto 0; max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.6cqw 3.4cqw; line-height: 1; }
.gt__word { font: 560 calc(var(--sz) * 1cqw)/1.05 var(--f-display); font-variation-settings: var(--opsz-sub); color: var(--c-ink); opacity: 0.55; }
.gt__word.is-lead { color: var(--c-accent); opacity: 1; }

/* scale: a row of dots, the room's centre in the accent */
.gt__scale { margin: auto 0 0; display: grid; gap: 2cqw; }
.gt__dots { margin: 0; max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 1.6cqw; }
.gt__dot { flex: none; width: calc(var(--sz) * 1cqw); height: calc(var(--sz) * 1cqw); border-radius: 50%; background: var(--c-ink); opacity: 0.3; }
.gt__dot.is-lead { background: var(--c-accent); opacity: 1; }
.gt__ends { margin: 0; max-width: none; display: flex; justify-content: space-between; gap: 3cqw; font-size: 3cqw; line-height: 1.2; color: var(--c-ink-2); font-weight: 600; }
.gt__ends span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ranking: three numbered lines */
.gt__rank { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 1.4cqw; }
.gt__rank li { display: grid; grid-template-columns: 5cqw minmax(0, 1fr); align-items: baseline; gap: 2.4cqw; padding-top: 1.4cqw; border-top: 1px solid var(--c-line); font-size: 3.5cqw; line-height: 1.2; }
.gt__rank li:first-child { border-top: 0; padding-top: 0; }
.gt__n { font-weight: 800; color: var(--c-ink-2); }
.gt__rank li:first-child .gt__n { color: var(--c-accent); }
.gt__rank .gt__label { color: var(--c-ink); }

/* open: two short quotations */
.gt__quotes { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 1.8cqw; }
.gt__quotes li { padding: 1.8cqw 3cqw; border: 1px solid var(--c-line-strong); border-radius: 2.2cqw; font: 500 3.5cqw/1.25 var(--f-display); color: var(--c-ink-2); font-variation-settings: var(--opsz-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt__quotes li:last-child { margin-left: 8cqw; }

@media (prefers-reduced-motion: reduce) { .gt__stage { transition: none; } }

/* Dashboard: the line under "Yeni sunum" and the suggestions of a presenter with no deck */
.starterline { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin: calc(-1 * var(--s-3)) 0 var(--s-6); font-size: var(--t-1); font-weight: 600; }
.starterline form { margin: 0; }
.suggested { margin: 0 0 var(--s-7); }
.suggested .section-label { margin-bottom: var(--s-4); }
