/*
  mirume visit.mirume-tea.jp: styles for /en/hojicha/ only.
  Loaded after style.css on that page and nowhere else.
  Every class here starts with "hj-" so nothing leaks into other pages.
  Colours, fonts and spacing come from the variables in style.css.
*/

/* Top photo with its caption (same look as .section figcaption) */

.hj-hero-figure {
  margin: 0;
}

.hj-hero-figure figcaption {
  margin-top: var(--space-1);
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

/* Paragraph groups (a blank line in content-en.md) */

.hj-block {
  margin-bottom: var(--space-3);
}

.hj-block:last-child {
  margin-bottom: 0;
}

.hj-byline {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-3);
}

/* Tea heading: No. -> Japanese name -> English name (h2) */

.hj-head {
  margin: var(--space-3) 0 var(--space-2);
}

.hj-no {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--color-wood);
  margin-bottom: 0.25em;
}

.hj-ja {
  font-size: 1rem;
  color: var(--color-ink-soft);
  margin-bottom: 0.15em;
}

/* English name under the translated name (non-English pages) */

.hj-en {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-top: -0.6em;
}

/* Comparison table: only the table scrolls sideways on narrow screens */

.hj-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-3) 0 0;
  border: 1px solid var(--color-wood-line);
  background: #fff;
}

.hj-table-scroll:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

.hj-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.55;
}

.hj-table th,
.hj-table td {
  padding: 0.65em 0.75em;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-wood-line);
}

.hj-table tbody tr:last-child th,
.hj-table tbody tr:last-child td {
  border-bottom: none;
}

.hj-table thead th {
  font-family: var(--font-serif);
  font-weight: 600;
  background: var(--color-bg-alt);
  white-space: nowrap;
}

.hj-table tbody th {
  font-weight: 600;
  min-width: 10em;
}

/* Caffeine note under No.1 */

.hj-caffeine-box {
  margin: var(--space-3) 0;
  padding: var(--space-2);
  border: 1px solid var(--color-wood-line);
  background: var(--color-bg-alt);
  font-size: 0.875rem;
  line-height: 1.6;
}

.hj-caffeine-box p {
  margin-bottom: 0.25em;
}

.hj-caffeine-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
}

/* How to brew */

.hj-brew {
  margin-top: var(--space-3);
}

.hj-brew h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
}

.hj-brew p {
  font-size: 0.95rem;
  margin-bottom: 0.35em;
}

/* Unconfirmed [[ ]] markers stay visible until filled in */

.hj-pending {
  background: #fff1b8;
  color: inherit;
}

.hj-record-link {
  margin-top: var(--space-2);
}

/* Korean: break lines between words, not inside them */

:lang(ko) { word-break: keep-all; }
