/* Loaded on the stationery catalogue, collection and inquiry routes.
   Layout only: no transitions or animations here (motion lives in motion.css).
   Every block sits on the shared --inner-width so edges line up with the hero copy. */
.amdh-page main:has(.paper-hero) {
  --paper: var(--inner-paper);
  --ink: var(--inner-ink);
  --rule: var(--inner-rule);
  --st-blush: #ead0ca;
  --st-card: #fffaf6;
  --st-frame-mat: #f0ddd4;
  --st-gold-line: #b8904f;
  --st-soft-rule: #ba905d66;
  --st-quiet: #5f434a;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: 0;
}

/* ---------- Hero (stationery's own banner, aligned to the shared gutter) ---------- */
.amdh-page main > .paper-hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 3vw, 40px) clamp(26px, 5vw, 76px);
  align-items: center;
  padding: clamp(36px, 5.6vw, 86px) var(--inner-gutter);
  border-bottom: 2px solid var(--inner-gold);
  text-align: left;
  position: static;
  background: var(--inner-velvet);
  color: var(--inner-cream);
}
.amdh-page .paper-hero-copy h1 {
  margin: 0;
  color: var(--inner-cream);
  font-size: clamp(40px, 5vw, 78px);
  line-height: 1.12;
  text-wrap: balance;
}
.amdh-page .paper-hero-copy h1 em { display: block; color: var(--inner-gold); }
.amdh-page .paper-hero-copy p { max-width: 41ch; margin: 22px 0 0; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.65; }
.amdh-page .paper-hero-art { min-width: 0; padding: clamp(6px,1.1vw,14px); border: 1px solid #e3bf818c; background: #462d36; box-shadow: 0 18px 28px -18px #221219d4; overflow: hidden; }
.amdh-page .paper-hero-art > img { display: block; width: 100%; height: auto; max-height: 580px; object-fit: contain; margin: auto; }
/* Breadcrumb trail inside the top of the collection hero. */
.amdh-page .paper-hero > .paper-hero-trail {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 28px;
  margin: calc(clamp(36px, 5.6vw, 86px) * -.55) 0 0;
  padding: 0 0 6px;
  border-bottom: 1px solid #e8c88e59;
}
.amdh-page .paper-hero > .paper-hero-trail .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: var(--inner-cream);
  text-decoration-color: #e8c88e99;
}
.amdh-page .paper-hero :focus-visible { outline-color: var(--inner-gold); }

/* ---------- Bands: full-bleed tonal sections with fine gold hairlines ---------- */
.amdh-page main:has(.paper-hero) .stationery-band { padding-block: clamp(44px, 6.5vw, 96px); }
.amdh-page main:has(.paper-hero) .stationery-inner { width: var(--inner-width); margin-inline: auto; min-width: 0; }
.amdh-page main:has(.paper-hero) :is(.stationery-band--mat,.stationery-band--blush) {
  border-top: 1px solid var(--rule);
  background-image: linear-gradient(var(--st-soft-rule), var(--st-soft-rule));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 5px;
}
.amdh-page main:has(.paper-hero) .stationery-band--mat { background-color: var(--inner-mat); }
.amdh-page main:has(.paper-hero) .stationery-band--blush { background-color: var(--st-blush); }
.amdh-page main:has(.paper-hero) .section-heading { margin-bottom: clamp(24px, 3vw, 40px); }
.amdh-page main:has(.paper-hero) .section-heading h2 { margin-bottom: .3em; }
.amdh-page main:has(.paper-hero) [data-catalog-panel] > .section-heading:first-child { margin-top: clamp(32px, 4.4vw, 60px); }
.amdh-page main:has(.paper-hero) .section-heading > p { margin: 0; line-height: 1.7; }

/* Quiet notes: honest disclaimers seated under the content they qualify. */
.amdh-page main:has(.paper-hero) .showcase-note {
  max-width: 82ch;
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--st-soft-rule);
  color: var(--st-quiet);
  font-size: 1rem;
  line-height: 1.75;
}

