/* HALL_AIO_DAMZ_SHIBATA_REVIEW_FIXES_V1_0_46_R1 */
/* Blog ID 3 is also enforced by the plugin runtime guard. */

/* Shared table and source-note spacing requested across fixed pages and topics. */
.ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-table {
  border-radius: 0 !important;
}

.ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-table + .ha-source-note {
  margin-top: 12px !important;
}

/* Weekly and new-machine TOCs use a square editorial block. */
body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-toc,
body.page-id-69 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-toc {
  border-radius: 0 !important;
}

/* Machine-name headings: remove the inherited gray bar and use one clean blue rule. */
body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-machine-card .ha-machine-body h3,
body.page-id-69 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-new-machine-feature-v129 .ha-machine-body h3,
body.page-id-69 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-new-machines-history-card-v129 > h3 {
  margin: 0 !important;
  padding: 0 0 10px !important;
  color: #2B2B2B;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid #0169B7 !important;
  border-radius: 0 !important;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  line-height: 1.55;
}

body.page-id-69 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-new-machines-history-card-v129 > h3 {
  margin-top: 8px !important;
}

/* Remove the gray machine-image backing while retaining the supplied images. */
body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-machine-visual,
body.page-id-69 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-machine-visual,
body.page-id-69 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-history-machine-photo-v132,
body.page-id-69 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-history-machine-photo-v132 img {
  background-color: transparent !important;
  background-image: none !important;
}

/* Weekly floor locations become a compact two-column information table. */
body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location {
  display: grid;
  grid-template-columns: minmax(200px, .36fr) minmax(0, 1fr);
  width: min(100%, 760px);
  margin: 0 auto 24px;
  padding: 0 !important;
  overflow: hidden;
  background: #FFF !important;
  border: 1px solid #D8D8D8 !important;
  border-top: 3px solid #0169B7 !important;
  border-radius: 0 !important;
}

body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location > h3,
body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location > p {
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid #D8D8D8 !important;
  border-radius: 0 !important;
}

body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location > h3 {
  color: #17364D;
  background: #EEF5FA !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location > p {
  color: #444;
  background: #FFF;
  font-size: 14px;
  line-height: 1.85;
}

body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location > :nth-last-child(-n+2) {
  border-bottom: 0 !important;
}

/* Store information: square notes and header-link-style actions. */
body.page-id-7 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-source-note {
  border-radius: 0 !important;
}

body.page-id-7 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-access-actions-v124 {
  gap: 10px;
  background: transparent;
  border: 0;
}

body.page-id-7 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-access-actions-v124 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: #FFF !important;
  background: #2B2B2B !important;
  border: 1px solid #2B2B2B !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: color 160ms ease, background-color 160ms ease;
}

body.page-id-7 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-access-actions-v124 a:focus-visible {
  color: #2B2B2B !important;
  background: #FFF !important;
  outline: 3px solid #0169B7;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  body.page-id-7 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-access-actions-v124 a:hover {
    color: #2B2B2B !important;
    background: #FFF !important;
  }
}

/* Recruit: square table/static card and one owner for each vertical boundary. */
body.page-id-9 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-card.ha-card-static {
  margin-top: 12px !important;
  border-radius: 0 !important;
}

body.page-id-9 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-recruit-job-grid + .ha-table {
  margin-top: 12px !important;
}

/* Topic article headings match the blue page ribbons. */
body.single-post .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-prose h2 {
  background: #0169B7 !important;
}

/* Home recommendation carousel: 75% frame, centered 1-3 item states and exact requested shadow. */
body.page-id-5 .ha-home-carousel-shell-v146 {
  position: relative;
  width: 100%;
  padding: 0 42px;
}

body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-grid-v115 {
  justify-content: center;
  gap: 0 !important;
  width: 100%;
  padding: 0 0 16px !important;
  scroll-behavior: smooth;
  scroll-padding-inline: 16px;
}

body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-grid-v115 > .ha-home-machine-card-v115 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 333px;
}

body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-card-frame-v137 {
  width: 75% !important;
  height: 75% !important;
  min-height: 0 !important;
  margin: auto;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1) !important;
}

body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-visual-v115 {
  height: 144px !important;
  flex: 0 0 144px !important;
}

body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-copy-v115 {
  min-height: 0 !important;
  padding: 12px 13px 14px !important;
}

body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-copy-v115 b {
  font-size: 14px !important;
}

body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-copy-v115 span {
  margin-top: 4px;
  font-size: 11px !important;
  line-height: 1.55;
}

body.page-id-5 .ha-home-carousel-control-v146 {
  position: absolute;
  top: calc(50% - 8px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 58px;
  padding: 0;
  color: #FFF;
  background: #0169B7;
  border: 1px solid #0169B7;
  border-radius: 0;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

body.page-id-5 .ha-home-carousel-control-v146--prev { left: 0; }
body.page-id-5 .ha-home-carousel-control-v146--next { right: 0; }

body.page-id-5 .ha-home-carousel-control-v146:disabled {
  color: #666;
  background: #F1F1F1;
  border-color: #D8D8D8;
  cursor: default;
  opacity: .65;
}

body.page-id-5 .ha-home-carousel-control-v146:focus-visible {
  outline: 3px solid #2B2B2B;
  outline-offset: 3px;
}

/* Remove the green decorative panel from the home new-machine section. */
body.page-id-5 .ha-home-new-machines-v129 {
  background: #FFF !important;
  border-top: 0 !important;
}

body.page-id-5 .ha-home-new-machines-v129::after {
  display: none !important;
}

body.page-id-5 .ha-home-new-machines-copy-v129 {
  background: #FFF !important;
  border-left: 0 !important;
}

@media screen and (min-width: 600px) and (max-width: 959px) {
  body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-grid-v115:has(> .ha-home-machine-card-v115:nth-child(3)) {
    justify-content: flex-start;
  }
}

@media screen and (min-width: 960px) {
  body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-grid-v115:has(> .ha-home-machine-card-v115:nth-child(4)) {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 599px) {
  body.page-id-5 .ha-home-carousel-shell-v146 {
    padding-right: 34px;
    padding-left: 34px;
  }

  body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-grid-v115 {
    justify-content: flex-start;
  }

  body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-grid-v115:has(> .ha-home-machine-card-v115:only-child) {
    justify-content: center;
  }

  body.page-id-5 .ha-home-carousel-control-v146 {
    width: 30px;
    height: 52px;
    font-size: 28px;
  }

  body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location > h3,
  body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location > p {
    padding: 14px 15px !important;
  }

  body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location > h3 {
    border-bottom: 0 !important;
    border-top: 1px solid #D8D8D8 !important;
  }

  body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location > h3:first-child {
    border-top: 0 !important;
  }

  body.page-id-6 .ha-header[data-hall-aio-blog-id="3"] + .ha-main .ha-weekly-floor-location > p:not(:last-child) {
    border-bottom: 1px solid #D8D8D8 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-5 .ha-home-recommended-v137 .ha-home-machine-grid-v115 {
    scroll-behavior: auto;
  }

  body.page-id-7 .ha-access-actions-v124 a {
    transition: none;
  }
}

