/* Orbit typography foundation — unified across the full site.
   Order: load after existing page/theme CSS.
   Fonts mirror the original Birth Chart: editorial serif headings, clean sans text,
   restrained monospace navigation. This file intentionally changes typography only;
   it leaves colors, layouts, SVG/chart labels, and interaction logic untouched. */

/* Load the same body and navigation fonts even on standalone account/tool pages. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --orbit-type-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --orbit-type-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --orbit-type-nav: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --orbit-type-title: 27px;
  --orbit-type-section: 21px;
  --orbit-type-subhead: 18px;
  --orbit-type-copy: 14px;
  --orbit-type-small: 12px;
  --orbit-type-label: 13px;
  --orbit-type-leading: 1.6;
}

@media (max-width:700px) {
  :root {
    --orbit-type-title: 26px;
    --orbit-type-section: 21px;
    --orbit-type-subhead: 18px;
  }
}

/* Standard content — a single sans-serif on all eight entry pages. */
html body,
html body main,
html body .app,
html body .chart-app,
html body .panel,
html body .card,
html body .hero,
html body .view,
html body .shell,
html body .wrap,
html body .story,
html body .tile,
html body .match,
html body .gallery-section,
html body .like-recipient,
html body .message-panel,
html body .orbit-inbox,
html body .orbit-chat-pane,
html body .connection-dashboard {
  font-family:var(--orbit-type-body)!important;
}

/* All editorial page titles use the Birth Chart serif, not IBM Plex Mono.
   No font shorthand here: separate properties preserve the existing styling. */
html body :is(main,.app,.chart-app,.panel,.wrap,.view,.shell,.hero)
  :is(h1,.heading) {
  font-family:var(--orbit-type-display)!important;
  font-size:var(--orbit-type-title)!important;
  font-weight:400!important;
  line-height:1.2!important;
  letter-spacing:-.012em!important;
  text-wrap:balance;
}
html body :is(main,.app,.chart-app,.panel,.wrap,.view,.shell,.hero)
  :is(h2,.section-heading) {
  font-family:var(--orbit-type-display)!important;
  font-size:var(--orbit-type-section)!important;
  font-weight:400!important;
  line-height:1.25!important;
  letter-spacing:-.01em!important;
}
html body :is(main,.app,.chart-app,.panel,.wrap,.view,.shell,.hero) h3,
html body .app :is(.featured .name,.mini h3,.match h3,.like-card-heading strong) {
  font-family:var(--orbit-type-display)!important;
  font-size:var(--orbit-type-subhead)!important;
  font-weight:500!important;
  line-height:1.3!important;
  letter-spacing:-.01em!important;
}

/* Preserve the Birth Chart's italic first title and decorative logo artwork. */
html body .chart-app main.shell > section.card > h1 {
  font-style:italic!important;
}

/* Paragraphs and captions keep readable, consistent text sizes on both devices.
   Do not override chart SVG text, astrological glyphs, or decorative labels. */
html body :is(main,.app,.chart-app,.panel,.wrap,.view,.shell)
  :is(p,.intro,.muted,.bio,.description,.story p,.two-skies p) {
  font-family:var(--orbit-type-body)!important;
  font-size:var(--orbit-type-copy)!important;
  line-height:var(--orbit-type-leading)!important;
}
html body :is(main,.app,.chart-app,.panel,.wrap,.view,.shell)
  :is(.small,.hint,.fine,.foot,.account,.status,.notice,.gallery-slot-status,.orbit-inbox-muted) {
  font-family:var(--orbit-type-body)!important;
  font-size:var(--orbit-type-small)!important;
  line-height:1.55!important;
}
html body :is(main,.app,.chart-app,.panel,.wrap,.view,.shell)
  :is(.eyebrow,.tag,.strap) {
  font-family:var(--orbit-type-nav)!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:1.4!important;
  letter-spacing:.07em!important;
  text-transform:uppercase;
}

/* Controls — consistent family/size, with accessible text fields and touch targets.
   Icons, colors, transparent surfaces, and handlers are not affected. */
