/* Heavenly Calendar: the tplegacy.net theme (custom-post-with-moon-calen.hbs) on the site's tokens.
   The theme's own palette mapped onto tokens.css; layout and behaviour as in the theme. */
:root {
  --hc-bg: var(--paper);
  --hc-surface: var(--white);
  --hc-surface-alt: var(--paper);
  --hc-border: var(--rule);
  --hc-border-strong: color-mix(in srgb, var(--rule) 65%, var(--ink-soft));
  --hc-text: var(--ink);
  --hc-text-muted: var(--ink-soft);
  --hc-text-dim: color-mix(in srgb, var(--ink-soft) 80%, var(--paper));
  --hc-accent: var(--seal);
  --hc-ahn: var(--ink);
  --hc-ahn-bg: var(--paper-deep);
  --hc-ahn-soft: var(--paper-deep);
  --hc-holy: var(--seal);
  --hc-holy-bg: var(--seal-wash);
  --hc-holy-soft: color-mix(in srgb, var(--seal) 10%, transparent);
  --hc-today: var(--seal);
  --hc-motion: cubic-bezier(0.2, 0, 0, 1);
}

.lunar-wrap *,.lunar-wrap *::before,.lunar-wrap *::after{ box-sizing: border-box; }

.lunar-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hc-text);
  overflow-x: hidden;
}

.lunar-wrap .hc-breadcrumb { max-width: 820px; margin: 0 auto; padding: 22px 0 0; font-size: 12px; }
.lunar-wrap .hc-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lunar-wrap .hc-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: var(--hc-text-dim); }
.lunar-wrap .hc-breadcrumb li + li::before { content: "\203A"; color: var(--hc-border-strong); }
.lunar-wrap .hc-breadcrumb a { color: var(--hc-text-muted); text-decoration: none; }
.lunar-wrap .hc-breadcrumb a:hover { color: var(--hc-accent); text-decoration: underline; }

.lunar-wrap .hc-hero { max-width: 820px; margin: 0 auto; padding: 72px 0 8px; text-align: center; }
.lunar-wrap .hc-eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hc-accent); font-weight: 700; margin: 0 0 14px; }
.lunar-wrap .hc-title { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.01em; color: var(--hc-text); margin: 0 0 18px; }
.lunar-wrap .hc-motto { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.55; color: var(--hc-text-muted); max-width: 54ch; margin: 0 auto; text-wrap: balance; }
.lunar-wrap .hc-motto-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 10px; margin: 0 auto;
  background: transparent; border: none; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hc-text-dim);
  transition: color .15s;
}
.lunar-wrap .hc-motto-toggle:hover { color: var(--hc-accent); }
.lunar-wrap .hc-motto-toggle:focus-visible { outline: 2px solid var(--hc-ahn); outline-offset: 3px; border-radius: 6px; }
.lunar-wrap .hc-motto-toggle svg { width: 13px; height: 13px; transition: transform .25s var(--hc-motion); }
.lunar-wrap .hc-motto-toggle[aria-expanded="true"] { color: var(--hc-text-muted); }
.lunar-wrap .hc-motto-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.lunar-wrap .hc-motto-wrap { overflow: hidden; max-height: 0; transition: max-height .3s var(--hc-motion); }
.lunar-wrap .hc-motto-wrap.is-open { max-height: 480px; }
.lunar-wrap .hc-motto-wrap .hc-motto { padding-top: 12px; }
.lunar-wrap .hc-lead { font-size: 15px; line-height: 1.65; color: var(--hc-text-muted); max-width: 62ch; margin: 22px auto 0; }
@media (max-width: 640px) {
  .lunar-wrap .hc-hero { padding: 40px 0 4px; }
  .lunar-wrap .hc-lead { font-size: 14px; margin-top: 16px; }
  .lunar-wrap .hc-title { font-size: clamp(30px, 9vw, 40px); margin-bottom: 12px; }
  .lunar-wrap .hc-motto { font-size: 14px; line-height: 1.5; max-width: 40ch; }
}

.lunar-wrap .lunar-today {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 20px 0 28px;
  padding: 28px 32px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.lunar-wrap .lcube {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 112px; height: 112px;
  
  padding: 0 12px;
  background: var(--seal);
  color: var(--paper);
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--paper) 25%, transparent);
  
  container-type: inline-size;
  container-name: lcube;
  overflow: hidden;
}
.lunar-wrap .lcube-num {
  font-family: var(--serif);
  font-size: clamp(22px, 44cqi, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.lunar-wrap .lcube-lbl {
  font-size: clamp(8px, 11cqi, 10.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.75;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.lunar-wrap .linfo { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.lunar-wrap .lsolar { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--ink); margin: 0; }
.lunar-wrap .lera { display: inline-block; padding: 5px 14px; background: var(--paper-deep); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink); align-self: flex-start; }

.lunar-wrap .levents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.lunar-wrap .levents:empty { display: none; }
.lunar-wrap .lchip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.lunar-wrap .lchip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--chip-accent, var(--white)); flex-shrink: 0; }
.lunar-wrap .lchip.ahn  { background: var(--paper-deep); color: var(--ink); --chip-accent: var(--ink); }
.lunar-wrap .lchip.holy { background: var(--seal-wash); color: var(--ink); --chip-accent: var(--seal); }

.lunar-wrap .lchip.is-long { border-radius: 14px; align-items: flex-start; line-height: 1.4; }
.lunar-wrap .lchip.is-long::before { margin-top: 0.45em; }

@media (max-width: 640px) {
  
  
  .lunar-wrap .lunar-today {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 8px;
    align-items: center;
    padding: 20px;
  }
  .lunar-wrap .linfo { display: contents; }
  .lunar-wrap .lcube { grid-column: 1; grid-row: 1 / span 2; width: 80px; height: 80px; padding: 0 9px; border-radius: 14px; }
  .lunar-wrap .lsolar { grid-column: 2; grid-row: 1; align-self: end; font-size: 18px; line-height: 1.25; }
  .lunar-wrap .lera { grid-column: 2; grid-row: 2; align-self: start; justify-self: start; font-size: 12px; padding: 4px 11px; }
  .lunar-wrap .levents { grid-column: 2; grid-row: 3; margin-top: 0; }
  
  .lunar-wrap .lunar-today.has-long-event .levents { grid-column: 1 / -1; margin-top: 6px; }
  .lunar-wrap .lchip { font-size: 12px; padding: 5px 11px 5px 9px; }
  .lunar-wrap .lchip.is-long { padding: 9px 14px 9px 12px; font-size: 12.5px; }
}

.lunar-wrap .lunar-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.lunar-wrap .navbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hc-border); background: var(--hc-surface); color: var(--hc-text); cursor: pointer; transition: border-color .15s, background .15s; }
.lunar-wrap .navbtn:hover { border-color: var(--hc-border-strong); background: var(--hc-surface-alt); }
.lunar-wrap .navbtn svg { width: 16px; height: 16px; }
.lunar-wrap .monthlabel { font-family: var(--serif); font-size: 22px; font-weight: 500; min-width: 200px; text-align: center; color: var(--hc-text); }

