/* Lolobuy Spreadsheet Lexicon — jnt- prefix. Inter + Source Serif 4, burgundy/orange/cream editorial system. */

@font-face {
  font-family: "JntSans";
  src: url("/assets/fonts/jnt-inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JntSerif";
  src: url("/assets/fonts/jnt-sourceserif4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --jnt-ink: #20160c;
  --jnt-ink-soft: #4a3c2c;
  --jnt-mute: #6d5c48;
  --jnt-paper: #fffaf0;
  --jnt-paper-deep: #fdf2da;
  --jnt-white: #ffffff;
  --jnt-orange: #ff9f00;
  --jnt-orange-ink: #7a4300;
  --jnt-burgundy: #7a1f3d;
  --jnt-burgundy-dark: #5c1730;
  --jnt-line: #e7d9c3;
  --jnt-line-soft: #f1e7d4;
  --jnt-sans: "JntSans", -apple-system, "Segoe UI", Arial, sans-serif;
  --jnt-serif: "JntSerif", Georgia, "Times New Roman", serif;
  --jnt-radius: 10px;
  --jnt-radius-sm: 6px;
  --jnt-shadow: 0 1px 2px rgba(32, 22, 12, 0.06), 0 10px 24px -14px rgba(32, 22, 12, 0.28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--jnt-sans);
  color: var(--jnt-ink);
  background: var(--jnt-paper);
  line-height: 1.6;
  font-size: 17px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

img { max-width: 100%; display: block; }
a { color: var(--jnt-burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--jnt-burgundy-dark); }
.jnt-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.jnt-narrowcol { max-width: 900px; }

h1, h2, h3, h4 {
  font-family: var(--jnt-serif);
  color: var(--jnt-ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.jnt-skip { position: absolute; left: -999px; top: 0; background: var(--jnt-burgundy); color: #fff; padding: 10px 16px; z-index: 200; }
.jnt-skip:focus { left: 12px; top: 12px; }

/* ---------- header / nav ---------- */
.jnt-header {
  background: var(--jnt-white);
  border-bottom: 1px solid var(--jnt-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.jnt-header__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.jnt-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--jnt-ink); flex: 1 1 auto; min-height: 44px; min-width: 0; }
.jnt-brand img { height: 30px; width: auto; flex: none; }
.jnt-brand__word { font-family: var(--jnt-serif); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; min-width: 0; }
.jnt-brand__word b { color: var(--jnt-burgundy); }
.jnt-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.jnt-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--jnt-ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.jnt-nav a:hover, .jnt-nav a[aria-current="page"] { color: var(--jnt-burgundy); border-bottom-color: var(--jnt-orange); }
.jnt-header__cta {
  flex: none;
  background: var(--jnt-burgundy);
  color: #fff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--jnt-radius-sm);
}
.jnt-header__cta:hover { background: var(--jnt-burgundy-dark); color: #fff; }
.jnt-navtoggle { display: none; }

@media (max-width: 920px) {
  .jnt-nav { display: none; }
  .jnt-navtoggle {
    display: inline-flex; flex: none; margin-left: auto; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; min-width: 44px;
    background: var(--jnt-paper-deep); border: 1px solid var(--jnt-line); border-radius: var(--jnt-radius-sm);
    padding: 8px 14px; font-weight: 700; font-size: 0.85rem; color: var(--jnt-ink);
  }
  .jnt-header__cta { display: none; }
  body.jnt-nav-open .jnt-nav {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--jnt-white); border-bottom: 1px solid var(--jnt-line); padding: 8px 24px 16px;
  }
  body.jnt-nav-open .jnt-nav a { min-height: 48px; width: 100%; padding: 12px 4px; }
}

/* ---------- hero (gate 1: search is the core element) ---------- */
.jnt-hero { padding: 48px 0 40px; background: linear-gradient(180deg, var(--jnt-paper-deep) 0%, var(--jnt-paper) 65%); }
.jnt-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr); gap: 40px; align-items: center; }
.jnt-hero__kicker { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--jnt-burgundy); margin-bottom: 14px; }
.jnt-hero h1 { margin-bottom: 0.4em; }
.jnt-lede { font-size: 1.14rem; color: var(--jnt-ink-soft); max-width: 46ch; margin-bottom: 1.3em; }
.jnt-search {
  background: var(--jnt-white);
  border: 1px solid var(--jnt-line);
  border-radius: var(--jnt-radius);
  box-shadow: var(--jnt-shadow);
  padding: 10px;
  display: flex;
  gap: 8px;
  max-width: 100%;
  width: 100%;
}
.jnt-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.jnt-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-family: var(--jnt-sans);
  font-size: 1rem;
  padding: 10px 12px;
  color: var(--jnt-ink);
}
.jnt-search input[type="search"]:focus { outline: 2px solid var(--jnt-orange); outline-offset: 2px; border-radius: 6px; }
.jnt-search button {
  flex: none;
  background: var(--jnt-burgundy);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--jnt-radius-sm);
  cursor: pointer;
}
.jnt-search button:hover { background: var(--jnt-burgundy-dark); }
.jnt-hint { font-size: 0.86rem; color: var(--jnt-mute); margin-top: 10px; }
.jnt-hero__art { justify-self: center; max-width: 380px; }
.jnt-hero__art img { width: 100%; height: auto; }

/* strip = subnav, hosts at most the remaining weak CTAs */
.jnt-strip { background: var(--jnt-paper-deep); border-top: 1px solid var(--jnt-line); border-bottom: 1px solid var(--jnt-line); }
.jnt-strip ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.jnt-strip li { font-size: 0.86rem; }
.jnt-strip__lead { font-weight: 700; color: var(--jnt-ink-soft); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem !important; }
.jnt-strip a { text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- category wall (gate 2) ---------- */
.jnt-wall { padding: 44px 0; }
.jnt-wall__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.jnt-wall__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .jnt-wall__grid { grid-template-columns: repeat(2, 1fr); } }
.jnt-tile {
  display: block; text-decoration: none; color: var(--jnt-ink);
  background: var(--jnt-white); border: 1px solid var(--jnt-line); border-radius: var(--jnt-radius);
  overflow: hidden; min-height: 44px;
}
.jnt-tile__img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--jnt-paper-deep); }
.jnt-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.jnt-tile__label { padding: 10px 12px; font-weight: 700; font-size: 0.92rem; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.jnt-tile__label span.jnt-badge { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--jnt-mute); }
.jnt-wall__more { text-align: center; margin-top: 22px; }

