/* ARAIYU_SIDEBAR_V1 - scoped only to blog list and blog posts. */
.ayu-side-column,
.ayu-side-widgets { min-width: 0; }
.ayu-side-column { display: flex; flex-direction: column; gap: 26px; }
.ayu-side-widgets { display: flex; flex-direction: column; gap: 26px; }
.ayu-side-section { min-width: 0; }
.ayu-side-heading {
  margin: 0 0 13px;
  padding: 11px 14px;
  color: #fff;
  background: #203f86;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: .02em;
}
.ayu-side-carousel { position: relative; min-width: 0; }
.ayu-side-viewport { width: 100%; overflow: hidden; border-radius: 8px; }
.ayu-side-track { display: flex; transition: transform 240ms ease; width: 100%; }
.ayu-side-slide { flex: 0 0 100%; width: 100%; min-width: 0; }
.ayu-side-widgets .ayu-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e9eef7;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  outline-offset: 3px;
}
.ayu-side-widgets .ayu-image-link[hidden] { display: none !important; }
.ayu-side-widgets .ayu-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  transition: transform .2s ease;
}
.ayu-side-widgets .ayu-image-link:hover .ayu-thumb { transform: scale(1.025); }
.ayu-side-controls { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 10px; }
.ayu-side-arrow { flex: none; width: 29px; height: 29px; display: grid; place-items: center; background: #fff; border: 1px solid #d9e1ed; color: #253657; border-radius: 100%; cursor: pointer; font-size: 22px; line-height: 1; padding: 0; }
.ayu-side-arrow:hover { border-color: #3465cd; color: #3465cd; }
.ayu-side-dots { display: flex; gap: 8px; align-items: center; }
.ayu-side-dot { border: 0; width: 8px; height: 8px; padding: 0; border-radius: 50%; cursor: pointer; background: #d8dfe9; }
.ayu-side-dot[aria-current="true"] { background: #284fb9; transform: scale(1.15); }
.ayu-side-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ayu-side-gallery > .ayu-image-link:first-child { grid-column: 1 / -1; }
.ayu-rank-badge { position: absolute; top: 7px; left: 7px; padding: 2px 7px; line-height: 1.5; color: #fff; background: rgba(12,24,48,.83); border-radius: 4px; font-size: 12px; font-weight: 800; }
.ayu-ad-reserved { min-height: 250px; width: 100%; background: #fff; border: 1px solid #edf0f6; border-radius: 8px; }

/* Article detail gets a genuine right column, without changing article contents. */
.ayu-article-grid {
  width: min(1250px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}
.ayu-article-grid > .article-wrap { width: 100%; max-width: none; min-width: 0; margin: 0; }
.ayu-article-grid > .ayu-side-widgets { padding-top: 46px; }
.ayu-article-grid .full-article,
.ayu-article-grid .article-body { min-width: 0; max-width: 100%; }
.ayu-article-grid .article-body img,
.ayu-article-grid .article-body table { max-width: 100%; }
.ayu-article-grid .article-body pre { max-width: 100%; overflow-x: auto; }

/* Preserve a sidebar to the right on desktop and landscape iPad. */
@media (max-width: 950px) {
  .ayu-article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ayu-article-grid > .ayu-side-widgets { padding-top: 0; padding-bottom: 50px; max-width: 660px; width: 100%; margin: auto; }
  .content-grid > .ayu-side-column { width: 100%; max-width: 660px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .ayu-article-grid { width: calc(100% - 34px); }
  .ayu-side-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ayu-ad-reserved { min-height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .ayu-side-track,
  .ayu-side-widgets .ayu-thumb { transition: none !important; }
}

/* AYU_MOBILE_HEADING_WIDTH_FIX_20261106 */
@media screen and (max-width: 600px) {

  html body .ayu-side-widgets > .ayu-side-section,
  html body .ayu-side-widgets #ayu-fixed-ad-2,
  html body .ayu-side-widgets #ayu-fixed-ad-3 {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  html body .ayu-side-widgets .ayu-side-heading {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

}
