/* Dress code · Sewn labels · Luxe (addon/dress_code/005) — INV-05 Sage Light v2.3 · Luxe (A2326; owner 2026-10-31: "Inv5 doesnt
   have a dress code section ... creatively matching the design theme"). Clothes are sewn, so here the page's gold thread has a job:
   two torn sage sheets (st009's paper) sewn on with a running stitch in the thread's own gold, each side's name on a woven clothes
   label, and every event with that side's painted outfit on a gold hanger (the event icons' hand and prompt,
   scripts/sage_outfits_art.py), painted in with ev010's painter. dc003's tables below are the owner's rule, unchanged but for the
   pictures' names. Phones stack the cards; from 700 px they sit side by side. Lite, reduced motion, no JS and any error: the
   finished still. No event with a dress code: the section hides. AG-T053: the masks and pictures are CSS images, so they attach
   only when the section comes near (.is-near, section.js), at once in reduced motion and without scripts. */
.dc005:not(:has(.dc005-row)) { display: none; }
.dc005 { --dc005-eh: 30px; --dc005-ic: 96px; position: relative; padding: 0 var(--k-gutter) calc(var(--k-section-pad) * .6); background: var(--k-light-ground); color: var(--k-ink); text-align: center; touch-action: pan-y; }
.dc005__title { margin-top: 6px; text-wrap: balance; }
.dc005__tags { position: relative; display: grid; gap: 34px; max-width: 470px; margin: 34px auto 0; padding: 0; list-style: none; }
.dc005-tag { position: relative; min-width: 0; }

