/* phone layout from the article page, loaded after nav.css */
@media (max-width: 760px) {
  .logo img { height: 70px; width: auto; }
  .page > .shell {
    width: 100%; box-sizing: border-box; padding: 0 20px 12px; overflow-x: clip;
  }
  .post-wrap, .post-layout, .post-layout > div, .post-body, .post-body figure {
    min-width: 0; max-width: 100%;
  }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-body img, .post-body figure, .post-body figure img {
    min-width: 0 !important; max-width: 100% !important; width: 100% !important;
  }
  .page > .shell > .hero-img {
    display: block; min-width: 0; width: 100%; max-width: 100%; height: 180px;
    margin: 16px 0 4px; border-radius: 12px; object-fit: contain;
  }
  .page > .shell > .crumb { margin: 16px 0 14px; font-size: 12px; }
  .post-title, .post-meta, .post-body, .post-tags, .author-box, .post-nav,
  .comments, .side-author-card, .side-block, .cat-box {
    max-width: calc(100vw - 40px);
  }
  .post-title {
    max-width: none; margin: 0 0 16px;
    font-size: 28px; line-height: 1.22; font-weight: 400; letter-spacing: -0.4px;
  }
  .post-meta {
    background: transparent; padding: 0; margin: 0 0 22px; gap: 10px 12px;
    font-size: 13px;
  }
  .post-meta .cat { flex: 0 0 auto; }
  .post-meta .byline { flex: 1 1 160px; min-width: 0; color: #5c5c62; }
  .post-meta .shares { flex-basis: 100%; margin: 4px 0 0; align-items: center; }
  .post-meta .shares::before { content: 'Share:'; margin-right: 8px; font: 400 14px/1 Inter, sans-serif; color: #3a3a3f; }
  .post-meta .share {
    width: 32px; height: 32px; background: transparent; border-color: #3a3a3f; color: #3a3a3f;
  }
  .post-meta .share svg { width: 14px; height: 14px; display: block; }
  .post-body { font-size: 15px; line-height: 26px; }
  .post-body h2 { font-size: 22px; line-height: 1.3; font-weight: 500; }
  .post-body blockquote {
    margin: 24px 0; padding: 16px 18px; background: #f4f1e8;
    border-left: 3px solid #E6B24A; font-size: 16px; line-height: 1.5;
  }
  .post-body img, .post-body figure img { border-radius: 8px; }
  .post-tags { margin: 28px 0 22px; }
  .author-box {
    grid-template-columns: 1fr; gap: 8px; padding: 18px 16px; margin: 0 0 18px;
    background: #e8eef6;
  }
  .author-box .avatar, .author-box .avatar-fallback { display: none; }
  .author-box h3 { font-size: 16px; font-weight: 500; }
  .post-nav {
    flex-direction: row !important; align-items: stretch; gap: 10px;
    margin: 0 0 8px; padding-top: 0;
  }
  .post-nav a, .post-nav .to-next {
    flex: 1 1 0; max-width: none; margin-left: 0; min-width: 0;
    min-height: 0; padding: 12px;
  }
  .post-nav .label { font-size: 12px; }
  .post-nav h3 { font-size: 13px; line-height: 1.35; }
  .acc { margin: 0; }
  .acc-label {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin: 0; padding: 18px 6px 18px 0; border-bottom: 1px solid #e4e2db;
    cursor: pointer; font: 500 16px/1.3 Poppins, sans-serif; color: #3a3a3f;
    overflow: visible;
  }
  .acc-label::after {
    content: ''; width: 9px; height: 9px; flex: 0 0 9px; margin: 0 2px 5px 0;
    border-right: 2px solid #3a3a3f; border-bottom: 2px solid #3a3a3f;
    transform: rotate(45deg);
  }
  .acc-check:checked + .acc-label::after { transform: rotate(-135deg); margin-bottom: 0; margin-top: 4px; }
  .acc-panel { display: none; padding: 14px 0 8px; }
  .acc-check:checked ~ .acc-panel { display: block; }
  .acc-panel > h2 { display: none; }
  .comments { margin: 8px 0 0; }
  .comment-form-wrap { margin-top: 8px; }
  .side-author-card { margin: 0; }
  .side-author { grid-template-columns: 1fr; margin: 0 0 14px; }
  .side-avatar, .side-avatar-fallback, .side-author h2 { display: none; }
  .side-block { margin: 0; }
  .cat-box {
    margin: 22px 0 8px; padding: 0; border-radius: 10px; overflow: visible;
  }
  .cat-box .acc-label {
    color: #E6B24A; border-bottom: 0; padding: 16px 20px 16px 18px;
    font: 500 16px/1.2 Poppins, sans-serif;
  }
  .cat-box .acc-label::after { border-color: #E6B24A; }
  .cat-box .acc-panel { padding: 0 18px 14px; }
  .cat-box .acc-check:checked + .acc-label { border-bottom: 0; }
  #related-section { padding: 28px 0 8px; }
  #related-section .section-inner { padding: 0 20px; }
  #related-section h2 {
    margin: 0 0 18px; font-size: 28px; font-weight: 400; line-height: 1.25; letter-spacing: -0.4px;
  }
  #related-grid {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    align-items: stretch !important; gap: 12px !important; width: 100% !important;
    overflow-x: auto !important; overflow-y: hidden !important; overscroll-behavior-y: none;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  #related-grid::-webkit-scrollbar { display: none; }
  #related-grid .post-card {
    flex: 0 0 calc(100% - 36px) !important; width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important; min-width: 0 !important;
    scroll-snap-align: start; scroll-snap-stop: always;
  }
  #related-grid .post-card img { height: 160px; border-radius: 10px; }
  #related-grid .post-card .tag {
    margin: 12px 0 10px; background: transparent; color: #3a3a3f;
    border: 1px solid #c8c4bc;
  }
  #related-grid .post-card h3 { font-size: 16px; line-height: 1.35; }
  .post-pager.is-dots:not([hidden]) { display: flex; justify-content: center; gap: 8px; margin: 18px 0 8px; }
  .post-pager.is-dots button {
    width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
    background: #d9d3c4; cursor: pointer;
  }
  .post-pager.is-dots button.is-active { background: #E6B24A; }
}