.lunar-wrap .lunar-grid { background: var(--hc-surface-alt); border: 1px solid var(--hc-border); border-radius: 20px; padding: 10px; margin-bottom: 18px; }
.lunar-wrap .grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-width: 0; }
.lunar-wrap .grid-scroll::-webkit-scrollbar { display: none; }
.lunar-wrap .dows { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--hc-surface-alt); min-width: 720px; }
.lunar-wrap .dow { display: flex; align-items: center; justify-content: center; padding: 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hc-text-muted); user-select: none; text-align: center; }
.lunar-wrap .dow.weekend { color: var(--hc-holy); opacity: 0.75; }
.lunar-wrap .cells-row { display: contents; }
.lunar-wrap .cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--hc-border); min-width: 720px; border: 1px solid var(--hc-border); border-radius: 12px; overflow: hidden; margin-top: 6px; }

.lunar-wrap .cell { position: relative; min-width: 0; aspect-ratio: 1 / 1; padding: 8px 10px 10px; background: var(--hc-surface); display: flex; flex-direction: column; gap: 4px; overflow: hidden; transition: background .15s var(--hc-motion); -webkit-tap-highlight-color: transparent; }
.lunar-wrap .cell.has-events { cursor: pointer; transition: background .15s; }
.lunar-wrap .cell.has-events:hover { background: color-mix(in srgb, var(--hc-surface) 94%, black); }
.lunar-wrap .cell.has-events:focus-visible { outline: 2px solid var(--hc-ahn); outline-offset: -2px; z-index: 2; }
.lunar-wrap .cell.muted { background: var(--hc-surface); cursor: default; }
.lunar-wrap .cell.muted .gdate, .lunar-wrap .cell.muted .lunar-inline { color: var(--hc-text-dim); opacity: 0.45; }

.lunar-wrap .cell.today .gdate { font-weight: 700; color: var(--hc-today); }
.lunar-wrap .cell.today .lunar-inline {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  background: var(--seal); color: var(--paper);
  border-radius: 50%;
  font-weight: 700; font-size: 13px; line-height: 1;
  opacity: 1;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--ink) 18%, transparent);
}

.lunar-wrap .topline { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 30px; }
.lunar-wrap .gdate { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1; color: var(--hc-text); }
.lunar-wrap .lunar-inline { font-size: 15px; font-weight: 600; color: var(--hc-ahn); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0.85; }

.lunar-wrap .labels-row { display: flex; flex-direction: column; gap: 2px; margin-top: auto; min-width: 0; max-width: 100%; }

.lunar-wrap .evt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: stretch;
  text-align: center;
  border: 1px solid transparent;
}
.lunar-wrap .evt-btn.ahn  { background: var(--hc-ahn);  color: var(--white); }
.lunar-wrap .evt-btn.holy { background: var(--hc-holy); color: var(--white); }
.lunar-wrap .evt-btn.note { background: transparent; color: var(--hc-text-muted); border-color: var(--hc-border-strong); }
.lunar-wrap .evt-arrow { font-family: var(--serif); font-size: 13px; font-weight: 600; line-height: 0.8; opacity: 0.9; }

.day-sheet { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.45); z-index: 10000; opacity: 0; pointer-events: none; transition: opacity .2s ease; backdrop-filter: blur(3px); overscroll-behavior: contain; touch-action: none; }
.day-sheet[data-open="true"] { opacity: 1; pointer-events: auto; }
.day-sheet__panel { background: var(--hc-surface); width: 100%; max-width: 520px; max-height: min(85vh, 640px); border-radius: 20px; overflow-y: auto; overscroll-behavior: contain; touch-action: auto; transform: translateY(20px) scale(0.96); opacity: 0; transition: transform .25s cubic-bezier(0.2, 0, 0, 1), opacity .2s ease; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.day-sheet[data-open="true"] .day-sheet__panel { transform: translateY(0) scale(1); opacity: 1; }
.day-sheet__handle { display: none; width: 40px; height: 4px; background: var(--hc-border-strong); border-radius: 2px; margin: 10px auto 0; }
.day-sheet__head { padding: 14px 24px 20px; border-bottom: 1px solid var(--hc-border); display: flex; align-items: flex-start; gap: 14px; }
.day-sheet__head-body { flex: 1; }
.day-sheet__eyebrow { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hc-ahn); font-weight: 700; margin: 0 0 8px; }
.day-sheet__hero { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; }
.day-sheet__md { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--hc-text); margin: 0; }
.day-sheet__era { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--hc-ahn); line-height: 1.2; }
.day-sheet__solar { font-size: 13px; color: var(--hc-text-muted); margin: 0; }
.day-sheet__close { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--hc-surface-alt); color: var(--hc-text-muted); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .15s; }
.day-sheet__close svg { width: 16px; height: 16px; display: block; }
.day-sheet__close:hover { background: color-mix(in srgb, var(--hc-text) 10%, transparent); color: var(--hc-text); }
.day-sheet__body { padding: 16px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.day-sheet__event {
  display: flex;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  gap: 12px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hc-border);
  border-radius: 0;
  transition: background .15s;
}
.day-sheet__event:last-child { border-bottom: 0; }
.day-sheet__event[data-t="ahn"]  { --ev-color: var(--hc-ahn); }
.day-sheet__event[data-t="holy"] { --ev-color: var(--hc-holy); }
.day-sheet__event::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--ev-color, var(--hc-holy)); }
.day-sheet__event:hover .day-sheet__event-name { color: var(--ev-color); }
.day-sheet__event-body { flex: 1; }
.day-sheet__event-name { font-size: 14.5px; font-weight: 600; margin: 0 0 2px; transition: color .15s; }
.day-sheet__event-meta { font-size: 12.5px; color: var(--hc-text-muted); margin: 0; }
.day-sheet__empty { padding: 16px; text-align: center; color: var(--hc-text-muted); font-size: 14px; font-style: italic; }

