/* YonoApps shell — header + footer + shared tokens */

body.atlas-skin-yono {
  --yono-forest: #063d27;
  --yono-dark: #075033;
  --yono-primary: #10a64a;
  --yono-bright: #20c96b;
  --yono-bg: #f5f7f6;
  --yono-card: #ffffff;
  --yono-text: #17211b;
  --yono-muted: #69736d;
  --yono-border: #dce6e0;
  --yono-hot: #ef4444;
  --yono-star: #f5a800;
  --yono-radius: 12px;
  --yono-radius-sm: 8px;
  --yono-max: 1080px;
  --yono-pad: 24px;
  --yono-font: Inter, "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  background: var(--yono-bg);
  color: var(--yono-text);
  font-family: var(--yono-font);
}

/* Stick footer to viewport bottom when page content is short. */
body.atlas-skin-yono .site-app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.atlas-skin-yono .site-app-shell > main {
  flex: 1 0 auto;
}

@media (min-width: 481px) {
  body.atlas-skin-yono .site-app-shell {
    min-height: calc(100dvh - 24px);
  }
}

@media (max-width: 767px) {
  body.atlas-skin-yono {
    --yono-pad: 16px;
  }
}

@media (max-width: 390px) {
  body.atlas-skin-yono {
    --yono-pad: 14px;
  }
}

body.atlas-skin-yono .yono-container {
  width: 100%;
  max-width: calc(var(--yono-max) + var(--yono-pad) * 2);
  margin: 0 auto;
  padding-left: var(--yono-pad);
  padding-right: var(--yono-pad);
  box-sizing: border-box;
}

body.atlas-skin-yono .site-header,
body.atlas-skin-yono .site-footer--legal {
  display: none;
}

/* Suppress legacy floating Telegram on Yono skin (header Telegram remains). */
body.atlas-skin-yono .atlas-floating-social,
body.yono-skin .atlas-floating-social {
  display: none !important;
}

/* Theme Settings → Social floating stack */
.yono-floating-social {
  position: fixed;
  right: var(--yono-floating-right, 14px);
  bottom: 88px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.yono-floating-social__btn {
  width: var(--yono-floating-size, 56px);
  height: var(--yono-floating-size, 56px);
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: var(--yono-text, #0f172a);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yono-floating-social__btn:hover,
.yono-floating-social__btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  outline: none;
}

.yono-floating-social__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .yono-floating-social {
    bottom: 76px;
  }
}

/* Header */
.yono-header {
  background: var(--yono-forest);
  color: #fff;
  position: relative;
  z-index: 50;
}

.yono-header--sticky {
  position: sticky;
  top: 0;
}

.yono-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}

.yono-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.yono-header__logo,
.yono-header__brand .custom-logo {
  width: 28px;
  height: 28px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.yono-header__mark {
  width: 28px;
  height: 28px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 8px;
  background: var(--yono-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.yono-header__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.yono-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.yono-header__menu {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.yono-header__link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--yono-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yono-header__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: currentColor;
  line-height: 0;
  opacity: 0.92;
}

.yono-header__nav-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.yono-header__nav-label {
  display: inline-block;
  line-height: 1.1;
}

.yono-header__link:hover,
.yono-header__link.is-active,
.yono-header__link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.yono-header__item {
  position: relative;
}

.yono-header__item--has-sub .yono-header__parent {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.yono-header__sub-toggle {
  display: none;
  width: 28px;
  height: 28px;
  margin-left: -4px;
  border: 0;
  border-radius: var(--yono-radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.yono-header__sub-toggle span {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  display: block;
}

.yono-header__submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: #063524;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--yono-radius-sm);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  display: none;
  z-index: 80;
}

.yono-header__item--has-sub:hover > .yono-header__submenu,
.yono-header__item--has-sub:focus-within > .yono-header__submenu,
.yono-header__item--has-sub.is-open > .yono-header__submenu {
  display: grid;
  gap: 2px;
}

.yono-header__sublink {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--yono-radius-sm);
  white-space: nowrap;
}

.yono-header__sublink:hover,
.yono-header__sublink.is-active,
.yono-header__sublink:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.yono-header__drawer-parent {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.yono-header__drawer-parent > a {
  flex: 1;
}

.yono-header__drawer-sub-toggle {
  width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: var(--yono-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yono-header__drawer-sub-toggle span {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  display: block;
  transition: transform 0.15s ease;
}

.yono-header__drawer-sub-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}

.yono-header__drawer-sub {
  list-style: none;
  margin: 0 0 4px;
  padding: 0 0 0 12px;
  display: grid;
  gap: 2px;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  margin-left: 10px;
}

.yono-header__drawer-sub a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  min-height: 40px;
  padding: 10px 10px;
}

.yono-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

body.yono-nav-open,
html.yono-nav-open {
  overflow: hidden;
}

body.yono-nav-open .yono-header__drawer {
  position: relative;
  z-index: 60;
}

.yono-header__icon-btn,
.yono-header__telegram,
.yono-header__burger {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  box-sizing: border-box;
}

.yono-header__icon-btn:focus-visible,
.yono-header__telegram:focus-visible,
.yono-header__burger:focus-visible {
  outline: 2px solid var(--yono-bright);
  outline-offset: 2px;
}

.yono-header__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.yono-header__burger span {
  width: 14px;
  height: 2px;
  background: #fff;
  display: block;
}

.yono-header__drawer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--yono-dark);
  padding: 12px var(--yono-pad) 16px;
}

.yono-header__drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.yono-header__drawer a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: var(--yono-radius-sm);
  min-height: 44px;
  box-sizing: border-box;
}

.yono-header__drawer a:hover,
.yono-header__drawer a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

@media (max-width: 900px) {
  .yono-header__inner {
    gap: 8px;
    min-height: 52px;
    overflow: visible;
  }

  .yono-header__brand {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 168px);
  }

  .yono-header__nav {
    display: none;
  }

  .yono-header__burger {
    display: inline-flex;
  }

  .yono-header__name {
    max-width: none;
    flex: 1 1 auto;
  }

  .yono-header__logo,
  .yono-header__brand .custom-logo,
  .yono-header__mark {
    width: 36px;
    height: 36px;
  }

  .yono-header__icon-btn,
  .yono-header__telegram,
  .yono-header__burger {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .yono-header__actions {
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
    flex-shrink: 0;
  }
}

@media (max-width: 390px) {
  body.atlas-skin-yono {
    --yono-pad: 12px;
  }

  .yono-header__brand {
    max-width: calc(100% - 160px);
  }

  .yono-header__name {
    font-size: 12px;
  }

  .yono-header__logo,
  .yono-header__brand .custom-logo,
  .yono-header__mark {
    width: 32px;
    height: 32px;
  }
}

/* Footer — compact, no height clamp (avoids brand/nav overlap) */
.yono-footer {
  background: #04281a;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 24px;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.yono-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px 32px;
  align-items: start;
  padding-top: 20px;
  padding-bottom: 16px;
  box-sizing: border-box;
}

.yono-footer__brand {
  min-width: 0;
}

.yono-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  max-width: 100%;
}

.yono-footer__logo-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yono-footer__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.yono-footer__tagline,
.yono-footer__copy {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 420px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.yono-footer__copy {
  margin-top: 4px;
}

.yono-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-content: flex-start;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 0;
}

.yono-footer__nav > a,
.yono-footer__group-title,
.yono-footer__sub a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.yono-footer__nav > a:hover,
.yono-footer__nav > a:focus-visible,
.yono-footer__group-title:hover,
.yono-footer__group-title:focus-visible,
.yono-footer__sub a:hover,
.yono-footer__sub a:focus-visible {
  color: #fff;
  outline: none;
  text-decoration: underline;
}

.yono-footer__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  min-width: 0;
}

