/* Shared mobile journal shell. Desktop typography and layouts stay in style.css. */
.app-bottom-nav { display: none; }
:focus-visible { outline: 3px solid #87B822; outline-offset: 4px; }
@media (max-width: 1024px) {
  :root { --app-bar-height: 72px; }
  html { scroll-padding-top: 90px; scroll-padding-bottom: 100px; }
  body { padding-bottom: calc(var(--app-bar-height) + env(safe-area-inset-bottom, 0px)); }
  .top-bar { display: none; }
  .site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(16px); box-shadow: 0 2px 20px #0f2b3809; padding-top: env(safe-area-inset-top, 0px); }
  .header-inner { min-height: 72px; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .brand-wrapper, .brand-text { min-width: 0; }
  .brand-emblem-link { gap: 9px; }
  .brand-emblem-img { width: 39px; height: 39px; }
  .journal-title { font-size: 1.45rem; }
  .journal-tagline { font-size: 7px; letter-spacing: .025em; margin-top: 6px; }
  .brand-separator, .wuf-co-brand, .header-actions > .btn { display: none; }
  .header-actions { gap: 0; flex-shrink: 0; }
  .mobile-toggle { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: #eaf3f2; color: #083e43; }
  .mobile-toggle svg { width: 23px; height: 23px; }
  .app-bottom-nav { position: fixed; inset: auto 0 0; z-index: 1500; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px,env(safe-area-inset-left)); min-height: var(--app-bar-height); background: rgba(255,255,255,.97); backdrop-filter: blur(20px); border-top: 1px solid #dfe9e7; box-shadow: 0 -6px 28px #0f2b3808; }
  .app-tab { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-height: 56px; border: 0; background: transparent; border-radius: 13px; color: #526766; font-family: var(--font-sans); font-size: 11px; font-weight: 600; line-height: 1.3; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .app-tab svg { width: 22px; height: 22px; }
  .app-tab.active { background: #e9f3ee; color: #083e43; font-weight: 800; }
  .app-tab.active svg { stroke-width: 2.2; }
  .app-tab:active { background: #e9f3ee; transform: translateY(1px); }
  .back-to-top { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 42px; height: 42px; }
  .mobile-drawer-backdrop { background: #092c39a6; }
  .mobile-drawer { width: 390px; max-width: calc(100vw - 24px); padding: max(22px,env(safe-area-inset-top)) 22px max(24px,env(safe-area-inset-bottom)); background: #fafcf9; border-radius: 24px 0 0 24px; visibility: hidden; transition: transform .25s ease, visibility .25s; overscroll-behavior: contain; }
  .mobile-drawer.open { visibility: visible; }
  .app-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
  .app-eyebrow { display: block; font-size: 8px; letter-spacing: .13em; color: #5f7771; font-weight: 700; margin-bottom: 7px; }
  .drawer-brand { font-size: 1.7rem; }
  .mobile-drawer-close { flex-shrink: 0; width: 44px; height: 44px; color: #083e43; background: #e9f0ec; font-size: 28px; }
  .app-menu-feature { display: flex; align-items: center; gap: 14px; padding: 18px 14px; background: #083e43; color: #fff; border-radius: 16px; }
  .app-menu-feature > svg:first-child { width: 28px; height: 28px; flex-shrink: 0; color: #b6d779; }
  .app-menu-feature > svg:last-child { width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; }
  .app-menu-feature > span { display: grid; gap: 3px; }
  .app-menu-feature small { color: #c9dfba; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
  .app-menu-feature strong { font-size: 12px; color: #fff; }
  .app-menu-feature span span { font-size: 10px; color: #bfd7d4; }
  .app-menu-group { margin-top: 23px; }
  .app-menu-group h2 { font: 700 10px var(--font-sans); text-transform: uppercase; letter-spacing: .1em; color: #6b8079; margin: 0 0 8px 10px; }
  .mobile-drawer .nav-link { min-height: 47px; padding: 11px 12px; font-size: 14px; border: none; justify-content: space-between; border-radius: 10px; }
  .mobile-drawer .nav-link svg { width: 15px; height: 15px; color: #8aa19a; }
  .mobile-drawer .nav-link.active { border: none; background: #e7f0e9; }
  .app-menu-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid #dfe8df; }
  .app-menu-footer .btn { width: 100%; gap: 12px; border-radius: 12px; font-size: 12px; }
  .app-menu-footer svg { width: 17px; height: 17px; }
  .app-menu-footer p { font-size: 10px; text-align: center; color: #698078; margin: 14px 0 0; }
}
@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }
  body { background: #f6f8f5; }
  .hero-section { padding: 30px 0 28px; border-radius: 0 0 28px 28px; }
  .hero-grid { gap: 26px; }
  .hero-badge { font-size: 10px; letter-spacing: .025em; padding: 7px 10px; margin-bottom: 20px; }
  .hero-badge .dot { width: 6px; height: 6px; flex-shrink: 0; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); margin-bottom: 12px; }
  .hero-tagline-quote { font-size: 1.25rem; line-height: 1.4; margin-bottom: 14px; }
  .hero-description { font-size: 14px; line-height: 1.8; margin-bottom: 20px; color: #d0e3df; }
  .hero-ctas { margin-bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .hero-ctas .btn { font-size: 12px; padding: 12px 8px; min-height: 44px; border-radius: 11px; }
  .hero-ctas .btn:last-child { grid-column: 1 / -1; background: transparent; border: none; color: #d3e5de; min-height: 32px; padding: 5px; }
  .hero-meta-points { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding-top: 18px; margin-top: 18px; }
  .meta-value { font-size: 12px; }
  .meta-label { font-size: 8px; line-height: 1.5; }
  .hero-card { width: 100%; max-width: 420px; border-radius: 18px; }
  .hero-cover-display { padding: 20px; }
  .hero-cover-img { max-height: 260px; width: auto; margin: auto; }
  .hero-card-footer { padding: 18px; }
  .hero-card-title { font-size: 1.1rem; }
  .hero-card-actions { gap: 8px; }
  .hero-card-actions .btn { flex: 1; padding: 10px 8px; font-size: 10px; }
  .issue-date { font-size: 9px; }
  .section { padding: 32px 0; }
  .section-header { margin-bottom: 24px; }
  .section-title { font-size: clamp(1.6rem,7vw,2rem); line-height: 1.3; }
  .section-subtitle { font-size: 9px; letter-spacing: .12em; }
  .section-desc { font-size: 13px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 22px; border-radius: 18px; box-shadow: 0 4px 18px #143d2b05; }
  .card-title { font-size: 1.2rem; }
  .card-text { font-size: 13px; line-height: 1.75; }
  .card-icon { width: 44px; height: 44px; margin-bottom: 16px; border-radius: 13px; }
  .page-hero { padding: 32px 0; }
  .page-hero-title, .page-title { font-size: 1.9rem; line-height: 1.25; }
  .page-hero-desc, .page-subtitle { font-size: 13px; line-height: 1.7; }
  .btn { min-height: 44px; max-width: 100%; white-space: normal; text-align: center; }
  input:not([type=radio]):not([type=checkbox]), select, textarea { font-size: 16px; max-width: 100%; border-radius: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .contact-card { padding: 22px; border-radius: 18px; }
  .tabs-nav { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; scrollbar-width: none; }
  .tab-btn { flex-shrink: 0; min-height: 44px; }
  .article-header-section { padding: 28px 0; }
  .article-main-title { font-size: 1.65rem; line-height: 1.35; overflow-wrap: anywhere; }
  .article-content-column { padding: 22px 18px; min-width: 0; border-radius: 18px; }
  .article-body { font-size: 16px; line-height: 1.85; }
  .article-toolbar-inner, .toolbar-actions { flex-wrap: wrap; gap: 8px; }
  .article-action-toolbar { position: static; }
  .toolbar-metrics { flex-wrap: wrap; gap: 10px; }
  .journal-header-strip-content { flex-wrap: wrap; gap: 6px; }
  .article-grid-layout > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
  .academic-table-wrap, .table-responsive { max-width: 100%; overflow-x: auto; }
  .academic-data-table { min-width: 520px; }
  .issue-featured-card { padding: 22px 18px; border-radius: 20px; }
  .issue-featured-title { font-size: 1.5rem; }
  .issue-actions { flex-wrap: wrap; gap: 8px; }
  .toc-entry { padding: 20px 16px; }
  .toc-entry-header { flex-wrap: wrap; }
  .cite-modal { max-height: calc(100dvh - 40px); overflow-y: auto; }
  .footer-top { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 768px) {
  .spec-box, .form-panel, .pricing-card { padding: 22px 18px; border-radius: 18px; }
  .pricing-card.featured { transform: none; }
  .spec-grid { grid-template-columns: 1fr; }
  .page-hero-title { overflow-wrap: anywhere; }
  .hero-card-actions { flex-wrap: wrap; }
  .hero-card-actions .btn { font-size: 11px; }
  .hero-card-meta { flex-wrap: wrap; gap: 7px; }
  .article-content-column p, .article-content-column li { overflow-wrap: break-word; }
  .footer-contact-item a { overflow-wrap: anywhere; }
  .card > .btn { white-space: normal; text-align: center; }
}

/* Intrinsic-width fixes: allow content to shrink and wrap inside its own layout. */
.journal-pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manuscript-spec-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.issue-overview-grid { grid-template-columns: auto minmax(0, 1fr); }
.issue-index-layout { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 1200px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { flex-basis: 100%; order: 3; }
  .nav-list { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 1024px) {
  body { overflow-wrap: anywhere; }
  .header-inner { flex-wrap: nowrap; }
  .container :where(div, article, aside, section, form, ul, li, fieldset),
  .mobile-drawer :where(div, nav, span), .app-tab { min-width: 0; }
  .article-grid-layout, .issue-index-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .pillar-grid, .member-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .responsive-row { flex-wrap: wrap; column-gap: 12px; row-gap: 8px; }
  .responsive-row > * { min-width: 0; max-width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tariff-table-wrapper, .academic-table-wrap, .table-responsive, .journal-table-scroll {
    width: 100%; max-width: 100%; min-width: 0; overflow-x: auto;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  }
  .tariff-table, .academic-data-table { overflow-wrap: normal; }
  .tool-btn, .toc-action-link, .btn, .country-pill, .issue-badge-tag, .article-type-pill {
    max-width: 100%; white-space: normal; overflow-wrap: anywhere;
  }
  .toc-btn-group { flex-wrap: wrap; }
  .tool-btn svg, .toc-action-link svg { flex-shrink: 0; }
  input, select, textarea, fieldset { min-width: 0; max-width: 100%; }
  .app-menu-feature > span, .mobile-drawer .nav-link > span { min-width: 0; }
  .mobile-drawer .nav-link { white-space: normal; gap: 10px; }
  .mobile-drawer .nav-link svg { flex-shrink: 0; }
  .journal-header-strip-content, .article-header-meta, .article-meta-row { flex-wrap: wrap; }
  .breadcrumb { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .spec-grid, .issue-featured-card,
  .journal-pair-grid, .manuscript-spec-grid, .issue-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .responsive-panel { padding: 24px 18px !important; }
  .hero-ctas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-title { max-width: 100%; }
  .hero-badge, .badge-tag { max-width: 100%; white-space: normal; }
  .article-abstract-box, .toc-entry-card, .article-preview-card { padding: 20px 16px; }
  .article-toolbar { position: static; }
  .tariff-table th, .tariff-table td { padding: 12px; }
  .journal-table-scroll table { min-width: 300px; }
  .issue-overview-grid { gap: 20px !important; }
  .issue-overview-grid > img { max-width: 160px; }
  .issue-overview-grid h1 { font-size: 1.8rem !important; }
  .responsive-panel h2 { overflow-wrap: anywhere; }
  .responsive-panel .btn[style*="margin-left"] { margin-left: 0 !important; margin-top: 10px; }
}