/* ---------- generic sections ---------- */
.jnt-section { padding: 40px 0; }
.jnt-section--alt { background: var(--jnt-paper-deep); }
.jnt-section__head { max-width: 72ch; margin-bottom: 20px; }
.jnt-eyebrow { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jnt-burgundy); margin-bottom: 8px; }

.jnt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.jnt-split.jnt-split--rev { direction: rtl; }
.jnt-split.jnt-split--rev > * { direction: ltr; }
@media (max-width: 760px) { .jnt-split { grid-template-columns: 1fr; } }
.jnt-split figure { margin: 0; align-self: start; width: 100%; }
.jnt-split figure img { width: 100%; height: auto; object-fit: contain; display: block; border-radius: var(--jnt-radius); border: 1px solid var(--jnt-line); }
.jnt-split .jnt-col { display: flex; flex-direction: column; justify-content: center; }

figure.jnt-fig { margin: 0 0 1.6em; }
figure.jnt-fig { display: table; margin-left: auto; margin-right: auto; }
figure.jnt-fig img { width: auto; max-width: 100%; border-radius: var(--jnt-radius); border: 1px solid var(--jnt-line); margin: 0 auto; display: block; }
figure.jnt-fig.jnt-fig--wide img { width: 100%; }
figure.jnt-fig figcaption { font-size: 0.86rem; color: var(--jnt-mute); margin-top: 8px; text-align: left; }

.jnt-stack-card { background: var(--jnt-white); border: 1px solid var(--jnt-line); border-radius: var(--jnt-radius); padding: 22px; }

