/* Scoped styles: never modify the corporate theme globally. */
.smr-recommendations{box-sizing:border-box;max-width:100%;margin:28px 0;padding:18px 0 8px;border-top:2px solid #273a52;font-family:inherit;color:#17212c}
.smr-recommendations *{box-sizing:border-box}
.smr-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 16px}
.smr-heading h2{font-size:18px!important;line-height:1.4!important;font-weight:700!important;color:#192b3a!important;letter-spacing:0;margin:0!important;padding:0!important;border:0!important}
.smr-heading>span{font-size:10px;color:#7d8995;white-space:nowrap}
.smr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
.smr-card{display:flex;flex-direction:column;gap:5px;min-width:0;color:#1f2e3a!important;text-decoration:none!important;background:transparent;border:0;box-shadow:none;cursor:pointer}
.smr-card:hover .smr-card-title{text-decoration:underline}
.smr-card:focus-visible{outline:2px solid #2176cf;outline-offset:3px;border-radius:6px}
.smr-thumb{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/9;border-radius:7px;overflow:hidden;background:#eef2f5}
.smr-thumb img{display:block;width:100%;height:100%;object-fit:cover;margin:0!important;border:0}
.smr-card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;line-height:1.55;font-size:13px;font-weight:650;min-height:0}
.smr-no-image{font-size:12px;color:#7c8691;letter-spacing:.03em}
.smr-service-label{align-self:flex-start;color:#34465a;font-size:11px;font-weight:700;line-height:1.4;border-radius:3px;background:#edf2f8;border:1px solid #c4cfdc;padding:2px 6px}
.smr-service-desc{font-size:11px;color:#7a8794;line-height:1.45}
.smr-service-graphic{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:38px;color:#56709a;background:linear-gradient(135deg,#dce8f6,#f4e6f1)}
.smr-service-pending{cursor:default;opacity:.7}
.smr-grid-single{grid-template-columns:1fr}
.smr-wide{display:grid;grid-template-columns:minmax(96px,32%) minmax(0,1fr);gap:12px;align-items:center}
.smr-wide .smr-thumb{aspect-ratio:16/10}
.smr-wide .smr-card-title{font-size:14px}
.smr-ad{position:relative;margin:0 0 16px;padding:11px 0 0;min-height:132px;contain:layout style;border-top:1px solid #edf0f3;border-bottom:1px solid #edf0f3}
.smr-ad-label{position:absolute;top:1px;left:0;display:block;font-size:10px;letter-spacing:.08em;color:#939ba4}
.smr-ad-mock{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:112px;background:#f4f6f8;border-radius:5px;color:#7f8d9c;font-size:14px;font-weight:600;text-align:center}
.smr-ad-mock small{font-size:11px;font-weight:400;margin-top:4px}
/* Responsive code keeps its existing layout; fixed code matches the size created in AdSense. */
.smr-adsbygoogle--responsive{min-width:0;min-height:110px;width:100%}
.smr-ad--fixed{text-align:center;min-height:265px}
.smr-ad--fixed .smr-adsbygoogle--fixed{display:inline-block;width:300px;height:250px;min-width:300px;min-height:250px;max-width:none}
.smr-admin-hint{margin:16px 0;padding:14px;border-left:3px solid #e6a700;background:#fff8df;font-size:13px}
@media(min-width:680px){.smr-grid{gap:16px;margin-bottom:19px}.smr-card-title{font-size:14px}.smr-ad{min-height:170px}.smr-ad-mock{min-height:150px}}
@media(max-width:360px){.smr-grid{gap:9px}.smr-card-title{font-size:12px}.smr-heading h2{font-size:16px!important}}

/* v0.1.2: Preview-only placeholders are NOT real Google ad slots.
   Neutral CSS selectors avoid generic third-party ad-block hiding rules. */
.smr-recommendations .smr-demo-row{position:relative;display:block!important;margin:0 0 16px;padding:13px 0 0;min-height:132px;border-top:1px solid #edf0f3;border-bottom:1px solid #edf0f3;box-sizing:border-box}
.smr-recommendations .smr-demo-label{position:absolute;top:1px;left:0;display:block;font-size:10px;letter-spacing:.08em;color:#939ba4}
.smr-recommendations .smr-demo-box{display:flex!important;flex-direction:column;justify-content:center;align-items:center;min-height:112px;background:#f1f4f8;border:1px dashed #cbd5df;border-radius:6px;color:#657589;font-size:14px;font-weight:600;text-align:center;padding:12px}
.smr-recommendations .smr-demo-box small{display:block;font-size:11px;font-weight:400;margin-top:4px}
@media(min-width:680px){.smr-recommendations .smr-demo-row{min-height:170px}.smr-recommendations .smr-demo-box{min-height:150px}}

/* v0.1.3: WordPress theme protection for noninteractive demo placeholders only. */
.smr-recommendations .smr-demo-row{visibility:visible!important;opacity:1!important;clear:both}
.smr-recommendations .smr-demo-box{visibility:visible!important;opacity:1!important}

/* v0.2.8: mobile-widget theme override guard.
   Specific to our shortcode output; never affects ordinary site widgets. */
.smr-recommendations .smr-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;max-width:100%;margin:0 0 16px!important}
.smr-recommendations .smr-grid.smr-grid-single{grid-template-columns:minmax(0,1fr)!important}
.smr-recommendations .smr-card{display:flex!important;flex-direction:column!important;gap:5px!important;width:auto!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;float:none!important;text-decoration:none!important;box-shadow:none!important}
.smr-recommendations .smr-thumb{display:flex!important;position:relative;width:100%!important;aspect-ratio:16/9;overflow:hidden;border-radius:7px}
.smr-recommendations .smr-thumb img{display:block!important;max-width:100%!important;width:100%!important;height:100%!important;object-fit:cover!important;float:none!important;margin:0!important;padding:0!important}
.smr-recommendations .smr-card-title{font-size:13px!important;line-height:1.55!important;font-weight:650!important;overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.smr-recommendations .smr-heading{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:8px!important;margin:0 0 16px!important}
.smr-recommendations .smr-wide{display:grid!important;grid-template-columns:minmax(96px,32%) minmax(0,1fr)!important;gap:12px!important;align-items:center!important}
.smr-recommendations .smr-wide .smr-thumb{aspect-ratio:16/10}
@media(min-width:680px){.smr-recommendations .smr-grid{gap:16px!important;margin-bottom:19px!important}.smr-recommendations .smr-card-title{font-size:14px!important}}
@media(max-width:360px){.smr-recommendations .smr-grid{gap:9px!important}.smr-recommendations .smr-card-title{font-size:12px!important}}

/* v0.2.9: JIN widget consistency. Inline grid rules are the final mobile fallback. */
#post-bottom-widget .smr-recommendations, #post-top-widget .smr-recommendations { min-width:0; width:100%; max-width:100%; }
#post-bottom-widget .smr-recommendations .smr-grid, #post-top-widget .smr-recommendations .smr-grid { min-width:0; max-width:100%; }

/* v0.2.10: isolated tap targets. Never place transparent overlays above an ad. */
.smr-recommendations a.smr-card {position:relative!important;pointer-events:auto!important;touch-action:manipulation;-webkit-tap-highlight-color:rgba(33,118,207,.14);}
.smr-recommendations a.smr-card > .smr-thumb,
.smr-recommendations a.smr-card > .smr-thumb > img,
.smr-recommendations a.smr-card > .smr-card-title,
.smr-recommendations a.smr-card > .smr-service-desc,
.smr-recommendations a.smr-card > .smr-service-label {pointer-events:none!important;}
.smr-recommendations .smr-ad--fixed {box-sizing:border-box;max-width:100%;width:100%;min-height:265px;clear:both;}
/* The exact 300 / 250 width is selected in JS before Google loads the slot. */

/* JIN text-widget mobile typography: keep each card's title to three lines. */
.smr-recommendations a.smr-card > .smr-card-title {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;line-clamp:3!important;
  overflow:hidden!important;max-height:4.5em!important;
  font-size:13px!important;line-height:1.5!important;color:#1f2e3a!important;
}

/* v0.2.11: keep mobile JIN widget titles at most three lines, even when
 * -webkit-line-clamp is not respected by JIN's widget-specific rules. */
.smr-recommendations .smr-grid a.smr-card > span.smr-card-title,
.smr-recommendations .smr-grid .smr-service > span.smr-card-title {
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  line-clamp:3!important;
  max-height:4.5em!important;
  overflow:hidden!important;
  font-size:13px!important;
  line-height:1.5!important;
  font-weight:700!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
/* The fixed ad row is an independent full-width row, never a grid cell.
 * Keep its <ins> within the measured widget width before requesting AdSense. */
.smr-recommendations .smr-ad.smr-ad--fixed {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  min-height:275px!important;
  padding:16px 0 0!important;
  text-align:center!important;
  float:none!important;
  clear:both!important;
}
.smr-recommendations .smr-ad.smr-ad--fixed > ins.smr-adsbygoogle--fixed {
  float:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
