/* =========================================================
   86'd Me: The Legal Dish
   Concept: a table set for one feature. Linen ground, white
   china cards, and the plate's dark green rim as a double rule.
   The landing page is the menu; each question is a course served
   from it. Everything is scoped to .ld so it sits inside the
   existing theme header and footer.
   ========================================================= */

.ld {
  --ld-linen: #F3EFE6;
  --ld-linen-deep: #E9E3D6;
  --ld-china: #FFFFFF;
  --ld-ink: #161616;
  --ld-body: #34322F;
  --ld-muted: #67625B;
  --ld-rule: #DCD5C7;
  --ld-rim: #1F5A3D;
  --ld-rim-soft: #E4EDE6;
  --ld-sauce: #B04416;

  --ld-serif: 'Roboto Serif', Georgia, 'Times New Roman', serif;
  --ld-sans: 'Onest', Arial, Helvetica, sans-serif;

  --ld-title: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  --ld-h1: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
  --ld-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --ld-dish: clamp(1.3125rem, 1.15rem + 0.7vw, 1.75rem);
  --ld-read: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);

  --ld-gutter: 24px;

  font-family: var(--ld-sans);
  font-weight: 400;
  color: var(--ld-ink);
  background: var(--ld-linen);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.ld *, .ld *::before, .ld *::after { box-sizing: border-box; }
.ld img { max-width: 100%; height: auto; display: block; }
.ld h1, .ld h2, .ld h3, .ld h4, .ld p, .ld ul, .ld ol, .ld figure { margin: 0; }
.ld h1, .ld h2, .ld h3 { text-wrap: balance; text-transform: none; }
.ld a:focus-visible, .ld button:focus-visible { outline: 3px solid var(--ld-rim); outline-offset: 3px; border-radius: 2px; }

.ld .ld-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(var(--ld-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--ld-gutter), env(safe-area-inset-right, 0px));
}
.ld .ld-narrow { max-width: 820px; margin-inline: auto; }

/* ---------- shared pieces ---------- */
.ld .ld-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ld-rim);
}
.ld .ld-ornament { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 280px; margin-inline: auto; }
.ld .ld-ornament::before, .ld-ornament::after { content: ""; flex: 1; border-top: 3px double var(--ld-rim); }
.ld .ld-ornament span { width: 9px; height: 9px; border-radius: 50%; background: var(--ld-rim); }

/* the china card: every main surface in the feature */
.ld .ld-card {
  background: var(--ld-china);
  border: 8px double var(--ld-rim);
  padding: clamp(28px, 1rem + 4vw, 64px) clamp(20px, 0.5rem + 4.5vw, 64px);
  box-shadow: 0 1px 0 var(--ld-rule), 0 28px 50px -34px rgba(22, 22, 22, 0.4);
}

.ld .ld-crumbs { padding-top: 22px; }
.ld .ld-crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ld-muted);
}
.ld .ld-crumbs li { display: flex; align-items: center; gap: 10px; }
.ld .ld-crumbs li + li::before { content: "·"; color: var(--ld-rim); font-weight: 700; }
.ld .ld-crumbs a { color: var(--ld-muted); text-decoration: none; }
.ld .ld-crumbs a:hover { color: var(--ld-rim); text-decoration: underline; }
.ld .ld-crumbs [aria-current] { color: var(--ld-ink); }

.ld .ld-author { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.ld .ld-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px double var(--ld-rim);
  background: var(--ld-rim-soft);
  color: var(--ld-rim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ld-serif);
  font-weight: 800;
  font-size: 0.9375rem;
  overflow: hidden;
}
.ld .ld-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ld .ld-author p { display: flex; flex-direction: column; line-height: 1.3; }
.ld .ld-author strong { font-size: 0.9375rem; font-weight: 700; color: var(--ld-ink); }
.ld .ld-author span { font-size: 0.875rem; color: var(--ld-muted); }

