/*
 * Very small screens only (user 23.11.2026). Loaded with media="(max-width: 360px)" and wrapped in the same query,
 * so nothing here can touch a screen wider than 360px (iPhone 375+ and up stay exactly as they are).
 * The rule everywhere: pieces that sit side by side go one under the other when there is no room, so a text keeps
 * its width instead of breaking into many short lines; texts get a little smaller only where needed.
 */
@media (max-width: 360px) {
  /* order form: the visa options - the tag ("הפופולרי ביותר", "אקספרס") goes under the name, not next to it */
  .visa__form-type { flex-wrap: wrap; row-gap: 4px; }
  .visa__form-type-name { flex: 1 1 calc(100% - 44px); min-width: 0; }
  .visa__form-type-tag { margin-inline-start: 34px; }

  /* order form: add-ons ("כניסות מרובות") - the price under the text, the text gets the width */
  .vw-addon { flex-wrap: wrap; row-gap: 6px; }
  .vw-addon__body { flex: 1 1 calc(100% - 60px); }
  .vw-addon__price { margin-inline-start: 52px; }

  /* embassy page: a long web address breaks instead of going off the screen */
  .generals__info-item { flex-wrap: wrap; min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; white-space: normal; }
  .generals__info-value { flex: 1 1 100%; min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; text-align: right; padding-inline-start: 30px; box-sizing: border-box; }

  /* ---- dest/embassy pages 23.11 (map/destinations session) ---- */
  /* embassy page hero: the flag above the title, so the title keeps the width */
  .vw-es-hero__name { flex-direction: column; gap: 8px; }
  .vw-es-page .hero h1 { font-size: 25px; }
  .vw-es-hero__flag { width: 40px; height: 40px; }
  /* article cards (every row: home blog, related, embassy…): the content never gets wider than the card, so the space
     is the same on both sides; the bottom line (category · date · reading time) may go to two lines (user 23.11) */
  .blog-card__content { min-width: 0; }
  .blog-card__stub { flex-wrap: wrap; row-gap: 4px; min-width: 0; }
  /* the card is narrow here: title and summary get 3 lines (not 2), so they are not cut mid-word; title a bit smaller */
  .recent__posts-category .blog-card__title, .blog .blog-card__title, .blog__category-post article:not(:first-child) .blog-card__title { -webkit-line-clamp: 3; max-height: none; font-size: 16px; line-height: 1.3; }
  .blog-card__excerpt { -webkit-line-clamp: 3; max-height: none; font-size: 15px; }
  .recent__posts-category .blog-card { max-height: none; } /* the row's cards were capped at 180px high and cut the text */
  /* embassies list: the card buttons 2 + 2 (50% each), the icon after the text on the left (user 23.11) */
  .vw-ecard__acts { grid-template-columns: 1fr 1fr; }
  .vw-ecard__acts .vw-ebtn, .vw-ecard__acts summary.vw-ebtn { flex-direction: row; gap: 6px; height: 46px; font-size: 14px; }
  /* embassies map card: "ניווט ב-Waze" and "Google Maps" don't fit side by side - one under the other, full width */
  .vw-emap__go { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vw-emap__go .vw-ebtn { height: 42px; font-size: 14px; }
  /* embassy page "מידע כללי" (user 23.11, phones ~270px): the columns may shrink below their content, so a long e-mail
     breaks inside its tile instead of making the whole page wider than the screen */
  .vw-es-info__grid, .vw-es-tiles { grid-template-columns: minmax(0, 1fr); }
  .vw-es-info__main, .vw-es-info__map, .vw-es-tiles > li, .vw-es-tile { min-width: 0; }
  .vw-es-tile { padding: 12px 14px; gap: 10px; }
  .vw-es-tile__val, .vw-es-tile__val span { white-space: normal; overflow-wrap: anywhere; font-size: 14.5px; } /* a long e-mail / address breaks inside the tile */
  .vw-es-tile[href^="tel:"] .vw-es-tile__val span { overflow-wrap: normal; } /* phone numbers: only between the numbers */
  .vw-es-tile__ic { width: 34px; height: 34px; flex: none; }
  .vw-es-tile__ic svg { width: 19px; height: 19px; }
  /* embassy page map: the two navigation buttons one under the other, so they never push the map wider than the screen */
  .vw-es-info__map { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .vw-es-map__go { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .vw-es-map__go .vw-ebtn { height: 44px; font-size: 14px; }
  /* the big article card (first in the articles block): title 2 lines, summary 3 lines, the rest ends with "…" (user 23.11) */
  .recent__posts-first .blog-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 18px; line-height: 1.3; }
  .recent__posts-first .blog-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-height: none; height: auto; }
  .vw-es-link small, .vw-es-link__txt small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; } /* useful links: the web address wraps, not cut */
  /* articles block header ("מידע מקצועי על …", "מתוך הבלוג"): centred, with the same side space as the rest (user 23.11) */
  .recent .section__header { padding-inline: 15px; box-sizing: border-box; text-align: center; }
  .recent .section__header .section__title, .recent .section__header .section__description { text-align: center; }
  /* embassy holidays list: "בעוד X ימים" goes under the name, so the name keeps its width (user 23.11) */
  .vw-hol__item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; }
  .vw-hol__date { grid-row: 1 / 3; width: 44px; height: 44px; }
  .vw-hol__when { grid-column: 2; font-size: 12.5px; }
  /* info tiles, links and cards: long e-mails / addresses break inside their box */
  .vw-es-tile__val, .vw-es-link__txt b, .vw-ecard__line span, .vw-emap__addr span, .vw-emap__contact a { overflow-wrap: anywhere; }
}