html body :is(input,select,textarea) {
  font-family:var(--orbit-type-body)!important;
  font-size:16px!important;
  line-height:1.45!important;
}
html body :is(label,.field label) {
  font-family:var(--orbit-type-body)!important;
  font-size:var(--orbit-type-label)!important;
  line-height:1.45!important;
}
html body :is(button,.btn,.button,.primary,.secondary,.orbit-account-option) {
  font-family:var(--orbit-type-body)!important;
  font-size:14px!important;
  line-height:1.35!important;
}
html body :is(small,.counter,.gallery-counter) {
  font-family:var(--orbit-type-body)!important;
  font-size:var(--orbit-type-small)!important;
}

/* Navigation is intentionally monospaced, identical on mobile and desktop. */
html body :is(#desktopNav,#mobileNav,.chart-side-links,.chart-mobile-bottom)
  :is(button,a,.nav,.orbit-mobile-nav-label),
html body #orbit-global-navigation
  :is(.orbit-nav-link,.orbit-header-alerts,.orbit-account-trigger,.orbit-account-option) {
  font-family:var(--orbit-type-nav)!important;
  font-size:12px!important;
  font-weight:500!important;
  letter-spacing:0!important;
}
@media (max-width:700px) {
  html body #mobileNav.bottom button,
  html body #mobileNav.bottom .orbit-mobile-nav-label,
  html body .chart-mobile-bottom a {
    font-family:var(--orbit-type-nav)!important;
    font-size:clamp(9px,2.45vw,12px)!important;
    line-height:1.2!important;
  }
  html body #orbit-global-navigation
    :is(.orbit-header-alerts,.orbit-account-trigger) {
    font-size:11px!important;
  }
  /* Never reduce field text below 16px on iPhone; prevents auto-zoom. */
  html body :is(input,select,textarea) {font-size:16px!important}
}

/* One genuinely compact heading scale across Discover, Likes, Profile,
   Connections, Messages, Birth Chart, and secondary screens.
   Specific page selectors beat legacy inline-style-block !important rules.
   Only typography is altered; photos, controls and chart rendering stay intact. */
:root {
  --orbit-type-title:24px;
  --orbit-type-section:20px;
  --orbit-type-subhead:17px;
}
@media (max-width:700px) {
  :root {
    --orbit-type-title:24px;
    --orbit-type-section:20px;
    --orbit-type-subhead:17px;
  }
}
/* Consistent page titles at Discover's compact size. */
html body .app section.view .heading,
html body .app section.view > h1,
html body .app section.view .hero h2,
html body .chart-app main.shell > section.card > h1,
html body .panel > h1,
html body main.wrap h1,
html body main > header.hero h1 {
  font-family:var(--orbit-type-display)!important;
  font-size:var(--orbit-type-title)!important;
  font-weight:400!important;
  line-height:1.27!important;
  letter-spacing:-.012em!important;
}
/* Every section header is smaller than the main title. */
html body .app section.view .section-heading,
html body .app section.view h2:not(.heading),
html body .app section.view .gallery-intro h2,
html body .app section.view .gallery-section h2,
html body .app section.view .social-editor h2,
html body .app section.view .public-detail-editor h2,
html body .app section.view .standalone-prompts h2,
html body .app section.view .account-panel h2,
html body .app section.view .orbit-inbox-heading h2,
html body .app section.view .orbit-chat-header h2,
html body .app section.view .two-skies h4,
html body .chart-app main.shell section.card h2,
html body main.wrap h2,
html body main > section.panel h2,
html body .panel h2,
html body main > header.hero h2 {
  font-family:var(--orbit-type-display)!important;
  font-size:var(--orbit-type-section)!important;
  font-weight:400!important;
  line-height:1.3!important;
  letter-spacing:-.01em!important;
}
/* Card names and third-level headings stay the smallest headings. */
html body .app section.view h3,
html body .app section.view .featured .name,
html body .app section.view .like-card-heading strong,
html body .app section.view .match h3,
html body .chart-app main.shell .story h3,
html body main.wrap h3,
html body .panel h3 {
  font-family:var(--orbit-type-display)!important;
  font-size:var(--orbit-type-subhead)!important;
  line-height:1.3!important;
}
/* Preserve italics on the personal natal chart title. */
html body .chart-app main.shell > section.card > h1 {
  font-style:italic!important;
}
/* Leave the original Orbit logo and navigation as they are. */

/* ID-scoped override for older page-level CSS with stronger specificity. */
html body .app :is(#discover,#likes-you,#onboarding,#connections,#messages,#account,#preferences,#my-preview,#member-profile,#like-profile) .heading,
html body .app #discover .hero h2 {
  font-size:var(--orbit-type-title)!important;
}
html body .app :is(#discover,#likes-you,#onboarding,#connections,#messages,#account,#preferences,#my-preview,#member-profile,#like-profile)
 :is(.section-heading,.gallery-intro h2,.gallery-section h2,
      .social-editor h2,.public-detail-editor h2,.standalone-prompts h2,
      .account-panel h2,.orbit-inbox-heading h2,.orbit-chat-header h2,
      .two-skies h4) {
  font-size:var(--orbit-type-section)!important;
  font-weight:400!important;
  font-family:var(--orbit-type-display)!important;
}
html body .app :is(#discover,#likes-you,#onboarding,#connections,#messages,#account,#preferences)
 :is(.mini h3,.featured .name,.like-card-heading strong,.match h3) {
  font-size:var(--orbit-type-subhead)!important;
}

/* Profile editor compact layout — same quiet section-divider treatment as Discover.
   Removing only decorative section shells; not photo tiles, inputs, toggles,
   interest choice buttons, notification messages, or form functionality. */
html body .app section.view#onboarding :is(
  .gallery-section,.social-editor,.public-detail-editor,
  .standalone-prompts,.photo-editor
) {
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-top:1px solid rgba(241,203,134,.26)!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  padding:16px 0 10px!important;
  margin:18px 0!important;
  color:var(--orbit-ds-pearl)!important;
  -webkit-text-fill-color:var(--orbit-ds-pearl)!important;
}
html body .app section.view#onboarding .gallery-section:first-of-type {
  margin-top:14px!important;
}
html body .app section.view#onboarding .social-editor {
  max-width:none!important;
}
/* Standalone prompts are field groups, separated by a line instead of boxes. */
html body .app section.view#onboarding .standalone-prompt-card {
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid rgba(241,203,134,.22)!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:10px 0 16px!important;
  color:var(--orbit-ds-pearl)!important;
  -webkit-text-fill-color:var(--orbit-ds-pearl)!important;
}
/* Readable label/description colors on the now-transparent sections.
   Do not affect white text-input backgrounds or their dark input text. */
