/* Contact and visit requests share one local-preview form. */
body #masthead .site-search,
body #masthead .site-search .search-form input[type=search],
body #masthead .site-search .search-form .search-submit { border-radius:5px; }
body #page .compact-catalog .choices__inner { border-radius:5px; }
body #masthead #primary-menu a[href="/contact/"] { white-space:nowrap; flex-direction:row; gap:0; }
body #page #colophon.visit-footer { padding-top:36px; }
body #page #colophon.visit-footer .footer-columns { display:grid; grid-template-columns:1fr 1fr 1fr; gap:36px; align-items:center; }
body #page #colophon.visit-footer .footer-columns > .column { display:block; width:auto; padding:0; margin:0; border:0; }
body #page #colophon.visit-footer .footer-columns > .column::before,
body #page #colophon.visit-footer .footer-columns > .column::after { content:none; }
body #page #colophon.visit-footer .footer-columns .column-content { width:100%; }
body #page #colophon.visit-footer .footer-columns .column-1 { text-align:center; }
body #page #colophon.visit-footer .column-1 h3 { font-size:28px; line-height:1.25; margin:0 0 4px; }
body #page #colophon.visit-footer .column-1 h4 { font-size:28px; line-height:1.35; margin:0 0 24px; color:#d2c8ae; }
body #page #colophon.visit-footer .column-2 p { margin:0; }
body #page #colophon.visit-footer .footer-columns iframe { height:280px; }
body #page #colophon.visit-footer .footer-bottom .columns-container { margin-top:36px; }
body #page .contact-details p { font:400 20px/1.55 'Instrument Sans',sans-serif; margin:0 0 20px; color:#fff; }
body #page .contact-details p:last-child { margin-bottom:0; }
body #page .contact-details a { color:#fff; font:inherit; letter-spacing:normal; text-transform:none; white-space:nowrap; }
body #page .contact-details a::after { content:none; }
body #page .contact-details a:hover { color:#d2c8ae; }
body #page .contact-visit-page { background:var(--cactus-content-background,#302e2b); padding:110px 3.5vw 8px; margin:0; }
body #page .contact-visit-layout { display:grid; grid-template-columns:minmax(220px,1fr) minmax(460px,1.85fr) minmax(250px,1fr); gap:36px; max-width:1800px; margin:auto; align-items:start; }
body #page .visit-information, body #page .visit-map { padding-top:48px; }
body #page .visit-map iframe { width:100%; height:380px; display:block; border:0; }
body #page #visit-form { margin:0; min-width:0; color:#fff; font:400 16px/1.45 'Instrument Sans',sans-serif; --visit-field:#eeeae3; --visit-label:#e4e0d8; --visit-accent:#d2c8ae; }
body #page #visit-heading { font:400 clamp(26px,2.2vw,36px)/1.25 'ivymode',sans-serif; text-transform:none; letter-spacing:0; margin:0 0 10px; }
body #page #visit-form fieldset { min-width:0; padding:0; margin:0 0 6px; border:0; }
body #page #visit-form legend { float:none; width:auto; padding:0; margin:0 0 8px; color:var(--visit-label); font:inherit; }
body #page #visit-form button:not(.cst-button) { border:1px solid #938b80; border-radius:5px; padding:9px 12px; min-height:40px; background:transparent; color:#fff; font:inherit; letter-spacing:0; text-transform:none; cursor:pointer; }
body #page #visit-form button[aria-pressed=true] { background:var(--visit-accent); border-color:var(--visit-accent); color:#272523; }
body #page #visit-form button:disabled { opacity:.4; cursor:default; }
body #page #visit-form button:not(:disabled):hover { border-color:var(--visit-accent); }
body #page #visit-form :is(button,input,textarea):focus-visible { outline:2px solid var(--visit-accent); outline-offset:3px; }
body #page #visit-form .choice-buttons { display:flex; gap:8px; flex-wrap:wrap; }
body #page #visit-form .visit-field { margin-bottom:6px; min-width:0; }
body #page #visit-form .floating-field { position:relative; }
body #page #visit-form .floating-field input,
body #page #visit-form .floating-field textarea { width:100%; box-sizing:border-box; height:48px; min-height:48px; padding:20px 14px 3px; border:1px solid transparent; border-radius:5px; background:var(--visit-field); color:#302e2b; font:400 16px/1.45 'Instrument Sans',sans-serif; box-shadow:none; }
body #page #visit-form .floating-field textarea { height:72px; min-height:72px; resize:vertical; display:block; }
body #page #visit-form .floating-field label { position:absolute; left:15px; top:13px; color:#302e2b; font:400 16px/1.3 'Instrument Sans',sans-serif; pointer-events:none; transition:top .12s,font-size .12s; }
body #page #visit-form .floating-field :is(input,textarea):focus + label,
body #page #visit-form .floating-field :is(input,textarea):not(:placeholder-shown) + label,
body #page #visit-form .floating-field input:autofill + label { top:3px; font-size:12px; }
body #page #visit-form .floating-field input:-webkit-autofill { -webkit-text-fill-color:#302e2b; box-shadow:0 0 0 100px var(--visit-field) inset; caret-color:#302e2b; }
body #page #visit-form .floating-field :is(input,textarea):focus { outline:2px solid var(--visit-accent); outline-offset:0; }
body #page #visit-form .contact-inputs { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
body #page #visit-form .visit-error { margin:5px 0 0; font:400 14px/1.4 'Instrument Sans',sans-serif; color:#ffd0c4; }
body #page #visit-form .visit-error:empty { display:none; }
body #page #visit-form [aria-invalid=true]:not(fieldset) { border-color:#ffd0c4; }
body #page #visit-form .visit-datetime { padding:8px; border:1px solid #938b80; border-radius:5px; background:#4b4742; }
body #page #visit-form .visit-datetime legend { padding:0 6px; margin:0; }
body #page #visit-form .date-toolbar, body #page #visit-form .month-toolbar,
body #page #visit-form .date-selection, body #page #visit-form .time-selection { display:flex; justify-content:space-between; align-items:center; gap:8px; }
body #page #visit-form .date-toolbar { display:grid; grid-template-columns:1fr auto 1fr; margin-bottom:6px; }
body #page #visit-form #calendar-toggle { display:inline-flex; gap:6px; align-items:center; padding:4px 6px; min-height:30px; font-size:13px; justify-self:end; }
body #page #visit-form .date-strip { display:flex; gap:5px; }
body #page #visit-form .date-strip > button { padding:0 8px; font-size:24px; }
body #page #visit-form .date-row { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); flex:1; gap:4px; }
body #page #visit-form .date-row button { border-color:#938b80; padding:1px 0; font-size:12px; }
body #page #visit-form .date-row span,body #page #visit-form .date-row strong { display:block; }
body #page #visit-form .date-row strong { font-size:16px; margin-top:0; font-weight:500; }
body #page #visit-form #visit-calendar { margin-top:14px; padding-top:12px; border-top:1px solid #938b80; }
body #page #visit-form [hidden] { display:none!important; }
body #page #visit-form .calendar-days, body #page #visit-form .calendar-weekdays { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; text-align:center; }
body #page #visit-form .calendar-weekdays { font-size:12px; margin:12px 0 5px; color:var(--visit-label); }
body #page #visit-form .calendar-days button { padding:6px 0; }
body #page #visit-form .date-selection, body #page #visit-form .time-selection { margin:2px 0; font-size:13px; color:var(--visit-label); }
body #page #visit-form #clear-date,body #page #visit-form #clear-time { padding:0; min-height:22px; border:0; font-size:13px; text-decoration:underline; white-space:nowrap; }
body #page #visit-form .time-windows { display:grid; grid-template-columns:repeat(var(--visible-times,5),minmax(0,1fr)); gap:4px; flex:1; }
body #page #visit-form .time-windows button { padding:5px 1px; min-height:32px; font-size:13px; }
body #page #visit-form #visit-window-note { font:400 12px/1.5 'Instrument Sans',sans-serif; color:var(--visit-label); margin:4px 0 0; }
body #page #visit-form > .cst-button { min-width:120px; padding:7px 24px; min-height:44px; line-height:24px; margin:0; }
body #page #visit-form #visit-status { font:400 15px/1.5 'Instrument Sans',sans-serif; margin:12px 0 0; }
body #page #visit-form #visit-status:empty { display:none; }
body #page #colophon.contact-bottom-only { background:var(--cactus-surface)!important; padding-top:0; }
body #page #colophon.contact-bottom-only .footer-bottom .columns-container { margin-top:0; }
@media(max-width:1199px) {
 body #page .contact-visit-layout { gap:24px; grid-template-columns:minmax(190px,1fr) minmax(410px,2fr) minmax(190px,1fr); }
 body #page .contact-visit-page { padding-inline:24px; }
 body #page .contact-details p { font-size:18px; }
 body #page #colophon.visit-footer .footer-columns { gap:24px; }
 body #page #colophon.visit-footer .column-1 h3,body #page #colophon.visit-footer .column-1 h4 { font-size:24px; }
}
@media(max-width:1000px) {
 body #page .contact-visit-layout { grid-template-columns:minmax(0,1fr) minmax(0,2fr); }
 body #page .visit-map { grid-column:1 / -1; padding-top:0; }
 body #page .visit-map iframe { height:280px; }
 body #page #colophon.visit-footer .footer-columns { grid-template-columns:1fr 1fr; }
 body #page #colophon.visit-footer .column-2 { grid-column:1 / -1; }
}
@media(max-width:650px) {
 body #page .contact-visit-page { padding:110px 20px 28px; }
 body #page .contact-visit-layout { display:flex; flex-direction:column; gap:28px; }
 body #page #visit-form { order:-1; width:100%; }
 body #page .visit-information { padding:0; }
 body #page .visit-map { width:100%; }
 body #page #colophon.visit-footer .footer-columns { grid-template-columns:1fr; }
 body #page #colophon.visit-footer .column-1 { text-align:left; }
 body #page #visit-form .contact-inputs { grid-template-columns:1fr; gap:0; }
 body #page #visit-heading { font-size:28px; }
 body #page #visit-form .visit-datetime { padding:10px; }
 body #page #visit-form .date-toolbar { flex-wrap:wrap; }
 body #page #visit-form .choice-buttons { gap:6px; }
 body #page #visit-form .choice-buttons button { padding-inline:9px; font-size:14px; }
}