.lunar-wrap .legend { display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 14px 2px; margin: 0 0 40px; }
.lunar-wrap .legend dt, .lunar-wrap .legend dd { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.lunar-wrap .legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hc-text-muted); }
.lunar-wrap .legend-swatch { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.lunar-wrap .legend-swatch.blue { background: var(--hc-ahn); }
.lunar-wrap .legend-swatch.red  { background: var(--hc-holy); }
.lunar-wrap .legend-item strong { margin-right: 4px; }
.lunar-wrap .legend-note { opacity: 0.75; }
.lunar-wrap .c-blue { color: var(--hc-ahn); font-weight: 700; }
.lunar-wrap .c-red  { color: var(--hc-holy); font-weight: 700; }

.lunar-wrap .upcoming-section { margin: 0 0 48px; }
.lunar-wrap .upcoming-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lunar-wrap .upcoming-head h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.lunar-wrap .upcoming-hint { font-size: 13px; color: var(--hc-text-dim); }
.lunar-wrap .upcoming-list { display: grid; gap: 8px; }
.lunar-wrap .upcoming-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; background: var(--hc-surface); border: 1px solid var(--hc-border); border-radius: 12px; transition: transform .15s, border-color .15s, box-shadow .15s; border-left: 4px solid var(--ev-color, var(--hc-accent)); }
.lunar-wrap .upcoming-item:hover { transform: translateY(-1px); border-color: var(--hc-border-strong); box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.lunar-wrap .upcoming-item[data-type="ahn"]  { --ev-color: var(--hc-ahn); }
.lunar-wrap .upcoming-item[data-type="holy"] { --ev-color: var(--hc-holy); }
.lunar-wrap .upcoming-item[data-type="note"] { --ev-color: var(--hc-text-muted); }
.lunar-wrap .upcoming-date { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.lunar-wrap .upcoming-day { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--ev-color); }
.lunar-wrap .upcoming-weekday { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hc-text-dim); margin-top: 4px; font-weight: 700; }
.lunar-wrap .upcoming-name { font-size: 15px; font-weight: 600; margin-bottom: 3px; color: var(--hc-text); }
.lunar-wrap .upcoming-meta { font-size: 12.5px; color: var(--hc-text-muted); }
.lunar-wrap .upcoming-meta .chip { display: inline-block; padding: 0; background: transparent; color: var(--ev-color); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 10px; }
.lunar-wrap .upcoming-in { font-size: 12px; color: var(--hc-text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lunar-wrap .upcoming-empty { padding: 20px; text-align: center; color: var(--hc-text-muted); font-size: 13px; }

.lunar-wrap .calendar-embed-cta { display: flex; justify-content: center; margin: 24px 0 48px; }
.lunar-wrap .embed-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--hc-text); border: 1px solid var(--hc-border); border-radius: 999px; padding: 10px 22px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all .15s; }
.lunar-wrap .embed-btn:hover { border-color: var(--hc-accent); color: var(--hc-accent); }
.lunar-wrap .embed-btn.small { padding: 8px 18px; font-size: 12.5px; }
.lunar-wrap .embed-btn svg { width: 14px; height: 14px; }

.lunar-wrap .embed-dialog { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(3px); }
.lunar-wrap .embed-dialog[hidden] { display: none !important; }
.lunar-wrap .embed-dialog-inner { background: var(--hc-surface); max-width: 600px; width: calc(100% - 32px); border-radius: 18px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.lunar-wrap .embed-dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lunar-wrap .embed-dialog-header h2 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.lunar-wrap .embed-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--hc-text-muted); font-size: 22px; cursor: pointer; }
.lunar-wrap .embed-close:hover { background: var(--hc-surface-alt); }
.lunar-wrap .embed-code { width: 100%; min-height: 130px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 12px; border-radius: 8px; border: 1px solid var(--hc-border); background: var(--hc-surface-alt); color: var(--hc-text); resize: vertical; margin: 8px 0 0; }
.lunar-wrap .embed-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
.lunar-wrap .embed-note { margin-top: 10px; font-size: 12px; color: var(--hc-text-muted); line-height: 1.5; }
.lunar-wrap .embed-note code { background: var(--hc-surface-alt); border-radius: 4px; padding: 1px 5px; font-size: 11px; }

body.is-embed .hc-breadcrumb,
body.is-embed .hc-hero,
body.is-embed .calendar-embed-cta,
body.is-embed .faq-section,
body.is-embed .cal-wheel-section,
body.is-embed .upcoming-section { display: none; }

body.is-embed header,
body.is-embed nav,
body.is-embed footer:not(.embed-attribution),
body.is-embed .gh-head,
body.is-embed .gh-foot,
body.is-embed .gh-navigation,
body.is-embed .site-header,
body.is-embed .site-footer,
body.is-embed .site-nav,
body.is-embed .subscribe-form,
body.is-embed .members-form,
body.is-embed .floating-header,
body.is-embed .gh-portal-triggerbtn-wrapper,
body.is-embed [data-portal] { display: none !important; }

html.is-embed,
body.is-embed {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body.is-embed .lunar-wrap { margin: 0; padding: 8px 8px 64px; }

.embed-attribution { display: none; }
body.is-embed .embed-attribution {
  color: var(--paper) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
body.is-embed .embed-attribution a {
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .15s;
}
body.is-embed .embed-attribution a:hover { opacity: 0.85; text-decoration: underline; }
body.is-embed .embed-attribution__brand { font-weight: 700; }
body.is-embed .embed-attribution__icon { width: 14px; height: 14px; }
body.is-embed .embed-attribution__sep { color: color-mix(in srgb, var(--paper) 40%, transparent); }
body.is-embed .embed-attribution__link { font-weight: 500; }

.lunar-wrap .cal-section { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem; font-family: var(--sans); color: var(--ink); }
.lunar-wrap .cal-eyebrow { font-size: 10px; letter-spacing: 0.18em; color: var(--ink-soft); text-align: center; margin: 0 0 12px; text-transform: uppercase; }
.lunar-wrap .cal-heading { font-family: var(--serif); font-size: 28px; font-weight: 500; text-align: center; margin: 0 0 10px; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.lunar-wrap .cal-subtitle { font-size: 14px; color: var(--ink-soft); text-align: center; margin: 0 auto 26px; max-width: 480px; line-height: 1.65; }
.lunar-wrap .cal-svg { width: 100%; height: auto; display: block; max-width: 720px; margin: 0 auto; }

.lunar-wrap .cal-data-details { margin: 18px 0 0; }
.lunar-wrap .cal-data-summary { font-size: 12px; line-height: 1.6; color: var(--ink-soft); cursor: pointer; }
.lunar-wrap .cal-data-summary:hover { color: var(--seal); }
.lunar-wrap .cal-data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 12px; }
.lunar-wrap .cal-data-table caption { text-align: left; font-size: 11.5px; line-height: 1.5; color: var(--ink-soft); padding-bottom: 8px; }
.lunar-wrap .cal-data-table th, .lunar-wrap .cal-data-table td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule); font-weight: 400; color: var(--ink); }
.lunar-wrap .cal-data-table thead th { color: var(--ink-soft); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.lunar-wrap .cal-data-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.lunar-wrap .cal-data-table thead th:last-child { text-align: right; }
.lunar-wrap .cal-data-table a { color: var(--ink); text-decoration: none; }
.lunar-wrap .cal-data-table a:hover { text-decoration: underline; }
.lunar-wrap .cal-sector { transition: opacity 0.2s; }
.lunar-wrap .cal-sector:hover { opacity: 0.55; }
.lunar-wrap .cal-dot { cursor: pointer; transition: r 0.15s, stroke-width 0.15s; }
.lunar-wrap .cal-dot:hover, .lunar-wrap .cal-dot:focus-visible { stroke: var(--seal); stroke-width: 3.5; outline: none; }
.lunar-wrap .cal-label { cursor: pointer; outline: none; }
.lunar-wrap .cal-label:hover text, .lunar-wrap .cal-label:focus-visible text { fill: var(--seal) !important; }

.lunar-wrap .cal-modal-bg { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 55%, transparent); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 9999; opacity: 0; transition: opacity 0.2s; }
.lunar-wrap .cal-modal-bg.show { display: flex; opacity: 1; }
.lunar-wrap .cal-modal { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; max-width: 460px; width: 100%; padding: 32px 32px 28px; box-shadow: 0 12px 40px rgba(0,0,0,0.18); transform: translateY(8px); transition: transform 0.2s; position: relative; font-family: var(--sans); }
.lunar-wrap .cal-modal-bg.show .cal-modal { transform: translateY(0); }
.lunar-wrap .cal-modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: none; background: transparent; cursor: pointer; font-size: 22px; color: var(--ink-soft); line-height: 1; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.15s, color 0.15s; }
.lunar-wrap .cal-modal-close:hover { background: var(--rule); color: var(--ink); }
.lunar-wrap .cal-mod-eyebrow { font-size: 10px; letter-spacing: 0.18em; color: var(--seal); text-transform: uppercase; margin: 0 0 8px; font-weight: 500; }
.lunar-wrap .cal-mod-name { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0 0 6px; line-height: 1.2; color: var(--ink); }
.lunar-wrap .cal-mod-korean { font-family: var(--kr); font-size: 16px; color: var(--ink-soft); margin: 0 0 4px; font-weight: 400; }
.lunar-wrap .cal-mod-hanja { font-family: var(--kr); font-size: 13px; color: var(--ink-soft); margin: 0 0 16px; letter-spacing: 0.04em; }
.lunar-wrap .cal-mod-meta { font-size: 11px; letter-spacing: 0.12em; color: var(--ink-soft); text-transform: uppercase; margin: 0 0 14px; padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lunar-wrap .cal-mod-desc { font-size: 14px; line-height: 1.65; color: var(--ink); margin: 0 0 20px; font-family: var(--serif); }
.lunar-wrap .cal-mod-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; background: var(--ink); color: var(--white); text-decoration: none; border-radius: 6px; font-size: 13px; font-weight: 500; transition: background 0.15s; }
.lunar-wrap .cal-mod-link:hover { background: var(--seal); }
.lunar-wrap .cal-mod-link::after { content: '→'; font-size: 14px; }

