/* Guías, the blog's index (guias.html). A calm head, the topics as plain text (Tag, 2026-11-11: filters are plain text, the chosen one underlined, never boxed),
   the most-read guide large, then the rest in threes. Spacing tokens: style.css. */
.gu{padding-top:var(--hd)}
.gu-head{display:grid;gap:var(--stack);padding:var(--group) var(--pad) var(--head)}
.gu-head h1{font-size:clamp(40px,6vw,104px);line-height:1.02}
.gu-head p{margin:0;max-width:46ch;color:var(--muted)}
.gu-temas{display:flex;gap:clamp(20px,2.4vw,36px);padding:0 var(--pad);overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line)}
.gu-temas::-webkit-scrollbar{display:none}
.gu-temas button{flex:none;min-width:44px;min-height:48px;padding:0;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font:500 18px var(--f);white-space:nowrap;cursor:pointer}
.gu-temas button:hover{color:var(--ink)}
.gu-temas button[aria-pressed=true]{color:var(--ink);border-bottom-color:var(--calendula)}
.gu-feat{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--pad);align-items:center;margin:var(--group) var(--pad) 0;color:inherit;text-decoration:none}
.gu-feat[hidden]{display:none}
.gu-feat img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--panel)}
.gu-feat span{display:grid;gap:var(--stack);justify-items:start}
.gu-feat h2{font-size:clamp(28px,3.2vw,52px);text-wrap:balance}
.gu-feat p{margin:0;max-width:40ch;color:var(--muted)}
.gu-feat b{font-weight:600;text-decoration:underline;text-underline-offset:4px}
.gu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--group) var(--grid);margin:0;padding:var(--group) var(--pad) 0;list-style:none}
.gu-card a{display:grid;gap:10px;align-content:start;color:inherit;text-decoration:none}
.gu-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--panel)}
.gu-card h3{margin-top:6px;font-size:clamp(20px,1.6vw,24px);line-height:1.2;text-wrap:balance}
.gu-card span{color:var(--muted);font-size:17px}
.gu-card a:hover h3,.gu-feat:hover h2{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
.gu-more{margin:var(--group) var(--pad) 0;text-align:center}
.gu-more[hidden]{display:none}
/* the closing band is cream here: on this page it sits straight above the black footer, and two black blocks would read as one */
.gu .analysis{margin-top:var(--section);background:var(--panel);color:var(--ink)}
.gu .analysis p{color:var(--muted)}
@media (max-width:900px){.gu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  .gu-feat{grid-template-columns:1fr;gap:var(--stack)}
  .gu-feat img{aspect-ratio:4/3}
  .gu-grid{grid-template-columns:1fr}
}

/* ── Two more layouts to compare (Tag, 2026-11-17). The rules above are the page as first built and stay untouched. ── */
.gu-front{display:contents}
.gu [hidden]{display:none!important}
.gu-card p{margin:0;max-width:64ch;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.gu-card .btn{display:none}

/* ?g=aleph · Aleph Beauty's journal: a small centred title, two stories large, rows of four tall photos, the topics on a bar that stays on screen.
   Theirs carries a small spaced label above each title; ours keeps the topic as plain text under it (no eyebrows, library/principles/copy.md §6). */
.gu[data-g=aleph]{display:flex;flex-direction:column}
.gu:is([data-g=aleph],[data-t=aleph]) .gu-head{justify-items:center;text-align:center;padding-block:var(--group)}
.gu:is([data-g=aleph],[data-t=aleph]) .gu-head h1{font-size:clamp(30px,2.8vw,44px)}
.gu:is([data-g=aleph],[data-t=aleph]) .gu-head p{display:none}
.gu-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--grid);margin:0;padding:0 var(--pad);list-style:none}
.gu-duo img{aspect-ratio:16/10}
.gu-duo h3{font-size:clamp(24px,2.3vw,36px);max-width:22ch}
.gu-duo p{max-width:44ch}
.gu[data-g=aleph] .gu-grid{grid-template-columns:repeat(4,minmax(0,1fr));padding-top:var(--section)}
.gu[data-g=aleph] .gu-grid img{aspect-ratio:4/5}
.gu[data-g=aleph] .gu-temas{order:5;position:sticky;bottom:0;z-index:5;justify-content:center;margin-top:var(--group);background:var(--bg);border-top:1px solid var(--line);border-bottom:0}
.gu[data-g=aleph] .analysis{order:6;margin-top:0}
@media (max-width:900px){.gu[data-g=aleph] .gu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  /* phone: the topics sit under the header and stay there; one story at a time, photo, title, a full-width button */
  .gu[data-g=aleph] .gu-temas{order:-1;top:var(--hd);bottom:auto;justify-content:flex-start;margin-top:0;background:var(--panel);border-top:0}
  .gu[data-g=aleph] :is(.gu-duo,.gu-grid){grid-template-columns:1fr;gap:var(--section)}
  .gu[data-g=aleph] .gu-grid{padding-top:var(--section)}
  .gu[data-g=aleph] .gu-card a{justify-items:center;text-align:center}
  .gu[data-g=aleph] .gu-card img{aspect-ratio:1}
  .gu[data-g=aleph] .gu-card h3{font-size:24px;max-width:none}
  .gu[data-g=aleph] .gu-card p{display:none}
  .gu[data-g=aleph] .gu-card .btn{display:flex;width:100%;margin-top:8px}
}

