/* Angela v3.3.2 / HIMEMY — restored confirmed navigation layout + typography
   Based on the desktop/mobile settings confirmed in browser tests.
   Load AFTER styles-I2DQGIPG.css.
   Does not change theme-custom.js or hidden tutorial logic.
*/

/* ===== Desktop: confirmed two-column navigation widths ===== */
@media (min-width: 1100px) {
  /* First column: main navigation, 220px */
  agl-nav-drawer {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    flex: 0 0 220px !important;
    box-sizing: border-box !important;
  }
  agl-nav-drawer .items button {
    width: calc(100% - 16px) !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    text-align: left !important;
  }
  agl-nav-drawer .items button .text { text-align: left !important; }

  /* Second column: manual sidebar, 220px */
  aside.sidebar {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    flex: 0 0 220px !important;
    box-sizing: border-box !important;
  }
  agl-manual-list button,
  agl-manual-list agl-nav-drawer-headline {
    width: calc(100% - 16px) !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    text-align: left !important;
  }
  agl-manual-list agl-nav-drawer-headline { display: block !important; }
}

/* ===== Desktop and medium screens: typography ===== */
@media (min-width: 840px) {
  /* Main navigation and manual sidebar */
  agl-nav-drawer .items button .text {
    font-size: 21px !important;
    line-height: 1.4 !important;
  }
  agl-manual-list agl-nav-drawer-headline {
    font-size: 22px !important;
    line-height: 1.4 !important;
  }
  agl-manual-list button .text {
    font-size: 21px !important;
    line-height: 1.4 !important;
  }

  /* Help article; deliberately leave mobile article font untouched */
  article p, article li, article td, article th {
    font-size: 20px !important;
    line-height: 1.7 !important;
  }
  article p a, article li a, article td a,
  article p span, article li span { font-size: inherit !important; }
  article h1 { font-size: 32px !important; line-height: 1.3 !important; }
  article h2 { font-size: 27px !important; line-height: 1.4 !important; }

  /* General explanatory paragraphs */
  agl-root p { font-size: 19px !important; line-height: 1.55 !important; }

  /* Subscription and plans — selectors that showed an effect in testing */
  agl-feature .text,
  [class*="feature"] > .text {
    font-size: 18px !important;
    line-height: 1.55 !important;
  }
  agl-root .info { font-size: 18px !important; line-height: 1.55 !important; }
  agl-root [class*="secondary"] { font-size: 19px !important; line-height: 1.5 !important; }

  /* Orders and invitations */
  agl-info-item .name,
  agl-info-item .value { font-size: 18px !important; line-height: 1.55 !important; }
  agl-root [class*="price"] .value,
  agl-root [class*="price"] [class*="amount"] {
    font-size: 19px !important;
    line-height: 1.5 !important;
  }
  agl-root [class*="status"] .text { font-size: 17px !important; line-height: 1.5 !important; }
  agl-root .summary { font-size: 18px !important; line-height: 1.5 !important; }
  agl-root .headline .title { font-size: 20px !important; line-height: 1.4 !important; }
  agl-root .subtitle { font-size: 16px !important; line-height: 1.5 !important; }

  /* Invitation commission heading: specific sibling structure, no JS needed */
  agl-root .main > .title:has(+ agl-currency-statistic) {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }

  /* Invitation-code date and label, as tested */
  agl-root button .content > :first-child { font-size: 18px !important; }
  agl-root button .content > :last-child {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  /* Buttons: tested text/label/content selectors */
  agl-root button .text,
  agl-root button .label,
  agl-root button .content { font-size: 18px !important; }
}

/* ===== Mobile: confirmed 200px drawer, centered menu ===== */
@media (max-width: 839px) {
  agl-nav-drawer {
    width: min(200px, 85vw) !important;
    min-width: 0 !important;
    max-width: min(200px, 85vw) !important;
    box-sizing: border-box !important;
  }
  agl-nav-drawer .items button {
    width: calc(100% - 12px) !important;
    margin-left: 6px !important;
    margin-right: 6px !important;
    padding: 0 6px !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }
  agl-nav-drawer .items button .text {
    font-size: 18px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    white-space: normal !important;
  }
  agl-manual-list agl-nav-drawer-headline {
    font-size: 20px !important;
    line-height: 1.4 !important;
  }
  agl-manual-list button {
    min-height: 60px !important;
    height: auto !important;
    text-align: left !important;
  }
  agl-manual-list button .text {
    font-size: 19px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  /* Chatwoot bubble above mobile bottom navigation */
  .woot-widget-bubble {
    bottom: 90px !important;
    right: 16px !important;
  }
}
