/* =============================================================================
   BIBI HOUSE · blog.css
   Blog, standalone pages and the sports page, layered on styles.css (tokens, .nav, .btn, .foot, .prose, .page-top).
   ============================================================================= */


/* ==== 01 · PAGE SHELL ============================================= */

.blog { padding-bottom: var(--band); }


/* ==== 02 · BLOG INDEX ============================================= */

.blog-list__intro { margin-top: clamp(32px, 5vw, 64px); }

.blog-list__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 72px);
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 2px solid var(--ink);
}
.blog-list__grid > * { max-width: none; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.blog-list__grid .post-card__desc { max-width: 62ch; }
.blog-list__grid > :first-child { grid-column: 1 / -1; }
.blog-list__grid > :first-child .post-card__title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); max-width: 20ch; }
.blog-list__grid > :first-child .post-card__desc { font-size: var(--fs-2); }

.blog-list__cta { margin: clamp(48px, 7vw, 96px) 0 0; }
.blog-list__empty { color: var(--ink-2); padding: 40px 0; }

@media (max-width: 720px) { .blog-list__grid { grid-template-columns: 1fr; } }


/* ==== 03 · POST CARD ============================================== */

.post-card { display: grid; gap: 10px; align-content: start; max-width: 62ch; }
.post-card__meta, .post__meta {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  font-size: var(--fs-0); color: var(--fg-2);
}
.post-card__cat { font-weight: 600; color: var(--ink); }
.post-card__title {
  font-family: var(--f-mark);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.1; letter-spacing: .01em;
  text-transform: uppercase; text-wrap: balance;
}
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.post-card__desc { color: var(--ink-2); }
.post-card__more {
  justify-self: start;
  padding: 6px 0;
  font-weight: 600; font-size: var(--fs-0);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--mark);
}
.post-card__more:hover { text-decoration-color: currentColor; }


/* ==== 04 · POST PAGE ============================================== */

.post__title { max-width: 22ch; }
.post__meta { margin-top: clamp(18px, 2.4vw, 28px); }
.post__cat a { font-weight: 600; color: var(--fg); }
.post__cat a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.post__cols { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 340px); justify-content: space-between; gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(32px, 5vw, 64px); }
.post__body { max-width: 680px; color: var(--ink); }
/* Beside the article on a wide screen, the invitation follows the reading; a phone has the bar at its foot instead. */
.post__aside { position: sticky; top: calc(var(--nav-h) + 28px); }
.aside-card {
  display: grid; gap: 14px; justify-items: start;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius);
  background: var(--green); color: var(--wall);
  --focus: var(--yellow);
}
.aside-card__title { font-family: var(--f-mark); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }
.aside-card__text { font-size: 15px; line-height: 1.5; color: rgba(251, 250, 246, .82); }
.aside-card__facts { padding-top: 14px; border-top: 1px solid var(--line-wall); width: 100%; font-size: 14px; line-height: 1.5; color: rgba(251, 250, 246, .82); }
@media (max-width: 1100px) {
  .post__cols { grid-template-columns: minmax(0, 680px); }
  .post__aside { display: none; }
}

.prose h2 {
  margin-top: clamp(40px, 5vw, 64px);
  font-family: var(--f-mark);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.1; letter-spacing: .01em;
  text-transform: uppercase; text-wrap: balance;
  color: var(--ink);
}
.prose h3 {
  margin-top: clamp(28px, 4vw, 44px);
  font-weight: 600;
  font-size: var(--fs-3); line-height: 1.3;
  color: var(--ink);
}
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose blockquote {
  margin: clamp(28px, 4vw, 44px) 0;
  padding-left: clamp(18px, 2.5vw, 28px);
  border-left: 4px solid var(--mark);
  font-weight: 500;
  font-size: var(--fs-3); line-height: 1.4;
  color: var(--ink);
}
.prose figure { margin: clamp(32px, 5vw, 56px) 0; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.prose figure figcaption { padding: 10px 0 0; font-size: var(--fs-0); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-1); }
.prose th, .prose td { padding: 10px 12px 10px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); }

