/* r23 standalone pages: /consulting/ and /resources/ (draft by WebDev 02).
   Load after buttons.css + brand.css. Everything is scoped under .pg so nothing leaks into the homepage.
   Brand: ink #0F0F0F, paper #FAF8F2, green #6CBF5B, red #A73632. Buttons come from buttons.css (.button / .button-dark / .button-outline). */
.pg { --pg-muted: #55554f; --pg-line: rgba(15, 15, 15, .12); --pg-wrap: 1080px; color: var(--ink, #0F0F0F); font-family: "Work Sans", Arial, sans-serif; overflow-x: clip; }
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg .pg-wrap { max-width: var(--pg-wrap); margin: 0 auto; padding: 0 max(4vw, 1.25rem); }
.pg .pg-sec { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.pg .pg-sec + .pg-sec { padding-top: 0; }
.pg .pg-white { background: #fff; border-top: 1px solid var(--pg-line); border-bottom: 1px solid var(--pg-line); }
.pg .pg-white + .pg-sec, .pg .pg-sec + .pg-white { padding-top: clamp(3.5rem, 7vw, 6rem); }

/* Type resets: the site's global h1/h2/h3 are display-sized; keep these pages calm. */
.pg h1, .pg h2, .pg h3 { font-family: "Archivo", "Work Sans", system-ui, sans-serif; color: var(--ink, #0F0F0F); margin: 0; max-width: none; text-transform: none; }
.pg h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.03; }
.pg h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
.pg h3 { font-family: "Work Sans", Arial, sans-serif; font-size: 1.08rem; font-weight: 700; letter-spacing: -.005em; line-height: 1.3; }
.pg p { line-height: 1.65; }
.pg .pg-lead { color: var(--pg-muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 620px; margin: 1.2rem 0 0; }
.pg .pg-sec-head { max-width: 680px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.pg .pg-sec-head p { color: var(--pg-muted); margin: .8rem 0 0; }
.pg .eyebrow { margin-bottom: 1.4rem; }
.pg a:focus-visible, .pg button:focus-visible, .pg summary:focus-visible { outline: 2px solid var(--ink, #0F0F0F); outline-offset: 3px; }
.pg ul[role="list"], .pg ol[role="list"] { list-style: none; margin: 0; padding: 0; }
.pg .icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Hero */
.pg .pg-hero { padding: clamp(8rem, 14vw, 10.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.pg .pg-hero .pg-wrap { text-align: center; }
.pg .pg-hero .eyebrow { justify-content: center; }
.pg .pg-hero .pg-lead { margin-left: auto; margin-right: auto; }
.pg .pg-hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.6rem 0 0; }
.pg .pg-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border: 1px solid var(--pg-line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 600; color: #2b2b28; }
.pg .pg-chip .icon { color: var(--deep-green, #245b36); }
.pg .pg-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .9rem 1.4rem; margin-top: 2rem; }
html body .pg .pg-actions .button { display: inline-flex; width: auto; }
.pg .pg-textlink { display: inline-flex; align-items: center; gap: .35rem; color: var(--deep-green, #245b36); font-weight: 600; text-underline-offset: 3px; }
.pg .pg-textlink .icon { transition: transform 200ms ease; }
.pg .pg-textlink:hover .icon { transform: translateX(3px); }

/* Offer card (consulting) */
.pg .pg-offer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding: clamp(1.5rem, 3.4vw, 2.4rem) clamp(1.4rem, 3.6vw, 2.8rem); background: #fff; border: 1px solid var(--pg-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(15,15,15,.04), 0 12px 32px -18px rgba(15,15,15,.18); }
.pg .pg-offer h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.pg .pg-offer-meta { color: var(--pg-muted); display: flex; flex-wrap: wrap; gap: .5rem; margin: .45rem 0 0; }
.pg .pg-offer-action { display: flex; align-items: center; gap: 1rem 1.6rem; flex-wrap: wrap; }
.pg .pg-price { margin: 0; display: flex; align-items: baseline; gap: .45rem; }
.pg .pg-price strong { font-family: "Archivo", "Work Sans", system-ui, sans-serif; font-size: clamp(2.3rem, 4vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.pg .pg-price span { color: var(--pg-muted); font-size: .9rem; font-weight: 600; }
html body .pg .pg-book { display: inline-flex; width: auto; }

/* Cards grid */
.pg .pg-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 980px) { .pg .pg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pg .pg-cards { grid-template-columns: 1fr; } }
.pg .pg-card { background: #fff; border: 1px solid var(--pg-line); border-radius: 16px; padding: 1.4rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; }
.pg .pg-card-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(108, 191, 91, .14); color: var(--deep-green, #245b36); margin-bottom: .35rem; }
.pg .pg-card p { color: var(--pg-muted); margin: 0; font-size: .98rem; line-height: 1.55; }

/* Two columns: who it's for / walk away with */
.pg .pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.pg .pg-split h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-bottom: 1.3rem; }
.pg .pg-checks { display: grid; gap: .95rem; }
.pg .pg-checks li { display: grid; grid-template-columns: 18px 1fr; gap: .75rem; line-height: 1.55; color: #2b2b28; }
.pg .pg-checks .icon { color: var(--deep-green, #245b36); margin-top: .22rem; stroke-width: 2.3; }
.pg .pg-checks b { color: var(--ink, #0F0F0F); }
.pg .pg-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--deep-green, #245b36); background: rgba(108,191,91,.14); border-radius: 6px; padding: .2rem .45rem; margin-left: .35rem; vertical-align: .1em; }
.pg .pg-tag-soft { color: var(--pg-muted); background: rgba(15,15,15,.06); }

/* Handover band */
.pg .pg-handover { padding: clamp(1.6rem, 3.6vw, 2.8rem); background: rgba(108, 191, 91, .09); border: 1px solid rgba(108, 191, 91, .35); border-radius: 18px; }
.pg .pg-handover .pg-sec-head { margin-bottom: 1.6rem; }
.pg .pg-handover-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pg .pg-handover-list li { background: #fff; border-radius: 12px; padding: 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.pg .pg-handover-list span { color: var(--pg-muted); font-size: .94rem; line-height: 1.5; }

/* Steps */
.pg .pg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.pg .pg-steps li { position: relative; background: #fff; border: 1px solid var(--pg-line); border-radius: 16px; padding: 1.4rem 1.35rem; }
.pg .pg-step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink, #0F0F0F); font-size: .8rem; font-weight: 800; margin-bottom: .9rem; }
.pg .pg-steps p { color: var(--pg-muted); margin: .4rem 0 0; font-size: .98rem; line-height: 1.55; }

/* FAQ */
.pg .pg-faq { max-width: 780px; }
.pg .pg-faq details { border-bottom: 1px solid var(--pg-line); }
.pg .pg-faq details:first-of-type { border-top: 1px solid var(--pg-line); }
.pg .pg-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-weight: 600; font-size: 1.05rem; }
.pg .pg-faq summary::-webkit-details-marker { display: none; }
.pg .pg-faq summary .icon { transition: transform 200ms ease; color: var(--pg-muted); }
.pg .pg-faq details[open] summary .icon { transform: rotate(45deg); }
.pg .pg-faq details p { margin: 0 0 1.2rem; color: var(--pg-muted); max-width: 680px; }

/* Closing CTA */
.pg .pg-cta { text-align: center; padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.4rem, 4vw, 3rem); border-radius: 20px; background: var(--ink, #0F0F0F); color: #FAF8F2; }
.pg .pg-cta h2 { color: #FAF8F2; }
.pg .pg-cta p { color: rgba(250, 248, 242, .74); margin: .8rem auto 0; max-width: 520px; }
.pg .pg-cta .pg-actions { margin-top: 1.6rem; }
html body .pg .pg-cta .button-light { background: #FAF8F2; color: #0F0F0F; border: 0; display: inline-flex; width: auto; }
html body .pg .pg-cta .button-light:hover { background: #fff; color: #0F0F0F; }
.pg .pg-cta .pg-textlink { color: #6CBF5B; }

/* Resources: repo + gist cards */
.pg .pg-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.pg .pg-filter[hidden] { display: none; }
.pg .pg-filter button { font: 600 .9rem/1 "Work Sans", Arial, sans-serif; padding: .6rem .9rem; min-height: 40px; border-radius: var(--btn-radius, 10px); border: 1px solid var(--pg-line); background: #fff; color: #2b2b28; cursor: pointer; }
.pg .pg-filter button[aria-pressed="true"] { background: var(--ink, #0F0F0F); border-color: var(--ink, #0F0F0F); color: #FAF8F2; }
.pg .pg-repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.pg .pg-repo { background: #fff; border: 1px solid var(--pg-line); border-radius: 16px; padding: 1.35rem 1.35rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.pg .pg-repo[hidden] { display: none; }
.pg .pg-repo-top { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.pg .pg-repo-top svg { flex: none; color: var(--ink, #0F0F0F); }
.pg .pg-repo h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
.pg .pg-repo p { color: var(--pg-muted); margin: 0; font-size: .97rem; line-height: 1.55; flex: 1; overflow-wrap: anywhere; }
.pg .pg-repo-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .2rem 0 0; color: var(--pg-muted); font-size: .86rem; }
.pg .pg-repo-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.pg .pg-lang-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green, #6CBF5B); }
.pg .pg-repo-link { margin-top: .5rem; align-self: flex-start; }
html body .pg .pg-repo-link.button { display: inline-flex; width: auto; min-height: 42px; }
.pg .pg-status { color: var(--pg-muted); font-size: .92rem; margin: 1rem 0 0; min-height: 1.4em; }
.pg .pg-status a { color: var(--deep-green, #245b36); font-weight: 600; }
.pg #snippets[hidden] { display: none; }
.pg .pg-note { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pg .pg-note li { background: #fff; border: 1px solid var(--pg-line); border-radius: 16px; padding: 1.3rem 1.3rem; }
.pg .pg-note p { color: var(--pg-muted); margin: .4rem 0 0; font-size: .97rem; line-height: 1.55; }
.pg .pg-note a { color: var(--deep-green, #245b36); font-weight: 600; }
.pg .pg-follow { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink, #0F0F0F); font-weight: 600; font-size: .95rem; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .pg .pg-handover-list { grid-template-columns: 1fr 1fr; }
  .pg .pg-note { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pg .pg-split, .pg .pg-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pg .pg-hero .pg-wrap { text-align: left; }
  .pg .pg-hero .eyebrow, .pg .pg-hero-chips, .pg .pg-hero .pg-actions { justify-content: flex-start; }
  .pg .pg-hero .pg-lead { margin-left: 0; }
  .pg .pg-actions { flex-direction: column; align-items: stretch; }
  html body .pg .pg-actions .button, html body .pg .pg-cta .button-light { width: 100%; }
  .pg .pg-actions .pg-textlink, .pg .pg-actions .pg-follow { justify-content: center; }
  .pg .pg-offer, .pg .pg-offer-action { flex-direction: column; align-items: stretch; }
  html body .pg .pg-book { width: 100%; }
  .pg .pg-handover-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pg .pg-textlink .icon, .pg .pg-faq summary .icon { transition: none; }
  .pg .pg-textlink:hover .icon { transform: none; }
}

/* Screen-reader-only text (the site's .bw-sr-only is scoped to other sections) */
.pg .bw-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pg .pg-actions .button svg { flex: none; }
