/* Responsive refinements shared by public pages and the admin portal. */
main, .intro > *, .catalog-tools > *, .quiz, .post-card, .ranking-article,
.review-page, .admin-product, .field, fieldset { min-width: 0; }
.table-scroll { max-width: 100%; overscroll-behavior-x: contain; }
@media (max-width: 800px) {
  html { scroll-padding-top: 135px; }
  main { padding-inline: 20px; }
  .nav { padding: 14px 20px 8px; gap: 12px; }
  .nav-links { display: flex; width: 100%; gap: 8px; padding: 0; align-items: stretch; }
  .nav-links a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 4px; text-align: center; font-size: 13px; }
  .nav-links a[aria-current=page] { padding-bottom: 6px; }
  .intro { padding: 28px 0 32px; gap: 24px; }
  .intro-copy { padding: 14px 0 8px 18px; }
  .intro h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.08; letter-spacing: -.04em; margin-bottom: 18px; }
  .intro .lead { font-size: 15px; line-height: 1.65; margin-bottom: 0; }
  .intro-copy .eyebrow { margin-bottom: 16px; }
  .quiz { width: 100%; padding: 22px 18px; }
  .quiz h2 { font-size: 27px; }
  .quiz-option { min-height: 48px; font-size: 13px; }
  .quiz-actions { flex-wrap: wrap; }
  .btn, .text-button, .filter, .product-actions button, .product-actions a { min-height: 44px; }
  .field input, .field select, .field textarea { font-size: 16px; max-width: 100%; }
  .catalog-tools { gap: 12px; }
  .catalog-tools > .field { flex: 1 1 180px; }
  .filters { gap: 8px; }
  .filter { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
  .section-head, .footer-top { min-width: 0; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
  .top-heading { padding: 30px 18px; margin: 24px 0; }
  .post-card h2 { font-size: 25px; line-height: 1.2; overflow-wrap: anywhere; }
  .post-card > div:not(.post-placeholder) { padding: 20px; }
  .ranking-article, .review-page { padding: 26px 0 40px; }
  .breadcrumbs { margin-bottom: 24px; overflow-wrap: anywhere; }
  .rich-post { font-size: 16px; line-height: 1.7; }
  .rich-post h1 { font-size: 28px; }
  .rich-post h2 { font-size: 24px; }
  .rich-post h3 { font-size: 21px; }
  .rich-post img, .rich-post video, .rich-post iframe { max-width: 100%; }
  .rich-post table { display: block; max-width: 100%; overflow-x: auto; }
  .rich-post pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .article-cover { margin-inline: 0; }
  .review-purchase { flex-wrap: wrap; }
  .admin-row { align-items: flex-start; flex-wrap: wrap; }
  .admin-product { overflow-wrap: anywhere; }
  .admin-product img { flex-shrink: 0; }
  .taxonomy-row { flex-wrap: wrap; gap: 8px; }
  .taxonomy-row > div { flex-wrap: wrap; }
  .word-editor .ql-toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
  .word-editor .ql-editor { padding: 16px; }
  .word-editor .ql-tooltip { white-space: normal; }
}
@media (max-width: 480px) {
  main { padding-inline: 16px; }
  .nav { padding-inline: 16px; }
  .brand { font-size: 22px; }
  .brand small { font-size: 9px; }
  .nav-links { gap: 4px; }
  .nav-links a { font-size: 12px; }
  .section-head h2 { font-size: 30px; }
  .cat-grid, .advent-grid { gap: 10px; }
  .advent-door { min-height: 170px; padding: 18px 15px; }
  .door-number { font-size: 40px; }
  .door-name { font-size: 17px; }
  .product-img { height: 260px; padding: 18px; }
  .product-body { padding: 20px; }
  .product h3 { font-size: 23px; }
  .product-actions button, .product-actions a { font-size: 13px; }
  .review-link { min-height: 44px; }
  .post-card > img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
  .article-cover img, .review-image { height: 260px; padding: 16px; }
  .admin-portal .modal { padding-top: 16px; }
  .admin-portal .portal-header { padding: 18px 16px; }
  .admin-tabs .btn { flex: 1 1 110px; font-size: 13px; }
  .admin-portal fieldset { padding: 14px 10px; margin-inline: 0; }
  .image-editor { padding: 12px; }
  .field input[type=file] { font-size: 13px; height: auto; }
}
@media (max-width: 359px) {
  .quiz-options { grid-template-columns: 1fr; }
  .nav-links a { font-size: 11px; }
  .brand { font-size: 20px; }
  .door-name { font-size: 16px; }
}
