/* STAR Business Website 1.0.8 — small screen readability
   Scope A: single blog posts using the Astra/WordPress template.
   Scope B: Insights / Kegiatan cards from STAR Business plugin.
   Desktop design is intentionally unchanged. */

@media screen and (max-width: 767px) {
  /* WordPress blog posts, e.g. Luckin Coffee: readable titles, no broken words. */
  html body.single-post .site-content .entry-title,
  html body.single-post .site-content h1.entry-title,
  html body.single-post .site-content h1.wp-block-post-title {
    font-size: clamp(29px, 8vw, 34px) !important;
    line-height: 1.20 !important;
    letter-spacing: -.025em !important;
    margin-bottom: 18px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
  }
  html body.single-post .entry-content h1 {
    font-size: clamp(29px, 8vw, 34px) !important;
    line-height: 1.20 !important;
  }
  html body.single-post .entry-content h2,
  html body.single-post .entry-content h2.wp-block-heading {
    font-size: clamp(24px, 6.9vw, 28px) !important;
    line-height: 1.29 !important;
    letter-spacing: -.018em !important;
    margin: 29px 0 14px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
    max-width: 100% !important;
  }
  html body.single-post .entry-content h3,
  html body.single-post .entry-content h3.wp-block-heading {
    font-size: clamp(21px, 5.8vw, 24px) !important;
    line-height: 1.33 !important;
    margin: 25px 0 12px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
  }
  /* Some imported posts wrap heading words in oversized inline spans. */
  html body.single-post .entry-content h1 :is(span,strong,em,b),
  html body.single-post .entry-content h2 :is(span,strong,em,b),
  html body.single-post .entry-content h3 :is(span,strong,em,b) {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
  html body.single-post .entry-content :is(p,li,blockquote) {
    font-size: clamp(16px, 4.35vw, 18px) !important;
    line-height: 1.75 !important;
    overflow-wrap: break-word;
  }
  html body.single-post .entry-content > * { max-width: 100%; }
  html body.single-post .entry-content :is(img,video,iframe,figure) {
    max-width: 100% !important;
  }
  html body.single-post .entry-content img { height: auto; }
  html body.single-post .entry-content .wp-block-spacer {
    max-height: 38px !important;
    height: 26px !important;
  }
  html body.single-post .site-content .post-thumb img,
  html body.single-post .site-content .ast-single-post-featured-section img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  html body.single-post .site-header .custom-logo-link img,
  html body.single-post .site-header img.custom-logo {
    max-width: min(245px, 72vw) !important;
    height: auto !important;
  }
  html body.single-post .ast-separate-container .ast-article-single,
  html body.single-post.ast-separate-container .ast-article-single {
    padding: 25px 19px !important;
  }

  /* Insights / Kegiatan archive — artwork uncropped and legible cards. */
  html body.star-business-site .activity-grid,
  html body.star-business-site .insight-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
  }
  html body.star-business-site .activity-card,
  html body.star-business-site .insight-card {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html body.star-business-site .activity-image-link {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    background: #f3f5f6 !important;
  }
  html body.star-business-site .activity-card-image,
  html body.star-business-site .star-preview-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }
  html body.star-business-site .activity-card:hover .activity-card-image {
    transform: none !important;
  }
  html body.star-business-site .activity-card-body,
  html body.star-business-site .insight-content {
    padding: 22px 21px 25px !important;
    min-width: 0 !important;
  }
  html body.star-business-site .activity-card h2,
  html body.star-business-site .insight-card h3 {
    font-size: clamp(19px, 5.4vw, 23px) !important;
    line-height: 1.34 !important;
    letter-spacing: -.015em !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
    white-space: normal !important;
  }
  html body.star-business-site .activity-card p,
  html body.star-business-site .insight-card p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  html body.star-business-site .activity-card-body .activity-read {
    font-size: 12px !important;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
}

/* v1.0.9: STAR Enterprise Value Bridge — readable and ordered on mobile/tablet.
   Desktop layout and all other components remain unchanged. */
@media screen and (max-width: 880px) {
  body.star-business-site .value-bridge {
    margin-top: 30px !important;
    padding: 24px 19px 25px !important;
    border: 1px solid rgba(239, 195, 125, 0.35);
    border-radius: 11px;
    box-sizing: border-box;
    box-shadow: 0 8px 22px rgba(8, 30, 44, 0.07);
  }
  body.star-business-site .value-bridge-label {
    color: #f4cd94 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .13em !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
    text-align: center !important;
  }
  body.star-business-site .value-bridge .bridge-flow {
    display: flex !important;
    flex-flow: column nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100%;
  }
  body.star-business-site .value-bridge .bridge-flow > span {
    display: block !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 13px 11px !important;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-left: 4px solid #e9bf7e;
    border-radius: 7px;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.38 !important;
    text-align: center !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body.star-business-site .value-bridge .bridge-flow > b {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 29px !important;
    margin: 0 !important;
    color: #efc37d !important;
    font-family: Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    transform: rotate(90deg);
  }
  body.star-business-site section#pendekatan { padding-bottom: 60px !important; }
  body.star-business-site section.founder-section { padding-top: 60px !important; }
}
@media screen and (max-width: 440px) {
  body.star-business-site .value-bridge {padding: 20px 16px 22px !important;}
  body.star-business-site .value-bridge .bridge-flow > span {font-size: 17px !important;}
  body.star-business-site .value-bridge-label {font-size: 11px !important;letter-spacing: .11em !important;}
  body.star-business-site section#pendekatan { padding-bottom: 52px !important; }
  body.star-business-site section.founder-section { padding-top: 52px !important; }
}
@media screen and (max-width: 880px) {
  body.star-business-site .value-bridge .bridge-flow > b {
    font-size: 0 !important;
    transform: none !important;
  }
  body.star-business-site .value-bridge .bridge-flow > b::after {
    content: "↓";
    display: block;
    color: #efc37d;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
  }
}