/* Preserve line breaks that the source theme suppresses on small screens. */
body #page .contact-details br { display:initial!important; }
body #page #colophon.visit-footer .contact-details p { font-size:20px; line-height:1.55; margin:0 0 18px; }
body #page #colophon.visit-footer .contact-details p:last-child { margin-bottom:0; }
@media(min-width:901px) and (max-width:1199px) {
 body #masthead .container .navs-wrapper #primary-menu a[href="/contact/"] { display:inline-flex; flex-direction:column; justify-content:center; box-sizing:border-box; max-width:100%; white-space:nowrap; font-size:13px; line-height:18px; letter-spacing:1.2px; padding-block:4px; }
}

/* This refinement is deliberately restricted to Contact/Schedule. */
body:has(.contact-visit-page) #masthead { box-shadow:inset 0 -1px rgba(210,200,174,.38); }
body #page #visit-form .visit-choices { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 6px; }
body #page #visit-form .visit-choices > span { color:var(--visit-label); }
body #page #visit-form .choice-buttons button { background:#65605b; min-height:32px; padding:4px 9px; font-size:14px; }
body #page #visit-form .choice-buttons button[aria-pressed=true] { background:var(--visit-accent); color:#272523; }
body #page #visit-form #datetime-heading { font:inherit; color:var(--visit-label); text-transform:none; letter-spacing:0; margin:0; font-size:14px; }
body #page #visit-form #date-range-label { text-align:center; font-size:14px; }
body #page #visit-form .time-strip { display:flex; gap:5px; }
body #page #visit-form .time-strip > button { padding:0 8px; font-size:24px; min-height:32px; }
body #page .visit-information { text-align:center; container-type:inline-size; }
body #page .visit-information h2 { font:400 22px/1.35 'Instrument Sans',sans-serif; text-transform:none; letter-spacing:0; margin:0 0 16px; }
body #page .visit-information .contact-details p { font-size:18px; line-height:1.55; margin:0 0 16px; }
body #page .visit-information-columns { display:grid; grid-template-columns:1fr; gap:0; }
@container(min-width:440px) {
 body #page .visit-information-columns { grid-template-columns:1fr 1fr; gap:16px; text-align:left; }
 body #page .visit-information .contact-details p { font-size:16px; }
}
body #page #colophon.contact-bottom-only .footer-bottom .columns-container { padding-block:8px; }
@media(max-width:1199px) {
 body #page .contact-visit-page { padding-top:106px; }
 body #page .visit-information .contact-details p { font-size:16px; }
 body #page .visit-information h2 { font-size:20px; }
 body #page #visit-form .date-toolbar { grid-template-columns:1fr auto; }
 body #page #visit-form #datetime-heading { grid-column:1; grid-row:1; }
 body #page #visit-form #date-range-label { grid-row:2; grid-column:1 / -1; padding-inline:0; }
 body #page #visit-form #calendar-toggle { grid-row:1; grid-column:2; }
}
@media(max-width:900px) { body #page .contact-visit-page { padding-top:100px; } }
@media(max-width:650px) {
 body #page .contact-visit-page { padding-top:90px; padding-bottom:8px; }
 body #page .visit-information { width:100%; }
 body #page .visit-information .contact-details p { font-size:18px; }
 body #page #visit-form .date-toolbar { grid-template-columns:1fr auto; }
 body #page #visit-form #date-range-label { padding-inline:0; grid-column:1 / -1; }
 body #page #visit-form .visit-choices { gap:6px 10px; }
}
@media(min-width:1001px) {
 body #page .visit-map iframe { height:clamp(380px,27vw,480px); }
 body #page #colophon.contact-bottom-only .footer-bottom .columns-container { grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr); }
}

/* September 23: Contact-only refinement. Shared headers/footers keep their rules. */
body:has(.contact-visit-page) #page { display:flex; flex-direction:column; min-height:100vh; min-height:100svh; }
body #page .contact-visit-page { flex:1 0 auto; padding-bottom:14px; }
body #page .contact-bottom-wrapper { flex:0 0 auto; }
body #page #colophon.contact-bottom-only { border-top:1px solid rgba(210,200,174,.38); }
body #page #visit-form { --visit-gap:14px; }
body #page #visit-form .visit-choices > span { font:400 22px/1.25 'ivymode',sans-serif; color:#fff; }
body #page #visit-form .visit-choices,
body #page #visit-form .visit-field,
body #page #visit-form .contact-inputs,
body #page #visit-form .visit-datetime { margin-bottom:var(--visit-gap); }
body #page #visit-form .contact-inputs { gap:var(--visit-gap); }
body #page #visit-form .contact-inputs .visit-field { margin-bottom:0; }
body #page #visit-form .floating-field textarea { height:clamp(96px,calc(100svh - 820px),144px); min-height:96px; }
body #page .visit-information { padding-top:var(--visit-information-offset,50px); container-type:normal; }
body #page .visit-information h2 { display:flex; justify-content:center; align-items:center; gap:8px; font:400 22px/1.25 'ivymode',sans-serif; margin:0 0 32px; }
/* Original 1200px PNG: alpha bounds y=53..1147, so .85em displays ~.775em artwork. */
body #page .visit-information .gallery-mark { width:.85em; height:.85em; flex:0 0 .85em; object-fit:contain; }
body #page .visit-information-columns { display:block; text-align:center; }
body #page .visit-information .contact-details p { font-size:20px; line-height:1.5; margin:0; }
body #page .visit-information .contact-details p + p { margin-top:16px; }
body #page .visit-information .contact-details .visit-hours + .visit-phones { margin-top:32px; }
body #page .visit-information .contact-details p > span { font-weight:400; font-style:normal; color:#fff; }
body #page #primary.contact-visit-page .visit-information p a { position:relative; font-weight:700; white-space:normal; overflow-wrap:anywhere; }
/* The source theme's `body #page p a:not(.cst-button)::after` draws an absolute
   underline. Remove that actual pseudo-element with Contact-only specificity. */
body #page #primary.contact-visit-page .visit-information p a:not(.cst-button)::after { content:none; }
body #page #primary.contact-visit-page .visit-information p a:focus-visible { outline:2px solid #d2c8ae; outline-offset:3px; border-radius:2px; }
body #page #visit-form .visit-datetime { background:var(--visit-field); color:#302e2b; border-color:#aaa194; padding:14px; }
body #page #visit-form #datetime-heading { font:400 16px/1.25 'ivymode',sans-serif; color:#302e2b; grid-row:1; grid-column:1 / 3; }
body #page #visit-form .date-toolbar { grid-template-columns:1fr auto 1fr; grid-template-rows:auto auto; gap:4px 8px; margin-bottom:var(--visit-gap); }
body #page #visit-form #date-range-label { grid-row:2; grid-column:1 / -1; padding-inline:104px; color:#302e2b; }
body #page #visit-form #calendar-toggle { grid-row:1 / 3; grid-column:3; align-self:center; }
body #page #visit-form .visit-datetime button { color:#302e2b; border-color:#938b80; }
body #page #visit-form .visit-datetime button:not(:disabled):hover { border-color:#746956; }
body #page #visit-form .visit-datetime button[aria-pressed=true] { background:var(--visit-accent); color:#272523; border-color:#847862; }
body #page #visit-form .visit-datetime button:disabled { opacity:.45; }
body #page #visit-form .visit-datetime button:focus-visible { outline-color:#746956; }
body #page #visit-form .visit-datetime .visit-error { color:#94382d; }
body #page #visit-form .date-selection,
body #page #visit-form .time-selection { color:#514c46; margin:4px 0 0; }
body #page #visit-form .date-selection { margin-bottom:var(--visit-gap); }
body #page #visit-form #visit-window-note { color:#6b655e; margin-top:var(--visit-gap); }
body #page #visit-form #visit-calendar { display:flex; align-items:flex-start; gap:5px; margin:0; padding:0; border:0; }
body #page #visit-form .calendar-month-grid { flex:1; min-width:0; }
body #page #visit-form .calendar-weekdays { color:#514c46; margin:0 0 5px; }
body #page #visit-form button.visit-arrow { display:inline-grid; place-items:center; flex:0 0 26px; width:26px; min-width:26px; padding:0; line-height:1; }
body #page #visit-form .visit-arrow svg { display:block; width:16px; height:16px; }
body #page #visit-form #visit-calendar > .visit-arrow { height:44px; }
@media(max-width:1199px) {
 body #page .visit-information .contact-details p { font-size:18px; }
}
@media(max-width:650px) {
 body #page .visit-information { padding-top:0; }
 body #page .visit-information .contact-details p { font-size:20px; }
 body #page #visit-form .date-toolbar { grid-template-columns:minmax(0,1fr) auto; }
 body #page #visit-form #datetime-heading { grid-column:1; padding-right:0; }
 body #page #visit-form #calendar-toggle { grid-row:1; grid-column:2; }
 body #page #visit-form #date-range-label { padding-inline:0; }
}

/* More Contact refinements: shared pages and accepted header/footer lines stay intact. */
body #page .contact-visit-page { --visit-divider:#575552; --visit-heading-gap:12px; }
body #page .contact-visit-intro { margin-bottom:var(--visit-heading-gap); text-align:center; }
body #page .contact-visit-intro #visit-heading { position:relative; width:fit-content; max-width:100%; margin:0 auto; padding-bottom:calc(var(--visit-heading-gap) + 1px); }
body #page .contact-visit-intro #visit-heading::after { content:""; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:var(--visit-heading-width,100%); height:1px; background:var(--visit-divider); }
body #page .visit-information h2 { font-size:26px; }
/* Original artwork's alpha bounds occupy 1094/1200 of its height. At 1.37em,
   visible artwork matches the 1.25em text line, with original pixels untouched. */
body #page .visit-information .gallery-mark { width:1.37em; height:1.37em; flex-basis:1.37em; }
body #page .visit-information .contact-details { position:relative; width:fit-content; max-width:100%; margin-inline:auto; }
body #page .visit-information .contact-details::before { content:""; position:absolute; top:0; bottom:0; left:calc(100% + var(--visit-line-overhang,0px) - 1px); width:1px; background:var(--visit-divider); }
body #page .visit-information .visit-phones { position:relative; }
body #page .visit-information .visit-phones::before { content:""; position:absolute; height:1px; top:-16.5px; left:0; right:calc(-1 * var(--visit-line-overhang,0px)); background:var(--visit-divider); }
body #page #primary.contact-visit-page .visit-information p a { display:inline-block; color:#d2c8ae; }
/* An inline-block containing box keeps the original header-style animation
   strictly within each linked value, including when mobile text wraps. */
body #page #primary.contact-visit-page .visit-information p a:not(.cst-button)::after { content:""; position:absolute; left:0; bottom:2px; width:0; height:1px; background:#d2c8ae; transition:width .3s; }
body #page #primary.contact-visit-page .visit-information p a:not(.cst-button):hover::after { width:100%; }
body #page #visit-form .visit-choices > span { font-family:'Instrument Sans',sans-serif; color:var(--visit-field); }
body #page #visit-form #datetime-heading { font-family:'Instrument Sans',sans-serif; }
body #page #visit-form #date-range-label { font-size:16px; font-weight:500; }
body #page #visit-form .choice-buttons button { background:var(--visit-field); color:#302e2b; border-color:transparent; }
body #page #visit-form .choice-buttons button:hover { border-color:transparent; }
body #page #visit-form .choice-buttons button[aria-pressed=true] { background:var(--visit-accent); color:#272523; border-color:transparent; }
@media(min-width:1001px) {
 body #page .visit-map { padding-top:var(--visit-map-offset,46px); }
 body #page .visit-information h2 { margin-inline:-12px; }
}

/* September 24: retain the accepted flow while changing only Contact details. */
body #page .contact-visit-intro #visit-heading::after,
body #page .visit-information .visit-phones::before { content:none; }
body #page .visit-information .gallery-heading-slot { position:relative; height:var(--gallery-slot-height,35.61px); margin-bottom:32px; }
body #page .visit-information .gallery-heading-slot h2 { position:absolute; margin:0; }
body #page .visit-information .contact-details::before { top:var(--visit-line-top,0px); bottom:var(--visit-line-bottom,0px); }
/* Instrument Sans Regular 400 is the family's minimum genuine weight.
   Keep regular text intact; soften linked values using its real Semibold face. */
body #page #primary.contact-visit-page .visit-information p a { font-weight:600; }
body #page #visit-form .choice-buttons button,
body #page #visit-form .choice-buttons button:not(:disabled):hover { background:#423e3a; color:var(--visit-field); border-color:var(--visit-field); }
body #page #visit-form .choice-buttons button[aria-pressed=true],
body #page #visit-form .choice-buttons button[aria-pressed=true]:not(:disabled):hover { background:var(--visit-accent); color:#272523; border-color:transparent; }

/* Labels use their actual text width. A 5.83px layout gap plus the colon's
   1.37px side bearing matches two 3.6px spaces in 18px Instrument Sans. */
body #page #visit-form :is(#interest-label,#preference-label) { font-size:18px; line-height:27.5px; max-width:100%; }
body #page #visit-form .visit-choices { column-gap:5.83px; }
/* Retain the accepted line breaks and row heights when the form is narrow. */
body #page #visit-form { container:contact-options / inline-size; }
@media(min-width:651px) {
 @container contact-options (width < 395.46875px) {
  body #page #visit-form #interest-label { flex-basis:100%; }
 }
 @container contact-options (width < 471.671875px) {
  body #page #visit-form #preference-label { flex-basis:100%; }
 }
}
@media(max-width:650px) {
 @container contact-options (width < 391.46875px) {
  body #page #visit-form #interest-label { flex-basis:100%; }
 }
 @container contact-options (width < 467.671875px) {
  body #page #visit-form #preference-label { flex-basis:100%; }
 }
}
