/* Bimbly home, redesign C (2026-10-26). Tokens come from c-design.css; this file holds only the home sections. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.c-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Hero: one question, one box */
.c-hero { max-width: 760px; margin: 0 auto; padding: 64px 20px 28px; text-align: center; font-family: var(--c-font); }
.c-hero-h1 { margin: 0; font-size: clamp(38px, 6.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; color: var(--c-ink); }
.c-hero-lead { margin: 14px auto 0; max-width: 54ch; font-size: clamp(16px, 2vw, 19px); line-height: 1.45; color: var(--c-muted); }
.c-hero-search { position: relative; display: flex; align-items: center; gap: 10px; margin: 28px auto 0; max-width: 640px;
  padding: 6px 6px 6px 18px; background: var(--c-fill); border: 1px solid transparent; border-radius: 999px;
  color: var(--c-muted); transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.c-hero-search:focus-within { background: var(--surface); border-color: var(--c-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 18%, transparent); }
.c-hero-input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--c-ink); }
.c-hero-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.c-hero-go { flex: none; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--c-accent); color: #fff; font: 600 16px/1 var(--c-font); cursor: pointer; }
.c-hero-search .search-suggest { left: 0; right: 0; top: calc(100% + 8px); text-align: left; }

/* Stories: the usual starting points, Instagram-style rings */
.c-stories.c-stories { display: flex; justify-content: center; gap: 18px; max-width: 1080px; margin: 8px auto 0; padding: 12px 20px 8px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 20px; font-family: var(--c-font); }
.c-stories::-webkit-scrollbar { display: none; }
.c-story { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--c-ink); scroll-snap-align: start; }
.c-story-ring { width: 68px; height: 68px; padding: 3px; border-radius: 50%; background: var(--c-line); }
.c-story-ring.is-hot { background: conic-gradient(from 200deg, var(--c-accent), #34c759, var(--c-accent)); }
.c-story-icon { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--surface); border: 2px solid var(--surface); color: var(--c-accent); }
.c-story-label { font-size: 13px; line-height: 1.2; text-align: center; color: var(--c-ink-2); }

/* Countries keep their old markup; only the width follows the page */
.c-countries.section { padding-left: 0; padding-right: 0; }
.c-countries .container { width: auto; margin-left: auto; margin-right: auto; max-width: 1080px; padding-left: 20px; padding-right: 20px; }
.c-countries .section-heading h2 { margin: 0 0 14px; font-size: 24px; letter-spacing: -0.02em; color: var(--c-ink); }
.c-countries .city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.c-countries .city-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--c-fill); text-decoration: none; color: var(--c-ink); font-family: var(--c-font); }
.c-countries .city-flag { font-size: 11px; font-weight: 600; color: var(--c-muted); min-width: 20px; }
.c-countries .city-card strong { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.c-countries .city-card em { font-style: normal; font-size: 13px; color: var(--c-muted); }
@media (hover: hover) and (pointer: fine) { .c-countries .city-card:hover { background: var(--c-line); } }
@media (max-width: 860px) {
  .c-countries .container { padding-left: 16px; padding-right: 16px; }
  .c-countries .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Feed */
.c-feed { margin-top: 40px; font-family: var(--c-font); }
.c-feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.c-feed-head h2, .c-sync h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; color: var(--c-ink); }
.c-feed-head a { font-size: 15px; color: var(--c-accent); text-decoration: none; }
.c-feed-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--c-line); }
.c-feed-item { display: flex; flex-direction: column; gap: 3px; padding: 14px 4px; border-bottom: 1px solid var(--c-line); text-decoration: none; min-width: 0; }
.c-feed-item:nth-child(odd) { padding-right: 20px; }
.c-feed-title { font-size: 16px; font-weight: 600; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-feed-meta { font-size: 13px; color: var(--c-muted); }

/* Entry cards */
.c-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; font-family: var(--c-font); }
.c-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: var(--c-fill); text-decoration: none; }
.c-card b { font-size: 19px; letter-spacing: -0.01em; color: var(--c-ink); }
.c-card span { font-size: 15px; line-height: 1.4; color: var(--c-muted); }

/* Network with eu-rabota and Liquify */
.c-sync { margin-top: 48px; margin-bottom: 8px; font-family: var(--c-font); }
.c-sync-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.c-sync-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--c-line); border-radius: 18px; text-decoration: none; }
.c-sync-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent); }
.c-sync-card b { font-size: 18px; color: var(--c-ink); }
.c-sync-card span:last-child { font-size: 15px; line-height: 1.4; color: var(--c-muted); }

@media (hover: hover) and (pointer: fine) {
  .c-feed-item:hover .c-feed-title { color: var(--c-accent); }
  .c-card, .c-sync-card { transition: transform 160ms var(--c-ease), background-color 160ms ease, border-color 160ms ease; }
  .c-card:hover { background: var(--c-line); }
  .c-sync-card:hover { border-color: var(--c-accent); }
}

@media (max-width: 860px) {
  .c-hero { padding: 36px 16px 18px; }
  .c-hero-search { padding-left: 14px; }
  .c-hero-go { padding: 0 16px; }
  .c-stories.c-stories { scroll-padding-inline: 16px; justify-content: flex-start; gap: 14px; padding-left: 16px; padding-right: 16px; }
  .c-wrap { padding: 0 16px; }
  .c-feed-list, .c-cards, .c-sync-grid { grid-template-columns: 1fr; }
  .c-feed-item:nth-child(odd) { padding-right: 4px; }
  .c-cards { gap: 10px; }
}
@media (max-width: 420px) {
  .c-hero-go { display: none; }
}