/* the plate artwork, shown whole in its own 3:2 shape, framed like a menu card */
.ld .ld-plate {
  position: relative;
  width: min(640px, 100%);
  margin-inline: auto;
  padding: 8px;
  background: var(--ld-china);
  border: 6px double var(--ld-rim);
  box-shadow: 0 30px 60px -34px rgba(22, 22, 22, 0.45);
}
.ld .ld-plate .ld-plate__art { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.ld .ld-plate--small { width: 200px; padding: 4px; border-width: 4px; box-shadow: 0 14px 30px -18px rgba(22, 22, 22, 0.45); }

.ld .ld-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ld-rim);
}
.ld .ld-pill-link--solid { background: var(--ld-rim); color: #FFFFFF; }
.ld .ld-pill-link--solid:hover { background: var(--ld-ink); border-color: var(--ld-ink); }
.ld .ld-pill-link--line { background: transparent; color: var(--ld-rim); }
.ld .ld-pill-link--line:hover { background: var(--ld-rim-soft); }

/* email invitation, set like the note at the foot of a menu */
.ld .ld-note {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
  margin-top: 36px;
  border-top: 3px double var(--ld-rim);
}
.ld .ld-note__title { font-family: var(--ld-serif); font-size: 1.375rem; font-weight: 800; }
.ld .ld-note p { color: var(--ld-body); max-width: 32em; }
.ld .ld-note a { color: var(--ld-rim); font-weight: 700; overflow-wrap: anywhere; }

/* ---------- landing: the cover ---------- */
.ld .ld-cover {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-block: 40px 56px;
}
.ld .ld-cover__title {
  font-family: var(--ld-serif);
  font-size: var(--ld-title);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.ld .ld-cover__dek { font-family: var(--ld-serif); font-style: italic; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); color: var(--ld-body); max-width: 26em; }
.ld .ld-cover .ld-plate { margin-block: 18px 22px; }

/* ---------- landing: the menu ---------- */
.ld .ld-menu-wrap { padding-bottom: clamp(48px, 2rem + 4vw, 96px); }
.ld .ld-menu__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ld .ld-menu__title { font-family: var(--ld-serif); font-size: var(--ld-h2); font-weight: 900; line-height: 1.1; }
.ld .ld-menu__intro { font-size: 0.9375rem; color: var(--ld-muted); max-width: 34em; }

.ld .ld-course { margin-top: 40px; }
.ld .ld-course__name {
  font-family: var(--ld-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ld-muted);
  padding-bottom: 6px;
}
.ld .ld-dishes { list-style: none; padding: 0; margin: 0; }
.ld .ld-dish { border-top: 1px solid var(--ld-rule); }
.ld .ld-dish:last-child { border-bottom: 1px solid var(--ld-rule); }
.ld .ld-dish__link {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  padding: 20px 6px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.ld .ld-dish__link:hover { background: var(--ld-rim-soft); }
.ld .ld-dish__no {
  grid-row: 1 / span 2;
  font-family: var(--ld-serif);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ld-rim);
  padding-top: 0.45em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ld .ld-dish__line { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.ld .ld-dish__name { font-family: var(--ld-serif); font-size: var(--ld-dish); font-weight: 800; line-height: 1.2; }
.ld .ld-dish__leader { flex: 1; min-width: 24px; border-bottom: 2px dotted var(--ld-muted); transform: translateY(-0.3em); }
.ld .ld-dish__date { font-size: 0.9375rem; font-weight: 500; color: var(--ld-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ld .ld-dish__meta { font-size: 0.875rem; color: var(--ld-muted); }
.ld .ld-dish__meta em { font-style: normal; color: var(--ld-rim); font-weight: 700; }
.ld .ld-dish__link:hover .ld-dish__meta em { text-decoration: underline; }
.ld .ld-dish--current .ld-dish__link { background: var(--ld-rim-soft); }

.ld .ld-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; font-size: 0.9375rem; color: var(--ld-muted); }
.ld .ld-pager__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ld-rule);
  border-radius: 999px;
  color: var(--ld-muted);
  font-weight: 700;
  text-decoration: none;
}
.ld .ld-pager__btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.ld .ld-pager__pages { font-variant-numeric: tabular-nums; }

/* ---------- question: the course header ---------- */
.ld .ld-course-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-block: 32px 44px;
}
.ld .ld-q-title { font-family: var(--ld-serif); font-size: var(--ld-h1); font-weight: 900; line-height: 1.05; max-width: 18em; }
.ld .ld-course-head__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; }

/* the reader's letter: a smaller card tucked in above the answer */
.ld .ld-letter {
  position: relative;
  max-width: 660px;
  margin-inline: auto;
  background: var(--ld-china);
  border: 3px double var(--ld-rim);
  padding: clamp(24px, 1rem + 3vw, 44px) clamp(20px, 0.75rem + 3.5vw, 48px);
  transform: rotate(-0.6deg);
  box-shadow: 0 22px 40px -30px rgba(22, 22, 22, 0.45);
}
.ld .ld-letter__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ld .ld-letter__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ld-rim); }
.ld .ld-letter__date { font-size: 0.875rem; color: var(--ld-muted); }
.ld .ld-letter__greeting { font-family: var(--ld-serif); font-size: 1.625rem; font-weight: 800; margin-bottom: 14px; }
.ld .ld-letter__body { font-family: var(--ld-serif); font-size: var(--ld-read); line-height: 1.68; color: var(--ld-body); display: flex; flex-direction: column; gap: 0.9em; }
.ld .ld-letter__signoff { margin-top: 22px; text-align: right; font-family: var(--ld-serif); font-style: italic; font-weight: 700; font-size: 1.1875rem; color: var(--ld-sauce); }

