/* Eastwind — components
   The docs' GenerateBlocks Global Styles, expressed as classes on native GenerateBlocks blocks.
   Values are read from the prototype. Tokens live in eastwind-tokens.css. */

/* ---- Layout ---- */
.ew-wrap { max-width: var(--ew-max); margin: 0 auto; padding-left: var(--ew-gutter); padding-right: var(--ew-gutter); }
.ew-section { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(32px, 5vw, 72px); }
.ew-section--lg { padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(40px, 6vw, 84px); }
.ew-section--md { padding-top: clamp(30px, 4.4vw, 60px); padding-bottom: clamp(30px, 4.4vw, 60px); }
.ew-section--header { padding-top: clamp(30px, 4.5vw, 66px); padding-bottom: clamp(30px, 4.5vw, 66px); }
.ew-section--band-lg { padding-top: clamp(34px, 5vw, 68px); padding-bottom: clamp(34px, 5vw, 68px); }
.ew-section--flush { padding: 0; }
.ew-pt-0 { padding-top: 0 !important; }
.ew-pb-0 { padding-bottom: 0 !important; }
.ew-paper { background: var(--ew-paper); }
.ew-band { background: var(--ew-band); }
.ew-forest { background: var(--ew-forest); color: var(--ew-cream-body); }

.ew-stack { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 18px); }
.ew-stack--tight { gap: 10px; }
.ew-stack--loose { gap: clamp(16px, 2.2vw, 24px); }
.ew-stack--xl { gap: clamp(18px, 2.4vw, 26px); }
.ew-stack--xxl { gap: clamp(22px, 3vw, 34px); }
.ew-stack--page { gap: clamp(24px, 3.4vw, 42px); }
.ew-stack--villas { gap: clamp(34px, 5vw, 64px); }
.ew-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ew-row--between { justify-content: space-between; align-items: baseline; gap: 20px; }
.ew-row--start { align-items: flex-start; }
.ew-row--pt { padding-top: 6px; }

/* Section head: heading left, eyebrow right, hairline beneath (prototype) */
.ew-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid rgba(196, 168, 130, 0.6); padding-bottom: 20px; }
.ew-section-head--top { border-bottom: 0; border-top: 1px solid rgba(196, 168, 130, 0.6); padding-bottom: 0; padding-top: 24px; }
.ew-section-head--tight { padding-bottom: 18px; }
.ew-on-dark .ew-section-head { border-color: var(--ew-rule-dark); }

/* ---- Grids (minmax(0,1fr) everywhere: docs/08) ---- */
.ew-grid { display: grid; gap: var(--ew-gap-card); grid-template-columns: minmax(0, 1fr); }
.ew-grid--cards-2 { gap: clamp(20px, 3vw, 30px); }
.ew-grid--cards-3 { gap: clamp(16px, 2.2vw, 24px); }
.ew-grid--cards-4 { gap: clamp(16px, 2.2vw, 22px); }
.ew-grid--prose-2 { gap: clamp(18px, 3vw, 36px); }
.ew-grid--prose-2-wide { gap: clamp(18px, 3vw, 40px); }
.ew-grid--split { gap: clamp(20px, 3.2vw, 44px); align-items: start; }
.ew-grid--label-body { gap: clamp(20px, 4vw, 56px); }
.ew-grid--label-body-rule { border-top: 1px solid var(--ew-rule); padding-top: clamp(24px, 3.4vw, 40px); }
.ew-grid--contact { gap: clamp(24px, 3.6vw, 52px); }
.ew-grid--plan { gap: clamp(24px, 4vw, 56px); }
.ew-grid--faq { gap: clamp(20px, 3vw, 44px); }
.ew-grid--included { gap: clamp(14px, 2vw, 26px); }
.ew-grid--tiles { gap: clamp(10px, 1.4vw, 16px); }
.ew-grid--rates { gap: clamp(16px, 2.4vw, 28px); }

