/* The public Marketing-Ad palette. Website photographs and brand assets use their original colors. */
:root[data-mad-theme] {
  color-scheme:light;
  --ma-page:#f7f4ee; --ma-card:#fffdf9; --ma-text:#14243b; --ma-copy:#405168;
  --ma-line:#d7d0c5; --ma-accent:#875231; --ma-action:#1b53a4; --ma-on-action:white;
  --ma-soft:#eae4da; --ma-selected:#1b314b; --ma-on-selected:white; --ma-focus:#245ca5;
  --ma-error:#9d3035; --ma-success:#286444;
}
:root[data-mad-theme=dark] {
  color-scheme:dark;
  --ma-page:#101b2c; --ma-card:#1c2b40; --ma-text:#f7f2e8; --ma-copy:#c6cfdb;
  --ma-line:#3d5065; --ma-accent:#e7b88d; --ma-action:#a6c8ff; --ma-on-action:#10213a;
  --ma-soft:#24354b; --ma-selected:#f3e6d6; --ma-on-selected:#172539; --ma-focus:#f4bf79;
  --ma-error:#ffb4ae; --ma-success:#a4dbbc;
}
:root[data-mad-theme] body {
  --ink:var(--ma-text); --muted:var(--ma-copy); --blue:var(--ma-action); --line:var(--ma-line);
  --soft:var(--ma-soft); background:var(--ma-page)!important; color:var(--ma-text)!important;
}
:root[data-mad-theme] :is(h1,h2) {
  font-family:"Iowan Old Style",Georgia,serif!important; font-weight:500!important;
  letter-spacing:-.045em!important; text-shadow:none!important; color:var(--ma-text)!important;
}
:root[data-mad-theme] :is(h1 .accent,.ap-choice-price,.price-big,.money,.ap-corp-v2-price) {
  color:var(--ma-accent)!important; background-image:none!important; -webkit-text-fill-color:currentColor!important;
}
:root[data-mad-theme] :is(.top,.topbar,header.site-nav,.mad-guide-header,.ap-global-brandbar,footer,.al-footer,.ap-upgrade-footer) {
  background:var(--ma-card)!important; color:var(--ma-text)!important; border-color:var(--ma-line)!important;
}
:root[data-mad-theme] :is(.hero,.ribbon,.launch-panel,.local-photo-section,.story,.ap-owner-door,.ap-bottom-owner,.al-hero,.al-main,.premium-hero,.benefit-section,.how,#mad-difference,#mad-blue-value,#mad-tools) {
  background:var(--ma-page)!important; color:var(--ma-text)!important;
}
:root[data-mad-theme] :is(.hero-grid,.hero-art-shell,.visual-glow) { opacity:.12!important }
:root[data-mad-theme] :is(.card,.panel,.promise,.login,.section:not(#mad-tools),.step,.sectionintro,.launch-card,.pulse-card,.fake-input,.launch-wordmark,.orbit-chip,.walk-item,.note,.filters,.empty,.ideas,.story-item,.search,.benefit,.how-card,.form-card,.flow-card,.summary,.billing-callout,.contact-note,.upload-box,.custom-block,.al-card,.al-mini,.notice,.ap-corp-v2,.ap-corp-v2-card,.ap-choice-card,.ap-owner-shell,.ap-owner-form,.ap-network-g-card,.mad-platform-feature,.md-shell,.mv-shell,.md-feature,.mv-card,.md-bottom,.mv-bottom,.local-photo-copy,.result,.listing) {
  color:var(--ma-text)!important; background:var(--ma-card)!important; border-color:var(--ma-line)!important;
  box-shadow:0 5px 20px rgba(12,24,40,.07)!important;
}
:root[data-mad-theme] :is(.al-callout,.al-jumpbar,.al-meta span,.md-number,.mv-number,.ap-choice-label,.ap-corp-v2-badge,.chip,.top-chip,.status-pill,.num,.ap-owner-checks label,.status-strip,.assurance,.hero-pills span,.hero .quick a,.ideas a,.fake-input,.mad-feature-index,.filter-title,.switch-plan,.kicker,.eyebrow,.md-kicker,.mv-kicker,.ap-corp-v2-kicker,.al-kicker,.ap-network-g-tag,.badge,.tag) {
  background:var(--ma-soft)!important; color:var(--ma-text)!important; border-color:var(--ma-line)!important;
}
:root[data-mad-theme] :is(p,li,label,legend,.muted,.lead,.fine,.small,.footer-note,.help,.helper-copy,.body-copy,.md-note,.mv-disclosure,.ap-choice-mini,.ap-owner-small,.ap-owner-copy,.ap-choice-paid-note,.ap-corp-v2-sub,.ap-corp-v2-foot,.stats span,.search span[style],.intro,.subtitle,.ap-network-g-copy small,footer small) {color:var(--ma-copy)!important}
:root[data-mad-theme] :is(h3,h4,.ap-network-g-copy strong,.ap-corp-v2-title,.ap-corp-v2-tier,.ap-choice-benefits strong,.ap-choice-topline strong,.pulse-title,.stats strong,.brand strong,.ap-global-brand-copy strong) {color:var(--ma-text)!important}
:root[data-mad-theme] :is(.eyebrow,.kicker,.md-kicker,.mv-kicker,.ap-owner-eyebrow,.ap-corp-v2-kicker,.al-kicker,.md-number,.mv-number,.ap-network-g-tag,.pulse-kicker,.local-photo-kicker,.step-label,.ap-choice-price strong,.price-big strong) {color:var(--ma-accent)!important}
:root[data-mad-theme] :is(main a,section a,footer a,.ribbon a) {color:var(--ma-action)!important}
:root[data-mad-theme] :is(.btn,.md-button,.mv-button,.ap-owner-btn,.ap-choice-actions a,.ap-owner-phone a,.al-actions a,.actions>a,.apply,.switch-plan,.contact-link,.al-jumpbar a,.chip,.quick a,.ideas a) {
  background:var(--ma-card)!important;color:var(--ma-action)!important;border:1px solid var(--ma-line)!important;text-shadow:none!important;
}
:root[data-mad-theme] :is(button[type=submit],input[type=submit],.search button,.btn:not(.alt,.dark,.soft,.secondary),.primary,.md-primary,.mv-primary,.ap-owner-phone .call,.ap-setup,.ap-free-primary,.al-primary,.phone,.plan-link,.chip.active,.form-actions button,.actions .btn.primary) {
  color:var(--ma-on-action)!important; background:var(--ma-action)!important; border-color:var(--ma-action)!important; text-shadow:none!important;
}
:root[data-mad-theme] :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=submit],[type=button]),select,textarea,option) {
  background:var(--ma-card)!important;color:var(--ma-text)!important;border-color:var(--ma-copy)!important;
}
:root[data-mad-theme] ::placeholder {color:var(--ma-copy)!important;opacity:1}
:root[data-mad-theme] :is(input,button){accent-color:var(--ma-action)}
:root[data-mad-theme] :is(.al-danger,.al-warning,.error,[role=alert]) {color:var(--ma-error)!important;border-color:var(--ma-error)!important}
:root[data-mad-theme] .success {color:var(--ma-success)!important}
:root[data-mad-theme] :focus-visible {outline:3px solid var(--ma-focus)!important; outline-offset:3px}
:root[data-mad-theme] .hero-photo-caption :is(b,span), :root[data-mad-theme] .local-photo-badge {color:white!important;text-shadow:0 1px 5px #000}
:root[data-mad-theme] [data-mad-header] {
  display:flex!important; flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
  flex-wrap:nowrap!important;gap:clamp(7px,1vw,16px)!important;position:relative;overflow:visible!important;
  min-width:0;box-sizing:border-box; padding-block:10px!important;
}
:root[data-mad-theme] [data-mad-brand] {flex:0 0 auto!important;min-width:0!important;margin:0!important;color:var(--ma-text)!important}
:root[data-mad-theme] [data-mad-brand] :is(strong,span) {color:var(--ma-text)!important}
:root[data-mad-theme] [data-mad-brand] small {color:var(--ma-copy)!important}
:root[data-mad-theme] [data-mad-brand] img:not([alt="Marketing-Ad.com"]) {width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;object-fit:contain!important;flex:0 0 42px!important}
:root[data-mad-theme] .mad-appearance {
  display:inline-flex!important;gap:2px;align-items:center;flex:0 0 auto;padding:3px;border-radius:99px;
  border:1px solid var(--ma-line);background:var(--ma-soft);line-height:1;font-family:Inter,"Segoe UI",Arial,sans-serif;
}
:root[data-mad-theme] .mad-appearance button,:root[data-mad-theme] .mad-menu {
  appearance:none; width:auto!important;min-width:0!important;min-height:34px;cursor:pointer;
  margin:0!important;padding:5px 9px!important;border:0!important;border-radius:99px!important;
  background:transparent!important;color:var(--ma-copy)!important;font:700 12px/1.2 Inter,"Segoe UI",Arial,sans-serif!important;
  box-shadow:none!important;letter-spacing:normal!important;text-transform:none!important;
}
:root[data-mad-theme] .mad-appearance [aria-pressed=true] { background:var(--ma-selected)!important;color:var(--ma-on-selected)!important }
:root[data-mad-theme] [data-mad-links] {
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;
  flex:0 0 auto!important;flex-wrap:nowrap!important;white-space:nowrap;margin:0 0 0 auto!important;width:max-content!important;max-width:none!important;
}
:root[data-mad-theme] [data-mad-links] a {display:inline-flex!important;align-items:center;color:var(--ma-text)!important;background:transparent!important;
  width:auto!important;margin:0!important;text-decoration:none;padding:7px!important;border-radius:7px;font-weight:650;line-height:1.25}
:root[data-mad-theme] [data-mad-links] a:is(.primary,.plan-link,.ap-backoffice,.phone,.active) {background:var(--ma-action)!important;color:var(--ma-on-action)!important}
:root[data-mad-theme] [data-mad-links] a:hover {text-decoration:underline;text-underline-offset:3px}
:root[data-mad-theme] [data-mad-header] .mad-menu,:root[data-mad-theme] [data-mad-merged][hidden] {display:none!important}
:root[data-mad-theme] [data-compact] .mad-appearance {margin-left:auto}
:root[data-mad-theme] [data-compact] .mad-menu {display:block!important;border:1px solid var(--ma-line)!important;color:var(--ma-text)!important}
:root[data-mad-theme] [data-compact]:not([data-measure]) [data-mad-links] {display:none!important}
:root[data-mad-theme] [data-compact][data-open]:not([data-measure]) [data-mad-links] {
  display:flex!important;align-items:stretch!important;flex-direction:column!important;position:absolute!important;top:100%;right:0;z-index:200;
  max-height:65vh!important;overflow:auto;max-width:calc(100vw - 20px)!important;min-width:160px;padding:8px!important;
  background:var(--ma-card)!important;box-shadow:0 10px 24px rgba(12,24,40,.18);
  color:var(--ma-text);border:1px solid var(--ma-line);border-radius:9px;
}
:root[data-mad-theme] [data-measure] [data-mad-links] {display:flex!important;position:absolute!important;visibility:hidden!important;pointer-events:none;flex-direction:row!important;max-height:none!important}
:root[data-mad-theme] :is(header.top,header.site-nav,.mad-guide-header,.topbar,.ap-global-brandbar) {z-index:100;overflow:visible!important}
@media(max-width:720px) {
  :root[data-mad-theme] [data-mad-header] {gap:5px!important;padding-inline:10px!important}
  :root[data-mad-theme] [data-mad-brand] small,:root[data-mad-theme] header.site-nav [data-mad-brand] > span {display:none!important}
  :root[data-mad-theme] [data-mad-brand],:root[data-mad-theme] [data-mad-brand] strong {font-size:clamp(14px,3.9vw,20px)!important;letter-spacing:-.045em}
  :root[data-mad-theme] [data-mad-brand] img:not([alt="Marketing-Ad.com"]) {min-width:28px!important;max-width:28px!important;width:28px!important;height:28px!important;flex-basis:28px!important}
  :root[data-mad-theme] .brand-wrap img {max-width:min(34vw,150px)!important;height:auto!important}
  :root[data-mad-theme] [data-mad-brand] {gap:4px!important}
}
@media (max-width:355px) {
  :root[data-mad-theme] .mad-appearance button,:root[data-mad-theme] .mad-menu {padding-inline:6px!important}
}
/* Finish the original plans, forms, photo captions and guide link panels. */
:root[data-mad-theme] :is(.launch-card span,.hero-local-ribbon span,.launch-wordmark span,.ap-network-g-copy span,.ap-corp-v2-price span,.ap-choice-price span,.first-payment,.status-pill span,.field .label-text,.field-full .label-text,.upload-box small,.flow-card span,.mini span,.confirm span,.confirm strong,.trust strong) {color:var(--ma-copy)!important}
:root[data-mad-theme] :is(.hero-local-ribbon strong,.status-pill strong,.al-footer-inner strong,.ap-upgrade-footer-inner strong,.mini b,.why-now strong) {color:var(--ma-text)!important}
:root[data-mad-theme] :is(.form-head,.hero-copy,.ap-owner-services,.ap-choice-actions,.mini,.wiifm,.trust,.why-now,.confirm,.step-label,.links a,.step span,.story-item i,.benefit .icon) {background:var(--ma-soft)!important;color:var(--ma-text)!important;border-color:var(--ma-line)!important}
:root[data-mad-theme] :is(.form-head p,.form-head h2,.step span,.confirm span,.hero-copy h1,.benefit .icon,.step-label) {color:var(--ma-text)!important}
:root[data-mad-theme] #mad-difference .md-bottom-copy,:root[data-mad-theme] #mad-difference .md-bottom-copy strong,:root[data-mad-theme] #mad-blue-value .mv-message strong {color:var(--ma-text)!important}
:root[data-mad-theme] .hero-photo-caption {background:#17263a;border-radius:6px;padding:5px 9px}
:root[data-mad-theme] .local-photo-badge {background:#17263a!important}
:root[data-mad-theme] .ap-network-g-copy span,:root[data-mad-theme] .hero .search span {color:var(--ma-copy)!important}
:root[data-mad-theme] .form-actions button {color:var(--ma-on-action)!important}
:root[data-mad-theme] .topin [data-mad-brand] small {font-size:8px!important;letter-spacing:.06em!important}
:root[data-mad-theme] [data-mad-header] [data-mad-links] a {font-size:13px!important;letter-spacing:normal!important}
:root[data-mad-theme] .hero h1 .accent {background:none!important;color:var(--ma-accent)!important;-webkit-text-fill-color:var(--ma-accent)!important}
:root[data-mad-theme] .launch-wordmark .launch-stamp {background:var(--ma-soft)!important;color:var(--ma-text)!important}
:root[data-mad-theme] .topin .brand-name small {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
:root[data-mad-theme] [data-mad-header] [data-mad-links] {gap:5px!important}
:root[data-mad-theme] [data-mad-header] [data-mad-links] a {padding:7px 4px!important;font-size:12.5px!important}
:root[data-mad-theme] .launch-mode .hero h1 {font-size:clamp(40px,4.8vw,70px)!important;line-height:1.03!important}
:root[data-mad-theme] .mad-campaign-panel {
  min-width:0;align-self:center;overflow:hidden;border:1px solid var(--ma-line);border-radius:18px;
  background:var(--ma-card);color:var(--ma-text);box-shadow:0 8px 30px rgba(10,22,38,.08)
}
:root[data-mad-theme] .mad-campaign-panel > img {display:block;width:100%;height:auto;aspect-ratio:820 / 461;object-fit:cover}
:root[data-mad-theme] .mad-campaign-panel summary {cursor:pointer;padding:12px 16px;border-top:2px solid var(--ma-accent);color:var(--ma-copy);font-size:14px}
:root[data-mad-theme] .mad-campaign-panel .visual-stage {width:100%;margin:0;overflow:hidden}
/* Reading sizes for public prices, form instructions, and consent copy. */
:root[data-mad-theme] :is(.ap-choice-price span,.ap-choice-mini,.ap-owner-small,.ap-choice-paid-note,.ap-corp-v2-foot,.ap-corp-v2-sub,
.ap-network-g-copy span,.ap-network-g-note,.ap-owner-checks label,.ap-owner-field label,.ap-owner-consent label,
.md-note,.mv-disclosure,.fine,.helper-copy,.footer-note,.al-meta,.first-payment,.field .label-text,.upload-box small) {
  font-size:max(.875rem,14px)!important;line-height:1.5!important;opacity:1!important;
}
:root[data-mad-theme] .ap-owner-form :is(label,small) {font-size:max(.875rem,14px)!important;line-height:1.5!important}
:root[data-mad-theme] :is(.ap-owner-consent,.ap-owner-consent a,.ap-owner-consent span) {font-size:max(.875rem,14px)!important;line-height:1.5!important}
:root[data-mad-theme] .ap-owner-form :is(input:not([type=checkbox]),select,textarea) {font-size:max(1rem,16px)!important}
:root[data-mad-theme] .ap-owner-small a {text-decoration:underline;text-underline-offset:.13em}
:root[data-mad-theme] :is(#marketing-review,#mad-plans,#mad-specials) {scroll-margin-top:6rem!important}
:root[data-mad-theme] .mad-campaign-panel .visual-stage {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-content:start;
  width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;padding:12px;
  overflow:visible;perspective:none;transform:none!important;box-sizing:border-box;
}
:root[data-mad-theme] .mad-campaign-panel :is(.pulse-card,.launch-wordmark,.orbit-chip,.hero-photo-stack,.hero-photo-card,.hero-photo-caption) {
  position:static!important;inset:auto!important;transform:none!important;animation:none!important;
  width:auto!important;max-width:100%!important;height:auto!important;opacity:1!important;box-sizing:border-box;
}
:root[data-mad-theme] .mad-campaign-panel .hero-photo-stack {display:grid!important;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;pointer-events:auto}
:root[data-mad-theme] .mad-campaign-panel .hero-photo-card {display:flex!important;flex-direction:column;border-radius:9px;overflow:hidden}
:root[data-mad-theme] .mad-campaign-panel .hero-photo-card img {position:static!important;display:block;width:100%;height:auto!important;aspect-ratio:16 / 9;object-fit:cover;transform:none}
:root[data-mad-theme] .mad-campaign-panel .hero-photo-caption {display:block;padding:8px 10px;flex:1;border-radius:0}
:root[data-mad-theme] .mad-campaign-panel .hero-photo-caption :is(b,span) {opacity:1;font-size:13px!important;line-height:1.4}
:root[data-mad-theme] .mad-campaign-panel :is(.visual-glow,.amarillo-scene,.hero-photo-pin) {display:none!important}
:root[data-mad-theme] .mad-campaign-panel .hero-photo-card::after {display:none!important}
:root[data-mad-theme] .mad-campaign-panel :is(.pulse-card,.launch-wordmark) {display:block!important;grid-column:1/-1;min-width:0;padding:12px 14px;box-shadow:none!important}
:root[data-mad-theme] .mad-campaign-panel .orbit-chip {display:block!important;line-height:1.4;font-size:13px!important;white-space:normal!important;text-align:center;padding:6px 4px}
:root[data-mad-theme] .mad-campaign-panel :is(.pulse-kicker,.launch-stamp) {font-size:13px!important;line-height:1.4;opacity:1}
:root[data-mad-theme] .mad-campaign-panel :is(.pulse-title,.fake-input,.launch-wordmark span:not(.launch-stamp)) {font-size:15px!important;line-height:1.45;white-space:normal}
@media(max-width:480px) {
 :root[data-mad-theme] .mad-campaign-panel .hero-photo-stack {grid-template-columns:minmax(0,1fr)}
}
:root[data-mad-theme] .ap-choice-benefits span,
:root[data-mad-theme] .ap-owner-services li {
  color:var(--ma-text)!important;background:var(--ma-soft)!important;border-color:var(--ma-line)!important;
  font-size:max(14px,.875rem)!important;line-height:1.45;
}
:root[data-mad-theme] .ap-owner-services li {background:var(--ma-card)!important}
:root[data-mad-theme] .login > div:first-child[style*="linear-gradient"] {
  background:var(--ma-soft)!important;color:var(--ma-text)!important;
}
:root[data-mad-theme] .login > div:first-child[style*="linear-gradient"] p {
  font-size:max(14px,.875rem)!important;line-height:1.55!important;
}
:root[data-mad-theme] form :is(label,legend,small) {font-size:max(.875rem,14px)!important;line-height:1.5}
:root[data-mad-theme] form :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=submit],[type=button]),select,textarea) {
  font-size:max(1rem,16px)!important;
}

/* Compact homepage introduction */
.hero.mad-compact-home {min-height:0}
.hero.mad-compact-home .heroin {
  box-sizing:border-box;max-width:var(--max,1220px);padding:clamp(18px,2.2vw,32px) 20px 16px;
  grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);gap:14px clamp(20px,3.1vw,46px);
  align-items:center;
}
.mad-compact-home .mad-header-copy {min-width:0}
.mad-compact-home .mad-header-copy .eyebrow {font-size:12px;line-height:1.3;padding:5px 9px}
:root[data-mad-theme] .hero.mad-compact-home .mad-header-copy h1 {
  font-size:clamp(36px,3.1vw,49px)!important;line-height:1.03!important;
  margin:8px 0 9px;max-width:none;
}
.mad-compact-home .mad-header-copy .lead {font-size:clamp(16px,1.2vw,18px);line-height:1.46;margin:0;max-width:62ch}
.mad-compact-home .hero-actions {gap:8px;margin-top:12px}
.mad-compact-home .hero-actions a {min-height:38px;padding:8px 13px;line-height:1.25;align-content:center}
:root[data-mad-theme] .mad-compact-home .mad-header-image {
  width:100%;align-self:center;border:0;border-radius:12px;line-height:0;
}
:root[data-mad-theme] .mad-compact-home .mad-header-image img {width:100%;height:auto;aspect-ratio:auto;display:block}
.mad-compact-home :is(.mad-header-links,.mad-header-facts,.mad-header-preview) {grid-column:1/-1;min-width:0}
.mad-compact-home .mad-header-links {
  display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;
  border-block:1px solid var(--ma-line);padding:9px 0;
}
:root[data-mad-theme] .mad-compact-home .mad-header-links .search {
  display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;gap:8px;margin:0;padding:0;
  background:transparent!important;box-shadow:none!important;border:0;max-width:none;
}
.mad-compact-home .mad-header-links .search::before {display:none}
.mad-compact-home .mad-header-links .search span {
  flex:0 1 auto!important;min-width:0!important;padding:0!important;
  font-size:14px;line-height:1.4;
}
.mad-compact-home .mad-header-links .search .btn {padding:7px 12px;min-height:36px;line-height:1.3}
.mad-compact-home .mad-header-links .quick {gap:6px;margin:0}
.mad-compact-home .mad-header-links .quick a {padding:6px 9px;line-height:1.3}
.mad-compact-home .mad-header-facts {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,2.4fr);align-items:start;gap:18px}
.mad-compact-home .hero-local-ribbon {display:block;line-height:1.35;margin:0;font-size:13px}
.mad-compact-home .hero-local-ribbon .line {display:none}
.mad-compact-home .hero-local-ribbon strong {display:block;margin-bottom:3px}
.mad-compact-home .stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 14px;margin:0;padding:0}
.mad-compact-home .stats>div {min-width:0;padding-left:10px;border-left:1px solid var(--ma-line)}
.mad-compact-home .stats b {font-size:14px;line-height:1.3}
.mad-compact-home .stats span {font-size:13px;line-height:1.35;margin-top:2px}
:root[data-mad-theme] .mad-compact-home .mad-header-preview {width:100%;border-radius:8px;box-shadow:none}
:root[data-mad-theme] .mad-compact-home .mad-header-preview summary {border:0;padding:8px 12px;font-weight:650}
@media(min-width:900px) {
 :root[data-mad-theme] .mad-compact-home .mad-header-preview .visual-stage {
   grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch;
 }
 :root[data-mad-theme] .mad-compact-home .mad-header-preview .pulse-card {grid-column:auto}
 :root[data-mad-theme] .mad-compact-home .mad-header-preview .hero-photo-stack {grid-template-columns:repeat(2,minmax(0,1fr))}
 :root[data-mad-theme] .mad-compact-home .mad-header-preview .hero-photo-card {
    display:grid!important;grid-template-columns:minmax(100px,34%) 1fr;align-items:stretch;
 }
 :root[data-mad-theme] .mad-compact-home .mad-header-preview .hero-photo-card img {align-self:center}
}
@media(max-width:899px) {
 .hero.mad-compact-home .heroin {grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px 16px}
 .mad-compact-home .mad-header-facts {grid-template-columns:1fr;gap:9px}
 .mad-compact-home .hero-local-ribbon strong {display:inline;margin-right:4px}
}
@media(max-width:700px) {
 .hero.mad-compact-home .heroin {grid-template-columns:minmax(0,1fr);padding:16px clamp(12px,4vw,20px);gap:12px}
 :root[data-mad-theme] .hero.mad-compact-home .mad-header-copy h1 {font-size:clamp(32px,7.1vw,40px)!important}
 .mad-compact-home .stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
 .mad-compact-home .mad-header-links .search {justify-content:flex-start}
 .mad-compact-home .mad-header-links .search span {flex:1 1 155px!important}
}