@media (max-width: 600px) {
  .lunar-wrap .cal-section { padding: 2rem 1rem; }
  .lunar-wrap .cal-heading { font-size: 22px; }
  .lunar-wrap .cal-modal { padding: 24px 22px 22px; }
  .lunar-wrap .cal-mod-name { font-size: 20px; }
  .lunar-wrap .cal-svg { overflow: visible; }
  .lunar-wrap .cal-svg .cal-label text:first-child { font-size: 22px; }
  .lunar-wrap .cal-svg .cal-label text:last-child { font-size: 16px; }
  .lunar-wrap .cal-svg .cal-month-numbers text { font-size: 18px; }

  
  .lunar-wrap .cal-section .cal-eyebrow,
  .lunar-wrap .cal-section .cal-heading,
  .lunar-wrap .cal-section .cal-subtitle { text-align: left; }
  .lunar-wrap .cal-section .cal-subtitle { margin-left: 0; margin-right: 0; max-width: 100%; }
}

.lunar-wrap .faq-section { max-width: 820px; margin: 80px auto; padding: 0 20px; }
.lunar-wrap .faq-header { text-align: center; margin-bottom: 36px; }
.lunar-wrap .faq-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hc-accent); margin: 0 0 12px; }
.lunar-wrap .faq-title { font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 500; color: var(--hc-text); margin: 0 0 12px; line-height: 1.15; letter-spacing: -0.01em; }
.lunar-wrap .faq-subtitle { font-size: 0.95rem; color: var(--hc-text-muted); margin: 0 auto; max-width: 520px; line-height: 1.6; }
.lunar-wrap .faq-list { display: flex; flex-direction: column; gap: 8px; }
.lunar-wrap .faq-item { background: var(--hc-surface); border: 1px solid var(--hc-border); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.lunar-wrap .faq-item[open] { border-color: var(--hc-border-strong); box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.lunar-wrap .faq-trigger { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; min-height: 60px; }
.lunar-wrap .faq-trigger::-webkit-details-marker { display: none; }
.lunar-wrap .faq-trigger:hover { background: var(--hc-surface-alt); }
.lunar-wrap .faq-question { font-size: 0.95rem; font-weight: 600; color: var(--hc-text); line-height: 1.45; margin: 0; flex: 1; }
.lunar-wrap .faq-icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--hc-surface-alt); color: var(--hc-text-muted); display: grid; place-items: center; transition: background .2s, color .2s, transform .25s var(--hc-motion); }
.lunar-wrap .faq-item[open] .faq-icon { background: var(--hc-accent); color: var(--white); transform: rotate(180deg); }
.lunar-wrap .faq-icon svg { width: 14px; height: 14px; }
.lunar-wrap .faq-panel { padding: 0 20px 20px; }
.lunar-wrap .faq-answer { font-size: 0.95rem; line-height: 1.75; color: var(--hc-text-muted); margin: 0; }
.lunar-wrap .faq-answer a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.lunar-wrap .faq-answer a:hover { text-decoration-thickness: 2px; }

@media (max-width: 768px) {
  .lunar-wrap .lunar-today { padding: 18px 18px; gap: 16px; }
  .lunar-wrap .cell { padding: 6px 7px 8px; }
  .lunar-wrap .gdate { font-size: 15px; }
  .lunar-wrap .lunar-inline { font-size: 12px; }
  .lunar-wrap .dow { padding: 10px 8px; font-size: 10px; }
  .lunar-wrap .evt-btn { padding: 3px 5px; font-size: 8.5px; letter-spacing: 0.02em; gap: 2px; }
  .lunar-wrap .evt-arrow { font-size: 11px; }
  .lunar-wrap .upcoming-item { grid-template-columns: 60px 1fr; padding: 12px 14px; }
  .lunar-wrap .upcoming-in { grid-column: 2; font-size: 11px; margin-top: 4px; }
  .lunar-wrap .upcoming-day { font-size: 26px; }
  .lunar-wrap .faq-section { margin: 60px auto; }
  .lunar-wrap .faq-trigger { padding: 16px; }
  .lunar-wrap .faq-question { font-size: 0.9rem; }
  .lunar-wrap .faq-answer { font-size: 0.9rem; line-height: 1.7; }

  
  .lunar-wrap .faq-header { text-align: left; }
  .lunar-wrap .faq-subtitle { margin-left: 0; margin-right: 0; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {.lunar-wrap *,.lunar-wrap *::before,.lunar-wrap *::after{ transition: none !important; animation: none !important; }
}

.lunar-wrap .hc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -12px 0 22px;
}

.lunar-wrap .hc-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--hc-border-strong);
  border-radius: 999px;
  background: var(--hc-surface);
  color: var(--hc-text);
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s, color .15s;
}
.lunar-wrap .hc-act svg { width: 17px; height: 17px; flex-shrink: 0; }
.lunar-wrap .hc-act:hover { border-color: var(--hc-accent); color: var(--hc-accent); }
.lunar-wrap .hc-act:focus-visible { outline: 2px solid var(--hc-ahn); outline-offset: 2px; }