@media (min-width: 760px) {
  .ew-grid--cards-2, .ew-grid--cards-3, .ew-grid--cards-4, .ew-grid--prose-2, .ew-grid--prose-2-wide,
  .ew-grid--faq, .ew-grid--included, .ew-grid--plan, .ew-grid--rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ew-grid--facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ew-grid--split, .ew-grid--contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ew-grid--label-body { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (min-width: 1000px) {
  .ew-grid--cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ew-grid--cards-4, .ew-grid--facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 520px) { .ew-grid--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 820px) { .ew-grid--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ew-grid--tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Typography ---- */
.ew-page :is(h1, h2, h3, p) { margin: 0; }
[class*="ew-h2"], [class*="ew-h3"], .ew-hero-h1, .ew-page-h1, .ew-faq-q, .ew-fact__v, .ew-inc__k { font-family: var(--ew-serif); font-weight: 400; font-optical-sizing: auto; }
.ew-kicker { font-family: var(--ew-caps); font-weight: 500; font-size: var(--ew-t-kicker); letter-spacing: var(--ew-track-kicker); text-transform: uppercase; color: var(--ew-muted); line-height: 1; }
.ew-kicker--lg { letter-spacing: var(--ew-track-kicker-lg); }
.ew-kicker--sm { font-size: 11px; letter-spacing: var(--ew-track-nav); }
.ew-kicker--tall { line-height: 1.7; }
.ew-kicker--hero { font-size: clamp(10.5px, 1.1vw, 12.5px); letter-spacing: 0.3em; color: var(--ew-sand); }
.ew-kicker--photo { font-size: clamp(10.5px, 1.1vw, 12.5px); letter-spacing: 0.26em; color: var(--ew-sand); }
.ew-on-dark .ew-kicker, .ew-kicker--dark { color: var(--ew-sage); }

.ew-hero-h1 { font-weight: 300; font-size: clamp(34px, 6.4vw, 64px); line-height: 1.04; color: var(--ew-card); max-width: 16ch; }
.ew-page-h1 { font-weight: 400; font-size: clamp(27px, 4.3vw, 45px); line-height: 1.12; color: var(--ew-cream); max-width: 26ch; }
.ew-page-h1--light { color: var(--ew-ink); max-width: 28ch; font-size: clamp(27px, 4.2vw, 44px); line-height: 1.14; }
.ew-h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; color: var(--ew-ink); }
.ew-h2--photo { font-size: clamp(27px, 4.2vw, 44px); line-height: 1.1; color: var(--ew-cream); }
.ew-h2--split { font-size: clamp(24px, 3.5vw, 36px); line-height: 1.16; }
.ew-h2--avail { font-size: clamp(25px, 3.8vw, 42px); line-height: 1.12; color: var(--ew-cream); }
.ew-h2--cta { font-size: clamp(21px, 2.8vw, 30px); line-height: 1.2; color: var(--ew-cream); }
.ew-h2--villa { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; }
.ew-h2--rate { font-size: clamp(21px, 2.5vw, 28px); line-height: 1.2; }
.ew-h2--sm { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; }
.ew-h2--panel { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.22; color: var(--ew-cream); }
.ew-h2--max30 { max-width: 30ch; }
.ew-h2--max24 { max-width: 24ch; }
.ew-h3 { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.3; color: var(--ew-ink); }
.ew-h3--card { font-size: clamp(17px, 1.8vw, 20px); }
.ew-h3--villa { font-size: clamp(19px, 2vw, 24px); line-height: 1.28; }
.ew-h3--contact { font-size: clamp(17px, 2vw, 22px); line-height: 1.45; }
.ew-h3--sent { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.26; }

.ew-lede { font-size: clamp(18px, 2.4vw, 28px); line-height: 1.4; color: var(--ew-ink); max-width: 34ch; }
.ew-lede--home { font-size: clamp(19px, 2.6vw, 30px); }
.ew-lede--header { font-size: clamp(15px, 1.7vw, 19px); line-height: 1.62; color: var(--ew-cream-muted); max-width: 56ch; }
.ew-lede--header-light { color: var(--ew-body); max-width: 58ch; }
.ew-lede--hero { font-size: clamp(15px, 1.75vw, 20px); line-height: 1.56; color: var(--ew-cream-body); max-width: 48ch; }
[class*="ew-lede"] { font-family: var(--ew-sans); font-weight: 300; line-height: 1.55; }
.ew-body { font-size: clamp(15px, 1.55vw, 17px); line-height: 1.68; color: var(--ew-body); }
.ew-body--split { font-size: clamp(15px, 1.6vw, 17px); }
.ew-body--villa { font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.66; }
.ew-body--photo { font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.64; color: var(--ew-cream-body); }
.ew-body--avail { font-size: clamp(15px, 1.7vw, 19px); line-height: 1.62; color: var(--ew-cream-muted); }
.ew-body--cta { font-size: clamp(14.5px, 1.5vw, 16.5px); line-height: 1.62; color: var(--ew-cream-muted); }
.ew-body--panel { font-size: clamp(14.5px, 1.5vw, 16px); line-height: 1.62; color: var(--ew-cream-muted); }
.ew-body--find { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.62; color: var(--ew-ink); }
.ew-body--max44 { max-width: 44ch; }
.ew-body--max74 { max-width: 74ch; }
.ew-blurb { font-size: clamp(14px, 1.45vw, 15.5px); line-height: 1.62; color: var(--ew-body); }
.ew-blurb--villa { font-size: clamp(14.5px, 1.5vw, 16.5px); }
.ew-blurb--inc { font-size: clamp(14px, 1.45vw, 15.5px); line-height: 1.6; }
.ew-caption { font-size: clamp(13.5px, 1.4vw, 15px); line-height: 1.5; color: var(--ew-body); }
.ew-note { font-size: clamp(13px, 1.3vw, 14.5px); line-height: 1.6; color: var(--ew-muted); max-width: 70ch; }
.ew-note--rates { font-size: clamp(13.5px, 1.4vw, 15px); line-height: 1.62; color: var(--ew-body); max-width: 74ch; }
.ew-meta { font-size: clamp(14px, 1.5vw, 16px); color: var(--ew-muted); }
.ew-price { font-family: var(--ew-serif); font-weight: 300; font-size: clamp(22px, 2.6vw, 30px); color: var(--ew-terracotta); line-height: 1; }
.ew-price--villa { font-size: clamp(17px, 1.9vw, 21px); }
.ew-price--card { font-family: var(--ew-caps); font-size: 12.5px; letter-spacing: 0.1em; color: var(--ew-terracotta); white-space: nowrap; }
.ew-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ew-price-row__rate { display: flex; align-items: baseline; gap: 6px; }
.ew-price-row__stack { display: flex; flex-direction: column; align-items: flex-end; }
.ew-text-link { font-family: var(--ew-caps); font-size: 12px; letter-spacing: var(--ew-track-btn); text-transform: uppercase; color: var(--ew-terracotta); }
.ew-rule-mark { width: 56px; height: 2px; background: var(--ew-sand); }
.ew-sq { display: block; flex: 0 0 auto; width: 7px; height: 7px; background: var(--ew-sand); margin-top: 9px; }

/* ---- Buttons (44px hit area: docs/04) ---- */
.ew-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 15px 30px; font-family: var(--ew-sans); font-weight: 400; font-size: 12px; letter-spacing: var(--ew-track-btn); text-transform: uppercase; line-height: 1; text-decoration: none; border: 1px solid transparent; border-radius: 0; white-space: nowrap; cursor: pointer; transition: background var(--ew-dur) ease, color var(--ew-dur) ease, border-color var(--ew-dur) ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ew-btn--primary { background: var(--ew-charcoal); color: var(--ew-cream); border-color: var(--ew-charcoal); }
.ew-btn--primary:hover, .ew-btn--primary:focus-visible { background: #3D362F; border-color: #3D362F; color: var(--ew-cream); }
.ew-btn--primary-dark { background: var(--ew-sand); color: var(--ew-charcoal); border-color: var(--ew-sand); }
.ew-btn--primary-dark:hover, .ew-btn--primary-dark:focus-visible { background: var(--ew-sand-dk); border-color: var(--ew-sand-dk); color: var(--ew-charcoal); }
.ew-btn--outline { background: transparent; border-color: var(--ew-charcoal); color: var(--ew-ink); }
.ew-btn--outline:hover, .ew-btn--outline:focus-visible { background: var(--ew-charcoal); border-color: var(--ew-charcoal); color: var(--ew-cream); }
.ew-btn--outline-tc { background: transparent; border-color: var(--ew-charcoal); color: var(--ew-ink); }
.ew-btn--outline-tc:hover, .ew-btn--outline-tc:focus-visible { background: var(--ew-charcoal); border-color: var(--ew-charcoal); color: var(--ew-cream); }
.ew-btn--outline-dark { background: transparent; border-color: var(--ew-rule-dark-mid); color: var(--ew-cream); }
.ew-btn--outline-dark:hover, .ew-btn--outline-dark:focus-visible { border-color: var(--ew-sand); color: var(--ew-sand); }
.ew-btn--outline-dark.ew-btn--lg { padding: 15px 30px; }
.ew-btn--sm { min-height: 44px; padding: 11px 20px; font-size: 11.5px; }
.ew-btn--chip { min-height: 44px; border-radius: 999px; padding: 10px 18px; font-size: 11.5px; border: 1px solid var(--ew-mist); color: var(--ew-body); background: var(--ew-card); }
.ew-btn--chip:hover, .ew-btn--chip:focus-visible { border-color: var(--ew-charcoal); color: var(--ew-ink); }
.ew-btn--chip.is-active { background: var(--ew-charcoal); color: var(--ew-cream); border-color: var(--ew-charcoal); }
.ew-on-dark .ew-btn--outline { background: transparent; border-color: var(--ew-rule-dark-mid); color: var(--ew-cream); }
.ew-on-dark .ew-btn--outline:hover { background: transparent; border-color: var(--ew-sand); color: var(--ew-sand); }
.ew-self-start { align-self: flex-start; }
.ew-mt-4 { margin-top: 4px; }
@media (max-width: 519px) { .ew-row .ew-btn { flex: 1 1 100%; } }

/* ---- Media & cards ---- */
.ew-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ew-media-placeholder); }
.ew-media--wide { aspect-ratio: 16 / 10; }
.ew-media img, .ew-media > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.ew-tile-card { display: flex; flex-direction: column; gap: 12px; color: var(--ew-ink); }
.ew-tile-card--villa { gap: 14px; }
.ew-tile-card a { color: inherit; }
.ew-card { border: 1px solid var(--ew-mist); background: var(--ew-card); display: flex; flex-direction: column; }
.ew-card__body { padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 14px; }

/* ---- Fact grids: the 1px gap is the rule (docs/06) ---- */
.ew-facts { display: grid; gap: 1px; background: var(--ew-rule-grid); border: 1px solid var(--ew-rule-grid); grid-template-columns: minmax(0, 1fr); }
.ew-facts > * { background: var(--ew-paper); }
.ew-band .ew-facts > * { background: var(--ew-band); }
.ew-card .ew-facts > * { background: var(--ew-card); }
.ew-facts--band { background: var(--ew-rule-dark); border: 0; border-top: 1px solid var(--ew-rule-dark); }
.ew-on-dark .ew-facts, .ew-facts--band { background: var(--ew-rule-dark); border-color: var(--ew-rule-dark); }
.ew-on-dark .ew-facts > *, .ew-facts--band > * { background: var(--ew-forest); }
.ew-fact { padding: clamp(16px, 2vw, 22px); display: flex; flex-direction: column; gap: 7px; }
.ew-fact--band { padding: clamp(16px, 2.2vw, 24px) 0; gap: 6px; }
.ew-fact__k { font-family: var(--ew-caps); font-weight: 500; font-size: 11px; letter-spacing: var(--ew-track-nav); text-transform: uppercase; color: var(--ew-muted); line-height: 1; }
.ew-on-dark .ew-fact__k { color: var(--ew-sage); }
.ew-fact__v { font-size: clamp(16px, 1.75vw, 20px); line-height: 1.3; color: var(--ew-ink); }
.ew-fact__v--sm { font-size: clamp(15.5px, 1.7vw, 18px); line-height: 1.35; }
.ew-on-dark .ew-fact__v { color: var(--ew-cream); }
/* key / value rows */
.ew-kv { display: grid; gap: 1px; background: var(--ew-rule-grid); border-top: 1px solid var(--ew-rule-grid); border-bottom: 1px solid var(--ew-rule-grid); }
.ew-kv--open { border-bottom: 0; }
.ew-kv > * { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: clamp(14px, 1.45vw, 16px); background: var(--ew-paper); }
.ew-band .ew-kv > * { background: var(--ew-band); padding: 12px 0; }
.ew-card .ew-kv > * { background: var(--ew-card); font-size: clamp(14px, 1.45vw, 15.5px); }
.ew-kv__k { font-family: var(--ew-sans); font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--ew-muted); flex: 0 0 auto; }
.ew-kv__v { color: var(--ew-ink); text-align: right; }