/* ---------- lexicon ---------- */
.jnt-az { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 14px; background: var(--jnt-white); border: 1px solid var(--jnt-line); border-radius: var(--jnt-radius); position: sticky; top: 72px; z-index: 10; }
.jnt-az a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; background: var(--jnt-paper-deep); border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.86rem; }
.jnt-az a:hover { background: var(--jnt-orange); color: var(--jnt-ink); }
.jnt-term { border: 1px solid var(--jnt-line); border-radius: var(--jnt-radius); background: var(--jnt-white); padding: 20px 22px; margin-bottom: 14px; scroll-margin-top: 130px; }
.jnt-term__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.jnt-term dt { font-family: var(--jnt-serif); font-weight: 700; font-size: 1.22rem; }
.jnt-term__pos { font-size: 0.82rem; color: var(--jnt-mute); font-style: italic; }
.jnt-term dd { margin: 6px 0 0; }
.jnt-term .jnt-see { font-size: 0.84rem; color: var(--jnt-mute); margin-top: 6px; }

/* glossary rail chips used on content pages to cross-link lexicon entries (signature module) */
.jnt-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 24px; }
.jnt-chips li a {
  display: inline-flex; min-height: 36px; align-items: center; gap: 6px; padding: 0 12px;
  background: var(--jnt-paper-deep); border: 1px solid var(--jnt-line); border-radius: 999px;
  text-decoration: none; font-size: 0.82rem; font-weight: 700; color: var(--jnt-burgundy);
}
.jnt-chips li a:before { content: "§"; color: var(--jnt-orange-ink); }
.jnt-chips li a:hover { background: var(--jnt-orange); color: var(--jnt-ink); }

/* ---------- lists / cards ---------- */
.jnt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .jnt-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .jnt-cards { grid-template-columns: 1fr; } }
.jnt-cards.jnt-cards--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .jnt-cards.jnt-cards--2 { grid-template-columns: 1fr; } }
.jnt-card { border: 1px solid var(--jnt-line); border-radius: var(--jnt-radius); padding: 20px; background: var(--jnt-white); }
.jnt-card h3 { font-size: 1.08rem; margin-bottom: 0.4em; }

table.jnt-table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 0.94rem; }
table.jnt-table caption { text-align: left; font-weight: 700; margin-bottom: 8px; color: var(--jnt-ink-soft); }
table.jnt-table th, table.jnt-table td { border: 1px solid var(--jnt-line); padding: 9px 12px; text-align: left; }
table.jnt-table thead th { background: var(--jnt-paper-deep); }
.jnt-scrolltable { overflow-x: auto; }

.jnt-steps { list-style: none; padding: 0; margin: 0; counter-reset: jstep; display: grid; gap: 18px; }
.jnt-steps > li { border: 1px solid var(--jnt-line); border-radius: var(--jnt-radius); background: var(--jnt-white); padding: 20px 20px 20px 64px; position: relative; }
.jnt-steps > li:before {
  counter-increment: jstep; content: counter(jstep);
  position: absolute; left: 18px; top: 20px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--jnt-burgundy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-family: var(--jnt-serif);
}

