/* Match extends the existing light, blue-accented Robotuo system.
   Layers: dock 40, above Compare 30; dialogs use the browser's top layer. */
:root { --match-blue:var(--accent); --match-ink:#17191e; --match-muted:#596579; --match-line:#dce3ef; --action-hover:#28499f; --action-height:46px; --action-radius:99px; }
.match-primary,.service-action { display:inline-flex; justify-content:center; align-items:center; min-height:var(--action-height); padding:12px 24px; border:1px solid var(--match-blue); border-radius:var(--action-radius); background:var(--match-blue); color:#fff; font:500 14px/1.4 var(--font-body); text-decoration:none; text-align:center; }
.match-primary:hover,.service-action:hover { background:var(--action-hover); color:#fff; }
.service-action--secondary { background:white; color:var(--match-blue); border-color:var(--match-line); }
.service-action--secondary:hover { background:#f4f6fc; color:var(--action-hover); border-color:var(--match-blue); }
.service-action:focus-visible { outline:2px solid var(--match-blue); outline-offset:3px; }
.service-actions { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.middle-band .slogan .service-action { min-height:52px; padding:14px 28px; font-size:16px; pointer-events:auto; align-self:center; position:relative; z-index:1; text-shadow:none; box-shadow:none; }
.service-note { margin:0; color:var(--match-muted); font-size:14px; line-height:1.5; }
.cp-actions { flex-wrap:wrap; }
:is(.match-primary,.match-dock,.match-drawer,.match-selector) :is(a,button,input,select):focus-visible,.match-primary:focus-visible { outline:2px solid var(--match-blue); outline-offset:3px; }
.match-optional { font-weight:400; color:var(--match-muted); font-size:.86em; }

/* The company chapter occupies one viewport while preserving its carousel. */
#home-discovery .catalog-scene { display:flex; align-items:center; min-height:calc(100svh - var(--header-height,88px)); padding:0; }
#home-discovery .maker-intro { width:100%; padding:clamp(40px,6vh,80px) 0; }
#home-discovery .maker-companies .discovery-heading h2 { font-size:clamp(38px,3.35vw,64px); }
.maker-match-copy { max-width:540px; margin:20px auto 22px; color:#555d6c; font-size:16px; line-height:1.65; letter-spacing:-.015em; }
#home-discovery .maker-companies .maker-controls { margin-top:10px; }
#home-discovery .maker-all { min-width:144px; font-size:14px; padding-inline:18px; }
#home-discovery .maker-companies #featured-companies { margin-top:clamp(30px,4.8vh,54px); }

/* Keep the established photographic hero and make the request the focal point. */
.apply-page { --accent:var(--match-blue); --join-ink:var(--match-ink); --join-muted:var(--match-muted); padding-bottom:80px; }
.apply-page .join-hero { min-height:clamp(440px,38vw,570px); height:auto; }
.apply-page .join-hero-copy { padding-top:clamp(65px,7vw,105px); padding-bottom:64px; }
.apply-page .join-hero h1 { max-width:590px; font-size:clamp(44px,4.7vw,68px); font-weight:500; line-height:1.06; letter-spacing:-.065em; }
.apply-page .join-hero-copy>p { max-width:390px; color:#3e4d65; font-size:16px; line-height:1.65; }
.apply-page .join-start,.apply-page .apply-review-button { border-radius:var(--action-radius); background:var(--match-blue); font-weight:500; font-size:14px; min-height:var(--action-height); }
.apply-page .join-start:hover,.apply-page .apply-review-button:hover { background:var(--action-hover); }
/* The visit journey sits between the hero and the request form. */
.connect-process { display:grid; grid-template-columns:minmax(180px,.7fr) minmax(0,3fr); gap:clamp(28px,3vw,48px); padding:36px var(--discovery-inset); border-block:1px solid var(--match-line); background:#f3f6fc; }
.connect-process-heading { align-self:center; }
.connect-process-heading > p { margin:0 0 8px; color:var(--match-muted); font-size:12px; font-weight:500; line-height:1.5; }
.connect-process-heading h2 { max-width:220px; margin:0; color:var(--match-blue); font-size:clamp(23px,2vw,28px); font-weight:600; line-height:1.2; letter-spacing:-.04em; }
.connect-process-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; margin:0; padding:0; list-style:none; }
.connect-process-steps > li { position:relative; min-width:0; }
.connect-process-steps > li:not(:last-child)::before { content:''; position:absolute; top:18px; left:36px; right:-28px; height:1px; background:#cbd6ef; }
.connect-process-number { position:relative; display:grid; place-items:center; width:36px; height:36px; margin-bottom:16px; border:1px solid #cbd6ef; border-radius:50%; background:#fff; color:var(--match-blue); font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.connect-process-copy h3 { margin:0 0 8px; color:var(--match-blue); font-size:16px; font-weight:600; line-height:1.4; letter-spacing:-.02em; }
.connect-process-copy p { max-width:38ch; margin:0; color:#4f5f7a; font-size:14px; line-height:1.65; }
@media(max-width:1050px) {
  .connect-process { grid-template-columns:1fr; gap:28px; }
  .connect-process-heading h2 { max-width:none; }
}
@media(max-width:760px) {
  .connect-process { padding-block:28px; }
  .connect-process-steps { grid-template-columns:1fr; gap:24px; }
  .connect-process-steps > li { display:grid; grid-template-columns:36px minmax(0,1fr); gap:16px; }
  .connect-process-steps > li:not(:last-child)::before { top:36px; bottom:-24px; left:18px; right:auto; width:1px; height:auto; }
  .connect-process-number { margin:0; }
  .connect-process-copy { padding-top:6px; }
  .connect-process-copy p { max-width:none; }
}
/* The shared page inset already sets the readable width; capping the outer box
   would subtract the viewport-based gutters twice and push wide layouts left. */
.apply-page .join-body { max-width:none; grid-template-columns:minmax(230px,1fr) minmax(0,2.2fr); gap:clamp(40px,6vw,100px); margin-top:64px; }
.apply-page .apply-intro { position:sticky; top:calc(var(--header-height,88px) + 32px); align-self:start; }
.apply-page .join-intro-copy h2 { font-size:clamp(28px,2.7vw,38px); line-height:1.15; font-weight:400; letter-spacing:-.055em; }
.apply-page .join-benefits { gap:30px; margin-top:42px; }
.apply-page .join-benefits h3 { font-size:15px; font-weight:500; }
.apply-page .join-benefits p { font-size:13px; color:var(--match-muted); }
.apply-page .apply-panel {
  /* Carbon-informed hierarchy and spacing, adapted to Robotuo's existing UI. */
  --form-title:28px; --form-section-title:20px; --form-body:14px; --form-meta:12px;
  --form-label-gap:8px; --form-field-gap:24px; --form-section-gap:32px;
  --form-control-height:48px; --form-control-radius:8px;
  padding:32px; background:#fff; color:var(--match-ink); border:1px solid var(--match-line); border-radius:16px; box-shadow:0 8px 36px #263d6605;
  font:400 var(--form-body)/1.7 var(--font-body); letter-spacing:0;
}
.match-form-section { display:grid; gap:var(--form-field-gap); min-width:0; }
.match-form-section:not([hidden]) ~ .match-form-section { margin-top:var(--form-section-gap); padding-top:var(--form-section-gap); border-top:1px solid var(--match-line); }
.match-form-section > h2 { margin:0; color:var(--match-ink); font-size:var(--form-section-title); font-weight:600; line-height:1.4; letter-spacing:-.025em; }
.match-form-section .apply-type-fields > label,.match-form-section .apply-fields > label { margin:0; min-width:0; }
.match-form-section .apply-type-fields { display:grid; gap:var(--form-field-gap); }
.match-form-section .apply-type-fields > * + :not(legend) { margin-top:0; }
.match-form-section legend + label,.match-form-section legend + div { margin-top:0; }
.match-form-section .service-note { max-width:64ch; font-size:var(--form-body); line-height:1.7; }
.apply-page .apply-panel .match-optional { color:var(--match-muted); font-size:var(--form-meta); font-weight:400; }
/* Visit planning uses separate spacing for the introduction, fields and picker. */
#visit-plan { gap:16px; }
#visit-plan-title,#visit-details-title { font-size:var(--form-title); font-weight:600; line-height:1.3; letter-spacing:-.03em; }
#visit-plan > .service-note { max-width:none; }
#match-client-fields { display:grid; gap:var(--form-section-gap); padding-top:24px; }
#match-client-fields > :not(legend) { margin:0; }
#visit-plan .apply-fields { grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); align-items:start; }
#visit-plan .visit-selected-dates { margin-top:12px; gap:8px; }
#visit-plan .visit-selected-dates button { min-height:32px; padding:6px 10px; }
#visit-plan .match-company-picker { display:grid; gap:16px; padding:20px; border-radius:12px; }
#visit-plan .match-company-picker > * { margin:0; }
#visit-plan .match-selector-heading { padding:0; border:0; align-items:center; }
#visit-plan .match-selector-heading h3 { font-size:var(--form-section-title); font-weight:600; line-height:1.4; letter-spacing:-.025em; }
#visit-plan #match-selection-count { font-size:var(--form-meta); }
#visit-plan .match-search-controls { gap:12px; }
#visit-plan .match-results { gap:10px; padding:4px; scrollbar-gutter:stable; }
#visit-plan .match-results-status { font-size:var(--form-meta); line-height:1.7; }
@media(max-width:760px) {
  .apply-page .apply-panel { --form-title:24px; --form-input:16px; --form-section-gap:24px; }
  #match-client-fields { padding-top:16px; }
  #visit-plan .apply-fields { grid-template-columns:1fr; }
  #visit-plan .match-company-picker { padding:16px 12px; }
  #visit-plan .match-search-controls { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #visit-plan .match-search-controls > label:first-child { grid-column:1 / -1; }
}
#match-request-guide { display:block; margin:4px 0 0; max-width:70ch; color:var(--match-muted); font-size:var(--form-meta); font-weight:400; line-height:1.7; }
.match-form-section .apply-fields { gap:var(--form-field-gap); align-items:start; }
.visit-date-field { min-width:0; }
.visit-date-field > label { display:block; font-size:var(--form-body); font-weight:500; line-height:1.5; }
.visit-date-picker { position:relative; margin-top:var(--form-label-gap); }
#visit-date-button { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; height:var(--form-control-height); padding:12px 16px; background:#fff; color:var(--match-ink); border:1px solid var(--match-line); border-radius:var(--form-control-radius); text-align:left; font-size:var(--form-input,var(--form-body)); font-weight:400; line-height:1.5; cursor:pointer; }
#visit-date-button svg { flex:none; color:var(--match-blue); }
#visit-date-button:hover,#visit-date-button[aria-expanded="true"] { border-color:var(--match-blue); }
#visit-date-error { margin:8px 0 0; color:#a52b31; font-size:var(--form-meta); line-height:1.7; }
#visit-calendar { position:absolute; top:100%; left:0; z-index:5; width:min(100%,400px); margin-top:6px; padding:14px; border:1px solid var(--match-line); border-radius:12px; background:white; color:var(--match-ink); box-shadow:0 8px 28px #29395219; }
.visit-calendar-nav,.visit-calendar-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.visit-calendar-nav strong { font-size:16px; font-weight:600; }
.visit-calendar-nav button,#visit-calendar-days button { border:0; border-radius:7px; background:transparent; color:inherit; cursor:pointer; }
.visit-calendar-nav button { width:32px; height:32px; font-size:24px; line-height:1; }
.visit-weekdays,#visit-calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; text-align:center; }
.visit-weekdays { margin:12px 0 5px; color:var(--match-muted); font-size:11px; font-weight:500; text-transform:uppercase; }
#visit-calendar-days button { min-height:36px; padding:0; font-size:14px; font-weight:500; font-variant-numeric:tabular-nums; }
#visit-calendar-days button[aria-current="date"] { box-shadow:inset 0 0 0 1px var(--match-line); }
.visit-calendar-nav button:enabled:hover,#visit-calendar-days button[aria-pressed="false"]:enabled:hover { background:#f0f4fc; }
#visit-calendar-days button[aria-pressed="true"] { color:white; background:var(--match-blue); }
#visit-calendar button:disabled { color:#a6aebb; cursor:default; }
.visit-calendar-footer { margin-top:12px; border-top:1px solid var(--match-line); padding-top:12px; color:var(--match-muted); font-size:12px; }
@media(max-width:760px) { #visit-calendar { position:static; width:100%; } }
.match-form-section :is(input,textarea,select,summary):focus-visible { outline:2px solid var(--match-blue); outline-offset:2px; }
.match-form-section .match-company-picker { margin:0; padding:0; border:1px solid var(--match-line); border-radius:8px; }
#match-selection-error { margin-block:8px; color:#a52b31; font-size:var(--form-meta); line-height:1.7; }
.match-company-picker > :not(.match-selector-heading) { margin-inline:14px; }

@media(max-width:760px) {
  .match-form-section .apply-fields { grid-template-columns:1fr; }
}

.apply-page .apply-fields>label,.apply-page .apply-type-fields>label { font-size:var(--form-body); font-weight:500; line-height:1.5; letter-spacing:0; }
.apply-page .apply-panel :is(.apply-fields,.apply-type-fields) :where(input:not([type=hidden]),select,textarea) { height:var(--form-control-height); min-height:var(--form-control-height); margin-top:var(--form-label-gap); padding:12px 16px; border-radius:var(--form-control-radius); color:var(--match-ink); font-size:var(--form-input,var(--form-body)); font-weight:400; border-color:var(--match-line); line-height:1.5; letter-spacing:0; }
.apply-page .apply-panel input::placeholder,.apply-page .apply-panel textarea::placeholder { color:#69758a; }
.apply-page .apply-panel .apply-type-fields textarea { height:144px; min-height:120px; }
.apply-page .apply-note { margin-top:12px; font-size:var(--form-meta); line-height:1.7; color:var(--match-muted); letter-spacing:0; }
.apply-page .apply-panel .apply-review-button { height:var(--form-control-height); margin-top:var(--form-section-gap); font-size:var(--form-body); font-weight:500; line-height:1.5; letter-spacing:0; }
.apply-page .apply-review-button:disabled { opacity:.6; cursor:wait; }
#application-edit { display:block; margin:18px auto 0; }
#application-review h2 { margin:0; font-size:var(--form-title); font-weight:600; line-height:1.3; letter-spacing:-.03em; }
#application-summary { margin-block:var(--form-field-gap); }
#application-summary dt { margin-top:var(--form-field-gap); font-size:var(--form-meta); line-height:1.7; }
#application-summary dd { margin-top:8px; font-size:var(--form-body); line-height:1.7; }
#application-send-status { font-size:var(--form-body); line-height:1.7; }
#application-send-status[data-error=true] { color:#a52b31; }
#application-service-notice { margin:20px 0 0; padding:16px 18px; border:1px solid var(--match-line); border-radius:10px; background:#f3f6fd; color:var(--match-ink); font-size:var(--form-body); line-height:1.7; }
.apply-page .apply-panel #application-service-notice:not([hidden]) + .apply-review-button { margin-top:16px; }

.match-selector { margin-top:24px; padding-top:24px; border-top:1px solid var(--match-line); }
.match-selector-heading { display:flex; align-items:baseline; justify-content:space-between; gap:14px; margin-bottom:12px; padding:12px 14px; border-bottom:1px solid var(--match-line); }
.match-selector-heading h3 { margin:0; font-size:16px; font-weight:500; line-height:1.4; letter-spacing:-.03em; }
#match-selection-count { color:var(--match-blue); font-size:14px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.match-selected { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:16px; }
.match-selected button { display:inline-flex; gap:10px; align-items:center; padding:6px 10px; min-height:32px; max-width:100%; background:#f0f4fd; border:1px solid #dbe4f8; border-radius:6px; color:#2a4789; font-size:12px; }
.match-selected button span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.visit-step { display:block; margin-bottom:8px; color:var(--match-muted); font-size:var(--form-meta); font-weight:500; line-height:1.7; letter-spacing:normal; }
#visit-recap { gap:16px; }
#visit-back { justify-self:start; display:inline-flex; align-items:center; gap:8px; min-height:44px; margin:0; padding:8px 0; border:0; border-radius:6px; background:transparent; color:var(--match-muted); font:500 var(--form-body)/1.5 var(--font-body); cursor:pointer; }
#visit-back > span { font-size:20px; line-height:1; }
#visit-back:hover { color:var(--match-blue); }
#visit-back:focus-visible { outline:2px solid var(--match-blue); outline-offset:4px; }
#visit-summary { line-height:1.7; overflow-wrap:anywhere; }
.match-search-controls { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:10px; margin-bottom:12px; }
.match-search-controls label { min-width:0; }
.apply-page .apply-panel .match-search-controls :is(input,select) { margin:0; }
.apply-page .apply-panel .match-result-copy strong { font-size:var(--form-body); line-height:1.5; }
.apply-page .apply-panel .match-result-copy > span { font-size:var(--form-meta); line-height:1.7; }
.apply-page .apply-panel :is(.match-selected,.visit-selected-dates) button { font-size:var(--form-meta); line-height:1.7; }
.apply-page .apply-panel .match-text-button { font-size:var(--form-body); line-height:1.5; }
.match-results { display:grid; grid-template-columns:1fr 1fr; gap:8px; max-height:360px; overflow-y:auto; padding:3px; margin:-3px; scrollbar-width:thin; overscroll-behavior:contain; }
.match-results[aria-busy=true] { opacity:.55; }
.match-result-row { position:relative; min-width:0; display:flex; }
.match-result-row .match-result { padding-right:52px; }
.match-result-info { position:absolute; right:6px; top:50%; transform:translateY(-50%); width:40px; height:40px; display:grid; place-items:center; border-radius:6px; color:var(--match-muted); }
.match-result-info:hover { color:var(--match-blue); background:#e6ecf8; }
.match-result-info:focus-visible { outline:2px solid var(--match-blue); outline-offset:1px; }
:is(.match-result,.match-others-toggle) { width:100%; display:flex; align-items:center; gap:10px; text-align:left; padding:12px 10px; min-height:76px; border:1px solid var(--match-line); border-radius:8px; background:#fff; color:var(--match-ink); }
:is(.match-result,.match-others-toggle):hover { border-color:#9bacd1; }
:is(.match-result,.match-others-toggle)[aria-pressed=true] { background:#f3f6fd; border-color:var(--match-blue); }
.match-others-toggle:focus-visible { outline:2px solid var(--match-blue); outline-offset:2px; }
#match-others-field { font-size:var(--form-body); font-weight:500; line-height:1.5; }
.apply-page .apply-panel #match-others-field textarea { height:100px; min-height:100px; }
.match-result-logo { flex:0 0 34px; width:34px; height:34px; display:grid; place-items:center; overflow:hidden; color:#45609b; font-size:18px; }
.match-result-logo img { width:100%; height:100%; object-fit:contain; }
.match-result-copy { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.match-result-copy strong { font-size:13px; font-weight:500; line-height:1.35; overflow-wrap:anywhere; }
.match-result-copy>span { color:var(--match-muted); font-size:11px; line-height:1.3; }
.match-result-check { position:relative; flex:0 0 17px; height:17px; border:1px solid #a9b5c9; border-radius:4px; }
:is(.match-result,.match-others-toggle)[aria-pressed=true] .match-result-check { background:var(--match-blue); border-color:var(--match-blue); }
:is(.match-result,.match-others-toggle)[aria-pressed=true] .match-result-check::after { content:''; position:absolute; left:5px; top:2px; width:5px; height:9px; border:solid #fff; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.match-results-status { font-size:12px; line-height:1.5; color:var(--match-muted); margin:12px 0 0; }
.match-text-button { color:var(--match-blue); font-size:13px; line-height:1.5; padding:10px 0; text-decoration:underline; text-underline-offset:4px; }

.match-dock { position:fixed; z-index:40; right:24px; bottom:24px; max-width:min(320px,calc(100vw - 32px)); font-family:var(--font-body); }
.match-dock.with-compare { bottom:var(--match-compare-offset,160px); }
.match-dock-button { display:flex; align-items:center; gap:12px; min-height:64px; padding:12px 22px; border:1px solid var(--match-blue); border-radius:var(--action-radius); background:var(--match-blue); color:#fff; font-size:14px; font-weight:500; box-shadow:0 4px 16px #29427824; text-align:left; }
.match-dock-button:hover { background:var(--action-hover); border-color:var(--action-hover); color:#fff; }
.match-dock-button > svg { flex-shrink:0; }
.match-dock-copy { display:flex; flex-direction:column; gap:2px; line-height:1.5; }
.match-dock-button [data-match-count] { color:#fff; font-size:12px; font-weight:400; font-variant-numeric:tabular-nums; }
.match-dock-status { position:absolute; right:0; bottom:calc(100% + 8px); width:100%; box-sizing:border-box; overflow-wrap:anywhere; font-size:12px; line-height:1.5; margin:0; padding:10px 14px; border:1px solid var(--match-line); border-radius:8px; background:#fff; color:var(--match-ink); box-shadow:0 4px 16px #2942780c; }
.match-dock-status[data-error=true],.match-drawer [role=status][data-error=true] { color:#a52b31; }
.match-dock-status:empty { display:none; }
#match-drawer { position:fixed; inset:12px 12px 12px auto; margin:0; width:440px; max-width:calc(100vw - 24px); height:calc(100vh - 24px); height:calc(100dvh - 24px); max-height:none; padding:0; border:1px solid var(--match-line); border-radius:16px; background:#fff; color:var(--match-ink); box-shadow:0 12px 60px #243a5926; font-family:var(--font-body); }
#match-drawer[open] { display:flex; flex-direction:column; }
#match-drawer::backdrop { background:#1d2c4933; backdrop-filter:blur(3px); }
#match-drawer>header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:24px 24px 20px; }
#match-drawer h2 { margin:0; font-size:26px; line-height:1.2; font-weight:500; letter-spacing:-.035em; }
.match-shortlist-summary { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 24px; padding:0 0 16px; border-bottom:1px solid var(--match-line); }
.match-shortlist-summary p { display:flex; flex-direction:column; gap:4px; font-size:14px; font-weight:500; line-height:1.5; font-variant-numeric:tabular-nums; }
.match-shortlist-limit { color:var(--match-muted); font-size:12px; font-weight:400; }
.match-clear-button,.match-remove { flex:0 0 auto; display:grid; place-items:center; width:44px; height:44px; padding:0; border-radius:50%; background:transparent; color:#828997; }
.match-clear-button:hover,.match-remove:hover { background:#f5f7fa; color:var(--match-muted); }
.match-drawer-close { flex:0 0 auto; display:grid; place-items:center; width:44px; height:44px; margin:-4px -8px 0 0; border-radius:50%; color:var(--match-muted); font-size:26px; font-weight:400; background:transparent; }
.match-drawer-close:hover { background:#f5f7fa; color:var(--match-ink); }
#match-drawer-list { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; list-style:none; padding:0 24px; margin:0; }
#match-drawer-list li { display:flex; align-items:center; gap:12px; padding:16px 0; border-bottom:1px solid #edf0f5; }
.match-company-mark { flex:0 0 44px; height:44px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--match-line); border-radius:8px; color:var(--match-blue); background:#fff; font-size:19px; }
.match-company-mark img { width:100%; height:100%; min-width:0; min-height:0; padding:4px; box-sizing:border-box; object-fit:contain; }
#match-drawer-list li>div { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
#match-drawer-list a { font-size:14px; line-height:1.5; font-weight:500; overflow-wrap:anywhere; }
#match-drawer-list a:hover { color:var(--match-blue); }
#match-drawer-list li>div>span { font-size:12px; line-height:1.5; color:var(--match-muted); overflow-wrap:anywhere; }
#match-drawer footer { flex-shrink:0; padding:20px 24px 16px; border-top:1px solid var(--match-line); }
#match-drawer .match-primary { width:100%; gap:10px; padding-inline:16px; }
#match-drawer .match-primary svg { flex-shrink:0; }
.match-shortlist-browse { display:block; min-height:44px; margin:8px auto 0; padding:10px 12px; color:var(--match-muted); font-size:13px; line-height:1.5; text-decoration:underline; text-underline-offset:4px; }
.match-shortlist-browse:hover { color:var(--match-blue); }
.match-empty { flex:1; padding:24px; color:var(--match-muted); font-size:14px; line-height:1.6; }
.match-drawer :is(a,button):focus-visible { box-shadow:none; }
.match-drawer-status { font-size:13px; line-height:1.5; margin:0 0 12px; }
.match-drawer-status:empty { display:none; }
#company-page .cp-match { min-width:160px; }
#company-page .cp-match[aria-pressed="true"] { background:#f0f4fd; border-color:var(--match-line); color:var(--match-blue); }
#company-page .cp-match[aria-pressed="true"]:hover { background:#e5edfc; border-color:var(--match-blue); }

@media(max-width:1050px) {
  .apply-page .join-body { grid-template-columns:minmax(190px,.8fr) minmax(0,2fr); gap:30px; }
  .apply-page .apply-panel { padding:24px; }

}
@media(max-width:760px) {
  #home-discovery .catalog-scene { min-height:calc(100svh - var(--header-height,70px)); }
  #home-discovery .maker-intro { padding:48px 0; }
  #home-discovery .maker-companies .discovery-heading h2 { font-size:clamp(32px,7.7vw,45px); }
  .maker-match-copy { font-size:14px; max-width:400px; margin:16px auto 20px; line-height:1.6; }
  .apply-page .join-hero { min-height:410px; height:auto; }
  .apply-page .join-hero-copy { padding-top:44px; padding-bottom:64px; }
  .apply-page .join-hero h1 { font-size:clamp(42px,9vw,58px); max-width:440px; }
  .apply-page .join-hero-copy>p { font-size:15px; max-width:340px; }
  .apply-page .join-body { grid-template-columns:1fr; margin-top:32px; gap:28px; }
  .apply-page .apply-intro { padding-top:0; position:static; }
  .apply-page .join-intro-copy { max-width:none; }
  .apply-page .join-intro-copy h2 { font-size:30px; }
  .apply-page .join-benefits { gap:20px; margin-top:24px; }
  .apply-page .apply-panel { padding:24px 18px; }

  .apply-page .match-search-controls { grid-template-columns:1fr; }
  .apply-page .match-search-controls :is(input,select),.apply-page .apply-fields input,.apply-page .apply-type-fields :is(input,textarea,select) { font-size:16px; }
  .match-selector-heading { gap:8px; }
  .match-selector-heading h3 { font-size:16px; }
  .match-results { grid-template-columns:1fr; max-height:344px; }
  .match-result { min-height:68px; }
  .match-result-copy strong { font-size:14px; }
  .match-dock { right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); }
  .match-dock.with-compare { bottom:var(--match-compare-offset,160px); }
  #match-drawer { inset:auto 0 0; width:100%; max-width:none; height:min(85vh,680px); height:min(85dvh,680px); border-radius:16px 16px 0 0; }
  #match-drawer>header { padding:20px 20px 16px; }
  .match-shortlist-summary { margin-inline:20px; }
  #match-drawer-list { padding-inline:20px; }
  #match-drawer footer { padding:16px 20px calc(12px + env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce) { .match-dock,.match-drawer,.match-result { transition:none; } }

.visit-selected-dates { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.visit-selected-dates button { max-width:100%; padding:5px 8px; border:1px solid var(--match-line); border-radius:6px; background:white; color:var(--match-ink); font-size:12px; cursor:pointer; }
.visit-selected-dates button:hover { border-color:var(--match-blue); }
#visit-summary-dates { gap:8px; margin:0; }
#visit-summary-dates button { display:inline-flex; align-items:center; gap:10px; min-height:36px; padding:7px 12px; border:1px solid #cbd7f2; border-radius:99px; background:#f0f4fd; color:var(--match-blue); font:500 12px/1.5 var(--font-body); }
#visit-summary-dates button:hover { background:#e5edfc; border-color:var(--match-blue); }
#visit-summary-dates button:focus-visible { outline:2px solid var(--match-blue); outline-offset:3px; }
#visit-summary-dates button > span:last-child { font-size:16px; line-height:1; }
#visit-calendar-days button[aria-disabled="true"] { opacity:.45; cursor:default; }

/* Native select arrows and padding need room for the default filter labels. */
@media(max-width:1200px) {
  #visit-plan .match-search-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #visit-plan .match-search-controls > label:first-child { grid-column:1 / -1; }
}
@media(max-width:480px) {
  #visit-plan .match-search-controls { grid-template-columns:minmax(0,1fr); }
}

/* Visit gallery alongside the Connect form. */
.apply-page .join-body { grid-template-columns:minmax(280px,.95fr) minmax(0,1.65fr); gap:clamp(32px,4vw,64px); }
.connect-visit-gallery h2 { margin:0; font-size:clamp(28px,2.6vw,38px); line-height:1.15; font-weight:500; letter-spacing:-.045em; }

.connect-gallery-frames { position:relative; aspect-ratio:4/3; border-radius:14px; overflow:hidden; background:#e9edf3; }
.connect-gallery-slide { position:absolute; inset:0; margin:0; }
.connect-gallery-slide img { display:block; width:100%; height:100%; object-fit:cover; object-position:var(--gallery-position,center); }
.connect-gallery-arrow { position:absolute; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:44px; height:44px; border:1px solid #ffffff90; border-radius:50%; background:#fffffff0; color:#14213a; font-size:28px; line-height:1; cursor:pointer; box-shadow:0 2px 10px #0002; }
.connect-gallery-prev { left:12px; }.connect-gallery-next { right:12px; }

.connect-gallery-controls { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:0 12px; }
.connect-gallery-dots { display:flex; gap:0; }
.connect-gallery-dots button { display:grid; place-items:center; width:28px; height:44px; padding:0; border:0; background:transparent; cursor:pointer; }
.connect-gallery-dots button::before { content:''; width:7px; height:7px; border-radius:50%; background:#c1cad8; }
.connect-gallery-dots button[aria-current=true]::before { background:var(--match-blue); }
.connect-gallery-caption { flex:1 0 150px; margin:0; padding:12px 0; color:var(--match-muted); font-size:12px; line-height:20px; text-align:right; }
@media(max-width:1050px) { .apply-page .join-body { grid-template-columns:minmax(240px,.9fr) minmax(0,1.6fr); gap:28px; } }
@media(max-width:900px) { .apply-page .join-body { grid-template-columns:1fr; gap:32px; }.apply-page .apply-intro { position:static; }.connect-gallery-frames { aspect-ratio:16/10; } }

.apply-page .connect-intro { position:static; }
.connect-visit-gallery { margin-top:32px; }
