/* =========================================================
   /guides: long-form articles for organic search.
   Loads after style.css. Black hero, white reading column,
   sticky contents list on desktop, click-to-load YouTube.
   ========================================================= */

/* ---------- hero ---------- */
.g-hero { padding: 150px 0 84px; background: var(--ink); color: #fff; }
.g-hero h1 { max-width: 15em; font-size: clamp(40px, 5.6vw, 80px); }
.g-lede { max-width: 34em; margin-top: 28px; font-size: 20px; line-height: 1.5; color: var(--muted-d); text-wrap: pretty; }
.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--ink-line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-d); }
.g-meta .g-by { display: flex; align-items: center; gap: 12px; }
.g-meta img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.g-crumbs { margin-bottom: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-d2); }
.g-crumbs a { color: var(--muted-d); text-decoration: none; }
.g-crumbs a:hover { color: #fff; }

/* ---------- video (click to load, no YouTube scripts until then) ---------- */
.g-video { max-width: 980px; margin: 52px 0 0; }
.g-video .win { box-shadow: 0 0 0 1px var(--ink-line), 0 50px 90px -40px rgba(0, 0, 0, 0.6); }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.78); transition: filter 0.3s var(--ease); }
.yt:hover img { filter: brightness(0.64); }
.yt-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--blue); color: #fff; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.yt-play svg { margin-left: 4px; }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.06); }
.yt-cap { position: absolute; left: 18px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 10, 10, 0.72); color: #fff; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- body ---------- */
.g-body { padding: 96px 0 120px; background: var(--paper); color: var(--text); }
.g-grid { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 72px; align-items: start; }
.g-toc { position: sticky; top: 104px; font-size: 14.5px; line-height: 1.4; }
.g-toc p { margin-bottom: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.g-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.g-toc li { counter-increment: toc; }
.g-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.g-toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--mono); font-size: 11px; color: var(--line-2); }
.g-toc a:hover, .g-toc a.is-on { color: var(--ink); border-color: var(--blue); }

.g-article { font-size: 18px; line-height: 1.7; color: #26261f; }
.g-article > * + * { margin-top: 22px; }
.g-article h2 { margin-top: 76px; padding-top: 30px; border-top: 1px solid var(--line); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; color: var(--ink); scroll-margin-top: 96px; }
.g-article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.g-article h3 { margin-top: 40px; font-size: 23px; line-height: 1.2; color: var(--ink); }
.g-article h2 + p, .g-article h3 + p { margin-top: 18px; }
.g-article a { color: var(--blue); text-underline-offset: 3px; }
.g-article strong { color: var(--ink); font-weight: 600; }
.g-article ul, .g-article ol { padding-left: 22px; }
.g-article li + li { margin-top: 8px; }
.g-article li::marker { color: var(--blue); }

/* the short answer up top (also what AI tools lift) */
.g-tldr { padding: 26px 28px; border-radius: var(--r-lg); background: var(--grey); border: 1px solid var(--line); }
.g-tldr b { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.g-tldr ul { margin: 0; }

/* word-for-word scripts */
.g-script { padding: 22px 26px; border-left: 3px solid var(--blue); border-radius: 0 var(--r) var(--r) 0; background: var(--blue-soft); color: var(--ink); font-size: 18px; }
.g-script small { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }

/* side note */
.g-note { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); font-size: 16.5px; color: var(--muted); }
.g-note b { color: var(--ink); }

/* this week / checklist */
.g-week { padding: 28px 30px 24px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.g-week h4 { margin-bottom: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-l); }
.g-week .ticks li { color: rgba(255, 255, 255, 0.88); font-size: 17px; line-height: 1.5; }

/* simple data table */
.g-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.g-table th { padding: 10px 12px; text-align: left; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.g-table td { padding: 13px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.g-table td:first-child { font-weight: 600; color: var(--ink); }
.g-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* in-article call to action */
.g-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.g-cta p { font-size: 18px; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.g-cta p b { display: block; margin-bottom: 4px; color: #fff; font-size: 21px; letter-spacing: -0.02em; }
.g-cta .btn { flex: none; }
.g-article .g-cta a.btn { color: #fff; text-decoration: none; }

/* FAQ inside the article reuses the site's details styling loosely */
.g-faq details { border-top: 1px solid var(--line); }
.g-faq details:last-child { border-bottom: 1px solid var(--line); }
.g-faq summary { position: relative; padding: 20px 40px 20px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--blue); }
.g-faq details[open] summary::after { content: "–"; }
.g-faq details p { padding-bottom: 22px; font-size: 17px; }

/* ---------- guides hub ---------- */
.g-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.g-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink); text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.g-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.35); }
.g-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--ink); }
.g-card-in { display: flex; flex: 1; flex-direction: column; padding: 26px 28px 28px; }
.g-card small { margin-bottom: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--blue); }
.g-card h2 { font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; }
.g-card p { margin-top: 12px; font-size: 16.5px; color: var(--muted); }
.g-card span { margin-top: auto; padding-top: 20px; font-weight: 600; }

/* video embedded on a service page */
.g-embed { max-width: 980px; }
.g-embed .win { box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(0, 0, 0, 0.45); }

@media (max-width: 1020px) {
  .g-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .g-toc { display: none; }
}
@media (max-width: 720px) {
  .g-hero { padding: 120px 0 64px; }
  .g-lede { font-size: 18px; }
  .g-body { padding: 64px 0 88px; }
  .g-article { font-size: 17px; }
  .g-article h2 { margin-top: 60px; }
  .g-cta { flex-direction: column; align-items: flex-start; }
  .g-list { grid-template-columns: minmax(0, 1fr); }
  .yt-play { width: 62px; height: 62px; }
}
