/* One guide (guia.html), the blog's post page. Loads after guias.css and reuses its closing band, its "Más guías" heading and its cards.
   No parameter: the title centred over a wide photo, one reading column, the products after the text.
   ?a=aleph: Aleph Beauty's article page, photo beside the title, then the products in a column that stays in view beside the text. */
.ga-head{display:grid;gap:var(--stack);justify-items:center;text-align:center;padding:var(--stack) var(--pad) var(--group)}
.ga-head h1{max-width:22ch;font-size:clamp(32px,4.2vw,64px);line-height:1.06;text-wrap:balance}
.ga-head p{margin:0;max-width:52ch;color:var(--muted)}
.ga-foto{display:block;width:calc(100% - 2*var(--pad));height:auto;margin:0 auto;aspect-ratio:2/1;object-position:50% 42%;object-fit:cover;background:var(--panel)}
.ga-body,.ga-prod{width:min(100% - 2*var(--pad),720px);margin:var(--section) auto 0}
.ga-body{margin-top:var(--group)}
.ga-body>*{margin:0}
.ga-body>*+*{margin-top:var(--stack)}
.ga-body>h2{margin-top:var(--group);font-size:clamp(26px,2.4vw,34px);line-height:1.15}
.ga-body>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:50% 34%;background:var(--panel)}
.ga-body a{color:inherit;text-decoration-color:var(--calendula);text-decoration-thickness:2px;text-underline-offset:4px}
.ga-corto{display:grid;gap:12px;padding:var(--head);background:var(--panel)}
.ga-corto h2{font-size:clamp(22px,1.9vw,28px)}
.ga-corto ul{display:grid;gap:8px;margin:0;padding-left:1.1em}
.ga-prod h2{padding-top:var(--stack);border-top:2px solid var(--ink);font-size:clamp(22px,1.9vw,28px)}
.ga-prod ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--grid);margin:var(--stack) 0 0;padding:0;list-style:none}
.ga-prod .card{display:flex;flex-direction:column}
.ga-prod .btn{margin-top:auto}
.ga .gu-h{margin-top:var(--section)}
.ga .gu-grid{padding-top:var(--stack)}

/* ?a=aleph */
@media (min-width:901px){
  .ga[data-a=aleph] .ga-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:var(--stack) var(--pad) 0;background:var(--panel)}
  .ga[data-a=aleph] .ga-head{order:2;align-content:center;justify-items:start;text-align:left;padding:var(--group) clamp(32px,6vw,112px)}
  .ga[data-a=aleph] .ga-head h1{font-size:clamp(30px,3.2vw,48px)}
  .ga[data-a=aleph] .ga-foto{width:100%;height:min(74vh,720px);aspect-ratio:auto}
  .ga[data-a=aleph] .ga-cols{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:var(--pad);align-items:start;margin:var(--group) var(--pad) 0}
  .ga[data-a=aleph] .ga-body{width:auto;max-width:720px;margin:0}
  /* 44px top bar + header + a little air, so the column stops under the fixed header */
  .ga[data-a=aleph] .ga-prod{order:-1;position:sticky;top:calc(44px + var(--hd) + 24px);width:auto;max-width:380px;margin:0}
  .ga[data-a=aleph] .ga-prod ul{grid-template-columns:1fr;gap:0}
  .ga[data-a=aleph] .ga-prod .card{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:16px;align-content:start;padding:16px 0;border-bottom:1px solid var(--line)}
  .ga[data-a=aleph] .ga-prod .ph{grid-row:1/span 4;aspect-ratio:4/5}
  .ga[data-a=aleph] .ga-prod .card h3{margin-top:0}
  .ga[data-a=aleph] .ga-prod .meta{display:none}
  .ga[data-a=aleph] .ga-prod .btn{margin-top:10px}
}
@media (max-width:900px){
  /* on a phone Aleph's page keeps only its opening: photo first, then the title on a panel. The products stay after the text, where the reader has a reason to want them. */
  .ga[data-a=aleph] .ga-open{display:flex;flex-direction:column-reverse}
  .ga[data-a=aleph] .ga-head{justify-items:start;text-align:left;padding:var(--head) var(--pad) var(--group);background:var(--panel)}
  .ga[data-a=aleph] .ga-foto{width:100%;aspect-ratio:1}
}
@media (max-width:760px){
  .ga-foto{aspect-ratio:4/3}
  .ga-body>img{aspect-ratio:1}
}

/* The blog text of the other guides (guias-texto.js, 2026-12-03): her posts use third-level headings and lists. */
.ga-body>h3{margin-top:var(--group);font-size:clamp(22px,2vw,28px);line-height:1.2}
.ga-body :is(h2,h3) strong{font-weight:inherit}
.ga-body :is(ul,ol){padding-left:1.2em}
.ga-body li+li{margin-top:8px}
.ga-body li>p{margin:0}
.ga-body blockquote{margin-inline:0;padding-left:20px;border-left:2px solid var(--calendula)}
