/*
 * The guides directory (lmsg-guides-grid widget). Figma LMSG_TECH › "Trainers main Page_1" (1716:85), RTL frame:
 * a 186px filter column at the START edge, 27px from a 3-column grid of 300px cards 20px apart. Card: white, 15px
 * inside, two diagonal corners of 25 (top-END and bottom-START in the RTL frame, so written logically), shadow
 * 0 4 20 rgba(0,0,0,.1); a 270×180 photo with the same corners at 15; name 20/700, place | languages 14, a 16px
 * bio, "read more" at the card's END edge, pinned to the bottom so every card in a row ends level.
 * Filter box: 1px #282E45 frame, radius 10, a 30px #282E45 head (14px #F8F6FD, chevron at the END edge), options
 * 14px on 34px rows behind a 10×10 square checkbox. Pagination: the blog's (28px tiles, the current one #D8C4ED
 * with a 1px #F3CB6A rule).
 */
.lmsg-guides { display: grid; grid-template-columns: 186px minmax(0, 1fr); gap: 27px; align-items: start; color: #282E45; font-family: inherit; }
.lmsg-guides__main { min-width: 0; }
/* Ayelet, 2026-10-12: wider than the frame on large screens: the whole block (filters + cards) runs to 64px from the
   screen's edges, up to 1360 wide, breaking out of the section's 1280 stage; the filters keep their width, the cards grow
   (wider, so their text takes fewer lines and each card is shorter). */
@media (min-width: 1101px) {
  .lmsg-guides { --lmsg-guides-w: min(1360px, calc(100vw - 128px)); width: var(--lmsg-guides-w); margin-inline: calc((100% - var(--lmsg-guides-w)) / 2); }
}

/* the grid: revealed once guides.js has shuffled it (or after a moment without the script) */
.lmsg-guides__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.lmsg-guides[data-pending] .lmsg-guides__grid { opacity: 0; animation: lmsgGuidesReveal 0s linear 2.5s forwards; }
@keyframes lmsgGuidesReveal { to { opacity: 1; } }
.lmsg-guides__card[hidden] { display: none; }

.lmsg-guides__card { display: flex; flex-direction: column; min-width: 0; padding: 15px; background: #fff; border-radius: 0; border-start-end-radius: 25px; border-end-start-radius: 25px; box-shadow: 0 4px 20px rgba(0, 0, 0, .1); transition: transform .3s ease, box-shadow .3s ease; }
.lmsg-guides__card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
.lmsg-guides__photo { display: block; aspect-ratio: 7 / 5; overflow: hidden; border-radius: 0; border-start-end-radius: 15px; border-end-start-radius: 15px; background: #EDE7F6; }
.lmsg-guides__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }   /* 7:5 = the guides' own photos, shown whole (Yifat + Ayelet, 2026-10-12; 9:5 cut their tops and chins); centred, so the
   near-square couple photos keep room above the heads AND below the chins (Yifat: Nirrit's face touched the bottom) */
.lmsg-guides__name { margin: 20px 0 0; font-size: 20px; font-weight: 700; line-height: 1.25; color: #282E45; }
.lmsg-guides__name a { color: inherit; text-decoration: none; }
.lmsg-guides__name a:hover { color: #8157BC; }
.lmsg-guides__meta { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #282E45; }
.lmsg-guides__bio { margin: 14px 0 0; font-size: 16px; line-height: 1.4; color: #282E45; text-wrap: pretty; }
.lmsg-guides__more { align-self: flex-end; margin-top: auto; padding-top: 22px; font-size: 16px; line-height: 1.5; color: #282E45; text-decoration: none; }
.lmsg-guides__more:hover { color: #8157BC; text-decoration: underline; text-underline-offset: 3px; }

/* the filter boxes */
.lmsg-guides__filters { display: flex; flex-direction: column; gap: 15px; }
/* the boxes' order: Language, Meeting type, Country (Ayelet, 2026-10-13); guides.js also moves them in the page, so
   keyboard order matches; this rule shows the order before the script runs */
.lmsg-guides__box[data-filter="lang"] { order: 1; }
.lmsg-guides__box[data-filter="meet"] { order: 2; }
.lmsg-guides__box[data-filter="country"] { order: 3; }
.lmsg-guides__box { border: 1px solid #282E45; border-radius: 10px; overflow: hidden; background: #F8F6FD; }
.lmsg-guides__head { position: relative; display: flex; align-items: center; height: 30px; padding: 0 14px; background: #282E45; color: #F8F6FD; font-size: 14px; line-height: 1; font-weight: 400; cursor: pointer; list-style: none; user-select: none; }
.lmsg-guides__head::-webkit-details-marker { display: none; }
.lmsg-guides__head::after { content: ""; position: absolute; inset-inline-end: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1px solid #F8F6FD; border-bottom: 1px solid #F8F6FD; transform: rotate(45deg); transition: transform .2s ease, margin-top .2s ease; }
.lmsg-guides__box[open] > .lmsg-guides__head::after { transform: rotate(-135deg); margin-top: -1px; }
.lmsg-guides__opts { margin: 0; padding: 12px 14px 14px; list-style: none; }
.lmsg-guides__opts li + li { margin-top: 2px; }
.lmsg-guides__opt { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; line-height: 1.2; color: #282E45; cursor: pointer; }
.lmsg-guides__opt input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 12px; height: 12px; margin: 0; border: 1px solid #282E45; border-radius: 2px; background: #F8F6FD; cursor: pointer; display: grid; place-content: center; }
.lmsg-guides__opt input::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: #282E45; transform: scale(0); transition: transform .12s ease; }
.lmsg-guides__opt input:checked::before { transform: scale(1); }
.lmsg-guides__opt input:focus-visible { outline: 2px solid #8157BC; outline-offset: 2px; }
.lmsg-guides__opt:hover span { color: #8157BC; }

/* nothing matches */
.lmsg-guides__none { margin: 24px 0 0; font-size: 18px; text-align: center; }
.lmsg-guides__clear { margin-inline-start: 8px; padding: 0; border: 0; background: none; color: #8157BC; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* pagination (the blog's) */
/* previous | numbers | next: the two outer slots share the spare room equally, so the numbers sit dead centre
   whether or not an arrow is showing (Ayelet, 2026-10-12) */
.lmsg-guides__pages { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-top: 70px; font-size: 16px; }
.lmsg-guides__slot--prev { justify-self: end; }
.lmsg-guides__slot--next { justify-self: start; }
.lmsg-guides__nums { display: flex; align-items: center; gap: 6px; }
.lmsg-guides__pages:empty { display: none; }
.lmsg-guides__page { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 4px; border: 1px solid transparent; border-radius: 6px; background: none; color: #282E45; font: inherit; font-size: 16px; line-height: 1; cursor: pointer; transition: background-color .3s ease; }
.lmsg-guides__page:hover { background: rgba(216, 196, 237, .55); }
/* the theme paints every button white-on-pink on :hover/:focus; the pagination keeps its own colours (Ayelet, 2026-10-12) */
.lmsg-guides__page:hover, .lmsg-guides__page:focus { color: #282E45; text-decoration: none; }
.lmsg-guides__page:focus:not(:hover):not(.is-current) { background: none; }
.lmsg-guides__clear:hover, .lmsg-guides__clear:focus { background: none; color: #8157BC; }
.lmsg-guides__page.is-current { background: #D8C4ED; }   /* no gold frame, as on World of Content (Ayelet, 2026-10-13) */
.lmsg-guides__dots { padding: 0 2px; }
.lmsg-guides__page--prev, .lmsg-guides__page--next { gap: 12px; padding: 0; margin-inline: 26px; }
.lmsg-guides__page--prev:hover, .lmsg-guides__page--next:hover { background: none; text-decoration: none; }
.lmsg-guides__page--prev:hover .lmsg-guides__label, .lmsg-guides__page--next:hover .lmsg-guides__label { text-decoration: underline; text-underline-offset: 4px; }
/* the arrows are inline-blocks, so the hover underline stays under the words only (as on World of Content; Ayelet, 2026-10-12) */
.lmsg-guides__page--prev::before, .lmsg-guides__page--next::after { display: inline-block; text-decoration: none; }
.lmsg-guides__page--prev::before { content: "\2190"; }
.lmsg-guides__page--next::after { content: "\2192"; }
body.rtl .lmsg-guides__page--prev::before { content: "\2192"; }
body.rtl .lmsg-guides__page--next::after { content: "\2190"; }

/* tablet: two columns of cards */
@media (max-width: 1100px) {
  .lmsg-guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* phones: the filters above the cards, one card per row */
@media (max-width: 767px) {
  .lmsg-guides { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lmsg-guides__filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: start; }
  .lmsg-guides__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lmsg-guides__photo { aspect-ratio: 4 / 3; }   /* taller photos on phones (Ayelet, 2026-10-12) */
  .lmsg-guides__pages { margin-top: 44px; }
  .lmsg-guides__page--prev, .lmsg-guides__page--next { margin-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lmsg-guides__card, .lmsg-guides__card:hover { transition: none; transform: none; }
}
