/* The complete guide is responsive text and approved outfit references. */
#image-dialog.attire-guide-dialog {
  width: min(940px, calc(100vw - 32px)); max-width: calc(100vw - 32px);
  max-height: calc(100svh - 40px); margin: auto; padding: 0;
  overflow: auto; overscroll-behavior: contain; scroll-padding-top: 124px;
  background: #edf4ff; border: 1px solid #b2c9e6; border-radius: 16px;
  color: #22457f; box-shadow: 0 24px 90px #071d4f70;
}
#image-dialog::backdrop { background: #0b2457bc; backdrop-filter: blur(8px); }
.guide-toolbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 17px;
  min-height: 64px; padding: 7px 18px 7px 25px;
  background: #f4f8fffa; border-bottom: 1px solid #bed2ec;
}
.guide-brand { font: 35px/1 var(--serif); letter-spacing: -.1em; }
.guide-brand > span { font: italic 21px var(--serif); color: #7d9bc2; margin: 0 3px; }
.guide-toolbar-label { font: 600 10px/1.3 var(--sans); letter-spacing: .15em; color: #4f6e9d; }
#image-dialog .dialog-close {
  position: static; float: none; margin: 0 0 0 auto; flex: 0 0 46px;
  width: 46px; min-width: 46px; height: 46px; min-height: 46px;
  border: 1px solid #abc5e6; border-radius: 50%; background: #264f9a; color: #fff;
  box-shadow: 0 3px 9px #2144771c;
}
.guide-hero { position: relative; isolation: isolate; overflow: hidden; padding: 31px 55px 35px; text-align: center; color: #f7faff; background: radial-gradient(ellipse at 50% 10%, #4067ae, #203f82 75%); }
.guide-hero::after { content: ''; position: absolute; inset: 12px; border: 1px solid #bed7fa38; pointer-events: none; z-index: -1; }
.guide-eyebrow { position: relative; margin: 0 0 12px; font: 500 9px/1.4 var(--sans); letter-spacing: .18em; }
.guide-hero h2 { margin: 0; font: 400 76px/1.1 var(--script); letter-spacing: -.015em; }
.guide-subtitle { margin: 9px 0 0; font: italic 25px/1.2 var(--serif); color: #d1e3fd; }
#image-dialog .guide-floral { position: absolute; z-index: -1; width: 260px; max-width: none; height: auto; bottom: -100px; opacity: .62; pointer-events: none; }
.guide-floral-left { left: -85px; }.guide-floral-right { right: -85px; transform: scaleX(-1); }
.guide-navigation { position: sticky; top: 64px; z-index: 4; display: flex; justify-content: center; gap: 8px; padding: 9px 20px; background: #f4f8fff5; border-bottom: 1px solid #b9cee9; }
.guide-navigation button { flex: 0 1 150px; min-height: 44px; border: 1px solid #c3d5ed; border-radius: 24px; padding: 8px 18px; font: 600 12px/1.3 var(--sans); color: #2b518f; background: #e6f0ff; transition: background .2s, color .2s; }
.guide-navigation button:hover, .guide-navigation button:focus-visible { background: #28529e; color: #fff; }
.guide-body { padding: 30px 36px 28px; }
.guide-introduction { max-width: 620px; margin: 0 auto 34px; text-align: center; }
.guide-introduction > p { font: italic 500 30px/1.2 var(--serif); margin: 0 0 9px; color: #284b86; }
.guide-introduction > span { display: block; font: 400 13px/1.8 var(--sans); color: #536c90; }
.guide-section { scroll-margin-top: 10px; }
.guide-section + .guide-section { margin-top: 36px; padding-top: 30px; border-top: 1px solid #bbcee7; }
.guide-section-heading { text-align: center; margin: 0 0 21px; }
.guide-section-heading h3 { font: italic 500 36px/1.15 var(--serif); margin: 0 0 8px; letter-spacing: -.02em; color: #244784; }
.guide-section-heading p { font: 400 12px/1.65 var(--sans); margin: 0 auto; max-width: 440px; color: #617a9e; }
.guide-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-role-card { display: grid; grid-template-columns: 46% minmax(0, 1fr); align-items: center; overflow: hidden; background: #f9fcff; border: 1px solid #bdd1ec; border-radius: 10px; scroll-margin-top: 15px; }
.guide-outfit { align-self: stretch; display: flex; align-items: center; justify-content: center; background: #f1ece7; border-right: 1px solid #d6e0ed; }
.guide-outfit > svg { width: 100%; height: auto; display: block; }
.guide-role-information { min-width: 0; padding: 20px 14px; }
.guide-role-information h4 { margin: 0 0 10px; font: italic 600 28px/1.05 var(--serif); color: #244784; letter-spacing: -.025em; }
.guide-color-name { margin: 0 0 15px; font: 500 12px/1.5 var(--sans); color: #506d99; }
.guide-role-colors { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.guide-role-colors li { display: flex; align-items: center; gap: 8px; font: 500 11px/1.35 var(--sans); color: #3c5a83; }
.guide-color-chip { width: 24px; height: 24px; flex: 0 0 24px; display: block; border-radius: 50%; background: var(--guide-swatch); border: 1px solid #15396a20; box-shadow: 0 0 0 3px #edf3fb; }
.guide-personal-note { margin: 18px 0 0; padding: 17px 20px; border-left: 2px solid #97b4dc; background: #e5eefe; color: #526e96; }
.guide-personal-note strong { display: block; font: 600 19px/1.3 var(--serif); color: #2b508b; }
.guide-personal-note > span { display: block; font: 400 12px/1.6 var(--sans); margin-top: 5px; }
.guide-guest-palette { display: flex; justify-content: center; gap: 10px; margin: 24px auto 0; }
.guide-guest-swatch { display: flex; flex-direction: column; align-items: center; gap: 11px; width: 104px; min-height: 96px; padding: 7px 4px; border-radius: 8px; color: #3a5b8b; font: 500 11px/1.3 var(--sans); }
.guide-guest-chip { display: block; position: relative; width: 58px; height: 58px; border-radius: 50% 50% 7px 7px; background: var(--guide-swatch); box-shadow: inset 0 0 0 1px #153c741f, 0 3px 7px #24477b14; transition: transform .2s, box-shadow .2s; }
.guide-guest-swatch[aria-pressed="true"] { background: #dce9fd; }
.guide-guest-swatch[aria-pressed="true"] .guide-guest-chip { outline: 2px solid #4e77b3; outline-offset: 4px; transform: translateY(-2px); }
.guide-shade-label { min-height: 29px; margin: 20px 0 0; text-align: center; font: italic 23px/1.3 var(--serif); color: #345e9a; }
.guide-guest-note { margin: 8px 0 0; text-align: center; font: 500 12px/1.5 var(--sans); color: #597298; }
#image-dialog .guide-footer { display: block; margin: 32px 0 0; padding: 26px 15px 5px; border-top: 1px solid #b9cee9; background: transparent; text-align: center; color: #3a5b8d; }
.guide-footer > p { margin: 0 0 8px; font: italic 29px/1.2 var(--serif); }
.guide-footer > span { display: block; font: 30px/1.2 var(--script); color: #345d97; }
.guide-footer > small { display: block; max-width: 340px; margin: 18px auto; font: 400 10px/1.6 var(--sans); color: #647e9f; }
#guide-done { min-height: 54px; padding: 13px 24px; border: 1px solid #b9d4fa; border-radius: 9px; background: #28529d; color: #fff; font: 600 13px/1.5 var(--sans); box-shadow: 0 3px 0 #1a3976; }
#image-dialog button:focus-visible { outline: 2px solid #315fa9; outline-offset: 4px; }
#image-dialog h3:focus { outline: none; }
@media (max-width: 650px) {
  #image-dialog.attire-guide-dialog { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100svh - 24px); border-radius: 12px; scroll-padding-top: 118px; }
  .guide-toolbar { min-height: 60px; padding: 7px 10px 7px 16px; gap: 13px; }
  .guide-brand { font-size: 30px; }.guide-brand > span { font-size: 19px; }
  .guide-toolbar-label { font-size: 8px; letter-spacing: .11em; }
  #image-dialog .dialog-close { width: 44px; min-width: 44px; height: 44px; min-height: 44px; flex-basis: 44px; }
  .guide-hero { padding: 28px 19px 30px; }
  .guide-eyebrow { font-size: 8px; letter-spacing: .11em; margin-bottom: 13px; }
  .guide-hero h2 { font-size: clamp(48px, 14vw, 66px); }
  .guide-subtitle { font-size: 22px; margin-top: 8px; }
  #image-dialog .guide-floral { width: 175px; bottom: -66px; opacity: .5; }
  .guide-floral-left { left: -91px; }.guide-floral-right { right: -91px; }
  .guide-navigation { top: 60px; padding: 9px 12px; gap: 6px; }
  .guide-navigation button { min-height: 44px; padding: 7px 10px; font-size: 12px; }
  .guide-body { padding: 25px 16px 24px; }
  .guide-introduction { margin-bottom: 28px; }
  .guide-introduction > p { font-size: 27px; }.guide-introduction > span { font-size: 12px; line-height: 1.75; }
  .guide-section-heading h3 { font-size: 32px; }.guide-section-heading p { font-size: 12px; }
  .guide-role-grid { grid-template-columns: 1fr; gap: 13px; }
  .guide-role-card { grid-template-columns: 43% minmax(0, 1fr); }
  .guide-role-information { padding: 20px 13px; }
  .guide-role-information h4 { font-size: 29px; }
  .guide-color-name { font-size: 12px; margin-bottom: 13px; }
  .guide-role-colors li { font-size: 12px; gap: 8px; }
  .guide-personal-note { padding: 15px 13px; }
  .guide-section + .guide-section { margin-top: 28px; padding-top: 25px; }
  .guide-guest-palette { gap: 3px; }
  .guide-guest-swatch { width: 20%; min-width: 0; gap: 10px; font-size: 11px; padding: 7px 3px; }
  .guide-guest-chip { width: min(100%, 48px); height: auto; aspect-ratio: 1; }
  .guide-shade-label { font-size: 21px; }
  .guide-footer > p { font-size: 26px; }
}
@media (max-width: 360px) {
  .guide-body { padding-inline: 12px; }
  .guide-role-information { padding-inline: 10px; }
  .guide-role-information h4 { font-size: 26px; }
  .guide-color-name, .guide-role-colors li { font-size: 11px; }
  .guide-color-chip { width: 21px; height: 21px; flex-basis: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  #image-dialog { scroll-behavior: auto; }
  .guide-navigation button, .guide-guest-chip { transition: none; }
}

/* The fabric preview uses the selected swatch while retaining its satin highlights. */
.blue-ribbon::before { background: linear-gradient(130deg,var(--fabric-light,#d7e5f0),var(--fabric-color,#88acd0) 30%,var(--fabric-sheen,#c6d9e9) 52%,var(--fabric-shade,#7e9fbc) 78%,var(--fabric-sheen,#aecbdc)); }
.blue-ribbon::after { background: linear-gradient(120deg,var(--fabric-shade,#8cacc4),var(--fabric-light,#d2e2ec) 30%,var(--fabric-color,#9bbbd3) 55%,var(--fabric-deep,#607f9a)); }
.attire-panel .guest-swatches { display: grid; grid-template-columns: repeat(4,var(--guest-chip,52px)); gap: 12px 14px; justify-content: center; margin-top: 24px; }
.attire-panel .guest-swatches .swatch { width: var(--guest-chip,52px); height: var(--guest-chip,52px); min-height: var(--guest-chip,52px); flex: none; }
.attire-panel .swatch-preview-hint { font: 400 11px/1.6 var(--sans); color: #59739a; margin: 6px 0 0; }
.guide-guest-palette { display: grid; grid-template-columns: repeat(4,minmax(0,104px)); justify-content: center; }
.guide-guest-palette .guide-guest-swatch { width: 100%; min-width: 0; }
.guide-guest-palette .guide-guest-chip { width: min(58px,90%); height: auto; aspect-ratio: 1; }
@media(max-width:420px) { .attire-panel .guest-swatches { --guest-chip: 44px; gap: 10px; } }
