/* Compact Social Nest pages share the same text and control colors on light surfaces. */
@media (max-width: 900px) {
  .nest-landing, .public-prices, .public-ads, .public-import, .public-mailings, .public-channels {
    --compact-ink: #183d2b;
    --compact-muted: #445f4d;
    --compact-action: #24553a;
  }

  .nest-landing .nav-wrap {
    position: relative;
    min-height: 64px;
    gap: 8px;
  }
  .nest-landing .brand { margin-right: auto; min-width: 0; }
  .nest-landing .brand .landing-brand-logo { width: min(32vw, 132px); height: auto; }
  .nest-landing .nav-actions { margin-left: 0; }
  .nest-landing .nav-actions .mobile-plans-link { display: none; }
  .nest-landing .nav-actions a[href*="mode=login"] { display: inline-flex; }
  .nest-landing .nav-actions a, .nest-landing .landing-menu-button {
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    font: 700 .9375rem/1.25 system-ui, sans-serif;
  }
  .nest-landing .landing-menu-button:not([hidden]) {
    display: inline-flex;
    border: 1px solid #708473;
    border-radius: 10px;
    background: #f7f7ef;
    color: var(--compact-ink);
    cursor: pointer;
  }
  .nest-landing .nav-wrap[data-nav-ready] .nav-actions a[href*="mode=register"] { display: none; }
  .nest-landing .top-nav[data-open] {
    display: grid;
    position: absolute;
    inset: 100% 0 auto auto;
    z-index: 10;
    width: min(100%, 22rem);
    max-height: 65vh;
    max-height: 65dvh;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px;
    gap: 0;
    background: #fffef9;
    color: var(--compact-ink);
    border: 1px solid #819780;
    border-radius: 14px;
    box-shadow: 0 10px 26px #183d2b26;
  }
  .nest-landing .top-nav[data-open] a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    white-space: normal;
    font-size: 1rem;
    line-height: 1.4;
  }
  .nest-landing .top-nav[data-open] a:focus-visible,
  .nest-landing .landing-menu-button:focus-visible { outline: 2px solid var(--compact-action); outline-offset: -2px; }
  .nest-landing .reveal { opacity: 1; transform: none; }
  .nest-landing .hero .kicker, .nest-landing .section-head .kicker { font-size: .75rem; line-height: 1.45; letter-spacing: .08em; }
  .nest-landing .hero .lead, .nest-landing .section-head .subtext { font-size: 1rem; line-height: 1.55; }
  .nest-landing .hero-actions { flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .nest-landing .hero-actions :is(.button,.text-link) { min-height: 44px; font-size: .9375rem; line-height: 1.4; }
  .nest-landing .hero-proof p { font-size: .8125rem; }
  .nest-landing .tour-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nest-landing .tour-stepper button { padding: 8px; min-height: 48px; }
  .nest-landing .tour-stepper button span, .nest-landing .tour-disclosure, .nest-landing .tour-playback > span,
  .nest-landing .tour-watch small, .nest-landing [data-tour-watch] small, .nest-landing .bento-number { font-size: .75rem; line-height: 1.45; }
  .nest-landing .tour-stepper button b, .nest-landing .sn-plan-note, .nest-landing .sn-draft-card label,
  .nest-landing .tour-tab small { font-size: .875rem; line-height: 1.45; }
  .nest-landing .tour-stepper button[aria-pressed=false], .nest-landing .tour-disclosure, .nest-landing .tour-playback > span,
  .nest-landing [data-tour-watch] small, .nest-landing .bento-mini-calendar > div span,
  .nest-landing .nest-bento-calendar :is(p,.bento-number), .nest-landing .nest-bento-cycle .bento-number,
  .nest-landing #capabilities .subtext, .nest-landing .story-number, .nest-landing .sn-plan-note,
  .nest-landing .sn-plan-note a { color: var(--compact-muted); }
  .nest-landing .sn-plan-grid > .sn-plan .kicker { color: var(--compact-muted); }
  .nest-landing .sn-draft-card :is(textarea,select) { font-size: 1rem; }
  .nest-landing .sn-draft-card small { font-size: .8125rem; }

  .public-prices header :is(small,p), .public-prices #plans .price small { color: var(--compact-muted); }
  .public-prices header small, .public-prices #plans .price small { font-size: .8125rem; }
  .public-ads { --insight-muted: var(--compact-muted); }
  .public-ads .sn-ex-hero p, .public-ads .public-ad-cta p, .public-ads .sn-ex-empty p, .public-ads small {
    color: var(--compact-muted); line-height: 1.55;
  }
  .public-ads .sn-ex-hero span b { color: var(--compact-action); }
  .public-import .muted, .public-channels .small { color: var(--compact-muted); }
  .public-import button { background: var(--compact-action); color: white; min-height: 44px; }
  .public-import :is(select,textarea,input), .public-channels :is(select,textarea,input) { font-size: 1rem; }
  .public-mailings :is(.brand > span,.eyebrow,.muted,footer) { color: #445565; }
}
.landing-menu-button, .nest-landing .top-nav .compact-nav-link { display: none; }
@media (max-width: 900px) {
  .nest-landing .top-nav[data-open] .compact-nav-link { display: flex; }
  .nest-landing .nav-wrap .nav-actions .button.small,
  .nest-landing .hero .hero-actions .button.primary {
    min-height: 44px;
    font-size: .9375rem;
    line-height: 1.3;
  }
  .nest-landing .tour-video-invite [data-tour-watch] small { opacity: 1; font-size: .8125rem; }
  .nest-landing .sn-plan-grid > .sn-plan[data-public-plan="pro"] .kicker { color: #c4efb5; }
  .nest-landing .sn-plan-grid > .sn-plan .kicker,
  .nest-landing main :is(.stage-caption,.kicker,.tour-label,.tour-demo-label,.tour-window-bar span,.scene-heading small,.scene-tag,
  .tour-scene-caption,.scene-hint,.tour-video-invite > span,.project-news-eyebrow,.project-news-tag,.work-index,
  .work-image > span,.work-meta > span,.work-foot > span,.usecase-photo-tag,.usecase-post small,.usecase-post > span,.story-number) {
    font-size: .75rem;
    line-height: 1.45;
  }
  .nest-landing main :is(.tour-tab,.tour-benefits li,.scene-options button,.tour-video-invite button,.tour-playback button,
  .nest-bento-card a,.sn-plan-promise,.sn-plan-price small,.sn-free-plan,.usecase-tab span) {
    font-size: .875rem;
    line-height: 1.45;
  }
  .nest-landing .tour-stepper button, .nest-landing .tour-tab,
  .nest-landing .scene-options button, .nest-landing .tour-playback button { min-height: 44px; }
  .public-ads :is(.sn-ex-tabs button,.sn-text-button,.btn.btn-primary) { font-size: .875rem; min-height: 44px; }
  .public-ads .sn-field label, .public-ads .public-ad-caption small { font-size: .8125rem; }
  .public-ads .sn-field :is(input,select) { font-size: 1rem; }
  .public-prices main, .public-ads main, .public-import .wrap, .sn-launch-page main {
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .public-prices :is(article,section,nav a), .public-ads :is(.sn-ex-cards > *,section,.btn),
  .public-import :is(.card,form,input,select,textarea), .sn-launch-page .sn-launch-grid > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .public-prices .plan-action, .public-ads .btn.btn-primary, .sn-launch-page .sn-launch-button {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 600px) {
  .public-prices #plans {
    display: grid !important; /* billing.css also ships the horizontal workspace carousel. */
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    scroll-snap-type: none;
  }
  .public-prices #plans article, .public-prices .pricing-conditions, .sn-launch-page .sn-launch-grid {
    min-width: 0;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }
  .public-ads .public-ad-wrap .sn-ex-cards { grid-template-columns: minmax(0,1fr); }
  .nest-landing .hero .hero-copy, .nest-landing .tour-shell { min-width: 0; overflow-wrap: anywhere; }
  .nest-landing .usecase-layout { grid-template-columns: minmax(0,1fr); }
  .nest-landing .usecase-layout > * { min-width: 0; overflow-wrap: anywhere; }
  .public-ads .public-ad-footer, .public-ads .public-ad-nav { overflow-wrap: anywhere; }
  .public-ads .public-ad-filters, .public-ads .public-ad-filters details > div { grid-template-columns: minmax(0,1fr); }
  .public-ads .public-ad-filters > *, .public-ads .sn-field { grid-column: auto; min-width: 0; }
  .public-ads .sn-field .input { max-width: 100%; }
}
@media (min-width: 901px) {
  .nest-landing .nav-wrap, .nest-landing .top-nav { flex-wrap: wrap; }
  .nest-landing .top-nav { min-width: 0; }
}
@media (max-width: 900px) {
  .legal-document article { overflow-wrap: anywhere; min-width: 0; }
}