/* ---- Home hero (montage frames + copy; keyframes in eastwind-motion.css) ---- */
.ew-hero { position: relative; height: clamp(430px, 62vw, 660px); overflow: hidden; background: var(--ew-forest); }
.ew-hero-montage { position: absolute; inset: 0; overflow: hidden; }
.ew-hero-frame img { object-position: 50% 55%; }
.ew-hero-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20,17,14,0.34) 0%, rgba(20,17,14,0.12) 30%, rgba(20,17,14,0.42) 58%, rgba(20,17,14,0.68) 100%); }
.ew-hero-copy { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(18,15,12,0) 0%, rgba(18,15,12,0.46) 38%, rgba(18,15,12,0.72) 78%, rgba(18,15,12,0.82) 100%); }
.ew-hero-copy__inner { max-width: var(--ew-max); margin: 0 auto; padding: clamp(34px, 5vw, 72px) var(--ew-gutter) clamp(26px, 4vw, 58px); display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 18px); align-items: flex-start; }
@media (max-height: 480px) and (orientation: landscape) { .ew-hero { height: 100svh; min-height: 380px; } }

/* ---- Hero image band (Feature pages) ---- */
.ew-hero-band { position: relative; height: clamp(300px, 46vw, 560px); overflow: hidden; background: var(--ew-media-placeholder); }
.ew-hero-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.ew-hero-band--top { --pos: 50% 50%; }
.ew-hero-band--60 img { object-position: 50% 60%; }
.ew-hero-band--50 img { object-position: 50% 50%; }

