/* Clever Legal v2: guides, the guides index and the author pages (Nov 2026).
   Loaded after v2.css (tokens, header, footer, buttons). Everything here is the
   chrome and the type of those pages; the words and the markup are the guides'
   own and are built by scripts/guides/apply-article-template.mjs. */

/* Shared bits that styles.css used to supply ------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
a.visually-hidden:focus, .skip-link:focus { position: fixed !important; z-index: 100; top: 8px; left: 8px; width: auto; height: auto; margin: 0; padding: 12px 18px; clip: auto; clip-path: none; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; }
.skip-link { position: absolute; left: -9999px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { font-size: .86rem; color: var(--accent); font-weight: 700; margin: 0; }
main section { border: 0; }

/* ============================================================================
   Guide article
   ========================================================================= */
.gart { --gart-rail: 210px; --gart-side: 300px; }

/* Header: breadcrumb, title, byline; topic photo on the right. */
.gart-hero { padding: clamp(36px, 4.5vw, 64px) 0 clamp(36px, 4.5vw, 56px); border-bottom: 1px solid var(--grey-300); }
.gart-hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.gart-crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .88rem; font-weight: 600; }
.gart-crumbs a { color: var(--accent); text-decoration: none; }
.gart-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gart-crumbs span { color: var(--muted); }
.gart-hero h1 { margin-top: 20px; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; max-width: 22ch; }
.gart-hero .sub { margin-top: 18px; color: var(--on); font-size: var(--lead); line-height: 1.5; max-width: 52ch; text-wrap: pretty; }
.gart-byline { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.gart-byline__img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--grey-100); }
.gart-byline__text { display: flex; flex-direction: column; line-height: 1.4; }
.gart-byline .byline { font-size: .94rem; color: var(--ink); font-weight: 600; }
.gart-byline .byline a { color: var(--accent); text-decoration: none; }
.gart-byline .byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gart-byline__meta { font-size: .86rem; color: var(--muted); }
.gart-hero__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--grey-100); }

/* Body: contents | article | reading path + CTA. */
.gart-body { padding: clamp(32px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.gart-grid { display: grid; grid-template-columns: var(--gart-rail) minmax(0, 1fr) var(--gart-side); gap: clamp(32px, 4vw, 64px); align-items: start; }
.gart .prose { width: 100%; max-width: 68ch; min-width: 0; margin: 0 auto 0 0; }   /* width: 100% — with an auto margin a grid item shrinks to fit, and a 520px table then pushed the article past a phone screen */
.gart .prose h2, .gart-answer { scroll-margin-top: 96px; }
.gart .prose h2 { font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.15; margin: 56px 0 16px; padding-top: 20px; border-top: 1px solid var(--grey-300); }
.gart .prose > h2:first-child, .gart .prose .gart-answer + h2 { margin-top: 40px; }
.gart .prose h3 { font-size: clamp(1.15rem, 1.4vw, 1.3rem); margin: 32px 0 10px; letter-spacing: -.01em; }
.gart .prose p { margin: 0 0 18px; color: var(--on); font-size: var(--body); line-height: 1.7; }
.gart .prose ul, .gart .prose ol { color: var(--on); margin: 0 0 20px; padding-left: 24px; }
.gart .prose li { line-height: 1.65; margin: 0 0 9px; padding-left: 4px; }
.gart .prose li::marker { color: var(--accent); }
.gart .prose strong { color: var(--ink); font-weight: 600; }
.gart .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gart .prose a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
.gart .prose blockquote { border-left: 4px solid var(--accent); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--ink); }
.gart .prose hr { border: 0; border-top: 1px solid var(--grey-300); margin: 36px 0; }
.gart .prose em { font-style: italic; }
.gart .prose .meta { color: var(--muted); font-size: .86rem; }

/* <details> is a plain block on wide screens and a disclosure on narrow ones
   (guide-article.js folds it); these keep the wide form static. */
.gart details > summary { list-style: none; }
.gart details > summary::-webkit-details-marker { display: none; }

/* Contents: sticky on desktop, folded below 1100px. */
.gart-toc { position: sticky; top: 92px; align-self: start; }
.gart-toc summary { font-size: .86rem; color: var(--muted); font-weight: 700; pointer-events: none; }
.gart-toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--grey-300); }
.gart-toc a { position: relative; display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: .9rem; line-height: 1.4; color: var(--muted); text-decoration: none; }
.gart-toc a:hover { color: var(--ink); }
.gart-toc a.is-active { color: var(--accent); font-weight: 600; border-left-color: var(--accent); }

