/* AEO Checker. Scoped under .aeo; brand tokens from /style-guide/. */
.aeo {
  --night: #16161F; --night-2: #20202c; --teal: #00D4AA; --blue: #0073AA;
  --ink: #1b1b24; --muted: #5b5d6b; --line: #e3e5ec; --paper: #ffffff; --soft: #f5f7fa;
  --pass: #0a8f6f; --warn: #b26a00; --fail: #c62f3b; --info: #5b5d6b;
  --pass-bg: #e3f7f1; --warn-bg: #fff3e0; --fail-bg: #fde8ea; --info-bg: #eef0f4;
  font-family: Raleway, system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6;
}
.aeo *, .aeo *::before, .aeo *::after { box-sizing: border-box; }
.aeo h1, .aeo h2, .aeo h3 { font-family: "Josefin Sans", system-ui, sans-serif; line-height: 1.2; margin: 0 0 .5em; }
.aeo-wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.aeo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.aeo-hero { background: var(--night); color: #fff; padding: 64px 0 56px; }
.aeo-kicker { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
.aeo-hero h1 { font-size: clamp(30px, 5vw, 46px); color: #fff; }
.aeo-lede { font-size: 18px; color: #c9cbd6; max-width: 700px; margin: 0 0 28px; }
.aeo-form { display: flex; gap: 10px; flex-wrap: wrap; }
.aeo-form input { flex: 1 1 320px; min-width: 0; font: 500 16px Raleway, sans-serif; padding: 15px 16px; border-radius: 8px; border: 2px solid #3a3b4a; background: var(--night-2); color: #fff; }
.aeo-form input:focus { outline: none; border-color: var(--teal); }
.aeo-form button { flex: 0 0 auto; font: 700 16px Montserrat, sans-serif; padding: 15px 26px; border: 0; border-radius: 8px; background: var(--teal); color: var(--night); cursor: pointer; }
.aeo-form button:hover { background: #1fe6bd; }
.aeo-form button[disabled] { opacity: .6; cursor: progress; }
.aeo-note { font-size: 14px; color: #8d90a0; margin: 12px 0 0; }

.aeo-results { padding: 40px 0 8px; }
.aeo-msg { padding: 16px 18px; border-radius: 8px; background: var(--fail-bg); color: #7a1b24; }
.aeo-loading { color: var(--muted); }

.aeo-meta { color: var(--muted); font-size: 14px; margin: 0 0 14px; word-break: break-word; }
.aeo-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 14px; }
.aeo-verdict, .aeo-tally { border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.aeo-q { font: 600 12px Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.aeo-verdict b, .aeo-tally b { font: 700 44px/1.05 Montserrat, sans-serif; }
.aeo-tally small { font-size: 20px; font-weight: 600; color: var(--muted); }
.aeo-verdict.pass { background: var(--pass-bg); color: #075c48; }
.aeo-verdict.issues { background: var(--warn-bg); color: #6e4200; }
.aeo-verdict.blocked { background: var(--fail-bg); color: #7a1b24; }
.aeo-tally { background: var(--soft); color: var(--ink); }
.aeo-verdict-wide { margin: 0 0 16px; padding: 24px 26px; }
.aeo-verdict-wide b { font-size: 52px; }
.aeo-verdict-wide span:last-child { font-size: 17px; }
.aeo-readers > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.aeo-readers > summary::-webkit-details-marker { display: none; }
.aeo-readers > summary h2 { margin: 0; }
.aeo-readers > summary::after { content: "Show"; font: 600 13px Montserrat, sans-serif; color: var(--blue); }
.aeo-readers[open] > summary::after { content: "Hide"; }
.aeo-readers[open] > summary { margin-bottom: 14px; }
.aeo-sub { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.aeo-sub > summary h3 { margin: 0; font-size: 18px; }
.aeo-cap { background: var(--fail-bg); color: #7a1b24; padding: 10px 12px; border-radius: 6px; font-size: 15px; margin: 0 0 12px; }
.aeo-evidence { font-size: 14px; color: var(--muted); background: var(--soft); border-left: 3px solid var(--blue); padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 0 0 22px; }
.aeo-evidence a { color: var(--blue); font-weight: 600; }

.aeo-card { border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin: 0 0 18px; background: var(--paper); }
.aeo-card h2 { font-size: 22px; }
.aeo-fixes { list-style: none; padding: 0; margin: 0; counter-reset: f; }
.aeo-fixes li { counter-increment: f; position: relative; padding: 0 0 12px 40px; }
.aeo-fixes li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--night); color: var(--teal); font: 700 14px/28px Montserrat, sans-serif; text-align: center; }
.aeo-fixes strong { display: block; }
.aeo-gain { font: 600 12px Montserrat, sans-serif; color: var(--blue); }

.aeo-sec summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.aeo-sec summary::-webkit-details-marker { display: none; }
.aeo-sec summary h2 { margin: 0; }
.aeo-sec summary::after { content: "+"; font: 600 22px Montserrat, sans-serif; color: var(--muted); }
.aeo-sec[open] summary::after { content: "–"; }
.aeo-sec .pts { font: 700 15px Montserrat, sans-serif; color: var(--muted); margin-left: auto; }
.aeo-check { border-top: 1px solid var(--line); padding: 14px 0 4px; margin-top: 14px; }
.aeo-check-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.aeo-check-head h3 { font-size: 17px; margin: 0; flex: 1 1 260px; }
.aeo-pill { font: 700 11px Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; }
.aeo-pill.pass { background: var(--pass-bg); color: var(--pass); }
.aeo-pill.warn { background: var(--warn-bg); color: var(--warn); }
.aeo-pill.fail { background: var(--fail-bg); color: var(--fail); }
.aeo-pill.info { background: var(--info-bg); color: var(--info); }
.aeo-score { font: 600 14px Montserrat, sans-serif; color: var(--muted); }
.aeo-check p { margin: 6px 0; font-size: 15px; }
.aeo-check .why { color: var(--muted); font-size: 14px; }
.aeo-check .fix { background: var(--soft); border-left: 3px solid var(--teal); padding: 8px 12px; border-radius: 0 6px 6px 0; }
.aeo-tag { font: 600 11px Montserrat, sans-serif; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }

.aeo-table-wrap { overflow-x: auto; margin: 10px 0 4px; }
.aeo-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.aeo-table th, .aeo-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.aeo-table th { font-family: Montserrat, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.aeo-yes { color: var(--pass); font-weight: 600; }
.aeo-no { color: var(--fail); font-weight: 600; }

.aeo-cant { background: var(--night); color: #d9dbe5; border: 0; }
.aeo-cant h2 { color: #fff; }
.aeo-cant ul { padding-left: 20px; }
.aeo-cant a.aeo-cta { display: inline-block; margin-top: 8px; background: var(--teal); color: var(--night); font: 700 15px Montserrat, sans-serif; text-decoration: none; padding: 12px 20px; border-radius: 8px; }

.aeo-about { padding: 48px 16px 64px; }
.aeo-about h2 { font-size: 26px; margin-top: 1.4em; }
.aeo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.aeo-grid > div { background: var(--soft); border-radius: 10px; padding: 16px 18px; }
.aeo-grid h3 { font-size: 18px; color: var(--blue); }
.aeo-grid p { margin: 0; font-size: 15px; }

@media (max-width: 640px) {
  .aeo-hero { padding: 44px 0 40px; }
  .aeo-top { grid-template-columns: 1fr; }
  .aeo-verdict b, .aeo-tally b { font-size: 36px; }
  .aeo-card { padding: 16px; }
}

/* ---- WordPress page integration (christopherjanb.com page-no-title template) ----
   The tool sits in a full-width group block; drop the template's top/bottom padding so the dark hero
   meets the header, and undo the reading-column typography inside the tool. */
main.cjb-no-hero:has(.aeo-hero) { padding-top: var(--cjb-nav-h, 0px) !important; padding-bottom: 0 !important; }
.cjb-prose .aeo { font-size: 16px; line-height: 1.6; }
.aeo h1 { margin-top: 0; }
.aeo-hero .aeo-wrap { max-width: 920px; }
.aeo-about { max-width: 760px; margin: 0 auto; }
.aeo-about h2 { font-size: clamp(24px, 3vw, 30px); margin: 1.8em 0 .45em; }
.aeo-about h3 { font-size: 19px; margin: 1.4em 0 .3em; }
.aeo-about p, .aeo-about li { font-size: 17px; }
.aeo-about ul, .aeo-about ol { padding-left: 1.3em; }
.aeo-about li { margin: .35em 0; }
.aeo-about .aeo-table-wrap { margin: 14px 0 6px; }
.aeo-about a:not(.aeo-cta) { color: var(--blue); }
