/*
Theme Name: AI Press Reaction PC
Theme URI: https://example.invalid/
Author: AI Press
Description: AI出版社 海外の反応ブログ用 PC先行プロトタイプ。モバイル独自UIは未設計です。
Version: 0.2.34
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: aipress
*/
:root{--accent:#342d66;--text:#111;--link:#342d66;--muted:#929292;--border:#dedede}*{box-sizing:border-box}body{margin:0;background:white;color:var(--text);font-family:Arial,'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;font-size:15px;line-height:1.8}a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}button,input,textarea,select{font:inherit}.site-wrap{width:1308px;max-width:100%;margin:0 auto}.site-header{padding:10px 20px 6px;display:flex;gap:16px;align-items:flex-start;justify-content:space-between}.brand{width:312px;flex:none}.brand img{width:312px;height:75px;object-fit:contain;object-position:left center}.brand-name{height:75px;display:flex;align-items:center;font-size:30px;font-weight:800;color:var(--accent)}.brand-description{font-size:10px;color:#999;line-height:1.4}.brand-links{display:flex;height:25px;background:#999;align-items:stretch}.brand-links a{flex:1;min-width:0;color:#fff;text-align:center;font-size:12px;line-height:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-popular{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;flex:1;max-width:847px}.popular-tile{position:relative;height:101px;min-width:0;background:#242424;color:#fff;overflow:hidden;border:2px solid #161616}.popular-tile img{width:100%;height:100%;object-fit:cover;display:block}.popular-tile .popular-title{position:absolute;bottom:0;left:0;right:0;background:#000c;color:#fff;font-size:11px;font-weight:700;line-height:1.25;max-height:34px;overflow:hidden;padding:3px}.popular-count{position:absolute;right:0;top:0;background:#000c;color:white;font-size:11px;line-height:1.3;padding:1px 3px}.header-rss{margin:0 20px 10px;border:4px solid #e6e6e6;padding:7px;display:grid;grid-template-columns:1fr 1fr;gap:14px;height:400px;overflow:hidden}.rss-column{overflow-y:auto}.rss-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px dotted #ccc;font-size:13px;line-height:22px}.rss-label{font-size:12px;padding:1px 4px;margin-right:4px;background:#8cbd48;color:#fff}.rss-missing{color:#777}.layout{display:grid;grid-template-columns:226px 706px 376px;align-items:start}.sidebar{padding:0 20px}.main-content{padding:0 20px;min-width:0}.widget{margin-bottom:16px}.widget-title{background:#59372d;color:white;padding:5px 9px;border-radius:4px;font-size:13px;line-height:1.5;margin:0 0 7px;font-weight:bold}.widget ul{padding:0;margin:0;list-style:none}.widget li{padding:6px 0;border-bottom:1px dashed #ddd;font-size:13px;line-height:1.5}.widget img{max-width:100%}.widget input[type=search],.widget input[type=text]{max-width:100%;width:100%}.post-published{color:#999;font-size:13px;text-decoration:underline}.post-title{background:var(--accent);color:#fff;padding:14px 17px;border-radius:10px;font-size:22px;line-height:1.5;margin:0 0 15px}.post-title a{color:#fff}.post-meta{display:flex;justify-content:space-between;align-items:center;margin:0 0 30px;gap:12px;font-size:13px}.category-pills a{display:inline-block;background:var(--accent);color:white;padding:1px 7px;margin:0 5px 2px 0;border-radius:5px}.post-thumbnail{margin:0 0 25px;border:1px solid #cfcfcf;padding:3px}.post-thumbnail img{display:block;width:100%;height:auto}.post-body{font-size:16px;line-height:1.9;overflow-wrap:anywhere}.post-body p{margin:0 0 1.4em}.post-body iframe{max-width:100%}.post-body figure{max-width:100%}.post-body h2{font-size:22px;border-left:5px solid var(--accent);padding-left:12px;margin:28px 0 15px}.post-section{margin:28px 0}.post-section h2{font-size:22px;border-left:5px solid var(--accent);padding-left:10px}.post-section h3{font-size:18px}.ad-slot{min-height:20px;text-align:center;overflow:hidden;margin:24px auto}.ad-slot:empty{display:none}.text-link-list{margin:10px 0;padding:0;list-style:none}.text-link-list li{line-height:1.65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:2px 0}.text-link-list li:before{content:'▶';color:var(--accent);font-size:11px;margin-right:7px}.article-footer{background:#f5f5f5;padding:12px;margin:25px 0;font-size:14px}.article-footer a{margin-right:8px}.comments-area{margin-top:28px}.reader-comment{border-top:1px solid #ddd;padding:12px 0}.comment-form input,.comment-form textarea{width:100%;max-width:100%;border:1px solid #ccc;padding:8px}.comment-form input[type=submit]{width:auto;background:var(--accent);color:white;border:0;cursor:pointer;padding:8px 20px}.prev-next{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #ddd;margin:30px 0;padding:18px 0}.archive-entry{margin:0 0 40px}.archive-entry .post-thumbnail{margin:26px 0}.read-more{display:block;text-align:center;border:1px solid #ccc;padding:7px;border-radius:5px;background:#fafafa}.footer{margin-top:30px;padding:24px 20px;border-top:1px solid #ddd;color:#777}.pagination{margin:30px 0}.pagination .page-numbers{padding:5px 9px;border:1px solid #ddd;margin-right:4px}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden}@media(max-width:1307px){.site-wrap{overflow-x:auto}}@media(max-width:767px){.site-wrap{min-width:960px}body:before{content:'スマートフォン専用デザインは次工程で制作します';display:block;font-size:12px;background:#fff3ce;color:#654d00;padding:5px 12px}}

/* v0.1.1: independent header RSS scrolling and compact sidebar search */
.header-rss > div{min-height:0;min-width:0;overflow:hidden}
.header-rss .rss-column{height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.rss-category-image{width:90px;height:20px;object-fit:contain;vertical-align:middle;margin-right:5px;flex:none}
.rss-line{display:flex;align-items:center;min-width:0}
.rss-line a{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.sidebar .widget-title{background:var(--accent)}
.sidebar .widget:has(form[role="search"]) form[role="search"]{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;margin:0}
.sidebar .widget:has(form[role="search"]) form[role="search"] label{min-width:0;flex:1;margin:0}
.sidebar .widget:has(form[role="search"]) form[role="search"] input[type="search"]{display:block;width:100%;height:26px;min-width:0;padding:1px 5px;font-size:12px;border:1px solid #888;border-radius:1px;background:white}
.sidebar .widget:has(form[role="search"]) form[role="search"] input[type="search"]::placeholder{color:transparent}
.sidebar .widget:has(form[role="search"]) form[role="search"] button{height:26px;flex:none;white-space:nowrap;padding:1px 6px;font-size:12px;line-height:22px;border:1px solid #888;border-radius:1px;background:#f6f6f6;color:#111;cursor:pointer}

/* v0.1.2: requested PC typography, RSS, category and video adjustments */
body{font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,"Yu Gothic",sans-serif;line-height:1.58}
.post-body{line-height:1.6}
.post-body p{margin-bottom:1.15em}
.translated-reactions{line-height:1.6}
.header-rss .rss-line{font-size:14.3px;line-height:24px}
.category-pills a{background:#5c7999}
.rss-line a,.rss-slot-article a,.rss-slot-after_content a,.rss-slot-before_comments a,.rss-slot-after_comments a{color:#0000ff}
.post-body iframe[src*="youtube.com"],.post-body iframe[src*="youtube-nocookie.com"],.post-body iframe[src*="youtu.be"]{display:block;width:100%;max-width:666px;aspect-ratio:16/9;height:auto;max-height:none;border:0}
.post-body .wp-block-embed-youtube,.post-body .wp-block-embed-youtube .wp-block-embed__wrapper,.post-body .wp-block-embed-youtube iframe{width:100%;max-width:100%}
.ad-slot.ad-two-up{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.ad-slot.ad-two-up .ad-item{min-width:0;overflow:hidden;text-align:center}
.ad-slot.ad-two-up .ad-item iframe,.ad-slot.ad-two-up .ad-item img{max-width:100%}

/* v0.1.3: requested colors, RSS spacing, and date alignment */
.header-rss{margin-top:14px;margin-bottom:20px}
.rss-line a,.rss-slot-article a,.rss-slot-after_content a,.rss-slot-before_comments a,.rss-slot-after_comments a{color:#3d3d99}
.category-pills a{background:#2469b3}
.post-meta-right{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.post-meta-right .post-published{color:#555;text-decoration:none;font-size:13px;white-space:nowrap}
.aipress-popular-list{list-style:none;margin:0;padding:0}
.aipress-popular-list .aipress-popular-item{display:flex;gap:10px;align-items:flex-start;padding:5px 0 12px;margin:0;border:0}
.aipress-popular-thumb{display:block;flex:0 0 80px;width:80px;overflow:hidden}
.aipress-popular-thumb img{width:80px;height:65px;object-fit:cover;display:block}
.aipress-popular-text{min-width:0;flex:1}
.aipress-popular-text a{display:block;line-height:1.55;overflow-wrap:anywhere}
.aipress-popular-comments{display:inline-block;background:#000;color:white;border-radius:3px;padding:2px 5px;font-size:12px;line-height:1.4;margin-bottom:4px}

/* v0.1.4: ensure article and archive category tags use the requested color */
.main-content .category-pills a, .main-content .post-meta .category-pills a{background-color:#2469b3;color:#fff}

/* v0.1.5 typography: match measured kaikai CSS font stack from supplied DevTools screenshot */
body{font-family:"Hiragino Kaku Gothic Pro W3","Hiragino Kaku Gothic Pro",Meiryo,Osaka,sans-serif}
.post-body,.translated-reactions,.rss-line,.text-link-list{font-family:inherit}

/* v0.1.6: DevTools-captured font stack used by Kaikai Hanno */
body{font-family:"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック",sans-serif}
.post-body,.translated-reactions,.rss-line,.text-link-list{font-family:inherit}

/* v0.1.8: RSS links hover color only (all five RSS blocks) */
.rss-line a:hover,
.rss-slot-article a:hover,
.rss-slot-after_content a:hover,
.rss-slot-before_comments a:hover,
.rss-slot-after_comments a:hover { color:#991f1f; }

/* v0.1.9: apply RSS hover to rendered header and article links, overriding base/link rules */
.header-rss .rss-column .rss-line a:hover,
.header-rss .rss-column .rss-line a:focus-visible,
.main-content [class*="rss-slot-"] .text-link-list a:hover,
.main-content [class*="rss-slot-"] .text-link-list a:focus-visible,
[class*="rss-slot-"] a:hover,
[class*="rss-slot-"] a:focus-visible { color:#991f1f !important; }

/* v0.1.10: exact RSS output selectors, hover/focus and header navigation hover */
.header-rss .rss-line > a:is(:hover,:focus-visible),
.main-content .rss-slot-after_content a:is(:hover,:focus-visible),
.main-content .rss-slot-before_comments a:is(:hover,:focus-visible),
.main-content .rss-slot-after_comments a:is(:hover,:focus-visible),
.main-content [class*="rss-slot-"] a:is(:hover,:focus-visible) { color: #991f1f !important; }
.brand-links > a:hover,
.brand-links > a:focus-visible {background-color:#000000 !important;color:#ffffff !important;text-decoration:none;}

/* v0.1.12: requested PC header proportions, two-line titles, RSS height, category color */
.site-header{align-items:stretch}
.header-popular{max-width:none;align-self:stretch;min-height:100%;}
.popular-tile{height:100%;min-height:0;aspect-ratio:auto;}
.popular-tile .popular-title{font-size:12px;line-height:1.3;height:calc(2.6em + 6px);max-height:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;box-sizing:border-box;}
.header-rss{height:392px;}
.main-content .category-pills a,.main-content .post-meta .category-pills a{background-color:#E95295;color:#fff;}

/* v0.1.13: exact requested visual adjustments */
.header-rss{height:394px;}
.main-content .category-pills a,.main-content .post-meta .category-pills a{background-color:#cc3d7d;color:#fff;}
.header-popular .popular-tile .popular-title{font-size:13px;}
.comments-area .reader-comment > strong{font-weight:700;color:#2e8b57;}
/* WP core and plugins may append the comment cookie consent field after defaults are filtered. */
.comments-area .comment-form-cookies-consent{display:none!important;}

/* v0.1.14: keep the reader-comment area and following blocks within 666px content width */
.main-content > article,
.main-content > article > .comments-area,
.main-content > article > .ad-slot,
.main-content > article > .prev-next,
.main-content > article > [class*="rss-slot-"],
.main-content .comments-area,
.main-content .comments-area .comment-respond,
.main-content .comments-area .comment-form,
.main-content .comments-area .reader-comment,
.main-content .comments-area .children {
  width:100%;max-width:100%;min-width:0;
  box-sizing:border-box;
}
.main-content .comments-area .comment-form p,
.main-content .comments-area .comment-form textarea,
.main-content .comments-area .comment-form input:not([type="submit"]){max-width:100%;min-width:0;box-sizing:border-box;}
.main-content .comments-area .reader-comment,
.main-content .comments-area .comment-content,
.main-content .comments-area .reader-comment > div{overflow-wrap:anywhere;}
.main-content .comments-area iframe,
.main-content .comments-area img,
.main-content .comments-area pre,
.main-content .comments-area table{max-width:100%;}
.main-content .comments-area pre{overflow-x:auto;}
/* Exactly two visible title lines, without changing the chosen 13px font. */
.header-popular .popular-tile .popular-title{
  font-size:13px;line-height:1.3;height:calc(2.6em + 3px);max-height:calc(2.6em + 3px);
  padding:0 3px 3px;overflow:hidden;
}
/* WordPress archive dropdown widget, full available sidebar width */
.sidebar .widget select[name="archive-dropdown"],
.sidebar .widget.widget_archive select,
.sidebar .widget .wp-block-archives select{
  display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;
}
.reader-comment .aipress-comment-number{font-weight:400;color:inherit;}
.reader-comment .aipress-comment-author{font-weight:700;color:#2e8b57;}

/* v0.1.15: constrain the complete post-comments tail inside the 666px main content.
 * This wrapper is inside the article, not a full-width grid sibling. */
.main-content .aipress-article-tail {
  display:block;position:relative;float:none;clear:both;
  width:100%;max-width:666px;min-width:0;
  margin-left:0;margin-right:0;box-sizing:border-box;
}
.main-content .aipress-article-tail .comments-area,
.main-content .aipress-article-tail #respond,
.main-content .aipress-article-tail #commentform,
.main-content .aipress-article-tail .comment-respond,
.main-content .aipress-article-tail .ad-slot,
.main-content .aipress-article-tail [class*="rss-slot-"],
.main-content .aipress-article-tail .prev-next {
  float:none;position:relative;left:auto;right:auto;
  width:100% !important;max-width:100% !important;min-width:0;
  margin-left:0;margin-right:0;box-sizing:border-box;
}
.main-content .aipress-article-tail #commentform textarea,
.main-content .aipress-article-tail #commentform input:not([type="submit"]) {
  display:block;box-sizing:border-box;max-width:100% !important;width:100% !important;
}
/* Header popular: a strict two-line text window, no partial third row. */
.header-popular .popular-tile .popular-title {
  font-size:13px;line-height:17px !important;
  height:38px !important;max-height:38px !important;
  padding:2px 3px !important;
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden !important;
}
/* Slightly more breathing space after the 海外の反応 heading only. */
.main-content .post-section[aria-label="海外の反応"] > h2 {margin-bottom:26px;}

/* v0.1.16: Keep the right sidebar in its grid track even on posts with comments.
 * Sidebar HTML is now emitted before the article, avoiding nesting inside malformed post/comment markup. */
.layout > .sidebar-left {grid-column:1;grid-row:1;}
.layout > .main-content {grid-column:2;grid-row:1;min-width:0;}
.layout > .sidebar-right {grid-column:3;grid-row:1;min-width:0;}
/* Requested spacing below the translated-reactions H2. */
.main-content .post-section[aria-label="海外の反応"] > h2 {margin-bottom:40px;}

/* v0.1.17: Lock the two header columns to the same independent height.
 * 14px description + 75px logo + 25px navigation = 114px.
 * Absolutely position the tile thumbnails so intrinsic image dimensions never
 * expand the popular column when the viewport becomes wider. */
.site-header {align-items:start;}
.site-header .brand {height:114px;}
/* Keep the v0.1.16 logo's natural inline layout while anchoring only the menu bottom. */
.site-header .brand {position:relative;}
.site-header .brand-links {position:absolute;left:0;bottom:0;width:100%;height:25px;}
.site-header .header-popular {height:114px;min-height:0;align-self:start;align-content:stretch;grid-template-rows:minmax(0,1fr);}
.site-header .header-popular .popular-tile {position:relative;height:114px;min-height:0;min-width:0;overflow:hidden;}
.site-header .header-popular .popular-tile > img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}

/* v0.1.19: Only the three requested vertical spaces (+8px each). */
.site-header { padding-top:18px; }
.header-rss { margin-top:22px; margin-bottom:28px; }

/* v0.1.20: requested footer and RSS arrows only */
.site-wrap{width:1308px;max-width:100%;margin:0 auto}
.footer{width:100%;margin-top:30px;padding:28px 20px 12px;background:var(--accent);color:#fff;border-top:0}
.footer-inner{max-width:1268px;margin:0 auto}
.footer-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.footer-column{min-width:0;background:transparent;color:#fff;padding:14px;min-height:160px}
.footer-column .widget-title{background:none;color:#fff;text-align:center;font-size:17px;padding:0;margin:0 0 12px}
.footer-column a{color:#fff}
.footer-bottom{text-align:center;margin:12px auto 0;font-size:12px;color:#fff}
.footer-bottom a{color:#fff}
.main-content .rss-slot-after_content .text-link-list li::before,
.main-content .rss-slot-before_comments .text-link-list li::before,
.main-content .rss-slot-after_comments .text-link-list li::before{color:#00a6ff}

/* v0.1.22: Sidebar text lists only; preserve custom popular/image widgets. */
.sidebar .widget_categories li,
.sidebar .widget_recent_entries li,
.sidebar .widget_archive li,
.sidebar .widget_pages li,
.sidebar .widget_nav_menu li,
.sidebar .widget_recent_comments li,
.sidebar .widget_meta li {
  position:relative;
  padding:9px 0 9px 20px;
  border-bottom:1px dashed #b0b0b0;
  line-height:1.6;
}
.sidebar .widget_categories li::before,
.sidebar .widget_recent_entries li::before,
.sidebar .widget_archive li::before,
.sidebar .widget_pages li::before,
.sidebar .widget_nav_menu li::before,
.sidebar .widget_recent_comments li::before,
.sidebar .widget_meta li::before {
  content:'➜';
  position:absolute;
  left:1px;
  top:9px;
  color:#888888;
  font-size:14px;
  line-height:1.6;
  font-weight:700;
}
/* Only sidebar list links change to the same hover color as RSS links. */
.sidebar .widget a:hover,
.sidebar .widget a:focus-visible {color:#991f1f !important;}

/* Sidebar arrow color only; other v0.1.23 visual adjustments maintained. */
.sidebar .widget_categories li::before,
.sidebar .widget_recent_entries li::before,
.sidebar .widget_archive li::before,
.sidebar .widget_pages li::before,
.sidebar .widget_nav_menu li::before,
.sidebar .widget_recent_comments li::before,
.sidebar .widget_meta li::before {color:#2792C3;}
/* Divider only when both previous and next links exist. */
.main-content .prev-next:has(> div:first-child a):has(> div:last-child a) > div:first-child {
  border-right:1px solid #999;
  padding-right:10px;
}
/* Slightly wider sidebar popular thumbnails, without changing their height. */
.sidebar .aipress-popular-thumb {flex-basis:90px;width:90px;}
.sidebar .aipress-popular-thumb img {width:90px;height:65px;}

/* v0.2.0: all rules below are limited to the mobile breakpoint; desktop untouched. */
.aipress-mobile-top,.aipress-mobile-bottom,.mobile-only{display:none}
@media screen and (max-width:767px){
 html,body{width:100%;max-width:100%;overflow-x:hidden}
 body{margin:0;background:#dce7ef;color:#292929;font-size:16px}
 body:before{content:none!important;display:none!important}
 .aipress-mobile-top,.aipress-mobile-bottom,.mobile-only{display:block}
 .site-wrap{min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important;overflow:visible!important;background:transparent}
 .site-header,.header-rss,.sidebar,.desktop-post,.desktop-posts,.footer{display:none!important}
 .layout{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
 .layout>.main-content{display:block!important;padding:0 10px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
 .aipress-mobile-top{background:#fff;width:100%;overflow:hidden}
 .mobile-logo{text-align:center;background:#fff;padding:13px 10px 12px}
 .mobile-logo a{display:block;color:var(--accent);font-weight:bold;font-size:24px;text-decoration:none}
 .mobile-logo-image{display:block;width:100%;max-height:160px;max-width:100%;height:auto;object-fit:contain;margin:0 auto}
 .mobile-menu{display:flex;width:100%;overflow-x:auto;overflow-y:hidden;background:var(--accent);white-space:nowrap;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
 .mobile-menu a{color:#fff;display:flex;flex:none;align-items:center;justify-content:center;padding:13px 16px;min-height:48px;box-sizing:border-box;font-size:16px;font-weight:bold;text-decoration:none}
 .mobile-menu a:hover,.mobile-menu a:focus-visible{background:#000;color:#fff}
 .mobile-rss{margin:12px 10px;background:#f8fafc;border-radius:5px;box-shadow:0 1px 3px #0002;overflow:hidden}
 .mobile-rss .post-section{margin:0!important;padding:0!important}
 .mobile-rss .text-link-list{margin:0;padding:0;list-style:none}
 .mobile-rss .text-link-list li{position:relative;white-space:nowrap;margin:0;padding:10px 27px 10px 12px;border-bottom:1px solid #ccc;line-height:1.4;font-size:15px;overflow:hidden;text-overflow:ellipsis}
 .mobile-rss .text-link-list li:last-child{border-bottom:0}
 .mobile-rss .text-link-list li:before{content:none}
 .mobile-rss .text-link-list li:after{content:'›';position:absolute;right:10px;color:#999;font-size:25px;top:2px}
 .mobile-rss a{color:#9b0000;text-decoration:none}
 .mobile-ad{margin:12px 10px;text-align:center;max-width:calc(100% - 20px);overflow:hidden;background:#fff}
 .mobile-ad:empty{display:none}
 .mobile-ad iframe,.mobile-ad img{max-width:100%!important}
 .mobile-index,.mobile-page,.mobile-article{margin:12px 0}
 .mobile-index-post,.mobile-recent-item{display:flex;gap:12px;align-items:flex-start;padding:12px;background:#f8fafc;border-bottom:1px solid #d6d6d6;color:#950000;text-decoration:none;min-width:0}
 .mobile-index-post:first-child{border-radius:6px 6px 0 0}
 .mobile-index-post img,.mobile-recent-item img{flex:0 0 35%;width:35%;max-width:150px;aspect-ratio:16/10;height:auto;object-fit:cover;background:#e4e4e4}
 .mobile-index-post>span,.mobile-recent-item>span{min-width:0;flex:1}
 .mobile-index-post strong,.mobile-recent-item strong{display:block;line-height:1.55;font-size:16px;font-weight:700;overflow-wrap:anywhere}
 .mobile-index-post small,.mobile-recent-item small{display:block;color:#555;font-size:12px;margin-top:9px}
 .mobile-pager{text-align:center;margin:14px 0 22px;font-size:15px}
 .mobile-pager>div:first-child{padding:8px}
 .mobile-pager-actions{display:grid;grid-template-columns:1fr 2fr 2fr 1fr;border-radius:6px;overflow:hidden;border:1px solid #ccc;background:#fff}
 .mobile-pager-actions a{display:block;padding:13px 3px;color:#0046b8;text-decoration:none;border-right:1px solid #ccc}
 .mobile-pager-actions a:last-child{border:0}
 .mobile-pager-actions a[aria-disabled="true"]{color:#c8c8c8;pointer-events:none}
 .mobile-article,.mobile-page{min-width:0;overflow-wrap:anywhere}
 .mobile-article>h1,.mobile-page>h1{font-size:23px;line-height:1.5;margin:0;padding:15px;background:var(--accent);color:white}
 .mobile-date{font-size:12px;color:#555;background:#fff;padding:7px 12px}
 .mobile-featured{padding:0;margin:0;background:#fff}
 .mobile-featured img{width:100%;height:auto;display:block}
 .mobile-post-body{background:#fff;padding:16px 13px;font-size:16px;line-height:1.8;overflow-wrap:anywhere;min-width:0}
 .mobile-post-body img,.mobile-post-body video,.mobile-post-body iframe,.mobile-post-body figure{max-width:100%!important;height:auto}
 .mobile-post-body iframe[src*="youtube"]{width:100%!important;aspect-ratio:16/9;height:auto!important}
 .mobile-post-body h2{font-size:20px;border-left:5px solid var(--accent);padding-left:10px}
 .mobile-reactions{background:#fff;margin:13px 0;padding:12px}
 .mobile-reactions>h2{font-size:22px;border-left:5px solid var(--accent);padding-left:10px;margin:0 0 12px}
 .mobile-reaction{font-size:16px;line-height:1.8;border-bottom:1px solid #ddd;padding:12px 0;overflow-wrap:anywhere}
 .mobile-reaction p{margin:.35em 0}
 .mobile-related{background:#fff;margin:12px 0;padding:10px 12px}
 .mobile-related .post-section{margin:0}
 .mobile-related h3{font-size:18px;margin:5px 0}
 .mobile-related-red{border:2px solid #b00000}
 .mobile-related .text-link-list li{white-space:normal}
 .mobile-recent{background:#f8fafc;margin:12px 0;border-radius:5px;overflow:hidden}
 .mobile-recent>h2{margin:0;padding:10px 12px;color:#111;font-size:20px;border-bottom:1px solid #ccc}
 .mobile-comments{background:#f8fafc;margin:12px 0;padding:12px;border-radius:5px}
 .mobile-comments>h2{margin:0 0 10px;font-size:20px}
 .mobile-reader-comment{padding:16px 10px;border-bottom:1px solid #ccc;font-size:16px;line-height:1.7;overflow-wrap:anywhere}
 .mobile-reader-comment small{display:block;font-size:12px;color:#555}
 .mobile-more-comments{display:block;text-align:center;padding:15px;color:#9d0000;text-decoration:none;border-top:1px solid #ddd}
 .mobile-comment-form{margin:12px 0;background:#f8fafc;border:1px solid #ddd;border-radius:6px}
 .mobile-comment-form>summary{cursor:pointer;list-style:none;text-align:center;color:#990000;padding:15px}
 .mobile-comment-form>summary::-webkit-details-marker{display:none}
 .mobile-comment-form #mobile-respond{padding:10px}
 .mobile-comment-form .comment-form input,.mobile-comment-form .comment-form textarea{box-sizing:border-box}
 .mobile-panel{background:#f8fafc;border-radius:6px;margin:12px 0;padding:14px 12px;box-shadow:0 1px 3px #0002;overflow-wrap:anywhere}
 .mobile-panel h2{font-size:19px;margin:0 0 8px;color:#111}
 .mobile-panel select{max-width:100%;width:100%;padding:10px;background:#fff}
 .aipress-mobile-bottom{padding:0 10px 16px}
 .aipress-mobile-bottom>.mobile-ad,.aipress-mobile-bottom>.mobile-rss{margin-left:0;margin-right:0;max-width:100%}
 .mobile-comments-all{background:#fff;padding:12px;margin:12px 0}
 .mobile-comments-all h1{font-size:21px}
}

/* v0.2.1: six requested smartphone-only display refinements. Desktop stays unchanged. */
@media screen and (max-width:767px){
 /* Use the existing PC RSS/link colors; hover matches the PC hover color. */
 .mobile-rss a,
 .mobile-index-post,
 .mobile-recent-item,
 .mobile-related a,
 .mobile-article-rss-card a,
 .mobile-more-comments,
 .mobile-comment-form>summary,
 .aipress-mobile-bottom .mobile-panel a{color:#3d3d99}
 .mobile-rss a:hover,.mobile-rss a:focus-visible,
 .mobile-index-post:hover,.mobile-index-post:focus-visible,
 .mobile-recent-item:hover,.mobile-recent-item:focus-visible,
 .mobile-related a:hover,.mobile-related a:focus-visible,
 .mobile-article-rss-card a:hover,.mobile-article-rss-card a:focus-visible,
 .mobile-more-comments:hover,.mobile-more-comments:focus-visible,
 .aipress-mobile-bottom .mobile-panel a:hover,.aipress-mobile-bottom .mobile-panel a:focus-visible{color:#991f1f!important}
 /* Everything below the navigation bar rests on the same blue-grey ground. */
 .aipress-mobile-top{background:#dce7ef}
 .mobile-rss{background:#f8fafc}
 .mobile-rss .text-link-list li{padding-top:6px;padding-bottom:6px;line-height:1.35}
 .mobile-rss .text-link-list li:after{top:0}
 /* No separators between editorially translated reaction comments. */
 .mobile-reaction{border-bottom:0}
 /* Inline related stories: one ordinary blue text link, no heading or arrow. */
 .mobile-related-inline{margin:12px 0;padding:10px 12px;background:#fff}
 .mobile-related-inline a{font-size:16px;line-height:1.6;overflow-wrap:anywhere}
 /* End-of-article related story, pastel pink labelled outline. */
 .mobile-related-red{position:relative;border:0;background:transparent;margin:20px 0 12px;padding:22px 0 0}
 .mobile-related-label{position:absolute;top:0;left:0;background:#ffc1c6;color:#fff;border-radius:6px 6px 0 0;font-weight:bold;padding:3px 10px;font-size:17px}
 .mobile-related-red-inner{border:3px solid #ffb9be;border-radius:5px;background:#fff0f2;padding:18px 14px;font-weight:bold;line-height:1.55}
 /* Dedicated white card for the RSS feed after latest posts and their ad. */
 .mobile-article-rss-card{background:#f8fafc;border-radius:6px;margin:12px 0;padding:10px;box-shadow:0 1px 3px #0002}
 .mobile-article-rss-card .mobile-rss{margin:0;box-shadow:none;background:#fff}
}

/* v0.2.2: requested smartphone corrections only. Do not change the PC cascade. */
@media screen and (max-width:767px){
  /* Blue-grey canvas begins immediately under the menu; white cards remain white. */
  .aipress-mobile-top{background:#dce7ef!important}
  .aipress-mobile-bottom,.mobile-index,.mobile-article,.mobile-page{background:transparent}
  /* PC link palette, except the intentionally white navigation and headings. */
  .mobile-only a:not(.mobile-pager-actions a),
  .aipress-mobile-bottom a,
  .aipress-mobile-top .mobile-rss a,
  .mobile-article-rss-card a{color:#3d3d99}
  .mobile-only a:not(.mobile-pager-actions a):hover,
  .mobile-only a:not(.mobile-pager-actions a):focus-visible,
  .aipress-mobile-bottom a:hover,.aipress-mobile-bottom a:focus-visible,
  .aipress-mobile-top .mobile-rss a:hover,.aipress-mobile-top .mobile-rss a:focus-visible,
  .mobile-article-rss-card a:hover,.mobile-article-rss-card a:focus-visible{color:#991f1f!important}
  /* Compact Kaikai-style RSS rows, preserve 11 feed entries and tracking. */
  .mobile-rss .post-section .text-link-list,
  .mobile-article-rss-card .post-section .text-link-list{margin:0!important;padding:0!important}
  .mobile-rss .post-section .text-link-list li,
  .mobile-article-rss-card .post-section .text-link-list li{
    margin:0!important;padding:6px 27px 6px 12px!important;line-height:1.35!important;
    font-size:15px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
    border-bottom:1px solid #ccc;position:relative
  }
  .mobile-rss .post-section .text-link-list li:last-child,
  .mobile-article-rss-card .post-section .text-link-list li:last-child{border-bottom:0}
  .mobile-rss .post-section .text-link-list li::before,
  .mobile-article-rss-card .post-section .text-link-list li::before{content:none!important}
  .mobile-rss .post-section .text-link-list li::after,
  .mobile-article-rss-card .post-section .text-link-list li::after{content:'›';position:absolute;right:10px;top:0;color:#999;font-size:25px}
  .mobile-rss .post-section .text-link-list a,
  .mobile-article-rss-card .post-section .text-link-list a{color:#3d3d99;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .mobile-rss .post-section .text-link-list a:hover,
  .mobile-article-rss-card .post-section .text-link-list a:hover{color:#991f1f!important}
  /* Remove ONLY translated-comment divider lines, not article separators. */
  .mobile-reactions .mobile-reaction{border:0!important;border-bottom:0!important}
  /* Two editorial inline placements: one plain link each, no label or arrow. */
  .mobile-related-inline{background:#fff;padding:10px 12px}
  .mobile-related-inline a{color:#3d3d99}
  .mobile-related-inline a:hover{color:#991f1f!important}
  /* End related: screenshot's pink label and pink outline, a single story. */
  .mobile-related-red{border:0;background:transparent;padding:24px 0 0;position:relative}
  .mobile-related-red .mobile-related-label{left:0;top:0;background:#ffc1c6;color:white}
  .mobile-related-red .mobile-related-red-inner{border:3px solid #ffb9be;background:#fff0f2;padding:18px 14px;border-radius:5px}
  /* The RSS after latest stories is on a *separate white card* over blue-grey. */
  .mobile-article-rss-card{background:#fff!important;border-radius:6px;margin:12px 0;padding:10px;box-shadow:0 1px 3px #0002}
  .mobile-article-rss-card .post-section{margin:0!important;padding:0!important;background:#fff}
}

/* v0.2.3 — smartphone-only verified markup selectors. The desktop cascade is unchanged. */
@media screen and (max-width:767px) {
  /* Preserve the white logo; use the site's blue-grey beneath the menu. */
  body, .aipress-mobile-top, .aipress-mobile-bottom, .mobile-article,
  .mobile-index, .mobile-page {background-color:#dce7ef!important}
  .mobile-logo {background:#fff!important}
  /* PC palette: apply to the actual links, overriding the original red styles. */
  .mobile-index a.mobile-index-post,
  .mobile-recent a.mobile-recent-item,
  .mobile-article .mobile-related a,
  .aipress-mobile-top .mobile-rss a.aipress-rss-track,
  .aipress-mobile-bottom .mobile-rss a.aipress-rss-track,
  .mobile-article .mobile-rss a.aipress-rss-track,
  .mobile-article-rss-card a.aipress-rss-track {color:#3d3d99!important}
  .mobile-index a.mobile-index-post:is(:hover,:focus-visible),
  .mobile-recent a.mobile-recent-item:is(:hover,:focus-visible),
  .mobile-article .mobile-related a:is(:hover,:focus-visible),
  .aipress-mobile-top .mobile-rss a.aipress-rss-track:is(:hover,:focus-visible),
  .aipress-mobile-bottom .mobile-rss a.aipress-rss-track:is(:hover,:focus-visible),
  .mobile-article .mobile-rss a.aipress-rss-track:is(:hover,:focus-visible),
  .mobile-article-rss-card a.aipress-rss-track:is(:hover,:focus-visible) {color:#991f1f!important}
  /* Compact 11-row RSS, white card and Kaikai-style chevrons. */
  .aipress-mobile-top .mobile-rss,
  .aipress-mobile-bottom .mobile-rss,
  .mobile-article .mobile-rss,
  .mobile-article-rss-card {background:#f8fafc!important;border-radius:6px;overflow:hidden;box-shadow:0 1px 3px #0002}
  .mobile-rss .text-link-list {margin:0!important;padding:0!important;list-style:none!important}
  .mobile-rss .text-link-list li {margin:0!important;padding:7px 28px 7px 12px!important;line-height:1.35!important;border-bottom:1px solid #ccc!important}
  .mobile-rss .text-link-list li:last-child {border-bottom:0!important}
  .mobile-rss .text-link-list li::before {content:none!important}
  .mobile-rss .text-link-list li::after {content:'›'!important;position:absolute;top:1px;right:9px;color:#999}
  .mobile-rss .text-link-list a {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* The saved reaction HTML can use the dedicated component. Do not style reader comments. */
  .mobile-reactions .mobile-reaction,
  .mobile-reactions .mobile-reaction + .mobile-reaction {border:0!important;border-top:0!important;border-bottom:0!important;box-shadow:none!important}
  .mobile-reactions .mobile-reaction::before,
  .mobile-reactions .mobile-reaction::after {border:0!important}
  /* One unlabelled textual related item mid-article; one framed related item at end. */
  .mobile-related-inline {border:0!important;background:transparent!important;box-shadow:none!important;padding:8px 12px!important}
  .mobile-related-inline :is(h2,h3,.text-link-list) {margin:0!important}
  .mobile-related-red {border:0!important;background:transparent!important;position:relative!important;padding-top:23px!important}
  .mobile-related-red-inner {border:3px solid #ffb9be!important;background:#fff0f2!important;border-radius:5px!important;padding:18px 14px!important}
  .mobile-related-red .mobile-related-label {position:absolute;top:0;left:0;background:#ffc1c6!important;color:#fff!important;border-radius:6px 6px 0 0;padding:3px 10px}
  /* RSS directly after recent posts: the wrapper is the white card. */
  .mobile-article-rss-card {background:#fff!important;margin:12px 0!important;padding:10px!important}
  .mobile-article-rss-card > .post-section {background:#fff!important;margin:0!important;padding:0!important}
  .mobile-article-rss-card .text-link-list li {background:#f8fafc}
}

/* v0.2.4: requested mobile-only spacing and placement changes. */
@media screen and (max-width:767px){
  /* Inline related link: match the horizontal text inset of reactions. */
  .mobile-reactions .mobile-related-inline{padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important}
  .mobile-related-inline a{display:block}
  /* White card below the reader-comment notice. */
  .mobile-article-bottom-rss-card{margin:12px 0;padding:0;background:#f8fafc;border-radius:6px;overflow:hidden;box-shadow:0 1px 3px #0002}
  .mobile-article-bottom-rss-card .mobile-rss{margin:0!important;background:#f8fafc!important;border-radius:6px;box-shadow:none!important}
  .mobile-article-bottom-rss-card .post-section{margin:0!important;padding:0!important}
  /* End related remains within the reactions' existing white panel. */
  .mobile-reactions>.mobile-related-red{margin-bottom:0!important}
  /* All outside-article advertisements sit directly on blue-grey, edge to edge. */
  .aipress-mobile-top>.mobile-ad,
  .aipress-mobile-bottom>.mobile-ad,
  .mobile-article>.mobile-ad{
    background:transparent!important;border:0!important;border-radius:0!important;
    padding:0!important;margin:12px 0!important;max-width:none!important;
    width:100%!important;box-shadow:none!important;box-sizing:border-box!important
  }
  .mobile-article>.mobile-ad{width:calc(100% + 20px)!important;margin-left:-10px!important;margin-right:-10px!important}
  .mobile-ad img,.mobile-ad iframe{display:block;margin-left:auto;margin-right:auto;max-width:100%!important}
  /* Slim, regular-weight navigation as in the provided reference. */
  .mobile-menu a{font-size:14px!important;font-weight:400!important;padding:8px 14px!important;min-height:38px!important}
  /* Reduce title without changing fixed pages or desktop. */
  .mobile-article>h1{font-size:20px!important;line-height:1.45!important}
}

/* v0.2.5: three specifically requested mobile corrections only. */
@media screen and (max-width:767px){
  /* Keep article body and its reaction heading inside one continuous white surface. */
  .mobile-article-content-panel{background:#fff}
  .mobile-article-content-panel .mobile-post-body{margin-bottom:0}
  .mobile-article-content-panel .mobile-reactions{margin-top:0}
  /* Match the other RSS panels using the same root .mobile-rss class and list styling. */
  .mobile-article-bottom-rss-card.mobile-rss{background:#f8fafc!important;margin:12px 0!important;padding:0!important;border-radius:6px!important;box-shadow:0 1px 3px #0002!important}
  /* Keep the expanded comment form visible on mobile even if generic comment styles hide it. */
  .mobile-comment-form[open] #respond,
  .mobile-comment-form[open] #commentform{display:block!important}
}

/* v0.2.6 — ONLY the three requested smartphone corrections. */
@media screen and (max-width:767px){
  /* Keep the title, thumbnail, below-thumbnail ad, body and reactions on one white surface. */
  .mobile-article .mobile-article-content-panel{background:#fff!important;margin:0;padding:0;overflow:hidden}
  .mobile-article .mobile-article-content-panel>h1{font-size:20px;line-height:1.45;margin:0;padding:15px;background:var(--accent);color:#fff}
  .mobile-article .mobile-article-content-panel>.mobile-ad{background:#fff!important;margin:0!important;padding:12px 0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  .mobile-article .mobile-article-content-panel>.mobile-ad img,
  .mobile-article .mobile-article-content-panel>.mobile-ad iframe{max-width:100%!important}
  .mobile-article .mobile-article-content-panel>.mobile-post-body{margin:0!important}
  .mobile-article .mobile-article-content-panel>.mobile-reactions{margin:0!important}
  /* Three independent white cards instead of a shared comments wrapper. */
  .mobile-article>.mobile-comments,
  .mobile-article>.mobile-comment-form,
  .mobile-article>.mobile-comment-notice{background:#fff!important;border-radius:6px;margin:12px 0!important;box-shadow:0 1px 3px #0002;overflow:hidden}
  .mobile-article>.mobile-comment-form{border:0}
  .mobile-article>.mobile-comment-form #respond{padding:12px}
  .mobile-article>.mobile-comment-notice{padding:14px 12px}
  /* Match the PC comment metadata, no reply affordance. */
  .mobile-reader-comment .mobile-reader-comment-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 5px;line-height:1.5}
  .mobile-reader-comment .aipress-comment-author{font-weight:700;color:#2e8b57!important}
  .mobile-reader-comment .mobile-reader-comment-meta small{display:inline;font-size:12px;color:#555}
  .mobile-reader-comment .mobile-reader-comment-text{margin-top:6px}
  .mobile-reader-comment .mobile-reader-comment-text p{margin:0 0 0.6em}
  .mobile-reader-comment .mobile-reader-comment-text p:last-child{margin-bottom:0}
}

/* v0.2.7: typography and bottom spacing for the three mobile comment cards only. */
@media screen and (max-width:767px){
  .mobile-article>.mobile-comments>h2,
  .mobile-article>.mobile-comment-notice>h2{font-size:18px!important}
  .mobile-article>.mobile-comments .mobile-reader-comment,
  .mobile-article>.mobile-comments .mobile-more-comments{font-size:15px!important}
  .mobile-article>.mobile-comment-form>summary{font-size:15px!important}
  .mobile-article>.mobile-comment-form #respond,
  .mobile-article>.mobile-comment-form #respond label,
  .mobile-article>.mobile-comment-form #respond input,
  .mobile-article>.mobile-comment-form #respond textarea{font-size:15px}
  .mobile-article>.mobile-comment-notice{font-size:15px!important;padding:12px 12px 9px!important}
  .mobile-article>.mobile-comment-notice p:last-child{margin-bottom:0!important}
}

/* v0.2.8: article-inline related link default color only; preserve existing hover. */
@media screen and (max-width:767px) {
  .mobile-article .mobile-related-inline a:not(:hover):not(:focus-visible) { color:#0000ff!important; }
}

/* v0.2.9: isolate the mobile comment form; no desktop selectors changed. */
@media screen and (max-width:767px){
 .mobile-comment-form #mobile-respond{padding:12px}
 .mobile-comment-form:not([open]) #mobile-respond{display:none!important}
 .mobile-comment-form[open] #mobile-respond,
 .mobile-comment-form[open] #mobile-commentform{display:block!important}
}

/* v0.2.10: On mobile, keep the desktop-only comment tail hidden even if
   WordPress comment reply handling moves its nodes outside .desktop-post.
   Do not target mobile comment cards or mobile RSS. */
@media screen and (max-width:767px) {
  .aipress-article-tail,
  .desktop-post .comments-area,
  .comments-area#comments,
  .comment-respond#respond,
  form#commentform { display:none !important; }
  .mobile-comment-form #mobile-respond,
  .mobile-comment-form[open] #mobile-commentform { display:block !important; }
}

/* v0.2.11: On mobile single-post pages, show only the mobile article within
   the content column. Desktop-only output can otherwise escape its wrapper
   when a comment template/plugin changes the parsed document structure.
   Mobile bottom sections are outside .main-content and remain untouched. */
@media screen and (max-width:767px) {
  body.single-post .main-content > :not(.mobile-article),
  body.single-post .main-content > .mobile-article ~ * {
    display:none!important;
  }
}

/* v0.2.12: Keep all PC-only single article output, including comment hooks,
   RSS, advertisements, and previous/next links, within one dedicated wrapper.
   Do not hide any mobile section or change desktop layout. */
.aipress-desktop-single{display:contents}
@media screen and (max-width:767px){
  .aipress-desktop-single{display:none!important}
}


/* v0.2.14: article-only semantic markup. No site layout or reader-comment changes. */
.translated-reactions .reaction{font-size:15px;line-height:1.6;margin:0 0 1.5em;overflow-wrap:anywhere}
.translated-reactions .reaction-author,.translated-reactions .reaction-text,.translated-reactions .reaction-reply{margin:0}
.translated-reactions .reaction-text{white-space:pre-line}
.translated-reactions .reaction-author{color:#222;font-weight:400}
.translated-reactions .reaction-name{color:#2e8b57;font-weight:700}
.translated-reactions .reaction-name.is-owner{color:#2e3799}
.translated-reactions .reaction-reply{color:#2e8b57}
.translated-reactions .reaction-score{color:#0000ff}
.post-body .news-quote,.mobile-post-body .news-quote{border:2px solid #4682b4;padding:16px 38px 18px;margin:0 0 1.4em;background:transparent}
.post-body .news-quote p,.mobile-post-body .news-quote p{margin:0 0 1em}
.post-body .news-quote footer,.mobile-post-body .news-quote footer{font-size:13px;color:#a9a9a9;overflow-wrap:anywhere}
@media screen and (max-width:767px){
 .mobile-reactions .reaction{font-size:inherit;line-height:inherit;margin:0}
 .mobile-reactions .reaction-author,.mobile-reactions .reaction-text,.mobile-reactions .reaction-reply{margin:0}
 .mobile-reactions .reaction-name{color:#2e8b57;font-weight:700}
 .mobile-reactions .reaction-name.is-owner{color:#2e3799}
 .mobile-reactions .reaction-reply{color:#2e8b57}
 .mobile-reactions .reaction-score{color:#0000ff}
}

/* 0.2.15: news quote source text only; no source hyperlink */
.post-body .news-quote .news-quote-source,.mobile-post-body .news-quote .news-quote-source{font-size:13px;color:#a9a9a9;overflow-wrap:anywhere}

/* v0.2.16: Article-only visual tuning; no site layout, RSS or reader-comment changes. */
/* Double the spacing between editorial translated comments on desktop. */
.translated-reactions .reaction{margin-bottom:3em}
/* An optional explanatory note under a translated comment. */
.translated-reactions .reaction .reaction-note,
.mobile-reactions .reaction .reaction-note{font-size:.9em;line-height:1.65;color:#555;margin:.55em 0 0;white-space:pre-line}
/* Give quoted sources and embedded videos a little more breathing room. */
.post-body .news-quote,.mobile-post-body .news-quote{margin-top:.65em;margin-bottom:1.8em}
.post-body iframe[src*="youtube"],.mobile-post-body iframe[src*="youtube"]{margin-top:24px;margin-bottom:24px}
/* Article advertising slots only: preserve all existing widths and backgrounds. */
body.single-post .main-content .ad-slot{margin-top:30px;margin-bottom:30px}
@media screen and (max-width:767px){
 /* Match the larger spacing between distinct reactions, not paragraphs within one comment. */
 .mobile-reactions .mobile-reaction{padding-top:24px;padding-bottom:24px}
 /* The ads within the white article panel remain white and full-width. */
 .mobile-article .mobile-article-content-panel>.mobile-ad{padding-top:18px!important;padding-bottom:18px!important}
 /* Only article outside-panel ads get slightly more vertical spacing. */
 .mobile-article>.mobile-ad{margin-top:18px!important;margin-bottom:18px!important}
}

/* v0.2.17: only editorial video-summary H2 headings; leave the 海外の反応 H2 unchanged. */
.post-body h2.video-summary-heading,
.mobile-post-body h2.video-summary-heading {
  font-size:18px;
  font-weight:600;
  line-height:1.55;
  border:0;
  padding:0;
  margin:22px 0 12px;
}
@media (max-width:767px) {
  .mobile-post-body h2.video-summary-heading {font-size:17px;margin:20px 0 10px;}
}

/* v0.2.19: YouTube embed spacing (24px above and below visible embed).
   WordPress may wrap oEmbed in a paragraph, div or figure; apply spacing to
   that outer element, rather than relying only on margins on the iframe. */
:is(.post-body,.mobile-post-body) > iframe[src*="youtube"],
:is(.post-body,.mobile-post-body) > iframe[src*="youtu.be"]{display:block;margin-block:24px!important}
:is(.post-body,.mobile-post-body) > :is(p,div,figure):has(iframe[src*="youtube"]),
:is(.post-body,.mobile-post-body) > :is(p,div,figure):has(iframe[src*="youtu.be"]){margin-block:24px!important}
:is(.post-body,.mobile-post-body) > :is(p,div,figure):has(iframe[src*="youtube"]) iframe[src*="youtube"],
:is(.post-body,.mobile-post-body) > :is(p,div,figure):has(iframe[src*="youtu.be"]) iframe[src*="youtu.be"]{margin-block:0!important}

/* v0.2.20: spacing around WordPress-generated YouTube oEmbeds.
   Padding creates visible space even when nested embed margins collapse. */
.post-body .aipress-youtube-spacing,
.mobile-post-body .aipress-youtube-spacing{
  display:flow-root;
  margin:0!important;
  padding:24px 0!important;
  width:100%;
  max-width:100%;
}
.post-body .aipress-youtube-spacing iframe,
.mobile-post-body .aipress-youtube-spacing iframe,
.post-body .aipress-youtube-spacing figure,
.mobile-post-body .aipress-youtube-spacing figure{
  margin-top:0!important;
  margin-bottom:0!important;
}

/* v0.2.21: Desktop content column 641px (681 - 20px * 2).
   Both sidebars retain their original widths; mobile layout is unchanged. */
@media screen and (min-width:768px){
 .site-wrap{width:1283px}
 .layout{grid-template-columns:226px 681px 376px}
 .main-content .aipress-article-tail{max-width:641px}
 .post-body iframe[src*="youtube.com"],.post-body iframe[src*="youtube-nocookie.com"],.post-body iframe[src*="youtu.be"]{max-width:641px}
}
/* PC: one inline related story after translation comments 8/16/24.
   No headings or arrow decorations. Use the existing link hover color. */
@media screen and (min-width:768px){
 .translated-reactions .aipress-related-inline{background:transparent;padding:0;margin:15px 0 3em}
 .translated-reactions .aipress-related-inline a{color:#0000ff;font-size:15px;line-height:1.7;overflow-wrap:anywhere}
 .translated-reactions .aipress-related-inline a:hover,.translated-reactions .aipress-related-inline a:focus-visible{color:#991f1f}
}
/* Shared end-of-article pink frame, shown once on desktop and once on mobile. */
.aipress-related-end{position:relative;border:0;background:transparent;padding:24px 0 0;margin:20px 0 12px}
.aipress-related-end .mobile-related-label{position:absolute;top:0;left:0;background:#ffc1c6;color:#fff;border-radius:6px 6px 0 0;font-weight:bold;padding:3px 10px;font-size:17px}
.aipress-related-end .mobile-related-red-inner{border:3px solid #ffb9be;border-radius:5px;background:#fff0f2;padding:18px 14px;font-weight:bold;line-height:1.55}
.aipress-related-end .mobile-related-red-inner a{color:#3d3d99}
.aipress-related-end .mobile-related-red-inner a:hover,.aipress-related-end .mobile-related-red-inner a:focus-visible{color:#991f1f}

/* Follow-up notice appears after the final translated reaction, never in post intro. */
.aipress-follow-up-notice{margin:1.4em 0 0;font-weight:600}

/* v0.2.31: Mobile article tail. Keep everything inside the existing white
   article surface, with the same horizontal inset as article text. */
@media screen and (max-width:767px){
  .mobile-article .mobile-article-content-panel > .mobile-ad{
    background:#fff!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:16px 13px!important;
    box-sizing:border-box!important;
  }
  .mobile-article .mobile-article-content-panel > .mobile-ad img,
  .mobile-article .mobile-article-content-panel > .mobile-ad iframe{
    display:block;
    max-width:100%!important;
    height:auto;
    margin-left:auto;
    margin-right:auto;
  }
  .mobile-article .mobile-article-content-panel > .mobile-article-taxonomy{
    background:#fff!important;
    width:100%;
    margin:0!important;
    padding:16px 13px 12px!important;
    box-sizing:border-box!important;
    box-shadow:none!important;
    border-radius:0!important;
    font-size:15px;
    line-height:1.65;
    overflow-wrap:anywhere;
  }
  .mobile-article .mobile-article-content-panel .mobile-taxonomy-row{
    display:flex;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:0 6px;
    margin:0;
    padding:4px 0;
    border:0;
  }
  .mobile-article .mobile-article-content-panel .mobile-taxonomy-title{
    color:#444;
    font-weight:400;
    flex:0 0 auto;
    white-space:nowrap;
  }
  .mobile-article .mobile-article-content-panel .mobile-taxonomy-values{
    flex:1 1 0;
    min-width:0;
    overflow-wrap:anywhere;
  }
  .mobile-article .mobile-article-content-panel .mobile-article-taxonomy a{
    color:var(--accent)!important;
    text-decoration:underline;
  }
  .mobile-article .mobile-article-content-panel > .mobile-adjacent-posts{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:0!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:12px 13px 22px!important;
    background:#fff!important;
    border-radius:0!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
    overflow:hidden;
  }
  .mobile-article .mobile-article-content-panel .mobile-adjacent-item{
    min-width:0!important;
    overflow:hidden!important;
    padding:0 8px 0 0!important;
    box-sizing:border-box!important;
  }
  .mobile-article .mobile-article-content-panel .mobile-adjacent-item + .mobile-adjacent-item{
    border-left:1px solid #ccc;
    padding:0 0 0 8px!important;
  }
  .mobile-article .mobile-article-content-panel .mobile-adjacent-item > a{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-decoration:none!important;
    color:var(--accent)!important;
  }
  .mobile-article .mobile-article-content-panel .mobile-adjacent-item img.mobile-adjacent-thumb{
    display:block!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    max-height:44px!important;
    flex:0 0 44px!important;
    object-fit:cover!important;
    aspect-ratio:1/1!important;
    border-radius:4px;
    margin:0!important;
    float:none!important;
  }
  .mobile-article .mobile-article-content-panel .mobile-adjacent-copy{
    display:block!important;
    flex:1 1 0!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    line-height:1.3;
    text-align:left;
  }
  .mobile-article .mobile-article-content-panel .mobile-adjacent-copy > strong{
    display:block!important;
    font-size:13px!important;
    line-height:1.35!important;
    font-weight:700;
    white-space:nowrap;
  }
  .mobile-article .mobile-article-content-panel .mobile-adjacent-copy > span{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    line-clamp:2;
    overflow:hidden!important;
    overflow-wrap:anywhere;
    word-break:break-word;
    font-size:12px!important;
    line-height:1.4!important;
  }
  .mobile-article .mobile-article-content-panel .mobile-adjacent-next .mobile-adjacent-copy{
    text-align:right!important;
  }
}
