/* Appily Twentyseven — Atelier Desk help center (unique layout) */

.hc27-desk {
  --hc27-wine: var(--ts-wine, #8B2942);
  --hc27-gold: var(--ts-gold, #C4A77D);
  --hc27-ink: var(--ts-ink, #111);
  --hc27-paper: var(--ts-paper, #fff);
  --hc27-surface: var(--ts-surface, #f5f5f5);
  background: var(--hc27-paper);
}

/* Ticket hero */
.hc27-ticket-hero {
  background: var(--hc27-ink);
  color: var(--hc27-paper);
  padding: 0;
  overflow: hidden;
}
.hc27-ticket-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 280px;
}
.hc27-ticket-main {
  padding: 52px 0 52px;
  position: relative;
}
.hc27-ticket-main::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .25) 0,
    rgba(255, 255, 255, .25) 6px,
    transparent 6px,
    transparent 12px
  );
}
.hc27-ticket-kicker {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--hc27-gold);
  margin: 0 0 14px;
}
.hc27-ticket-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 14ch;
}
.hc27-ticket-title em {
  font-style: italic;
  color: var(--hc27-gold);
}
.hc27-ticket-lede {
  max-width: 46ch;
  color: rgba(255, 255, 255, .72);
  font-size: .95rem;
  margin: 0 0 28px;
  line-height: 1.65;
}
.hc27-ticket-search {
  display: flex;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, .22);
}
.hc27-ticket-search input {
  flex: 1;
  border: 0;
  background: rgba(255, 255, 255, .06);
  color: var(--hc27-paper);
  padding: 12px 16px;
  outline: none;
  font-size: .9rem;
}
.hc27-ticket-search input::placeholder {
  color: rgba(255, 255, 255, .45);
}
.hc27-ticket-search button {
  border: 0;
  background: var(--hc27-wine);
  color: var(--hc27-paper);
  padding: 0 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
}
.hc27-ticket-search button:hover {
  background: var(--ts-wine-dark, #6B1F33);
}

.hc27-ticket-stub {
  padding: 52px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #1a1a1a 0%, var(--hc27-wine) 100%);
  position: relative;
}
.hc27-ticket-stub::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--hc27-paper);
}
.hc27-stub-label {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .65;
  margin: 0 0 8px;
}
.hc27-stub-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 20px;
}
.hc27-stub-rows {
  display: grid;
  gap: 10px;
  font-size: .82rem;
  opacity: .9;
}
.hc27-stub-rows span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, .2);
}
.hc27-stub-rows strong {
  font-weight: 600;
  text-align: right;
}
.hc27-stub-cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hc27-gold);
}
.hc27-stub-cta:hover {
  color: var(--hc27-paper);
}

/* Manuscript stage */
.hc27-stage {
  padding: 0 0 72px;
}
.hc27-manuscript {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 0;
  align-items: start;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

/* Left rail — roman manuscript index */
.hc27-rail {
  background: var(--hc27-wine);
  color: var(--hc27-paper);
  padding: 28px 0;
  position: sticky;
  top: 12px;
}
.hc27-rail-head {
  padding: 0 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  margin-bottom: 8px;
}
.hc27-rail-head p {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
  margin: 0 0 6px;
}
.hc27-rail-head strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.hc27-rail-btn {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px 22px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  text-align: left;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  font-family: inherit;
}
.hc27-rail-btn:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--hc27-paper);
}
.hc27-rail-btn.is-active {
  background: rgba(0, 0, 0, .18);
  color: var(--hc27-paper);
  border-left-color: var(--hc27-gold);
}
.hc27-rail-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hc27-gold);
  line-height: 1;
}
.hc27-rail-btn.is-active .hc27-rail-num {
  color: var(--hc27-paper);
}
.hc27-rail-copy strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hc27-rail-copy span {
  display: block;
  font-size: .72rem;
  opacity: .75;
  line-height: 1.35;
}

/* Center sheets */
.hc27-sheets {
  background: var(--hc27-paper);
  border: 1px solid var(--ts-line);
  border-left: 0;
  min-height: 520px;
  box-shadow: var(--shadow);
}
.hc27-sheet {
  display: none;
  padding: 36px 40px 44px;
  animation: hc27Fade .35s ease;
}
.hc27-sheet.is-active {
  display: block;
}
@keyframes hc27Fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hc27-sheet-head {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--hc27-ink);
}
.hc27-sheet-tag {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hc27-wine);
  font-weight: 700;
  margin: 0 0 8px;
}
.hc27-sheet-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 10px;
  font-weight: 600;
}
.hc27-sheet-head p {
  margin: 0;
  color: var(--ts-muted);
  font-size: .94rem;
  max-width: 52ch;
  line-height: 1.6;
}