/* ---------- Shared card frame: complete artwork in a fine gold frame on mat ---------- */
.amdh-page main:has(.paper-hero) .stationery-frame {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  overflow: hidden;
  padding: clamp(7px, .8vw, 11px);
  border: 1px solid #c49d62;
  background: var(--st-frame-mat);
  box-shadow: inset 0 0 0 4px var(--st-frame-mat), inset 0 0 0 5px #d8b97f;
  color: inherit;
  font: inherit;
}
.amdh-page main:has(.paper-hero) .stationery-frame img {
  display: block;
  width: 100%;
  height: auto;
  /* Artwork is 4:3; contain keeps every design complete, never cropped. */
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: none;
}
.amdh-page main:has(.paper-hero) button.stationery-frame { cursor: zoom-in; text-align: inherit; }
.amdh-page main:has(.paper-hero) button.stationery-frame:focus-visible { outline: 3px solid var(--inner-rose); outline-offset: 3px; }

/* ---------- Catalogue: browse bar ---------- */
.amdh-page main:has(.paper-hero) .catalog-tabs {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--inner-mat);
}
.amdh-page main:has(.paper-hero) .catalog-tabs button {
  position: relative;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 60px;
  margin: 0;
  padding: 14px 18px 16px;
  border: 0;
  border-left: 1px solid var(--st-soft-rule);
  background: transparent;
  color: var(--ink);
  font: 400 clamp(1.0625rem, 1.35vw, 1.3rem)/1.3 var(--serif);
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  cursor: pointer;
}
.amdh-page main:has(.paper-hero) .catalog-tabs button:first-child { border-left: 0; }
.amdh-page main:has(.paper-hero) .catalog-tabs button::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 3px;
  background: transparent;
}
.amdh-page main:has(.paper-hero) .catalog-tabs button:not(.active,[aria-pressed=true]):hover { background: #f3dcd6; color: var(--inner-rose); }
.amdh-page main:has(.paper-hero) .catalog-tabs button:is(.active,[aria-pressed=true]) { background: var(--st-card); color: var(--inner-rose); border-color: var(--st-soft-rule); }
.amdh-page main:has(.paper-hero) .catalog-tabs button:is(.active,[aria-pressed=true])::after { background: var(--st-gold-line); }
.amdh-page main:has(.paper-hero) .catalog-tabs button:first-child:is(.active,[aria-pressed=true]) { border-left: 0; }
.amdh-page main:has(.paper-hero) .catalog-tabs button:focus-visible { outline: 3px solid var(--inner-rose); outline-offset: -4px; }

.amdh-page main:has(.paper-hero) .catalog-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 16px 0;
  margin-bottom: clamp(32px, 4.4vw, 60px);
  border-bottom: 1px solid var(--st-soft-rule);
}
.amdh-page main:has(.paper-hero) .edition-filters { display: flex; flex-wrap: wrap; gap: 8px; width: auto; }
.amdh-page main:has(.paper-hero) .edition-filters button {
  width: auto;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #ba905d99;
  background: transparent;
  color: var(--ink);
  font: 500 1rem/1.4 var(--sans);
  letter-spacing: .03em;
  cursor: pointer;
}
.amdh-page main:has(.paper-hero) .edition-filters button:not(.active,[aria-pressed=true]):hover { background: #f3dcd6; color: #4a2a31; border-color: #754149; }
.amdh-page main:has(.paper-hero) .edition-filters button:is(.active,[aria-pressed=true]) { background: #754149; color: #fffaf5; border-color: #754149; }
.amdh-page main:has(.paper-hero) .edition-filters button:focus-visible { outline: 3px solid var(--inner-rose); outline-offset: 2px; }
.amdh-page main:has(.paper-hero) .catalog-count {
  margin: 0;
  color: var(--st-quiet);
  font: italic 400 1.0625rem/1.5 var(--serif);
}

/* ---------- Catalogue: collection cards ---------- */
.amdh-page main:has(.paper-hero) .stationery-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  margin: 0;
  align-items: stretch;
}
.amdh-page main:has(.paper-hero) .stationery-collection-card {
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--st-card);
  box-shadow: 0 14px 26px -22px #5c3547;
}
.amdh-page main:has(.paper-hero) .stationery-collection-card[hidden] { display: none; }
.amdh-page main:has(.paper-hero) .stationery-collection-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(10px, 1vw, 14px);
  color: inherit;
  text-decoration: none;
}
.amdh-page main:has(.paper-hero) .stationery-collection-card > a > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px clamp(6px, 1vw, 14px) 4px;
}
.amdh-page main:has(.paper-hero) .stationery-collection-card .edition-label { margin: 0 0 6px; color: #8a5a43; letter-spacing: .1em; }
.amdh-page main:has(.paper-hero) .stationery-collection-card h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 2vw, 1.95rem); line-height: 1.25; }
.amdh-page main:has(.paper-hero) .stationery-collection-card p:not(.edition-label) { margin: 0 0 20px; font-size: 1rem; line-height: 1.65; }
.amdh-page main:has(.paper-hero) .stationery-collection-card .text-link {
  align-self: stretch;
  margin-top: auto;
  padding: 14px 0 6px;
  border-top: 1px solid var(--st-soft-rule);
  color: var(--inner-rose);
  font-weight: 500;
  letter-spacing: .04em;
}
.amdh-page main:has(.paper-hero) .stationery-collection-card > a:focus-visible { outline: 3px solid var(--inner-rose); outline-offset: 3px; }

