/* /services/seo/geo-aeo/ (30 Oct 2026). Sits on svc.css and tseo.css (shared: the tabs, self-check, glossary, proof grid).
   One signature moment: the hero's AI answer writing itself and picking its sources. Two tools of its own: the
   before/after paragraph and the AI crawler robots.txt builder. Everything else stays quiet. */
.geo-hero { --okc: #5FB98A; --noc: #E0705F; }

/* hero: one question, one answer, three sources (the figure sits on the dark card from svc.css) */
.aq { margin: 0; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--rule); border-radius: 20px; background: var(--panel); }
.aq figcaption { margin: 0 0 18px; font: 700 1.1rem/1.3 var(--serif); }
.aq-q { margin: 0 0 16px auto !important; max-width: 86%; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--panel2); color: var(--ink); font: 500 .95rem/1.45 var(--sans); width: fit-content; }
.aq-a { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 6px; padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.aq-a i { display: block; flex: 0 0 var(--w); height: 8px; border-radius: 99px; background: var(--line); transform-origin: left; }
.aq-m { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--espresso); font: 700 .7rem/1 var(--mono); }
.aq-src { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: s; }
.aq-s { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 10px; align-items: start; counter-increment: s; }
.aq-s::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font: 700 .7rem/1 var(--mono); }
.aq-s.no::before { content: "–"; border-color: var(--noc); color: var(--noc); }
.aq-s code { font: 400 .78rem/1.3 var(--mono); color: var(--ink); opacity: .82; overflow-wrap: anywhere; }
.aq-s b { font: 600 .84rem/1.35 var(--sans); }
.aq-s.ok b { color: var(--okc); } .aq-s.no b { color: var(--noc); }
.aq .note { margin-top: 18px !important; }
@media (prefers-reduced-motion: no-preference) {
  .aq-q { animation: aqIn .5s .3s both; }
  .aq-a i { animation: aqLine .55s calc(.8s + var(--n, 0) * .2s) cubic-bezier(.45, 0, .3, 1) both; }
  .aq-a i:nth-of-type(2) { --n: 1; } .aq-a i:nth-of-type(3) { --n: 2; } .aq-a i:nth-of-type(4) { --n: 3.6; } .aq-a i:nth-of-type(5) { --n: 4.6; }
  .aq-m { animation: aqPop .4s 1.5s both; } .aq-m:last-child { animation-delay: 2.1s; }
  .aq-s { animation: aqIn .5s calc(2.4s + var(--r) * .35s) both; }
}
@keyframes aqLine { from { transform: scaleX(0); } }
@keyframes aqPop { from { opacity: 0; transform: scale(.4); } }
@keyframes aqIn { from { opacity: 0; transform: translateY(6px); } }

/* the four needs */
.nds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: clamp(28px, 4vh, 44px) 0 0; padding: 0; list-style: none; }
.nd { padding: 24px; border: 1px solid var(--rule); border-radius: 18px; background: var(--panel); }
.nd-n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font: 600 .8rem/1 var(--mono); }
.nd h3 { font: 700 1.35rem/1.2 var(--serif); margin-bottom: 8px; }
.nd p { margin: 0 0 8px !important; color: var(--muted); font-size: .95rem; }
.nd .nd-q { color: var(--ink); font-weight: 600; }