.post__cta-end { max-width: 760px; margin: clamp(56px, 8vw, 110px) 0 0; }

.post__related { margin-top: clamp(60px, 9vw, 120px); }
.post__related-title {
  font-family: var(--f-mark);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.1; letter-spacing: .01em; text-transform: uppercase;
}
.post__related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(18px, 2.4vw, 28px);
  padding-top: clamp(22px, 3vw, 36px);
  border-top: 2px solid var(--ink);
}
.post__related-grid .post-card__title { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); }
@media (max-width: 900px) { .post__related-grid { grid-template-columns: 1fr; } }

.post__byline {
  max-width: 680px;
  margin: clamp(48px, 7vw, 96px) 0 0;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px;
}
.post__byline-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.post__byline-name a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post__byline-name a:hover { text-decoration-color: currentColor; }
.post__byline-role { color: var(--ink-2); }


/* ==== 05 · THE INVITATION CARD ==================================== */

/* In an article and at the foot of the blog: a green wall, the invitation, the button of the visit. */
.cta-card {
  display: grid; gap: 14px; justify-items: start;
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--green); color: var(--wall);
  --focus: var(--yellow);
}
.prose .cta-card { margin-block: clamp(32px, 5vw, 56px); }
.cta-card .cta-card__title {
  font-family: var(--f-mark);
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1.1; letter-spacing: .01em; text-transform: uppercase;
  max-width: 20ch; text-wrap: balance;
  color: var(--wall);
}
.prose .cta-card .cta-card__title { margin-top: 0; }
.cta-card .cta-card__lede { font-size: var(--fs-1); line-height: 1.55; color: rgba(251, 250, 246, .82); max-width: 52ch; }
.cta-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.cta-card .cta-card__wa, .prose .cta-card .cta-card__wa {
  font-size: 15px; font-weight: 600; color: var(--wall);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--mark);
}
.cta-card .cta-card__wa:hover { text-decoration-color: currentColor; }


/* ==== 06 · PAGES (author, legal) =================================== */

.page__body { max-width: 720px; margin-top: clamp(32px, 5vw, 64px); }
.author-portrait { margin: 0 0 clamp(24px, 4vw, 40px); max-width: 180px; }
.author-portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }

