/* analytics-consent.css */
.bd-consent[hidden]{display:none!important}.bd-consent{position:fixed;inset:auto 0 0;z-index:9999;padding:16px;pointer-events:none}.bd-consent__panel{max-width:1120px;margin:0 auto;background:#fff;color:#17201f;border:1px solid rgba(23,32,31,.18);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.22);padding:20px;display:flex;gap:24px;align-items:flex-end;justify-content:space-between;pointer-events:auto}.bd-consent__copy{max-width:720px}.bd-consent__copy h2{font:inherit;font-size:1.1rem;font-weight:700;margin:0 0 8px}.bd-consent__copy p{margin:0 0 10px;line-height:1.5}.bd-consent__toggle{display:inline-flex;align-items:center;gap:8px;font-weight:650}.bd-consent__toggle input{width:18px;height:18px}.bd-consent__links{font-size:.9rem}.bd-consent__links a{text-decoration:underline;text-underline-offset:2px}.bd-consent__actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.bd-consent__button,.bd-consent-settings{font:inherit;cursor:pointer}.bd-consent__button{border-radius:999px;padding:10px 14px;border:1px solid #273734;font-weight:650}.bd-consent__button--primary{background:#17201f;color:#fff}.bd-consent__button--secondary{background:#fff;color:#17201f}.bd-consent-settings{background:transparent;border:0;color:inherit;text-decoration:underline;text-underline-offset:3px;padding:2px 0;font-size:inherit}.bd-consent__button:focus-visible,.bd-consent-settings:focus-visible{outline:3px solid currentColor;outline-offset:3px}@media(max-width:760px){.bd-consent{padding:10px}.bd-consent__panel{display:block;padding:16px}.bd-consent__actions{margin-top:14px;justify-content:stretch}.bd-consent__button{flex:1 1 100%}}

/* phase9-geo.css */
.geo-answer-summary{margin:1rem 0 0;padding:.9rem 1rem;border:1px solid rgba(127,127,127,.28);border-radius:.75rem;background:rgba(127,127,127,.06);line-height:1.65}
.geo-answer-summary strong{font-weight:700}
.geo-content-meta{margin:.65rem 0 1.35rem;font-size:.9rem;opacity:.78}
.geo-content-meta a{text-decoration:underline;text-underline-offset:.15em}
.geo-source-block,.geo-method-block{margin:2rem 0;padding:1rem 1.1rem;border:1px solid rgba(127,127,127,.24);border-radius:.8rem;background:rgba(127,127,127,.045)}
.geo-source-block h2,.geo-method-block h2{margin-top:0}
.geo-source-block ul,.geo-method-block ul{padding-left:1.25rem}
.geo-source-block li,.geo-method-block li{margin:.45rem 0}


/* phase10-internal-linking.css */
@layer phase10InternalLinking {
.phase10-related { background: var(--paper-muted); border-block: 1px solid var(--line); padding-block: clamp(3rem,6vw,5rem); }
body[data-cluster="automation"] .phase10-related { background: linear-gradient(180deg,var(--automation-soft),var(--paper-muted)); }
body[data-cluster="mft"] .phase10-related { background: linear-gradient(180deg,var(--mft-soft),var(--paper-muted)); }
.phase10-related .related-heading { display:grid; gap:.55rem; margin-bottom:1.4rem; }
.phase10-related .related-heading>span { color:var(--signal); text-transform:uppercase; font-size:.74rem; font-weight:780; }
.phase10-related .related-heading h2 { max-width:28ch; }
.phase10-related .related-grid { display:grid; gap:.8rem; grid-template-columns:1fr; }
.phase10-related .related-card { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"title icon" "copy icon"; gap:.3rem 1rem; align-items:center; min-height:8.5rem; padding:1.15rem; background:var(--paper-strong); border:1px solid var(--line-strong); border-radius:var(--radius-md); text-decoration:none; box-shadow:0 .25rem .9rem #15201d0a; }
.phase10-related .related-card strong { grid-area:title; color:var(--ink-950); line-height:1.25; }
.phase10-related .related-card span { grid-area:copy; color:var(--slate-600); font-size:.9rem; line-height:1.5; }
.phase10-related .related-card svg { grid-area:icon; color:var(--automation); transition:transform .15s ease; }
body[data-cluster="mft"] .phase10-related .related-card svg { color:var(--mft); }
.phase10-related .related-card:hover { border-color:var(--ink-700); box-shadow:var(--shadow); }
.phase10-related .related-card:hover svg { transform:translateX(.2rem); }
.phase10-usecase-bridge { margin-top:0; }
@media (width>=48rem){ .phase10-related .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (prefers-reduced-motion:reduce){ .phase10-related .related-card svg { transition:none; } }
@media print{ .phase10-related { background:#fff; } }
}


/* phase11-cro.css */
@layer phase11CRO {
.phase11-next-step{padding-block:clamp(3.5rem,7vw,6rem);background:var(--paper-strong);border-block:1px solid var(--line)}
.phase11-next-step.phase11-automation{background:linear-gradient(180deg,var(--paper-strong),var(--automation-soft))}
.phase11-next-step.phase11-mft{background:linear-gradient(180deg,var(--paper-strong),var(--mft-soft))}
.phase11-next-step .phase11-heading{max-width:46rem;margin-bottom:1.5rem}
.phase11-next-step .phase11-heading>span{display:inline-block;margin-bottom:.6rem;color:var(--signal);font-size:.75rem;font-weight:780;text-transform:uppercase}
.phase11-next-step .phase11-heading p{margin-top:.8rem;color:var(--slate-600);max-width:42rem}
.phase11-choice-grid{display:grid;gap:1rem}
.phase11-choice{display:flex;flex-direction:column;min-height:15rem;padding:1.35rem;border:1px solid var(--line-strong);border-radius:var(--radius-md);background:var(--paper-strong);box-shadow:0 .35rem 1rem #15201d0a}
.phase11-choice-kicker{color:var(--slate-600);font-size:.75rem;font-weight:780;text-transform:uppercase}
.phase11-choice h3{margin-top:.55rem}
.phase11-choice p{margin-top:.7rem;color:var(--slate-600);max-width:38rem}
.phase11-choice .button{width:fit-content;margin-top:auto;padding-top:.78rem;padding-bottom:.78rem}
.phase11-proofline{display:flex;flex-wrap:wrap;gap:.55rem 1rem;margin-top:1rem;color:var(--slate-600);font-size:.78rem}
.phase11-proofline span{display:inline-flex;align-items:center;gap:.35rem}
.phase11-proofline span:before{content:'✓';font-weight:850;color:var(--automation-deep)}
.phase11-mft .phase11-proofline span:before{color:var(--mft-deep)}
.phase11-hero-note{margin-top:.7rem;color:var(--slate-600);font-size:.8rem;max-width:42rem}
@media (width>=48rem){.phase11-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (width<=34rem){.phase11-choice .button{width:100%}}
@media print{.phase11-next-step{display:none}}
}



/* Phase 12: production UX/accessibility hardening */
@layer phase12Quality {
  /* Long labels and URLs must not create horizontal scrolling on narrow screens. */
  :where(main,footer,.bd-consent) :where(a,p,li,dd,dt,code,strong,span){overflow-wrap:anywhere}

  /* Preserve a visible keyboard focus ring on Phase 9–11 additions regardless of source stylesheet. */
  .phase10-related .related-card:focus-visible,
  .phase11-next-step a:focus-visible,
  .geo-source-block a:focus-visible,
  .geo-method-block a:focus-visible{
    outline:.2rem solid var(--focus,#075fce);
    outline-offset:.22rem;
  }

  /* Avoid tiny inline action targets in generated source/method blocks. */
  .geo-source-block a,.geo-method-block a{min-height:2.75rem;display:inline-flex;align-items:center}

  /* Keep the added legal/method separator non-selectable. */
  .footer-bottom nav .phase12-separator,.v2-footer-bottom nav .phase12-separator{user-select:none}

  /* Disabled submit controls expose their state visually as well as semantically. */
  button[disabled],input[disabled]{cursor:not-allowed;opacity:.68}

  /* Make invalid direct-form controls unambiguous when JS validation is active. */
  [aria-invalid="true"]{outline:.2rem solid var(--danger,#a12b22);outline-offset:.12rem}
}

@media (prefers-reduced-motion:reduce){
  .phase10-related .related-card svg{transition:none!important;transform:none!important}
  .phase10-related .related-card:hover svg{transform:none!important}
  .phase11-next-step *{scroll-behavior:auto!important}
}

@media (forced-colors:active){
  .phase10-related .related-card,.phase11-choice,.geo-source-block,.geo-method-block{border:1px solid CanvasText}
}

/* Independent audit phase 2 — entity & authority */
.entity-authority-strip,.entity-authority-section{border-top:1px solid var(--line,#d9ddd8);border-bottom:1px solid var(--line,#d9ddd8);background:rgba(247,248,246,.82)}
.entity-authority-strip .entity-authority-inner{max-width:1120px;margin:0 auto;padding:1.4rem 1.25rem;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:1.25rem;align-items:start}
.entity-authority-kicker{display:inline-block;font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.45rem;color:var(--muted,#56605a)}
.entity-authority-strip p,.entity-authority-section p{margin:.2rem 0 .75rem;line-height:1.65}
.entity-authority-links{display:flex;flex-wrap:wrap;gap:.55rem 1rem;align-items:center}
.entity-authority-links a{font-weight:650;text-underline-offset:.18em}
.entity-authority-section{margin-top:clamp(2.5rem,5vw,5rem);padding:clamp(2.25rem,5vw,4.5rem) 0}
.entity-authority-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.4rem}
.entity-authority-card{background:var(--surface,#fff);border:1px solid var(--line,#d9ddd8);border-radius:18px;padding:1.2rem;box-shadow:0 12px 34px rgba(20,30,24,.05)}
.entity-authority-card h3{margin:.05rem 0 .6rem;font-size:1.05rem}
.entity-authority-card p{font-size:.95rem}
.entity-authority-note{margin-top:1.15rem;padding:.95rem 1rem;border-left:3px solid currentColor;background:rgba(255,255,255,.6);font-size:.92rem}
@media (max-width:800px){.entity-authority-strip .entity-authority-inner,.entity-authority-grid{grid-template-columns:1fr}.entity-authority-strip .entity-authority-inner{padding:1.15rem 1rem}.entity-authority-section{padding:2.25rem 0}}



/* Independent audit phase 14 — named expert context without unsupported review claims */
.phase14-expert-context{max-width:1120px;margin:1rem auto 0;padding:1rem 1.25rem;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem 1.5rem;align-items:center;border:1px solid var(--line,#d9ddd8);border-radius:16px;background:var(--paper-strong,#fff)}
.phase14-expert-context p{margin:.25rem 0 0;max-width:56rem;color:var(--slate-600,#56605a);line-height:1.6}
.phase14-expert-kicker{display:block;font-size:.74rem;font-weight:780;letter-spacing:.08em;text-transform:uppercase;color:var(--signal,#4d5f58)}
.phase14-expert-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.55rem 1rem}
.phase14-expert-links a{font-weight:650;text-underline-offset:.18em}
@media (max-width:760px){.phase14-expert-context{grid-template-columns:1fr;margin-inline:1rem;padding:1rem}.phase14-expert-links{justify-content:flex-start}}
@media (forced-colors:active){.phase14-expert-context{border:1px solid CanvasText}}