.yono-footer__group-title {
  font-weight: 600;
  color: #fff;
}

.yono-footer__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: flex-end;
}

.yono-footer__sub a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.yono-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0 12px;
}

.yono-footer__bottom p {
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  overflow-wrap: anywhere;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1023px) {
  .yono-footer__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .yono-footer__nav {
    justify-content: flex-start;
  }

  .yono-footer__group {
    align-items: flex-start;
  }

  .yono-footer__sub {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .yono-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    justify-content: stretch;
    width: 100%;
  }

  .yono-footer__group {
    grid-column: 1 / -1;
  }

  .yono-footer__nav > a,
  .yono-footer__group-title,
  .yono-footer__sub a {
    white-space: normal;
  }

  .yono-footer__tagline,
  .yono-footer__copy {
    max-width: none;
  }
}

/* Shared buttons */
.yono-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--yono-radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
}

.yono-btn--primary {
  background: var(--yono-primary);
  color: #fff;
}

.yono-btn--primary:hover,
.yono-btn--primary:focus-visible {
  background: var(--yono-bright);
  color: #fff;
  outline: none;
}

.yono-btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.yono-btn--sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.yono-btn--download .yono-ui-icon {
  flex-shrink: 0;
}

.yono-ui-icon {
  display: block;
  flex-shrink: 0;
}

.yono-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.35;
  min-width: 0;
}

.yono-meta-line--bonus {
  color: var(--yono-hot);
  font-weight: 600;
}

.yono-meta-line--withdraw {
  color: var(--yono-text);
  font-weight: 600;
}

.yono-meta-line--version {
  color: var(--yono-muted);
  font-weight: 600;
}

@media (max-width: 767px) {
  .yono-btn--sm {
    min-height: 44px;
  }
}

/* Phase 3.4 hub modules on pages + guides archive */
.yono-hub {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--yono-border);
}

.yono-hub__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.yono-hub__subtitle {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.yono-hub__note,
.yono-hub__disclaimer,
.yono-hub__empty,
.yono-hub__more {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--yono-muted);
}

.yono-hub-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yono-hub-timeline__item {
  padding: 12px 14px;
  border: 1px solid var(--yono-border);
  border-radius: var(--yono-radius);
  background: var(--yono-card);
}

.yono-hub-timeline__label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--yono-primary);
}

.yono-hub-timeline__link {
  display: block;
  font-weight: 600;
  color: var(--yono-text);
  text-decoration: none;
}

.yono-hub-timeline__date {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--yono-muted);
}

.yono-hub-timeline__detail {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--yono-muted);
}

.yono-hub-card-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.yono-hub-card-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--yono-border);
}

.yono-hub-card-list a {
  color: var(--yono-text);
  font-weight: 600;
  text-decoration: none;
}

.yono-hub-card-list a:hover {
  color: var(--yono-primary);
}

.yono-hub-card-list__meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--yono-muted);
}

.yono-guides-hub-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0 0 28px;
}

.yono-guides-hub-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.yono-guides-hub-section__title {
  margin: 0;
  font-size: 1.1rem;
}

.yono-guides-hub-section__all {
  font-size: 13px;
  font-weight: 600;
  color: var(--yono-primary);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.yono-archive-latest-title {
  margin: 8px 0 14px;
  font-size: 1.15rem;
}

.yono-header__drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