/* Receipt-line FAQs */
.hc27-receipts {
  display: grid;
  gap: 0;
}
.hc27-receipt {
  border-top: 1px dashed var(--ts-line);
}
.hc27-receipt:first-child {
  border-top: 0;
}
.hc27-receipt-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--hc27-ink);
}
.hc27-receipt-q {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.45;
  position: relative;
}
.hc27-receipt-q::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  border-bottom: 1px dotted var(--ts-line);
  pointer-events: none;
}
.hc27-receipt-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--hc27-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: background .2s, color .2s, transform .25s;
}
.hc27-receipt.is-open .hc27-receipt-mark {
  background: var(--hc27-wine);
  border-color: var(--hc27-wine);
  color: var(--hc27-paper);
  transform: rotate(45deg);
}
.hc27-receipt-body {
  display: none;
  padding: 0 0 20px 0;
  font-size: .92rem;
  color: var(--ts-muted);
  line-height: 1.75;
  max-width: 58ch;
}
.hc27-receipt-body a {
  color: var(--hc27-wine);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hc27-receipt.is-open .hc27-receipt-body {
  display: block;
}
.hc27-no-match {
  display: none;
  padding: 32px 0;
  text-align: center;
  color: var(--ts-muted);
  font-size: .94rem;
}
.hc27-no-match.is-visible {
  display: block;
}
.hc27-no-match a {
  color: var(--hc27-wine);
  text-decoration: underline;
}

/* Right concierge column */
.hc27-concierge {
  padding: 28px 24px;
  position: sticky;
  top: 12px;
}
.hc27-seal {
  width: 72px;
  height: 72px;
  border: 2px solid var(--hc27-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
}
.hc27-seal::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--hc27-wine);
  border-radius: 50%;
  opacity: .35;
}
.hc27-seal span {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--hc27-wine);
  text-align: center;
  line-height: 1.2;
}
.hc27-concierge h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 10px;
}
.hc27-concierge > p {
  font-size: .88rem;
  color: var(--ts-muted);
  margin: 0 0 18px;
  line-height: 1.6;
}
.hc27-concierge-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  background: var(--hc27-ink);
  color: var(--hc27-paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  transition: background .2s;
}
.hc27-concierge-btn:hover {
  background: var(--hc27-wine);
}
.hc27-concierge-links {
  display: grid;
  gap: 8px;
  font-size: .82rem;
}
.hc27-concierge-links a {
  color: var(--hc27-wine);
  word-break: break-word;
}
.hc27-fact-stack {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ts-line);
}
.hc27-fact-stack h4 {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--ts-muted);
}
.hc27-fact-stack dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.hc27-fact-stack dt {
  font-size: .72rem;
  color: var(--ts-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hc27-fact-stack dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: .9rem;
}

/* Diagonal quick-pick band */
.hc27-picks {
  background: var(--hc27-surface);
  border-top: 1px solid var(--ts-line);
  padding: 48px 0 56px;
}
.hc27-picks-head {
  margin-bottom: 28px;
}
.hc27-picks-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 6px;
}
.hc27-picks-head p {
  margin: 0;
  color: var(--ts-muted);
  font-size: .9rem;
}
.hc27-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hc27-pick:nth-child(2) {
  transform: translateY(18px);
}
.hc27-pick:nth-child(5) {
  transform: translateY(18px);
}
.hc27-pick {
  display: block;
  padding: 22px 20px;
  background: var(--hc27-paper);
  border: 1px solid var(--ts-line);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hc27-pick:hover {
  border-color: var(--hc27-wine);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.hc27-pick:nth-child(2):hover,
.hc27-pick:nth-child(5):hover {
  transform: translateY(16px);
}
.hc27-pick-code {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--hc27-wine);
  font-weight: 700;
  margin-bottom: 8px;
}
.hc27-pick strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 4px;
}
.hc27-pick span {
  font-size: .78rem;
  color: var(--ts-muted);
}

@media (max-width: 1024px) {
  .hc27-manuscript {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .hc27-rail {
    position: static;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
  }
  .hc27-rail-head {
    width: 100%;
    padding: 20px 18px 14px;
  }
  .hc27-rail-btn {
    flex: 1 1 45%;
    grid-template-columns: 36px 1fr;
    padding: 14px 16px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }
  .hc27-rail-btn.is-active {
    border-left: 0;
    border-bottom-color: var(--hc27-gold);
  }
  .hc27-sheets {
    border-left: 1px solid var(--ts-line);
  }
  .hc27-concierge {
    position: static;
    border-top: 1px solid var(--ts-line);
    background: var(--hc27-surface);
  }
  .hc27-pick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hc27-pick:nth-child(2),
  .hc27-pick:nth-child(5) {
    transform: none;
  }
}

@media (max-width: 720px) {
  .hc27-ticket-inner {
    grid-template-columns: 1fr;
  }
  .hc27-ticket-main::after {
    display: none;
  }
  .hc27-ticket-main {
    padding: 40px 0 28px;
  }
  .hc27-ticket-stub {
    padding: 28px 24px 36px;
  }
  .hc27-ticket-stub::before {
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
  }
  .hc27-sheet {
    padding: 28px 20px 32px;
  }
  .hc27-rail-btn {
    flex: 1 1 100%;
  }
  .hc27-pick-grid {
    grid-template-columns: 1fr;
  }
}