.lunar-wrap .hc-act--ghost { font-weight: 500; font-size: 13px; border-color: var(--hc-border); color: var(--hc-text-muted); }
.lunar-wrap .hc-act--ghost svg { width: 15px; height: 15px; }

.lunar-wrap .hc-act[aria-expanded="true"] { background: var(--hc-accent); border-color: var(--hc-accent); color: var(--white); }

@media (max-width: 560px) {
  .lunar-wrap .hc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }
  .lunar-wrap .hc-act { width: 100%; padding: 11px 12px; font-size: 13.5px; }
  .lunar-wrap .hc-act--wide { grid-column: 1 / -1; }
}

.lunar-wrap .hc-panel {
  border: 1px solid var(--hc-border-strong);
  border-radius: 18px;
  background: var(--hc-surface);
  padding: 22px 24px 24px;
  margin: 0 0 22px;
}
.lunar-wrap .hc-panel[hidden] { display: none; }
.lunar-wrap .hc-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.lunar-wrap .hc-panel__title { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0; }
.lunar-wrap .hc-panel__close {
  width: 32px; height: 32px; flex-shrink: 0;
  border: none; border-radius: 50%; background: transparent;
  color: var(--hc-text-dim); font-size: 24px; line-height: 1; cursor: pointer;
}
.lunar-wrap .hc-panel__close:hover { background: var(--hc-surface-alt); color: var(--hc-text); }

.lunar-wrap .hc-panel__lbl {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hc-text-dim); margin: 20px 0 9px;
}
.lunar-wrap .hc-panel__lbl:first-of-type { margin-top: 0; }
.lunar-wrap .hc-panel__note { font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--hc-text-dim); }
.lunar-wrap .hc-panel__note--block { display: block; margin: 12px 0 0; line-height: 1.6; }
.lunar-wrap .hc-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }

.lunar-wrap .hc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--hc-border-strong); border-radius: 999px;
  background: var(--hc-surface); color: var(--hc-text);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s, color .15s;
}
.lunar-wrap .hc-btn svg { width: 16px; height: 16px; }
.lunar-wrap .hc-btn:hover { border-color: var(--hc-accent); color: var(--hc-accent); }
.lunar-wrap .hc-btn--primary { min-width: 220px; background: var(--hc-ahn); border-color: var(--hc-ahn); color: var(--white); }
.lunar-wrap .hc-btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (max-width: 560px) {
  .lunar-wrap .hc-btn { width: 100%; }
  .lunar-wrap .hc-panel__actions { gap: 8px; }
}

.lunar-wrap .hc-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.lunar-wrap .hc-seg--years { margin: 16px 0 10px; }
.lunar-wrap .hc-seg__btn {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 14px;
  border: 1px solid var(--hc-border); border-radius: 12px;
  background: var(--hc-surface); color: var(--hc-text);
  font: inherit; font-size: 13px; font-weight: 600; text-align: left;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.lunar-wrap .hc-seg__btn span { font-size: 10.5px; font-weight: 400; color: var(--hc-text-dim); }
.lunar-wrap .hc-seg__btn:hover { border-color: var(--hc-border-strong); }
.lunar-wrap .hc-seg__btn.is-on { border-color: var(--hc-text); background: var(--hc-surface-alt); }

.lunar-wrap .hc-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.lunar-wrap .hc-check input { width: 16px; height: 16px; accent-color: var(--hc-ahn); cursor: pointer; }
.lunar-wrap .hc-check input:disabled { cursor: default; }
.lunar-wrap .hc-check__hint { color: var(--hc-text-dim); font-size: 12.5px; }

.lunar-wrap .hc-sub { background: var(--hc-ahn-soft); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.lunar-wrap .hc-sub__text { font-size: 14.5px; line-height: 1.65; color: var(--hc-text); margin: 0 0 16px; }
.lunar-wrap .hc-sub__foot { font-size: 12.5px; line-height: 1.6; color: var(--hc-text-muted); margin: 14px 0 0; }
.lunar-wrap .hc-sub__url {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 8px 11px; border-radius: 8px; background: var(--hc-surface-alt);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--hc-ahn);
}

.lunar-wrap .hc-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lunar-wrap .hc-choice__btn {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--hc-border-strong); border-radius: 12px;
  background: var(--hc-surface); text-decoration: none;
  transition: border-color .15s, transform .12s;
}
.lunar-wrap .hc-choice__btn:hover { border-color: var(--hc-ahn); transform: translateY(-1px); }
.lunar-wrap .hc-choice__btn:focus-visible { outline: 2px solid var(--hc-ahn); outline-offset: 2px; }
.lunar-wrap .hc-choice__name { font-size: 14.5px; font-weight: 700; color: var(--hc-text); }
.lunar-wrap .hc-choice__hint { font-size: 11.5px; color: var(--hc-text-dim); }
@media (max-width: 560px) {
  .lunar-wrap .hc-choice { grid-template-columns: 1fr; gap: 8px; }
  .lunar-wrap .hc-choice__btn { flex-direction: row; align-items: baseline; gap: 8px; padding: 12px 14px; }
}

.lunar-wrap .hc-more { border-top: 1px solid var(--hc-border); padding-top: 14px; }
.lunar-wrap .hc-more__sum { font-size: 13px; color: var(--hc-text-muted); cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 7px; }
.lunar-wrap .hc-more__sum::-webkit-details-marker { display: none; }
.lunar-wrap .hc-more__sum::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--hc-border-strong); border-radius: 50%; font-size: 13px; line-height: 1; }
.lunar-wrap .hc-more[open] .hc-more__sum::before { content: "\2212"; }
.lunar-wrap .hc-more__sum:hover { color: var(--hc-accent); }
.lunar-wrap .hc-more__body { padding-top: 14px; }

.lunar-wrap .hc-embed-data { border-top: 1px solid var(--hc-border); margin-top: 16px; padding-top: 14px; }
.lunar-wrap .hc-embed-data__h { font-size: 13px; font-weight: 700; margin: 0 0 5px; color: var(--hc-text); }
.lunar-wrap .hc-embed-data a { color: var(--hc-ahn); font-weight: 600; }

.lunar-wrap .hc-preview {
  position: relative;
  height: 460px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--hc-surface-alt);
  border: 1px solid var(--hc-border);
  border-radius: 14px;
  --hc-preview-pad: 16px;
}
.lunar-wrap .hc-preview__inner {
  position: absolute;
  top: var(--hc-preview-pad);
  left: var(--hc-preview-pad);
  width: 794px;
  transform: scale(0.44);
  transform-origin: top left;
}
@media (max-width: 640px) {
  .lunar-wrap .hc-preview { --hc-preview-pad: 8px; }
}

.hc-print-root { font-family: var(--sans); color: var(--ink); }
.hc-page {
  width: 794px; min-height: 1123px;
  background: var(--white);
  padding: 34px 38px 30px;
  margin: 0 0 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
  display: flex; flex-direction: column;
}
.hc-page:last-child { margin-bottom: 0; }

