body[data-page="index"] .matching-home-hero .hero-photo{background-image:var(--hero-bg-image,linear-gradient(135deg,#25282e 0%,#17191e 58%,#30343b 100%));filter:none}
.matching-home-shell{position:relative;z-index:2;width:min(var(--content-width),calc(100% - 40px));margin:0 auto;padding:34px 0 56px;display:grid;gap:38px}
.matching-home-section-head{margin-bottom:15px}.matching-home-section-head h2,.matching-home-guide h2{margin:0;font-size:var(--section-title-size);font-weight:var(--section-title-weight);letter-spacing:-.02em}.matching-home-section-head>p:last-child,.matching-home-guide p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.75}
.matching-home-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.matching-home-action{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:18px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-decoration:none}.matching-home-action>.material-symbols-rounded:first-child{font-size:25px;color:var(--link)}.matching-home-action strong{display:block;font-size:15px;font-weight:800}.matching-home-action small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.6}.matching-home-arrow{font-size:18px!important;color:var(--muted)!important}.matching-home-action:hover{border-color:#c8ccd2;background:#fafbfc}
.matching-home-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}.matching-home-type-grid a{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-height:52px;padding:0 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none;font-size:13px;font-weight:720}.matching-home-type-grid a:nth-child(3n){border-right:0}.matching-home-type-grid a:nth-last-child(-n+3){border-bottom:0}.matching-home-type-grid a>.material-symbols-rounded:first-child{font-size:19px;color:var(--link)}.matching-home-type-grid a>.material-symbols-rounded:last-child{font-size:17px;color:var(--muted)}.matching-home-type-grid a:hover{background:#fafbfc}
.matching-home-guide{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border:1px solid var(--line);border-radius:10px;background:#fff}.matching-home-guide>div{min-width:0}.matching-home-guide .member-link-button{flex:none;text-decoration:none}
@media(max-width:820px){.matching-home-shell{width:calc(100% - 28px);padding:26px 0 42px;gap:30px}.matching-home-actions{grid-template-columns:1fr}.matching-home-action{padding:15px}.matching-home-type-grid{grid-template-columns:1fr}.matching-home-type-grid a,.matching-home-type-grid a:nth-child(3n),.matching-home-type-grid a:nth-last-child(-n+3){border-right:0;border-bottom:1px solid var(--line)}.matching-home-type-grid a:last-child{border-bottom:0}.matching-home-guide{align-items:flex-start;flex-direction:column;padding:18px}.matching-home-guide .member-link-button{width:100%;justify-content:center}.matching-home-section-head h2,.matching-home-guide h2{font-size:22px}}

.matching-home-section-head-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.matching-home-section-head-row .soft-btn{display:inline-flex;align-items:center;gap:4px;text-decoration:none;flex:none}.matching-home-section-head-row .soft-btn .material-symbols-rounded{font-size:17px}.matching-home-horizontal{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x proximity;scrollbar-width:thin}.matching-home-mini-card{flex:0 0 260px;scroll-snap-align:start;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-decoration:none}.matching-home-mini-media{height:150px;display:grid;place-items:center;background:#eef0f3;overflow:hidden}.matching-home-mini-media img{width:100%;height:100%;object-fit:cover}.matching-home-mini-media>.material-symbols-rounded{font-size:44px;color:#a3a9b2}.matching-home-mini-card>div:last-child{display:grid;gap:5px;padding:12px}.matching-home-mini-card small{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.05em}.matching-home-mini-card strong{font-size:15px;line-height:1.45}.matching-home-mini-card span{display:flex;align-items:center;gap:3px;color:var(--muted);font-size:11px}.matching-home-mini-card span .material-symbols-rounded{font-size:15px}.matching-home-craftsman-card .matching-home-mini-media{height:180px}
@media(max-width:820px){.matching-home-section-head-row{align-items:center}.matching-home-mini-card{flex-basis:220px}.matching-home-mini-media{height:130px}.matching-home-craftsman-card .matching-home-mini-media{height:155px}}

/* v3.9.5: top section body alignment + contact panel sizing/toggles; existing defaults remain unchanged. */
:root{
  --home-purpose-title-size:26px;
  --home-purpose-desc-size:14px;
  --home-purpose-icon-size:24px;
  --home-purpose-card-title-size:15px;
  --home-purpose-card-desc-size:12px;
  --home-purpose-card-height:82px;
  --home-purpose-section-width:1280px;
  --home-category-title-size:26px;
  --home-category-desc-size:14px;
  --home-category-icon-size:19px;
  --home-category-card-title-size:13px;
  --home-category-card-height:52px;
  --home-category-section-width:1280px;
  --home-faq-font-size:15px;
  --home-faq-width:1280px;
  --home-faq-section-width:1280px;
  --home-faq-card-height:0px;
  --home-contact-section-width:1280px;
  --contact-form-font-size:15px;
  --contact-form-width:680px;
}

/* A grid item must be allowed to shrink or its horizontal rail expands the page instead of scrolling. */
.matching-home-shell{min-width:0}
.matching-home-shell>section{min-width:0;max-width:100%}
.matching-home-featured{width:100%;min-width:0;max-width:100%}
.matching-home-section-head,.matching-home-section-head-row>div{min-width:0}
.matching-home-section-head>p:last-child{overflow-wrap:anywhere}

/* Per-section width controls. The default is wider than/equal to the shell, so existing layout is unchanged. */
.matching-home-intro{width:min(100%,var(--home-purpose-section-width));margin-inline:auto}
.matching-home-types{width:min(100%,var(--home-category-section-width));margin-inline:auto}
.matching-home-support{width:min(100%,var(--home-faq-section-width));margin-inline:auto}
.matching-home-contact{width:min(100%,var(--home-contact-section-width));margin-inline:auto}

/* Per-section title alignment; left is the compatibility default. */
html[data-home-purpose-align="center"] .matching-home-intro .matching-home-section-head,
html[data-home-category-align="center"] .matching-home-types .matching-home-section-head,
html[data-home-faq-align="center"] .matching-home-support .matching-home-section-head,
html[data-home-contact-align="center"] .matching-home-contact>.matching-home-section-head{text-align:center}
html[data-home-purpose-align="right"] .matching-home-intro .matching-home-section-head,
html[data-home-category-align="right"] .matching-home-types .matching-home-section-head,
html[data-home-faq-align="right"] .matching-home-support .matching-home-section-head,
html[data-home-contact-align="right"] .matching-home-contact>.matching-home-section-head{text-align:right}
html[data-home-purpose-description="off"] #matchingHomeStartDescription,
html[data-home-category-description="off"] #matchingHomeTypesDescription,
html[data-home-faq-description="off"] #homeFaqDescription,
html[data-home-contact-description="off"] #homeContactDescription{display:none!important}

.matching-home-intro #matchingHomeStart{font-size:var(--home-purpose-title-size)}
.matching-home-intro #matchingHomeStartDescription{font-size:var(--home-purpose-desc-size)}
.matching-home-intro .matching-home-action{min-height:var(--home-purpose-card-height)}
.matching-home-intro .matching-home-action>.material-symbols-rounded:first-child{font-size:var(--home-purpose-icon-size)}
.matching-home-intro .matching-home-action strong{font-size:var(--home-purpose-card-title-size)}
.matching-home-intro .matching-home-action small{font-size:var(--home-purpose-card-desc-size)}
.matching-home-types #matchingHomeTypes{font-size:var(--home-category-title-size)}
.matching-home-types #matchingHomeTypesDescription{font-size:var(--home-category-desc-size)}
.matching-home-types .matching-home-type-grid a{min-height:var(--home-category-card-height);font-size:var(--home-category-card-title-size)}
.matching-home-types .matching-home-type-grid a>.material-symbols-rounded:first-child{font-size:var(--home-category-icon-size)}

/*
 * Top featured cards use the exact list-card markup and list-card CSS.
 * Only the grid container is converted to a rail and each item's width is the PC 3-column card width.
 * 332px = page horizontal padding 48 + filter 232 + effective layout gap 20 + two 3-column gaps 32.
 */
.matching-home-section-head-row{min-width:0}
.matching-home-section-head-row .soft-btn{white-space:nowrap;max-width:100%}
.matching-home-horizontal.matching-home-list-cards{
  display:flex!important;
  grid-template-columns:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  gap:var(--home-featured-gap-pc,16px)!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:2px 2px 12px!important;
  scroll-snap-type:x proximity;
  scroll-padding-inline:2px;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
  align-items:stretch;
}
.matching-home-horizontal.matching-home-list-cards.matching-job-job-cards>.card{
  --home-list-card-width:clamp(220px,calc((min(100vw,var(--matching-professional-list-width,var(--matching-job-list-width,1280px))) - 332px)/3),316px);
  flex:0 0 var(--home-list-card-width)!important;
  width:var(--home-list-card-width)!important;
  max-width:none!important;
  min-width:0!important;
  scroll-snap-align:start;
}
.matching-home-horizontal.matching-home-list-cards.matching-professional-cards>.card{
  --home-list-card-width:clamp(220px,calc((min(100vw,var(--matching-professional-list-width,1280px)) - 332px)/3),316px);
  flex:0 0 var(--home-list-card-width)!important;
  width:var(--home-list-card-width)!important;
  max-width:none!important;
  min-width:0!important;
  scroll-snap-align:start;
}
/* Apply the same matching-card settings used on the actual listing pages. */
body[data-page="index"] .matching-home-list-cards .card-title{font-size:var(--matching-card-title-size)!important}
body[data-page="index"] .matching-home-list-cards .matching-professional-card-info,
body[data-page="index"] .matching-home-list-cards .matching-professional-card-info dt,
body[data-page="index"] .matching-home-list-cards .matching-professional-card-info dd,
body[data-page="index"] .matching-home-list-cards .matching-professional-tags span,
body[data-page="index"] .matching-home-list-cards .matching-job-card-facts,
body[data-page="index"] .matching-home-list-cards .card-kicker,
body[data-page="index"] .matching-home-list-cards .card-footer{font-size:var(--matching-card-text-size)!important}
body[data-page="index"] .matching-home-list-cards .pill{font-size:var(--matching-card-badge-size)!important}
/* Preserve PC 3-column internals even when the rail itself is viewed on SP. */
body[data-page="index"] .matching-home-list-cards.view-3>.card>.card-body{padding:14px 15px 15px!important}
body[data-page="index"] .matching-home-list-cards.view-3>.matching-job-job-card>.card-media{aspect-ratio:4/3!important}
body[data-page="index"] .matching-home-list-cards.view-3 .card-footer{display:flex!important}
body[data-page="index"] .matching-home-list-cards.view-3 .matching-professional-card-info>div{grid-template-columns:90px minmax(0,1fr)!important}

/* FAQ controls. Existing line style remains the compatibility default. */
.matching-home-support,.matching-home-contact{margin-top:34px}
.matching-home-faq{width:min(100%,var(--home-faq-width));margin-left:0;margin-right:auto;border-top:1px solid var(--line);font-size:var(--home-faq-font-size)}
html[data-home-faq-align="center"] .matching-home-faq{margin-left:auto;margin-right:auto}
html[data-home-faq-align="right"] .matching-home-faq{margin-left:auto;margin-right:0}
.matching-home-faq details{border-bottom:1px solid var(--line)}
.matching-home-faq summary{list-style:none;display:flex;align-items:center;gap:12px;padding:16px 2px;cursor:pointer;font-weight:800}
.matching-home-faq summary::-webkit-details-marker{display:none}
.matching-home-faq summary .material-symbols-rounded{margin-left:auto;transition:transform .16s ease}
.matching-home-faq details[open] summary .material-symbols-rounded{transform:rotate(180deg)}
.matching-home-faq details p{margin:0;padding:0 2px 17px;color:var(--muted);line-height:1.8}
html[data-home-faq-style="card"] .matching-home-faq{border-top:0;display:grid;gap:10px}
html[data-home-faq-style="card"] .matching-home-faq details{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
html[data-home-faq-style="card"] .matching-home-faq summary{min-height:var(--home-faq-card-height,0px);box-sizing:border-box;padding:15px 16px}
html[data-home-faq-style="card"] .matching-home-faq details p{padding:0 16px 16px}

/* Contact top section: reuse the contact page's visual tokens; form controls remain member-form controls. */
.matching-home-contact-panel{box-sizing:border-box;width:min(100%,calc(var(--contact-form-width,680px) + 56px));margin-left:0;margin-right:auto;background:rgba(255,255,255,.97);border:1px solid rgba(27,31,37,.065);border-radius:11px;padding:28px}
html[data-home-contact-align="center"] .matching-home-contact-panel{margin-left:auto;margin-right:auto}
html[data-home-contact-align="right"] .matching-home-contact-panel{margin-left:auto;margin-right:0}
html[data-home-contact-panel-background="off"] .matching-home-contact-panel{background:transparent}
html[data-home-contact-panel-border="off"] .matching-home-contact-panel{border-color:transparent}
.matching-home-contact-panel>h2{font-size:20px;margin:0 0 10px;font-weight:820}
body[data-page="index"] .matching-home-contact-form{width:100%;max-width:none}

/* SP breakpoint: cap desktop-tunable values so PC settings cannot blow up the mobile layout. */
@media(max-width:820px){
  .matching-home-horizontal.matching-home-list-cards{gap:var(--home-featured-gap-sp,16px)!important}
  .matching-home-support,.matching-home-contact{margin-top:26px}
  .matching-home-section-head-row{align-items:center;gap:10px}
  .matching-home-section-head-row .soft-btn{height:34px;padding-inline:10px;font-size:12px}
  .matching-home-intro #matchingHomeStart{font-size:clamp(16px,var(--home-purpose-title-size),22px)}
  .matching-home-intro #matchingHomeStartDescription{font-size:clamp(10px,var(--home-purpose-desc-size),14px)}
  .matching-home-intro .matching-home-action{min-height:clamp(64px,var(--home-purpose-card-height),96px)}
  .matching-home-intro .matching-home-action>.material-symbols-rounded:first-child{font-size:clamp(18px,var(--home-purpose-icon-size),30px)}
  .matching-home-intro .matching-home-action strong{font-size:clamp(12px,var(--home-purpose-card-title-size),16px)}
  .matching-home-intro .matching-home-action small{font-size:clamp(10px,var(--home-purpose-card-desc-size),12px)}
  .matching-home-types #matchingHomeTypes{font-size:clamp(16px,var(--home-category-title-size),22px)}
  .matching-home-types #matchingHomeTypesDescription{font-size:clamp(10px,var(--home-category-desc-size),14px)}
  .matching-home-types .matching-home-type-grid a{min-height:clamp(44px,var(--home-category-card-height),72px);font-size:clamp(11px,var(--home-category-card-title-size),15px)}
  .matching-home-types .matching-home-type-grid a>.material-symbols-rounded:first-child{font-size:clamp(16px,var(--home-category-icon-size),24px)}
  .matching-home-contact-panel{width:min(100%,calc(var(--contact-form-width,680px) + 40px));padding:20px}
}

/* v3.9.7: MV controls. Values are supplied on <html> with legacy-compatible defaults. */
.matching-home-hero .hero-copy h1{margin-bottom:var(--hero-main-sub-gap-pc)}
.matching-home-hero .hero-actions{display:contents}
.matching-home-hero .hero-actions .hero-cta{box-sizing:border-box;max-width:100%;flex-shrink:1;margin-top:var(--hero-sub-buttons-gap-pc)}
.matching-home-hero #heroCta{width:var(--hero-button1-width-pc);border-color:var(--hero-button1-bg-pc);background:var(--hero-button1-bg-pc);color:var(--hero-button1-color-pc);font-size:var(--hero-button1-font-size-pc)}
.matching-home-hero #heroCtaSecondary{width:var(--hero-button2-width-pc);border-color:var(--hero-button2-bg-pc);background:var(--hero-button2-bg-pc);color:var(--hero-button2-color-pc);font-size:var(--hero-button2-font-size-pc)}
.matching-home-hero .hero-side-media{display:none;overflow:hidden;border-radius:10px;min-width:0;background:rgba(255,255,255,.08)}
.matching-home-hero .hero-side-media img{display:block;width:100%;height:100%;min-height:160px;max-height:360px;object-fit:cover}
@media(min-width:821px){
  html[data-hero-title-visible-pc="off"] .matching-home-hero #heroTitleText,
  html[data-hero-lead-visible-pc="off"] .matching-home-hero #heroLeadText,
  html[data-hero-buttons-visible-pc="off"] .matching-home-hero .hero-actions{display:none!important}
  html[data-hero-lead-visible-pc="off"] .matching-home-hero .hero-copy h1{margin-bottom:0}
  html[data-hero-button-count-pc="1"] .matching-home-hero #heroCtaSecondary{display:none!important}
  html[data-hero-button-count-pc="2"] .matching-home-hero .hero-actions,
  html[data-hero-buttons-align-pc="center"] .matching-home-hero .hero-actions,
  html[data-hero-buttons-align-pc="right"] .matching-home-hero .hero-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:var(--hero-buttons-gap-pc);margin-top:var(--hero-sub-buttons-gap-pc)}
  html[data-hero-button-count-pc="2"] .matching-home-hero .hero-actions .hero-cta,
  html[data-hero-buttons-align-pc="center"] .matching-home-hero .hero-actions .hero-cta,
  html[data-hero-buttons-align-pc="right"] .matching-home-hero .hero-actions .hero-cta{margin-top:0}
  html[data-hero-text-align-pc="left"] .matching-home-hero .hero-copy{text-align:left}html[data-hero-text-align-pc="center"] .matching-home-hero .hero-copy{text-align:center}html[data-hero-text-align-pc="right"] .matching-home-hero .hero-copy{text-align:right}
  html[data-hero-layout-pc="1"][data-hero-text-align-pc="center"] .matching-home-hero .hero-copy{margin-left:auto;margin-right:auto}
  html[data-hero-layout-pc="1"][data-hero-text-align-pc="right"] .matching-home-hero .hero-copy{margin-left:auto;margin-right:0}
  html[data-hero-text-align-pc="left"] .matching-home-hero .eyebrow{justify-content:flex-start}html[data-hero-text-align-pc="center"] .matching-home-hero .eyebrow{justify-content:center}html[data-hero-text-align-pc="right"] .matching-home-hero .eyebrow{justify-content:flex-end}
  html[data-hero-buttons-align-pc="left"] .matching-home-hero .hero-actions{justify-content:flex-start}html[data-hero-buttons-align-pc="center"] .matching-home-hero .hero-actions{justify-content:center}html[data-hero-buttons-align-pc="right"] .matching-home-hero .hero-actions{justify-content:flex-end}
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"] .matching-home-hero .hero-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,42%);grid-template-rows:auto auto;align-items:stretch;justify-content:stretch;column-gap:var(--hero-image-gap-pc);row-gap:12px;height:auto!important;min-height:var(--hero-height-pc)!important}
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"] .matching-home-hero .hero-copy{grid-column:1;grid-row:1;max-width:none}
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"] .matching-home-hero .hero-stats{grid-column:1;grid-row:2;align-self:end}
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"] .matching-home-hero .hero-side-media:not([hidden]){display:block;grid-column:2;grid-row:1 / span 2;align-self:stretch}
}
@media(max-width:820px){
  .matching-home-hero .hero-copy h1{margin-bottom:var(--hero-main-sub-gap-sp)}
  .matching-home-hero .hero-actions .hero-cta{margin-top:var(--hero-sub-buttons-gap-sp)}
  .matching-home-hero #heroCta{width:var(--hero-button1-width-sp);border-color:var(--hero-button1-bg-sp);background:var(--hero-button1-bg-sp);color:var(--hero-button1-color-sp);font-size:var(--hero-button1-font-size-sp)}
  .matching-home-hero #heroCtaSecondary{width:var(--hero-button2-width-sp);border-color:var(--hero-button2-bg-sp);background:var(--hero-button2-bg-sp);color:var(--hero-button2-color-sp);font-size:var(--hero-button2-font-size-sp)}
  html[data-hero-title-visible-sp="off"] .matching-home-hero #heroTitleText,
  html[data-hero-lead-visible-sp="off"] .matching-home-hero #heroLeadText,
  html[data-hero-buttons-visible-sp="off"] .matching-home-hero .hero-actions{display:none!important}
  html[data-hero-lead-visible-sp="off"] .matching-home-hero .hero-copy h1{margin-bottom:0}
  html[data-hero-button-count-sp="1"] .matching-home-hero #heroCtaSecondary{display:none!important}
  html[data-hero-button-count-sp="2"] .matching-home-hero .hero-actions,
  html[data-hero-buttons-align-sp="center"] .matching-home-hero .hero-actions,
  html[data-hero-buttons-align-sp="right"] .matching-home-hero .hero-actions{display:flex;gap:var(--hero-buttons-gap-sp);margin-top:var(--hero-sub-buttons-gap-sp)}
  html[data-hero-button-count-sp="2"] .matching-home-hero .hero-actions .hero-cta,
  html[data-hero-buttons-align-sp="center"] .matching-home-hero .hero-actions .hero-cta,
  html[data-hero-buttons-align-sp="right"] .matching-home-hero .hero-actions .hero-cta{margin-top:0}
  html[data-hero-text-align-sp="left"] .matching-home-hero .hero-copy{text-align:left}html[data-hero-text-align-sp="center"] .matching-home-hero .hero-copy{text-align:center}html[data-hero-text-align-sp="right"] .matching-home-hero .hero-copy{text-align:right}
  html[data-hero-text-align-sp="left"] .matching-home-hero .eyebrow{justify-content:flex-start}html[data-hero-text-align-sp="center"] .matching-home-hero .eyebrow{justify-content:center}html[data-hero-text-align-sp="right"] .matching-home-hero .eyebrow{justify-content:flex-end}
  html[data-hero-buttons-direction-sp="row"] .matching-home-hero .hero-actions{flex-direction:row}
  html[data-hero-buttons-direction-sp="column"] .matching-home-hero .hero-actions{flex-direction:column;justify-content:flex-start}
  html[data-hero-buttons-direction-sp="row"][data-hero-buttons-align-sp="left"] .matching-home-hero .hero-actions{justify-content:flex-start}html[data-hero-buttons-direction-sp="row"][data-hero-buttons-align-sp="center"] .matching-home-hero .hero-actions{justify-content:center}html[data-hero-buttons-direction-sp="row"][data-hero-buttons-align-sp="right"] .matching-home-hero .hero-actions{justify-content:flex-end}
  html[data-hero-buttons-direction-sp="column"][data-hero-buttons-align-sp="left"] .matching-home-hero .hero-actions{align-items:flex-start}html[data-hero-buttons-direction-sp="column"][data-hero-buttons-align-sp="center"] .matching-home-hero .hero-actions{align-items:center}html[data-hero-buttons-direction-sp="column"][data-hero-buttons-align-sp="right"] .matching-home-hero .hero-actions{align-items:flex-end}
  html[data-hero-side-image-visible-sp="on"][data-hero-side-image-has="on"] .matching-home-hero .hero-inner{height:auto!important;min-height:var(--hero-height-sp)!important;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--hero-image-gap-sp)}
  html[data-hero-side-image-visible-sp="on"][data-hero-side-image-has="on"] .matching-home-hero .hero-side-media:not([hidden]){display:block;width:100%}
  html[data-hero-side-image-visible-sp="on"][data-hero-side-image-has="on"][data-hero-image-order-sp="image-first"] .matching-home-hero .hero-side-media{order:1}
  html[data-hero-side-image-visible-sp="on"][data-hero-side-image-has="on"][data-hero-image-order-sp="image-first"] .matching-home-hero .hero-copy{order:2}
  html[data-hero-side-image-visible-sp="on"][data-hero-side-image-has="on"][data-hero-image-order-sp="text-first"] .matching-home-hero .hero-copy{order:1}
  html[data-hero-side-image-visible-sp="on"][data-hero-side-image-has="on"][data-hero-image-order-sp="text-first"] .matching-home-hero .hero-side-media{order:2}
  .matching-home-hero .hero-side-media img{min-height:140px;max-height:320px}
}


/* v3.9.8: MV text/device copy, reliable SP alignment, adjustable text widths and button sizing/borders. */
.matching-home-hero .hero-device-copy{white-space:pre-line}
.matching-home-hero .hero-device-copy-sp{display:none}
.matching-home-hero #heroTitleText,.matching-home-hero #heroLeadText{box-sizing:border-box;width:100%}
@media(min-width:821px){
  .matching-home-hero .hero-device-copy-pc{display:inline}
  .matching-home-hero .hero-device-copy-sp{display:none}
  .matching-home-hero #heroTitleText{max-width:var(--hero-title-max-width-pc)}
  .matching-home-hero #heroLeadText{max-width:var(--hero-lead-max-width-pc)}
  html[data-hero-text-align-pc="left"] .matching-home-hero #heroTitleText,html[data-hero-text-align-pc="left"] .matching-home-hero #heroLeadText{margin-left:0;margin-right:auto}
  html[data-hero-text-align-pc="center"] .matching-home-hero #heroTitleText,html[data-hero-text-align-pc="center"] .matching-home-hero #heroLeadText{margin-left:auto;margin-right:auto}
  html[data-hero-text-align-pc="right"] .matching-home-hero #heroTitleText,html[data-hero-text-align-pc="right"] .matching-home-hero #heroLeadText{margin-left:auto;margin-right:0}
  .matching-home-hero #heroCta{border-style:solid;border-width:var(--hero-button1-border-width-pc);border-color:var(--hero-button1-border-color-pc)}
  .matching-home-hero #heroCtaSecondary{border-style:solid;border-width:var(--hero-button2-border-width-pc);border-color:var(--hero-button2-border-color-pc)}
  html[data-hero-button1-style-pc="fill"] .matching-home-hero #heroCta{background:var(--hero-button1-bg-pc)}
  html[data-hero-button1-style-pc="outline"] .matching-home-hero #heroCta{background:transparent}
  html[data-hero-button2-style-pc="fill"] .matching-home-hero #heroCtaSecondary{background:var(--hero-button2-bg-pc)}
  html[data-hero-button2-style-pc="outline"] .matching-home-hero #heroCtaSecondary{background:transparent}
  html[data-hero-button1-height-mode-pc="custom"] .matching-home-hero #heroCta{min-height:var(--hero-button1-height-pc)}
  html[data-hero-button2-height-mode-pc="custom"] .matching-home-hero #heroCtaSecondary{min-height:var(--hero-button2-height-pc)}
}
@media(max-width:820px){
  .matching-home-hero .hero-copy{width:100%;max-width:100%}
  .matching-home-hero .hero-device-copy-pc{display:none}
  .matching-home-hero .hero-device-copy-sp{display:inline}
  .matching-home-hero #heroTitleText{max-width:var(--hero-title-max-width-sp)}
  .matching-home-hero #heroLeadText{max-width:var(--hero-lead-max-width-sp)}
  html[data-hero-text-align-sp="left"] .matching-home-hero #heroTitleText,html[data-hero-text-align-sp="left"] .matching-home-hero #heroLeadText{margin-left:0;margin-right:auto}
  html[data-hero-text-align-sp="center"] .matching-home-hero #heroTitleText,html[data-hero-text-align-sp="center"] .matching-home-hero #heroLeadText{margin-left:auto;margin-right:auto}
  html[data-hero-text-align-sp="right"] .matching-home-hero #heroTitleText,html[data-hero-text-align-sp="right"] .matching-home-hero #heroLeadText{margin-left:auto;margin-right:0}
  .matching-home-hero #heroCta{border-style:solid;border-width:var(--hero-button1-border-width-sp);border-color:var(--hero-button1-border-color-sp)}
  .matching-home-hero #heroCtaSecondary{border-style:solid;border-width:var(--hero-button2-border-width-sp);border-color:var(--hero-button2-border-color-sp)}
  html[data-hero-button1-style-sp="fill"] .matching-home-hero #heroCta{background:var(--hero-button1-bg-sp)}
  html[data-hero-button1-style-sp="outline"] .matching-home-hero #heroCta{background:transparent}
  html[data-hero-button2-style-sp="fill"] .matching-home-hero #heroCtaSecondary{background:var(--hero-button2-bg-sp)}
  html[data-hero-button2-style-sp="outline"] .matching-home-hero #heroCtaSecondary{background:transparent}
  html[data-hero-button1-height-mode-sp="custom"] .matching-home-hero #heroCta{min-height:var(--hero-button1-height-sp)}
  html[data-hero-button2-height-mode-sp="custom"] .matching-home-hero #heroCtaSecondary{min-height:var(--hero-button2-height-sp)}
}


/* v3.9.9 MINIMAL: optional MV typography spacing and whole-content vertical alignment. Defaults remain untouched. */
@media(min-width:821px){
  html[data-hero-title-letter-mode-pc="custom"] .matching-home-hero #heroTitleText{letter-spacing:var(--hero-title-letter-spacing-pc)}
  html[data-hero-title-line-mode-pc="custom"] .matching-home-hero #heroTitleText{line-height:var(--hero-title-line-height-pc)}
  html[data-hero-lead-letter-mode-pc="custom"] .matching-home-hero #heroLeadText{letter-spacing:var(--hero-lead-letter-spacing-pc)}
  html[data-hero-lead-line-mode-pc="custom"] .matching-home-hero #heroLeadText{line-height:var(--hero-lead-line-height-pc)}
  html[data-hero-group-valign-pc="top"] .matching-home-hero .hero-copy,
  html[data-hero-group-valign-pc="center"] .matching-home-hero .hero-copy,
  html[data-hero-group-valign-pc="bottom"] .matching-home-hero .hero-copy{align-self:auto}
  html[data-hero-group-valign-pc="top"] .matching-home-hero .hero-inner{align-items:flex-start}
  html[data-hero-group-valign-pc="center"] .matching-home-hero .hero-inner{align-items:center}
  html[data-hero-group-valign-pc="bottom"] .matching-home-hero .hero-inner{align-items:flex-end}
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"][data-hero-group-valign-pc="top"] .matching-home-hero .hero-inner{align-items:stretch;align-content:start}
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"][data-hero-group-valign-pc="center"] .matching-home-hero .hero-inner{align-items:stretch;align-content:center}
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"][data-hero-group-valign-pc="bottom"] .matching-home-hero .hero-inner{align-items:stretch;align-content:end}
}
@media(max-width:820px){
  html[data-hero-title-letter-mode-sp="custom"] .matching-home-hero #heroTitleText{letter-spacing:var(--hero-title-letter-spacing-sp)}
  html[data-hero-title-line-mode-sp="custom"] .matching-home-hero #heroTitleText{line-height:var(--hero-title-line-height-sp)}
  html[data-hero-lead-letter-mode-sp="custom"] .matching-home-hero #heroLeadText{letter-spacing:var(--hero-lead-letter-spacing-sp)}
  html[data-hero-lead-line-mode-sp="custom"] .matching-home-hero #heroLeadText{line-height:var(--hero-lead-line-height-sp)}
  html[data-hero-group-valign-sp="top"] .matching-home-hero .hero-copy,
  html[data-hero-group-valign-sp="center"] .matching-home-hero .hero-copy,
  html[data-hero-group-valign-sp="bottom"] .matching-home-hero .hero-copy{align-self:auto}
  html[data-hero-group-valign-sp="top"] .matching-home-hero .hero-inner{align-items:flex-start}
  html[data-hero-group-valign-sp="center"] .matching-home-hero .hero-inner{align-items:center}
  html[data-hero-group-valign-sp="bottom"] .matching-home-hero .hero-inner{align-items:flex-end}
  html[data-hero-side-image-visible-sp="on"][data-hero-side-image-has="on"][data-hero-group-valign-sp="top"] .matching-home-hero .hero-inner{align-items:stretch;justify-content:flex-start}
  html[data-hero-side-image-visible-sp="on"][data-hero-side-image-has="on"][data-hero-group-valign-sp="center"] .matching-home-hero .hero-inner{align-items:stretch;justify-content:center}
  html[data-hero-side-image-visible-sp="on"][data-hero-side-image-has="on"][data-hero-group-valign-sp="bottom"] .matching-home-hero .hero-inner{align-items:stretch;justify-content:flex-end}
}

/* v3.10.1 MINIMAL: PC/SP top-card widths are independent. Auto preserves the existing responsive widths. */
@media(min-width:821px){
  html[data-home-job-card-width-mode="custom"] .matching-home-featured-jobs .matching-home-horizontal.matching-home-list-cards.matching-job-job-cards>.card{
    --home-list-card-width:min(var(--home-job-card-width),calc(100vw - 36px));
  }
  html[data-home-professional-card-width-mode="custom"] .matching-home-featured-professionals .matching-home-horizontal.matching-home-list-cards.matching-professional-cards>.matching-professional-card{
    --home-list-card-width:min(var(--home-professional-card-width),calc(100vw - 36px));
  }
}
@media(max-width:820px){
  html[data-home-job-card-width-sp-mode="custom"] .matching-home-featured-jobs .matching-home-horizontal.matching-home-list-cards.matching-job-job-cards>.card{
    --home-list-card-width:min(var(--home-job-card-width-sp),calc(100vw - 32px));
  }
  html[data-home-professional-card-width-sp-mode="custom"] .matching-home-featured-professionals .matching-home-horizontal.matching-home-list-cards.matching-professional-cards>.matching-professional-card{
    --home-list-card-width:min(var(--home-professional-card-width-sp),calc(100vw - 32px));
  }
}
html[data-home-guide-width-mode="custom"] .matching-home-guide{width:min(100%,var(--home-guide-section-width));margin-inline:auto;box-sizing:border-box}

/* Keep the existing grid gap. Custom boundary margins only replace that boundary's effective distance. */
@media(min-width:821px){
  html[data-home-gap-jobs-professionals-mode="custom"] .matching-home-featured-professionals{margin-top:calc(var(--home-gap-jobs-professionals) - 38px)}
  html[data-home-gap-professionals-purpose-mode="custom"] .matching-home-intro{margin-top:calc(var(--home-gap-professionals-purpose) - 38px)}
  html[data-home-gap-purpose-category-mode="custom"] .matching-home-types{margin-top:calc(var(--home-gap-purpose-category) - 38px)}
  html[data-home-gap-category-guide-mode="custom"] .matching-home-guide{margin-top:calc(var(--home-gap-category-guide) - 38px)}
  html[data-home-gap-guide-faq-mode="custom"] .matching-home-support{margin-top:calc(var(--home-gap-guide-faq) - 38px)}
  html[data-home-gap-faq-contact-mode="custom"] .matching-home-contact{margin-top:calc(var(--home-gap-faq-contact) - 38px)}

  html[data-hero-layout-pc="2"][data-hero-two-col-width-mode-pc="custom"] .matching-home-hero .hero-inner{
    width:min(100%,var(--hero-two-col-width-pc))!important;
  }
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"][data-hero-side-image-width-mode-pc="custom"] .matching-home-hero .hero-inner{
    grid-template-columns:minmax(0,1fr) minmax(220px,var(--hero-side-image-width-pc));
  }
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"][data-hero-side-image-height-mode-pc="custom"] .matching-home-hero .hero-side-media:not([hidden]){
    height:min(var(--hero-side-image-height-pc),var(--hero-height-pc));
    min-height:0;
  }
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"][data-hero-side-image-height-mode-pc="custom"] .matching-home-hero .hero-side-media img{
    min-height:0;
    max-height:none;
  }
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"][data-hero-side-image-height-mode-pc="custom"][data-hero-side-image-v-align-pc="top"] .matching-home-hero .hero-side-media:not([hidden]){align-self:start}
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"][data-hero-side-image-height-mode-pc="custom"][data-hero-side-image-v-align-pc="center"] .matching-home-hero .hero-side-media:not([hidden]){align-self:center}
  html[data-hero-layout-pc="2"][data-hero-side-image-visible-pc="on"][data-hero-side-image-has="on"][data-hero-side-image-height-mode-pc="custom"][data-hero-side-image-v-align-pc="bottom"] .matching-home-hero .hero-side-media:not([hidden]){align-self:end}
}
@media(max-width:820px){
  html[data-home-gap-jobs-professionals-mode="custom"] .matching-home-featured-professionals{margin-top:calc(var(--home-gap-jobs-professionals) - 30px)}
  html[data-home-gap-professionals-purpose-mode="custom"] .matching-home-intro{margin-top:calc(var(--home-gap-professionals-purpose) - 30px)}
  html[data-home-gap-purpose-category-mode="custom"] .matching-home-types{margin-top:calc(var(--home-gap-purpose-category) - 30px)}
  html[data-home-gap-category-guide-mode="custom"] .matching-home-guide{margin-top:calc(var(--home-gap-category-guide) - 30px)}
  html[data-home-gap-guide-faq-mode="custom"] .matching-home-support{margin-top:calc(var(--home-gap-guide-faq) - 30px)}
  html[data-home-gap-faq-contact-mode="custom"] .matching-home-contact{margin-top:calc(var(--home-gap-faq-contact) - 30px)}
}