/* Shared maximum for the public Marketing-Ad layout. Article copy and forms may be narrower. */
:root[data-mad-theme] body {--mad-public-width:1160px;--max:var(--mad-public-width)}
:root[data-mad-theme] :is(
  [data-mad-header], body > main.wrap, body > main.shell, body > main.main, body > .page,
  .hero > .heroin, .hero > .hero-inner, .local-photo-section, .launch-inner, .storyin, .today-inner, .ctain,
  #mad-difference .md-shell, #mad-blue-value .mv-shell, #mad-tools, .ap-owner-shell, .ap-bottom-owner-inner,
  .ap-upgrade-footer-inner, .al-shell, .al-footer-inner, .premium-shell, .benefit-section, main > .how
) {
  max-width:var(--mad-public-width)!important;box-sizing:border-box!important;margin-inline:auto!important;
}
:root[data-mad-theme] :is(header.top, .topbar, .mad-guide-header) {--max:var(--mad-public-width)}
:root[data-mad-theme] body > footer:not(.ap-upgrade-footer,.al-footer) {
  padding-inline:max(20px,calc((100% - var(--mad-public-width)) / 2 + 20px))!important;
}
:root[data-mad-theme] .ribbon {max-width:var(--mad-public-width);margin-inline:auto}
:root[data-mad-theme] .ap-upgrade-footer-inner {flex-wrap:wrap;white-space:normal}
:root[data-mad-theme] .ap-upgrade-footer-links {flex-wrap:wrap}
:root[data-mad-theme] body > a[href="/edit.php"][style*="position:fixed"] {
  right:max(14px,calc((100% - var(--mad-public-width)) / 2 + 14px))!important;
}
@media(min-width:1024px) {
  :root[data-mad-theme] [data-mad-header] {padding-inline:12px!important;column-gap:6px!important}
  :root[data-mad-theme] [data-mad-header] [data-mad-links] {gap:4px!important}
  :root[data-mad-theme] [data-mad-header] [data-mad-links] a {padding-inline:3px!important}
}

