/* The accepted homepage is the reference; its own rules stay untouched. */
body {
  --amarcord-editorial-gray: #9a9898;
  --amarcord-body-gray: #707070;
  --amarcord-reference-cover-height: max(clamp(400px, 60svh, 760px), min(86svh, calc(min(100vw, 1920px) * .484)));
}
body:is(.tax-product_cat,.page) .amarcord-collection-hero {
  --amarcord-cover-height: var(--amarcord-reference-cover-height);
}
body.page .amarcord-source-cover,
body.post-type-archive-product .amarcord-source-cover { height: var(--amarcord-reference-cover-height) !important; overflow: hidden; }
body.page .amarcord-source-cover > .amarcord-collection-hero__image,
body.post-type-archive-product .amarcord-source-cover > .amarcord-collection-hero__image { width: 100%; height: 100%; max-height: 100%; object-fit: cover; }
body.page-id-1867 .amarcord-source-cover > .amarcord-collection-hero__image { object-position: 35% 50%; }

/* Story: separate the photo height from the gold page title. */
body.page-id-681 #brx-content #brxe-wruifi {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--amarcord-reference-cover-height) auto;
  min-height: 0 !important; max-height: none !important; height: auto !important;
  padding: 0 !important; background-image: none !important;
}
body.page-id-681 #brxe-wruifi::before {
  content: ''; display: block; grid-row: 1; grid-column: 1;
  width: 100%; height: var(--amarcord-reference-cover-height);
  background-image: var(--amarcord-story-cover);
  background-size: cover; background-position: center;
}
body.page-id-681 #brx-content #brxe-wruifi > #brxe-mhqqwr {
  grid-row: 2; grid-column: 1; width: 100%; min-width: 0; max-width: none;
  min-height: 0; margin: 0; padding: 16px 20px 0 !important;
  align-items: center; justify-content: center;
}
body.page-id-681 #brxe-kqfbza { margin: 0 !important; color: #c39e58; text-align: center; font-size: clamp(32px, 3.3vw, 45px); line-height: 1.3; }
.amarcord-story-picture-pair { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Root categories have the Product Type heading's role; children remain options. */
:is(#brxe-bdxago,#brxe-cooyad,#brxe-tmjbxc,#brxe-axczsg) > ul > li > a {
  color: #c39e58; font-family: 'Playfair Display', serif; font-size: 20px;
  font-weight: 500; line-height: 1.4; margin-block: 8px 4px;
}
:is(#brxe-bdxago,#brxe-cooyad,#brxe-tmjbxc,#brxe-axczsg) ul ul a { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 400; line-height: 1.4; }
#brx-content .amarcord-category-navigation a[aria-current] { font-weight: 600; }
.amarcord-category-separator { display: flex; align-items: center; gap: 12px; width: 100%; color: #c39e58; }
.amarcord-category-separator > .line { flex: 1 1 0; width: auto !important; height: 0 !important; border: 0; border-top: 1px solid currentColor; }
.amarcord-category-separator > img { display: block; flex: 0 0 24px; width: 24px; height: 26px; object-fit: contain; }

/* Native Bricks linked parents and separate buttons handle submenu interaction. */
#brx-header .amarcord-header-nav .brx-nav-nested-items > li > :is(a,.brx-submenu-toggle) { line-height: 37px; min-height: 37px; }
#brx-header .amarcord-header-nav .brx-dropdown-content li > :is(a,.brx-submenu-toggle) { line-height: 30px; min-height: 34px; }

/* Standalone newsletter page reuses Fluent Form 2 and the existing gold panel. */
body.amarcord-newsletter-view #brx-header { position: relative; background: #fff; }
body.amarcord-newsletter-view .amarcord-header-shell { position: relative !important; min-height: 150px; background: #fff; }
.amarcord-newsletter-page { width: min(calc(100% - 40px), 860px); margin: 32px auto 64px; }
.amarcord-newsletter-page > h1 { margin: 0 0 28px; color: #c39e58; font: 400 clamp(32px, 4vw, 46px)/1.35 'Playfair Display', serif; text-align: center; }
.amarcord-newsletter-panel { background: #c39e58; color: #fff; padding: clamp(24px, 4vw, 48px); }
.amarcord-newsletter-panel > p { color: #fff; text-align: center; }
.amarcord-newsletter-panel .fluentform_wrapper_2,
.amarcord-newsletter-panel .frm-fluent-form .ff-t-container { width: 100% !important; }
.amarcord-newsletter-panel .ff-el-input--label label { color: #fff; }
.amarcord-newsletter-panel .ff_submit_btn_wrapper .ff-btn-submit { border: 2px solid #fff; background: transparent; color: #fff; padding: 10px 24px; }

@media (max-width: 767px) {
  body { --amarcord-reference-cover-height: clamp(390px, 48svh, 440px); }
  body.page-id-1867 .amarcord-source-cover { margin-top: 90px; }
  body.page-id-681 #brxe-wruifi::before { background-position: right center; }
  .amarcord-story-picture-pair { grid-template-rows: none; grid-auto-rows: auto; gap: 12px; }
  #brx-header .amarcord-header-nav .brx-nav-nested-items > li { margin-bottom: 12px; }
  #brx-header .amarcord-header-nav .brx-nav-nested-items > li > :is(a,.brx-submenu-toggle) { line-height: 29px; min-height: 32px; }
  body.amarcord-newsletter-view .amarcord-header-shell { min-height: 130px; }
}

/* Override the old per-page fixed cover heights as well as the shared defaults. */
body #brx-content :is(#brxe-dkesku,#brxe-mlndxz,#brxe-vwnfbd) {
  height: var(--amarcord-reference-cover-height) !important;
  min-height: 0 !important; max-height: none !important;
}
body #brx-content :is(#brxe-dkesku,#brxe-mlndxz,#brxe-vwnfbd) > #brxe-m61cov {
  width: 100% !important; height: 100% !important; max-height: 100% !important; object-fit: cover;
}
body.page-id-1867 #brxe-mlndxz > #brxe-m61cov { object-position: 35% 50% !important; }

.amarcord-newsletter-panel #fluentform_2 .ff-el-input--label.ff-el-is-required.asterisk-right label::after { color: #fff; }

/* Compact CMP spacing; the complete provider notice and controls remain available. */
body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-cs-rationale {
 width: min(1200px, calc(100% - 32px)) !important;
 margin: 12px auto !important;
}
body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-banner-content {
 padding: 0 0 12px !important;
}
body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-cs-opt-group {
 margin: 0 0 8px !important;
}
body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-cs-opt-group button {
 min-height: 44px !important;
}
body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-cs-brand-badge-text {
 margin: 0 !important;
}
@media (max-width: 767px) {
 body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-cs-opt-group {
  display: grid !important;
  gap: 8px !important;
 }
 body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-cs-opt-group > div {
  margin: 0 !important;
 }
 body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-cs-opt-group-consent {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px !important;
 }
 body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-cs-opt-group button {
  width: 100% !important;
  margin: 0 !important;
 }
}

/* Shared service-page presentation, also available in authenticated draft previews. */
body.amarcord-service-form-view #brx-header {
 position: relative;
 height: 150px;
 background: #fff;
}
.amarcord-service-form-view #brx-content > h1 {
 color: #c39e58;
 text-align: center;
 font-size: clamp(32px, 3.2vw, 45px);
 margin: 24px 20px;
}
.amarcord-service-form-view .amarcord-m4-page {
 width: min(860px, calc(100% - 40px));
 margin: 24px auto 60px;
 color: var(--amarcord-body-gray, #707070);
}
.amarcord-service-form-view .amarcord-m4-status {
 padding: 16px;
 margin-block: 20px;
 background: #f7f4ee;
 border-left: 3px solid #c39e58;
}
.amarcord-service-form-view .fluentform :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
 max-width: 100%;
}
.amarcord-service-form-view .fluentform :is(.ff-btn-submit, .ff_upload_btn) {
 background: #c39e58;
 color: #404040;
 border-radius: 0;
 min-height: 44px;
}
.amarcord-request-form-link {
 color: #8a6a2f;
 text-decoration: underline;
}
.amarcord-request-form-link:focus-visible {
 outline: 2px solid #c39e58;
 outline-offset: 3px;
}
@media (max-width: 767px) {
 body.amarcord-service-form-view #brx-header { height: 130px; }
}
.amarcord-service-form-view #brx-content > h1 {
 font-family: "Playfair Display", Georgia, serif;
 font-weight: 500;
}
.amarcord-service-form-view .amarcord-m4-form .fluentform,
.amarcord-service-form-view .amarcord-m4-form .fluentform :is(label, .ff-el-input--label, .ff-el-form-check-label, .ff-el-help-message, .ff-el-input--content, .ff-el-tooltip) {
 color: var(--amarcord-body-gray, #707070);
}
.amarcord-service-form-view .amarcord-m4-form .fluentform :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea) {
 color: var(--amarcord-body-gray, #707070);
 background: #fff;
 border: 1px solid #c39e58 !important;
 border-radius: 0;
 min-height: 44px;
 font-size: 16px;
}
.amarcord-service-form-view .amarcord-m4-form .fluentform .ff_t_c {
 color: var(--amarcord-body-gray, #707070) !important;
}

/* November 25: shared native Story rows, preserving all supplied paragraphs. */
body.page-id-681 #brx-content .amarcord-story-row {
 display: grid !important;
 grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
 column-gap: clamp(24px, 4vw, 80px) !important;
 width: min(85%, 1580px);
 max-width: 1580px;
 align-items: stretch;
}
body.page-id-681 #brx-content .amarcord-story-copy {
 width: 100%; min-width: 0; align-self: stretch; justify-content: flex-start;
}
body.page-id-681 #brx-content .amarcord-story-copy #brxe-jyxrpj { padding-top: 0; }
body.page-id-681 #brx-content .amarcord-story-pictures {
 display: flex !important; flex-direction: column; align-items: center;
 gap: 12px; contain: size;
 width: 100%; min-width: 0; min-height: 0;
}
body.page-id-681 #brx-content .amarcord-story-pictures > img {
 width: 100%; height: 100%; min-height: 0; max-height: 100%;
 margin: 0 !important; object-fit: contain !important;
}
body.page-id-681 #brx-content .amarcord-story-pictures > img:first-child { object-position: center bottom; }
body.page-id-681 #brx-content .amarcord-story-pictures > img:last-child { object-position: center top; }
#brx-content .amarcord-category-root > a { text-transform: uppercase; }
#brx-content .amarcord-category-child > a { text-transform: none; }
@media (max-width: 767px) {
 body.page-id-681 #brx-content .amarcord-story-row {
  grid-template-columns: minmax(0, 1fr); width: calc(100% - 40px); gap: 24px;
 }
 body.page-id-681 #brx-content .amarcord-story-pictures {
  contain: none; grid-template-rows: auto auto; padding-top: 0;
 }
 body.page-id-681 #brx-content .amarcord-story-pictures > img { height: auto; max-height: none; }
 /* Reuse the existing photo all the way to the top; no added blank cover margin. */
 body.page-id-1867 .amarcord-source-cover { margin-top: 0; }
 body:is(.page-id-270,.page-id-1867) .amarcord-header-shell::before { background: transparent; }
 body.page-id-270 #brxe-nnevvh { background-position: 42% top !important; }
}