/* the paper: st009's sage watercolour sheet, torn top and bottom, the shadow on the unmasked parent so it follows the tear */
.dc005-tag__paper { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 6px 10px rgb(74 63 53 / .16)) drop-shadow(0 -5px 12px rgb(74 63 53 / .10)); }
.dc005-tag__sheet { position: absolute; inset: 0; background: var(--k-grain), var(--k-card); }
.dc005.is-near .dc005-tag__sheet, .js.motion-reduce .dc005 .dc005-tag__sheet, html:not(.js) .dc005 .dc005-tag__sheet {
  background: var(--k-grain), url("assets/wash.webp") center / 100% 100% no-repeat, var(--k-card);
  background-blend-mode: normal, multiply, normal;
  -webkit-mask: url("assets/edge-top.webp") left top / auto var(--dc005-eh) repeat-x, linear-gradient(#000, #000) center / 100% calc(100% - 2 * var(--dc005-eh) + 2px) no-repeat, url("assets/edge-bot.webp") left bottom / auto var(--dc005-eh) repeat-x;
  -webkit-mask-composite: source-over;
  mask: url("assets/edge-top.webp") left top / auto var(--dc005-eh) repeat-x, linear-gradient(#000, #000) center / 100% calc(100% - 2 * var(--dc005-eh) + 2px) no-repeat, url("assets/edge-bot.webp") left bottom / auto var(--dc005-eh) repeat-x;
  mask-composite: add;
}

/* the running stitch: three strokes of one dash, a contact shadow to the lower right, the thread's foil, its highlight */
.dc005-tag__sew { position: absolute; z-index: 1; left: 16px; top: 22px; width: calc(100% - 32px); height: calc(100% - 44px); overflow: visible; pointer-events: none; }
.dc005-st { fill: none; stroke-linecap: round; stroke-dasharray: 10 8; }
.dc005-st--s { stroke: rgb(74 63 53 / .22); stroke-width: 1.8; transform: translate(.6px, .9px); }
.dc005-st--g { stroke: #B4975F; stroke-width: 1.7; }
.dc005-st--h { stroke: #FAF0D0; stroke-width: .5; opacity: .9; }
.dc005-tag__reveal { fill: none; stroke: #fff; stroke-width: 10; stroke-dasharray: 1 1; stroke-dashoffset: 1; }

/* the pressed sprig on the outer top corner; the thread passes under it */
.dc005-tag__sprig { position: absolute; z-index: 2; top: -20px; width: 124px; aspect-ratio: 600 / 327; pointer-events: none; }
.dc005-tag--ladies .dc005-tag__sprig { left: -12px; --dc005-sp: scaleX(-1) rotate(10deg); }
.dc005-tag--gents .dc005-tag__sprig { right: -12px; --dc005-sp: rotate(14deg); }
.dc005-tag__sprig-img, .dc005-tag__sprig-shadow { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; }
.dc005-tag__sprig-img { z-index: 1; transform: var(--dc005-sp); }
.dc005-tag__sprig-shadow { transform: translate(3px, 5px) var(--dc005-sp); opacity: .75; }

.dc005-tag__card { position: relative; z-index: 1; padding: 50px 30px 44px; }

/* the name on a woven clothes label: cream cotton, a faint weave, three gold stitches at each end */
.dc005-tag__who { position: relative; display: inline-block; min-width: 188px; margin: 0 0 22px; padding: 8px 40px 10px; font: 400 2.05rem/1.15 var(--k-font-script); color: var(--c-primary);
  background: repeating-linear-gradient(0deg, rgb(74 63 53 / .035) 0 1px, transparent 1px 2px), repeating-linear-gradient(90deg, rgb(74 63 53 / .03) 0 1px, transparent 1px 2px), linear-gradient(180deg, #FDFBF6, #F6F1E5);
  box-shadow: 0 1px 1px rgb(74 63 53 / .12), 2px 4px 8px rgb(74 63 53 / .16); }
.dc005-tag__who::before, .dc005-tag__who::after { content: ""; position: absolute; top: 7px; bottom: 7px; width: 2px; background: repeating-linear-gradient(180deg, #B4975F 0 7px, transparent 7px 12px); }
.dc005-tag__who::before { left: 9px; }
.dc005-tag__who::after { right: 9px; }

/* the rows: the painted outfit beside the event. A picture is a square with wide empty sides, so its box runs past the column */
.dc005-tag__rows { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; text-align: left; }
.dc005-row { display: grid; grid-template-columns: var(--dc005-ic) minmax(0, 1fr); column-gap: 14px; align-items: center; }
.dc005-row__art { position: relative; display: block; width: 124%; margin-left: -12%; aspect-ratio: 1; }
.dc005-row__pic { position: absolute; inset: 0; background: none center / contain no-repeat; }
.dc005.is-near .dc005-row__pic, .js.motion-reduce .dc005 .dc005-row__pic, html:not(.js) .dc005 .dc005-row__pic { background-image: var(--dc005-art); }
.dc005__wc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dc005-row__txt { min-width: 0; }
.dc005-row__ev { margin: 0; font: 400 1.22rem/1.2 var(--k-font-display); color: var(--k-ink); text-wrap: balance; overflow-wrap: anywhere; }
.dc005-row__dc { margin: 3px 0 0; font: 500 .72rem/1.4 var(--k-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary); overflow-wrap: anywhere; }
.dc005-row__tip { margin: 0; }
.dc005-row__tip::after { content: var(--dc005-tip, none); display: block; margin-top: 3px; font: 400 .8rem/1.45 var(--k-font-body); color: var(--k-ink-soft); text-wrap: pretty; }

/* one event: the outfit large over the words */
.dc005:not(:has(.dc005-row + .dc005-row)) { --dc005-ic: 150px; }
.dc005:not(:has(.dc005-row + .dc005-row)) .dc005-tag__rows { text-align: center; }
.dc005:not(:has(.dc005-row + .dc005-row)) .dc005-row { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 8px; }
.dc005:not(:has(.dc005-row + .dc005-row)) .dc005-row__art { width: var(--dc005-ic); margin-left: 0; }

@media (min-width: 700px) {
  .dc005 { --dc005-ic: 104px; }
  .dc005__tags { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; gap: 30px; }
  .dc005-tag__sprig { top: -26px; width: 150px; }
  .dc005-tag--ladies .dc005-tag__sprig { left: -14px; }
  .dc005-tag--gents .dc005-tag__sprig { right: -14px; }
}

/* the outfit for each side (generated from one list: the event's name first, then the dress code's words) */
.dc005 .dc005-tag--ladies .dc005-row { --dc005-art: url("assets/outfit-formal-ladies.webp"); }
.dc005 .dc005-tag--ladies .dc005-row:is([data-ev*="brunch" i], [data-ev*="garden" i], [data-ev*="bbq" i], [data-ev*="barbecue" i], [data-ev*="picnic" i]) { --dc005-art: url("assets/outfit-smart-ladies.webp"); }
.dc005 .dc005-tag--ladies .dc005-row:is([data-ev*="drink" i], [data-ev*="cocktail" i], [data-ev*="reception" i]) { --dc005-art: url("assets/outfit-cocktail-ladies.webp"); }
.dc005 .dc005-tag--ladies .dc005-row:is([data-ev*="danc" i], [data-ev*="party" i], [data-ev*="disco" i], [data-ev*="ceilidh" i]) { --dc005-art: url("assets/outfit-shoes-ladies.webp"); }
.dc005 .dc005-tag--ladies .dc005-row:is([data-ev*="mehndi" i], [data-ev*="mehendi" i], [data-ev*="sangeet" i], [data-ev*="haldi" i], [data-ev*="mayun" i], [data-ev*="mayoun" i], [data-ev*="dholki" i], [data-ev*="nikah" i]) { --dc005-art: url("assets/outfit-traditional-ladies.webp"); }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="casual" i], [data-dc*="smart" i], [data-dc*="garden" i], [data-dc*="summer" i], [data-dc*="relaxed" i], [data-dc*="informal" i]) { --dc005-art: url("assets/outfit-smart-ladies.webp"); }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="cocktail" i], [data-dc*="semi-formal" i], [data-dc*="lounge" i]) { --dc005-art: url("assets/outfit-cocktail-ladies.webp"); }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="danc" i], [data-dc*="shoe" i], [data-dc*="heel" i]) { --dc005-art: url("assets/outfit-shoes-ladies.webp"); }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="traditional" i], [data-dc*="shalwar" i], [data-dc*="kameez" i], [data-dc*="sherwani" i], [data-dc*="saree" i], [data-dc*="sari" i], [data-dc*="lehenga" i], [data-dc*="desi" i], [data-dc*="eastern" i], [data-dc*="cultural" i]) { --dc005-art: url("assets/outfit-traditional-ladies.webp"); }
.dc005 .dc005-tag--gents .dc005-row { --dc005-art: url("assets/outfit-formal-gents.webp"); }
.dc005 .dc005-tag--gents .dc005-row:is([data-ev*="brunch" i], [data-ev*="garden" i], [data-ev*="bbq" i], [data-ev*="barbecue" i], [data-ev*="picnic" i]) { --dc005-art: url("assets/outfit-smart-gents.webp"); }
.dc005 .dc005-tag--gents .dc005-row:is([data-ev*="drink" i], [data-ev*="cocktail" i], [data-ev*="reception" i]) { --dc005-art: url("assets/outfit-cocktail-gents.webp"); }
.dc005 .dc005-tag--gents .dc005-row:is([data-ev*="danc" i], [data-ev*="party" i], [data-ev*="disco" i], [data-ev*="ceilidh" i]) { --dc005-art: url("assets/outfit-shoes-gents.webp"); }
.dc005 .dc005-tag--gents .dc005-row:is([data-ev*="mehndi" i], [data-ev*="mehendi" i], [data-ev*="sangeet" i], [data-ev*="haldi" i], [data-ev*="mayun" i], [data-ev*="mayoun" i], [data-ev*="dholki" i], [data-ev*="nikah" i]) { --dc005-art: url("assets/outfit-traditional-gents.webp"); }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="casual" i], [data-dc*="smart" i], [data-dc*="garden" i], [data-dc*="summer" i], [data-dc*="relaxed" i], [data-dc*="informal" i]) { --dc005-art: url("assets/outfit-smart-gents.webp"); }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="cocktail" i], [data-dc*="semi-formal" i], [data-dc*="lounge" i]) { --dc005-art: url("assets/outfit-cocktail-gents.webp"); }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="danc" i], [data-dc*="shoe" i], [data-dc*="heel" i]) { --dc005-art: url("assets/outfit-shoes-gents.webp"); }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="traditional" i], [data-dc*="shalwar" i], [data-dc*="kameez" i], [data-dc*="sherwani" i], [data-dc*="saree" i], [data-dc*="sari" i], [data-dc*="lehenga" i], [data-dc*="desi" i], [data-dc*="eastern" i], [data-dc*="cultural" i]) { --dc005-art: url("assets/outfit-traditional-gents.webp"); }

