/*
 * Guides: hub, topic pages and articles (home.php, archive.php, single.php). Loaded only on those views.
 */

/* Topic chips under the hero */
.cw-gnav { margin-top: 0; padding-top: 24px; }
.cw-gchips { gap: 8px; padding-bottom: 8px; }
.cw-gchips .cw-chip { text-decoration: none; }
.cw-gchips .cw-chip[aria-current="page"] { background: var(--cw-ink); color: #fff; border-color: var(--cw-ink); }

/* Lead guide on the hub */
.cw-glead-sec { padding-bottom: 0; }
.cw-glead { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: 10px; border-radius: var(--cw-r); background: var(--cw-white); border: 1px solid rgba(11,12,14,.05); transition: box-shadow .6s var(--cw-ease), transform .6s var(--cw-ease); }
.cw-glead:hover { box-shadow: var(--cw-sh-2); transform: translateY(-3px); }
.cw-cover--lead { aspect-ratio: 16 / 10; }
.cw-cover--lead .cw-cover-v { left: 10%; right: 10%; top: 12%; }
.cw-glead-txt { padding: 20px clamp(8px, 2vw, 28px) 20px 0; }
.cw-glead-txt small { font-size: 13px; color: var(--cw-muted); }
.cw-glead-txt h2 { margin: 14px 0 16px; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.04; letter-spacing: -0.035em; }
.cw-glead:hover h2 { color: var(--cw-blue); }
.cw-glead-txt p { font-size: 17px; line-height: 1.6; margin-bottom: 26px; }

/* Article: sticky side rail beside the body */
.cw-garticle { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: clamp(40px, 6vw, 112px); align-items: start; }
.cw-gside { position: sticky; top: 104px; display: grid; gap: 28px; }
.cw-gmeta { display: grid; gap: 4px; font-size: 13.5px; color: var(--cw-muted); padding-bottom: 22px; border-bottom: 1px solid var(--cw-line); }
.cw-gmeta span:first-child { color: var(--cw-ink); font-weight: 500; }
.cw-toc b { display: block; font: 500 13px/1 var(--cw-sans); color: var(--cw-ink); margin-bottom: 14px; }
.cw-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 2px; }
.cw-toc li { counter-increment: t; }
.cw-toc a { display: grid; grid-template-columns: 1fr; padding: 7px 0; font-size: 14px; line-height: 1.4; color: var(--cw-body); transition: color .25s; }
.cw-toc a::before { content: none; }
.cw-toc a:hover, .cw-toc a.cw-on { color: var(--cw-ink); }
.cw-toc a.cw-on { color: var(--cw-blue); }
.cw-gside-cta { justify-self: start; height: 48px; padding: 0 5px 0 20px; font-size: 14.5px; }
.cw-gside-cta i { width: 38px; height: 38px; }

/* Article body typography */
.cw-gbody { font-size: 18px; line-height: 1.75; }
.cw-gbody > p:first-child { font-size: 20px; line-height: 1.65; color: var(--cw-ink); }
.cw-gbody h2 { scroll-margin-top: 110px; font-size: clamp(26px, 2.4vw, 34px); margin-top: 2.2em; }
.cw-gbody h3 { font-size: 21px; margin-top: 1.7em; }
.cw-gbody ul li::marker, .cw-gbody ol li::marker { color: var(--cw-blue); }
.cw-gbody table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.6em 0; }
.cw-gbody th, .cw-gbody td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--cw-line); vertical-align: top; }
.cw-gbody th { font: 500 13.5px/1.3 var(--cw-sans); color: var(--cw-muted); background: var(--cw-white); }
.cw-gbody .cw-callout { margin: 1.8em 0; padding: 22px 24px; border-radius: 16px; background: var(--cw-white); border: 1px solid rgba(11,12,14,.06); box-shadow: var(--cw-sh-1); font-size: 16.5px; }
.cw-gbody .cw-callout strong:first-child { display: block; font: 500 13px/1 var(--cw-sans); color: var(--cw-blue); margin-bottom: 8px; }
.cw-gbody .cw-steps-list { counter-reset: s; list-style: none; padding: 0; }
.cw-gbody .cw-steps-list > li { counter-increment: s; position: relative; padding-left: 46px; margin-top: 1em; }
.cw-gbody .cw-steps-list > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 9px; background: var(--cw-ink); color: #fff; font: 500 13px/30px var(--cw-sans); text-align: center; }

/* Booking prompt after the article */
.cw-gcta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; padding: clamp(36px, 5vw, 64px); border-radius: var(--cw-r); color: var(--cw-on-dark); background: radial-gradient(60% 90% at 90% 10%, rgba(47,127,212,.38), transparent 70%), var(--cw-night); }
.cw-gcta h2 { color: #fff; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.02; }
.cw-gcta h2 span { color: rgba(255,255,255,.45); }
.cw-gcta p { margin-top: 16px; }
.cw-gcta .cw-ctas { justify-content: flex-end; }
.cw-gcta .cw-link { color: #fff; }

@media (max-width: 1080px) {
  .cw-glead { grid-template-columns: 1fr; }
  .cw-glead-txt { padding: 6px 14px 18px; }
  .cw-garticle { grid-template-columns: minmax(0, 1fr); }
  .cw-gbody, .cw-gside { min-width: 0; }
  .cw-gside { position: relative; top: 0; }
  .cw-gside-cta { display: none; }
  .cw-gcta { grid-template-columns: 1fr; } .cw-gcta .cw-ctas { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .cw-gbody { font-size: 17px; } .cw-gbody > p:first-child { font-size: 18px; }
  .cw-gbody table { display: block; overflow-x: auto; }
}