.hc-page__head { text-align: center; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; margin-bottom: 16px; }
.hc-page__title { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 0 0 3px; }
.hc-page__sub { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

.hc-page__foot { margin-top: auto; padding-top: 12px; text-align: center; font-size: 8.5px; color: var(--ink-soft); letter-spacing: 0.04em; }

.hc-mgrid { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.hc-mgrid__dow { padding: 6px 4px; text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hc-mcell { min-height: 96px; padding: 5px 6px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hc-mcell--muted { background: var(--paper); }
.hc-mcell--muted .hc-mcell__num, .hc-mcell--muted .hc-mcell__md { color: var(--rule); }
.hc-mcell__top { display: flex; align-items: baseline; justify-content: space-between; }
.hc-mcell__num { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.hc-mcell__md { font-size: 9px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hc-mcell--ahn .hc-mcell__num { color: var(--ink); }
.hc-mcell--holy .hc-mcell__num { color: var(--seal); font-weight: 700; }
.hc-mev { margin-top: 3px; font-size: 7.5px; line-height: 1.35; }
.hc-mev--ahn { color: var(--ink); }
.hc-mev--holy { color: var(--seal); font-weight: 700; }
.hc-mev--note { color: var(--ink-soft); }

.hc-plist { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 9px; }
.hc-plist__h { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 5px; }
.hc-plist__row { display: flex; gap: 8px; font-size: 9.5px; line-height: 1.7; }
.hc-plist__d { flex: 0 0 46px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hc-plist__n { color: var(--ink); }

.hc-year { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.hc-mini__h { text-align: center; font-family: var(--serif); font-size: 14px; font-weight: 600; margin: 0 0 3px; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.hc-mini__g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.hc-mini__dow { font-size: 6.5px; text-align: center; color: var(--ink-soft); text-transform: uppercase; }
.hc-mini__d { font-size: 8.5px; text-align: center; line-height: 1.6; font-variant-numeric: tabular-nums; }
.hc-mini__d--ahn { color: var(--ink); font-weight: 700; }
.hc-mini__d--holy { background: var(--seal); color: var(--white); border-radius: 2px; font-weight: 700; }
.hc-legend { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 9px; display: flex; gap: 20px; font-size: 9px; color: var(--ink-soft); }
.hc-legend b { font-weight: 700; }

.hc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hc-table th { text-align: left; font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1.5px solid var(--ink); padding: 0 6px 6px 0; }
.hc-table td { padding: 9px 6px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.hc-table .hc-table__n { font-weight: 600; }
.hc-table .hc-table__k { font-size: 10.5px; color: var(--ink-soft); }
.hc-table .hc-table__md { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.hc-table .hc-table__g { white-space: nowrap; font-weight: 600; text-align: right; }

.hc-print-root--bw .hc-mcell--ahn .hc-mcell__num,
.hc-print-root--bw .hc-mcell--holy .hc-mcell__num,
.hc-print-root--bw .hc-mev--ahn,
.hc-print-root--bw .hc-mev--holy,
.hc-print-root--bw .hc-mini__d--ahn { color: var(--ink); }
.hc-print-root--bw .hc-mini__d--holy { background: var(--ink); color: var(--white); }
.hc-print-root--bw .hc-mgrid__dow { background: var(--white); }

.lunar-wrap .faq-daylist { list-style: none; margin: 14px 0 16px; padding: 0; }
.lunar-wrap .faq-daylist li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--hc-border);
  font-size: 14.5px; line-height: 1.5;
}
.lunar-wrap .faq-daylist li:last-child { border-bottom: none; }
.lunar-wrap .faq-daylist__d {
  flex: 0 0 124px;
  font-weight: 700; color: var(--hc-ahn);
  font-variant-numeric: tabular-nums;
}
.lunar-wrap .faq-daylist--lunar .faq-daylist__d { flex-basis: 56px; }
.lunar-wrap .faq-daylist__n { color: var(--hc-text); }
.lunar-wrap .faq-daylist__n a { color: var(--hc-text); text-decoration: none; border-bottom: 1px solid var(--hc-border-strong); }
.lunar-wrap .faq-daylist__n a:hover { color: var(--hc-accent); border-color: var(--hc-accent); }
@media (max-width: 560px) {
  .lunar-wrap .faq-daylist li { flex-direction: column; gap: 1px; padding: 9px 0; }
  .lunar-wrap .faq-daylist__d { flex: none; font-size: 12.5px; letter-spacing: 0.02em; }
}

@media print {
  @page { size: A4 portrait; margin: 10mm; }

  html.hc-printing body * { visibility: hidden !important; }
  html.hc-printing .hc-print-root,
  html.hc-printing .hc-print-root * { visibility: visible !important; }
  html.hc-printing .hc-print-root {
    position: absolute !important; left: 0 !important; top: 0 !important;
    width: 100% !important; margin: 0 !important; padding: 0 !important;
  }
  html.hc-printing .hc-preview { position: static !important; height: auto !important; overflow: visible !important; padding: 0 !important; border: none !important; background: none !important; }
  html.hc-printing .hc-preview__inner { position: static !important; width: auto !important; transform: none !important; }
  html.hc-printing .hc-panel { border: none !important; padding: 0 !important; margin: 0 !important; }

  .hc-page {
    width: auto; min-height: 0;
    padding: 0; margin: 0;
    box-shadow: none;
    break-after: page; page-break-after: always;
  }
  .hc-page:last-child { break-after: auto; page-break-after: auto; }
  .hc-mcell, .hc-mini, .hc-plist { break-inside: avoid; page-break-inside: avoid; }
  .hc-mcell { min-height: 82px; }

  
  html:not(.hc-printing) .lunar-wrap { display: block; }
  .lunar-wrap .hc-actions, .lunar-wrap .hc-panel__head, .lunar-wrap .hc-panel__lbl, .lunar-wrap .hc-panel__actions,
  .lunar-wrap .hc-seg, .lunar-wrap .hc-check, .day-sheet, .lunar-wrap .cal-modal-bg, .lunar-wrap .embed-dialog { display: none !important; }
}

/* Site additions: things the theme did inline, the server-rendered month, the wheel on tokens. */
.lunar-wrap, .day-sheet, .embed-attribution { font-family: var(--sans); }
.lunar-wrap [hidden] { display: none !important; }
.lunar-wrap a.hc-act { text-decoration: none; }
.lunar-wrap .hc-panel__note--first { margin-top: 0; }
.lunar-wrap .lunar-warn { margin: 12px 0; padding: 10px; border-radius: 8px; background: var(--gold-wash); color: var(--ink); border: 1px solid var(--gold); font: 400 14px/1.5 var(--sans); }
.hc-legend__holy { color: var(--seal); }
.hc-legend__ahn { color: var(--ink); }
.hc-plist__md { color: var(--ink-soft); }
.hc-table__note { margin-top: 18px; font-size: 10px; line-height: 1.7; color: var(--ink-soft); }
body.is-embed nav.lunar-nav { display: flex !important; }

/* the month as a table, before the script takes over (and without JS) */
.lunar-wrap .hc-static { overflow-x: auto; background: var(--hc-surface-alt); border: 1px solid var(--hc-border); border-radius: 20px; padding: 10px; margin-bottom: 18px; }
.lunar-wrap .hc-month { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; background: var(--hc-surface); border-radius: 12px; overflow: hidden; }
.lunar-wrap .hc-month caption { caption-side: bottom; text-align: left; padding-top: 8px; font-size: 12px; color: var(--hc-text-dim); }
.lunar-wrap .hc-month th { padding: 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-text-muted); background: var(--hc-surface-alt); }
.lunar-wrap .hc-month th.weekend { color: var(--hc-holy); }
.lunar-wrap .hc-month th abbr { text-decoration: none; }
.lunar-wrap .hc-month td { vertical-align: top; height: 92px; padding: 8px 10px; border: 1px solid var(--hc-border); }
.lunar-wrap .hc-month td.muted .gdate, .lunar-wrap .hc-month td.muted .lunar-inline { opacity: .45; }
.lunar-wrap .hc-month td.today .gdate { color: var(--hc-today); font-weight: 700; }
.lunar-wrap .hc-month .evt-btn { display: block; margin-top: 4px; text-decoration: none; }

/* the wheel: the theme's drawing, coloured from the tokens */
.lunar-wrap .cal-sectors path:nth-child(odd) { fill: var(--paper-deep); }
.lunar-wrap .cal-sectors path:nth-child(even) { fill: color-mix(in srgb, var(--paper-deep) 45%, var(--white)); }
.lunar-wrap .cal-sectors path { stroke: var(--white); stroke-width: .5; }
.lunar-wrap .cal-center { fill: var(--white); stroke: var(--rule); stroke-width: .5; }
.lunar-wrap .cal-month-numbers text { fill: var(--ink-soft); font-family: var(--sans); font-weight: 600; }
.lunar-wrap .cal-leaders line { stroke: var(--rule); stroke-width: .8; }
.lunar-wrap .cal-dots circle { fill: var(--seal); stroke: var(--white); stroke-width: 2; }
.lunar-wrap .cal-label text { fill: var(--ink); font-family: var(--serif); font-weight: 500; }
.lunar-wrap .cal-label text + text { fill: var(--ink-soft); font-family: var(--sans); font-weight: 400; letter-spacing: .04em; }
.lunar-wrap .cal-center-t { fill: var(--ink-soft); font-family: var(--serif); font-style: italic; }
.lunar-wrap .cal-center-s { fill: var(--ink-soft); font-family: var(--sans); }

/* answers edited in the admin lose the theme's classes: style plain paragraphs and lists the same way */
.lunar-wrap .faq-panel p { font-size: .95rem; line-height: 1.75; color: var(--hc-text-muted); margin: 0 0 10px; }
.lunar-wrap .faq-panel p:last-child { margin-bottom: 0; }
.lunar-wrap .faq-panel a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.lunar-wrap .faq-panel ul:not(.faq-daylist) { margin: 14px 0 16px; padding-left: 18px; font-size: 14.5px; line-height: 1.7; color: var(--hc-text); }

/* ===== Redesign (docs/spec/calendar-redesign.md, docs/design/calendar-v2.html) =====
   Marks: today in ink, holy days in red, Ahn Shil Il a gold diamond, other events a grey ring. */
.lunar-wrap { --ahn-gold: #C9A048; --ahn-text: #7A5A1E; --ink-faint: #9A8F80; --cond: var(--sans); font-size: 15px; }
.lunar-wrap .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lunar-wrap .kick { font: 600 11px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.lunar-wrap .kick.r { color: var(--seal); }
.lunar-wrap .crumbs { font: 400 13px/1.4 var(--sans); color: var(--ink-soft); padding: 24px 0 0; }
.lunar-wrap .crumbs a { color: var(--ink-soft); }

.lunar-wrap .ch2 { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(24px, 4vw, 56px); align-items: end; padding: 18px 0 26px; }
.lunar-wrap .ch2 .kick { display: block; margin: 0 0 14px; }
.lunar-wrap .ch2 h1 { font: 600 clamp(40px, 5.4vw, 62px)/1 var(--serif); letter-spacing: -.03em; margin: 0 0 14px; }
.lunar-wrap .ch2 .lead, .lunar-wrap .ch2 .lead p { font-size: 18px; line-height: 1.55; color: #3e3830; margin: 0 0 16px; max-width: 52ch; }
.lunar-wrap .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lunar-wrap .act { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 99px; background: var(--white); color: var(--ink); font: 600 13px/1 var(--sans); text-decoration: none; cursor: pointer; }
.lunar-wrap .act[hidden] { display: none; }
.lunar-wrap .act:hover, .lunar-wrap .act[aria-expanded="true"] { border-color: var(--ink); }
.lunar-wrap .act svg { width: 15px; height: 15px; }

.lunar-wrap .tdy { border: 1px solid var(--ink); border-radius: 18px; background: var(--white); overflow: hidden; }
.lunar-wrap .tdy .t1 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px; }
.lunar-wrap .lun { width: 86px; height: 86px; border-radius: 14px; border: 1.5px solid var(--ink); display: grid; place-content: center; text-align: center; padding: 0 6px; }
.lunar-wrap .lun b { font: 700 34px/1 var(--serif); white-space: nowrap; }
.lunar-wrap .lun small { font: 600 9.5px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.lunar-wrap .tdy .kick { display: block; margin-bottom: 6px; }
.lunar-wrap .tdy h2 { font: 600 22px/1.2 var(--serif); margin: 0 0 6px; }
.lunar-wrap .tdy .cig { font: 500 13px/1.3 var(--sans); color: var(--ink-soft); }
.lunar-wrap .tdy .t2 { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--rule); background: var(--paper); font: 400 14px/1.4 var(--sans); }
.lunar-wrap .tdy .t2 .d { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-faint); flex: none; }
.lunar-wrap .tdy .t2 .d.h { background: var(--seal); border-color: var(--seal); }
.lunar-wrap .tdy .t2 .hn { color: var(--seal); font-weight: 600; }
.lunar-wrap .tdy .t2 .nx { color: var(--ink-soft); }
.lunar-wrap .tdy .t2 .nx b { color: var(--ink); font-weight: 600; }
.lunar-wrap .tdy .t2 a { color: inherit; }
.lunar-wrap .tdy .t2 .in { margin-left: auto; font: 600 13px/1 var(--cond); color: var(--seal); white-space: nowrap; }

.lunar-wrap .sec8 { padding: 28px 0 6px; }
.lunar-wrap .sh8 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; border-top: 2px solid var(--ink); padding-top: 12px; margin: 0 0 16px; }
.lunar-wrap .sh8 .no { font: 600 11px/1 var(--cond); letter-spacing: .08em; color: var(--seal); }
.lunar-wrap .sh8 h2 { font: 600 24px/1.15 var(--serif); margin: 0; }
.lunar-wrap .sh8 > span { font: 400 14px/1.4 var(--sans); color: var(--ink-soft); }
.lunar-wrap .sh8 .r { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.lunar-wrap .sh8 .r a { width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); text-decoration: none; font: 500 20px/1 var(--serif); }
.lunar-wrap .sh8 .r a:hover { border-color: var(--ink); }
.lunar-wrap .sh8 .r a.today-link, .lunar-wrap .sh8 .r a.pill { width: auto; padding: 0 14px; border-radius: 99px; font: 600 13px/1 var(--sans); }

.lunar-wrap .cal { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: var(--white); }
.lunar-wrap .cal th { font: 600 11px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); padding: 10px; text-align: left; border-bottom: 1px solid var(--rule); background: var(--paper); }
.lunar-wrap .cal th abbr { text-decoration: none; }
.lunar-wrap .cal td { vertical-align: top; height: 104px; padding: 9px 10px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; }
.lunar-wrap .cal tr td:last-child { border-right: 0; }
.lunar-wrap .cal tr:last-child td { border-bottom: 0; }
.lunar-wrap .cal .dn { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.lunar-wrap .cal .dn time { font: 600 16px/1 var(--serif); font-variant-numeric: tabular-nums; display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin: -5px 0 0 -5px; border-radius: 50%; }
.lunar-wrap .cal .dn span { font: 500 11.5px/1 var(--cond); color: var(--ink-faint); white-space: nowrap; }
.lunar-wrap .cal td.out { background: var(--paper); }
.lunar-wrap .cal td.out .dn time, .lunar-wrap .cal td.out .dn span { color: var(--ink-faint); opacity: .6; }
.lunar-wrap .cal td.hd { background: linear-gradient(180deg, var(--seal-wash), rgba(243, 217, 210, .25)); }
.lunar-wrap .cal td.hd .dn time { color: var(--seal); }
.lunar-wrap .cal td.now { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lunar-wrap .cal td.now .dn time { background: var(--ink); color: var(--paper); }
.lunar-wrap .cal td[data-day] { cursor: default; }
.lunar-wrap .lab { display: flex; align-items: center; gap: 5px; margin-top: 8px; font: 500 11.5px/1.25 var(--sans); text-decoration: none; color: var(--ink-soft); min-width: 0; }
.lunar-wrap .lab > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lunar-wrap a.lab:hover > span { text-decoration: underline; }
.lunar-wrap .lab i, .lunar-wrap .legend .mkh, .lunar-wrap .legend .mka, .lunar-wrap .legend .mke { flex: none; display: inline-block; }
.lunar-wrap .lab.holy { color: var(--seal); font-weight: 600; }
.lunar-wrap .lab.holy i, .lunar-wrap .mk-holy, .lunar-wrap .legend .mkh { width: 7px; height: 7px; border-radius: 50%; background: var(--seal); }
.lunar-wrap .lab.ahn { color: var(--ahn-text); font-weight: 600; }
.lunar-wrap .lab.ahn i, .lunar-wrap .mk-ahn, .lunar-wrap .legend .mka { width: 7px; height: 7px; border-radius: 2px; background: var(--ahn-gold); transform: rotate(45deg); }
.lunar-wrap .lab.note i, .lunar-wrap .mk-note, .lunar-wrap .legend .mke { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink-faint); }
.lunar-wrap .legend { display: flex; flex-wrap: wrap; gap: 18px; font: 400 13px/1.3 var(--sans); color: var(--ink-soft); margin-top: 12px; }
.lunar-wrap .legend > span { display: inline-flex; align-items: center; gap: 7px; }
.lunar-wrap .legend .t { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 600 10px/1 var(--serif); }
.lunar-wrap .legend .mkh { width: 10px; height: 10px; }
.lunar-wrap .legend .mka, .lunar-wrap .legend .mke { width: 9px; height: 9px; }
.lunar-wrap .day-list { margin-top: 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--white); padding: 10px 14px; }
.lunar-wrap .day-list h3 { font: 600 11px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 2px 0 4px; }
.lunar-wrap .day-list .lab { font-size: 14px; margin-top: 6px; }


@media (max-width: 960px) {
  .lunar-wrap .ch2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lunar-wrap { padding: 0 16px 32px; }
  .lunar-wrap .cal th { padding: 8px 4px; text-align: center; }
  .lunar-wrap .cal td { height: 58px; padding: 5px; }
  .lunar-wrap .cal .dn span { display: none; }
  .lunar-wrap .cal .lab { margin-top: 4px; display: inline-flex; }
  .lunar-wrap .cal .lab > span { display: none; }
  .lunar-wrap .cal td[data-day] { cursor: pointer; }
  .lunar-wrap .cal td.picked { box-shadow: inset 0 0 0 1.5px var(--seal); }
  .lunar-wrap .tdy .t1 { gap: 14px; padding: 16px; }
  .lunar-wrap .lun { width: 72px; height: 72px; }
  .lunar-wrap .lun b { font-size: 28px; }
  .lunar-wrap .tdy h2 { font-size: 19px; }
  .lunar-wrap .tdy .t2 { flex-wrap: wrap; padding: 12px 16px; }
  .lunar-wrap .sh8 .r { margin-left: 0; width: 100%; }
}

/* Day details (click on a day): the same marks as the month, two lines about a holy day, a link */
.day-sheet__event[data-t="holy"]::before { background: var(--seal); }
.day-sheet__event[data-t="ahn"]::before { background: #C9A048; border-radius: 2px; transform: rotate(45deg); }
.day-sheet__event[data-t="note"]::before { background: none; border: 1.5px solid #9A8F80; }
.day-sheet__event[data-t="holy"] .day-sheet__event-name { color: var(--seal); }
.day-sheet__event .day-sheet__event-meta { font: 600 11px/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: #9A8F80; margin: 0 0 3px; }
.day-sheet__event-name { font-family: var(--serif); font-size: 16px; }
.day-sheet__event-desc { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.day-sheet__event-link { display: inline-block; margin-top: 6px; font: 600 13px/1.3 var(--sans); color: var(--ink); }
.lunar-wrap .cal td[data-day] { cursor: pointer; }
.lunar-wrap .cal td[data-day]:hover { background-color: rgba(36, 32, 27, .03); }
.lunar-wrap .cal td[data-day]:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Today's row only on a holy day; month arrows drawn, centred in their circles (chat 13.10.2026) */
.lunar-wrap .tdy .t2[hidden] { display: none; }
.lunar-wrap .sh8 .r { align-self: center; }
.lunar-wrap .sh8 .r a { padding: 0; line-height: 0; }
.lunar-wrap .sh8 .r a svg { width: 18px; height: 18px; display: block; }
.lunar-wrap .sh8 .r a.today-link, .lunar-wrap .sh8 .r a.pill { height: 36px; line-height: 1; display: inline-flex; align-items: center; }
/* Next holy day: the name is the link to the holy day (no separate button) */
.lunar-wrap .next h3 a { color: inherit; text-decoration: underline; text-decoration-color: rgba(243, 237, 226, .35); text-underline-offset: .18em; }
.lunar-wrap .next h3 a:hover { text-decoration-color: #E8836F; }
.lunar-wrap .crumbs ~ .ch2 { padding-top: 10px; }
