/* PLAY MAGAZINE v10.4 — mobile-first enhancement.
   Front-end only: scoped to PLAY editorial pages, no dashboard changes. */
@media (max-width: 767px) {
  body.pm-page,body.pm-editorial { overflow-x: clip; -webkit-text-size-adjust: 100%; }
  body.pm-page .pm-wrap,body.pm-editorial .pm-wrap { width: calc(100% - 32px); max-width: 100%; margin-inline: auto; }
  body.pm-page :is(main,section,article,aside),body.pm-editorial :is(main,section,article,aside) { min-width: 0; }
  body.pm-page img,body.pm-editorial img { max-width:100%; height:auto; }
  body.pm-page :is(button,input,select,textarea),body.pm-editorial :is(button,input,select,textarea) { font-size:16px; }
  body.pm-page :is(a,button,input,select),body.pm-editorial :is(a,button,input,select) { touch-action:manipulation; }
  body.pm-page :is(a,button,input,select,textarea):focus-visible,body.pm-editorial :is(a,button,input,select,textarea):focus-visible { outline:3px solid #ff008b; outline-offset:3px; }

  /* Article: readable first screen, comfortable paragraph rhythm, no crowded TOC. */
  body.pm-editorial .pm-single,body.pm-editorial .pm-archive-page { width:100%; max-width:100%; padding-block:18px 55px; }
  body.pm-editorial .pm-article,body.pm-editorial .pm-reading-body { width:100%; max-width:100%; min-width:0; }
  body.pm-editorial .pm-article-head h1 { font-size:clamp(27px,7.1vw,35px); line-height:1.44; letter-spacing:-.035em; }
  body.pm-editorial .pm-summary { font-size:15px;line-height:1.85; padding:14px 15px; margin-block:15px 18px; }
  body.pm-editorial .pm-byline { font-size:12px; line-height:1.6; }
  body.pm-editorial .pm-article-hero { margin:17px 0 12px; }
  body.pm-editorial .pm-article-content { font-size:16px;line-height:1.95;letter-spacing:.005em;padding:5px 0 12px; }
  body.pm-editorial .pm-article-content p { margin:0 0 1.5em; }
  body.pm-editorial .pm-article-content h2 { font-size:23px;line-height:1.48;margin:43px 0 20px;padding-bottom:11px; }
  body.pm-editorial .pm-article-content h3 { font-size:19px;line-height:1.55;margin:30px 0 16px; }
  body.pm-editorial .pm-article-content :is(ul,ol) { padding-left:1.35em; }
  body.pm-editorial .pm-article-content :is(a,button) { overflow-wrap:anywhere; }
  body.pm-editorial .pm-reading-grid { display:flex;flex-direction:column;gap:17px;margin:16px auto 25px; }
  body.pm-editorial .pm-reading-aside { width:100%;order:0;position:static; }
  body.pm-editorial .pm-reading-body { width:100%;order:1; }
  body.pm-editorial .pm-toc { padding:14px 16px;border:1px solid #e7e3e1;border-top:3px solid #191919; }
  body.pm-editorial .pm-toc li a { padding:11px 0;font-size:14px;line-height:1.55; }
  body.pm-editorial .pm-facts { padding:15px;margin-bottom:23px; }
  body.pm-editorial .pm-facts dl>div { grid-template-columns:80px minmax(0,1fr);gap:9px;padding:10px 0; }
  body.pm-editorial .pm-event-details { max-width:100%;padding:15px;margin:18px 0; }
  body.pm-editorial .pm-event-details dl { grid-template-columns:minmax(75px,100px) minmax(0,1fr);gap:8px; }
  body.pm-editorial .pm-journey-links { grid-template-columns:1fr; }
  body.pm-editorial .pm-journey-links a { min-height:48px;padding:14px; }

  /* WP block tables scroll as a unit instead of overflowing the viewport. */
  body.pm-editorial .pm-article-content .wp-block-table { overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%; }
  body.pm-editorial .pm-article-content .wp-block-table table { display:table;min-width:440px;max-width:none;width:100%; }
  body.pm-editorial .pm-article-content>table { display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;width:100%; }
  body.pm-editorial .pm-article-content :is(table,.wp-block-table table) :is(td,th) { padding:10px 12px;white-space:normal;overflow-wrap:normal;word-break:normal; }
  body.pm-editorial .pm-article-content :is(table,.wp-block-table table) :is(th:first-child,td:first-child) { white-space:nowrap; }

  /* Artist discovery: usable cards and horizontal kana navigation. */
  body.pm-editorial .pm-directory-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px; }
  body.pm-editorial .pm-directory-item strong { font-size:15px;line-height:1.5;overflow-wrap:anywhere; }
  body.pm-editorial .pm-directory-item small { font-size:12px;line-height:1.5; }
  body.pm-editorial .pm-kana-links { flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;gap:7px;padding:12px 1px 15px;margin:12px 0 17px; }
  body.pm-editorial .pm-kana-links a { flex:0 0 auto;scroll-snap-align:start;min-width:42px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px; }
  body.pm-editorial .pm-artist-search-row :is(input,button) { min-height:46px; }
  body.pm-editorial .pm-pagination { flex-wrap:wrap; }

  /* Front page: short scan-friendly sections. */
  body.pm-page .pm-top { min-height:58px; }
  body.pm-page .pm-nav.pm-open { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px; }
  body.pm-page .pm-nav a { display:flex;align-items:center;min-height:44px;padding:10px; }
  body.pm-page .pm-lead-text h1 { font-size:clamp(23px,6.5vw,29px);line-height:1.42; }
  body.pm-page .pm-heading h2 { font-size:23px;line-height:1.35; }
  body.pm-page .pm-pickup a { min-width:0; }
  body.pm-page .pm-follow>a { min-height:44px;padding:11px 15px; }
  body.pm-page .pm-diagnosis-banner { padding:20px 17px; }

  /* Calendar: date selector first, then readable event rows. */
  body.pm-editorial .pmc-page,body.pm-page .pmc-page { min-width:0; }
  .pmc-hero { padding:24px 0 23px; }
  .pmc-hero h1 { font-size:clamp(28px,8vw,36px);line-height:1.25; }
  .pmc-hero p { font-size:14px;line-height:1.7; }
  .pmc-main { display:flex;flex-direction:column;gap:16px;padding-top:15px; }
  .pmc-filters,.pmc-results,.pmc-detail { width:100%;min-width:0;position:static; }
  .pmc-filters { padding:17px 16px;margin:0; }
  .pmc-filters h2 { font-size:18px;margin-bottom:7px; }
  .pmc-filters label { margin:12px 0 6px; }
  .pmc-filters :is(input,select) { min-height:45px; }
  .pmc-filters button[type=submit] { min-height:48px;margin-top:16px; }
  .pmc-topline { flex-wrap:wrap;gap:10px; }
  .pmc-month { min-width:0; }
  .pmc-month a { min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center; }
  .pmc-month h2 { font-size:21px;white-space:nowrap; }
  .pmc-view-switch { margin-left:auto; }
  .pmc-view { min-height:40px;padding:9px 12px; }
  .pmc-day { min-height:49px;padding:3px 2px; }
  .pmc-day-num { display:inline-flex;min-width:29px;min-height:29px;align-items:center;justify-content:center;font-size:12px; }
  .pmc-calendar-event { height:7px;margin:3px auto 0;width:75%;border-radius:4px; }
  .pmc-more { font-size:9px;line-height:1.2; }
  .pmc-item-open { gap:10px;min-height:88px;padding:12px 2px; }
  .pmc-thumb { width:84px;height:68px; }
  .pmc-item-body strong { font-size:15px;line-height:1.45; }
  .pmc-item-body small,.pmc-item-meta { font-size:12px;line-height:1.5; }
  .pmc-chevron { font-size:22px; }
  .pmc-detail { margin-top:0;padding:17px; }
  .pmc-detail :is(.pmc-action,button) { min-height:46px; }
  .pmc-undated { overflow-wrap:anywhere; }
}
@media (max-width: 360px) {
  body.pm-page .pm-wrap,body.pm-editorial .pm-wrap { width:calc(100% - 24px); }
  body.pm-editorial .pm-article-head h1 { font-size:26px; }
  body.pm-editorial .pm-directory-grid { gap:11px 9px; }
  .pmc-thumb { width:70px;height:62px; }
  .pmc-item-body strong { font-size:14px; }
}
