/* Recreates the compact image-and-title cards used on J Travels.
   Scoped to the Australia homepage and archives; leaves articles unchanged. */
/* Compact three-column footer: brand / explore / site policies. */
.ac-site-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
  background: #172033;
  color: #d6e0ef;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.ac-site-footer .ac-footer-inner {
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 40px 0 20px;
}
.ac-site-footer .ac-footer-columns.wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 58px;
  row-gap: 24px;
  align-items: start;
  margin: 0 !important;
}
.ac-site-footer .ac-footer-columns > .wp-block-column {
  min-width: 0;
  flex: none !important;
  flex-basis: auto !important;
  margin: 0 !important;
}
.ac-site-footer .wp-block-site-title {
  font-size: 21px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.025em;
  font-weight: 750 !important;
  white-space: nowrap;
  margin: 0 !important;
}
.ac-site-footer .wp-block-site-title a {
  color: #fff !important;
  text-decoration: none !important;
}
.ac-site-footer .ac-footer-description {
  max-width: 380px;
  color: #c7d1e0;
  font-size: 14px !important;
  line-height: 1.65;
  margin: 10px 0 0 !important;
}
.ac-site-footer .ac-footer-group h2 {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0 0 14px !important;
}
.ac-site-footer .ac-footer-group p {
  font-size: 13px !important;
  line-height: 1.5;
  margin: 0 0 9px !important;
  color: #c7d1e0;
}
.ac-site-footer a:not(.wp-block-site-title a) {
  color: #d6e0ef;
  text-decoration: none;
  text-underline-offset: 3px;
}
.ac-site-footer a:hover,
.ac-site-footer a:focus-visible {
  color: #fff !important;
  text-decoration: underline !important;
}
.ac-site-footer .ac-footer-bottom {
  margin: 26px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid #344054;
}
.ac-site-footer .ac-footer-bottom p {
  color: #b5c1d2;
  font-size: 12px !important;
  line-height: 1.6;
  max-width: 1050px;
  margin: 0 !important;
}
@media (max-width: 900px) {
  .ac-site-footer .ac-footer-columns.wp-block-columns {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .ac-site-footer .wp-block-site-title {
    font-size: 17px !important;
    white-space: normal;
  }
}
@media (max-width: 650px) {
  .ac-site-footer .ac-footer-inner {
    width: calc(100% - 32px);
    padding: 28px 0 20px;
  }
  .ac-site-footer .ac-footer-columns.wp-block-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 25px;
  }
  .ac-site-footer .ac-footer-brand {
    grid-column: 1 / -1;
  }
  .ac-site-footer .wp-block-site-title {
    font-size: 18px !important;
    white-space: normal;
  }
  .ac-site-footer .ac-footer-description { margin-top: 8px !important; }
  .ac-site-footer .ac-footer-bottom { margin-top: 22px !important; }
}

/* Site header: keep the site name on one line, at a logo-like size. */
.ac-site-header {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.ac-site-header .ac-site-header-inner {
  box-sizing: border-box;
  width: min(100% - 32px, 1400px);
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 15px 0;
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.ac-site-header .wp-block-site-title {
  flex-shrink: 0;
  margin: 0 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 700 !important;
  font-size: 20px !important;
  line-height: 1.2;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.ac-site-header .wp-block-site-title a {
  text-decoration: none !important;
  color: #172033;
}
.ac-site-header .wp-block-navigation {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 550;
}
@media (max-width: 780px) {
  .ac-site-header .ac-site-header-inner { width: calc(100% - 24px); padding: 12px 0; gap: 10px; }
  .ac-site-header .wp-block-site-title { font-size: clamp(12px, 3.2vw, 18px) !important; }
}

.ac-grid-page {
  width: 100%;
  max-width: none !important;
  margin-block-start: 0 !important;
  background: #f2f6fb;
  min-height: 75vh;
  color: #172033;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.ac-grid-page .ac-grid-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.ac-grid-page .ac-grid-heading {
  font-family: inherit;
  font-size: clamp(16px, 2.2vw, 28px) !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  white-space: nowrap;
  color: #172033;
  margin: 0 0 18px !important;
}
.ac-grid-page .ac-posts-query,
.ac-grid-page .ac-grid-wrap > .wp-block-query {
  margin-block-start: 0;
  width: 100%;
}
.ac-grid-page .ac-grid.wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
  align-items: stretch;
}
.ac-grid-page .ac-grid > .wp-block-post {
  min-width: 0;
  padding: 0;
  margin: 0 !important;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ac-grid-page .ac-grid .wp-block-post-featured-image {
  margin: 0 !important;
  padding: 0;
  line-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5edf6;
}
.ac-grid-page .ac-grid .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.ac-grid-page .ac-grid .wp-block-post-featured-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover !important;
  object-position: center;
  margin: 0;
  transition: transform 180ms ease;
}
.ac-grid-page .ac-grid .wp-block-post:hover img {
  transform: scale(1.025);
}
.ac-grid-page .ac-grid .wp-block-post-title {
  margin: 0 !important;
  padding: 12px;
  font-family: inherit;
  font-size: 17px !important;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  color: #172033;
}
.ac-grid-page .ac-grid .wp-block-post-title a {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
}
.ac-grid-page .ac-grid .wp-block-post-title a:hover,
.ac-grid-page .ac-grid .wp-block-post-title a:focus-visible {
  color: #0878f9 !important;
}
.ac-grid-page .ac-grid .wp-block-post-title a:focus-visible {
  outline: 3px solid #0878f9;
  outline-offset: 2px;
}
.ac-grid-page .ac-grid-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 8px;
  margin: 28px 0 0 !important;
}
.ac-grid-page .ac-grid-pagination .page-numbers,
.ac-grid-page .ac-grid-pagination .wp-block-query-pagination-previous,
.ac-grid-page .ac-grid-pagination .wp-block-query-pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 10px;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  text-decoration: none !important;
  font-size: 14px;
}
.ac-grid-page .ac-grid-pagination .page-numbers.current,
.ac-grid-page .ac-grid-pagination a:hover {
  background: #0878f9;
  color: #fff;
}
@media (max-width: 1024px) {
  .ac-grid-page .ac-grid.wp-block-post-template {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
@media (max-width: 600px) {
  .ac-grid-page .ac-grid-wrap { padding: 14px 8px 28px; }
  .ac-grid-page .ac-grid-heading {
    margin-bottom: 12px !important;
    font-size: clamp(12px, 3.5vw, 18px) !important;
  }
  .ac-grid-page .ac-grid.wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }
  .ac-grid-page .ac-grid > .wp-block-post { border-radius: 6px; }
  .ac-grid-page .ac-grid .wp-block-post-title {
    padding: 9px;
    font-size: 14px !important;
    line-height: 1.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ac-grid-page .ac-grid .wp-block-post-featured-image img { transition: none; }
}