/* Yasnoo home — mobile-first corrections for index.html only */
@media (max-width: 760px) {
  html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { line-height: 1.45; }
  main, .page, .sec, .hero, .agent-hero { min-width: 0; max-width: 100%; }
  img, svg, video, iframe { max-width: 100%; height: auto; }

  .page { padding: 1.1rem 1rem 3.5rem; }
  .sec { margin-bottom: 2.35rem; }
  .sec-head { align-items: flex-start; flex-wrap: wrap; gap: .45rem .65rem; margin-bottom: 1rem; }
  .sec-title { font-size: 1.08rem; line-height: 1.3; }
  .sec-badge { font-size: .68rem; line-height: 1.2; padding: .25rem .5rem; }

  .nav { height: auto; min-height: 56px; padding: .55rem 1rem .45rem; flex-wrap: wrap; gap: .45rem; }
  .nav-logo { margin-right: auto; font-size: 1.28rem; }
  .nav-right { gap: .45rem; }
  .nav-theme { min-width: 44px; min-height: 40px; font-size: .85rem; }
  .nav-cta { min-height: 40px; display: inline-flex; align-items: center; padding: .55rem .7rem; font-size: .72rem; }
  .nav-links { order: 3; width: 100%; flex-basis: 100%; overflow-x: auto; gap: .15rem; padding-top: .15rem; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a, .nav-links a:not(.mob-show) { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 38px; padding: .45rem .65rem; font-size: .84rem; white-space: nowrap; }

  .agent-hero { padding: 1.25rem 1rem 1.1rem; margin-bottom: 2rem; border-radius: 10px; }
  .agent-kicker { font-size: .7rem; line-height: 1.45; letter-spacing: .11em; margin-bottom: .75rem; }
  .agent-title { font-size: clamp(2rem, 10.5vw, 2.7rem); line-height: 1.04; letter-spacing: -.025em; }
  .agent-deck { font-size: 1rem; line-height: 1.6; margin-top: 1rem; }
  .agent-thesis { font-size: .95rem; line-height: 1.55; padding: .8rem .85rem; }
  .agent-split { grid-template-columns: 1fr; gap: .7rem; }
  .agent-track { padding: 1rem; }
  .agent-track small { font-size: .67rem; line-height: 1.35; }
  .agent-track h2 { font-size: 1.05rem; }
  .agent-track p { font-size: .93rem; line-height: 1.6; }
  .agent-method { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .agent-step { min-height: 0; padding: .75rem; }
  .agent-step b { font-size: .68rem; }
  .agent-step span { font-size: .86rem; line-height: 1.45; }

  .hero { padding: 1.2rem 1rem; margin-bottom: 2rem; border-radius: 9px; }
  .hero-eye { font-size: .7rem; line-height: 1.4; letter-spacing: .12em; }
  .hero-title { font-size: clamp(1.55rem, 7vw, 2rem); line-height: 1.16; }
  .hero-deck { font-size: .98rem; line-height: 1.65; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-q, .pain-a { padding: .72rem .8rem; font-size: .92rem; line-height: 1.5; }
  .hero-ul li { font-size: .94rem; line-height: 1.55; }
  .hero-actions { gap: .6rem; }
  .btn-primary, .btn-sec { width: 100%; min-height: 44px; justify-content: center; align-items: center; display: inline-flex; text-align: center; font-size: .82rem; line-height: 1.25; }

  .table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1.1rem; }
  .fmt-table { width: 620px; min-width: 620px; margin-top: 0 !important; font-size: .88rem; }
  .fmt-table th { font-size: .7rem; padding: .65rem .75rem; }
  .fmt-table td { font-size: .86rem; padding: .65rem .75rem; }

  .two-col, .lna-cards { grid-template-columns: 1fr; gap: .85rem; }
  .lna-intro { font-size: .95rem; line-height: 1.65; padding: .85rem .9rem; }
  .lna-card { padding: 1rem; }
  .lna-card-eye { font-size: .68rem; line-height: 1.35; }
  .lna-card-title { font-size: 1rem; }
  .lna-card-desc { font-size: .9rem; line-height: 1.55; }

  .links-list { gap: .15rem; }
  .ll-item { align-items: flex-start; gap: .55rem; padding: .58rem .1rem; font-size: .94rem; line-height: 1.5; }
  .ll-op { font-size: .9rem; min-width: 1rem; }
  .ll-a { overflow-wrap: anywhere; }
  .ll-meta { display: block; margin: .2rem 0 0; font-size: .78rem; line-height: 1.45; }
  .ll-more { min-height: 40px; font-size: .82rem; padding: .5rem .75rem; }

  .s1c-grid { grid-template-columns: 1fr; gap: .65rem; }
  .s1c-card { padding: 1rem; }
  .s1c-num { font-size: .7rem; }
  .s1c-name { font-size: 1rem; }
  .s1c-desc { font-size: .9rem; line-height: 1.55; }
  .s1c-links { gap: .35rem; }
  .s1c-links a { min-height: 42px; font-size: .9rem; line-height: 1.4; padding: .55rem 2rem .55rem .7rem; }

  .fsbu-item { align-items: flex-start; gap: .7rem; padding: .6rem .1rem; font-size: .94rem; line-height: 1.45; }
  .fsbu-num { font-size: .75rem; min-width: 4.3rem; }
  .ps-wrap { display: flex; flex-wrap: wrap; gap: .45rem .35rem; font-size: .9rem; line-height: 1.2; }
  .ps-wrap a { display: inline-flex; align-items: center; min-height: 38px; margin: 0; padding: .3rem .48rem; border: 1px solid var(--bdr); border-radius: 5px; background: var(--surf); }

  .support-grid { grid-template-columns: 1fr; gap: .7rem; }
  .support-col { padding: 1rem; }
  .support-col-title { font-size: .7rem; line-height: 1.35; }
  .support-col a { font-size: .92rem; line-height: 1.45; padding: .32rem 0; }

  .ad-slot { min-height: 0; max-width: 100% !important; padding-left: 1rem !important; padding-right: 1rem !important; overflow: hidden; }
  .footer { padding: 2rem 1rem; }
  .footer-in { grid-template-columns: 1fr; gap: 1.5rem; }
  .f-brand { font-size: 1.25rem; }
  .f-sub { font-size: .88rem; line-height: 1.6; }
  .f-copy { font-size: .76rem; line-height: 1.5; }
  .f-ct { font-size: .7rem; }
  .f-a { font-size: .9rem; line-height: 1.45; margin-bottom: .45rem; }
}

@media (max-width: 420px) {
  .nav { padding-left: .8rem; padding-right: .8rem; }
  .nav-cta { font-size: .68rem; padding-left: .55rem; padding-right: .55rem; }
  .page { padding-left: .85rem; padding-right: .85rem; }
  .agent-title { font-size: 2rem; }
  .agent-method { grid-template-columns: 1fr; }
  .sec-title { font-size: 1.02rem; }
}

/* Final mobile containment after typography refresh */
@media(max-width:760px){
  .sc-home h1,.agent-title,.sec-title,.lna-card-title{overflow-wrap:anywhere;word-break:normal}
  .nav-logo{min-width:0}
  .nav-right{margin-left:0;flex:0 0 auto;max-width:calc(100% - 105px)}
  .nav-cta{max-width:118px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sc-home,.agent-hero,.tool-compact,.s1c-card,.lna-card{min-width:0;overflow:hidden}
}

@media(max-width:420px){
  .sc-home h1,.agent-title{max-width:100%;overflow-wrap:break-word;word-break:normal;hyphens:auto}
  .nav-cta{display:none!important}
  .nav-right{max-width:56px;margin-left:auto}
}
