@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 72px;
  }

  body {
    overflow-x: hidden;
    padding-bottom: 24px;
    background:
      radial-gradient(circle at 20% 0%, rgba(0,172,235,.10), transparent 30%),
      linear-gradient(180deg, #f0fafd 0%, #f0fafd 100%) !important;
  }

  .container {
    width: min(100vw - 24px, 1280px) !important;
  }

  .nav {
    top: 0 !important;
    z-index: 1200 !important;
  }

  .nav-inner {
    min-height: 58px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 10px !important;
    padding: 10px 0 8px !important;
  }

  .logo {
    width: auto !important;
    min-width: 0 !important;
    gap: 9px !important;
  }

  .logo-mark {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    flex: 0 0 36px !important;
  }

  .logo-copy strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .logo-copy span {
    font-size: 11px !important;
  }

  .nav-note {
    display: none !important;
  }

  .nav-menu {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    padding: 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-menu a {
    flex: 0 0 auto !important;
    min-width: 58px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 6px !important;
    border-radius: 15px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .nav-menu a.active {
    background: #e6f7fd !important;
    color: #0087b3 !important;
  }

  .nav-menu a.active::after {
    display: none !important;
  }

  .hero,
  .publish-hero {
    padding: 16px 0 10px !important;
  }

  .hero-shell,
  .hero-card,
  .search-shell {
    border-radius: 18px !important;
    padding: 20px !important;
    box-shadow: 0 18px 46px rgba(7, 17, 31, .14) !important;
  }

  .hero-copy h1,
  .hero h1,
  .search-head h1,
  .hero-head h1 {
    font-size: 22px !important;
    line-height: 1.14 !important;
    margin-bottom: 8px !important;
  }

  .hero-copy p,
  .hero p,
  .search-head p,
  .hero-head p {
    font-size: 13px !important;
    line-height: 1.72 !important;
  }

  .hero-badge,
  .source-count {
    align-self: flex-start !important;
  }

  .search-panel,
  .hero-product-search {
    margin-top: 14px !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .search-panel-title,
  .hero-product-search h2 {
    font-size: 20px !important;
  }

  .hero-search,
  .hero-search-form,
  .news-search,
  .kb-search {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 10px !important;
  }

  .hero-search input,
  .hero-search-form input,
  .news-search input,
  .kb-search input {
    min-height: 48px !important;
    height: 48px !important;
  }

  .hero-search button,
  .hero-search-form button,
  .news-search button,
  .kb-search button {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
  }

  .page-stack,
  .page-grid,
  .content,
  .layout,
  .news-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 8px 0 28px !important;
  }

  .section-card,
  .panel,
  .card,
  .section,
  .news-column {
    border-radius: 18px !important;
  }

  .section-card,
  .panel,
  .card {
    padding: 16px !important;
  }

  .section-head,
  .block-title,
  .brand-head,
  .style-head,
  .feed-head,
  .composer-head,
  .search-head,
  .hero-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .portal-grid,
  .notice-card,
  .news-grid,
  .term-grid,
  .filter-row,
  .type-grid,
  .inline-grid,
  .region-grid {
    grid-template-columns: 1fr !important;
  }

  .portal-card {
    min-height: auto !important;
    padding: 16px !important;
    gap: 12px !important;
  }

  .portal-points {
    gap: 6px !important;
  }

  .portal-points span {
    font-size: 11px !important;
    padding: 5px 8px !important;
  }

  .portal-actions a,
  .primary-btn,
  .ghost-btn,
  .line-btn,
  .submit-btn,
  .comment-btn {
    min-height: 44px !important;
  }

  body[data-page="products"] .hero-card {
    display: block !important;
  }

  body[data-page="products"] .section-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .list-tools {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .filter-toggle,
  .result-count-badge {
    height: 36px !important;
  }

  .filter-panel {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .chip-list,
  .product-tags,
  .modal-badges,
  .filter-row {
    gap: 7px !important;
  }

  .filter-chip {
    height: 32px !important;
    font-size: 12px !important;
  }

  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .product-card {
    padding: 12px !important;
    border-radius: 17px !important;
    gap: 10px !important;
  }

  .product-card-main {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  .product-visual-wrap,
  .product-visual {
    width: 82px !important;
  }

  .product-visual {
    height: 82px !important;
    min-height: 82px !important;
    border-radius: 13px !important;
  }

  .product-source-badge {
    position: static !important;
    max-width: 100% !important;
    height: 24px !important;
    justify-self: start !important;
    margin: 0 !important;
  }

  .product-name {
    font-size: 16px !important;
    margin-bottom: 4px !important;
  }

  .product-summary {
    -webkit-line-clamp: 2 !important;
    font-size: 12px !important;
    line-height: 1.58 !important;
  }

  .product-tags span {
    height: 24px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  .product-spec-board {
    padding: 8px 0 10px !important;
  }

  .spec-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .spec-tag {
    min-height: 42px !important;
    padding: 6px 7px !important;
  }

  .spec-tag small {
    font-size: 10px !important;
  }

  .spec-tag strong {
    font-size: 12px !important;
    line-height: 1.32 !important;
  }

  .product-actions,
  .compare-inline-actions,
  .submit-row,
  .comment-form {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .comment-form input {
    grid-column: 1 / -1 !important;
  }

  .detail-modal {
    align-items: stretch !important;
    padding: 10px !important;
  }

  .modal-card {
    width: 100% !important;
    max-height: calc(100vh - 20px) !important;
    border-radius: 18px !important;
  }

  .modal-head {
    padding: 16px !important;
  }

  .modal-content {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 16px !important;
  }

  .modal-visual-frame {
    min-height: 210px !important;
  }

  .param-table {
    display: block !important;
    overflow-x: auto !important;
  }

  .compare-dock {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    border-radius: 18px !important;
  }

  body[data-page="products"] .compare-dock.is-empty {
    display: none !important;
  }

  .compare-head {
    padding: 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .compare-head-main {
    align-items: flex-start !important;
  }

  .compare-head-main span {
    white-space: normal !important;
    max-width: none !important;
  }

  .compare-head-actions {
    width: 100% !important;
    justify-content: flex-end !important;
  }

  .compare-selection {
    grid-template-columns: 1fr !important;
  }

  .compare-body {
    max-height: min(68vh, 560px) !important;
    padding: 10px !important;
  }

  .compare-table {
    min-width: 680px !important;
  }

  .news-layout {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px !important;
    -webkit-overflow-scrolling: touch;
  }

  .news-column {
    flex: 0 0 calc(100vw - 34px) !important;
    height: var(--news-column-height, 560px) !important;
    scroll-snap-align: start;
  }

  .column-head {
    padding: 16px !important;
    flex-direction: row !important;
    align-items: flex-start !important;
  }

  .column-head h2 {
    font-size: 19px !important;
  }

  .month-filter {
    max-width: none !important;
  }

  .timeline {
    padding: 14px !important;
  }

  .news-item {
    padding: 15px !important;
    border-radius: 16px !important;
  }

  .term-card {
    min-height: auto !important;
    padding: 14px !important;
  }

  .term-note {
    gap: 6px !important;
  }

  .section-pager {
    align-items: center !important;
    padding: 0 16px 16px !important;
  }

  body[data-page="knowledge"] .section-pager {
    padding: 0 6px 16px !important;
    overflow: hidden !important;
  }

  body[data-page="knowledge"] .filter-row,
  #category-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
    -webkit-overflow-scrolling: touch;
  }

  #category-filters .filter-chip {
    flex: 0 0 auto !important;
  }

  .layout {
    grid-template-columns: 1fr !important;
  }

  .field-stack input,
  .field-stack textarea,
  .field input,
  .field textarea,
  .field select {
    font-size: 16px !important;
  }

  .post-images {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .image-preview {
    width: 86px !important;
    height: 68px !important;
  }

  .forum-pagination {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-inline: 16px !important;
  }

  .hero-badges {
    gap: 8px !important;
  }

  .hero-badges span {
    height: 28px !important;
    font-size: 11px !important;
  }

  .type-option {
    padding: 14px !important;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100vw - 20px, 1280px) !important;
  }

  .hero-shell,
  .hero-card,
  .search-shell {
    padding: 18px !important;
  }

  .section-card,
  .panel,
  .card {
    padding: 14px !important;
  }

  .product-card-main {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }

  .product-visual-wrap,
  .product-visual {
    width: 76px !important;
  }

  .product-visual {
    height: 76px !important;
    min-height: 76px !important;
  }

  .spec-tags {
    grid-template-columns: 1fr !important;
  }

  .spec-tag.wide {
    grid-column: span 1 !important;
  }

  .product-actions,
  .compare-inline-actions,
  .submit-row {
    grid-template-columns: 1fr !important;
  }

  .nav-menu a {
    min-width: 58px !important;
    font-size: 11px !important;
  }
}

/* Mobile theme keeps the low-priority body fallback. The current mobile role
   scale belongs to site-font.css; mobile-typography.css owns its consumers.
   The historical 13/14px decision was resolved by the 2026-10-25 review. */
:root {
  --mobile-font-body: 14px;
  --mobile-font-meta: var(--type-meta-size);
}

html body.mobile-page[class] {
  font-size: 15px;
}

html body.mobile-page[class] :where(p, li, dd, dt, figcaption) {
  /* A fallback must not enlarge captions or compete with semantic roles. */
  font-size: var(--type-body-size);
  line-height: var(--type-body-line-height);
}
