/* Guide pages: /guides, /guides/<slug> and /guides/<slug>/thanks (templates guide.html, guide-thanks.html, hub-guides.html).
   Tokens and roles from main.css only. */
.tpl-guide .m-pagehero { min-height: min(78svh, 720px); }
.gp-h { max-width: 20ch; margin: 0; }
.gp-lead { color: var(--muted); max-width: 52ch; margin: 0; }

/* Who it is for: situation-first cards on the light ground. The reader's own situation ("You ...") is the headline, so they
   recognise themselves before they read a job title; the role sits at the foot like a byline. Each card links to the form,
   so the hover (diamond, interaction only) is earned. Equal heights; the foot is pinned to the bottom so the bylines align. */
.gp-who-grid { list-style: none; margin: var(--sp-head) 0 0; padding: 0; display: grid; gap: var(--gutter); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gp-who-grid.gp-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gp-who-grid.gp-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gp-who-card { display: flex; flex-direction: column; gap: 32px; height: 100%; min-height: clamp(280px, 22vw, 360px); padding: clamp(24px, 2.4vw, 36px); background: var(--panel); color: var(--ink); text-decoration: none; transition: background var(--t) var(--ease); }
.gp-who-card:hover, .gp-who-card:focus-visible { background: var(--diamond); outline: none; }
.gp-who-b { margin: 0; font-size: clamp(1.25rem, 1rem + .6vw, 1.5rem); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
.gp-who-foot { margin-top: auto; display: grid; gap: 14px; justify-items: start; }
.gp-who-t { margin: 0; font-size: var(--fs-small); font-weight: 700; line-height: 1.35; color: var(--muted); text-wrap: balance; }
.gp-who-card:hover .gp-who-t, .gp-who-card:focus-visible .gp-who-t { color: var(--deep); }
.gp-who-card:hover .link, .gp-who-card:focus-visible .link { background-size: 100% 3px; }
@media (max-width: 1100px) { .gp-who-grid, .gp-who-grid.gp-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gp-who-grid, .gp-who-grid.gp-n2, .gp-who-grid.gp-n3 { grid-template-columns: 1fr; } .gp-who-card { min-height: 0; } }

/* Closing band and next step: the claim, then the lead and one button */
.gp-band-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px var(--gutter); align-items: end; margin-top: clamp(28px, 3vw, 48px); }
@media (max-width: 760px) { .gp-band-foot { grid-template-columns: 1fr; } .gp-band-foot .btn { justify-self: start; } }

/* Thank-you page */
.gp-ty { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 112px)); }
.gp-ty-grid { align-items: center; }
.gp-ty-cover { grid-column: 1 / span 4; margin: 0; }
.gp-ty-cover img { display: block; width: 100%; max-width: 380px; height: auto; }
.gp-ty-copy { grid-column: 6 / span 7; display: grid; gap: 20px; justify-items: start; }
.gp-ty-h { margin: 0; max-width: 16ch; }
.gp-ty-act { margin: 8px 0 0; }
.gp-tip { background: var(--bg); padding: 24px; max-width: 520px; margin-top: 8px; }
.gp-tip p { margin: 0; font-size: var(--fs-small); color: var(--muted); text-wrap: pretty; }
.gp-tip b { color: var(--ink); }
@media (max-width: 960px) { .gp-ty-cover, .gp-ty-copy { grid-column: 1 / -1; } .gp-ty-cover img { max-width: 240px; } }

/* Hub: guides grouped by cluster */
.gp-cluster { margin-top: var(--sp-head); }
.gp-cluster-l { margin: 0 0 20px; }
.gp-hub-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gutter); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gp-hub-grid.gp-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gp-hub-card { display: grid; gap: 10px; align-content: start; padding: 20px; height: 100%; background: var(--panel); color: var(--ink); text-decoration: none; transition: background var(--t) var(--ease); }
.gp-hub-card:hover, .gp-hub-card:focus-visible { background: var(--diamond); outline: none; }
.gp-hub-card img { display: block; width: 100%; height: auto; margin-bottom: 6px; }
.gp-hub-t { font-size: 1.125rem; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.gp-hub-d { font-size: var(--fs-small); color: var(--muted); text-wrap: pretty; }
.gp-hub-card .link { justify-self: start; margin-top: 4px; }
@media (max-width: 960px) { .gp-hub-grid, .gp-hub-grid.gp-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gp-hub-grid, .gp-hub-grid.gp-n3 { grid-template-columns: 1fr; } }