html body .app #onboarding :is(.social-editor,.public-detail-editor,.gallery-section)
 :is(h2,h3,.gallery-intro h2) {
  color:var(--orbit-ds-gold)!important;
  -webkit-text-fill-color:var(--orbit-ds-gold)!important;
  font-size:18px!important;
  line-height:1.3!important;
  font-weight:400!important;
  margin-bottom:8px!important;
}
html body .app #onboarding :is(.social-editor,.public-detail-editor,.gallery-section,.standalone-prompt-card)
 :is(p,.small,.gallery-upload-hint,.interest-count,.field label,.toggle,.voice-help,.voice-heading,.prompt-field-label) {
  color:var(--orbit-ds-pearl)!important;
  -webkit-text-fill-color:var(--orbit-ds-pearl)!important;
  font-family:var(--orbit-type-body)!important;
  font-size:12px!important;
  line-height:1.5!important;
  font-weight:400!important;
  opacity:1!important;
}
html body .app #onboarding .standalone-prompt-card h3 {
  font:500 16px/1.35 var(--orbit-type-display)!important;
  color:var(--orbit-ds-gold)!important;
  -webkit-text-fill-color:var(--orbit-ds-gold)!important;
}
/* Keep interests interactive and distinguish selected vs unselected; reduce
   visual weight and desktop chip dimensions without shrinking touch targets. */
html body .app #onboarding .interest-choices {
  gap:6px!important;
  margin:8px 0 5px!important;
}
html body .app #onboarding .interest-choice {
  font-family:var(--orbit-type-body)!important;
  font-size:11px!important;
  font-weight:600!important;
  padding:7px 11px!important;
  min-height:36px!important;
  border-width:1px!important;
  border-radius:999px!important;
  background:rgba(87,57,110,.22)!important;
  color:var(--orbit-ds-pearl)!important;
  -webkit-text-fill-color:var(--orbit-ds-pearl)!important;
}
html body .app #onboarding .interest-choice[aria-pressed="true"] {
  background:rgba(137,79,188,.64)!important;
  border-color:rgba(219,177,248,.76)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
