/* Miller's Journal — design tokens and components
   For millerindustriez.com/MillersJournal
   Brand: Miller Industriez navy / rust / Barlow, plus IBM Plex Mono and Caveat.

   Website Ops: also load Google Fonts in the document head (see README).
   This file is self-contained for components once those faces are available.
*/

@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Barlow+Condensed:wght@600;700;800&family=IBM+Plex+Mono:wght@400;500;600;700&family=Caveat:wght@500;600;700&display=swap");

/* -------------------------------------------------------------------------- */
/* Tokens                                                                     */
/* -------------------------------------------------------------------------- */
:root {
  /* Brand colors (from focus/design brand + HVAC homepage) */
  --journal-navy: #172231;
  --journal-deep: #101722;
  --journal-ink: #1e2c3e;
  --journal-rust: #cf4e25;
  --journal-rust-on-dark: #f26b3a;
  --journal-rust-text: #b8431f; /* AA on white, mist, and paper; use for small text/links */
  --journal-mist: #f5f6f8;
  --journal-steel: #546170;
  --journal-line: #dce1e7;
  --journal-green: #1e8e5a;
  --journal-white: #fff;
  --journal-body: #3b4858;
  --journal-muted: #546170;

  /* Journal-only paper (warm off-white, used on the Researcher's Note card) */
  --journal-paper: #f6f3eb;
  --journal-paper-rule: rgba(23, 34, 49, 0.1);
  --journal-tape: rgba(207, 78, 37, 0.22);
  --journal-tape-edge: rgba(207, 78, 37, 0.35);

  /* Sample-content badge (same yellow as DEMO DATA) */
  --journal-sample: #ffd84d;
  --journal-sample-ink: #1a1a1a;

  /* Type */
  --journal-font-body: "Barlow", Arial, sans-serif;
  --journal-font-display: "Barlow Condensed", Arial, sans-serif;
  --journal-font-mono: "IBM Plex Mono", "Courier New", monospace;
  --journal-font-note: "Caveat", "Segoe Script", cursive;

  /* Graph paper. Keep the light grid faint so body text stays readable.
     Do not place a grid behind article paragraphs — only on the page
     background, hero, empty state, and the note card. */
  --journal-grid-size: 24px;
  --journal-grid-line-light: rgba(23, 34, 49, 0.05);
  --journal-grid-line-dark: rgba(255, 255, 255, 0.05);
  --journal-grid-light:
    linear-gradient(var(--journal-grid-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--journal-grid-line-light) 1px, transparent 1px);
  --journal-grid-dark:
    linear-gradient(var(--journal-grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--journal-grid-line-dark) 1px, transparent 1px);
  --journal-hero-wash: linear-gradient(160deg, #101722 0%, #172231 55%, #1e2c3e 100%);

  /* Spacing and layout */
  --journal-space-1: 4px;
  --journal-space-2: 8px;
  --journal-space-3: 12px;
  --journal-space-4: 16px;
  --journal-space-5: 24px;
  --journal-space-6: 32px;
  --journal-space-7: 48px;
  --journal-space-8: 72px;
  --journal-wrap: 1328px;
  --journal-article-width: 720px;
  --journal-radius: 8px;
  --journal-radius-card: 12px;
  --journal-nav-h: 72px;
  --journal-focus: #b8431f;
  --journal-focus-offset: 3px;
  --journal-shadow: 0 16px 40px rgba(16, 23, 34, 0.12);
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */
.mj-page,
.mj-preview {
  font-family: var(--journal-font-body);
  color: var(--journal-navy);
  background: var(--journal-mist);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.mj-page {
  min-height: 100%;
  background-image: var(--journal-grid-light);
  background-size: var(--journal-grid-size) var(--journal-grid-size);
  background-color: var(--journal-mist);
}

.mj-wrap {
  max-width: var(--journal-wrap);
  margin: 0 auto;
  padding: 0 var(--journal-space-6);
}

.mj-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--journal-rust);
}

.mj-mono {
  font-family: var(--journal-font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.mj-display {
  font-family: var(--journal-font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

/* Accessible sample flag — every placeholder post or note uses this */
.mj-sample {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--journal-sample);
  color: var(--journal-sample-ink);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 4px 9px;
  font-family: var(--journal-font-body);
  line-height: 1;
}
.mj-sample::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--journal-sample-ink);
}

.mj-sample-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--journal-sample);
  color: var(--journal-sample-ink);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
}

