/* Apple Search Ads post — homepage energy, Nov 2026 redesign */
.asa-page {
  max-width: none;
  padding: 0 0 80px;
  overflow-x: clip;
}
.asa-page .wrap { max-width: 1180px; }
.asa-page .asa-prose { max-width: 720px; }
.asa-page .crumbs { margin: 0 0 8px; }

/* ----- Hero ----- */
.asa-hero {
  position: relative;
  padding: 36px 0 28px;
}
.asa-hero .asa-pitch {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto 36px;
}
.asa-page.asa-page .asa-hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6.2vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 18ch;
  text-wrap: balance;
  margin: 0;
}
.asa-hero h1 .hl {
  display: block;
  color: var(--accent);
  text-wrap: balance;
}
.asa-hero .meta { margin: 0; }
.asa-hero .sub {
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 680px;
  text-wrap: pretty;
  margin: 0;
}
.asa-hero .sub strong { color: var(--text); font-weight: 500; }
.asa-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  max-width: 820px;
}
.asa-toc a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(248,248,248,.05);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.asa-toc a:hover { color: var(--text); border-color: var(--line-2); }

.asa-hero-fig {
  margin: 0 auto 8px;
  max-width: 560px;
  text-align: center;
}
.asa-hero-fig .mn-glass {
  display: flex;
  justify-content: center;
  padding: 24px 24px 36px;
  overflow: visible;
}
.asa-hero-fig,
.asa-hero-fig .fig-glow {
  overflow: visible;
}
.asa-hero-fig .phone.lg {
  width: min(360px, 100%);
}
.asa-hero-fig .screen {
  background: #f2f2f7;
  color: #1d1d1f;
  aspect-ratio: auto;
  height: auto;
  overflow: hidden;
  border-radius: 36px;
}
.asa-hero-fig .as-status { color: #1d1d1f; }
.asa-hero-fig .slines b {
  color: #1d1d1f;
  font-weight: 700;
}
.asa-hero-fig .slines span { color: #6e6e73; }
.asa-hero-fig .as-screen { overflow: visible; }
.asa-hero-fig .live-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0 auto;
}
.asa-hero-fig .phone {
  margin: 0 auto;
}
.asa-hero-fig figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-2);
  text-wrap: pretty;
}
.asa-hero-fig .fig-glow { max-width: 100%; }

/* Stat row — sourced facts only */
.asa-hero .mn-stats {
  margin-top: 36px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid var(--line);
  overflow: hidden;
}
.asa-hero .mn-stat .v { font-size: clamp(22px, 2.4vw, 32px); }

/* ----- Sections & rhythm ----- */
.asa-band {
  padding: 56px 0;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(99,102,241,.16), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.asa-band.alt {
  background:
    radial-gradient(820px 320px at 80% 100%, rgba(192,38,211,.12), transparent 70%),
    var(--bg);
}
.asa-section { padding: 56px 0 8px; }
.asa-page h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: balance;
}
.asa-page .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.asa-page p, .asa-page li { color: var(--text-2); font-size: 16.5px; line-height: 1.65; text-wrap: pretty; }
.asa-page p + p { margin-top: 12px; }
.asa-page .asa-prose { margin-left: auto; margin-right: auto; }
.asa-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.asa-split.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.asa-split .col { min-width: 0; }
.asa-split:has(.worth-v2),
.asa-split:has(.cost-vis) {
  grid-template-columns: 1fr;
  gap: 28px;
}
.asa-split figure, .asa-band figure { margin: 0; }
.asa-page figure { margin-left: auto; margin-right: auto; }
.asa-page figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  margin-top: 10px;
  text-wrap: pretty;
}
.asa-page .wide-fig { margin: 0; width: 100%; max-width: 100%; }

/* TL;DR */
.asa-tldr.fig-glow {
  max-width: 820px;
  margin: 8px auto 0;
  padding: 28px 32px;
}
.asa-tldr .k { margin-bottom: 12px; }
.asa-tldr ul { margin: 0; padding-left: 18px; }
.asa-tldr li { margin: 8px 0; color: var(--text); }
.asa-tldr li strong { color: var(--text); }
.asa-sources-inline {
  max-width: 820px;
  margin: 22px auto 0;
  font-size: 14.5px;
}
.asa-sources-inline .k { margin-bottom: 8px; }