/* a dress code worded for the other side (owner 2026-10-28: "in the ladies card, there says black tie is optional ... it doesn't
   make sense with the ladies dress"): on that card the couple's words give way to the side's own name for the same standard;
   the other card keeps the couple's words */
.dc005 .dc005-row__dc::before { content: var(--dc005-say, none); }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="suit" i], [data-dc*="tuxedo" i]) { --dc005-say: "Smart, dressy wear"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="suit" i], [data-dc*="tuxedo" i]) .dc005-row__words { display: none; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="sherwani" i], [data-dc*="kurta" i]) { --dc005-say: "Traditional wear"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="sherwani" i], [data-dc*="kurta" i]) .dc005-row__words { display: none; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="black tie" i]) { --dc005-say: "Formal evening wear"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="black tie" i]) .dc005-row__words { display: none; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="white tie" i]) { --dc005-say: "Full evening wear"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="white tie" i]) .dc005-row__words { display: none; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="gown" i]) { --dc005-say: "Formal evening wear"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="gown" i]) .dc005-row__words { display: none; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="cocktail dress" i]) { --dc005-say: "Cocktail attire"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="cocktail dress" i]) .dc005-row__words { display: none; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="lehenga" i], [data-dc*="saree" i], [data-dc*="sari" i]) { --dc005-say: "Traditional wear"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="lehenga" i], [data-dc*="saree" i], [data-dc*="sari" i]) .dc005-row__words { display: none; }

