/*
 * Public layout repair layer.
 * The production site currently uses OLTANA, so every G-brand component must
 * carry its own layout instead of depending on an inactive child theme.
 */
.g-brand-managed .gzen-page { overflow: clip; }
.g-brand-managed .gzen-page img,
.g-brand-managed .gzen-page svg,
.g-brand-managed .gzen-page video,
.g-brand-managed .gzen-page iframe { max-width: 100%; }
.g-brand-managed .gzen-page :is(h1,h2,h3,p,li,a,button,summary) { overflow-wrap: break-word; }

/* In WordPress the hero itself is already centered.  Reusing the preview's
   viewport gutter here counted the left offset twice and squeezed the copy. */
.g-brand-managed .gsrc-hero__copy { padding-left: 52px!important; }

/* Keep editorial and archive heroes strong without oversized, awkward wraps. */
.g-brand-managed :is(.editorial-hero,.news-hero,.cases-hero,.recruit-hero,.referral-hero) h1 {
  max-width: 720px;
  font-size: clamp(42px,3.7vw,56px);
  line-height: 1.35;
  text-wrap: balance;
}
.g-brand-managed .archive-hero h1 {
  font-size: clamp(40px,3.5vw,54px);
  line-height: 1.35;
  text-wrap: balance;
}
.g-brand-managed .archive-hero { padding-block: 64px 48px; }