/* Correct only the actual desktop final row. The 3-column design itself is unchanged. */
@media(min-width:821px){
  .matching-home-type-grid a:nth-last-child(-n+3){border-bottom:1px solid var(--line)}
  .matching-home-type-grid.last-row-1 a:last-child,
  .matching-home-type-grid.last-row-2 a:nth-last-child(-n+2),
  .matching-home-type-grid.last-row-3 a:nth-last-child(-n+3){border-bottom:0}
}


/* SP card fine tuning: opt-in only. Auto preserves the existing top-card internals. */
@media(max-width:820px){
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards>.card>.card-body{padding:var(--sp-home-card-padding-y) var(--sp-home-card-padding-x)!important}
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-job-card-facts,
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-professional-card-info,
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-professional-card-info dt,
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-professional-card-info dd,
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-professional-tags span,
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .card-kicker,
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .card-footer,
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-professional-card-rating .rating-score,
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-professional-card-rating .review-count{font-size:var(--sp-home-card-item-size)!important}
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .card-title{margin-bottom:var(--sp-home-card-item-gap)!important}
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-job-card-facts{gap:var(--sp-home-card-item-gap)!important;margin-top:var(--sp-home-card-item-gap)!important}
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-professional-badges,
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-professional-card-rating{margin-bottom:var(--sp-home-card-item-gap)!important}
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-professional-tags{row-gap:var(--sp-home-card-item-gap)!important;margin-top:var(--sp-home-card-item-gap)!important}
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .matching-professional-card-info{gap:var(--sp-home-card-item-gap)!important;margin-top:var(--sp-home-card-item-gap)!important}
  html[data-sp-home-card-detail-mode="custom"] body[data-page="index"] .matching-home-list-cards .card-footer{margin-top:var(--sp-home-card-item-gap)!important}
}