/* Pull quote */
.asa-quote {
  margin: 28px 0;
  padding: 8px 0 8px 22px;
  border-left: 3px solid var(--accent);
}
.asa-quote p {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.asa-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-3);
}

/* Illustrated comic + doors */
.asa-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.asa-comic, .asa-doors {
  margin: 8px 0 0;
}
.asa-comic {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.asa-comic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.asa-panel {
  margin: 0;
  padding: 0;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #12111a;
  border: 1px solid var(--line);
  line-height: 0;
}
.asa-panel svg,
.asa-doors-art svg {
  display: block;
  width: 100%;
  height: auto;
}
.asa-doors-art {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
}

/* Quiz + calculator */
.asa-tool {
  border-radius: 32px;
  padding: 32px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, transparent), var(--card-2)) padding-box,
    var(--stroke) border-box;
  border: 1px solid transparent;
}
.asa-tool h3 {
  font-family: var(--display);
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--text);
}
.asa-tool .lead { margin: 0 0 22px; font-size: 15.5px; }
.asa-q { margin: 0 0 20px; }
.asa-q p { color: var(--text); font-weight: 600; font-size: 16px; margin: 0 0 10px; }
.asa-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.asa-opts button {
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  background: rgba(248,248,248,.05);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.asa-opts button:hover { border-color: var(--accent); }
.asa-opts button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.asa-result {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(185,182,255,.45);
  background: rgba(99,102,241,.16);
}
.asa-result[hidden] { display: none; }
.asa-result strong { display: block; font-family: var(--display); font-size: 20px; margin-bottom: 6px; color: var(--text); }
.asa-result p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.asa-tool .reset {
  margin-top: 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.asa-tool .reset:hover { color: var(--text); }

.asa-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.asa-fields { display: grid; gap: 14px; }
.asa-fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.asa-fields input, .asa-fields select {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  background: rgba(248,248,248,.05);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
}
.asa-fields input:focus, .asa-fields select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.asa-fields .hint { font-weight: 400; color: var(--text-3); font-size: 12.5px; }
.asa-out {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(248,248,248,.04);
  padding: 18px 20px;
}
.asa-out .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-2);
}
.asa-out .row:last-of-type { border-bottom: 0; }
.asa-out .row b { color: var(--text); font-family: var(--display); font-size: 20px; font-weight: 700; }
.asa-out .disclaimer {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--text-3);
}

/* Facts chips under Basic/Advanced */
.asa-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.asa-facts li {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(248,248,248,.06);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-2);
  margin: 0;
}