/* ---------- Product and piece cards (catalogue panel + collection pages) ---------- */
.amdh-page main:has(.paper-hero) .stationery-piece-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  margin: 0;
  align-items: stretch;
}
.amdh-page main:has(.paper-hero) .stationery-pieces .stationery-piece-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.amdh-page main:has(.paper-hero) :is(.stationery-piece-grid > article,.stationery-pending-card) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--st-card);
  box-shadow: 0 14px 26px -22px #5c3547;
}
.amdh-page main:has(.paper-hero) .stationery-piece-grid > article { padding: clamp(10px, 1vw, 14px); }
.amdh-page main:has(.paper-hero) :is(.stationery-piece-grid > article,.stationery-pending-card) > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.amdh-page main:has(.paper-hero) .stationery-piece-grid > article > div:last-child { padding: 22px clamp(6px, 1vw, 14px) 6px; }
.amdh-page main:has(.paper-hero) :is(.stationery-piece-grid,.stationery-pending-grid) h3 { margin: 0 0 10px; font-size: clamp(1.4rem, 1.8vw, 1.7rem); line-height: 1.3; }
.amdh-page main:has(.paper-hero) :is(.stationery-piece-grid,.stationery-pending-grid) p { margin: 0 0 14px; font-size: 1rem; line-height: 1.65; }
.amdh-page main:has(.paper-hero) .product-envelope-note {
  padding-left: 14px;
  border-left: 2px solid #c9a46a;
  color: var(--st-quiet);
}
.amdh-page main:has(.paper-hero) :is(.stationery-piece-grid,.stationery-pending-grid) .outline-button { margin-top: auto; padding-inline: 20px; }
.amdh-page main:has(.paper-hero) :is(.stationery-piece-grid,.stationery-pending-grid) p:last-of-type { margin-bottom: 22px; }
/* A single illustrated piece (e.g. only the seal artwork is ready) becomes one wide feature card. */
.amdh-page main:has(.paper-hero) .stationery-pieces .stationery-piece-grid > article:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(20px, 3.4vw, 52px);
  align-items: center;
}
.amdh-page main:has(.paper-hero) .stationery-pieces .stationery-piece-grid > article:only-child > div:last-child { padding: 12px clamp(4px, 1.6vw, 24px) 12px 0; align-self: center; }

/* Pieces awaiting artwork: compact cards, honest note in a slim velvet strip. */
.amdh-page main:has(.paper-hero) .stationery-pending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
}
.amdh-page main:has(.paper-hero) .stationery-piece-grid + .stationery-pending-grid { margin-top: clamp(24px, 3vw, 40px); }
.amdh-page main:has(.paper-hero) .stationery-pending-strip {
  padding: 18px 22px 20px;
  background: var(--inner-velvet);
  color: var(--inner-cream);
  border-bottom: 2px solid var(--inner-gold);
  outline: 1px solid #e8c88e66;
  outline-offset: -7px;
}
.amdh-page main:has(.paper-hero) .stationery-pending-strip > span { display: block; color: #f3d9a4; font: 400 1.25rem/1.35 var(--serif); }
.amdh-page main:has(.paper-hero) .stationery-pending-grid .stationery-pending-strip > p { margin: 6px 0 0; color: var(--inner-cream); font-size: 1rem; line-height: 1.55; }
.amdh-page main:has(.paper-hero) .stationery-pending-card > div:last-child { padding: 20px 22px 24px; }

/* ---------- Catalogue: business and Vow & Seal panels ---------- */
.amdh-page main:has(.paper-hero) .business-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); margin: 0; }
.amdh-page main:has(.paper-hero) .business-category-grid > article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--st-gold-line);
  background: var(--st-card);
}
.amdh-page main:has(.paper-hero) .business-category-grid > article .outline-button { margin-top: auto; }
.amdh-page main:has(.paper-hero) .seal-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: none; margin: 0 0 28px; border: 1px solid var(--rule); background: var(--st-card); }
.amdh-page main:has(.paper-hero) .seal-overview > div { padding: clamp(22px, 3vw, 38px); border: 0; }
.amdh-page main:has(.paper-hero) .seal-overview > div + div { border-left: 1px solid var(--st-soft-rule); }
.amdh-page main:has(.paper-hero) [data-catalog-panel="seals"] > p { max-width: 75ch; }