/* video */
.jnt-video { position: relative; border-radius: var(--jnt-radius); overflow: hidden; border: 1px solid var(--jnt-line); aspect-ratio: 16/9; background: #000; }
.jnt-video img { width: 100%; height: 100%; object-fit: cover; }
.jnt-video button.jnt-playbtn {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none; cursor: pointer;
  background: rgba(32,22,12,0.18); display: flex; align-items: center; justify-content: center;
}
.jnt-video button.jnt-playbtn span {
  width: 68px; height: 68px; border-radius: 50%; background: var(--jnt-burgundy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.jnt-video iframe { width: 100%; height: 100%; border: 0; }
.jnt-video__meta { font-size: 0.85rem; color: var(--jnt-mute); margin-top: 8px; }

/* hidden media slots */
.jnt-vslot, .jnt-gslot { border: 1px dashed var(--jnt-line); border-radius: var(--jnt-radius); aspect-ratio: 16/9; background: var(--jnt-paper-deep); }
.jnt-gslot[data-slot-size] { aspect-ratio: auto; min-height: 200px; }
[hidden] { display: none !important; }

/* faq */
.jnt-faq { border: 1px solid var(--jnt-line); border-radius: var(--jnt-radius); background: var(--jnt-white); margin-bottom: 10px; overflow: hidden; }
.jnt-faq summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; }
.jnt-faq summary::-webkit-details-marker { display: none; }
.jnt-faq summary:after { content: "+"; font-size: 1.3rem; color: var(--jnt-burgundy); flex: none; }
.jnt-faq[open] summary:after { content: "\2212"; }
.jnt-faq .jnt-faq__body { padding: 0 20px 18px; color: var(--jnt-ink-soft); }

/* tools */
.jnt-tool { border: 1px solid var(--jnt-line); border-radius: var(--jnt-radius); background: var(--jnt-white); padding: 24px; }
.jnt-tool__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 16px; }
.jnt-tool label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--jnt-ink-soft); }
.jnt-tool select, .jnt-tool input[type="number"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--jnt-line); border-radius: var(--jnt-radius-sm);
  font: inherit; background: var(--jnt-paper); min-height: 44px;
}
.jnt-tool button {
  background: var(--jnt-burgundy); color: #fff; border: none; font-weight: 700; padding: 12px 22px;
  border-radius: var(--jnt-radius-sm); cursor: pointer; min-height: 44px;
}
.jnt-tool button:hover { background: var(--jnt-burgundy-dark); }
.jnt-tool__out { margin-top: 16px; padding: 16px; background: var(--jnt-paper-deep); border-radius: var(--jnt-radius-sm); font-size: 0.95rem; }
.jnt-tool__out[hidden] { display: none; }

/* notices / callouts */
.jnt-note { border-left: 4px solid var(--jnt-orange); background: var(--jnt-paper-deep); padding: 14px 18px; border-radius: 0 var(--jnt-radius-sm) var(--jnt-radius-sm) 0; margin: 0 0 1.4em; }
.jnt-note--warn { border-left-color: var(--jnt-burgundy); }
.jnt-badge-destination { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--jnt-mute); }

/* buttons */
.jnt-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--jnt-radius-sm); font-weight: 700; text-decoration: none; }
.jnt-btn--primary { background: var(--jnt-burgundy); color: #fff; }
.jnt-btn--primary:hover { background: var(--jnt-burgundy-dark); color: #fff; }
.jnt-btn--ghost { background: transparent; border: 1px solid var(--jnt-ink-soft); color: var(--jnt-ink); }
.jnt-btn--ghost:hover { border-color: var(--jnt-burgundy); color: var(--jnt-burgundy); }

/* footer */
.jnt-footer { background: var(--jnt-ink); color: #ead9c2; padding: 48px 0 28px; margin-top: 50px; }
.jnt-footer a { color: #f3e3c8; }
.jnt-footer li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 2px 0; }
.jnt-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 24px; margin-bottom: 30px; }
@media (max-width: 860px) { .jnt-footer__grid { grid-template-columns: 1fr 1fr; } }
.jnt-footer h3 { font-family: var(--jnt-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: #c9b38c; margin-bottom: 10px; }
.jnt-footer ul { list-style: none; padding: 0; margin: 0; }
.jnt-footer li { margin-bottom: 8px; font-size: 0.9rem; }
.jnt-footer__brand { font-family: var(--jnt-serif); font-size: 1.1rem; color: #fff; margin-bottom: 8px; }
.jnt-footer__legal { font-size: 0.8rem; color: #a6926f; border-top: 1px solid #3a2d1d; padding-top: 18px; }
.jnt-footer__legal p { margin: 0 0 8px; }

.jnt-breadcrumb { font-size: 0.82rem; color: var(--jnt-mute); padding: 14px 0 0; }
.jnt-breadcrumb a { color: var(--jnt-mute); text-decoration: none; }
.jnt-breadcrumb a:hover { text-decoration: underline; }

.jnt-updates-list { list-style: none; padding: 0; margin: 0; }
.jnt-updates-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--jnt-line); }
.jnt-updates-list time { font-weight: 700; color: var(--jnt-burgundy); font-size: 0.86rem; }
@media (max-width: 560px) { .jnt-updates-list li { grid-template-columns: 1fr; gap: 4px; } }

.jnt-404 { padding: 90px 0; text-align: center; }

.jnt-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