/* FAQ + close */
.asa-faq { padding: 64px 0 0; }
.asa-final { margin-top: 28px; }
.asa-page .mn-steps { margin: 18px 0 28px; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .asa-hero .asa-pitch > * { animation: mn-rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .asa-hero .asa-pitch > :nth-child(2) { animation-delay: .08s; }
  .asa-hero .asa-pitch > :nth-child(3) { animation-delay: .16s; }
  .asa-hero .asa-pitch > :nth-child(4) { animation-delay: .24s; }
  .asa-hero .asa-pitch > :nth-child(5) { animation-delay: .3s; }
  .asa-hero-fig .fig-glow { animation: mn-tilt 1.2s cubic-bezier(.2,.7,.2,1) .28s both; }
}
@media (prefers-reduced-motion: reduce) {
  .asa-hero .asa-pitch > *,
  .asa-hero-fig .fig-glow { animation: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1200px) {
  .asa-split, .asa-split.flip, .asa-calc-grid, .asa-comic-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .asa-hero .mn-stats { grid-template-columns: 1fr 1fr; border-radius: 24px; }
  .asa-hero .mn-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .asa-hero .mn-stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .asa-page .mn-steps { grid-template-columns: 1fr 1fr; }
  .asa-tool { padding: 22px 18px; }
}
@media (max-width: 640px) {
  .asa-comic-grid { grid-template-columns: 1fr; }
  .asa-page.asa-page .asa-hero h1 { font-size: clamp(32px, 10vw, 44px); max-width: none; }
  .asa-hero { padding: 24px 0 16px; }
  .asa-hero .sub { font-size: 17px; }
  .asa-section, .asa-band { padding: 40px 0; }
  .asa-page .mn-steps { grid-template-columns: 1fr; }
  .asa-hero .mn-stats { grid-template-columns: 1fr; }
  .asa-hero .mn-stat,
  .asa-hero .mn-stat:nth-child(odd) { border-right: 0; }
  .asa-tldr.fig-glow { padding: 20px 18px; }
  .asa-opts button { width: 100%; text-align: center; }
}

.asa-stack-gap { height: 20px; }
.asa-end { margin-top: 56px; }
.asa-end h2 { margin-top: 36px; }
.asa-end .sources, .asa-end .related { margin-top: 12px; }

.asa-page .phone,
.asa-hero-fig .phone { margin-left: auto; margin-right: auto; }
.asa-hero-fig,
.asa-split .place-stage,
.asa-split .col { overflow: visible; }


/* Keyword field + wrapping opportunity chips (replaces a cropped screenshot) */
.kw-editor{
  padding: 20px 20px 18px;
  text-align: left;
}
.kw-ed-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.kw-ed-head b{
  font-size: 16px;
  font-weight: 700;
  color: #f8f8f8;
}
.kw-ed-count{
  font-family: var(--body, Rubik, Helvetica Neue, Arial, sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--lilac, #b9b6ff);
  white-space: nowrap;
}
.kw-ed-field{
  background: #12111a;
  border: 1px solid var(--line, rgba(248,248,248,.12));
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: #f8f8f8;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.kw-ed-help{
  margin: 10px 0 0;
  font-family: var(--body, Rubik, Helvetica Neue, Arial, sans-serif);
  font-size: 13px;
  color: var(--muted, #b9b8c1);
}
.kw-ed-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 10px;
}
.kw-ed-opp{
  font-family: var(--body, Rubik, Helvetica Neue, Arial, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #b9b8c1);
}
.kw-ed-actions{
  font-size: 13px;
  font-weight: 700;
  color: #7b9cff;
  white-space: nowrap;
}
.kw-ed-actions b{ color: #7b9cff; }
.kw-ed-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.kw-ed-chips li{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #1a1924;
  border: 1px solid rgba(248,248,248,.14);
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #f8f8f8;
  line-height: 1.2;
}
.kw-ed-chips li::before{
  content: "✓";
  color: #34c759;
  font-weight: 800;
  margin-right: 2px;
}
.kw-ed-chips em{
  font-style: normal;
  font-weight: 800;
  color: #ff6b6b;
  margin: 0 2px;
}

/* Keyword list: wrapping note under the rows (full sentence, never mid-word clip) */
.shot-ann.kw-rows{ padding-bottom: 24px; }
.kw-rows-note{
  margin: 0 4px;
  /* padding, not margin: .live-card p { margin:0 } is (0,1,1) and
     was zeroing .kw-rows-note { margin: 12px } (0,1,0). Padding does not collapse. */
  padding-top: 16px;
  font-family: var(--body, Rubik, Helvetica Neue, Arial, sans-serif);
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted, #b9b8c1);
  overflow-wrap: break-word;
  word-break: normal;
  text-align: left;
}
/* Beat .live-card p { margin:0 } and keep the gap even if margins are reset */
.doc figure.sb-ui .shot-ann.kw-rows .kw-rows-note,
.shot-ann.kw-rows .kw-rows-note {
  margin-top: 0;
  padding-top: 16px;
}
.shot-ann.kw-rows img{
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center top;
}
/* Stack the annotation above the crop at every width so the rows stay whole */
.shot-ann.kw-rows{
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.shot-ann.kw-rows .callout{
  position: static;
  max-width: none;
  width: fit-content;
  margin: 0 0 12px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 600px){
  .kw-editor{ padding: 16px 14px 14px; }
  .kw-ed-field{ font-size: 15px; padding: 12px 12px; }
  .kw-ed-chips li{ font-size: 13px; }
}


/* Publisher mobile QA (29 Nov 2026): tap targets at least 44px, sticky-header offset */
h2, h3 { scroll-margin-top: 108px; }
details summary { min-height: 44px; align-items: center; }
.related a { min-height: 44px; display: flex; align-items: center; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; }
main button, main select, .asa-opts button, .asa-fields input, .asa-fields select {
  min-height: 44px;
}

.asa-toc a { display: inline-flex; align-items: center; min-height: 44px; }