/* ---- Photo band with copy (Home: After dark) ---- */
.ew-photo-band { position: relative; height: clamp(380px, 50vw, 520px); overflow: hidden; background: var(--ew-forest); }
.ew-photo-band > img, .ew-photo-band > .ew-photo-band__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.ew-photo-band__img { position: absolute; inset: 0; }
.ew-photo-band__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,38,33,0.9) 0%, rgba(43,38,33,0.55) 56%, rgba(43,38,33,0.15) 100%); }
.ew-photo-band__copy { position: absolute; inset: 0; display: flex; align-items: center; }
.ew-photo-band__copy .ew-wrap { width: 100%; }
.ew-photo-band__stack { max-width: 34ch; display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 18px); }

/* ---- Split section (docs/06 #9) ---- */
.ew-split { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ew-paper); }
.ew-split__copy { order: 2; padding: clamp(34px, 5vw, 76px) var(--ew-gutter); display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 20px); justify-content: center; }
.ew-split__media { order: 1; position: relative; min-height: clamp(260px, 40vw, 460px); overflow: hidden; background: var(--ew-media-placeholder); }
.ew-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) {
  .ew-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ew-split__copy { order: 0; padding-left: clamp(18px, 4vw, 56px); padding-right: clamp(18px, 4vw, 56px); }
  .ew-split__media { order: 0; }
}