/* Latest client revision: both Story rows share the same tracks and mirror on desktop. */
body.page-id-681 #brx-content .amarcord-story-second-row > .amarcord-story-copy { grid-column: 2; grid-row: 1; }
body.page-id-681 #brx-content .amarcord-story-second-row > .amarcord-story-pictures { grid-column: 1; grid-row: 1; }
body.page-id-681 #brx-content .amarcord-story-copy { color: var(--amarcord-editorial-gray); }
body.page-id-1341 #brx-content .amarcord-city-title { font-size: 30px; line-height: 35px; }
body.page-id-1341 #brx-content .amarcord-city-title > span { display: block; }
body.page-id-1341 #brx-content .amarcord-city-title-brand { font-weight: 700; }
body.page-id-1341 #brx-content .amarcord-city-title-name { font-weight: 400; }

/* XD City cards use equal square photo frames, up to 740px. */
body.page-id-1341 #brx-content .amarcord-city-cards {
 display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 20px; align-items: stretch;
}
body.page-id-1341 #brx-content .amarcord-city-card {
 display: flex; flex-direction: column; align-items: center; min-width: 0;
}
body.page-id-1341 #brx-content .amarcord-city-card-image {
 display: block; width: 100% !important; max-width: 740px !important;
 height: auto !important; aspect-ratio: 1; object-fit: cover;
}
body.page-id-1341 #brx-content .amarcord-city-card-image img {
 display: block; width: 100% !important; height: 100% !important; aspect-ratio: 1; object-fit: cover;
}
body.page-id-1341 #brx-content .amarcord-city-card > .brxe-button { max-width: 100%; }
@media (max-width: 767px) {
 body.page-id-681 #brx-content .amarcord-story-second-row > :is(.amarcord-story-copy,.amarcord-story-pictures) {
  grid-column: 1; grid-row: auto;
 }
 body.page-id-1341 #brx-content .amarcord-city-cards { grid-template-columns: minmax(0, 1fr); row-gap: 60px; }
 body.page-id-1341 #brx-content .amarcord-city-card { padding-top: 0; }
}