/* the guidance line for each side (the last match wins: "Black tie optional" over "Black tie", "Semi-formal" and
   "Informal" over "Formal", "Smart casual" over "Casual"); no line for words that don't say a style */
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="casual" i], [data-dc*="relaxed" i]) { --dc005-tip: "Something light and comfortable"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="casual" i], [data-dc*="relaxed" i]) { --dc005-tip: "Chinos and a crisp shirt"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="smart" i]) { --dc005-tip: "A pretty dress or smart separates"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="smart" i]) { --dc005-tip: "A blazer, an open collar and chinos"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="garden" i], [data-dc*="summer" i]) { --dc005-tip: "A light dress, and heels that suit the lawn"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="garden" i], [data-dc*="summer" i]) { --dc005-tip: "A linen suit or a light jacket"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="cocktail" i], [data-dc*="lounge" i]) { --dc005-tip: "A cocktail dress or dressy separates"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="cocktail" i], [data-dc*="lounge" i]) { --dc005-tip: "A suit; the tie is up to you"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="formal" i]) { --dc005-tip: "An evening gown or a dressy cocktail dress"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="formal" i]) { --dc005-tip: "A dark suit and tie"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="semi-formal" i]) { --dc005-tip: "A cocktail dress or dressy separates"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="semi-formal" i]) { --dc005-tip: "A suit; the tie is up to you"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="informal" i]) { --dc005-tip: "Something light and comfortable"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="informal" i]) { --dc005-tip: "Chinos and a crisp shirt"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="black tie" i]) { --dc005-tip: "A floor-length evening gown"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="black tie" i]) { --dc005-tip: "A tuxedo and bow tie"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="black tie optional" i]) { --dc005-tip: "A floor-length gown or an elegant cocktail dress"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="black tie optional" i]) { --dc005-tip: "A tuxedo, or a dark suit and tie"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="white tie" i]) { --dc005-tip: "A full-length ball gown"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="white tie" i]) { --dc005-tip: "A tailcoat and white bow tie"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="traditional" i], [data-dc*="desi" i], [data-dc*="eastern" i], [data-dc*="cultural" i], [data-dc*="shalwar" i], [data-dc*="kameez" i], [data-dc*="sherwani" i], [data-dc*="saree" i], [data-dc*="sari" i], [data-dc*="lehenga" i]) { --dc005-tip: "A lehenga, saree or shalwar kameez"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="traditional" i], [data-dc*="desi" i], [data-dc*="eastern" i], [data-dc*="cultural" i], [data-dc*="shalwar" i], [data-dc*="kameez" i], [data-dc*="sherwani" i], [data-dc*="saree" i], [data-dc*="sari" i], [data-dc*="lehenga" i]) { --dc005-tip: "A sherwani, kurta or prince coat"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="danc" i], [data-dc*="shoe" i]) { --dc005-tip: "Shoes you can dance in all night"; }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="danc" i], [data-dc*="shoe" i]) { --dc005-tip: "Polished shoes ready for the dance floor"; }
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="modest" i]) { --dc005-tip: "Covered shoulders and a longer hem"; }

