/* AFECR documentation UI V5 — one page, one stylesheet, no global overrides. */
.afecr-docs-page { background:#f8fafc; }
.afecr-guide { --guide-ink:#102b4b; --guide-muted:#5d728a; --guide-border:#dce6f0; --guide-dark:#071d3a; color:var(--guide-ink); background:#f8fafc; }
.afecr-guide a:focus-visible,.afecr-guide summary:focus-visible {outline:3px solid #e62a48;outline-offset:4px}
.afecr-guide-hero {position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(125deg,#051a35 5%,#092c55 61%,#104a78 100%);color:#fff;padding:70px 0 78px;}
.afecr-guide-hero::before {content:"";position:absolute;inset:-40% -12% auto auto;width:830px;height:830px;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(72,165,218,.14) 0%,rgba(10,67,119,.06) 45%,transparent 70%);z-index:-1}
.afecr-guide-hero::after {content:"";position:absolute;inset:0;pointer-events:none;opacity:.1;background-image:linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(90deg,transparent 12%,#000 100%);z-index:-1}
.afecr-guide-hero-grid {display:grid;grid-template-columns:minmax(0,1.09fr) minmax(370px,.91fr);gap:clamp(36px,5vw,78px);align-items:center;}
.afecr-guide-breadcrumb {display:flex;gap:10px;align-items:center;font-size:13px;color:#b8cce2;margin-bottom:34px}
.afecr-guide-breadcrumb a:hover {color:#fff;text-decoration:underline}
.afecr-guide-kicker {display:flex;align-items:center;gap:10px;margin:0 0 18px!important;font-size:12px!important;letter-spacing:.13em;text-transform:uppercase;font-weight:850;color:#e3edf9!important}
.afecr-guide-kicker-dot {width:8px;height:8px;border-radius:50%;background:#fe4d65;box-shadow:0 0 0 4px rgba(255,71,98,.14)}
.afecr-guide-hero h1 {font-size:clamp(39px,4.5vw,62px);line-height:1.08;letter-spacing:-.045em;margin:0 0 21px;color:#fff;font-weight:850;max-width:740px}
.afecr-guide-hero-lead {color:#d5e2f0;font-size:clamp(17px,1.7vw,20px);line-height:1.68;max-width:670px;margin:0}
.afecr-guide-actions {display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin-top:32px}
.afecr-guide-actions .button-primary {background:#f02443;border-color:#f02443;box-shadow:0 14px 32px rgba(0,0,0,.14);font-size:15px;}
.afecr-guide-actions .button-primary:hover {background:#d51b3a}
.afecr-guide-hero-link {font-size:14px;font-weight:800;color:#e7f3ff}
.afecr-guide-hero-link:hover {text-decoration:underline;color:#fff}
.afecr-guide-hero-facts {display:flex;flex-wrap:wrap;gap:10px;margin-top:38px}
.afecr-guide-hero-facts span {border:1px solid rgba(225,240,255,.2);border-radius:50px;padding:8px 11px;background:rgba(255,255,255,.06);color:#cbddf0;font-size:12px;font-weight:700;letter-spacing:.005em}
.afecr-guide-diagram {border:1px solid rgba(211,237,255,.24);border-radius:22px;background:rgba(255,255,255,.075);box-shadow:0 29px 72px rgba(0,8,27,.25);overflow:hidden;backdrop-filter:blur(12px)}
.afecr-guide-diagram-head {display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid rgba(240,248,255,.15);gap:10px;color:#e3eef9;font-size:13px}
.afecr-guide-diagram-head>span {display:flex;gap:5px}
.afecr-guide-diagram-head i {width:7px;height:7px;border-radius:50%;background:#5f91ba;display:block}
.afecr-guide-diagram-head i:first-child {background:#f2737d}
.afecr-guide-diagram-head small {font-size:11px;color:#a8c3dd;font-weight:700}
.afecr-guide-diagram-body {padding:24px}
.afecr-guide-node {display:flex;align-items:center;gap:13px;padding:15px;border-radius:13px;background:rgba(255,255,255,.095);border:1px solid rgba(215,237,255,.14)}
.afecr-guide-node-icon {display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;background:rgba(202,229,255,.13);border:1px solid rgba(220,242,255,.22);border-radius:10px;font-weight:850;font-size:12px;color:#bce0ff}
.afecr-guide-node div {min-width:0;flex:1}.afecr-guide-node strong,.afecr-guide-node small {display:block}.afecr-guide-node strong {font-size:15px;color:#fff}.afecr-guide-node small {font-size:12px;color:#bfd3e8}
.afecr-guide-node-core {background:rgba(49,123,176,.27);border-color:rgba(133,197,248,.4)}
.afecr-guide-node-tag {font-size:10px;font-weight:800;color:#b9d7f5;padding:4px 7px;border:1px solid rgba(215,237,255,.19);border-radius:6px}
.afecr-guide-flow-line {height:46px;display:flex;align-items:center;justify-content:center;gap:12px;color:#b7d0e9;font-size:12px}.afecr-guide-flow-line b {font-size:20px;font-weight:400;color:#7dccff}
.afecr-guide-diagram-result {border-top:1px solid rgba(255,255,255,.13);margin-top:20px;padding:19px 2px 1px;display:flex;gap:10px;align-items:center;font-size:13px;line-height:1.5;color:#dceefb}
.afecr-guide-result-pulse {flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:#5de2b0;box-shadow:0 0 0 5px rgba(93,226,176,.09)}
.afecr-guide-meta {background:#edf4fa;border-bottom:1px solid #dae6f1}
.afecr-guide-meta .site-shell {display:flex;gap:19px;align-items:center;min-height:69px;padding-block:11px;color:#556d85;font-size:13px}
.afecr-guide-meta strong {color:#1c4065;font-weight:850;white-space:nowrap}
.afecr-guide-meta a {margin-left:auto;white-space:nowrap;color:#105a92;font-weight:800}
.afecr-guide-meta a:hover {text-decoration:underline}
.afecr-guide-layout {display:grid;grid-template-columns:258px minmax(0,1fr);gap:60px;padding-top:72px;padding-bottom:92px;align-items:start;}
.afecr-guide-sidebar {position:sticky;top:98px}
.afecr-guide-toc {padding:21px 14px;border:1px solid var(--guide-border);border-radius:17px;background:#fff;box-shadow:0 10px 30px rgba(12,40,71,.035)}
.afecr-guide-nav-label {display:block;font-size:11px;letter-spacing:.12em;font-weight:900;text-transform:uppercase;color:#74899d;padding:0 12px 12px;border-bottom:1px solid #eef2f6;margin:0 0 8px}
.afecr-guide-toc>a {display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;color:#37546e;font-size:14px;font-weight:650;line-height:1.28;transition:background .16s,color .16s}
.afecr-guide-toc>a span {font:750 11px ui-monospace,Consolas,monospace;color:#8299ae}
.afecr-guide-toc>a:hover,.afecr-guide-toc>a:focus-visible {background:#f0f6fc;color:#073f74}
.afecr-guide-sidebar-help {padding:22px 21px;margin-top:16px;background:#0e345f;border-radius:15px;color:#fff}
.afecr-guide-sidebar-help strong {font-size:16px}.afecr-guide-sidebar-help p {font-size:13px;color:#cfdeed;margin:9px 0 16px;line-height:1.5}
.afecr-guide-sidebar-help a {color:#fff;font-weight:800;font-size:12px;border-bottom:1px solid rgba(255,255,255,.55);padding-bottom:3px}
.afecr-guide-content {min-width:0}
.afecr-guide-section {scroll-margin-top:105px;border-bottom:1px solid #dce6ef;padding:0 0 54px;margin-bottom:57px}
.afecr-guide-section:last-child {border-bottom:0;margin-bottom:0;padding-bottom:0}
.afecr-guide-section-head {margin-bottom:28px}
.afecr-guide-index {display:inline-block;color:#c92140;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;margin-bottom:13px}
.afecr-guide-section-head h2 {font-size:clamp(29px,3vw,41px);font-weight:830;line-height:1.13;letter-spacing:-.033em;color:#0a2c51;margin:0 0 17px;max-width:750px}
.afecr-guide-section-head p {font-size:17px;line-height:1.72;color:var(--guide-muted);margin:0;max-width:760px}
.afecr-guide-card-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.afecr-guide-card {background:#fff;border:1px solid #dbe5ef;border-radius:15px;padding:23px 18px;box-shadow:0 10px 25px rgba(12,45,82,.025)}
.afecr-guide-card-icon {display:grid;place-items:center;width:43px;height:43px;border-radius:11px;background:#edf4fb;color:#0a477d;font-size:25px;margin-bottom:21px;line-height:1}
.afecr-guide-card h3 {color:#193b5d;font-size:18px;line-height:1.25;margin:0 0 10px}
.afecr-guide-card p {color:#5c7085;font-size:14px;line-height:1.65;margin:0}
.afecr-guide-note {border:1px solid #d6e4f0;border-radius:12px;background:#f0f6fb;padding:18px 20px;color:#445f79;line-height:1.65;font-size:15px;margin-top:22px;scroll-margin-top:110px}
.afecr-guide-note strong {color:#123d65}.afecr-guide-note a {color:#0d5791;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.afecr-guide-step-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;list-style:none;padding:0;margin:0 0 25px;scroll-margin-top:110px}
.afecr-guide-step-grid li {background:#fff;border:1px solid #dae5ef;border-radius:14px;padding:22px;min-width:0}
.afecr-guide-step-grid li>span {display:inline-block;color:#d82645;font-weight:900;letter-spacing:.06em;font-size:12px;margin-bottom:17px}
.afecr-guide-step-grid strong {display:block;color:#15385a;font-size:17px;margin-bottom:6px}
.afecr-guide-step-grid p {color:#63778a;font-size:14px;line-height:1.6;margin:0}
.afecr-guide-code-panel {min-width:0;max-width:100%;background:#071f3c;border-radius:17px;overflow:hidden;box-shadow:0 20px 40px rgba(6,32,59,.09)}
.afecr-guide-code-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:#0e3257;border-bottom:1px solid #264b6e;color:#e4f1fd;font-size:12px;font-weight:800}
.afecr-guide-code-header>span:last-child {color:#93badb}.afecr-guide-code-header i {display:inline-block;background:#57dbaa;width:7px;height:7px;border-radius:50%;margin-right:7px}
.afecr-guide-code-panel pre {overflow-x:auto;max-width:100%;padding:25px 26px;margin:0;color:#d5e9ff;font:500 13px/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;tab-size:2}
.afecr-guide-code-caption {border-top:1px solid #233f60;color:#b6cbe0;font-size:13px;line-height:1.6;padding:16px 22px;background:#0b2a4d}
.afecr-guide-statuses {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.afecr-guide-status {background:#fff;border:1px solid #dfe6ee;border-radius:13px;padding:20px 17px}
.afecr-guide-status-dot {display:block;width:11px;height:11px;border-radius:50%;margin-bottom:16px}
.afecr-guide-status-dot.is-pending {background:#efaa40;box-shadow:0 0 0 5px #fff4e5}
.afecr-guide-status-dot.is-ok {background:#2eb58a;box-shadow:0 0 0 5px #e6fbf3}
.afecr-guide-status-dot.is-error {background:#e1455c;box-shadow:0 0 0 5px #ffecf0}
.afecr-guide-status strong {display:block;color:#194064;font-size:16px;margin-bottom:8px}
.afecr-guide-status p {color:#61778c;font-size:14px;line-height:1.6;margin:0}
.afecr-guide-muted {font-size:15px;color:#63768b;margin:20px 0 0;line-height:1.7}
.afecr-guide-webhook-graphic {display:grid;grid-template-columns:1fr 30px 1fr 30px 1fr;gap:8px;align-items:center;padding:23px;border-radius:16px;border:1px solid #cfe2f3;background:linear-gradient(115deg,#e9f3fc,#f5f9fd);margin-bottom:22px}
.afecr-guide-webhook-graphic>div {min-width:0;padding:15px 12px;border:1px solid #d9e6f2;background:#fff;border-radius:10px;text-align:center}
.afecr-guide-webhook-graphic span,.afecr-guide-webhook-graphic strong,.afecr-guide-webhook-graphic small {display:block}
.afecr-guide-webhook-graphic span {font-size:11px;color:#bb2c49;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}
.afecr-guide-webhook-graphic strong {font-size:14px;line-height:1.3;color:#16426b}.afecr-guide-webhook-graphic small {font-size:12px;color:#748ba1;margin-top:6px}
.afecr-guide-webhook-graphic>b {font-size:25px;color:#1d5d93;text-align:center}
.afecr-guide-webhook-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.afecr-guide-webhook-grid article {padding:22px;background:#fff;border:1px solid #dfe7ef;border-radius:13px}
.afecr-guide-webhook-grid article>span {color:#ce2947;font-size:11px;letter-spacing:.12em;font-weight:850}
.afecr-guide-webhook-grid h3 {margin:10px 0 9px;color:#1a3c60;font-size:18px;line-height:1.3}
.afecr-guide-webhook-grid p {color:#62788d;font-size:14px;line-height:1.7;margin:0}
.afecr-guide-callout {display:flex;align-items:start;gap:14px;margin-top:21px;padding:19px 22px;background:#fff9f7;border:1px solid #f1d9d2;border-left:4px solid #e02d46;border-radius:12px}
.afecr-guide-callout>span {display:grid;place-items:center;background:#e02d46;color:#fff;border-radius:50%;width:25px;flex:0 0 25px;height:25px;font-weight:900;font-size:14px}
.afecr-guide-callout p {margin:0;font-size:14px;line-height:1.67;color:#775552}
.afecr-guide-callout strong {color:#623937}
.afecr-guide-two-cols,.afecr-guide-security-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.afecr-guide-two-cols article {padding:23px;border-radius:13px;background:#fff;border:1px solid #e0e8f0}
.afecr-guide-two-cols h3 {font-size:18px;color:#193c60;margin:0 0 11px}
.afecr-guide-two-cols p {font-size:14px;line-height:1.7;margin:0;color:#62788b}.afecr-guide-two-cols code {font-size:.94em;background:#eef5fb;border-radius:5px;padding:2px 5px;color:#16466b}
.afecr-guide-security-grid>div {padding:20px;background:#fff;border:1px solid #dfe8f0;border-radius:13px;scroll-margin-top:100px}
.afecr-guide-security-mark {display:grid;place-items:center;width:28px;height:28px;background:#dff6ed;color:#087a53;border-radius:50%;font-weight:900;font-size:16px;margin-bottom:14px}
.afecr-guide-security-grid strong {display:block;font-size:16px;color:#1e4669;margin-bottom:8px}
.afecr-guide-security-grid p {color:#5f778d;font-size:14px;line-height:1.65;margin:0}
.afecr-guide-link-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.afecr-guide-link-grid a {display:flex;flex-direction:column;min-height:168px;gap:8px;background:#fff;border:1px solid #dce6ef;border-radius:13px;padding:23px;transition:transform .2s,box-shadow .2s,border-color .2s}
.afecr-guide-link-grid a:hover {transform:translateY(-3px);border-color:#a5c2db;box-shadow:0 15px 34px rgba(8,44,86,.08)}
.afecr-guide-link-grid span {font-size:11px;color:#ce2947;font-weight:900;text-transform:uppercase;letter-spacing:.09em}
.afecr-guide-link-grid strong {font-size:18px;color:#194064;line-height:1.3}.afecr-guide-link-grid small {margin-top:auto;color:#15578a;font-size:13px;font-weight:800}
.afecr-guide-inline-detail {scroll-margin-top:110px;margin-top:20px;background:#eef5fa;border-radius:12px;padding:20px 22px}
.afecr-guide-inline-detail h3 {color:#193e62;font-size:18px;margin:0 0 7px}.afecr-guide-inline-detail p {margin:0;color:#577087;line-height:1.7;font-size:14px}
.afecr-guide-inline-detail a {color:#11598c;text-decoration:underline;font-weight:800}
.afecr-guide-faq {border-top:1px solid #dce6ef}
.afecr-guide-faq details {border-bottom:1px solid #dce6ef}.afecr-guide-faq summary {cursor:pointer;padding:20px 30px 20px 0;font-size:17px;color:#1a3e61;font-weight:800;line-height:1.45;position:relative;list-style:none}
.afecr-guide-faq summary::-webkit-details-marker {display:none}.afecr-guide-faq summary::after {content:"+";position:absolute;right:2px;top:18px;font-weight:500;font-size:23px;color:#426b92}.afecr-guide-faq details[open] summary::after {content:"−"}
.afecr-guide-faq details p {font-size:15px;color:#60758b;line-height:1.73;padding:0 24px 20px 0;margin:0}
.afecr-guide-final {margin-top:48px;border-radius:18px;padding:29px 30px;background:linear-gradient(112deg,#08264a,#124778);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:22px;scroll-margin-top:110px}
.afecr-guide-final span {font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:850;color:#b5d8f5}
.afecr-guide-final h2 {color:#fff;font-size:26px;line-height:1.2;letter-spacing:-.025em;max-width:530px;margin:9px 0}
.afecr-guide-final p {font-size:14px;color:#ccdceb;line-height:1.55;margin:0;max-width:550px}
.afecr-guide-final .button {flex:0 0 auto;white-space:nowrap;background:#ed2342;color:#fff}
@media(max-width:1120px) {
  .afecr-guide-hero-grid {grid-template-columns:minmax(0,1fr) minmax(310px,.85fr);gap:34px}
  .afecr-guide-layout {grid-template-columns:227px minmax(0,1fr);gap:36px}
  .afecr-guide-hero h1 {font-size:clamp(38px,4.3vw,54px)}
  .afecr-guide-card-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px) {
  .afecr-guide-hero {padding:48px 0 62px}
  .afecr-guide-hero-grid {grid-template-columns:1fr}
  .afecr-guide-hero h1 {max-width:740px}
  .afecr-guide-diagram {max-width:640px;width:100%}
  .afecr-guide-meta .site-shell {flex-wrap:wrap;gap:6px 14px;padding:16px 0}
  .afecr-guide-meta a {margin-left:0}
  .afecr-guide-layout {grid-template-columns:minmax(0,1fr);gap:34px;padding-top:40px}
  .afecr-guide-sidebar {position:static}
  .afecr-guide-toc {display:flex;align-items:center;overflow-x:auto;gap:7px;scrollbar-width:thin;padding:10px 12px}
  .afecr-guide-nav-label {display:none}
  .afecr-guide-toc a {flex:0 0 auto;white-space:nowrap;font-size:13px;background:#f4f8fc;padding:12px}
  .afecr-guide-sidebar-help {display:none}
}
@media(max-width:590px) {
  .afecr-guide-hero {padding:33px 0 49px}
  .afecr-guide-breadcrumb {margin-bottom:25px}
  .afecr-guide-hero h1 {font-size:clamp(35px,9vw,46px)}
  .afecr-guide-hero-lead {font-size:16px}
  .afecr-guide-hero-facts {gap:8px;margin-top:26px}
  .afecr-guide-hero-facts span {font-size:11px}
  .afecr-guide-actions {gap:15px}
  .afecr-guide-diagram-body {padding:15px}
  .afecr-guide-node-tag {display:none}
  .afecr-guide-meta .site-shell {font-size:12px}
  .afecr-guide-layout {padding-top:27px;padding-bottom:58px}
  .afecr-guide-section {padding-bottom:39px;margin-bottom:42px}
  .afecr-guide-section-head h2 {font-size:30px}
  .afecr-guide-section-head p {font-size:16px}
  .afecr-guide-card-grid,.afecr-guide-step-grid,.afecr-guide-statuses,.afecr-guide-webhook-grid,.afecr-guide-security-grid,.afecr-guide-two-cols,.afecr-guide-link-grid {grid-template-columns:1fr}
  .afecr-guide-card {padding:20px}
  .afecr-guide-webhook-graphic {grid-template-columns:1fr;gap:9px;padding:13px}
  .afecr-guide-webhook-graphic>b {transform:rotate(90deg);line-height:1}
  .afecr-guide-code-panel pre {font-size:12px;padding:20px 17px}
  .afecr-guide-code-header {padding:14px}
  .afecr-guide-code-caption {padding:15px}
  .afecr-guide-final {flex-direction:column;align-items:flex-start;padding:24px}
  .afecr-guide-final h2 {font-size:24px}
}
@media(prefers-reduced-motion:reduce) {
  .afecr-guide-link-grid a {transition:none}
  .afecr-guide-link-grid a:hover {transform:none}
}
