.hg-demo {
  --hg-paper: var(--paper, #f8f4ed);
  --hg-ink: var(--ink, #301b26);
  --hg-plum: var(--plum, #301b26);
  --hg-coral: var(--coral, #ff805e);
  --hg-rule: #cec3b7;
  color: var(--hg-ink);
  font-family: var(--sans, sans-serif);
  text-align: left;
}
.hg-demo *, .hg-demo *::before, .hg-demo *::after { box-sizing: border-box; }
.hg-demo [hidden] { display: none !important; }
.hg-demo button, .hg-demo input, .hg-demo select { font: inherit; }
.hg-demo button { cursor: pointer; }
.hg-demo button:focus-visible, .hg-demo summary:focus-visible, .hg-demo input:focus-visible, .hg-demo select:focus-visible { outline: 3px solid #d44a30; outline-offset: 3px; }
.hg-demo h3, .hg-demo h4, .hg-demo p, .hg-demo dt, .hg-demo dd { margin: 0; }
.hg-demo h3, .hg-demo h4 { font-family: var(--serif, Georgia, serif); font-weight: 400; letter-spacing: -.045em; text-transform: none; }
.hg-demo p { font-family: var(--sans, sans-serif); }
.hg-demo .hg-kicker, .hg-demo .hg-org-meta { font: 600 .76rem/1.4 var(--sans, sans-serif); letter-spacing: .10em; text-transform: uppercase; }
.hg-lot-layout { display: grid; grid-template-columns: 1.02fr .98fr; border: 1px solid var(--hg-rule); background: var(--hg-paper); }
.hg-piece, .hg-console { min-width: 0; }
.hg-piece { display: flex; flex-direction: column; }
.hg-piece-art { position: relative; min-height: 122px; height: clamp(132px, 14vw, 235px); background: #2c1721; overflow: hidden; }
.hg-piece-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.hg-piece-copy { padding: clamp(1.25rem, 3.5vw, 2.7rem); }
.hg-piece .hg-kicker { color: #754c4c; }
.hg-piece h3 { color: var(--hg-ink); font-size: clamp(2.25rem, 3.7vw, 3.6rem); line-height: 1.02; margin: .58rem 0 .7rem; }
.hg-piece p:not(.hg-kicker), .hg-org p, .hg-delivery p, .hg-dialog p { font-size: 1rem; line-height: 1.52; color: #57484a; max-width: 63ch; }
.hg-specs { margin: 1.1rem 0 0; }
.hg-specs > div { display: grid; grid-template-columns: minmax(6.6rem, .8fr) 1.2fr; gap: .72rem; border-top: 1px solid var(--hg-rule); padding: .55rem 0; }
.hg-specs > div:last-child { padding-bottom: 0; }
.hg-specs dt, .hg-specs dd { font: 450 .88rem/1.4 var(--sans, sans-serif); }
.hg-specs dt { color: #685a5b; }
.hg-specs dd { color: var(--hg-ink); }
.hg-console { color: #fff6ec; background: var(--hg-plum); padding: clamp(1.25rem, 3.7vw, 3.1rem); display: flex; flex-direction: column; align-items: flex-start; }
.hg-console-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.hg-state { display: inline-flex; align-items: center; gap: .47rem; font: 580 .86rem/1.35 var(--sans, sans-serif); color: #ffb19c; }
.hg-state::before { content: ''; display: block; width: .44rem; height: .44rem; border-radius: 50%; background: #ff9679; }
.hg-reset, .hg-dialog-close { min-height: 34px; padding: .2rem 0; border: 0; color: inherit; font-size: .89rem !important; text-decoration: underline; text-underline-offset: .24em; background: transparent; }
.hg-count { display: flex; flex-direction: column; align-items: flex-start; margin: clamp(1rem, 2.6vw, 2.1rem) 0 .8rem; }
.hg-count-label { font: 500 .85rem/1.4 var(--sans, sans-serif); color: #e3cfd5; }
.hg-count strong { font: 400 clamp(4.1rem, 7.5vw, 7.55rem)/.97 var(--serif, Georgia, serif); letter-spacing: -.075em; margin: .18rem 0 .15rem; color: #fff6ec; font-variant-numeric: lining-nums; }
.hg-count .hg-unit { color: #ffe8df; font: 500 1.05rem/1.3 var(--sans, sans-serif); }
.hg-console .hg-caption, .hg-console .hg-feedback { font-size: .90rem; line-height: 1.5; color: #e6d5db; }
.hg-console .hg-feedback { font-size: .85rem; padding-top: .85rem; }
.hg-console-controls { width: 100%; }
.hg-bid-options { border: 0; border-top: 1px solid #6d4f60; margin: 1.25rem 0 0; padding: 0; }
.hg-bid-options legend { float: left; width: 100%; padding: .85rem 0 .5rem; font-size: .93rem; font-weight: 600; }
.hg-option-row { display: flex; flex-wrap: wrap; gap: .4rem; clear: both; }
.hg-option-row label { position: relative; display: inline-flex; margin: 0; }
.hg-option-row input { overflow: hidden; opacity: 0; width: 1px; height: 1px; position: absolute; top: 50%; left: 50%; }
.hg-option-row span { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: .36rem .78rem; border: 1px solid #876977; border-radius: 3rem; color: #f7e9ec; font-size: .89rem; line-height: 1.3; white-space: nowrap; cursor: pointer; }
.hg-option-row input:checked + span { color: #311d27; background: #ffcfbd; border-color: #ffcfbd; }
.hg-option-row input:focus-visible + span { outline: 2px solid #ff9679; outline-offset: 3px; }
.hg-option-row input:disabled + span { color: #bca7b1; border-color: #715763; border-style: dashed; cursor: default; }
.hg-console .hg-value-preview { color: #f7e5e7; font: 550 .93rem/1.45 var(--sans, sans-serif); margin: .78rem 0; }
.hg-primary, .hg-form-submit, .hg-advance-main { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid transparent; border-radius: 2px; padding: .68rem 1.03rem; background: var(--hg-coral); color: #321c25; font-weight: 650 !important; font-size: .95rem !important; line-height: 1.3; text-align: center; }
.hg-console .hg-primary, .hg-console .hg-advance-main { width: 100%; }
.hg-primary:hover, .hg-form-submit:hover, .hg-advance-main:hover { background: #ff9a7f; }
.hg-step-action:not(.hg-advance-main) { padding: .55rem 0 .1rem; min-height: 42px; color: #ffe4d9; background: transparent; border: 0; font-size: .93rem; text-decoration: underline; text-underline-offset: .2em; }
.hg-advance-main { margin-top: 1.1rem; }
.hg-trail { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; gap: .6rem; padding: 0; margin: 1rem 0; }
.hg-trail li { display: block; border-top: 3px solid #c7bdb2; padding: .45rem 0 0; color: #68575c; font: 500 .87rem/1.33 var(--sans, sans-serif); }
.hg-trail li.hg-reached { border-color: #be583f; color: #4d2931; }
.hg-trail li[aria-current] { font-weight: 750; }
.hg-delivery { border-block: 1px solid var(--hg-rule); }
.hg-delivery summary { cursor: pointer; padding: .8rem .1rem; font-size: 1rem; font-weight: 600; }
.hg-delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: .4rem 0 1.2rem; }
.hg-delivery-grid h4 { font-size: 1.5rem; line-height: 1.13; margin-bottom: .35rem; color: var(--hg-ink); }
.hg-network-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; border-bottom: 1px solid var(--hg-rule); margin-bottom: 1rem; padding: 0 0 .9rem; }
.hg-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.hg-filters button, .hg-signup-open, .hg-org-bottom button { min-height: 40px; padding: .44rem .86rem; color: var(--hg-ink); border: 1px solid #bba99e; border-radius: 2rem; font-size: .92rem; line-height: 1.33; background: transparent; }
.hg-filters button[aria-pressed="true"] { background: var(--hg-plum); color: #fff4e9; border-color: var(--hg-plum); }
.hg-filters button:not([aria-pressed="true"]):hover, .hg-org-bottom button:hover { background: #eadcd0; }
.hg-signup-open { border-radius: 2px; border-color: var(--hg-ink); font-weight: 600 !important; }
.hg-signup-open:hover { background: var(--hg-plum); color: var(--hg-paper); }
.hg-org-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .95rem; }
.hg-org { min-width: 0; display: flex; flex-direction: column; align-items: stretch; color: var(--hg-ink); border: 1px solid var(--hg-rule); background: var(--hg-paper); padding: clamp(1.2rem, 2.5vw, 2.2rem); border-top: 3px solid #a24938; }
.hg-org-school { border-top-color: #765566; }
.hg-org-meta { color: #71535a; display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem; }
.hg-org h3 { font-size: clamp(2rem, 3.25vw, 3rem); line-height: 1.06; margin: 1.1rem 0 .5rem; color: var(--hg-ink); }
.hg-org p { margin-bottom: 1.4rem; }
.hg-org-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; border-top: 1px solid var(--hg-rule); padding-top: .85rem; margin-top: auto; }
.hg-org-bottom span, .hg-network-note { color: #65575a; font-size: .86rem; line-height: 1.5; }
.hg-org-bottom button { color: #4e2931; border-color: #9d7c72; }
.hg-network .hg-network-note { font-size: .85rem; margin: .75rem 0 0; line-height: 1.45; }
.hg-dialog { background: var(--hg-paper); color: var(--hg-ink); max-height: 84vh; max-height: 84dvh; max-width: min(91vw, 37rem); width: 37rem; padding: 0; margin: auto; border: 1px solid #bca79e; border-radius: 3px; box-shadow: 0 20px 100px #1d0f1a40; overscroll-behavior: contain; overflow: auto; }
.hg-dialog:not([open]) { display: none; }
.hg-dialog::backdrop { background: rgb(31 15 25 / .72); }
.hg-dialog-inner { padding: clamp(1.2rem, 4vw, 2.7rem); }
.hg-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; color: #734e51; margin-bottom: .8rem; }
.hg-dialog .hg-kicker { font-size: .75rem; }
.hg-dialog h3 { font-size: clamp(2.45rem, 5vw, 3.8rem); line-height: 1.02; margin-bottom: .9rem; }
.hg-dialog h3:focus { outline: 0; }
.hg-dialog .hg-dialog-lead { margin-bottom: 1rem; }
.hg-profile-facts { margin: 1rem 0 0; }
.hg-profile-facts > div { border-top: 1px solid var(--hg-rule); padding: .75rem 0; }
.hg-profile-facts dt { font-size: .86rem; font-weight: 650; margin: 0 0 .2rem; color: #754d4b; }
.hg-profile-facts dd { font-size: 1rem; line-height: 1.44; }
.hg-form { display: grid; gap: 1rem; }
.hg-form label { display: grid; gap: .32rem; color: #533941; font-size: .94rem; font-weight: 580; }
.hg-form input, .hg-form select { width: 100%; background: #fffcf7; border: 1px solid #a98e86; border-radius: 2px; padding: .62rem .67rem; min-height: 44px; color: #39222c; }
.hg-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #644a54 50%), linear-gradient(135deg, #644a54 50%, transparent 50%); background-size: 6px 6px, 6px 6px; background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-repeat: no-repeat; padding-right: 2rem; }
.hg-form-submit { margin-top: .8rem; }
@media (max-width: 780px) {
  .hg-lot-layout { grid-template-columns: 1fr; }
  .hg-piece { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
  .hg-piece-art { min-height: 100%; height: auto; }
  .hg-piece-art img { position: absolute; inset: 0; }
  .hg-piece-copy, .hg-console { padding: 1.4rem; }
  .hg-console .hg-primary, .hg-console .hg-advance-main { max-width: 25rem; }
  .hg-piece h3 { font-size: 2.15rem; }
  .hg-specs > div { display: block; }
  .hg-specs dd { margin-top: .12rem; }
}
@media (max-width: 550px) {
  .hg-piece { display: flex; flex-direction: column; }
  .hg-piece-art { min-height: 135px; height: 37vw; max-height: 190px; }
  .hg-specs > div { display: grid; grid-template-columns: minmax(5.7rem, .8fr) 1.2fr; }
  .hg-specs dd { margin: 0; }
  .hg-piece-copy, .hg-console { padding: 1.17rem; }
  .hg-trail { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem .8rem; }
  .hg-trail li { font-size: .85rem; }
  .hg-delivery-grid, .hg-org-grid { grid-template-columns: 1fr; }
  .hg-network-tools { justify-content: flex-start; }
  .hg-dialog { max-width: calc(100vw - 1.4rem); }
}
@media print {
  .hg-dialog, .hg-network-tools, .hg-console button, .hg-bid-options, .hg-org-bottom button { display: none !important; }
  .hg-lot-layout, .hg-org-grid { break-inside: avoid; }
  .hg-console, .hg-org, .hg-step-action { print-color-adjust: exact; }
}