/* ---------- Catalogue: quote band and order options ---------- */
.amdh-page main:has(.paper-hero) .stationery-quote-band .catalog-quote-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin: 0;
  padding: clamp(26px, 3.6vw, 48px) clamp(24px, 3.6vw, 52px);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--inner-gold);
  background: var(--inner-velvet);
  color: var(--inner-cream);
  outline: 1px solid #e8c88e73;
  outline-offset: -10px;
}
.amdh-page main:has(.paper-hero) .catalog-quote-cta p { max-width: 26ch; margin: 0; color: var(--inner-cream); font: 400 clamp(1.55rem, 2.6vw, 2.3rem)/1.25 var(--serif); }
.amdh-page main:has(.paper-hero) .catalog-quote-cta .gold-button { background: var(--metal-gold-btn); color: #3a2529; border-color: rgb(146 101 18 / 45%); width: auto; }
.amdh-page main:has(.paper-hero) .catalog-quote-cta :focus-visible { outline-color: var(--inner-gold); }
.amdh-page main:has(.paper-hero) .stationery-quote-band .showcase-note { margin-top: 20px; padding-top: 0; border-top: 0; }

.amdh-page main:has(.paper-hero) .stationery-order-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: st-order;
  border: 1px solid var(--rule);
  background: var(--inner-mat);
  outline: 1px solid var(--st-soft-rule);
  outline-offset: -8px;
}
.amdh-page main:has(.paper-hero) .stationery-order-options > article { min-width: 0; padding: clamp(28px, 3.4vw, 48px); counter-increment: st-order; }
.amdh-page main:has(.paper-hero) .stationery-order-options > article + article { border-left: 1px solid var(--st-soft-rule); }
.amdh-page main:has(.paper-hero) .stationery-order-options > article::before {
  content: counter(st-order, decimal-leading-zero);
  content: counter(st-order, decimal-leading-zero) / "";
  display: block;
  width: fit-content;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--st-gold-line);
  color: #9a6f3a;
  font: italic 400 clamp(2rem, 3vw, 2.6rem)/1 var(--serif);
}
.amdh-page main:has(.paper-hero) .stationery-order-options h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.1vw, 1.9rem); }
.amdh-page main:has(.paper-hero) .stationery-order-options p { margin: 0; font-size: 1rem; line-height: 1.7; }

/* ---------- Collection intro ---------- */
.amdh-page main:has(.paper-hero) .stationery-collection-intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 0;
  align-items: start;
}
.amdh-page main:has(.paper-hero) .stationery-collection-intro > div:first-child { padding-right: clamp(24px, 4.5vw, 72px); }
.amdh-page main:has(.paper-hero) .stationery-collection-intro > div:first-child .edition-label::before { content: ""; display: block; width: 2.5rem; height: 2px; margin-bottom: 1rem; background: #a27841; }
.amdh-page main:has(.paper-hero) .stationery-collection-intro h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.15; }
.amdh-page main:has(.paper-hero) .stationery-collection-intro h2 em { color: var(--inner-rose); }
.amdh-page main:has(.paper-hero) .stationery-collection-intro > div:last-child { padding-left: clamp(24px, 4.5vw, 72px); border-left: 1px solid var(--st-soft-rule); }
.amdh-page main:has(.paper-hero) .stationery-collection-intro > div:last-child > p:not(.showcase-note) { max-width: 62ch; margin: 0 0 16px; line-height: 1.75; }
.amdh-page main:has(.paper-hero) .stationery-collection-intro .gold-button { margin-top: 10px; }

