/* Shared public, member and staff theme. Layout and business rules stay in their existing files. */
:root{--bg:#101112;--panel:#191a1c;--panel2:#222325;--text:#f6f4ed;--cream:#f6f4ed;--muted:#c1bdb2;--gold:#c8ab60;--gold2:#e4d29a;--line:#655839;--hearth-metal:linear-gradient(115deg,transparent 12%,rgba(255,255,255,.26) 43%,transparent 68%),repeating-linear-gradient(0deg,rgba(255,255,255,.008) 0 1px,rgba(0,0,0,.008) 1px 2px),linear-gradient(180deg,#e9d599 0%,#cfb46c 45%,#c3a45b 75%,#b49650 100%)}
html{color-scheme:dark;background:var(--bg)}
body{background:linear-gradient(180deg,#141517,#101112 65%);color:var(--text)}
h1,h2,h3,h4{font-family:Georgia,'Times New Roman',serif;font-weight:500}
.site-header,.staff-header,.header{background:linear-gradient(110deg,#101112,#191a1c);border-bottom-color:var(--gold)}
.hero h1{color:#faf9f5;letter-spacing:-.035em}
.hero h1 span{background:linear-gradient(100deg,#ead89d,#c8ab60);background-clip:text;-webkit-background-clip:text;color:transparent}
/* Cover native and dynamically rendered controls without changing their sizing. */
body :is(button,.button,input[type=submit]):not(.danger){background:var(--hearth-metal)!important;border:1px solid #d8c085!important;border-bottom-color:#90763f!important;border-radius:6px!important;color:#141516!important;box-shadow:inset 0 1px 0 #fff0c1,inset 0 -1px 1px #9a8149,0 3px 7px #0005!important;text-shadow:none;transition:filter .16s ease,box-shadow .16s ease}
body :is(.button.ghost,.button.secondary,button.secondary,.nav-toggle,.detail-btn,.event-reminder-btn,.customer-modal-close,.hearth-flow-text-btn,.signup-back,.catalog-clear-filters,.brand-chips button,#cancel){background:linear-gradient(135deg,#232426,#101112) padding-box,linear-gradient(125deg,#f2dfaa,#ad8d42 45%,#e4ce8d 75%,#92743a) border-box!important;border:1px solid transparent!important;color:#f6f4ed!important;box-shadow:inset 0 1px 0 #e9d59930,0 3px 7px #0005!important}
body .hearth-flow-text-btn,body .signup-back{padding-inline:10px}
body :is(button,.button,input[type=submit]):hover:not(:disabled):not([aria-disabled=true]){filter:brightness(1.1)}
body :is(button,.button,input[type=submit]):active:not(:disabled){filter:brightness(.94);box-shadow:inset 0 2px 4px #0006!important}
body :is(button,.button,input[type=submit]):disabled,body [aria-disabled=true]{opacity:.48;cursor:not-allowed;filter:saturate(.4)}
body :focus-visible{outline:3px solid #f4dfa0!important;outline-offset:4px!important}
body :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea){background-color:#111214;color:var(--text);border-color:#817047;accent-color:var(--gold)}
body :is(input[type=checkbox],input[type=radio]){accent-color:var(--gold)}
body button.danger,body .button.danger{background:#341711;border:1px solid #b26957;border-radius:6px;color:#f6d8cf}
body button[aria-pressed=true],body .brand-chips button.active{outline:2px solid var(--gold2);outline-offset:2px}
.member-credit-feature{background:linear-gradient(115deg,#f3e9cd,#dfce9f);border-color:#c8ab60;color:#252622}
.member-credit-feature :is(h2,h3,strong,p,small,span){color:inherit}
@media(prefers-reduced-motion:reduce){body :is(button,.button,input[type=submit]){transition:none}}
.hearth-flow-view{background:radial-gradient(circle at top left,#c8ab6009,transparent 34%),linear-gradient(180deg,#141517,#101112);color:var(--text)}
.hearth-flow-card{background:linear-gradient(180deg,#242527,#191a1c);border-color:var(--line)}
.hearth-flow-view h1,.hearth-flow-view h2{color:var(--text)}
.hearth-flow-muted,.hearth-flow-field .field-note{color:var(--muted)}
body .catalog-tab:not(.active){background:linear-gradient(135deg,#232426,#101112)!important;color:var(--text)!important}
body .catalog-tab.active,body .journal-btn.active{outline:2px solid var(--gold2);outline-offset:2px}
/* Soft satin-gold rims shared by information boxes and cards, including dynamic cards. */
:root{--hearth-card-rim:linear-gradient(125deg,#f2dfaa,#ad8d42 45%,#e4ce8d 75%,#92743a);--hearth-card-face:linear-gradient(135deg,#202123,#111214)}
body :is(.status-card,.panel,.metric,.metric-grid article,.cards article,.card,.cigar-card,.event-card,.catalog-filter-panel,.catalog-pairing-card,.membership-card,.membership-notes,.signup-panel,.signup-summary,.signup-terms,.membership-change-summary,.hearth-flow-card,.hearth-panel,.hearth-credit-card,.hearth-rec,.hearth-alert-row,.hearth-empty,.settings-form,.push-device-state,.smoker-profile-private,.smoker-profile-item,.wishlist-modal-card,.store-wishlist-item,.journal-entry,.journal-profile,.downstairs-rental,.hours-panel,.shortcut-grid a,.operation,.access-card,.customer-modal-card,.profile-stat,.profile-section,.staff-credit-card,.match-chip,.match-account,.match-result,.match-decision,.profile-preview-banner,.arrival-review){
  border:1px solid transparent;
  border-radius:12px;
  background:var(--hearth-card-face) padding-box,var(--hearth-card-rim) border-box;
  box-shadow:inset 0 1px 0 #e9d59924,0 4px 14px #0004;
}
/* Keep the credit balance's light surface and semantic notices distinct. */
body .member-credit-feature{border:1px solid transparent;border-radius:12px;background:linear-gradient(115deg,#f3e9cd,#dfce9f) padding-box,var(--hearth-card-rim) border-box;box-shadow:inset 0 1px 0 #fff4d5,0 4px 14px #0004}
body :is(.status-card,.panel,.card,.cigar-card,.hearth-credit-card,.push-device-state,.match-decision).error{border-color:var(--red,#e29983)}
/* Catalog search and every filter share the cards' satin-gold rim. */
body #live-catalog :is(input:not([type=checkbox]):not([type=radio]),select){
  border:1px solid transparent;
  border-radius:12px;
  background:var(--hearth-card-face) padding-box,var(--hearth-card-rim) border-box;
  color:var(--text);
  box-shadow:inset 0 1px 0 #e9d59924,0 3px 9px #0003;
}
body #live-catalog input::placeholder{color:var(--muted);opacity:1}
body #live-catalog select option{background:#191a1c;color:var(--text)}
/* Complete the member-field and bordered-photo treatment. */
body :is(select,.smoker-match-badge){border:1px solid transparent!important;border-radius:10px;background:var(--hearth-card-face) padding-box,var(--hearth-card-rim) border-box!important;color:var(--text);box-shadow:inset 0 1px 0 #e9d59924,0 3px 9px #0003}
body select option{background:#191a1c;color:var(--text)}
body .smoker-match-badge{color:var(--gold2)}
body .gallery-card{border:1px solid transparent;border-radius:12px;background:var(--hearth-card-face) padding-box,var(--hearth-card-rim) border-box;padding:2px;box-shadow:inset 0 1px 0 #e9d59924,0 4px 14px #0004}
body .gallery-card img{border-radius:9px}
body :is(.intro img,.split img,.visit img,.feature){border:1px solid #d8c085;border-radius:12px;box-shadow:0 0 0 1px #92743a66,0 4px 14px #0004}
.hearth-zoomable{cursor:zoom-in}
body .photo-expand{position:absolute;right:12px;bottom:12px;padding:7px 11px;font:600 .8rem/1.3 system-ui;z-index:1}
#hearth-photo-viewer{width:min(1200px,96vw);max-width:96vw;max-height:94dvh;padding:16px;border:1px solid #d8c085;border-radius:14px;background:#111214;color:var(--text);box-shadow:0 24px 80px #0009}
#hearth-photo-viewer::backdrop{background:#000d}
.photo-viewer-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.photo-viewer-toolbar button{padding:9px 13px;min-height:42px}
.photo-viewer-toolbar output{min-width:52px;text-align:center}
.photo-viewer-close{margin-left:auto}
.photo-viewer-stage{height:68dvh;overflow:auto;overscroll-behavior:contain;touch-action:none;border-radius:8px;background:#08090a}
#hearth-viewer-image{display:block;max-width:none;object-fit:contain;margin:auto}
.photo-viewer-caption{margin:12px 0 0;font-size:.9rem;color:var(--muted)}
@media(max-width:600px){#hearth-photo-viewer{padding:10px}.photo-viewer-toolbar{gap:6px}.photo-viewer-toolbar button{padding:8px 10px}.photo-viewer-stage{height:62dvh}}

.photo-viewer-stage img{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}

/* Photo-only presentation, with an outside gutter for touch dismissal. */
#hearth-photo-viewer{padding:8px;width:min(1200px,92vw);max-width:92vw;max-height:92dvh;overflow:hidden}
#hearth-photo-viewer .photo-viewer-stage{height:82dvh;scrollbar-width:none;cursor:grab}
#hearth-photo-viewer .photo-viewer-stage:active{cursor:grabbing}
#hearth-photo-viewer .photo-viewer-stage::-webkit-scrollbar{display:none}
.hearth-zoomable{touch-action:manipulation}
/* Compact membership cards; one control reveals the existing full comparison. */
#memberships[data-comparison] .membership-swipe-hint{display:none}
#memberships[data-comparison] .membership-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px 0 0;overflow:visible;scroll-margin-top:100px}
#memberships[data-comparison] .membership-card.featured{transform:none}
#memberships[data-comparison=collapsed] .membership-grid{max-width:calc(60% - 4.8px);margin-inline:auto}
#memberships[data-comparison=collapsed] .membership-card{padding:16px;min-height:210px;min-width:0}
#memberships[data-comparison=collapsed] .membership-card .eyebrow{font-size:.68rem;margin:8px 0 6px}
#memberships[data-comparison=collapsed] .membership-card h3{font-size:1.65rem;margin:8px 0 20px;line-height:1.2}
#memberships[data-comparison=collapsed] .membership-card h3 span{font-size:.8rem}
#memberships[data-comparison=collapsed] :is(.tier-copy,.membership-card ul,.small-note){display:none}
#memberships[data-comparison=collapsed] .membership-card .membership-choose{margin-top:auto;font-size:.8rem;padding:9px 11px}
#memberships[data-comparison=collapsed] .tier-badge{font-size:.64rem;padding:5px 9px;right:12px;top:-12px}
.membership-compare-actions{display:flex;justify-content:center;margin-top:24px}
@media(max-width:1100px){#memberships[data-comparison=collapsed] .membership-grid{max-width:calc(75% - 3px)}}
@media(max-width:820px){#memberships[data-comparison] .membership-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#memberships[data-comparison=collapsed] .membership-grid{max-width:100%}#memberships[data-comparison=expanded] .membership-grid{grid-template-columns:1fr}}
@media(max-width:520px){#memberships[data-comparison] .membership-grid{grid-template-columns:1fr}#memberships[data-comparison=collapsed] .membership-card{min-height:190px}}
/* Personal greeting sits between the shield and navigation/account actions. */
.header-greeting{color:var(--gold2);font-size:.95rem;font-weight:500;line-height:1.3;min-width:0;max-width:200px;margin:0 18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-greeting[hidden]{display:none}
.site-header .brand,.site-header .header-actions{flex-shrink:0}
@media(min-width:851px){.site-header:has(.header-greeting:not([hidden])) .nav{gap:14px}.header-greeting{flex:1}}
@media(max-width:850px){.header-greeting{flex:1;margin:0 12px;max-width:none}}
@media(max-width:480px){.header-greeting{font-size:.8rem;margin:0 7px;white-space:normal;overflow-wrap:anywhere;max-height:2.6em}.site-header{padding-inline:12px}.site-header .header-actions{gap:6px}.site-header .header-actions :is(.button.small,.nav-toggle){padding:8px;font-size:.8rem}}
.portal-membership-stack{display:grid;gap:12px;align-content:start;min-width:0}
.portal-disclosure{border:1px solid transparent;border-radius:12px;background:var(--hearth-card-face) padding-box,var(--hearth-card-rim) border-box;overflow:hidden}
.portal-disclosure>summary{padding:18px;cursor:pointer;list-style:none;display:flex;flex-direction:column;gap:7px;position:relative;padding-right:42px}
.portal-disclosure>summary::-webkit-details-marker{display:none}
.portal-disclosure>summary:after{content:'+';position:absolute;right:18px;top:22px;color:var(--gold2);font-size:1.3rem}
.portal-disclosure[open]>summary:after{content:'−'}
.portal-disclosure-label{color:var(--gold2);font-size:.75rem;text-transform:uppercase;letter-spacing:.1em}
.portal-disclosure-value{font-family:Georgia,serif;font-size:1.5rem;font-weight:500}
#portalCreditCard .portal-disclosure-value{color:var(--gold2)}
body .portal-disclosure :is(#connectedBenefitsPanel,#connectedMonthlyCredit){margin:0;padding:18px;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}
#connectedMonthlyCredit .member-credit-layout{display:block}#connectedMonthlyCredit .member-credit-amount{font-size:2rem}#connectedMonthlyCredit .member-credit-heading{font-size:1.2rem}#connectedMonthlyCredit .member-credit-info{margin-top:12px}
.portal-top-actions,.portal-settings-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.portal-settings-nav{margin:20px 0}.portal-settings-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#portalView [hidden]{display:none!important}
#connectedCigarJournal,#connectedAccountSettings{scroll-margin-top:110px;margin-bottom:18px}
.portal-section-close{margin-top:20px}.portal-event-controls{display:grid;gap:12px}.portal-event-control{display:flex;align-items:center;justify-content:space-between;gap:14px}
@media(max-width:850px){.portal-settings-group{grid-template-columns:1fr}.hearth-portal-head{flex-wrap:wrap}.portal-top-actions{width:100%}}
@media(max-width:480px){#headerJournal{font-size:.7rem;padding:7px}.header-greeting{font-size:.7rem}.site-header .header-actions{gap:4px}}

.purchase-history-receipt{border:1px solid var(--gold);border-radius:12px;margin:12px 0;padding:14px 18px}.purchase-history-receipt summary{cursor:pointer;color:var(--gold2);font-weight:600}.purchase-history-receipt li{margin:8px 0;overflow-wrap:anywhere}

.portal-disclosure>.hearth-panel{margin:0!important;padding:18px!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;min-width:0}
.portal-disclosure>.hearth-panel h2{font-size:1.5rem}.portal-disclosure .hearth-panel-title-row,.portal-disclosure .wishlist-heading-actions{flex-wrap:wrap;gap:10px}
.portal-disclosure .smoker-profile-grid{grid-template-columns:1fr}.portal-disclosure .hearth-alert-list{grid-template-columns:1fr}.portal-disclosure .hearth-flow-muted{font-size:.9rem}.portal-disclosure-value:empty{display:none}