/* ---- Villa detail row ---- */
.ew-villa { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3.2vw, 44px); align-items: start; }
.ew-villa__copy { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 18px); }
@media (min-width: 900px) { .ew-villa { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ew-villa--flip .ew-media { order: 2; } }

/* ---- Included list, contact blocks, panels ---- */
.ew-inc { display: flex; gap: 12px; align-items: flex-start; }
.ew-inc__text { display: flex; flex-direction: column; gap: 4px; }
.ew-inc__k { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.3; color: var(--ew-ink); }
.ew-contact-block { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ew-rule-strong); padding-top: 16px; }
.ew-contact-block .ew-kicker { font-size: 12px; }
.ew-panel { padding: clamp(20px, 2.8vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.ew-panel--forest { gap: 12px; }
.ew-panel--quoted { padding: clamp(22px, 3vw, 36px); gap: clamp(14px, 2vw, 20px); }
.ew-callout { background: var(--ew-paper); border: 1px solid var(--ew-rule); padding: clamp(18px, 2.6vw, 30px); display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 16px); }

/* ---- Closing CTA row (Feature pages) ---- */
.ew-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(16px, 2.4vw, 28px); }
.ew-cta-row__text { display: flex; flex-direction: column; gap: 8px; max-width: 44ch; }

/* ---- Transfer table: a native core/table block, stacked below 760px (docs/06 #5) ---- */
.ew-table { margin: 0; overflow-x: auto; }
.ew-table table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ew-rule); font-size: clamp(14px, 1.45vw, 16px); border-spacing: 0; }
.ew-table figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.ew-table th, .ew-table td { text-align: left; vertical-align: baseline; padding: clamp(14px, 1.8vw, 20px) clamp(8px, 1vw, 14px) clamp(14px, 1.8vw, 20px) 0; border: 0; border-bottom: 1px solid var(--ew-rule-grid); }
.ew-table th { font-family: var(--ew-caps); font-size: 11px; letter-spacing: var(--ew-track-nav); text-transform: uppercase; color: var(--ew-muted); font-weight: 500; padding-top: 12px; padding-bottom: 12px; }
.ew-table td { color: var(--ew-body); font-size: clamp(13.5px, 1.4vw, 15.5px); }
.ew-table td:first-child { font-family: var(--ew-serif); font-size: clamp(16px, 1.7vw, 19px); color: var(--ew-ink); }
.ew-table td:last-child, .ew-table th:last-child { text-align: right; padding-right: 0; }
.ew-table td:last-child { color: var(--ew-terracotta); font-size: clamp(14px, 1.45vw, 16px); }
@media (max-width: 759px) {
  .ew-table thead { position: absolute; left: -9999px; }
  .ew-table tr { display: block; border-bottom: 1px solid var(--ew-rule); padding: 12px 0; }
  .ew-table td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 4px 0; text-align: left; }
  .ew-table td:last-child { text-align: left; }
  .ew-table td::before { font-family: var(--ew-caps); font-size: 11px; letter-spacing: var(--ew-track-nav); text-transform: uppercase; color: var(--ew-muted); min-width: 88px; }
  .ew-table td:nth-child(1)::before { content: "From"; }
  .ew-table td:nth-child(2)::before { content: "Distance"; }
  .ew-table td:nth-child(3)::before { content: "Time"; }
  .ew-table td:nth-child(4)::before { content: "Options"; }
  .ew-table td:nth-child(5)::before { content: "Cost"; }
}