/* Skip link (full-page mockups) */
.mj-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--journal-white);
  color: var(--journal-navy);
  padding: 8px 12px;
  z-index: 20;
  font-weight: 700;
  border-radius: 6px;
}
.mj-skip:focus {
  top: 12px;
}

/* Focus ring — visible, 2px, rust, not mouse-only */
.mj-page a:focus-visible,
.mj-page button:focus-visible,
.mj-btn:focus-visible,
.mj-nav-btn:focus-visible,
.mj-card:focus-visible,
.mj-pager a:focus-visible {
  outline: 2px solid var(--journal-focus);
  outline-offset: var(--journal-focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  .mj-page *,
  .mj-page *::before,
  .mj-page *::after,
  .mj-nav-btn,
  .mj-nav-btn *,
  .mj-btn,
  .mj-card {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Logo                                                                       */
/* -------------------------------------------------------------------------- */
.mj-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}
.mj-logo .mj-mark {
  height: 26px;
  width: auto;
  display: block;
  flex: none;
}
.mj-wordmark {
  font-family: var(--journal-font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 16px;
  line-height: 1;
}

/* -------------------------------------------------------------------------- */
/* Site header (website size)                                                 */
/* -------------------------------------------------------------------------- */
.mj-header {
  background: var(--journal-white);
  border-bottom: 1px solid var(--journal-line);
  position: relative;
  z-index: 5;
}
.mj-header .mj-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--journal-nav-h);
  gap: 24px;
}
.mj-header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 15px;
  color: #33404f;
}
.mj-header-nav a {
  text-decoration: none;
  color: inherit;
}
.mj-header-nav a[aria-current="page"] {
  color: var(--journal-navy);
}

/* -------------------------------------------------------------------------- */
/* Nav button — Miller's Journal                                              */
/* -------------------------------------------------------------------------- */
.mj-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--journal-font-body);
  font-weight: 700;
  color: var(--journal-navy);
  border: 1.5px solid var(--journal-line);
  background: var(--journal-white);
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mj-nav-btn svg {
  flex: none;
  display: block;
  stroke: currentColor;
  fill: none;
}
.mj-nav-btn[aria-current="page"],
.mj-nav-btn.is-current {
  border-color: var(--journal-rust);
  color: var(--journal-rust-text);
}

/* Website header size (fits the 72px site nav) */
.mj-nav-btn--site {
  font-size: 14px;
  padding: 8px 14px 8px 12px;
}
.mj-nav-btn--site svg {
  width: 16px;
  height: 16px;
}

/* Shopify header size (tighter bar, ~13px type) */
.mj-nav-btn--shopify {
  font-size: 13px;
  padding: 6px 11px 6px 9px;
}
.mj-nav-btn--shopify svg {
  width: 14px;
  height: 14px;
}

.mj-nav-btn:hover {
  background: #f8ebe6;
  border-color: var(--journal-rust);
  color: var(--journal-rust-text);
}
.mj-nav-btn:focus-visible {
  outline: 2px solid var(--journal-focus);
  outline-offset: var(--journal-focus-offset);
}