/* ---------- motion (armed by the script only, under html.kjy-fx; once) ---------- */
/* each card is laid down, the running stitch sews round it, the label settles and its end stitches go in */
html.kjy-fx .dc005.is-armed .dc005-tag:not(.is-in) { opacity: 0; translate: 0 14px; }
html.kjy-fx .dc005.is-armed .dc005-tag.is-in { transition: opacity 700ms var(--k-ease) calc(var(--dc005-i, 0) * 180ms), translate 900ms var(--k-ease) calc(var(--dc005-i, 0) * 180ms); }
html.kjy-fx .dc005.is-armed .dc005-tag.is-in .dc005-tag__reveal { stroke-dashoffset: 0; transition: stroke-dashoffset 1600ms cubic-bezier(.45, .05, .4, 1) calc(350ms + var(--dc005-i, 0) * 180ms); }
html.kjy-fx .dc005.is-armed .dc005-tag:not(.is-in) .dc005-tag__who { opacity: 0; translate: 0 -6px; }
html.kjy-fx .dc005.is-armed .dc005-tag.is-in .dc005-tag__who { transition: opacity 600ms var(--k-ease) calc(500ms + var(--dc005-i, 0) * 180ms), translate 600ms var(--k-ease) calc(500ms + var(--dc005-i, 0) * 180ms); }
html.kjy-fx .dc005.is-armed .dc005-tag:not(.is-in) .dc005-tag__who::before, html.kjy-fx .dc005.is-armed .dc005-tag:not(.is-in) .dc005-tag__who::after { scale: 1 0; }
html.kjy-fx .dc005.is-armed .dc005-tag.is-in .dc005-tag__who::before, html.kjy-fx .dc005.is-armed .dc005-tag.is-in .dc005-tag__who::after { transition: scale 420ms var(--k-ease) calc(1000ms + var(--dc005-i, 0) * 180ms); }

/* the painter (section.js, .is-wc): a picture stays hidden until its paint has dried (.is-painted), then the DOM picture shows in
   the frame the canvas goes. Scoped to .is-wc, which section.js adds only once the painter is armed, so a failed painter can never
   hide a picture. A picture the painter gave up on fades in (.is-plain) */
html .dc005.is-wc .dc005-row:not(.is-painted) .dc005-row__pic { opacity: 0; }
html .dc005.is-wc .dc005-row.is-painted .dc005-row__pic { opacity: 1; }
html .dc005.is-wc .dc005-row.is-plain .dc005-row__pic { opacity: 1; transition: opacity 1.1s ease; }

/* a painting says more than dc003's sketch did: a black or white tie event gets the formal outfit whatever the event is called (a
   reception's cocktail dress and open-collar suit read wrong beside "A tuxedo"), and so does a Formal drinks or reception on the
   Gentlemen card, whose guidance line says a dark suit and tie. Outside the tables: their words are the owner's rule, unchanged */
.dc005 .dc005-tag--ladies .dc005-row:is([data-dc*="black tie" i], [data-dc*="white tie" i]) { --dc005-art: url("assets/outfit-formal-ladies.webp"); }
.dc005 .dc005-tag--gents .dc005-row:is([data-dc*="black tie" i], [data-dc*="white tie" i]) { --dc005-art: url("assets/outfit-formal-gents.webp"); }
.dc005 .dc005-tag--gents .dc005-row:is([data-ev*="drink" i], [data-ev*="cocktail" i], [data-ev*="reception" i]):is([data-dc*="formal" i]):not([data-dc*="semi-formal" i], [data-dc*="informal" i]) { --dc005-art: url("assets/outfit-formal-gents.webp"); }