/* ---- Gallery ---- */
.ew-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ew-chips__count { margin-left: auto; font-family: var(--ew-caps); font-size: 11.5px; letter-spacing: var(--ew-track-nav); text-transform: uppercase; color: var(--ew-muted); }
.ew-tile { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.ew-tile figcaption { font-size: clamp(13.5px, 1.4vw, 15px); line-height: 1.5; color: var(--ew-body); }
.ew-gallery-wrap { padding-top: clamp(24px, 3.4vw, 44px); padding-bottom: clamp(34px, 5vw, 72px); display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 30px); }

/* ---- FAQ (rendered by [eastwind_faq]) ---- */
.ew-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); }
@media (min-width: 760px) { .ew-faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ew-faq-item { display: flex; flex-direction: column; gap: 9px; }
.ew-faq-q { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.3; margin: 0; color: var(--ew-ink); }
.ew-faq-a { font-size: clamp(14.5px, 1.5vw, 16px); line-height: 1.66; color: var(--ew-body); margin: 0; }

/* ---- 404 ---- */
.ew-404 { min-height: 50vh; display: flex; align-items: center; }

/* ---- Utilities ---- */
.ew-max34 { max-width: 34ch; }
.ew-max56 { max-width: 56ch; }
.ew-max80 { max-width: 80ch; }
.ew-flex-1 { flex: 1 1 auto; }
.ew-hide { display: none !important; }
.ew-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Specificity guards (base.css link colours must not restyle buttons on dark grounds) ---- */
.ew-on-dark a.ew-btn--primary-dark, .site-footer a.ew-btn--primary-dark { color: var(--ew-charcoal); }
.ew-on-dark a.ew-btn--primary-dark:hover, .ew-on-dark a.ew-btn--primary-dark:focus-visible { color: var(--ew-charcoal); background: var(--ew-sand-dk); border-color: var(--ew-sand-dk); }
.ew-on-dark a.ew-btn--primary, .ew-band a.ew-btn--primary, .ew-paper a.ew-btn--primary { color: var(--ew-cream); }
.ew-on-dark a.ew-btn--outline-dark, .ew-on-dark a.ew-btn--outline { color: var(--ew-cream); }
.ew-on-dark a.ew-btn--outline-dark:hover, .ew-on-dark a.ew-btn--outline:hover { color: var(--ew-sand); border-color: var(--ew-sand); }
a.ew-btn--outline, .ew-paper a.ew-btn--outline, .ew-band a.ew-btn--outline { color: var(--ew-ink); }
a.ew-btn--outline:hover, a.ew-btn--outline:focus-visible, a.ew-btn--outline-tc:hover, a.ew-btn--outline-tc:focus-visible { color: var(--ew-cream); }
a.ew-btn--outline-tc { color: var(--ew-ink); }

a.ew-btn--chip { color: var(--ew-body); }
a.ew-btn--chip.is-active, a.ew-btn--chip.is-active:hover { color: var(--ew-cream); }
a.ew-btn--chip:hover, a.ew-btn--chip:focus-visible { color: var(--ew-ink); }
.ew-tile-card a.ew-h3, .ew-price-row a.ew-h3 { color: var(--ew-ink); }
.ew-tile-card a.ew-h3:hover, .ew-price-row a.ew-h3:hover { color: var(--ew-terracotta); }

/* fact grids: the column rules must beat the .ew-facts base declaration */
@media (min-width: 760px) { .ew-facts.ew-grid--facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ew-facts.ew-grid--facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Showcase card buttons ---- */
.ew-tile-card { height: 100%; }
.ew-tile-card > .ew-btn { margin-top: auto; }

/* ---- Tags / status ---- */
.ew-tag { display: inline-flex; padding: 8px 14px; background: var(--ew-band); color: var(--ew-ink); font: 500 11px/1 var(--ew-sans); letter-spacing: .16em; text-transform: uppercase; }
.ew-tag--available { background: var(--ew-moss); color: var(--ew-cream); }
.ew-tag--limited { background: var(--ew-sand); color: var(--ew-charcoal); }
.ew-tag--sold { background: var(--ew-sold); color: var(--ew-cream); }

/* ---- Primary CTA on charcoal grounds: the guide's "Sand on Charcoal" (a charcoal fill would vanish) ---- */
.ew-on-dark a.ew-btn--primary { background: var(--ew-sand); border-color: var(--ew-sand); color: var(--ew-charcoal); }
.ew-on-dark a.ew-btn--primary:hover, .ew-on-dark a.ew-btn--primary:focus-visible { background: var(--ew-sand-dk); border-color: var(--ew-sand-dk); color: var(--ew-charcoal); }

/* ---- Booking bar ---- */
.ew-bookbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: end; }
.ew-bookbar label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-family: var(--ew-sans); font-weight: 500; font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: var(--ew-track-kicker); color: var(--ew-muted); }
.ew-bookbar input[type="date"], .ew-bookbar select { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--ew-card); border: 1px solid var(--ew-mist); border-radius: 0; font-family: var(--ew-sans); font-size: 16px; font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--ew-ink); box-sizing: border-box; }
.ew-bookbar input[type="date"]:focus, .ew-bookbar select:focus { outline: 2px solid var(--ew-umber); outline-offset: 2px; }
.ew-bookbar .ew-btn { align-self: stretch; min-height: 48px; width: 100%; }
.ew-on-dark .ew-bookbar label { color: var(--ew-sage); }
.ew-on-dark .ew-bookbar input[type="date"], .ew-on-dark .ew-bookbar select { background: var(--ew-card); color: var(--ew-ink); }
.ew-bookbar-wrap { background: var(--ew-paper); padding: clamp(16px, 2vw, 24px); border: 1px solid var(--ew-mist); }
@media (min-width: 520px) {
  .ew-bookbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ew-bookbar { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .ew-bookbar .ew-btn { width: auto; }
}

/* ---- Tracked caps: the trailing letter-space makes labels sit left of centre; indent by the same amount ---- */
.ew-btn { text-indent: var(--ew-track-btn); }
/* Jost caps ride ~0.15em above the line-box centre; shift the padding (height unchanged) so labels centre optically */
.ew-btn { padding-top: calc(15px + .15em); padding-bottom: calc(15px - .15em); }
.ew-btn--sm { padding-top: calc(11px + .15em); padding-bottom: calc(11px - .15em); }
.ew-btn--chip { padding-top: calc(10px + .15em); padding-bottom: calc(10px - .15em); }

/* ---- UX audit 2026-10-03 ---- */
/* Booking bar: the button matches the 48px fields instead of stretching to the label + field height */
.ew-bookbar .ew-btn { align-self: end; height: 48px; }
.ew-bookbar__note { grid-column: 1 / -1; margin: 0; font-family: var(--ew-sans); font-size: 13px; line-height: 1.45; color: var(--ew-muted); }
.ew-on-dark .ew-bookbar__note { color: var(--ew-cream-muted); }
.ew-bookbar input[type="date"]:hover, .ew-bookbar select:hover { border-color: var(--ew-umber); }
.ew-bookbar input[type="date"], .ew-bookbar select { height: 48px; }

/* ---- Fact band (dark): text keeps clear of the column rules ---- */
.ew-fact--band { padding-inline: 0; }
@media (min-width: 760px) and (max-width: 999.98px) {
  .ew-fact--band { padding-right: clamp(16px, 2.4vw, 28px); }
  .ew-fact--band:nth-child(even) { padding-left: clamp(16px, 2.4vw, 28px); }
}
@media (min-width: 1000px) {
  .ew-fact--band { padding-right: clamp(20px, 2.2vw, 32px); }
  .ew-fact--band:not(:first-child) { padding-left: clamp(20px, 2.2vw, 32px); }
}

/* ---- Booking widget: raised card with a sand rule so it reads as the page's main action ---- */
.ew-bookbar-wrap { position: relative; background: var(--ew-card); border: 1px solid var(--ew-mist); border-top: 3px solid var(--ew-sand); padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 1px 2px rgba(43, 38, 33, 0.06), 0 18px 40px -14px rgba(43, 38, 33, 0.28); }
.ew-bookbar-wrap .ew-bookbar input[type="date"], .ew-bookbar-wrap .ew-bookbar select { background: var(--ew-paper); }
.ew-bookbar-wrap .ew-bookbar input[type="date"]:focus, .ew-bookbar-wrap .ew-bookbar select:focus { background: #fff; }
.ew-band .ew-bookbar-wrap { box-shadow: 0 1px 2px rgba(43, 38, 33, 0.08), 0 18px 40px -14px rgba(43, 38, 33, 0.34); }
/* Stronger tone shift: cream box, near-white fields, deeper warm shadow */
.ew-bookbar-wrap { background: var(--ew-band); border-color: #D9CDBB; border-top-color: var(--ew-sand); box-shadow: 0 2px 4px rgba(43, 38, 33, 0.06), 0 24px 48px -18px rgba(43, 38, 33, 0.38); }
.ew-bookbar-wrap .ew-bookbar input[type="date"], .ew-bookbar-wrap .ew-bookbar select { background: var(--ew-card); border-color: #CFC3B2; }
.ew-band .ew-bookbar-wrap { background: var(--ew-card); }
.ew-band .ew-bookbar-wrap .ew-bookbar input[type="date"], .ew-band .ew-bookbar-wrap .ew-bookbar select { background: var(--ew-paper); }

/* ---- Home: Weddings & events (editorial split with layered photos) ---- */
.ew-wed { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.ew-wed__media { position: relative; padding-bottom: clamp(48px, 8vw, 96px); padding-right: clamp(24px, 6vw, 80px); }
.ew-wed__main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ew-media-placeholder); }
.ew-wed__inset { position: absolute; right: 0; bottom: 0; width: clamp(150px, 42%, 300px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--ew-media-placeholder); border: clamp(6px, 0.8vw, 10px) solid var(--ew-band); box-shadow: 0 22px 44px -20px rgba(43, 38, 33, 0.45); }
.ew-wed__main img, .ew-wed__inset img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ew-wed__tag { position: absolute; left: 0; bottom: clamp(12px, 3vw, 40px); font-family: var(--ew-caps); font-size: 11px; letter-spacing: var(--ew-track-kicker); text-transform: uppercase; color: var(--ew-muted); display: flex; align-items: center; gap: 12px; }
.ew-wed__tag::before { content: ""; width: 36px; height: 1px; background: var(--ew-umber); }
.ew-wed__copy { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 20px); max-width: 560px; }
.ew-wed__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ew-rule); margin-top: 4px; }
.ew-wed__fact { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--ew-rule); }
.ew-wed__fact:nth-child(even) { padding-left: 16px; padding-right: 0; border-left: 1px solid var(--ew-rule); }
.ew-wed__v { font-family: var(--ew-serif); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.3; color: var(--ew-ink); }
@media (min-width: 900px) {
  .ew-wed { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
@media (max-width: 519px) {
  .ew-wed__tag { display: none; }
  .ew-wed__media { padding-right: 32px; padding-bottom: 56px; }
}

/* ---- Legal pages ---- */
.ew-legal { max-width: 72ch; margin-inline: auto; display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 40px); }
.ew-legal__updated { font-family: var(--ew-caps); font-size: 11.5px; letter-spacing: var(--ew-track-kicker); text-transform: uppercase; color: var(--ew-muted); padding-bottom: clamp(18px, 2vw, 24px); border-bottom: 1px solid var(--ew-rule); }
.ew-legal__block { display: flex; flex-direction: column; gap: 12px; }
.ew-legal__h2 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; color: var(--ew-ink); margin: 0 0 4px; }
.ew-legal__p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--ew-body); }
.ew-legal__p strong { font-weight: 500; color: var(--ew-ink); }
.ew-legal a { color: var(--ew-terracotta); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ew-legal a:hover { color: var(--ew-terracotta-dk); }
.ew-legal__related { margin: 0; padding-top: clamp(18px, 2vw, 24px); border-top: 1px solid var(--ew-rule); font-size: 15px; color: var(--ew-muted); }