/* the turn and the answer */
.ld .ld-answer-card { margin-top: 48px; }
.ld .ld-turn { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 32px; }
.ld .ld-turn__label { font-family: var(--ld-serif); font-size: var(--ld-h2); font-weight: 900; line-height: 1.1; }
.ld .ld-turn__by { font-size: 0.9375rem; color: var(--ld-muted); }
.ld .ld-turn__by strong { color: var(--ld-rim); }

/* Erica's published answer goes in .ld-answer untouched */
.ld .ld-answer {
  max-width: 660px;
  margin-inline: auto;
  font-size: var(--ld-read);
  line-height: 1.75;
  color: var(--ld-body);
  overflow-wrap: break-word;
}
.ld .ld-answer > * + *,
.ld .ld-answer > div > * + * { margin-top: 1em; }
.ld .ld-answer strong, .ld .ld-answer b { color: var(--ld-ink); }
.ld .ld-answer h3 { font-family: var(--ld-serif); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 800; line-height: 1.3; color: var(--ld-ink); }
.ld .ld-answer h3 { margin-top: 1.5em; }
.ld .ld-answer h4 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ld-rim);
  text-align: center;
  padding-top: 1em;
  border-top: 3px double var(--ld-rim);
}
.ld .ld-answer h4 { margin-top: 1.75em; }
.ld .ld-answer ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 0.6em; }
.ld .ld-answer li::marker { color: var(--ld-rim); }
.ld .ld-answer a { color: var(--ld-rim); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ld .ld-answer a:hover { color: var(--ld-sauce); }
.ld .ld-answer figure { margin-block: 1.5em; width: auto !important; }
.ld .ld-answer figure img { width: 100%; border: 3px double var(--ld-rim); padding: 4px; background: var(--ld-china); }
.ld .ld-answer figcaption { font-size: 0.875rem; color: var(--ld-muted); margin-top: 8px; text-align: center; font-style: italic; }

/* after the answer */
.ld .ld-after { padding-block: 40px clamp(48px, 2rem + 4vw, 96px); }
.ld .ld-after__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ld .ld-more { margin-top: 40px; }
.ld .ld-more .ld-menu__title { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.ld .ld-more .ld-course { margin-top: 20px; }

/* ---------- phones ---------- */
@media (max-width: 560px) {
  .ld { --ld-gutter: 16px; }
  .ld .ld-card { border-width: 6px; }
  .ld .ld-cover { padding-block: 24px 36px; gap: 14px; }
  .ld .ld-dish__link { grid-template-columns: minmax(0, 1fr); padding: 18px 2px; }
  .ld .ld-dish__no { grid-row: auto; padding-top: 0; }
  .ld .ld-dish__leader { display: none; }
  .ld .ld-dish__line { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ld .ld-letter { transform: none; }
  .ld .ld-after__nav { flex-direction: column; }
  .ld .ld-pager { flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ld .ld-dish__link { transition: none; }
}

.ld .ld-plate .hp86-fresh { z-index: 1; }
.ld .ld-plate--small .hp86-fresh__img { width: 54px; height: auto; }
.ld .ld-letter__body { white-space: pre-line; overflow-wrap: anywhere; }
.ld .ld-letter__body > * { white-space: normal; }
.ld .ld-dish__name, .ld .ld-q-title { overflow-wrap: anywhere; }
.ld :is(.ld-crumbs, .ld-author, .ld-note, .ld-answer) a,
.ld :is(.ld-dish__link, .ld-pill-link, .ld-pager__btn) {
  font-family: var(--ld-sans);
  font-size: inherit;
  text-transform: none;
}
.ld .ld-crumbs li, .ld .ld-crumbs a { font-family: var(--ld-sans); font-size: inherit; font-weight: 600; }
.ld .ld-dish__link { font-weight: 400; }
.ld .ld-author a { color: inherit; font-weight: inherit; }
.ld .ld-letter__body a { font-family: var(--ld-serif); font-size: inherit; text-transform: none; }
.ld .ld-share .heateor_sss_sharing_container ul { margin: 0; }
.ld .ld-ads { margin-top: 32px; }
