/* ==========================================================================
   SECTIONED PAGES
   The content pages ported whole from the prototype — the certification
   lifecycle set and its kin. Their sections use the shared vocabulary that
   global.css and shop.css already carry; this file adds only what nothing else
   on the site had needed yet, which is almost entirely the form treatment.
   Loaded only where brandale_page_is_sectioned() is true, because .form, .two
   and .opt are generic enough to collide if they were global.
   ========================================================================== */

/* Anchored sections clear the sticky header when jumped to. */
section[id],article[id],div[id].anchor{scroll-margin-top:96px}

/* ---------- FORMS ---------- */
.form{background:var(--white);border:1px solid var(--slate-300);border-radius:var(--r-panel);padding:28px;box-shadow:var(--sh-rest)}
.form.on-tint{border-color:var(--slate-400)}
.form h3{font-size:1.3rem;color:var(--navy-900);margin-bottom:6px}
.form .form-sub{font-size:.95rem;color:var(--slate-600);margin-bottom:22px}
.frow{display:grid;gap:16px;grid-template-columns:1fr}
@media(min-width:600px){.frow.two{grid-template-columns:1fr 1fr}}
.fld{margin-bottom:16px}
.fld label{display:block;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--slate-600);margin-bottom:7px}
.fld .opt{color:var(--slate-500);text-transform:none;letter-spacing:0;font-family:'Inter',sans-serif;font-size:.8rem}
.fld input,.fld textarea,.fld select{width:100%;font-family:'Inter',sans-serif;font-size:.95rem;color:var(--navy-900);border:1.5px solid var(--slate-400);border-radius:var(--r-btn);padding:12px 13px;background:var(--white);transition:border-color .16s,box-shadow .16s}
.fld textarea{resize:vertical;min-height:104px}
.fld input:focus,.fld textarea:focus,.fld select:focus{outline:none;border-color:var(--accent-500);box-shadow:0 0 0 3px var(--accent-100)}
.fld input::placeholder,.fld textarea::placeholder{color:var(--slate-500)}
.fld select{cursor:pointer;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A90' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px;padding-right:38px}
.fld select:required:invalid{color:var(--slate-500)}
.form-note{font-size:.82rem;color:var(--slate-600);margin-top:14px;display:flex;align-items:flex-start;gap:8px}
.form-note svg{width:16px;height:16px;color:var(--accent-800);flex-shrink:0;margin-top:2px}

/* ---------- THE "GO" LINK ON A CARD ---------- */
.card .go,.pcard .go{display:inline-flex;align-items:center;gap:7px;margin-top:16px;font-size:.875rem;font-weight:600;color:var(--accent-800)}
.card .go svg,.pcard .go svg{width:15px;height:15px;transition:transform .16s ease-out}
.card:hover .go{color:var(--navy-900)}
.card:hover .go svg,.pcard:hover .go svg{transform:translateX(3px)}
@media(prefers-reduced-motion:reduce){
  .card .go svg,.pcard .go svg{transition:none}
  .card:hover .go svg,.pcard:hover .go svg{transform:none}
}

/* ---------- CARD GRID ----------
   `.card` had no rule of its own here: the earlier audit asked whether the
   string ".card" appeared in the CSS, and it did — inside `.card .k` — so the
   "Keep reading" row shipped as three unstyled blocks. The audit now looks at
   the selector's subject, not the substring. */
.grid{display:grid;gap:16px;grid-template-columns:1fr}
@media(min-width:600px){.grid.two,.grid.four{grid-template-columns:1fr 1fr}}
@media(min-width:768px){.grid.three{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1024px){.grid.four{grid-template-columns:repeat(4,1fr)}}
.card{display:block;border:1px solid var(--slate-300);border-radius:var(--r-panel);background:var(--white);box-shadow:var(--sh-rest);padding:24px;transition:border-color .16s ease-out,transform .16s ease-out,box-shadow .16s ease-out}
.card:hover{border-color:var(--accent-500);transform:translateY(-2px);box-shadow:var(--sh-hover)}
.card:focus-visible{outline:2px solid var(--accent-500);outline-offset:3px}
.card h3{font-family:'Inter Tight',sans-serif;font-weight:700;font-size:1.15rem;color:var(--navy-900);margin-top:9px;letter-spacing:-.01em;line-height:1.25}
.card p{font-size:.9rem;color:var(--slate-600);margin-top:8px}
@media(prefers-reduced-motion:reduce){.card{transition:none}.card:hover{transform:none}}

/* ---------- STAT ROW ---------- */
.stats{display:grid;gap:24px;grid-template-columns:repeat(2,1fr);margin-top:40px}
@media(min-width:768px){.stats{grid-template-columns:repeat(4,1fr)}}
.stat .n{font-family:'Inter Tight',sans-serif;font-weight:700;font-size:2.375rem;color:var(--navy-900);letter-spacing:-.02em;line-height:1}
.stat .n .em{color:var(--brand-700)}
.stat .l{font-family:'IBM Plex Mono',monospace;font-weight:500;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--slate-600);margin-top:10px;line-height:1.5}
.stats.on-dark .stat .n{color:var(--white)}
.stats.on-dark .stat .n .em{color:var(--brand-400)}
.stats.on-dark .stat .l{color:#9FB0C4}

/* The card kicker. */
.card .k,.pcard .k{font-family:'IBM Plex Mono',monospace;font-weight:500;font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--brand-700)}

/* ---------- FAQ ----------
   Native <details> here, not the scripted .fq accordion the course pages use:
   these pages carry no stepper or deep-linking to keep in step, so the
   browser's own disclosure is the whole behaviour. */
.faq{max-width:800px;margin:36px auto 0;display:grid;gap:0}
.faq details{border-bottom:1px solid var(--slate-200)}
.faq details:first-child{border-top:1px solid var(--slate-200)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 4px;font-family:'Inter Tight',sans-serif;font-weight:600;font-size:1.06rem;color:var(--navy-900);letter-spacing:-.01em}
.faq summary::-webkit-details-marker{display:none}
.faq summary:focus-visible{outline:2px solid var(--accent-500);outline-offset:2px;border-radius:4px}
.faq summary .pm{flex-shrink:0;width:22px;height:22px;color:var(--accent-800);transition:transform .16s ease-out}
.faq details[open] summary .pm{transform:rotate(45deg)}
.faq .fa-body{padding:0 4px 24px;font-size:.96rem;color:var(--slate-600);max-width:68ch}
.faq .fa-body p+p{margin-top:12px}
@media(prefers-reduced-motion:reduce){.faq summary .pm{transition:none}}

/* ---------- CREDENTIAL SHAPE CARDS ----------
   The prototype drew these with inline styles from its script; they are rules
   here because the shortcode renders them server-side. */
.shape-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.shape-head h3{margin:0}
.shape-head .tag{flex-shrink:0}
.shape-step{display:flex;align-items:center;gap:10px;padding:5px 0;font-size:.92rem;color:var(--slate-600)}
.shape-node{width:26px;height:26px;border-radius:var(--r-pill);background:var(--brand-100);color:var(--brand-700);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:500}
.shape-node.exam{background:var(--navy-900);color:var(--white)}
.shape-node svg{width:13px;height:13px}
.shape-rule{width:1px;height:8px;background:var(--slate-300);margin-left:12px}