/* ?g=revista · a magazine front page: the lead story with its title set on the photo, a short list beside it, then guides in two sizes.
   A black rule over each section title is the magazine's own mark (Into The Gloss, Aime). */
.gu[data-g=revista] .gu-front{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:var(--pad);align-items:start;margin:var(--group) var(--pad) 0}
.gu[data-g=revista] .gu-feat{display:block;position:relative;margin:0}
.gu[data-g=revista] .gu-feat img{aspect-ratio:16/11}
.gu[data-g=revista] .gu-feat span{position:absolute;left:0;bottom:0;max-width:min(34em,72%);padding:var(--head) var(--head) 0 0;background:var(--bg)}
.gu[data-g=revista] .gu-feat h2{font-size:clamp(26px,2.6vw,42px)}
.gu-top h2,.gu-h{padding-top:var(--stack);border-top:2px solid var(--ink);font-size:clamp(22px,1.9vw,28px)}
.gu-h{margin:var(--section) var(--pad) 0}
.gu-top ol{margin:var(--stack) 0 0;padding:0;list-style:none}
.gu-top li+li{border-top:1px solid var(--line)}
.gu-top a{display:grid;grid-template-columns:clamp(84px,7vw,112px) minmax(0,1fr);gap:16px;align-items:center;padding:14px 0;color:inherit;text-decoration:none}
.gu-top li:first-child a{padding-top:0}
.gu-top img{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:var(--panel)}
.gu-top span{display:grid;gap:6px}
.gu-top h3{font-size:clamp(18px,1.4vw,21px);line-height:1.25;text-wrap:balance}
.gu-top small{color:var(--muted);font-size:17px}
.gu-top a:hover h3{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
.gu[data-g=revista] .gu-grid{grid-template-columns:repeat(12,minmax(0,1fr));padding-top:var(--stack)}
.gu[data-g=revista] .gu-card{grid-column:span 4}
/* in fives: one wide and one tall share a row (the same photo height, so their titles line up), then three across; the wide one changes side each time */
.gu[data-g=revista] .gu-card:is(:nth-child(10n+1),:nth-child(10n+7)){grid-column:span 8}
.gu[data-g=revista] .gu-card:is(:nth-child(5n+1),:nth-child(5n+2)) img{aspect-ratio:auto;height:clamp(300px,36vw,620px)}
.gu[data-g=revista] .gu-card:is(:nth-child(10n+1),:nth-child(10n+7)) img{object-position:50% 22%} /* a tall photo cut wide keeps the face */
.gu[data-g=revista] .gu-card:is(:nth-child(10n+1),:nth-child(10n+7)) h3{font-size:clamp(24px,2.2vw,34px)}
@media (max-width:900px){
  .gu[data-g=revista] .gu-front{grid-template-columns:1fr}
  .gu[data-g=revista] .gu-card,.gu[data-g=revista] .gu-card:is(:nth-child(10n+1),:nth-child(10n+7)){grid-column:span 6}
  .gu[data-g=revista] .gu-card:is(:nth-child(5n+1),:nth-child(5n+2)) img{aspect-ratio:4/3;height:auto}
}
@media (max-width:760px){
  .gu[data-g=revista] .gu-feat span{position:static;max-width:none;padding:var(--stack) 0 0}
  .gu[data-g=revista] .gu-feat img{aspect-ratio:4/3}
  .gu[data-g=revista] .gu-grid{gap:0 var(--grid)}
  /* phone: one guide in five keeps its large photo; the others become short rows, small photo beside the title */
  .gu[data-g=revista] .gu-card,.gu[data-g=revista] .gu-card:is(:nth-child(10n+1),:nth-child(10n+7)){grid-column:1/-1;padding:16px 0;border-top:1px solid var(--line)}
  .gu[data-g=revista] .gu-card:nth-child(5n+1){padding:var(--stack) 0 var(--group);border-top:0}
  .gu[data-g=revista] .gu-card:not(:nth-child(5n+1)) a{grid-template-columns:104px minmax(0,1fr);gap:4px 16px;align-content:center}
  .gu[data-g=revista] .gu-card:not(:nth-child(5n+1)) img{grid-row:1/span 2;aspect-ratio:1;height:auto}
  .gu[data-g=revista] .gu-card:not(:nth-child(5n+1)) h3{margin:0;align-self:end;font-size:19px}
  .gu[data-g=revista] .gu-card:not(:nth-child(5n+1)) span{align-self:start}
  .gu[data-g=revista] .gu-card:not(:nth-child(5n+1)) p{display:none}
}

/* ?g=revista&t=aleph: the magazine layout under Aleph's small centred title; topics centred where they fit on one line */
@media (min-width:761px){.gu[data-t=aleph] .gu-temas{justify-content:center}}
