/* AI Review Rating: editorial layer (2026-11-15). Loaded last, after every
   other theme sheet, so it only restyles; no markup, link or class changes.
   Spec and benchmark sources: marketing/design/redesign-2026-11-15/SPEC.md.
   Light only, like the rest of the theme (see agent.css header).
   Rollback: remove the 'airr-editorial' line from functions.php. */

/* ------------------------------------------------------------ tokens --- */
body .airr-pdp,body .airr-header,body .airr-headerbar{
  --a-ground:#fafaf8; --a-card:#fff; --a-card2:#f3f3ef;
  --a-ink:#15171c; --a-ink2:#3b4049; --a-muted:#626a76;
  --a-rule:#e3e2dc; --a-rule2:#cfcdc4;
  --a-accent:#2340b8; --a-accent-soft:#f1f3f8;
  --a-radius:8px;
  --e-serif:"Iowan Old Style","Charter","Bitstream Charter","Sitka Text",Georgia,serif;
}
body{background:#fafaf8}

/* --------------------------------------------------------- headlines --- */
/* :not(._) lifts specificity over the per-page heading rules without !important */
.airr-pdp :is(h1,h2):not(._):not(._){
  font-family:var(--e-serif);font-weight:600;letter-spacing:-.012em;
}
.airr-pdp h1:not(._):not(._){line-height:1.1}
.airr-pdp .airr-hsec-head h2:not(._):not(._){font-size:1.45rem}

/* -------------------------------------------------------------- hero --- */
.airr-pdp.airr-home .airr-hero{
  background:none;border:0;border-radius:0;padding:28px 0 26px;
  border-bottom:1px solid var(--a-rule);
}
.airr-pdp.airr-home .airr-hero h1:not(._){font-size:clamp(2.1rem,5vw,3.25rem)}
.airr-pdp .airr-hero-stats{gap:24px;padding-top:18px}
.airr-pdp .airr-hero-stats b{font-size:1.75rem;font-weight:650;letter-spacing:-.02em}
.airr-pdp .airr-hero-stats span,.airr-pdp .airr-stat span{
  font-size:.84rem;font-weight:500;letter-spacing:0;text-transform:none;color:var(--a-muted);
}

/* ----------------------------------------- quiet labels, no caps soup --- */
.airr-pdp :is(.airr-chip,.airr-badge,.airr-artcard-flag,.airr-hero-eyebrow,.airr-tcard-tag,.airr-col h3,.airr-sub-kicker){
  text-transform:none;letter-spacing:0;font-weight:600;
}
.airr-footer-col b{text-transform:none;letter-spacing:0;font-size:.86rem}
.airr-pdp .airr-artcard-flag{color:var(--a-ink2);background:var(--a-card2)}

/* ------------------------------------------------- one card language --- */
.airr-pdp :is(.airr-altcard,.airr-catcard,.airr-topcol,.airr-tcard,.airr-artcard > a,.airr-svc-tier){
  border-radius:var(--a-radius);
}
.airr-pdp :is(.airr-altcard,.airr-catcard,.airr-artcard > a){
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.airr-pdp :is(.airr-altcard,.airr-catcard,.airr-artcard > a):hover{
  transform:translateY(-2px);background:var(--a-card);border-color:var(--a-rule2);
  box-shadow:0 6px 18px rgba(21,23,28,.07);
}
@media (prefers-reduced-motion:reduce){
  .airr-pdp :is(.airr-altcard,.airr-catcard,.airr-artcard > a){transition:none}
  .airr-pdp :is(.airr-altcard,.airr-catcard,.airr-artcard > a):hover{transform:none}
}

/* Our pick: the chip says it, the border no longer shouts it in gold */
.airr-pdp .airr-altcard--partner,.airr-pdp .airr-tcard--partner{
  border-color:var(--a-rule);box-shadow:none;
}
.airr-pdp .airr-altcard--partner:hover,.airr-pdp .airr-tcard--partner:hover{border-color:var(--a-rule2)}
.airr-pdp .airr-chip--partner{
  background:var(--a-ink);color:#fff;border:0;border-radius:4px;font-size:.7rem;padding:2px 7px;
}

/* Rank medals: emoji become plain numerals; the span keeps its aria-label */
.airr-medal img.emoji{display:none!important}
.airr-medal::before{
  display:inline-grid;place-items:center;width:1.45rem;height:1.45rem;border-radius:50%;
  font:600 .78rem/1 var(--e-serif,Georgia,serif);color:var(--a-ink,#15171c);
  border:1px solid var(--a-rule2,#cfcdc4);background:#fff;
}
.airr-medal--1::before{content:"1"}
.airr-medal--2::before{content:"2"}
.airr-medal--3::before{content:"3"}

/* --------------------------------------- grids without orphan holes --- */
/* Card rows grow to fill the last line instead of leaving empty columns. */
.airr-pdp .airr-altcards{display:flex;flex-wrap:wrap;gap:12px}
.airr-pdp .airr-altcards > *{flex:1 1 140px;min-width:0}
.airr-pdp .airr-altcard .airr-altname{font-weight:650}
.airr-pdp .airr-catgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:700px){.airr-pdp .airr-catgrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1100px){.airr-pdp .airr-catgrid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (min-width:1100px){.airr-pdp .airr-svc-tiers.airr-svc-tiers-4{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:600px) and (max-width:1099px){.airr-pdp .airr-svc-tiers.airr-svc-tiers-4{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ------------------------------------------------- one button colour --- */
.airr-news-form button,.airr-sub .airr-sub-form .airr-news-form button,.airr-np-card button[type=submit]{
  background:var(--a-accent,#2340b8);color:#fff;border-color:var(--a-accent,#2340b8);
}

/* ------------------------------------------ agent launcher on phones --- */
/* Icon only under 600px so it stops covering links; label stays for screen readers. */
@media (max-width:600px){
  .airr-agent-launch:not(.airr-agent-launch--inline){min-width:44px;min-height:44px;padding:11px;justify-content:center}
  .airr-agent-launch:not(.airr-agent-launch--inline) .airr-agent-launch-label{
    position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
  }
}

/* ---------------------------------------- footer disclosure contrast (AA) --- */
body .airr-footer .airr-footer-legal{color:#a9b1bf}
body .airr-footer .airr-predisc .airr-partner-note,body .airr-footer .airr-predisc .airr-partner-note em{color:#3b4049}
