/* Public site additions on top of styles.css (same TEDxAthens design system). */
.i-share { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.462.0/icons/share-2.svg"); }
.i-check { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.462.0/icons/check.svg"); }

/* Language switch at the end of the nav */
.nav a.lang { margin-left: 10px; padding-left: 10px; padding-right: 10px; color: var(--white); border-bottom-color: transparent; position: relative; }
.nav a.lang::before { content: ""; position: absolute; left: 0; top: 50%; height: 16px; margin-top: -9px; border-left: 1px solid var(--grey-700); }
.nav a.lang:hover { color: var(--tedx-red); }

/* Filters: no channel column on the public site */
.filters.pub { grid-template-columns: 2fr repeat(3, 1fr) auto; }
@media (max-width: 900px) { .filters.pub { grid-template-columns: 1fr 1fr; } }

/* Talk page */
.links { margin-top: 14px; }
.band h1 { max-width: 24ch; }

/* About page */
.prose p { max-width: 68ch; line-height: 1.6; margin: 12px 0; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Links inside the year chart */
.chart a:hover .bar { fill: var(--tedx-red); }

/* Phones: keep the language switch visible in the logo row instead of at the end of the scrolling nav */
@media (max-width: 760px) {
  .top-inner { position: relative; }
  .nav a.lang { position: absolute; top: 10px; right: var(--gutter); margin: 0; padding: 6px 8px; border: 1px solid var(--grey-700); font-size: 11px; }
  .nav a.lang::before { display: none; }
}

/* Home: the legacy line — a quiet standfirst under the numbers, marked by a thin red rule */
.hero-legacy { font-weight: 300; font-size: 17px; line-height: 1.6; color: var(--grey-400); max-width: 58ch; margin: 14px 0 22px; padding-left: 14px; border-left: 2px solid var(--tedx-red); }
@media (max-width: 560px) { .hero-legacy { font-size: 15px; } }

/* Topic tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 12px; }
.tile { position: relative; display: block; background: var(--black); color: var(--white); aspect-ratio: 16 / 10; overflow: hidden; }
.tile:hover { color: var(--white); }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity var(--duration-base) var(--ease), transform var(--duration-base) var(--ease); }
.tile:hover img { opacity: .35; transform: scale(1.03); }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tedx-red); }
.tile-body { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.tile-name { font-weight: 900; font-size: 22px; line-height: 1.1; letter-spacing: var(--tracking-tight); }
.tile-meta { font-size: 13px; color: var(--grey-300); }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .tile-name { font-size: 17px; } .tile-body { left: 12px; right: 12px; bottom: 12px; } }

/* Topic chips on talk and event pages */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-block; padding: 5px 10px; border: 1px solid var(--grey-600); color: var(--grey-200); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.chip:hover { border-color: var(--tedx-red); background: var(--tedx-red); color: var(--white); }
.ev-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ev-link:hover { color: var(--white); }

/* Filters: search + topic + event + type + sort + TED */
.filters.pub { grid-template-columns: 2fr repeat(4, 1fr) auto; }
@media (max-width: 1000px) { .filters.pub { grid-template-columns: 1fr 1fr; } }
/* Topic and event pages: keep the #1 card from filling the whole width */
.band + .section > .lead-card { max-width: 760px; }
.tile-meta.num { white-space: normal; }

/* Unnumbered lists (Worth discovering is a random pick, not a ranking) */
.rank-list.plain .rank-item a { grid-template-columns: 112px 1fr auto; }
@media (max-width: 560px) { .rank-list.plain .rank-item a { grid-template-columns: 80px 1fr auto; } }
.i-shuffle { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.462.0/icons/shuffle.svg"); }

/* Newest talks: one row of cards, swipeable on phones */
.row-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 0 6px; scrollbar-width: thin; }
.card { display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; min-width: 0; }
.card:hover { color: inherit; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--grey-100); border-bottom: 4px solid var(--tedx-red); transition: opacity var(--duration-fast) var(--ease); }
.card:hover img { opacity: .7; }
.card-title { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--accent-ink); }
.card-meta { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1100px) { .row-cards { grid-auto-columns: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 560px) { .row-cards { grid-auto-columns: 72%; } }