/* November 26 revisions: the approved City two-line title across collection views. */
body:is(.tax-product_cat,.page-id-1361) #brx-content .amarcord-collection-hero__title {
 font: 400 30px/35px Poppins, sans-serif;
}
body:is(.tax-product_cat,.page-id-1361) #brx-content .amarcord-title-line {
 display: block; white-space: normal;
}
body:is(.tax-product_cat,.page-id-1361) #brx-content .amarcord-title-brand,
body:is(.tax-product_cat,.page-id-1361) #brx-content .amarcord-title-collection { display: block; }
body:is(.tax-product_cat,.page-id-1361) #brx-content .amarcord-title-brand { font-weight: 700; }
body:is(.tax-product_cat,.page-id-1361) #brx-content .amarcord-title-collection { font-weight: 400; }
body #brx-content .amarcord-collection-intro { padding-top: 24px !important; }
body #brx-content :is(#brxe-cqiqij,#brxe-idvqul,#brxe-iboiii) {
 padding-top: 0 !important; color: var(--amarcord-body-gray); line-height: 37px;
}
body.page-id-2806 #brx-content #brxe-fwgzrm { font: 400 46px/62px 'Playfair Display', serif; }
body.page-id-2806 #brx-content #brxe-wgagmo {
 padding-top: 24px; color: var(--amarcord-body-gray); line-height: 37px;
}
body.page-id-906 #brx-content .brxe-text { color: var(--amarcord-body-gray); }
@media (max-width: 767px) {
 body:is(.tax-product_cat,.page-id-1361) #brx-content .amarcord-title-collection-long { font-size: clamp(20px, 6.4vw, 30px); }
 body #brx-content :is(#brxe-cqiqij,#brxe-idvqul,#brxe-iboiii,#brxe-wgagmo) { line-height: 30px; }
 body.page-id-2806 #brx-content #brxe-fwgzrm { font-size: 37px; line-height: 49px; }
 /* The cover already starts at y=0; its image was hidden behind a white header overlay. */
 body:has(#brx-content :is(.amarcord-collection-hero,.amarcord-source-cover,#brxe-nnevvh,#brxe-wruifi)) .amarcord-header-shell::before { background: transparent; }
 /* Keep the upper face visible when the full-width source is cropped for a phone. */
 body #brx-content .amarcord-collection-hero__image { object-position: center top; }
 body.page-id-1867 #brx-content .amarcord-source-cover > .amarcord-collection-hero__image { object-position: 35% top !important; }
 body.page-id-2806 #brx-content .amarcord-source-cover > .amarcord-collection-hero__image { object-position: 65% top !important; }
}

/* First-layer notice remains complete; reduce spacing without hiding consent controls. */
body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-cs-rationale { margin-block: 6px !important; }
body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-banner-content { padding-bottom: 6px !important; }
body #iubenda-cs-banner #iubenda-cs-paragraph p { margin: 0 !important; }

/* The second-layer panel is same-document DOM despite its legacy “iframe” IDs.
   Provider configuration styles the banner; these scoped rules style the panel's own text roles. */
body #iubenda-iframe #purposes-content-container :is(.purposes-content,.purposes-header-title,.purposes-header-text,.purposes-section-header,.purposes-section-header-title,.purposes-section-header-text,.purposes-item-title,.purposes-item-title-btn,.purposes-item-description,.purposes-item) {
 color: var(--amarcord-body-gray, #707070) !important;
}
body #iubenda-iframe :is(.iub-btn-back,.iub-btn-cp,.iub-btn-consent) { color: var(--amarcord-body-gray, #707070) !important; }
body #iubenda-iframe #iubenda-iframe-popup .iubenda-iframe-footer button { background-color: #c39e58 !important; color: #404040 !important; }
body #iubenda-iframe :is(.iub-btn-accept,.iub-btn-reject) { background-color: #f2efea !important; }

body #iubenda-iframe #purposes-content-container :is(.iub-btn-accept,.iub-btn-reject) { color: var(--amarcord-body-gray, #707070) !important; }
/* Remove the legacy title-container bottom inset and archive-only mobile override. */
body #brx-content .amarcord-collection-hero__content { padding-bottom: 0 !important; }
body.tax-product_cat #brx-content #amarcord-catalog > .amarcord-collection-intro { padding-top: 24px !important; }

body #iubenda-cs-banner.iubenda-cs-default .iubenda-cs-container .iubenda-cs-opt-group { margin-bottom: 4px !important; }