/* G-Gallery: do not combine a centered 1280px box with viewport padding. */
.g-brand-managed .gallery-hero.gallery-hero--focused {
  width: min(1180px,calc(100% - 48px));
  margin: 32px auto 0;
  padding: 56px;
  grid-template-columns: minmax(0,1fr) minmax(340px,.62fr);
  gap: 48px;
  border: 1px solid #dce7f1;
  border-radius: 22px;
}
.g-brand-managed .gallery-hero--focused > div:first-child { min-width: 0; }
.g-brand-managed .gallery-hero--focused h1 {
  max-width: 680px;
  font-size: clamp(42px,4.2vw,58px);
  line-height: 1.32;
  text-wrap: balance;
}
.g-brand-managed .gallery-toolbar {
  width: min(1180px,calc(100% - 48px));
  margin: 22px auto 0;
}
.g-brand-managed .gallery-card-meta { margin-top: 13px; display: flex!important; align-items: center; justify-content: space-between; gap: 10px; }
.g-brand-managed .gallery-card-meta small { margin: 0!important; color: #6b7d90!important; font-size: 12px!important; }
.g-brand-managed .gallery-card-meta span { padding: 4px 9px; border-radius: 999px; color: #176b59; background: #edf8f4; font-size: 12px; font-weight: 800; }
.g-brand-managed .gallery-customize { margin-top: 12px!important; color: #58708a!important; font-size: 12px!important; text-align: left!important; }

/* Development LP */
.development-lp { --gs-blue:#1769d2; --gs-navy:#102c50; --gs-ink:#1c2c3e; --gs-muted:#53677e; --gs-line:#dce6f0; --gs-sky:#edf5ff; color: var(--gs-ink); background: #fff; }
.development-hero {
  width: min(1180px,calc(100% - 48px));
  min-height: 610px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  overflow: hidden;
  border: 1px solid var(--gs-line);
  border-radius: 22px;
  background: #f5f8fc;
}
.development-hero__copy { min-width: 0; padding: 66px 52px; align-self: center; }
.development-hero__copy h1 { max-width: 560px; margin: 0; white-space: normal; color: var(--gs-navy); font-size: clamp(40px,3.8vw,54px); line-height: 1.42; letter-spacing: -.045em; }
.development-hero__copy > p:not(.eyebrow) { margin: 22px 0 0; color: #485c73; font-size: 16px; line-height: 1.95; }
.development-hero__copy ul { margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.development-hero__copy li { padding: 7px 11px; border: 1px solid #c8d7e7; border-radius: 999px; color: #43576f; background: #fff; font-size: 13px; font-weight: 800; }
.development-hero__copy > div { margin-top: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.development-hero__copy > div > a:last-child { color: var(--gs-blue); font-size: 14px; font-weight: 850; text-decoration: none; }
.development-hero__visual { position: relative; min-width: 0; margin: 0; padding: 34px; display: grid; place-items: center; background: #eaf2fb; }
.development-hero__visual img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 28px 60px -44px rgba(16,43,78,.65); }
.development-hero__visual figcaption { position: absolute; right: 42px; bottom: 42px; padding: 5px 8px; border-radius: 6px; color: #fff; background: rgba(16,43,78,.78); font-size: 12px; }
.development-proof { width: min(1060px,calc(100% - 48px)); margin: 0 auto; padding: 28px 0; display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--gs-line); }
.development-proof p { margin: 0; padding: 0 24px; display: grid; gap: 4px; text-align: center; }
.development-proof p + p { border-left: 1px solid var(--gs-line); }
.development-proof b { color: var(--gs-navy); font-size: 15px; }
.development-proof span { color: #718094; font-size: 13px; }
.development-section { width: min(1080px,calc(100% - 48px)); margin: 0 auto; padding: 88px 0; }
.development-section > header { max-width: 760px; margin-bottom: 40px; }
.development-section > header small,.development-after > div > small { color: var(--gs-blue); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.development-section > header h2,.development-after h2 { margin: 9px 0 12px; color: var(--gs-navy); font-size: clamp(29px,3vw,41px); line-height: 1.5; letter-spacing: -.035em; }
.development-section > header p,.development-after > div > p { margin: 0; color: var(--gs-muted); font-size: 15px; line-height: 1.95; }
.development-before-after { display: grid; grid-template-columns: 1fr 54px 1fr; align-items: center; }
.development-before-after article { min-height: 260px; padding: 30px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; border: 1px solid #d9e3ed; border-radius: 18px; background: #f7f9fb; }
.development-before-after article:last-child { border-color: #a8c9ee; background: #ecf5ff; }
.development-before-after article > span { width: 100%; color: #718094; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.development-before-after article:last-child > span { color: var(--gs-blue); }
.development-before-after article > b { width: 100%; margin: 8px 0 24px; color: var(--gs-navy); font-size: 22px; line-height: 1.65; }
.development-before-after article > i { flex: 1; min-height: 72px; padding: 10px; display: grid; place-items: center; border: 1px solid #d6e0ea; border-radius: 10px; color: #53657a; background: #fff; font-size: 13px; font-style: normal; font-weight: 800; }
.development-before-after article:last-child > i { border-color: #bcd4ef; color: #175da9; }
.development-before-after > em { width: 38px; height: 38px; margin: auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--gs-blue); font-size: 16px; font-style: normal; }
.development-examples { padding-top: 28px; }
.development-examples > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.development-examples article { min-width: 0; min-height: 290px; padding: 24px; border: 1px solid var(--gs-line); border-radius: 17px; background: #fff; }
.development-examples article > span { color: var(--gs-blue); font-size: 12px; font-weight: 900; }
.development-icon { position: relative; width: 64px; height: 64px; margin: 16px 0 20px; border-radius: 18px; background: var(--gs-sky); }
.development-icon i { position: absolute; left: 16px; right: 16px; height: 6px; border-radius: 4px; background: #8cb9ed; }
.development-icon i:nth-child(1) { top: 16px; }
.development-icon i:nth-child(2) { top: 29px; width: 22px; }
.development-icon i:nth-child(3) { top: 42px; width: 30px; background: var(--gs-blue); }
.development-examples h3 { margin: 0 0 10px; color: var(--gs-navy); font-size: 19px; }
.development-examples article p { margin: 0; color: var(--gs-muted); font-size: 14px; line-height: 1.85; }
.development-flow { background: #f2f6fb; }
.development-flow .development-section { padding-block: 88px; }
.development-flow ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; list-style: none; }
.development-flow li { position: relative; min-width: 0; min-height: 230px; padding: 24px 21px; border-radius: 16px; background: #fff; }
.development-flow li > span { color: var(--gs-blue); font-size: 13px; font-weight: 900; }
.development-flow li b { display: block; margin: 28px 0 10px; color: var(--gs-navy); font-size: 17px; }
.development-flow li p { margin: 0; color: var(--gs-muted); font-size: 13px; line-height: 1.8; }
.development-flow li > i { position: absolute; z-index: 2; top: 50%; right: -18px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--gs-blue); background: #fff; box-shadow: 0 8px 20px -13px rgba(16,43,78,.8); font-size: 11px; font-style: normal; font-weight: 900; }
.development-after { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 58px; }
.development-after figure { position: relative; margin: 0; }
.development-after figure img { width: 100%; height: auto; display: block; border-radius: 20px; }
.development-after figcaption { position: absolute; right: 9px; bottom: 9px; padding: 4px 7px; border-radius: 5px; color: #fff; background: rgba(16,43,78,.75); font-size: 12px; }
.development-after ul { margin: 24px 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.development-after li { padding-left: 22px; position: relative; color: #42576f; font-size: 14px; font-weight: 750; }
.development-after li::before { content: "✓"; position: absolute; left: 0; color: var(--gs-blue); }
.development-after a { color: var(--gs-blue); font-size: 14px; font-weight: 850; }
.development-faq { width: min(880px,calc(100% - 48px)); }
.development-final { padding: 66px max(28px,calc((100vw - 1000px)/2)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 38px; color: #fff; background: var(--gs-navy); }
.development-final small { color: #9ac8ff; font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.development-final h2 { margin: 8px 0; color: #fff; font-size: 30px; line-height: 1.5; }
.development-final p { margin: 0; color: #d3dfec; font-size: 14px; }
.development-final > a { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 12px; color: var(--gs-navy); background: #fff; font-size: 14px; font-weight: 850; text-decoration: none; }

/* Partner recruitment conversation and form remain usable under OLTANA. */
.partner-recruit-hero .partner-human-chat { min-height: 360px; padding: 30px!important; display: grid; align-content: center; gap: 18px; overflow: hidden; border: 1px solid #caddec; border-radius: 22px; background: #f3f7fb; }
.partner-human-chat__heading span { display: block; margin-bottom: 4px; color: #587087; font-size: 13px; font-weight: 750; }
.partner-human-chat__heading b { margin: 0!important; color: #102c50!important; font-size: 18px!important; }
.partner-chat-row { display: flex; align-items: end; gap: 9px; }
.partner-chat-row.is-partner { flex-direction: row-reverse; }
.partner-chat-row i { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #526b82; font-size: 12px; font-style: normal; font-weight: 850; }
.partner-chat-row.is-partner i { background: #1769d2; }
.partner-chat-row p { max-width: 78%; margin: 0!important; padding: 13px 15px; border: 1px solid #d7e2ec; border-radius: 15px 15px 15px 4px; color: #385067!important; background: #fff; font-size: 13px!important; line-height: 1.7!important; }
.partner-chat-row.is-partner p { border-color: #bdd3ee; border-radius: 15px 15px 4px 15px; background: #eaf3ff; }
.partner-human-chat > small { position: static!important; color: #718397!important; font-size: 12px!important; text-align: center; }
.partner-recruit-form { grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr)!important; padding: 54px!important; gap: 40px!important; }
.partner-recruit-form > ol { grid-template-columns: repeat(2,minmax(0,1fr))!important; }
.partner-recruit-form li { min-width: 0; min-height: 92px; align-items: flex-start; border-radius: 12px!important; }

/* Small text that became unreadable after theme styles were applied. */
.line-style .chat-date,
.line-style .sender,
.line-style .window-person small,
.line-style .secure-label,
.line-style .demo-caption,
.line-style .control-buttons button { font-size: 12px!important; }
.line-style .result-card :is(p,li,small) { font-size: 12px!important; line-height: 1.55; }
.partner-directory-list article > p:last-child { font-size: 13px; }
.partner-directory-photo small { font-size: 12px!important; }
.partner-directory-list article > p { font-size: 12px!important; }
.g-brand-managed .article-mag-column { width: 100%; min-width: 0; }
.g-brand-managed .article-page .article-layout.article-mag-layout--reference {
  width: min(1100px,calc(100% - 48px));
  margin: 58px auto 96px;
  grid-template-columns: minmax(0,748px) 292px;
  gap: 54px;
}
.g-brand-managed .article-mag-header,
.g-brand-managed .article-mag-header > div,
.g-brand-managed .article-mag-header h1,
.g-brand-managed .article-mag-main { min-width: 0; max-width: 100%; }
.g-brand-managed .article-meta time,
.g-brand-managed .article-meta span { height: auto; line-height: 1.7; letter-spacing: .02em; }

/*
 * Single CPT pages render the article itself with `.simple-detail`.
 * The legacy stylesheet expected a wrapper containing an article, which left
 * news, event, donation and influencer details flush against the viewport.
 */
.g-brand-managed .breadcrumbs {
  width: min(1120px,calc(100% - 48px));
  margin: 24px auto;
  line-height: 1.7;
}
.g-brand-managed main > article.simple-detail {
  width: min(840px,calc(100% - 48px));
  margin: 48px auto 96px;
  color: #10284a;
  background: #fff;
  font-size: 16px;
  line-height: 1.9;
}
.g-brand-managed main > article.simple-detail > .eyebrow {
  margin: 0 0 12px;
  color: #1769d2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
}
.g-brand-managed main > article.simple-detail > h1,
.g-brand-managed main > article.simple-detail > header h1 {
  max-width: 760px;
  margin: 0 0 20px;
  color: #10284a;
  font-size: clamp(36px,3.5vw,48px);
  line-height: 1.4;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.g-brand-managed main > article.simple-detail > .article-lead {
  max-width: 720px;
  margin: 0 0 30px;
  color: #52677f;
  font-size: 16px;
  line-height: 1.9;
}
.g-brand-managed main > article.simple-detail .event-facts {
  overflow: hidden;
  margin: 32px 0 44px;
  border-radius: 14px;
}
.g-brand-managed main > article.simple-detail .event-facts > div { padding: 19px 22px; }
.g-brand-managed main > article.simple-detail .event-facts dt { font-size: 13px; }
.g-brand-managed main > article.simple-detail .event-facts dd { font-size: 16px; line-height: 1.65; }
.g-brand-managed main > article.simple-detail .service-hero-image {
  margin: 34px 0;
  overflow: hidden;
  border-radius: 18px;
}
.g-brand-managed main > article.simple-detail .service-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.g-brand-managed main > article.simple-detail .wp-entry-content {
  color: #405872;
  font-size: 16px;
  line-height: 1.95;
}
.g-brand-managed main > article.simple-detail .wp-entry-content > :first-child { margin-top: 0; }
.g-brand-managed main > article.simple-detail .wp-entry-content h2 {
  margin: 54px 0 18px;
  padding-top: 18px;
  border-top: 1px solid #dce6f0;
  color: #10284a;
  font-size: 28px;
  line-height: 1.55;
}
.g-brand-managed main > article.simple-detail > .outline-button,
.g-brand-managed main > article.simple-detail > .primary-button {
  margin-top: 36px;
  display: inline-flex;
}

/* Influencer profile details use the same direct-article template. */
.g-brand-managed main > article.labo-influencer-detail > header {
  margin-bottom: 50px;
  padding: 34px;
  display: grid;
  grid-template-columns: 180px minmax(0,1fr);
  align-items: center;
  gap: 34px;
  border: 1px solid #dce6f0;
  border-radius: 18px;
  background: #f5f9fd;
}
.g-brand-managed main > article.labo-influencer-detail > header img,
.g-brand-managed main > article.labo-influencer-detail > header .profile-placeholder {
  width: 180px;
  height: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.g-brand-managed main > article.labo-influencer-detail > header h1 { margin-bottom: 10px; }
.g-brand-managed main > article.labo-influencer-detail > section {
  padding: 34px 0;
  border-top: 1px solid #dce6f0;
}
.g-brand-managed main > article.labo-influencer-detail > section h2 { margin: 0 0 14px; font-size: 27px; }
.g-brand-managed .labo-social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.g-brand-managed .labo-social-links a {
  min-width: 160px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #bfd1e4;
  border-radius: 9px;
  color: #1769d2;
  text-decoration: none;
  font-weight: 800;
}

@media(max-width:900px){
  .g-brand-managed .article-page .article-layout.article-mag-layout--reference { grid-template-columns: 1fr; gap: 0; }
  .development-hero { grid-template-columns: 1fr; }
  .development-hero__visual { min-height: 400px; }
  .development-examples > div,.development-flow ol { grid-template-columns: 1fr 1fr; }
  .development-flow li:nth-child(2) > i { display: none; }
  .development-after { grid-template-columns: 1fr; }
  .partner-recruit-form { grid-template-columns: 1fr!important; padding: 42px 28px!important; }
}
@media(max-width:640px){
  .g-brand-managed .article-page .article-layout.article-mag-layout--reference { width: calc(100% - 28px); margin-top: 30px; }
  .g-brand-managed .gsrc-hero__copy{padding-left:20px!important}
  .g-brand-managed :is(.editorial-hero,.news-hero,.cases-hero,.recruit-hero,.referral-hero) h1,
  .g-brand-managed .archive-hero h1 { font-size: 34px; line-height: 1.42; }
  .g-brand-managed .archive-hero { padding-block: 48px 34px; }
  .g-brand-managed .gallery-hero.gallery-hero--focused { width: calc(100% - 24px); margin: 12px auto 0; padding: 38px 20px; grid-template-columns: 1fr; gap: 28px; border-radius: 17px; }
  .g-brand-managed .gallery-hero--focused h1 { font-size: 34px; }
  .g-brand-managed .gallery-toolbar { width: calc(100% - 24px); }
  .development-hero { width: calc(100% - 24px); min-height: 0; margin-top: 12px; border-radius: 17px; }
  .development-hero__copy { padding: 38px 20px 30px; }
  .development-hero__copy h1 { font-size: 34px; line-height: 1.48; }
  .development-hero__copy > p:not(.eyebrow) { font-size: 14px; }
  .development-hero__copy > div { align-items: stretch; flex-direction: column; gap: 14px; }
  .development-hero__copy .primary-button { width: 100%; }
  .development-hero__visual { min-height: 0; padding: 16px; }
  .development-hero__visual figcaption { right: 22px; bottom: 22px; }
  .development-proof { width: calc(100% - 32px); grid-template-columns: 1fr; }
  .development-proof p { padding: 15px 0; }
  .development-proof p + p { border-top: 1px solid var(--gs-line); border-left: 0; }
  .development-section { width: calc(100% - 32px); padding: 64px 0; }
  .development-before-after { grid-template-columns: 1fr; gap: 10px; }
  .development-before-after > em { transform: rotate(90deg); }
  .development-before-after article { min-height: 230px; padding: 23px 18px; }
  .development-before-after article > b { font-size: 19px; }
  .development-examples { padding-top: 0; }
  .development-examples > div,.development-flow ol { grid-template-columns: 1fr; }
  .development-examples article { min-height: 0; }
  .development-flow li { min-height: 175px; }
  .development-flow li > i { top: auto; right: calc(50% - 13px); bottom: -18px; transform: rotate(90deg); }
  .development-flow li:nth-child(2) > i { display: grid; }
  .development-after { gap: 30px; }
  .development-faq { width: calc(100% - 32px); }
  .development-final { padding: 52px 20px; grid-template-columns: 1fr; }
  .development-final h2 { font-size: 25px; }
  .development-final > a { width: 100%; }
  .partner-recruit-hero .partner-human-chat { min-height: 0; padding: 24px 18px!important; }
  .partner-chat-row p { max-width: 84%; }
  .partner-recruit-form { padding: 38px 18px!important; border-radius: 0!important; }
  .partner-recruit-form > ol { grid-template-columns: 1fr!important; }
  .partner-recruit-form li { min-height: 0; }
  .g-brand-managed .breadcrumbs { width: calc(100% - 32px); margin-block: 16px; font-size: 12px!important; }
  .g-brand-managed main > article.simple-detail { width: calc(100% - 32px); margin: 30px auto 68px; }
  .g-brand-managed main > article.simple-detail > h1,
  .g-brand-managed main > article.simple-detail > header h1 { font-size: 32px; line-height: 1.45; }
  .g-brand-managed main > article.simple-detail > .article-lead,
  .g-brand-managed main > article.simple-detail .wp-entry-content { font-size: 15px; }
  .g-brand-managed main > article.simple-detail .event-facts { grid-template-columns: 1fr; margin-block: 26px 36px; }
  .g-brand-managed main > article.simple-detail .wp-entry-content h2 { margin-top: 44px; font-size: 24px; }
  .g-brand-managed main > article.labo-influencer-detail > header {
    padding: 24px 20px;
    grid-template-columns: 96px minmax(0,1fr);
    gap: 18px;
  }
  .g-brand-managed main > article.labo-influencer-detail > header img,
  .g-brand-managed main > article.labo-influencer-detail > header .profile-placeholder { width: 96px; height: 96px; }
}

/*
 * Public finish pass: fixed-height conversation, permission-aware logo ticker,
 * readable conversion controls and the beginner subsidy guide.
 */
.g-brand-managed {
  --g-space-section: clamp(64px,7.5vw,96px);
  --g-control-height: 50px;
  --g-body-size: 16px;
  --g-caption-size: 13px;
}
.g-brand-managed :where(.primary-button,.outline-button,.gsrc-button,.rental-primary,.training-final a,.development-final a,.subsidy-final a) {
  min-height: var(--g-control-height);
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
  text-decoration: none;
}
.g-brand-managed :where(.gsrc-section-title,.lp-section-head,.training-section>header,.subsidy-section>header) > p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.9;
}

/* The page no longer grows as the chat plays. New messages scroll inside it. */
.gsrc-svelte-section [data-g-support-chat] { min-width: 0; }
.gsrc-svelte-section .chat-demo.line-style {
  height: 620px;
  max-height: min(76vh,620px);
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto auto;
}
.gsrc-svelte-section .line-style .chat-area {
  min-height: 0 !important;
  height: auto;
  padding: 22px;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-color: rgba(34,74,106,.48) rgba(255,255,255,.28);
  scrollbar-width: thin;
}
.gsrc-svelte-section .line-style .chat-area:focus-visible {
  outline: 3px solid #78ace3;
  outline-offset: -3px;
}
.gsrc-svelte-section .line-style .chat-area::-webkit-scrollbar { width: 8px; }
.gsrc-svelte-section .line-style .chat-area::-webkit-scrollbar-track { background: rgba(255,255,255,.24); }
.gsrc-svelte-section .line-style .chat-area::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(34,74,106,.46); }

/* Logos use real uploaded files only when the case-study permission flag is on. */
.gsrc-trust > .gsrc-logo-marquee,
.gsrc-results > .gsrc-logo-marquee {
  width: 100%;
  display: block;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.gsrc-logo-track {
  width: max-content;
  padding: 2px 0;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: stretch;
  gap: 12px;
  animation: gLogoTicker 32s linear infinite;
}
.gsrc-logo-track > span {
  width: 190px;
  min-height: 66px !important;
  flex: 0 0 190px;
  padding: 10px 18px !important;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  color: #40566e !important;
  background: #fff;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}
.gsrc-logo-track > span img { width: auto; max-width: 150px; height: 42px; object-fit: contain; }
.gsrc-logo-marquee:hover .gsrc-logo-track,
.gsrc-logo-marquee:focus-within .gsrc-logo-track { animation-play-state: paused; }
@keyframes gLogoTicker { to { transform: translateX(calc(-50% - 6px)); } }

.article-cta-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.article-cta-actions .outline-button { border: 1px solid #b9d2ec; color: #155fac; background: #fff; }
.article-side-cta .article-side-material {
  min-height: 40px !important;
  margin-top: 8px;
  border: 1px solid #a9c7e7;
  color: #155fac !important;
  background: #fff !important;
}

/* Published case studies read like editorial stories and scale cleanly. */
.g-brand-managed .case-list > div { gap: 22px; }
.g-brand-managed .case-list article {
  padding: 0 0 24px;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px -32px rgba(13,53,98,.55);
}
.g-brand-managed .case-list article > :not(.case-thumb) { margin-inline: 22px; }
.g-brand-managed .case-list .case-thumb {
  min-height: 0;
  margin: 0 0 20px;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background-color: #edf4fb;
  background-position: center;
  background-size: cover;
}
.g-brand-managed .case-list article h3 { margin-top: 0; font-size: 21px; line-height: 1.55; }
.g-brand-managed .case-list article p,
.g-brand-managed .case-list article dd { font-size: 14px; line-height: 1.8; }

/* Subsidy guide. Exact rates are intentionally not claimed without an eligibility review. */
.subsidy-lp { color: #172f4c; background: #fff; }
.subsidy-lp .breadcrumbs { margin-block: 20px; }
.subsidy-hero {
  width: min(1180px,calc(100% - 48px));
  margin: 0 auto;
  padding: 62px;
  display: grid;
  grid-template-columns: minmax(0,.94fr) minmax(420px,1.06fr);
  align-items: center;
  gap: 48px;
  overflow: hidden;
  border: 1px solid #d7e3ee;
  border-radius: 24px;
  background: linear-gradient(135deg,#fff 0%,#f5f9fe 72%,#fff8e9 100%);
  box-shadow: 0 24px 70px -54px rgba(13,52,96,.55);
}
.subsidy-hero__copy { min-width: 0; }
.subsidy-hero .eyebrow { margin: 0 0 16px; color: #1769d2; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.subsidy-hero h1 { margin: 0; color: #102b4c; font-size: clamp(38px,4vw,54px); line-height: 1.42; letter-spacing: -.045em; text-wrap: balance; }
.subsidy-hero__copy > p:not(.eyebrow) { margin: 22px 0 0; color: #4d637a; font-size: 16px; line-height: 1.95; }
.subsidy-hero ul { margin: 24px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.subsidy-hero li { padding-left: 26px; position: relative; font-size: 14px; font-weight: 800; }
.subsidy-hero li::before { content: "\2713"; position: absolute; left: 0; color: #16846d; }
.subsidy-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.subsidy-actions .primary-button { color: #fff; background: #1769d2; }
.subsidy-actions .outline-button { border: 1px solid #afc8e3; color: #155fac; background: #fff; }
.subsidy-hero figure { margin: 0; }
.subsidy-hero figure img { width: 100%; height: auto; display: block; border: 1px solid #d9e5ef; border-radius: 18px; background: #fff; }
.subsidy-hero figcaption { margin-top: 8px; color: #718195; font-size: 12px; text-align: right; }
.subsidy-update {
  width: min(1080px,calc(100% - 48px));
  margin: 28px auto 0;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #ead7a3;
  border-left: 5px solid #d39a28;
  border-radius: 12px;
  background: #fffaf0;
}
.subsidy-update b { color: #79571a; font-size: 13px; }
.subsidy-update p { margin: 0; color: #655c4b; font-size: 13px; line-height: 1.75; }
.subsidy-update a { color: #155fac; font-size: 13px; font-weight: 850; white-space: nowrap; }
.subsidy-section,
.subsidy-price { width: min(1080px,calc(100% - 48px)); margin: 0 auto; padding: var(--g-space-section) 0; }
.subsidy-section > header { max-width: 780px; margin-bottom: 34px; }
.subsidy-section > header > small,
.subsidy-price > div > small { color: #1769d2; font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.subsidy-section > header h2,
.subsidy-price h2 { margin: 8px 0 12px; color: #102b4c; font-size: clamp(29px,3.1vw,40px); line-height: 1.5; letter-spacing: -.035em; }
.subsidy-section > header p,
.subsidy-price > div > p { margin: 0; color: #536a81; font-size: 15px; line-height: 1.95; }
.subsidy-plain-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.subsidy-plain-cards article { min-height: 220px; padding: 26px; border: 1px solid #d9e4ef; border-radius: 16px; background: #fff; }
.subsidy-plain-cards span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #1769d2; font-size: 14px; font-weight: 900; }
.subsidy-plain-cards h3 { margin: 24px 0 9px; font-size: 20px; }
.subsidy-plain-cards p { margin: 0; color: #5c7085; font-size: 14px; line-height: 1.8; }
.subsidy-price { padding: 50px; display: grid; grid-template-columns: 1fr 380px; align-items: center; gap: 52px; border-radius: 22px; color: #fff; background: #102f57; }
.subsidy-price > div > small { color: #9bc8f4; }
.subsidy-price h2 { color: #fff; }
.subsidy-price > div > p { color: #cbd9e8; }
.subsidy-price article { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 17px; background: #fff; color: #17304e; box-shadow: 0 20px 50px rgba(0,0,0,.16); }
.subsidy-price article > span { display: block; color: #60758b; font-size: 13px; font-weight: 850; }
.subsidy-price article > strong { display: block; margin: 4px 0 0; color: #1769d2; font-size: 70px; line-height: 1; letter-spacing: -.06em; }
.subsidy-price article > strong small { font-size: 24px; }
.subsidy-price article > b { font-size: 15px; }
.subsidy-price article > p { margin: 18px 0 8px; color: #536a80; font-size: 14px; line-height: 1.8; }
.subsidy-price article > em { display: block; color: #7a6a4e; font-size: 11px; font-style: normal; line-height: 1.65; }
.subsidy-flow ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; list-style: none; }
.subsidy-flow li { min-width: 0; min-height: 220px; padding: 22px 18px; position: relative; border: 1px solid #dae5ef; border-radius: 15px; background: #f7f9fc; }
.subsidy-flow li:not(:last-child)::after { content: "\2192"; width: 26px; height: 26px; position: absolute; z-index: 2; top: 50%; right: -19px; display: grid; place-items: center; border-radius: 50%; color: #1769d2; background: #fff; font-weight: 900; box-shadow: 0 5px 15px rgba(20,71,124,.14); }
.subsidy-flow li > b { color: #1769d2; font-size: 13px; }
.subsidy-flow li > strong { display: block; margin: 28px 0 10px; font-size: 17px; line-height: 1.55; }
.subsidy-flow li > span { color: #61758a; font-size: 13px; line-height: 1.75; }
.subsidy-checks { border-top: 1px solid #dfe7ef; }
.subsidy-checks > div { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.subsidy-checks article { padding: 22px 18px; border-radius: 14px; background: #edf5ff; }
.subsidy-checks article b { font-size: 15px; line-height: 1.55; }
.subsidy-checks article p { margin: 10px 0 0; color: #5a7189; font-size: 13px; line-height: 1.75; }
.subsidy-role-table { overflow: hidden; border: 1px solid #d9e4ee; border-radius: 16px; }
.subsidy-role-table article { display: grid; grid-template-columns: 210px 1fr; align-items: center; border-bottom: 1px solid #d9e4ee; }
.subsidy-role-table article:last-child { border-bottom: 0; }
.subsidy-role-table b { align-self: stretch; padding: 22px; display: flex; align-items: center; color: #155fac; background: #eef5fc; font-size: 16px; }
.subsidy-role-table p { margin: 0; padding: 22px; color: #526a81; font-size: 14px; line-height: 1.8; }
.subsidy-roles aside { margin-top: 22px; padding: 23px; border-left: 5px solid #d39a28; background: #fff9ec; }
.subsidy-roles aside strong { font-size: 15px; }
.subsidy-roles aside p { margin: 7px 0 0; color: #685f4e; font-size: 13px; line-height: 1.8; }
.subsidy-faq { max-width: 900px; }
.subsidy-faq details { border-top: 1px solid #d9e4ee; }
.subsidy-faq details:last-child { border-bottom: 1px solid #d9e4ee; }
.subsidy-faq summary { min-height: 68px; padding: 20px 48px 20px 8px; position: relative; display: flex; align-items: center; cursor: pointer; font-size: 16px; font-weight: 850; line-height: 1.7; list-style: none; }
.subsidy-faq summary::-webkit-details-marker { display: none; }
.subsidy-faq summary::after { content: "+"; position: absolute; right: 12px; color: #1769d2; font-size: 24px; font-weight: 500; transition: transform .2s ease; }
.subsidy-faq details[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.subsidy-faq details p { margin: 0; padding: 0 48px 24px 8px; color: #536b82; font-size: 15px; line-height: 1.9; }
.subsidy-final { padding: 58px max(24px,calc((100vw - 1000px)/2)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 42px; color: #fff; background: #0f315b; }
.subsidy-final small { color: #9bc8f5; font-size: 13px; font-weight: 900; }
.subsidy-final h2 { margin: 7px 0 10px; color: #fff; font-size: 30px; line-height: 1.5; }
.subsidy-final p { max-width: 760px; margin: 0; color: #cfdaE7; font-size: 14px; line-height: 1.8; }
.subsidy-final a { min-width: 210px; color: #113458; background: #fff; }

/* The training LP had several 10–12px remnants that were too small on desktop. */
.training-lp-v2 .tlp-section :where(p,li) { font-size: max(14px,.925rem); line-height: 1.85; }
.training-lp-v2 .tlp-section :where(h3,b) { line-height: 1.55; }
.training-lp-v2 .tlp-section :where(a,summary) { font-size: max(13px,.875rem); }

@media(max-width:900px){
  .subsidy-hero { padding: 44px; grid-template-columns: 1fr; }
  .subsidy-update { grid-template-columns: 1fr; gap: 8px; }
  .subsidy-update a { white-space: normal; }
  .subsidy-price { grid-template-columns: 1fr; }
  .subsidy-flow ol { grid-template-columns: repeat(2,1fr); }
  .subsidy-flow li:not(:last-child)::after { display: none; }
  .subsidy-checks > div { grid-template-columns: repeat(2,1fr); }
}

@media(max-width:640px){
  .g-brand-managed { --g-space-section: 60px; --g-body-size: 16px; }
  .gsrc-svelte-section .chat-demo.line-style { height: 560px; max-height: none; }
  .gsrc-svelte-section .line-style .chat-area { padding: 18px 14px; }
  .gsrc-svelte-section .line-style .message-body { max-width: 84%; }
  .gsrc-svelte-section .line-style .bubble { padding: 11px 13px; font-size: 13px; }
  .gsrc-logo-track > span { width: 164px; flex-basis: 164px; min-height: 60px !important; font-size: 12px !important; }
  .article-cta-actions { align-items: stretch; flex-direction: column; }
  .article-cta-actions > a { width: 100%; }
  .g-brand-managed .case-list article > :not(.case-thumb) { margin-inline: 18px; }
  .subsidy-hero { width: calc(100% - 24px); padding: 36px 20px 24px; gap: 28px; border-radius: 18px; }
  .subsidy-hero h1 { font-size: 34px; }
  .subsidy-hero__copy > p:not(.eyebrow) { font-size: 15px; }
  .subsidy-actions { align-items: stretch; flex-direction: column; }
  .subsidy-actions a { width: 100%; }
  .subsidy-update,
  .subsidy-section,
  .subsidy-price { width: calc(100% - 32px); }
  .subsidy-update { padding: 18px; }
  .subsidy-section > header h2,
  .subsidy-price h2 { font-size: 28px; }
  .subsidy-plain-cards,
  .subsidy-flow ol,
  .subsidy-checks > div { grid-template-columns: 1fr; }
  .subsidy-plain-cards article,
  .subsidy-flow li { min-height: 0; }
  .subsidy-price { padding: 32px 22px; gap: 28px; }
  .subsidy-price article { padding: 24px 20px; }
  .subsidy-price article > strong { font-size: 60px; }
  .subsidy-role-table article { grid-template-columns: 1fr; }
  .subsidy-role-table b { padding: 15px 18px; }
  .subsidy-role-table p { padding: 18px; }
  .subsidy-faq summary { padding-right: 42px; font-size: 15px; }
  .subsidy-faq details p { padding-right: 8px; }
  .subsidy-final { padding: 46px 20px; grid-template-columns: 1fr; }
  .subsidy-final h2 { font-size: 25px; }
  .subsidy-final a { width: 100%; }
}

@media(prefers-reduced-motion:reduce){
  .gsrc-logo-track { animation: none; transform: none; }
  .gsrc-logo-track > span[aria-hidden="true"] { display: none; }
  .gsrc-svelte-section .line-style .chat-area { scroll-behavior: auto; }
}

/*
 * Column UI final pass.
 * This file loads last, so the editorial layout has one predictable source of
 * truth even while the older SWELL refinement rules remain in the package.
 */
.g-brand-managed .g-wp-column-archive {
  --column-rule: #dbe5ef;
  color: #17304e;
  background: #fff;
}
.g-brand-managed .g-wp-column-archive .editorial-hero { margin-bottom: 0; }
.g-brand-managed .g-wp-column-archive .editorial-section {
  width: min(1100px,calc(100% - 48px));
  margin: 56px auto;
}
.g-brand-managed .g-wp-column-archive .popular-ranking { padding-top: 0 !important; }
.g-brand-managed .g-wp-column-archive .popular-ranking__heading { margin-bottom: 22px; }
.g-brand-managed .g-wp-column-archive .popular-ranking ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 18px;
  list-style: none;
  background: transparent;
}
.g-brand-managed .g-wp-column-archive .popular-ranking li { min-width: 0; }
.g-brand-managed .g-wp-column-archive .popular-ranking li > a,
.g-brand-managed .g-wp-column-archive .popular-ranking li:first-child > a {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--column-rule);
  border-radius: 16px;
  color: #17304e;
  background: #fff;
  box-shadow: 0 14px 34px -30px rgba(15,62,115,.45);
}
.g-brand-managed .g-wp-column-archive .popular-ranking__cover {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
}
.g-brand-managed .g-wp-column-archive .popular-ranking li > a > span {
  min-height: 176px;
  padding: 18px 20px 20px;
}
.g-brand-managed .g-wp-column-archive .popular-ranking li > a > span strong {
  font-size: 17px;
  line-height: 1.65;
}
.g-brand-managed .g-wp-column-archive .article-grid--visual > div { gap: 22px; }
.g-brand-managed .g-wp-column-archive .article-grid--visual article { border-radius: 16px; }
.g-brand-managed .g-wp-column-archive .article-card-cover {
  min-height: 0;
  aspect-ratio: 16 / 9;
}
.g-brand-managed .g-wp-column-archive .article-card-foot {
  min-height: 106px;
  padding: 18px 20px !important;
}

.g-brand-managed .article-page.article-magazine .article-layout.article-mag-layout--reference {
  width: min(1080px,calc(100% - 48px));
  margin: 36px auto 84px;
  grid-template-columns: minmax(0,736px) 296px;
  gap: 48px;
}
.g-brand-managed .article-page.article-magazine .article-mag-column > .article-mag-header {
  width: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 26px 0 30px !important;
  border-bottom: 1px solid #d8e2ec;
  background: transparent;
}
.g-brand-managed .article-page.article-magazine .article-mag-header .eyebrow { margin: 0 0 16px; }
.g-brand-managed .article-page.article-magazine .article-mag-header h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(35px,3.2vw,43px);
  line-height: 1.38;
  letter-spacing: -.035em;
}
.g-brand-managed .article-page.article-magazine .article-mag-header .article-lead {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.9;
}
.g-brand-managed .article-page.article-magazine .article-meta { margin-top: 16px; }
.g-brand-managed .article-page.article-magazine .article-byline { margin-top: 10px; }
.g-brand-managed .article-page.article-magazine .article-mag-main { padding-top: 28px; }
.g-brand-managed .article-page.article-magazine .article-mag-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  background: transparent;
  scrollbar-width: thin;
}
.g-brand-managed .article-page.article-magazine .article-mag-sidebar > div {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.g-brand-managed .article-page.article-magazine .article-toc-desktop {
  min-height: 0;
  max-height: min(44vh,360px);
  margin: 0;
  padding: 20px 20px 18px;
  display: block;
  overflow-y: auto;
  border: 1px solid #d6e3ef;
  border-radius: 14px;
  background: #f2f7fc;
}
.g-brand-managed .article-page.article-magazine .article-toc-desktop > b {
  margin-bottom: 9px;
  color: #17304e;
  font-size: 17px;
}
.g-brand-managed .article-page.article-magazine .article-toc-desktop a {
  margin: 1px -6px;
  padding: 8px 6px;
  font-size: 12px;
  line-height: 1.55;
}
.g-brand-managed .article-page.article-magazine .article-side-cta {
  margin: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #bcd4ec !important;
  border-radius: 14px;
  color: #17304e !important;
  background: #eef5fc !important;
}
.g-brand-managed .article-page.article-magazine .article-side-cta::after { display: none; }
.g-brand-managed .article-page.article-magazine .article-side-cta small {
  color: #1769d2 !important;
  font-size: 12px !important;
}
.g-brand-managed .article-page.article-magazine .article-side-cta b {
  margin-top: 7px;
  color: #17304e !important;
  font-size: 18px;
}
.g-brand-managed .article-page.article-magazine .article-side-cta p {
  margin: 8px 0 12px;
  color: #536a80 !important;
  font-size: 12px !important;
}
.g-brand-managed .article-page.article-magazine .article-side-cta a {
  min-height: 46px;
  color: #fff !important;
  background: #1769d2;
}
.g-brand-managed .article-page.article-magazine .wp-entry-content table { max-width: 100%; }
.g-brand-managed .article-page.article-magazine .wp-entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

@media(max-width:900px){
  .g-brand-managed .g-wp-column-archive .popular-ranking ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .g-brand-managed .article-page.article-magazine .article-layout.article-mag-layout--reference {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .g-brand-managed .article-page.article-magazine .article-mag-sidebar { display: none; }
  .g-brand-managed .article-page.article-magazine .article-toc-mobile { display: block; }
}

@media(max-width:640px){
  .g-brand-managed .g-wp-column-archive .editorial-hero {
    width: calc(100% - 24px);
    margin-top: 14px;
    padding: 32px 20px;
  }
  .g-brand-managed .g-wp-column-archive .editorial-hero > img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  .g-brand-managed .g-wp-column-archive .editorial-section {
    width: calc(100% - 32px);
    margin: 44px auto;
  }
  .g-brand-managed .g-wp-column-archive .popular-ranking ol {
    margin-right: -16px;
    padding: 2px 16px 16px 0;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .g-brand-managed .g-wp-column-archive .popular-ranking li,
  .g-brand-managed .g-wp-column-archive .popular-ranking li:first-child {
    min-width: min(82vw,320px);
    scroll-snap-align: start;
  }
  .g-brand-managed .g-wp-column-archive .popular-ranking li > a > span { min-height: 164px; }
  .g-brand-managed .g-wp-column-archive .article-card-overlay {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
  .g-brand-managed .g-wp-column-archive .article-card-overlay strong {
    font-size: 18px;
    line-height: 1.55;
  }
  .g-brand-managed .article-page.article-magazine .article-layout.article-mag-layout--reference {
    width: calc(100% - 32px);
    margin: 20px auto 64px;
  }
  .g-brand-managed .article-page.article-magazine .article-mag-column > .article-mag-header {
    padding: 18px 0 24px !important;
  }
  .g-brand-managed .article-page.article-magazine .article-mag-header h1 {
    font-size: 30px;
    line-height: 1.45;
  }
  .g-brand-managed .article-page.article-magazine .article-mag-header .article-lead,
  .g-brand-managed .article-page.article-magazine .wp-entry-content,
  .g-brand-managed .article-page.article-magazine .wp-entry-content p,
  .g-brand-managed .article-page.article-magazine .wp-entry-content li {
    font-size: 16px;
    line-height: 2;
  }
  .g-brand-managed .article-page.article-magazine .article-mag-main { padding-top: 22px; }
  .g-brand-managed .article-page.article-magazine .article-main-visual,
  .g-brand-managed .article-page.article-magazine .article-main-visual img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