/* ---------- Stationery buttons on light grounds ---------- */
.amdh-page main:has(.paper-hero) .gold-button { background: #76404c; color: #fffaf5; border-color: #76404c; }
.amdh-page main:has(.paper-hero) .catalog-quote-cta .gold-button { background: var(--metal-gold-btn); color: #3a2529; border-color: rgb(146 101 18 / 45%); }

/* ---------- Quote page ---------- */
.amdh-page main:has(.paper-hero) .stationery-quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .36fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.amdh-page main:has(.paper-hero) #stationeryQuote {
  min-width: 0;
  padding: clamp(22px, 4vw, 56px);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--st-gold-line);
  background: var(--inner-mat);
  box-shadow: 0 18px 34px -30px #5c3547;
}
.amdh-page main:has(.paper-hero) #stationeryQuote .form-note {
  margin: 0 0 28px;
  padding: 4px 0 4px 18px;
  border: 0;
  border-left: 2px solid var(--st-gold-line);
  background: transparent;
  color: var(--st-quiet);
  line-height: 1.7;
}
.amdh-page main:has(.paper-hero) #stationeryQuote .form-note:empty { display: none; }
.amdh-page main:has(.paper-hero) #weddingOptions > .form-note:last-child { margin: 28px 0 0; }
.amdh-page main:has(.paper-hero) #stationeryQuote label { font-weight: 500; color: var(--ink); }
.amdh-page main:has(.paper-hero) #stationeryQuote :is(input:not([type=checkbox]),select,textarea) {
  min-height: 52px;
  margin-top: 8px;
  border: 1px solid #b38e80;
  background: #fffdfb;
  font-weight: 400;
}
.amdh-page main:has(.paper-hero) #stationeryQuote textarea { min-height: 120px; }
.amdh-page main:has(.paper-hero) #stationeryQuote :is(input,select,textarea):focus-visible { outline: 2px solid var(--inner-rose); outline-offset: 2px; border-color: var(--inner-rose); }
.amdh-page main:has(.paper-hero) #stationeryQuote > label,
.amdh-page main:has(.paper-hero) #weddingOptions > label { margin-bottom: 24px; }
/* Ruled fieldset headings: the legend sits on a fine gold rule. */
.amdh-page main:has(.paper-hero) #stationeryQuote fieldset {
  min-width: 0;
  margin: 40px 0 0;
  padding: 26px 0 4px;
  border: 0;
  border-top: 1px solid var(--rule);
}
.amdh-page main:has(.paper-hero) #stationeryQuote fieldset[hidden] { display: none; }
.amdh-page main:has(.paper-hero) #stationeryQuote legend {
  float: left;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  color: var(--inner-rose);
  font: 400 clamp(1.45rem, 2.2vw, 1.85rem)/1.3 var(--serif);
}
.amdh-page main:has(.paper-hero) #stationeryQuote legend + * { clear: both; }
.amdh-page main:has(.paper-hero) #stationeryQuote legend::before { content: ""; display: block; width: 2.5rem; height: 2px; margin: 0 0 12px; background: var(--st-gold-line); }
.amdh-page main:has(.paper-hero) #weddingGroups > fieldset:first-child { margin-top: 8px; }
.amdh-page main:has(.paper-hero) .quote-group-heading { gap: 16px; }
.amdh-page main:has(.paper-hero) .quote-group-heading button { min-height: 52px; }
.amdh-page main:has(.paper-hero) .quote-product-row { border-top-color: var(--st-soft-rule); }
.amdh-page main:has(.paper-hero) .quote-product-row > .checkbox-label { min-height: 44px; align-items: center; }
.amdh-page main:has(.paper-hero) #stationeryQuote .form-grid { gap: 22px 24px; margin-block: 24px; }
.amdh-page main:has(.paper-hero) #wordingLabel:not([hidden]) { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--rule); }
.amdh-page main:has(.paper-hero) #addCollection,
.amdh-page main:has(.paper-hero) #addSeal { margin: 8px 0 20px; }
.amdh-page main:has(.paper-hero) .quote-finish {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.amdh-page main:has(.paper-hero) .quote-finish .checkbox-label { align-items: flex-start; padding-block: 6px; }
.amdh-page main:has(.paper-hero) .quote-finish > .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.amdh-page main:has(.paper-hero) .quote-finish .gold-button { min-height: 52px; margin-top: 12px; padding-inline: 32px; cursor: pointer; }
.amdh-page main:has(.paper-hero) #quoteSubmitStatus:empty { display: none; }
.amdh-page main:has(.paper-hero) #quoteSummaryPanel:not([hidden]) { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule); }
.amdh-page main:has(.paper-hero) .quote-aside {
  padding: clamp(26px, 3vw, 42px);
  border: 0;
  border-top: 3px solid var(--inner-gold);
  background: var(--inner-velvet);
  color: var(--inner-cream);
  outline: 1px solid #e8c88e66;
  outline-offset: -10px;
}
.amdh-page main:has(.paper-hero) .quote-aside :is(h2,p,a) { color: var(--inner-cream); }
.amdh-page main:has(.paper-hero) .quote-aside h2 { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid #e8c88e66; color: #f3d9a4; font-size: clamp(1.5rem, 2vw, 1.8rem); }
.amdh-page main:has(.paper-hero) .quote-aside .text-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: #e8c88e99; }
.amdh-page main:has(.paper-hero) .quote-aside :focus-visible { outline-color: var(--inner-gold); }
@media (min-width: 1000px) {
  .amdh-page main:has(.paper-hero) .quote-aside { position: sticky; top: 32px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .amdh-page main:has(.paper-hero) :is(.stationery-collection-grid,.stationery-piece-grid,.stationery-pending-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .amdh-page main:has(.paper-hero) .stationery-quote-layout { grid-template-columns: minmax(0, 1fr); }
  .amdh-page main:has(.paper-hero) .stationery-quote-layout .quote-aside { order: 1; }
}
@media (max-width: 860px) {
  .amdh-page main:has(.paper-hero) .stationery-collection-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .amdh-page main:has(.paper-hero) .stationery-collection-intro > div:first-child { padding-right: 0; }
  .amdh-page main:has(.paper-hero) .stationery-collection-intro > div:last-child { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--st-soft-rule); }
  .amdh-page main:has(.paper-hero) .stationery-order-options { grid-template-columns: minmax(0, 1fr); }
  .amdh-page main:has(.paper-hero) .stationery-order-options > article + article { border-left: 0; border-top: 1px solid var(--st-soft-rule); }
  .amdh-page main:has(.paper-hero) .stationery-pieces .stationery-piece-grid > article:only-child { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .amdh-page main:has(.paper-hero) .stationery-pieces .stationery-piece-grid > article:only-child > div:last-child { padding: 22px clamp(6px, 1vw, 14px) 6px; }
}
@media (max-width: 760px) {
  .amdh-page main > .paper-hero { grid-template-columns: minmax(0, 1fr); }
  .amdh-page .paper-hero-art > img { max-height: 430px; }
  .amdh-page main:has(.paper-hero) .catalog-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amdh-page main:has(.paper-hero) .catalog-tabs button { min-height: 56px; padding: 12px 10px 14px; border-left: 0; border-top: 1px solid var(--st-soft-rule); }
  .amdh-page main:has(.paper-hero) .catalog-tabs button:nth-child(-n+2) { border-top: 0; }
  .amdh-page main:has(.paper-hero) .catalog-tabs button:nth-child(even) { border-left: 1px solid var(--st-soft-rule); }
  .amdh-page main:has(.paper-hero) .catalog-tabs button:is(.active,[aria-pressed=true]):nth-child(odd) { border-left: 0; }
  .amdh-page main:has(.paper-hero) .business-category-grid,
  .amdh-page main:has(.paper-hero) .seal-overview { grid-template-columns: minmax(0, 1fr); }
  .amdh-page main:has(.paper-hero) .seal-overview > div + div { border-left: 0; border-top: 1px solid var(--st-soft-rule); }
  .amdh-page main:has(.paper-hero) .catalog-quote-cta { flex-direction: column; align-items: stretch; }
  .amdh-page main:has(.paper-hero) .catalog-quote-cta .gold-button { width: 100%; }
}
@media (max-width: 640px) {
  .amdh-page main:has(.paper-hero) :is(.stationery-collection-grid,.stationery-piece-grid,.stationery-pending-grid),
  .amdh-page main:has(.paper-hero) .stationery-pieces .stationery-piece-grid { grid-template-columns: minmax(0, 1fr); }
  .amdh-page main:has(.paper-hero) #stationeryQuote .form-grid { grid-template-columns: minmax(0, 1fr); }
  .amdh-page main:has(.paper-hero) .edition-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .amdh-page main:has(.paper-hero) .edition-filters button { width: 100%; padding: 8px 6px; }
  .amdh-page main:has(.paper-hero) .catalog-filter-row { flex-direction: column; align-items: stretch; }
  .amdh-page main:has(.paper-hero) .paper-hero > .paper-hero-trail { flex-direction: column; gap: 0; }
  .amdh-page main:has(.paper-hero) .quote-finish .gold-button { width: 100%; }
}
