/*
Theme Name: Travel of China — NewsPlus Child
Template: newsplus
Author: Travel of China
Description: Faithful WordPress conversion of Travel-of-China-V6-Homepage-Review.html, with local assets, city shopping tabs, app guides, search and native homepage settings.
Version: 6.1.3
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: travelofchina
Tags: blog, custom-logo, custom-menu, featured-images, theme-options
*/

/* Integration rules only: the complete original cascade is in assets/css/home.css. */
.toc-content { min-height: 60vh; padding-block: 72px; }
.toc-content h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 28px; }
.toc-content h2 { font-size: 1.8rem; }
.toc-entry { padding-block: 28px; border-bottom: 1px solid var(--line); }
.toc-entry p { margin-top: 16px; }
.toc-entry-content { max-width: 840px; overflow-wrap: anywhere; }
.toc-entry-content > * + * { margin-top: 24px; }
.toc-entry-content img { height: auto; }
.toc-entry-content iframe { max-width: 100%; }
.toc-pagination { padding-top: 32px; }
.toc-search-form { display: flex; gap: 12px; max-width: 600px; margin-block: 24px; }
.toc-search-form input { min-width: 0; flex: 1; padding: 12px; border: 1px solid var(--line); border-radius: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { position: static; width: auto; height: auto; clip-path: none; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 24px 24px 0; }
.alignright { float: right; margin: 0 0 24px 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .875rem; color: var(--muted); }

/* Opt-in block layout changes. No rule below changes the default V6 markup. */
.toc-custom-width > .wrap { max-width: var(--toc-width); }
.toc-block-home > p, .toc-block-home > h2, .toc-block-home > h3, .toc-block-home > figure { max-width: 1184px; margin: 24px auto; padding-inline: 24px; }
.toc-block-home > .alignwide { max-width: 1440px; margin-inline: auto; }
.toc-block-home > .alignfull { max-width: none; width: 100%; margin-inline: 0; }
.toc-empty { padding: 24px; color: var(--muted); }
.rule-guide-icon img { width: 36px; height: 36px; object-fit: contain; }

.app-guide-card > img { object-fit: contain; }
@media (min-width: 768px) {
  #shopping-picks.toc-custom-columns .city-malls .mall-list,
  #field-notes.toc-custom-columns .app-guide-grid,
  #entry-rules.toc-custom-columns .rule-guide-grid,
  #cities.toc-custom-columns .city-grid,
  .toc-post-section.toc-custom-columns .app-guide-grid { grid-template-columns: repeat(var(--toc-columns), minmax(0, 1fr)); }
  #shopping-picks.toc-custom-gap .city-malls .mall-list,
  #field-notes.toc-custom-gap .app-guide-grid,
  #entry-rules.toc-custom-gap .rule-guide-grid,
  #cities.toc-custom-gap .city-grid,
  .toc-post-section.toc-custom-gap .app-guide-grid,
  #hero.toc-custom-gap .hero-grid { gap: var(--toc-gap); }
  #hero.toc-custom-hero .hero-grid { grid-template-columns: minmax(0, var(--toc-hero-left)) minmax(0, var(--toc-hero-right)); }
}
