/* Borrowed rules from the awesome-design brand files (Bugatti, Ferrari, Lamborghini),
   Egie 2026-11-03: "Build 1, 2, 3". Layout and sizing only: each venue keeps its own
   colours, fonts and logo. Loads after every other stylesheet on purpose.
   Staging only: html[data-booking=live] is the official venue domain copy
   (www.strandclubdc.com runs this code with real bookings), so nothing here reaches it. */

/* 1. Form fields: no box, one hairline under the field (Bugatti "underline-only" inputs).
   The field shows the section behind it, so Saint Yves' ivory form stays light and
   Abigail's and Strand's stay dark. Text and the line take the label colour. */
html[data-venue]:not([data-booking=live]) :is(.inquiry-form,.card-form) label :is(input:not([type=checkbox],[type=radio]),select,textarea){
  background:transparent;
  color:inherit;
  border:0;
  border-bottom:1px solid color-mix(in srgb,currentColor 62%,transparent);
  border-radius:0;
  box-shadow:none;
  min-height:48px;
  padding-block:12px;
  padding-inline:0;
  transition:border-color .2s,box-shadow .2s;
}
html[data-venue]:not([data-booking=live]) :is(.inquiry-form,.card-form) label textarea{min-height:124px;padding-block:12px}
/* Focus: the line turns the venue accent and thickens to 2px (an inset shadow, so nothing moves),
   over a faint accent tint. This replaces page-craft.css's 2px box outline on these fields only:
   a box round an underline-only field drew a second line under the first.
   Not on a field marked wrong: review.css outlines [aria-invalid=true] and inquiry.js focuses that
   field, so removing the outline there made the field to fix look merely selected (Wanny, 2026-11-04). */
html[data-venue]:not([data-booking=live]) :is(.inquiry-form,.card-form) label :is(input:not([type=checkbox],[type=radio]),select,textarea):not([aria-invalid=true]):is(:focus,:focus-visible){
  border-bottom-color:var(--craft-accent);
  box-shadow:inset 0 -1px 0 var(--craft-accent);
  background:color-mix(in srgb,var(--craft-accent) 9%,transparent);
  outline:none;
}
/* A see-through select would open a white list on some systems; give the list the page colours. */
html[data-venue=ab]:not([data-booking=live]) :is(.inquiry-form,.card-form) select option{background:#2a141d;color:#f4e9dc}
html[data-venue=st]:not([data-booking=live]) :is(.inquiry-form,.card-form) select option{background:#151a22;color:#edf2fa}
html[data-venue=sy]:not([data-booking=live]) :is(.inquiry-form,.card-form) select option{background:#f9f5ed;color:#101b2f}
/* The date picker icon follows the section: light on dark pages, dark on Saint Yves' ivory. */
html[data-venue]:is([data-venue=ab],[data-venue=st]):not([data-booking=live]) :is(.inquiry-form,.card-form) label input{color-scheme:dark}
html[data-venue=sy]:not([data-booking=live]) .inquiry-form label input{color-scheme:light}

/* 4. More space between sections (Egie 2026-11-03: "Build ideas 4, 5 and 6 too"). One ladder:
   96px above and below each plain home section on desktop, 64px on phones (Ferrari's major band
   is 96px, Bugatti's 120px). Was 80/80 (tour), 60/60 (form), 100/70 (Saint Yves photo chapter).
   The pinned name film and the card deck keep their own geometry, so they are not listed.
   :is() carries the #ab-tour id so this beats section-effects.css's id rule. */
html[data-venue]:not([data-booking=live]) .venue-body :is(#ab-tour,.venue-tour,.guided-inquiry,.sy-photo-accordion){
  padding-top:clamp(64px,8vw,96px);
  padding-bottom:clamp(64px,8vw,96px);
}

/* 6. A soft dark fade where one section meets the next (Ferrari's section-transition darken),
   at the two hard edges every home has. Each fade sits in empty space, never under text.
   Not on Saint Yves: its sections are light ivory, and a dark fade into ivory reads as a grey smudge
   (tried 2026-11-03, screenshots in that session), so its sharp printed-paper edges stay.
   a) The film's dark bottom runs on into the top of the next section (the name film), over 120px. */
html[data-venue]:not([data-venue=sy],[data-booking=live]) section.hero + .fx-namefilm::before{
  content:"";
  position:absolute;
  /* Starts 40px up inside the film's own dark bottom (no text there), so the film's last pixels
     melt into the fade and no seam shows where the two sections meet. */
  inset:-40px 0 auto 0;
  height:calc(40px + clamp(72px,10vw,120px));
  z-index:2; /* above the name film's sticky stage, which starts at the top of the section */
  pointer-events:none;
  background:linear-gradient(to bottom,transparent,var(--db-film-end) 40px,transparent);
}
html[data-venue]:is([data-venue=ab],[data-venue=st]):not([data-booking=live]){--db-film-end:rgb(16 19 21)}
/* Abigail: the name film below is wine (#30151f), so a neutral fade read as a grey band between
   the black film and the wine (Smoking Section, Liphe, 2026-11-04). A dark wine, about half the
   name film's colour, warms it. Egie 2026-11-09: "only do 6". Strand keeps the neutral fade. */
/* Same weight as the rule above (one element, three attributes) and later, so it wins. */
html[data-venue]:is([data-venue=ab]):not([data-booking=live]){--db-film-end:rgb(24 11 16)}
/* b) The last section darkens into the footer colour across its bottom padding (below the last line of text).
   The section is a positioning box only while motion runs, so set it here: with reduced motion the
   fade would otherwise anchor to the page and land 4,000px off. */
html[data-venue]:not([data-venue=sy],[data-booking=live]) .venue-body .guided-inquiry:last-child{position:relative}
html[data-venue]:not([data-venue=sy],[data-booking=live]) .venue-body .guided-inquiry:last-child::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:clamp(40px,5vw,72px);
  pointer-events:none;
  /* The inquiry box stops at 1320px on wide screens. border-image's outset paints the gradient out
     to both page edges without widening the page (painted overflow never adds a scrollbar). */
  border-image:linear-gradient(to bottom,transparent,var(--db-footer)) fill 0 / 0 / 0 100vmax;
}
html[data-venue=ab]:not([data-booking=live]){--db-footer:rgb(18 7 9)}
html[data-venue=st]:not([data-booking=live]){--db-footer:rgb(6 8 11)}

/* 5. The film progress line (hero.css .film-progress) sat at the hero's bottom edge, 2-4px below the
   first screen, so nobody saw it. design-borrow.js lifts it to the bottom of the first screen;
   here it gets one more pixel and a lighter track so it reads as a line at a glance. */
html[data-venue]:not([data-booking=live]) .hero .film-progress{height:3px;background:#ffffff26}
html[data-venue]:not([data-booking=live])[data-motion=off] .hero .film-progress{display:none}
@media(prefers-reduced-motion:reduce){html[data-venue]:not([data-booking=live]) .hero .film-progress{display:none}}

/* 2. One button height: 48px everywhere (Ferrari and Lamborghini CTAs are 48px).
   Was 44 to 53px depending on the section. Wrapped two-line labels on phones still grow. */
html[data-venue]:not([data-booking=live]) body .button:not(.icon-button){
  min-height:48px;
  height:auto;
  padding-block:0;
  box-sizing:border-box;
}