/* Optional socials use neat, subtle labels; form fields remain readable. */
html body .app #onboarding .social-editor .field,
html body .app #onboarding .public-detail-editor .field {
  margin:6px 0!important;
}
html body .app #onboarding .social-editor :is(input:not([type=checkbox]),select,textarea),
html body .app #onboarding .public-detail-editor :is(input,select,textarea) {
  color:#30213c!important;
  -webkit-text-fill-color:#30213c!important;
  background:#fffafc!important;
  font-size:14px!important;
  border-width:1px!important;
  padding:9px 11px!important;
  min-height:40px!important;
}
@media(min-width:701px) {
  html body .app section.view#onboarding > .intro,
  html body .app #onboarding :is(.social-editor,.public-detail-editor,.gallery-section) :is(p,.small) {
    font-size:12px!important;
    line-height:1.5!important;
  }
  html body .app #onboarding .form-row,
  html body .app #onboarding .social-links {gap:10px!important}
  html body .app #onboarding :is(.gallery-section,.social-editor,.public-detail-editor) {
    padding-top:14px!important;
    padding-bottom:8px!important;
    margin:15px 0!important;
  }
}
@media(max-width:700px) {
  /* Keep touch controls and text inputs usable on phones. */
  html body .app #onboarding .interest-choice {min-height:42px!important;font-size:12px!important}
  html body .app #onboarding .social-editor :is(input:not([type=checkbox]),select,textarea),
  html body .app #onboarding .public-detail-editor :is(input,select,textarea) {font-size:16px!important;min-height:44px!important}
  html body .app #onboarding :is(.social-editor,.public-detail-editor,.gallery-section) {
    padding:15px 0 9px!important;
  }
}

/* Desktop profile controls and six-photo gallery: compact, consistent sizes.
   Photo upload/remove behavior, file inputs and profile state remain unchanged. */
@media (min-width:701px) {
  html body .app #onboarding .profile-edit-preview-tabs {
    gap:8px!important;
    margin:9px 0 14px!important;
  }
  html body .app #onboarding .profile-tab-current,
  html body .app #onboarding .profile-tab-preview {
    flex:0 0 auto!important;
    width:auto!important;
    max-width:100%!important;
    font-family:var(--orbit-type-body)!important;
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.25!important;
    min-height:34px!important;
    padding:8px 12px!important;
    border-width:1px!important;
    border-radius:9px!important;
    box-shadow:none!important;
  }
  html body .app #onboarding .photo-editor {
    gap:12px!important;
    align-items:center!important;
    padding:13px 0!important;
  }
  html body .app #onboarding .photo-editor .photo-actions {
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:530px!important;
    gap:6px!important;
  }
  html body .app #onboarding .photo-editor .photo-actions .actions {
    display:flex!important;
    flex-wrap:wrap!important;
    gap:7px!important;
    align-items:center!important;
  }
  html body .app #onboarding .photo-editor .photo-actions .btn,
  html body .app #onboarding #uploadProfilePhoto,
  html body .app #onboarding #removeProfilePhoto,
  html body .app #onboarding .gallery-slot-body .btn {
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:32px!important;
    padding:7px 11px!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1.25!important;
    border-width:1px!important;
    border-radius:8px!important;
    box-shadow:none!important;
  }
  html body .app #onboarding .photo-editor .photo-actions :is(p,.small,.status) {
    font-size:11px!important;
    line-height:1.45!important;
    margin:4px 0!important;
  }
  html body .app #onboarding .gallery-grid {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:11px!important;
    margin-top:10px!important;
    align-items:start!important;
  }
  html body .app #onboarding .gallery-grid > .gallery-slot {
    width:100%!important;
    max-width:210px!important;
    min-width:0!important;
    border-width:1px!important;
    border-radius:10px!important;
  }
  html body .app #onboarding .gallery-slot-media {
    aspect-ratio:1/1!important;
    min-height:0!important;
  }
  html body .app #onboarding .gallery-slot-media img {
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  html body .app #onboarding .gallery-slot-body {
    padding:7px!important;
    gap:5px!important;
  }
  html body .app #onboarding .gallery-slot-body :is(p,.small,.gallery-slot-status) {
    font-size:10px!important;
    line-height:1.4!important;
    padding:4px!important;
    margin:0!important;
  }
  html body .app #onboarding .gallery-label {
    font-size:10px!important;
    padding:4px 7px!important;
  }
  html body .app #onboarding .gallery-counter {
    font-size:11px!important;
    padding:5px 8px!important;
  }
}
@media (min-width:701px) and (max-width:900px) {
  html body .app #onboarding .gallery-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (max-width:700px) {
  /* Preserve the larger touch targets on mobile; reduce gallery image height
     without making photo buttons hard to use. */
  html body .app #onboarding .gallery-slot-media {aspect-ratio:4/4!important}
  html body .app #onboarding .gallery-slot-body {padding:9px!important}
}

