/* Guides: index and article. Same palette and type as the shop. */
.avs-g-wrap{ max-width:1200px; margin:0 auto; padding:0 20px; }
.avs-g-narrow{ max-width:820px; }
.avs-g-kicker, .avs-g-topic{ margin:0 0 8px; font-size:.875rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--violet-500); }
.avs-g-meta{ margin:0; font-size:.9375rem; font-weight:600; color:var(--ink-muted); }

/* index */
.avs-guides-hero{ padding:clamp(36px,5vw,64px) 0 clamp(24px,3vw,36px); background:linear-gradient(180deg,#F4F0FB 0%,rgba(244,240,251,0) 100%); }
.avs-guides-hero h1{ margin:0 0 12px; font-size:clamp(2rem,1.4rem + 2.4vw,3rem); line-height:1.08; letter-spacing:-.03em; color:var(--indigo-900); }
.avs-guides-lede{ max-width:60ch; margin:0; font-size:1.1875rem; line-height:1.55; color:var(--ink-muted); }
.avs-g-chips{ display:flex; flex-wrap:wrap; gap:10px; margin:24px 0 0; }
.avs-g-chips a{ display:inline-flex; align-items:center; min-height:44px; padding:0 18px; border-radius:999px; border:1px solid #DDD4EE;
  background:#fff; color:var(--indigo-900); font-weight:600; text-decoration:none; }
.avs-g-chips a:hover{ background:var(--lavender); }
.avs-g-chips a[aria-current="page"]{ background:var(--indigo-900); border-color:var(--indigo-900); color:#fff; }

.avs-g-grid{ display:grid; gap:22px; grid-template-columns:repeat(3,minmax(0,1fr)); margin:8px 0 0; }
.avs-g-card a{ display:flex; flex-direction:column; height:100%; overflow:hidden; border:1px solid var(--line); border-radius:20px;
  background:#fff; text-decoration:none; color:inherit; box-shadow:0 1px 3px rgba(46,26,94,.06); transition:box-shadow .18s ease, transform .18s ease; }
.avs-g-card a:hover{ box-shadow:0 14px 30px rgba(46,26,94,.12); transform:translateY(-2px); }
.avs-g-img{ display:block; width:100%; aspect-ratio:16/10; object-fit:cover; background:linear-gradient(135deg,#EDE7F8,#FFF3DF); }
.avs-g-body{ display:flex; flex-direction:column; gap:8px; padding:20px 22px 22px; flex:1; }
.avs-g-title{ margin:0; font-size:1.25rem; line-height:1.3; letter-spacing:-.01em; color:var(--indigo-900); }
.avs-g-sum{ margin:0; font-size:1.0rem; line-height:1.55; color:var(--ink-muted); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.avs-g-body .avs-g-meta{ margin-top:auto; padding-top:6px; color:var(--indigo-900); }
.avs-g-card--big{ grid-column:1 / -1; }
.avs-g-card--big a{ flex-direction:row; }
.avs-g-card--big .avs-g-img{ width:56%; aspect-ratio:auto; min-height:340px; }
.avs-g-card--big .avs-g-body{ padding:34px 36px; justify-content:center; }
.avs-g-card--big .avs-g-title{ font-size:clamp(1.5rem,1.1rem + 1.2vw,2rem); line-height:1.2; }
.avs-g-card--big .avs-g-sum{ font-size:1.125rem; -webkit-line-clamp:4; }
.avs-g-empty{ font-size:1.125rem; }
.avs-g-call{ display:flex; align-items:center; justify-content:space-between; gap:20px 32px; flex-wrap:wrap;
  margin:clamp(40px,5vw,64px) 0; padding:28px 32px; border-radius:22px; background:var(--indigo-900); color:#fff; }
.avs-g-call h2{ margin:0 0 6px; color:#fff; font-size:1.5rem; }
.avs-g-call p{ margin:0; opacity:.85; font-size:1.0625rem; max-width:52ch; }
.avs-g-call-btn{ display:inline-flex; align-items:center; gap:10px; min-height:54px; padding:0 26px; border-radius:999px;
  background:var(--amber-500); color:#3D2600; font-weight:700; text-decoration:none; white-space:nowrap; }
.avs-guides .nav-links{ display:flex; gap:10px; justify-content:center; margin:28px 0 0; }

/* article */
.avs-guide-head{ padding:clamp(28px,4vw,52px) 0 clamp(18px,2vw,26px); background:linear-gradient(180deg,#F4F0FB 0%,rgba(244,240,251,0) 100%); }
.avs-g-crumbs{ display:flex; gap:8px; flex-wrap:wrap; margin:0 0 14px; font-size:.9375rem; color:var(--ink-muted); }
.avs-g-crumbs a{ color:var(--violet-500); font-weight:600; text-decoration:none; }
.avs-guide-head h1{ margin:0 0 14px; font-size:clamp(2rem,1.3rem + 2.6vw,3.1rem); line-height:1.1; letter-spacing:-.03em; color:var(--indigo-900); }
.avs-guide-lede{ margin:0 0 14px; font-size:1.25rem; line-height:1.55; color:var(--ink-muted); }
.avs-guide-hero{ margin:6px auto 0; }
.avs-guide .avs-guide-hero img{ display:block; width:100%; height:auto; aspect-ratio:16/9; max-height:600px; object-fit:cover; border-radius:24px; }
.avs-guide-layout{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:48px; margin-top:clamp(28px,3vw,44px); align-items:start; }
.avs-guide-body{ max-width:720px; }
.avs-guide-content{ font-size:1.1875rem; line-height:1.75; color:var(--ink); }
.avs-guide-content h2{ margin:1.8em 0 .5em; font-size:1.625rem; line-height:1.25; color:var(--indigo-900); scroll-margin-top:140px; }
.avs-guide-content h3{ margin:1.4em 0 .4em; font-size:1.25rem; color:var(--indigo-900); }
.avs-guide-content p, .avs-guide-content ul, .avs-guide-content ol{ margin:0 0 1.1em; }
.avs-guide-content li{ margin:0 0 .5em; }
.avs-guide-content a{ color:var(--indigo-900); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.avs-guide-content > p:last-child em{ color:var(--ink-muted); }
.avs-guide-short{ margin:0 0 30px; padding:22px 24px; border-radius:18px; background:var(--lavender); border:1px solid #E4DCF2; }
.avs-guide-short h2{ margin:0 0 10px; font-size:1.125rem; color:var(--indigo-900); }
.avs-guide-short ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.avs-guide-short li{ position:relative; padding-left:30px; font-size:1.125rem; line-height:1.5; color:var(--ink); }
.avs-guide-short li::before{ content:"\2713"; position:absolute; left:0; top:0; width:22px; height:22px; border-radius:50%;
  display:grid; place-items:center; background:#fff; color:var(--violet-500); font-weight:700; font-size:.8125rem; }
.avs-guide-faq{ margin:36px 0 0; }
.avs-guide-faq h2{ margin:0 0 14px; font-size:1.625rem; color:var(--indigo-900); }
.avs-guide-faq details{ border:1px solid var(--line); border-radius:14px; background:#fff; margin:0 0 10px; }
.avs-guide-faq summary{ display:flex; align-items:center; min-height:56px; padding:12px 18px; cursor:pointer; font-weight:700; font-size:1.0625rem; color:var(--indigo-900); list-style:none; }
.avs-guide-faq summary::-webkit-details-marker{ display:none; }
.avs-guide-faq summary::after{ content:"+"; margin-left:auto; font-size:1.4rem; color:var(--violet-500); }
.avs-guide-faq details[open] summary::after{ content:"\2212"; }
.avs-guide-faq details p{ margin:0; padding:0 18px 16px; font-size:1.0625rem; line-height:1.65; color:var(--ink); }
.avs-guide-note{ margin:28px 0 0; padding-top:18px; border-top:1px solid var(--line); font-size:.9875rem; color:var(--ink-muted); }
.avs-guide-side{ position:sticky; top:calc(var(--avs-head-h,120px) + 20px); display:grid; gap:16px; }
.avs-guide-toc{ padding:18px 20px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.avs-guide-toc p{ margin:0 0 8px; font-weight:700; color:var(--indigo-900); }
.avs-guide-toc ol{ margin:0; padding-left:20px; display:grid; gap:4px; }
.avs-guide-toc a{ display:inline-flex; min-height:36px; align-items:center; color:var(--ink); text-decoration:none; font-size:1rem; }
.avs-guide-toc a:hover{ color:var(--violet-500); text-decoration:underline; }
.avs-guide-help{ padding:18px 20px; border-radius:16px; background:var(--indigo-900); color:#fff; }
.avs-guide-help p{ margin:0 0 12px; display:grid; gap:2px; opacity:.9; }
.avs-guide-help b{ font-size:1.0625rem; opacity:1; }
.avs-guide-help a{ display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:0 18px; border-radius:999px;
  background:var(--amber-500); color:#3D2600; font-weight:700; text-decoration:none; }
.avs-guide-shop, .avs-guide-more{ margin-top:clamp(40px,5vw,64px); }
.avs-gs-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 16px; }
.avs-guide-shop h2, .avs-guide-more h2{ margin:0 0 16px; font-size:clamp(1.4rem,1.1rem + .8vw,1.75rem); color:var(--indigo-900); }
.avs-gs-head h2{ margin:0; }
.avs-gs-head a{ font-weight:700; color:var(--indigo-900); text-decoration:none; }
.avs-g-grid--3{ margin-bottom:clamp(40px,5vw,64px); }

@media (max-width:1023px){
  .avs-g-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .avs-guide-layout{ grid-template-columns:1fr; gap:24px; }
  .avs-guide-side{ position:static; }
}
@media (max-width:767px){
  .avs-g-grid{ grid-template-columns:1fr; }
  .avs-g-card--big a{ flex-direction:column; }
  .avs-g-card--big .avs-g-img{ width:100%; min-height:0; aspect-ratio:16/10; }
  .avs-g-card--big .avs-g-body{ padding:20px 22px 22px; }
  .avs-guide-content{ font-size:1.125rem; }
  .avs-g-call{ padding:24px; }
}

/* Guides take the whole content width, whatever the theme's post layout says. */
body.avs-guides-view #content > .ast-container{ display:block; max-width:none; padding:0; }
body.avs-guides-view main.avs-guides, body.avs-guides-view main.avs-guide{ display:block; width:100%; max-width:none; margin:0; padding:0 0 clamp(40px,5vw,72px); background:none; }
body.avs-guides-view .avs-guide-more h2{ display:block; }
/* The featured guide: a wide, calm picture, not a tall one. */
.avs-g-card--big .avs-g-img{ height:380px; min-height:0; }
@media (max-width:767px){ .avs-g-card--big .avs-g-img{ height:auto; } }
/* Title block lines up with the article, text kept to a readable width. */
.avs-guide-head .avs-g-narrow{ max-width:1200px; }
.avs-guide-head h1, .avs-guide-head .avs-guide-lede{ max-width:820px; }
.avs-guide-head .avs-guide-lede{ padding:0; }
/* White text in the dark help card. */
.avs-guide-help p, .avs-guide-help b{ color:#fff!important; }
.avs-guide-help p{ opacity:.88; }
/* "More guides" above its cards. */
body.avs-guides-view section.avs-guide-more, body.avs-guides-view section.avs-guide-shop{ display:block!important; }
body.avs-guides-view .avs-guide-more .avs-g-grid{ width:100%; }

/* Load more */
.avs-g-grid > [hidden]{ display:none!important; }
.avs-g-more{ display:grid; justify-items:center; gap:10px; margin:34px 0 0; }
.avs-g-more-btn{ display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:0 30px; border-radius:999px;
  border:1.5px solid var(--indigo-900)!important; background:#fff!important; color:var(--indigo-900)!important; font-weight:700; font-size:1.0625rem; cursor:pointer; box-shadow:none!important; }
.avs-g-more-btn:hover{ background:var(--indigo-900)!important; color:#fff!important; }
.avs-g-more-btn:focus-visible{ outline:var(--focus); outline-offset:3px; }
.avs-g-more-count{ margin:0; font-size:.9375rem; color:var(--ink-muted); }

/* Guide pictures keep their shape everywhere (an old widget rule fixed every .avs-guide img
   at 170px), and any crop favours the top of the photo, where the faces are. */
.avs-guides .avs-g-img, .avs-guide .avs-g-img{ height:auto; aspect-ratio:16/10; border-radius:0; object-position:50% 30%; }
.avs-guides .avs-g-card--big .avs-g-img{ aspect-ratio:auto; height:100%; }

/* "More guides" cards on a guide page match the cards on the guides index; the page's
   article styles (and an old widget's .avs-guide rules) otherwise indent and space them out. */
.avs-guide .avs-g-card .avs-g-body > *{ padding:0; margin:0; }
.avs-guide .avs-g-card .avs-g-topic{ font-size:.875rem; color:var(--violet-500); }
.avs-guide .avs-g-card .avs-g-title{ font-size:1.25rem; line-height:1.3; }
.avs-guide .avs-g-card .avs-g-sum{ font-size:1rem; line-height:1.55; color:var(--ink-muted); }
.avs-guide .avs-g-card .avs-g-meta{ margin-top:auto; padding-top:6px; font-size:.9375rem; color:var(--indigo-900); }