/* Media kit (/media-kit/, /en/media-kit/): in-page index, logo tiles, swatches, type specimens, photo grid. */
.kit-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--fs-1); }
.kit-tiles, .kit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
.kit-tiles figure, .kit-grid figure { margin: 0; }
.kit-tiles figure { display: grid; place-items: center; padding: 12%; border: 1px solid var(--line); border-radius: var(--radius); }
.kit-tiles--wide { grid-template-columns: 1fr; }
.kit-tiles--wide figure { padding: 8% 12%; }
.kit-tile--cream { background: var(--wall); }
.kit-tile--green { background: var(--green); }
.kit-tiles img { width: 100%; max-width: 220px; height: auto; border-radius: 0; }
.kit-tiles--wide img { max-width: 420px; }
.kit-dl { font-size: var(--fs-1); }
.kit-grid .shot { border-radius: var(--radius); }
.kit-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 14px; font-size: var(--fs-0); }
.kit-swatches + p { margin-top: 1.6em; }
.kit-swatch { margin: 0; }
.kit-swatch span { display: block; aspect-ratio: 3 / 2; margin-bottom: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sw); }
.kit-swatch code { color: var(--ink-2); }
.kit-specimen { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink); line-height: 1.15; }
.kit-specimen + .kit-specimen { margin-top: 0; }
.kit-specimen--sans { font-family: var(--f-sans); font-weight: 500; font-size: var(--fs-4); letter-spacing: -.01em; }
.kit-specimen--mark { font-family: var(--f-mark); font-size: var(--fs-title); text-transform: uppercase; line-height: .95; }
.kit-specimen small { display: block; margin-top: 10px; font-family: var(--f-sans); font-weight: 400; font-size: var(--fs-0); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
@media (max-width: 600px) {
  .kit-tiles, .kit-grid { grid-template-columns: 1fr; }
}


/* ==== 07 · SPORT (/sport/, /en/sport/) ============================ */

/* The member page's agenda (app.css, "agenda" and "session"), in the site's tokens; "Réserver" opens the dialog
   (sport.js) or, without it, leads to the band at the bottom of the page. */
.sport { max-width: calc(960px + 2 * var(--gutter)); margin-top: clamp(32px, 5vw, 64px); }
.sport__title { font-family: var(--f-mark); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.sport__empty { margin-top: 18px; color: var(--ink-2); }
.agenda { margin-top: 18px; border-top: 2px solid var(--ink); }
.agenda__day { position: relative; display: grid; grid-template-columns: 1fr; gap: 10px; padding-top: 18px; }
.agenda__day + .agenda__day { margin-top: 18px; border-top: 1px solid var(--line); }
/* The landing point of "Voir plus", out of the grid: in it, it took the date's cell and pushed the day out of shape. */
.agenda__anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.agenda__date { display: flex; align-items: baseline; gap: 10px; }
.agenda__date:focus { outline: none; }
.agenda__num { font-family: var(--f-mark); font-size: 2.8rem; line-height: .9; color: var(--green); }
.agenda__words { display: flex; gap: 6px; font-size: var(--fs-1); color: var(--ink-2); }
.agenda__words span:first-child { font-weight: 600; color: var(--ink); }
@media (min-width: 720px) {
  .agenda__day { grid-template-columns: 7.5rem 1fr; gap: 24px; padding-top: 24px; }
  .agenda__day + .agenda__day { margin-top: 24px; }
  .agenda__date { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; flex-direction: column; gap: 6px; }
  .agenda__num { font-size: 3.8rem; }
  .agenda__words { flex-direction: column; gap: 0; line-height: 1.4; }
}
.agenda__more { display: flex; justify-content: center; margin-top: clamp(24px, 4vw, 36px); }
.agenda__more a[aria-busy="true"] { opacity: .6; pointer-events: none; }

.sessions { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.session {
  display: grid; grid-template-columns: 4.25rem 1fr; gap: 12px 16px; align-items: start;
  padding: 16px clamp(16px, 2.4vw, 22px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.session__time { display: flex; flex-direction: column; line-height: 1.15; font-variant-numeric: tabular-nums; }
.session__start { font-weight: 600; font-size: var(--fs-3); color: var(--ink); }
.session__end { font-size: var(--fs-0); color: var(--ink-2); }
.session__main { min-width: 0; }
.session__name { font-weight: 600; font-size: var(--fs-3); line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.session__detail { margin-top: 2px; font-size: var(--fs-1); color: var(--ink-2); }
.session__host { margin-top: 4px; font-size: var(--fs-1); color: var(--ink-2); }
.session__about { margin-top: 4px; font-size: var(--fs-1); color: var(--ink-2); max-width: 60ch; }
.session__more { margin-top: 8px; }
.session__main:has(.session__more) { cursor: pointer; }
.session__more > summary {
  display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
  font-size: var(--fs-0); font-weight: 600; color: var(--green); border-radius: 4px;
}
.session__more > summary::-webkit-details-marker { display: none; }
.session__more > summary::before {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.session__more[open] > summary::before { transform: translateY(1px) rotate(-135deg); }
.session__more > summary:hover > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.session__more-close, .session__more[open] .session__more-open { display: none; }
.session__more[open] .session__more-close { display: inline; }
.session__text {
  margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--mark); max-width: 62ch;
  font-size: var(--fs-1); line-height: 1.6; color: var(--ink-2);
}
.session__text > p { white-space: pre-line; }
.session__text > p + p { margin-top: .65em; }
.session__side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.session__side .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.session__side .btn--primary { background: var(--green); border-color: var(--green); color: var(--wall); }
.session__side .btn--primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
/* Told whether a session is full, never how many places are left. */
.session__full { font-size: var(--fs-0); font-weight: 600; color: var(--mahogany); }
@media (min-width: 640px) {
  .session { grid-template-columns: 4.75rem 1fr auto; }
  .session__side { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 8px; }
}
/* A card per session, as on the member page (app.css, "session--card"): the hours and the effort on the left, the
   session as the club writes it, and under a hairline the foot, whether it is full on the left and the button on the right. */
.session--card { grid-template-columns: 4.4rem 1fr; column-gap: 16px; row-gap: 0; padding: 18px 18px 16px; }
.session--card .session__start { font-family: var(--f-mark); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.session--card .session__end { margin-top: 5px; }
.session--card .session__name { font-size: 1.28rem; line-height: 1.15; }
.session--card .session__about { margin-top: 3px; font-size: 1rem; line-height: 1.4; }
.session__by { margin-top: 8px; font-size: var(--fs-0); color: var(--ink-2); }
.session__excerpt {
  margin-top: 12px; max-width: 62ch; font-size: .92rem; line-height: 1.55; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.session__main:has(.session__more[open]) .session__excerpt { display: none; }
.session--card .session__more { margin-top: 4px; }
.session--card .session__more > summary { flex-direction: row-reverse; }
.session__foot {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.session--card .session__side { grid-column: auto; flex: none; margin-left: auto; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (min-width: 640px) { .session--card { grid-template-columns: 4.4rem 1fr; } }
/* The club's intensity, 1 to 3, under the hours: as many bars lit as the level, then its word. */
.session__effort { display: flex; flex-direction: column; gap: 5px; margin-top: 16px; }
.session__effort-word { font-size: .72rem; font-weight: 600; line-height: 1.2; color: var(--level); }
.gauge { display: inline-flex; align-items: flex-end; gap: 3px; flex: none; height: 14px; }
.gauge > span { width: 4px; border-radius: 2px; background: var(--line); }
.gauge > span:nth-child(1) { height: 6px; }
.gauge > span:nth-child(2) { height: 10px; }
.gauge > span:nth-child(3) { height: 14px; }
.intensity-1 { --level: var(--green); }
.intensity-2 { --level: #9A6A12; }
.intensity-3 { --level: var(--mahogany); }
.intensity-1 .gauge > span:nth-child(-n+1), .intensity-2 .gauge > span:nth-child(-n+2), .intensity-3 .gauge > span { background: var(--level); }
.lang-note {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: middle;
  font-size: 11px; color: var(--ink-2); background: var(--floor);
}

/* How a member books, with WhatsApp and signing in: the band at the bottom, and the dialog. */
.sport__join { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 2px solid var(--ink); scroll-margin-top: calc(var(--nav-h) + 16px); }
.sport__included { margin-top: 12px; max-width: 52ch; color: var(--ink-2); }
.sport__included a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--mark); }
.sport__actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 22px; }
.sport__actions .btn--primary { background: var(--green); border-color: var(--green); color: var(--wall); }
.sport__actions .btn--primary:hover { background: var(--green-deep); border-color: var(--green-deep); }

.sport-dialog {
  width: min(28rem, calc(100% - 2 * var(--gutter))); margin: auto; padding: 0;
  color: var(--ink); background: var(--wall); border: 0; border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(8, 26, 28, .7);
}
.sport-dialog::backdrop { background: rgba(8, 26, 28, .62); }
.sport-dialog__box { padding: clamp(20px, 4vw, 28px); }
.sport-dialog__what { font-weight: 600; font-size: var(--fs-3); line-height: 1.25; }
.sport-dialog__what:focus { outline: none; }
.sport-dialog .sport__actions { flex-direction: column; }
.sport-dialog .sport__actions .btn { width: 100%; }
.sport-dialog__back {
  display: block; margin: 14px auto 0; padding: 8px; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2);
  background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.sport-dialog__back:hover { color: var(--ink); }