/* Navigation typography: match the Birth Chart's Palatino/Georgia serif.
   Retain existing desktop/mobile font sizes, spacing, active states and links. */
html body #desktopNav .nav,
html body .chart-app .chart-side-links a,
html body #mobileNav.bottom button,
html body #mobileNav.bottom .orbit-mobile-nav-label,
html body .chart-mobile-bottom a,
html body #orbit-global-navigation :is(
  .orbit-nav-link,.orbit-header-alerts,.orbit-account-trigger,.orbit-account-option
) {
  font-family:var(--orbit-type-display)!important;
}
/* Leave compact mobile tab sizing and safe-area navigation dimensions intact. */

/* Connections: a little more readable without returning to oversized type.
   Only this page is scaled; existing nav and other page sizes are preserved. */
html body .app section.view#connections > h1.heading {
  font-size:26px!important;
  line-height:1.24!important;
}
html body .app section.view#connections :is(
  .match p,.match .small,.match .info,.match .location,
  .two-skies p,.empty,.notice,.status
) {
  font-family:var(--orbit-type-body)!important;
  font-size:15px!important;
  line-height:1.65!important;
}
html body .app section.view#connections :is(
  .match h3,.match .connection-name,.match .name,
  .two-skies h3,.two-skies h4
) {
  font-size:19px!important;
  line-height:1.35!important;
}
html body .app section.view#connections :is(.btn,button:not(.nav)) {
  font-size:14px!important;
}
html body .app section.view#connections #realConnections {
  margin-top:16px!important;
}
@media(max-width:700px) {
  html body .app section.view#connections > h1.heading {font-size:26px!important}
}

/* Desktop sidebar: larger, easier-to-read navigation, matching Birth Chart serif.
   Leave mobile bottom tabs, page layout and navigation destinations untouched. */
@media(min-width:701px) {
  html body .app #desktopNav .nav,
  html body .app .side #desktopNav .nav,
  html body .chart-app .chart-side-links a {
    font-family:var(--orbit-type-display)!important;
    font-size:15.3px!important;
    font-weight:600!important;
    line-height:1.35!important;
    letter-spacing:0!important;
    min-height:48px!important;
    padding:12px 16px!important;
  }
  html body .chart-app .chart-side-links {gap:8px!important}
  html body .app .side #desktopNav {gap:7px!important}
}
/* Connections matches the smaller, quieter type scale used elsewhere.
   Apply on phones and desktop without shrinking other pages. */
html body .app section.view#connections > h1.heading {
  font-size:22px!important;
  line-height:1.25!important;
}
html body .app section.view#connections :is(
  .match p,.match .small,.match .info,.match .location,
  .match .orbit-public-location,.two-skies p,.empty,.notice,.status,
  .two-skies-feedback
) {
  font-family:var(--orbit-type-body)!important;
  font-size:13px!important;
  line-height:1.55!important;
}
html body .app section.view#connections :is(
  .match h3,.match .connection-name,.match .name,
  .two-skies h3,.two-skies h4
) {
  font-size:16px!important;
  line-height:1.3!important;
}
html body .app section.view#connections :is(.btn,button:not(.nav)) {
  font-size:12px!important;
  line-height:1.35!important;
}
