/* Mobile density only: retain readable content and usable touch targets. */

@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  #site-wrapper {
    font-size: 14px;
    line-height: 1.65;
  }
  nav.glass {
    padding: 8px 16px;
    min-height: 56px;
  }
  nav.glass .logo {
    font-size: 1.2rem;
  }
  nav.glass .nav-links {
    top: 56px;
    padding: 12px 0;
    gap: 5px;
  }
  nav.glass .nav-links a {
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  nav.glass .nav-links a > i {
    width: 20px;
    flex: 0 0 20px;
    text-align: center;
  }
  .menu-btn {
    width: 44px;
    height: 40px;
  }
  .menu-icon span {
    width: 22px;
  }
  .main-content {
    padding-top: 64px;
  }
  .hero {
    padding: 76px 22px 40px;
    min-height: 86svh;
  }
  .hero .slogan {
    font-size: clamp(1.1rem, 4.6vw, 1.3rem);
    line-height: 1.7;
    max-width: 34em;
    margin-bottom: 20px;
  }
  .content-island {
    width: calc(100% - 28px);
    margin: 20px auto;
    border-radius: 14px;
  }
  .posts-container,
  .new-section {
    padding: 22px;
    gap: 22px;
  }
  .posts-main,
  .new-section .about-site {
    padding-bottom: 22px;
  }
  .content-island h2 {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 14px !important;
  }
  .content-island h3 {
    font-size: 1rem;
    line-height: 1.5;
  }
  #homeDailyTitle {
    font-size: 1.15rem;
    margin-bottom: 14px;
  }
  .content-island p {
    font-size: 0.9rem;
    line-height: 1.8;
  }
  .posts-side h4 {
    font-size: 1rem;
  }
  .posts-side #display {
    font-size: 1.05rem !important;
    margin-top: 10px !important;
  }
  .switch-container {
    gap: 6px;
    margin-top: 10px;
  }
  .win10-switch {
    gap: 14px;
    min-height: 44px;
    font-size: 0.9rem;
  }
  .slider {
    width: 40px;
    height: 23px;
  }
  .slider:before {
    width: 17px;
    height: 17px;
  }
  input:checked + .slider:before {
    transform: translateX(17px);
  }
  .sub-page-content {
    padding: 24px 14px 32px;
  }
  .section-title {
    font-size: 1.65rem;
    margin-bottom: 22px;
  }
  .neo-grid,
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .neo-card,
  .article-card {
    padding: 20px;
    border-radius: 14px;
  }
  .neo-card h3,
  .article-card h3 {
    font-size: 1.1rem;
  }
  .neo-card p,
  .article-card .excerpt {
    font-size: 0.9rem;
    line-height: 1.75;
  }
  .friend-link {
    font-size: 0.88rem;
    padding: 9px 14px;
    min-height: 42px;
  }
  .friend-head img {
    width: 46px;
    height: 46px;
    margin-right: 12px;
  }
  .category-tabs {
    gap: 10px;
    margin-bottom: 20px;
  }
  .category-tab {
    padding: 10px 16px;
    min-height: 44px;
    font-size: 0.9rem;
    gap: 8px;
  }
  .category-count {
    font-size: 0.75rem;
  }
  .toolbar {
    gap: 10px;
    padding: 12px;
    margin-bottom: 18px;
  }
  .toolbar input {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
    padding: 10px 13px;
    font-size: 16px;
  }
  .custom-select {
    min-width: 0;
  }
  .select-selected {
    padding: 10px 34px 10px 13px;
    font-size: 0.9rem;
    min-height: 44px;
  }
  .select-items div {
    padding: 10px 13px;
    font-size: 0.9rem;
    min-height: 44px;
  }
  .reader-layout .article-view {
    padding: 22px 18px;
  }
  .reader-layout .article-view h1 {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }
  .reader-layout .article-body {
    font-size: 1rem;
    line-height: 1.9;
  }
  .reader-toc-mobile {
    padding: 11px 13px;
    margin-bottom: 22px;
  }
  .reader-nav .nav-back {
    font-size: 0.82rem;
  }
  .reader-toc-mobile summary {
    font-size: 0.86rem;
  }
  .topbar .brand {
    font-size: 0.92rem;
  }
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .editor-panel .editor-head h1,
  .site-panel h1 {
    font-size: 1.15rem;
  }
  .site-panel {
    padding: 16px;
  }
  .content-section,
  .site-block {
    padding: 15px;
  }
  .field label {
    font-size: 0.85rem;
  }
  .field small {
    font-size: 0.76rem;
    line-height: 1.6;
  }
  .field input,
  .field textarea {
    font-size: 16px;
  }
  .editor {
    font-size: 1rem;
    line-height: 1.8;
  }
}