/* -------------------------------------------------------------------------- */
/* Hero / banner                                                              */
/* -------------------------------------------------------------------------- */
.mj-hero {
  position: relative;
  overflow: hidden;
  color: var(--journal-white);
  background: var(--journal-hero-wash);
  isolation: isolate;
}
.mj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--journal-grid-dark);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none;
}
/* Thin rust rule, like a bound notebook edge */
.mj-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: var(--journal-rust);
  z-index: 2;
}
.mj-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
  min-height: 0;
}
.mj-hero .mj-eyebrow {
  color: var(--journal-rust-on-dark);
}
.mj-hero h1 {
  font-family: var(--journal-font-display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 0.92;
  margin: 12px 0 16px;
  color: var(--journal-white);
}
.mj-hero .mj-sub {
  font-size: 19px;
  line-height: 1.5;
  color: #c9d3de;
  max-width: 36em;
}
.mj-hero .mj-entry-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 22px;
  font-family: var(--journal-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb0c3;
}
.mj-hero .mj-entry-label > * { white-space: nowrap; }
.mj-hero .mj-entry-label strong {
  color: var(--journal-white);
  font-weight: 600;
}
.mj-hero-art {
  position: relative;
  width: min(420px, 38vw);
  height: 280px;
  pointer-events: none;
}
.mj-hero-art svg {
  position: absolute;
  overflow: visible;
}
.mj-hero .mj-logo {
  color: var(--journal-white);
  margin-bottom: 28px;
}

@media (max-width: 800px) {
  .mj-hero-inner {
    grid-template-columns: 1fr;
    padding: 40px 0 48px;
    gap: 24px;
  }
  .mj-hero-art {
    width: 220px;
    height: 160px;
    justify-self: end;
    opacity: 0.85;
  }
  .mj-hero h1 {
    font-size: 64px;
  }
}

/* -------------------------------------------------------------------------- */
/* Empty state                                                                */
/* -------------------------------------------------------------------------- */
.mj-empty {
  position: relative;
  background: var(--journal-paper);
  border: 1px solid var(--journal-line);
  border-left: 4px solid var(--journal-rust);
  border-radius: var(--journal-radius-card);
  padding: 48px 40px 44px;
  box-shadow: var(--journal-shadow);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}
.mj-empty::before {
  /* faint rules on the paper, starting under the label */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--journal-paper-rule) 1px, transparent 1px);
  background-size: 100% 28px;
  background-position: 0 8px;
  mask-image: linear-gradient(#000 0, #000 100%);
  opacity: 0.7;
  pointer-events: none;
}
.mj-empty-inner {
  position: relative;
  z-index: 1;
  padding-right: 120px;
}
.mj-empty .mj-mono-label {
  font-family: var(--journal-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--journal-rust-text);
  margin-bottom: 16px;
}
.mj-empty h2 {
  font-family: var(--journal-font-display);
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  margin: 0 0 12px;
}
.mj-empty p {
  font-size: 18px;
  color: var(--journal-body);
  max-width: 34em;
  margin: 0;
}
.mj-empty-art {
  position: absolute;
  right: 28px;
  bottom: 16px;
  width: 120px;
  height: 140px;
  opacity: 0.28;
  color: var(--journal-navy);
  pointer-events: none;
  z-index: 0;
}

/* -------------------------------------------------------------------------- */
/* Post cards                                                                 */
/* -------------------------------------------------------------------------- */
.mj-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .mj-card-grid { grid-template-columns: 1fr; }
}

.mj-card {
  display: flex;
  flex-direction: column;
  background: var(--journal-white);
  border: 1px solid var(--journal-line);
  border-radius: var(--journal-radius-card);
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  box-shadow: 0 8px 24px rgba(16, 23, 34, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.mj-card:hover {
  border-color: var(--journal-rust);
  box-shadow: 0 12px 28px rgba(16, 23, 34, 0.1);
}
.mj-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.mj-card .mj-entry {
  font-family: var(--journal-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--journal-rust-text);
}
.mj-card time,
.mj-card .mj-date {
  font-family: var(--journal-font-mono);
  font-size: 12px;
  color: var(--journal-steel);
  letter-spacing: 0.02em;
}
.mj-card h3 {
  font-family: var(--journal-font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--journal-navy);
}
.mj-card .mj-excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: var(--journal-body);
  margin: 0 0 16px;
  flex: 1;
}
.mj-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.mj-tag {
  font-family: var(--journal-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--journal-steel);
  border: 1px solid var(--journal-line);
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--journal-mist);
}
.mj-read {
  font-weight: 700;
  font-size: 14px;
  color: var(--journal-rust-text);
  text-decoration: none;
}
.mj-read .mj-arrow {
  font-family: var(--journal-font-mono);
  font-weight: 500;
}
.mj-read:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------- */
/* Researcher's Note                                                          */
/* -------------------------------------------------------------------------- */
.mj-note {
  position: relative;
  background-color: var(--journal-paper);
  /* faint graph + horizontal rules, like a lab notebook page */
  background-image:
    linear-gradient(var(--journal-paper-rule) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 34, 49, 0.045) 1px, transparent 1px);
  background-size: 100% 28px, 28px 28px;
  background-position: 0 0, 0 0;
  border: 1px solid #e3dccb;
  border-left: 4px solid var(--journal-rust);
  border-radius: 2px 10px 10px 2px;
  padding: 28px 28px 24px 28px;
  box-shadow: 0 10px 28px rgba(16, 23, 34, 0.08);
  color: var(--journal-navy);
  margin: 0 0 8px;
}
/* Masking-tape detail */
.mj-note::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 32px;
  width: 78px;
  height: 22px;
  background: var(--journal-tape);
  border: 1px solid var(--journal-tape-edge);
  transform: rotate(-5deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.mj-note-clip {
  position: absolute;
  top: -14px;
  right: 28px;
  width: 22px;
  height: 36px;
  color: var(--journal-steel);
  pointer-events: none;
}
.mj-note-label {
  font-family: var(--journal-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--journal-rust-text);
  margin: 0 0 8px;
}
.mj-note-title {
  font-family: var(--journal-font-note);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--journal-navy);
}
.mj-note-body {
  font-family: var(--journal-font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--journal-body);
  margin: 0 0 16px;
  max-width: 42em;
}
.mj-note-sign {
  font-family: var(--journal-font-note);
  font-weight: 600;
  font-size: 24px;
  color: var(--journal-navy);
  margin: 0;
  line-height: 1;
}
.mj-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