/* before / after paragraph */
.rw { margin-top: clamp(36px, 6vh, 64px); padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--rule); border-radius: 20px; background: var(--panel); }
.rw-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; margin-bottom: 24px; }
.rw-head h3 { font: 700 clamp(1.3rem, 2vw, 1.6rem)/1.25 var(--serif); margin: 0; }
.rw-head p { grid-column: 1; margin: 0 !important; color: var(--muted); max-width: 40em; }
.rw-sw { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; padding: 4px; border: 1px solid var(--rule); border-radius: 99px; }
.rw-sw button { min-height: 44px; min-width: 96px; padding: 0 18px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font: 600 .92rem/1 var(--sans); cursor: pointer; transition: background .3s, color .3s; }
.rw-sw button[aria-pressed="true"] { background: var(--gold); color: var(--espresso); }
.rw-sw button:focus-visible, .rb-pre button:focus-visible, .rb-copy:focus-visible, .rb-sw input:focus-visible + span, .rb-txt:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.rw-body { padding-top: 22px; border-top: 1px solid var(--line); }
.rw-p { max-width: 44em; margin: 0 0 14px !important; font: 400 1.12rem/1.65 var(--serif); color: var(--muted); }
.rw-why { margin: 0 !important; color: #E0705F; font-weight: 600; }
.rw-l { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 6px 28px; align-items: baseline; margin: 0 !important; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.rw-l span { font: 400 1.12rem/1.55 var(--serif); color: var(--ink); }
.rw-l em { font: 500 .8rem/1.4 var(--mono); font-style: normal; color: var(--gold); }
.rw-l em::before { content: "← "; }
.rw .note { margin-top: 20px !important; }
.rw .note a { color: var(--gold); text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .rw-v:not([hidden]) .rw-l { animation: aqIn .45s calc(var(--i) * .08s) both; } .rw-v:not([hidden]) .rw-p { animation: aqIn .4s both; } }

/* AI crawler robots.txt builder */
.geo-bots { --blk: #B4483A; }
.rb-pre { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(22px, 3vh, 32px) 0 22px; }
.rb-pre button, .rb-copy { min-height: 44px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 99px; background: var(--panel); color: var(--ink); font: 600 .9rem/1 var(--sans); cursor: pointer; transition: border-color .3s, background .3s; }
@media (hover: hover) { .rb-pre button:hover, .rb-copy:hover { border-color: var(--accent); } }
.rb-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.rb-t { min-width: 640px; }
.rb-t th, .rb-t td { vertical-align: top; font-size: .9rem; }
.rb-t tbody th[scope="row"] { width: 24%; }
.rb-t tbody th code { display: block; font: 600 .86rem/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.rb-t tbody th span { display: block; margin-top: 3px; font: 400 .8rem/1.3 var(--sans); color: var(--muted); }
.rb-t .rb-g th { padding-top: 22px; font: 600 .76rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.rb-if { color: var(--muted); }
.rb-sw { width: 120px; }
.rb-sw label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.rb-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rb-sw span { position: relative; display: inline-flex; align-items: center; padding-left: 50px; min-height: 24px; font: 600 .85rem/1 var(--sans); color: var(--accent-text); }
.rb-sw span::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 24px; border-radius: 99px; background: var(--accent); transition: background .25s; }
.rb-sw span::after { content: ""; position: absolute; left: 19px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; transition: left .25s var(--ease); }
.rb-sw input:not(:checked) + span { color: var(--blk); }
.rb-sw input:not(:checked) + span::before { background: #CFC6BA; }
.rb-sw input:not(:checked) + span::after { left: 3px; }
.rb-t tr.off th code { text-decoration: line-through; text-decoration-color: var(--blk); }
.rb-t tr.off .rb-if { color: var(--blk); }
.rb-out { position: sticky; top: 104px; }
.rb-sum { margin: 0 0 14px !important; font: 700 clamp(1.05rem, 1.5vw, 1.25rem)/1.4 var(--serif); }
.rb-sum.warn { color: var(--blk); }
.rb-txt { max-height: 440px; overflow: auto; margin: 0 0 14px; padding: 18px 20px; border-radius: 14px; background: #17110E; color: #F1E9DE; font: 400 .8rem/1.55 var(--mono); white-space: pre; }
.rb-out .note a { color: var(--accent-text); text-underline-offset: 3px; }

/* measurement and our own setup */
.gm { display: grid; gap: 0; margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.gm li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.gm b { font: 700 1.05rem/1.3 var(--serif); color: var(--gold); }
.gm span { color: var(--muted); font-size: .94rem; }
.geo-meas .tp-grid > div > p a { color: var(--gold); text-underline-offset: 3px; }
.ows { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.ow { padding: 16px 0; border-top: 1px solid var(--line); }
.ow h4 { margin: 0 0 4px; font: 600 .78rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ow p { margin: 0 0 6px !important; color: var(--ink) !important; font-size: .95rem; }
.ow a { display: inline-flex; align-items: center; min-height: 32px; color: var(--gold); font-weight: 600; font-size: .92rem; text-underline-offset: 3px; }

@media (max-width: 1100px) { .nds { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rb-grid { grid-template-columns: minmax(0, 1fr); } .rb-out { position: static; } }
@media (max-width: 760px) {
  .nds { grid-template-columns: minmax(0, 1fr); }
  .rw-head { grid-template-columns: minmax(0, 1fr); } .rw-sw { grid-column: 1; grid-row: auto; justify-self: start; }
  .rw-l { grid-template-columns: minmax(0, 1fr); }
  .gm li { grid-template-columns: minmax(0, 1fr); }
  /* crawler table becomes one card per bot, switch beside the name, so nothing hides off-screen */
  .geo-bots .cmp-wrap { overflow: visible; } .geo-bots .cmp-wrap::after { content: none; }
  .rb-t, .rb-t tbody { display: block; min-width: 0; }
  .rb-t thead { display: none; }
  .rb-t tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .rb-t tr > * { padding: 0; border: 0; }
  .rb-t tr.rb-g { display: block; padding: 18px 16px 8px; } .rb-t .rb-g th { display: block; width: auto; padding: 0; }
  .rb-t tbody th[scope="row"] { width: auto; grid-column: 1; grid-row: 1; }
  .rb-t .rb-sw { width: auto; grid-column: 2; grid-row: 1; }
  .rb-t tr > td:not(.rb-sw) { grid-column: 1 / -1; }
  .rb-t .rb-if::before { content: "If blocked: "; font-weight: 600; }
}