/* "The short answer" */
.gart-answer { background: var(--grey-100); border: 1px solid var(--grey-300); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 26px 30px 24px; margin: 0 0 32px; }
.gart .prose .gart-answer__label { margin: 0; font-size: .86rem; color: var(--accent); font-weight: 700; line-height: 1.5; }
.gart .prose .gart-answer__text { margin: 10px 0 0; color: var(--ink); font-size: 1.2rem; font-weight: 600; line-height: 1.5; text-wrap: pretty; }
.gart .prose .gart-answer__text strong { color: inherit; font-weight: inherit; }
.gart .prose .gart-answer__note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--grey-300); color: var(--muted); font-size: .84rem; line-height: 1.5; }
.gart .prose .draft-banner { margin: 0 0 28px; background: var(--grey-100); border: 1px solid var(--grey-300); border-radius: var(--radius); padding: 12px 16px; color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* Tables and their category tags. */
.gart .prose .tablewrap { overflow-x: auto; margin: 28px 0 24px; border: 1px solid var(--grey-300); border-radius: var(--radius); background: var(--white); }
.gart .prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.gart .prose th, .gart .prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--grey-300); color: var(--on); line-height: 1.55; vertical-align: top; }
.gart .prose thead th { background: var(--grey-100); color: var(--ink); font-weight: 600; font-size: .86rem; }
.gart .prose th[scope="row"] { color: var(--ink); font-weight: 600; }
.gart .prose tbody tr:last-child td, .gart .prose tbody tr:last-child th { border-bottom: 0; }
.gart .prose .tablenote { color: var(--muted); font-size: .86rem; margin: -12px 0 24px; }
.gart-tag { display: inline-block; padding: 2px 10px; border-radius: var(--radius); font-size: .8rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.gart-tag--1 { background: #EFE9FB; color: var(--accent-deep); }
.gart-tag--2 { background: #E3F1EA; color: #1F5138; }
.gart-tag--3 { background: #FBF0C2; color: #5E4800; }
.gart-tag--4 { background: var(--grey-100); color: var(--muted); }

/* Inline "Related guide" card. */
.gart .prose .gart-related { margin: 32px 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius); padding: 12px; color: var(--on); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.gart .prose .gart-related:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(14, 12, 18, .08); color: var(--on); }
.gart-related__img { width: 120px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gart-related__body { display: flex; flex-direction: column; gap: 2px; }
.gart-related__label { font-size: .86rem; color: var(--accent); font-weight: 700; }
.gart-related__t { font-size: 1.04rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.gart-related__meta { color: var(--muted); font-size: .84rem; }

/* In-article callouts: flat deep-purple panels. */
.gart .prose .toolcta, .gart .prose .callout { background: var(--panel-2); border: 0; border-radius: var(--radius); padding: 22px 26px; color: #E9E4F7; margin: 28px 0; }
.gart .prose .toolcta { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.gart .prose .callout { display: flex; gap: 16px; align-items: flex-start; }
.gart .prose .callout::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; background: #C9B6FF; clip-path: polygon(50% 10%, 90% 90%, 10% 90%); }
.gart .prose .callout p { margin: 0; color: #E9E4F7; font-size: 1rem; line-height: 1.6; }
.gart .prose .callout strong, .gart .prose .callout b { color: var(--white); }
.gart .prose .callout a, .gart .prose .toolcta a:not(.btn) { color: #D8C9FF; }
.gart .prose .toolcta h3 { color: var(--white); margin: 0 0 6px; font-size: 1.1rem; }
.gart .prose .toolcta p { color: #D8D2EA; margin: 0; font-size: .95rem; line-height: 1.55; max-width: 46ch; }
.gart .prose .toolcta .btn { background: var(--white); border-color: var(--white); color: var(--ink) !important; text-decoration: none; }
.gart .prose .toolcta .btn:hover { background: var(--grey-100); border-color: var(--grey-100); }

/* Author box closing the article. */
.gart .prose .authorbox { margin: 48px 0 0; padding: 22px 24px; border: 1px solid var(--grey-300); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--grey-50); }
.gart .prose .authorbox p { margin: 0; }
.gart .prose .authorbox .authorbox-name { font-weight: 600; font-size: 1.02rem; }
.gart .prose .authorbox .authorbox-name a { color: var(--ink); text-decoration: none; }
.gart .prose .authorbox .authorbox-name a:hover { color: var(--accent); }
.gart .prose .authorbox .authorbox-role { color: var(--muted); font-size: .86rem; margin: 2px 0 10px; }
.gart .prose .authorbox .authorbox-bio { font-size: .94rem; line-height: 1.65; }

/* Right column: reading path, CTA. */
.gart-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.gart-path { background: var(--white); border: 1px solid var(--grey-300); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 22px; }
.gart-path summary { display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.gart-path__label { font-size: .86rem; color: var(--accent); font-weight: 700; }
.gart-path__title { font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.gart-path ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gart-path li a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border-radius: var(--radius); color: var(--ink); font-size: .88rem; font-weight: 500; line-height: 1.35; text-decoration: none; }
.gart-path li a:hover { background: var(--grey-100); }
.gart-path li a[aria-current="page"] { background: #EFE9FB; font-weight: 600; }
.gart-path__n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--grey-300); display: grid; place-items: center; font-size: .86rem; font-weight: 700; color: var(--accent); background: var(--white); }
.gart-path a[aria-current="page"] .gart-path__n { background: var(--accent); border-color: var(--accent); color: var(--white); }
.gart-cta { background: var(--panel-2); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.gart-cta h2 { color: var(--white); font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; }
.gart-cta p { color: #D8D2EA; font-size: .92rem; line-height: 1.55; }
.gart-cta .gart-cta__fee { color: #D8C9FF; font-size: .86rem; font-weight: 600; }
.gart-cta__btn { margin-top: 4px; display: flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 18px; border-radius: var(--btn-radius); background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color .15s ease; text-align: center; }
.gart-cta__btn:hover { background: var(--grey-100); }
.gart-cta__btn:focus-visible { outline-color: #D8C9FF; }

/* After the article: next step of the path, then more from the topic. */
.gart .gart-after { background: var(--grey-50); border-top: 1px solid var(--grey-300); padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.gart-next { display: grid; grid-template-columns: minmax(0, 1fr) 380px; background: var(--ink); border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; margin-bottom: 56px; }
.gart-next__body { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 10px; }
.gart-next__label { font-size: .86rem; color: #C9B6FF; font-weight: 700; }
.gart-next__t { font: var(--display-weight) clamp(1.4rem, 2.4vw, 2rem)/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.gart-next__x { color: #D8D2EA; font-size: 1rem; max-width: 56ch; }
.gart-next__go { margin-top: 8px; color: #D8C9FF; font-weight: 600; }
.gart-next:hover .gart-next__go { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.gart-next__img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.gart-more__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.gart-more__head h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.15; }
.gart-more__head a { color: var(--accent); font-weight: 600; font-size: .94rem; white-space: nowrap; text-decoration: none; }
.gart-more__head a:hover { text-decoration: underline; text-underline-offset: 4px; }
.gart-more__grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gart-mcard { display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 1px solid var(--grey-300); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 24px; color: var(--on); text-decoration: none; transition: box-shadow .15s ease; }
.gart-mcard:hover { box-shadow: 0 10px 30px rgba(14, 12, 18, .08); }
.gart-mcard__t { font-size: 1.1rem; font-weight: 700; color: var(--ink); line-height: 1.28; letter-spacing: -.01em; }
.gart-mcard__x { color: var(--muted); font-size: .9rem; text-wrap: pretty; }
.gart-mcard__meta { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: .82rem; }

@media (max-width: 1100px) {
  .gart-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px 40px; }
  .gart-toc { position: static; grid-column: 1; grid-row: 1; }
  .gart .prose { grid-column: 1; grid-row: 2; }
  .gart-side { grid-column: 2; grid-row: 1 / span 2; }
  .gart-toc details { background: var(--grey-50); border: 1px solid var(--grey-300); border-radius: var(--radius); padding: 14px 18px; }
  .gart-toc summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .gart-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
  .gart-toc details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .gart-toc ol { border-left: 0; }
  .gart-toc a { padding-left: 0; border-left: 0; margin-left: 0; }
}
@media (max-width: 860px) {
  .gart-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gart-hero h1 { max-width: none; }
  .gart-hero__img { aspect-ratio: 16 / 9; }
  .gart-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gart-toc, .gart .prose, .gart-side { grid-column: 1; grid-row: auto; }
  .gart .prose { max-width: none; }
  .gart-side { position: static; margin-top: 16px; }
  .gart-path { padding: 18px 20px; }
  .gart-path summary { pointer-events: auto; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
  .gart-path summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; grid-row: 1 / span 2; grid-column: 2; }
  .gart-path[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .gart-next { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }
  .gart-next__img { grid-row: 1; min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .gart-more__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .gart-answer { padding: 22px 20px; }
  .gart .prose .gart-related { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .gart-related__img { width: 88px; }
  .gart-more__head { flex-direction: column; gap: 6px; }
  .gart .prose .toolcta { padding: 20px; }
}

/* ============================================================================
   Guides index
   ========================================================================= */
.ghero { padding: clamp(48px, 6vw, 88px) 0; background: var(--ink); color: #E6E3EC; }
.ghero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.ghero .eyebrow { color: #C9B6FF; }
.ghero h1 { margin-top: 16px; color: var(--white); max-width: 16ch; }
.ghero__ask { margin-top: 32px; color: #D8C9FF; font-size: .95rem; font-weight: 600; }
.ghero__chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.gsit { padding: 11px 18px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #ECE8F5; font: 500 .96rem/1.3 var(--sans); text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.gsit:hover { border-color: var(--white); }
.gsit[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); font-weight: 600; }
.gsit:focus-visible { outline: 3px solid #C9B6FF; outline-offset: 3px; }
.ghero__media { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .06); }
.ghero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gpath { margin-top: 48px; }
.gpath__intro { color: #CFC9DB; font-size: 1.05rem; max-width: 64ch; text-wrap: pretty; }
.gpath__steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gstep a { height: 100%; display: flex; flex-direction: column; gap: 8px; background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--accent); padding: 24px; color: var(--on); text-decoration: none; transition: box-shadow .15s ease; }
.gstep a:hover { box-shadow: 0 14px 36px rgba(0, 0, 0, .3); }
.gstep__n { font-size: .86rem; color: var(--accent); font-weight: 700; }
.gstep__t { font: var(--display-weight) 1.15rem/1.25 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.gstep__x { color: var(--muted); font-size: .9rem; text-wrap: pretty; }
.gstep__meta { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .84rem; }
.gpath.is-collapsed .gstep:nth-child(n+4) { display: none; }
.gpath__more { margin-top: 22px; padding: 0; border: 0; background: none; font: 600 .94rem var(--sans); color: #D8C9FF; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.gpath__more:hover { color: var(--white); }

/* "New to this?" */
.gessentials { padding: clamp(56px, 7vw, 104px) 0; }
.gessentials h2 { margin-top: 12px; font-size: clamp(1.75rem, 2.8vw, 2.4rem); }
.gessentials__grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gess { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey-300); border-top: 4px solid var(--accent); border-radius: var(--radius); overflow: hidden; color: var(--on); text-decoration: none; transition: box-shadow .15s ease; }
.gess:hover { box-shadow: 0 10px 30px rgba(14, 12, 18, .08); }
.gess__media { position: relative; aspect-ratio: 16 / 10; display: block; }
.gess__img, .gtopic__img, .gtool__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gess__n { position: absolute; left: 16px; top: 16px; background: var(--white); color: var(--accent); font-weight: 700; font-size: .9rem; padding: 4px 10px; border-radius: var(--radius); }
.gess__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 28px; flex: 1; }
.gess__t { font: var(--display-weight) 1.35rem/1.18 var(--serif); color: var(--ink); letter-spacing: -.015em; }
.gess__x { color: var(--muted); font-size: .95rem; text-wrap: pretty; }
.gess__foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--muted); }
.gess__read { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* Topic rows: the first three guides are cards, the rest a link list. */
.gtopic { padding: clamp(48px, 6vw, 80px) 0; background: var(--white); border-top: 1px solid var(--grey-300); }
.gtopic--alt { background: var(--grey-50); }
.gtopic__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.gtopic__side { display: flex; flex-direction: column; gap: 12px; }
.gtopic__img { aspect-ratio: 4 / 3; height: auto; border-radius: var(--radius); }
.gtopic__side h2 { margin-top: 8px; font-size: clamp(1.5rem, 2.1vw, 1.85rem); }
.gtopic__side p { color: var(--muted); font-size: .96rem; text-wrap: pretty; }
.gtopic__count { color: var(--muted); font-size: .86rem; font-weight: 600; }
.gtopic__count:empty { display: none; }
.gtopic__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 20px; }
.gcard { grid-column: span 2; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 1px solid var(--grey-300); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 22px; color: var(--on); text-decoration: none; transition: box-shadow .15s ease; }
.gcard:hover { box-shadow: 0 10px 30px rgba(14, 12, 18, .08); }
.gcard__t { font: 700 1.08rem/1.25 var(--sans); color: var(--ink); letter-spacing: -.01em; margin: 0; }
.gcard__x { color: var(--muted); font-size: .88rem; text-wrap: pretty; margin: 0; }
.gcard__meta { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .82rem; }
.gcard:nth-child(n+4) { grid-column: span 3; margin: 0; flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--grey-300); border-radius: 0; }
.gcard:nth-child(n+4):hover { box-shadow: none; }
.gcard:nth-child(n+4)::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 8px; background: var(--accent); clip-path: polygon(50% 10%, 90% 90%, 10% 90%); }
.gcard:nth-child(n+4) .gcard__t { flex: 1; font-size: .96rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; }
.gcard:nth-child(n+4) .gcard__x { display: none; }
.gcard:nth-child(n+4) .gcard__meta { margin: 0; padding: 0; white-space: nowrap; line-height: 1.7; }
.gcard:nth-child(n+4):hover .gcard__t { color: var(--accent); }

/* Free-tool band. */
.gtool { padding: clamp(48px, 6vw, 80px) 0; background: var(--grey-100); }
.gtool__card { display: grid; grid-template-columns: 320px minmax(0, 1fr) auto; align-items: center; gap: 36px; background: var(--white); border: 1px solid var(--grey-300); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 38px 18px 18px; }
.gtool__media { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; }
.gtool__body { display: flex; flex-direction: column; gap: 8px; }
.gtool__body h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.gtool__body p { color: var(--muted); font-size: .96rem; max-width: 56ch; }
.gtool .btn { white-space: nowrap; }

@media (max-width: 980px) {
  .ghero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ghero__media { min-height: 0; aspect-ratio: 16 / 9; }
  .gtopic__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gtopic__side { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; row-gap: 6px; align-items: start; }
  .gtopic__img { grid-row: span 4; }
  .gtopic__side h2 { margin-top: 0; }
  .gtool__card { grid-template-columns: 220px minmax(0, 1fr); padding: 18px; }
  .gtool .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .ghero__media { display: none; }
  .gpath__steps, .gessentials__grid { grid-template-columns: minmax(0, 1fr); }
  .gtopic__list { grid-template-columns: minmax(0, 1fr); }
  .gcard, .gcard:nth-child(n+4) { grid-column: auto; }
  .gcard { margin-bottom: 14px; }
}
@media (max-width: 560px) {
  .gtopic__side { grid-template-columns: minmax(0, 1fr); }
  .gtopic__img { grid-row: auto; aspect-ratio: 16 / 9; }
  .gtool__card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gtool__media { aspect-ratio: 16 / 9; }
}

/* ============================================================================
   Author pages
   ========================================================================= */
.apage-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 88px); background: var(--ink); color: #E6E3EC; }
.apage-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: center; }
.apage-crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .88rem; font-weight: 600; }
.apage-crumbs a { color: #D8C9FF; text-decoration: none; }
.apage-crumbs a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.apage-crumbs span[aria-hidden] { color: #8F8A9A; }
.apage-crumbs [aria-current] { color: #B9B4C4; }
.apage-hero h1 { margin-top: 22px; color: var(--white); font-size: clamp(2.6rem, 5vw, 3.75rem); line-height: 1.02; }
.apage-hero__role { margin-top: 10px; color: #D8C9FF; font-size: 1.1rem; font-weight: 600; }
.apage-hero__intro { margin-top: 22px; color: #D8D2EA; font-size: var(--lead); line-height: 1.5; max-width: 56ch; text-wrap: pretty; }
.apage-quals { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.apage-quals li { display: flex; gap: 12px; align-items: flex-start; color: var(--white); font-size: .98rem; font-weight: 500; line-height: 1.5; }
.apage-quals li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 7px; background: #C9B6FF; clip-path: polygon(50% 10%, 90% 90%, 10% 90%); }
.apage-hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.apage-hero__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: rgba(255, 255, 255, .06); }
.apage-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; font-weight: 600; font-size: .97rem; border-radius: var(--btn-radius); line-height: 1.3; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.apage-btn--ghost { border: 1px solid rgba(255, 255, 255, .5); color: var(--white); }
.apage-btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.apage-btn--light { background: var(--white); border: 1px solid var(--white); color: var(--ink); }
.apage-btn--light:hover { background: var(--grey-100); border-color: var(--grey-100); }
.apage-btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.04rem; }
.apage-btn:focus-visible { outline: 3px solid #C9B6FF; outline-offset: 3px; }

.apage-note { margin-top: -28px; position: relative; background: var(--white); border: 1px solid var(--grey-300); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 24px; display: flex; gap: 14px; align-items: center; box-shadow: 0 18px 50px rgba(14, 12, 18, .12); }
.apage-note__label { flex: none; font-size: .86rem; color: var(--accent); font-weight: 700; }
.apage-note__text { color: var(--on); font-size: .96rem; }

.apage-work { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 72px); }
.apage-work h2, .apage-guides__head h2 { margin-top: 12px; font-size: clamp(1.75rem, 2.8vw, 2.4rem); max-width: 24ch; }
.apage-bio { margin-top: 18px; color: var(--on); font-size: var(--body); line-height: 1.7; max-width: 68ch; text-wrap: pretty; }
.apage-work__grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.apage-wcard { background: var(--white); border: 1px solid var(--grey-300); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.apage-wcard__n { font: var(--display-weight) 2.4rem/1 var(--serif); color: var(--accent); }
.apage-wcard h3 { margin-top: 6px; }
.apage-wcard p { color: var(--muted); max-width: 52ch; }

.apage-guides { padding: clamp(56px, 7vw, 96px) 0; background: var(--grey-50); border-top: 1px solid var(--grey-300); }
.apage-guides__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.apage-guides__head > a { color: var(--accent); font-weight: 600; font-size: .94rem; white-space: nowrap; text-decoration: none; }
.apage-guides__head > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.apage-latest { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.apage-lcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey-300); border-top: 4px solid var(--accent); border-radius: var(--radius); overflow: hidden; color: var(--on); text-decoration: none; transition: box-shadow .15s ease; }
.apage-lcard:hover { box-shadow: 0 10px 30px rgba(14, 12, 18, .08); }
.apage-lcard__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.apage-lcard__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.apage-lcard__topic { font-size: .86rem; color: var(--accent); font-weight: 700; }
.apage-lcard__t { font: var(--display-weight) 1.2rem/1.25 var(--serif); color: var(--ink); letter-spacing: -.01em; text-wrap: pretty; }
.apage-lcard__date { margin-top: auto; color: var(--muted); font-size: .84rem; }
.apage-all__h { margin-top: 72px; font-size: clamp(1.4rem, 2vw, 1.75rem); }
.apage-topics { margin-top: 24px; columns: 2; column-gap: 24px; }
.apage-topic { break-inside: avoid; margin-bottom: 24px; background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius); padding: 24px 26px 14px; }
.apage-topic__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.apage-topic__head h3 { font-size: 1.15rem; line-height: 1.3; }
.apage-topic__head h3 a { color: var(--ink); text-decoration: none; }
.apage-topic__head h3 a:hover { color: var(--accent); }
.apage-topic__n { flex: none; color: var(--muted); font-size: .84rem; font-weight: 600; }
.apage-topic ul { list-style: none; margin: 12px 0 0; padding: 0; }
.apage-topic li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--grey-300); color: var(--ink); font-size: .95rem; font-weight: 600; line-height: 1.45; text-decoration: none; }
.apage-topic li a:hover { color: var(--accent); }
.apage-topic__date { color: var(--muted); font-size: .82rem; font-weight: 400; white-space: nowrap; }

.apage-cta { padding: clamp(56px, 7vw, 88px) 0; text-align: center; background: var(--panel-2); }
.apage-cta .wrap { max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.apage-cta h2 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.6rem); text-wrap: balance; }
.apage-cta p { color: #D8D2EA; font-size: 1.06rem; }
.apage-cta .apage-btn { margin-top: 8px; }

@media (max-width: 960px) {
  .apage-hero__grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
  .apage-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .apage-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .apage-hero__img { grid-row: 1; width: 176px; }
  .apage-hero h1 { margin-top: 18px; }
  .apage-hero__actions .apage-btn { flex: 1 1 auto; }
  .apage-note { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 20px; }
  .apage-work__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .apage-wcard { padding: 22px; }
  .apage-latest { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .apage-lcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .apage-lcard__img { height: 100%; aspect-ratio: auto; }
  .apage-lcard__body { padding: 16px 18px; gap: 6px; }
  .apage-lcard__t { font-size: 1.02rem; }
  .apage-all__h { margin-top: 52px; }
  .apage-topics { columns: 1; }
  .apage-topic { margin-bottom: 14px; padding: 20px 20px 10px; }
  .apage-topic li a { gap: 12px; font-size: .93rem; }
}

/* Campbell Unsworth's page (Counsel author): the plain document layout. */
.doc-wrap { background: var(--white); }
.doc-in { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad) clamp(56px, 7vw, 96px); }
.doc-ey { margin-bottom: 18px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.doc-ey a { color: var(--accent); text-decoration: none; }
.doc-ey a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc-in h1 { font-size: clamp(2.2rem, 4vw, 3.1rem); margin-bottom: 14px; }
.doc-lede { font-size: var(--lead); color: var(--on); line-height: 1.5; margin-bottom: 28px; }
.doc-in h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); margin: 44px 0 14px; padding-top: 20px; border-top: 1px solid var(--grey-300); }
.doc-in p { font-size: var(--body); color: var(--on); line-height: 1.7; margin: 0 0 14px; }
.doc-in ul { list-style: none; margin: 0 0 14px; padding: 0; }
.doc-in li { font-size: var(--body); color: var(--on); line-height: 1.6; padding-left: 22px; position: relative; margin-bottom: 8px; }
.doc-in li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; background: var(--accent); clip-path: polygon(50% 10%, 90% 90%, 10% 90%); }
.doc-in p a, .doc-in li a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc-back { display: inline-block; margin-top: 30px; font-weight: 600; font-size: .94rem; color: var(--accent); border: 1px solid var(--grey-300); border-radius: var(--radius); padding: 10px 16px; text-decoration: none !important; }
.doc-back:hover { border-color: var(--accent); }
.au-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: center; margin: 8px 0 12px; }
.au-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid var(--accent); }
.au-role { font-weight: 600; color: var(--accent); margin: 2px 0 12px; }
.au-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.au-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: var(--btn-radius); background: var(--accent); border: 1px solid var(--accent); color: var(--white) !important; font-weight: 600; font-size: .94rem; text-decoration: none !important; transition: background-color .15s ease; }
.au-btn:hover { background: var(--accent-deep); }
.au-btn--ghost { background: transparent; color: var(--ink) !important; border-color: var(--grey-300); }
.au-btn--ghost:hover { background: transparent; border-color: var(--accent); }
.au-btn[hidden] { display: none; }
@media (max-width: 640px) { .au-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; } .au-photo { width: 120px; height: 120px; } }

@media (prefers-reduced-motion: reduce) { .gart *, .ghero *, .apage *, .gtopic *, .gtool * { transition: none !important; } }