/* Empty / optional state — use when a post has no note, or omit .mj-note entirely */
.mj-note.is-empty,
.mj-note--empty {
  padding: 20px 24px 22px;
  background-image: none;
  background-color: transparent;
  border: 1px dashed var(--journal-line);
  border-left: 4px dashed var(--journal-rust);
  box-shadow: none;
  color: var(--journal-steel);
  overflow: visible;
}
.mj-note.is-empty::before,
.mj-note--empty::before,
.mj-note.is-empty .mj-note-clip,
.mj-note--empty .mj-note-clip {
  display: none;
}
.mj-note.is-empty .mj-note-title,
.mj-note--empty .mj-note-title,
.mj-note.is-empty .mj-note-body,
.mj-note--empty .mj-note-body,
.mj-note.is-empty .mj-note-sign,
.mj-note--empty .mj-note-sign {
  display: none;
}
.mj-note-empty-msg {
  font-family: var(--journal-font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--journal-steel);
  margin: 6px 0 0;
}

/* Divider between the note and the AI-written article */
.mj-article-split {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 32px;
  color: var(--journal-steel);
  font-family: var(--journal-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mj-article-split::before,
.mj-article-split::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--journal-line);
}

/* -------------------------------------------------------------------------- */
/* Post page                                                                  */
/* -------------------------------------------------------------------------- */
.mj-post-header {
  padding: 40px 0 8px;
}
.mj-post-header .mj-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-family: var(--journal-font-mono);
  font-size: 13px;
  color: var(--journal-steel);
  margin-bottom: 12px;
}
.mj-post-header .mj-entry-meta .mj-entry {
  color: var(--journal-rust-text);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mj-post-header h1 {
  font-family: var(--journal-font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  margin: 0 0 12px;
}
.mj-post-kicker {
  font-size: 18px;
  color: var(--journal-body);
  max-width: 36em;
}

.mj-article-shell {
  /* Solid column — no graph paper behind body type */
  background: var(--journal-white);
  border: 1px solid var(--journal-line);
  border-radius: var(--journal-radius-card);
  padding: 40px 48px 56px;
  max-width: 860px;
  margin: 0 auto 72px;
  box-shadow: 0 10px 30px rgba(16, 23, 34, 0.05);
}

.mj-article {
  font-size: 18px;
  line-height: 1.65;
  color: var(--journal-body);
  max-width: var(--journal-article-width);
  margin: 0 auto;
}
.mj-article > * + * { margin-top: 1.15em; }
.mj-article h2 {
  font-family: var(--journal-font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  color: var(--journal-navy);
  margin-top: 1.6em;
}
.mj-article h3 {
  font-family: var(--journal-font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  color: var(--journal-navy);
  margin-top: 1.4em;
}
.mj-article p { margin: 0; }
.mj-article ul,
.mj-article ol {
  padding-left: 1.25em;
}
.mj-article li + li { margin-top: 0.35em; }
.mj-article a {
  color: var(--journal-rust-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Lab-note callout (blockquote in the article — not the Researcher's Note) */
.mj-article blockquote,
.mj-labnote {
  margin: 1.4em 0;
  padding: 16px 18px 16px 20px;
  background: var(--journal-mist);
  border-left: 4px solid var(--journal-rust);
  border-radius: 0 8px 8px 0;
  color: var(--journal-navy);
  font-size: 17px;
  line-height: 1.55;
}
.mj-labnote-label,
.mj-article blockquote::before {
  font-family: var(--journal-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--journal-rust-text);
  display: block;
  margin-bottom: 6px;
}
.mj-article blockquote::before { content: "Lab note"; }
.mj-article blockquote p { margin: 0; }
.mj-article blockquote p + p { margin-top: 0.6em; }

.mj-article code,
.mj-article pre {
  font-family: var(--journal-font-mono);
  font-size: 0.86em;
}
.mj-article code {
  background: var(--journal-mist);
  border: 1px solid var(--journal-line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--journal-navy);
}
.mj-article pre {
  background: var(--journal-navy);
  color: #e8eef4;
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.5;
}
.mj-article pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: 13.5px;
}

.mj-article figure {
  margin: 1.6em 0;
}
.mj-article figure img,
.mj-article figure svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--journal-line);
  background: var(--journal-mist);
}
.mj-article figcaption {
  font-size: 13px;
  color: var(--journal-steel);
  margin-top: 8px;
  font-family: var(--journal-font-mono);
  letter-spacing: 0.02em;
}

.mj-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: var(--journal-navy);
}
.mj-article th,
.mj-article td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--journal-line);
  vertical-align: top;
}
.mj-article thead th {
  font-family: var(--journal-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--journal-white);
  background: var(--journal-navy);
  border-bottom: 0;
}
.mj-article thead th:first-child { border-radius: 6px 0 0 0; }
.mj-article thead th:last-child { border-radius: 0 6px 0 0; }
.mj-article tbody tr:nth-child(even) td {
  background: var(--journal-mist);
}

/* Prev / next */
.mj-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--journal-line);
}
.mj-pager a,
.mj-pager .mj-pager-empty {
  display: block;
  text-decoration: none;
  color: var(--journal-navy);
  border: 1px solid var(--journal-line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--journal-mist);
  min-height: 88px;
}
.mj-pager a:hover {
  border-color: var(--journal-rust);
}
.mj-pager .mj-dir {
  font-family: var(--journal-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--journal-steel);
  margin-bottom: 6px;
}
.mj-pager .mj-pager-entry {
  font-family: var(--journal-font-mono);
  font-size: 11px;
  color: var(--journal-rust-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mj-pager strong {
  display: block;
  font-family: var(--journal-font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  margin-top: 2px;
}
.mj-pager .mj-pager-empty {
  color: var(--journal-steel);
  background: transparent;
}
.mj-pager .is-next { text-align: right; }

@media (max-width: 700px) {
  .mj-article-shell { padding: 24px 20px 36px; }
  .mj-note { padding: 24px 18px 20px; }
  .mj-pager { grid-template-columns: 1fr; }
  .mj-pager .is-next { text-align: left; }
  .mj-post-header { padding-top: 28px; }
  .mj-header .mj-wrap { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  .mj-article pre { white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
  .mj-empty-inner { padding-right: 0; }
  .mj-empty-art { display: none; }
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.mj-footer {
  background: var(--journal-deep);
  color: #c9d3de;
  padding: 36px 0 40px;
  border-top: 6px solid var(--journal-rust);
}
.mj-footer .mj-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mj-footer .mj-logo { color: var(--journal-white); }
.mj-footer p {
  font-size: 14px;
  margin: 0;
  color: #9fb0c3;
}
.mj-footer a { color: inherit; }

/* Section heads on index mockups */
.mj-section {
  padding: 56px 0 72px;
}
.mj-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.mj-section-head h2 {
  font-family: var(--journal-font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  margin: 0;
}

.mj-mark-dot { fill: #cf4e25; }
.mj-hero .mj-mark-dot,
.mj-footer .mj-mark-dot,
.mj-logo--on-dark .mj-mark-dot { fill: #f26b3a; }

/* -------------------------------------------------------------------------- */
/* Site integration (Website Ops)                                             */
/* Neutralize unscoped store.css rules on journal pages. Do not change the    */
/* component tokens above.                                                    */
/* -------------------------------------------------------------------------- */
.mj-page section.mj-hero {
  padding: 0;
  margin: 0;
}
.mj-page .mj-article a,
.mj-page .mj-read {
  color: var(--journal-rust-text);
}
.mj-page .mj-back a {
  color: var(--journal-rust-text);
  font-weight: 700;
  font-size: 14px;
}
