/* ============================================================
   Heventa — shared design system  ·  "Ledger" mode
   Paper letterhead sheet on a desk · ink toolbar · seal accents
   Reference: ref/Heventa_Venue_Shortlist.html  (client-approved)
   ============================================================ */

:root {
  /* Palette (locked) */
  --paper:     #FBF8F2;
  --ink:       #211C16;
  --ink-soft:  #5E5446;
  --ink-faint: #8E8270;
  --seal:      #A6322A;
  --seal-dark: #8f2a23;
  --hair:      #DED4C2;
  --card:      #ffffff;
  --desk:      #EAE6DE;
  --pill-bg:   #F0E9DC;

  /* Type */
  --serif: Georgia, "Times New Roman", "Noto Serif CJK SC", serif;
  --sans:  "Helvetica Neue", Arial, "Noto Sans CJK SC", "PingFang SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { background: var(--desk); }
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Ink toolbar / letterhead bar (sticky) ---- */
.toolbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: 16px;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px;
}
.toolbar .tb-title { font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
.toolbar .tb-title .ev { color: var(--seal); }
.toolbar .tb-hint { font-size: 11.5px; color: #C9BCA6; flex: 1; line-height: 1.45; }
.toolbar nav { display: flex; gap: 22px; margin-left: auto; }
.toolbar nav a {
  color: #C9BCA6; text-decoration: none;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
}
.toolbar nav a:hover { color: #fff; }
.toolbar .tb-btn {
  background: var(--seal); color: #fff; border: 0; border-radius: 6px;
  padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; text-decoration: none; display: inline-block;
}
.toolbar .tb-btn:hover { background: var(--seal-dark); }

/* ---- Paper sheet ---- */
.wrap {
  max-width: 9.4in; margin: 24px auto;
  background: var(--paper);
  box-shadow: 0 6px 30px rgba(0,0,0,.16);
  padding: 0.7in 0.8in 0.6in;
  position: relative;
}
.corner {
  position: absolute; top: 0; right: 0; width: 3in; height: 3in;
  background: radial-gradient(circle at top right,
    rgba(166,50,42,0.06), rgba(166,50,42,0) 70%);
  pointer-events: none;
}

/* ---- Wordmark / tagline ---- */
.wordmark { font-family: var(--serif); font-weight: 700; line-height: 1; }
.wordmark .ev { color: var(--seal); }
.tagline { font-size: 9pt; letter-spacing: 1.3px; color: var(--ink-soft); }
.tagline .zh { letter-spacing: 3px; }
.tagline .sep { color: var(--hair); }

hr.rule { height: 1px; background: var(--hair); border: 0; }

/* ---- Headings ---- */
.kicker {
  font-size: 9pt; letter-spacing: 4px; text-transform: uppercase;
  color: var(--seal); font-weight: 700;
}
h1 { font-family: var(--serif); font-weight: 700; line-height: 1.08; }
h2 {
  font-family: var(--serif); font-size: 13pt; font-weight: 700;
  position: relative; z-index: 2;
}
h2 .sub {
  display: block; font-family: var(--sans); font-size: 8.5pt; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 2px;
}
h3 { font-family: var(--serif); font-weight: 700; }

a { color: var(--seal); }
a:hover { text-decoration: underline; }

/* ---- Pills & tags ---- */
.pill {
  display: inline-block; font-size: 8pt; font-weight: 700; letter-spacing: .4px;
  padding: 2px 8px; border-radius: 20px;
  background: var(--pill-bg); color: var(--ink-soft);
  border: 1px solid var(--hair); white-space: nowrap;
}
.pill.live { background: #F3E2DF; color: var(--seal); border-color: #E4C7C2; }

/* ---- Buttons (inside the sheet) ---- */
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 10pt; font-weight: 700; letter-spacing: .3px;
  padding: 10px 20px; border-radius: 6px; cursor: pointer;
  text-decoration: none; border: 1px solid var(--ink); color: var(--ink);
  background: transparent; transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-seal { background: var(--seal); border-color: var(--seal); color: #fff; }
.btn-seal:hover { background: var(--seal-dark); border-color: var(--seal-dark); color: #fff; }

/* ---- Tables ---- */
table.ledger { width: 100%; border-collapse: collapse; position: relative; z-index: 2; font-size: 9.5pt; }
table.ledger thead th {
  text-align: left; font-size: 8pt; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700;
  border-bottom: 2px solid var(--hair); padding: 8px 10px;
}
table.ledger tbody td {
  border-bottom: 1px solid var(--hair); padding: 10px; vertical-align: top;
}
table.ledger tbody tr.clickable { cursor: pointer; }
table.ledger tbody tr:hover { background: rgba(166,50,42,.045); }
.vname { font-weight: 700; color: var(--ink); font-size: 10.5pt; }
.vlinks { margin-top: 3px; font-size: 8.5pt; }
.vlinks a { color: var(--seal); text-decoration: none; font-weight: 600; }
.vlinks a:hover { text-decoration: underline; }
.vlinks .dot { color: var(--hair); margin: 0 5px; }
.ttag { font-size: 8.5pt; color: var(--ink-soft); }
.price { font-weight: 700; color: var(--ink); }

/* ---- Price pin (Leaflet fallback + Google marker label echo) ---- */
.pin {
  background: var(--seal); color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 13px; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.3); border: 1.5px solid #fff;
  transform: translate(-50%, -50%);
}
.leaflet-popup-content { font-family: var(--sans); font-size: 12px; line-height: 1.5; }
.leaflet-popup-content b { font-size: 13px; }
.leaflet-popup-content a { color: var(--seal); font-weight: 600; }

/* ---- Sheet footer ---- */
footer.sheet-foot {
  margin-top: 26px; border-top: 1px solid var(--hair); padding-top: 12px;
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 9pt; color: var(--ink-faint); flex-wrap: wrap; gap: 8px;
}
.foot-brand .zh { letter-spacing: 2px; color: var(--ink-soft); }
.foot-brand .sep { color: var(--hair); margin: 0 5px; }
.foot-brand .ev { color: var(--seal); }
footer.sheet-foot a { color: var(--ink-faint); text-decoration: none; }
footer.sheet-foot a:hover { color: var(--seal); }

/* ---- Print: sheet becomes the page ---- */
@media print {
  .toolbar { display: none !important; }
  html, body { background: #fff; }
  .wrap { box-shadow: none; margin: 0; max-width: none; }
  @page { size: Letter; margin: 0.5in; }
}

@media (max-width: 640px) {
  .wrap { padding: 0.5in 0.4in; }
  .toolbar { padding: 10px 14px; gap: 10px; }
  .toolbar .tb-hint { display: none; }
}
