/* ==========================================================================
   GANUE Audio Learn (LEARN-SITE-1120) -- layered on style.css, same DESIGN.md
   rules: grey ramp only, hairlines, one reading column. Light only (the site
   has no dark theme). ASCII-only source. Pages are generated by
   tools/learn_articles.py.
   ========================================================================== */

body.lx h1, body.lx h2, body.lx h3 { overflow-wrap: anywhere; }
body.lx main { overflow-x: clip; }

/* ---------- index head ---------- */
.lx-index-head { padding: clamp(48px, 9vw, 96px) 0 clamp(28px, 5vw, 48px); }
.lx-index-head .eyebrow { margin-bottom: 20px; }
.lx-index-head h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.03em; margin: 0 0 20px;
}
.lx-index-head .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: var(--maxtext); margin: 0; }

.lx-list { padding: 0 0 var(--section); }

/* ---------- cards ---------- */
.lx-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden;
  transition: border-color .15s ease;
}
.lx-card:hover { border-color: var(--ink); }
.lx-card-img { background: #0b0b0b; aspect-ratio: 16 / 9; overflow: hidden; }
.lx-card-img img { width: 100%; height: 100%; object-fit: cover; }
.lx-card-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: repeating-linear-gradient(135deg, #141414 0 14px, #181818 14px 28px);
}
.lx-card-ph img { width: 34px; height: 34px; object-fit: contain; opacity: 0.55; filter: invert(1); }
.lx-card-ph span { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #8a8a88; }
.lx-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.lx-card-meta { margin: 0 0 12px; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.lx-card-date { margin: 0 0 10px; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lx-card h2 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 8px; }
.lx-card-sum { font-size: 0.9375rem; color: var(--muted); margin: 0 0 18px; line-height: 1.6; }
.lx-card-go { margin-top: auto; font-size: 0.8125rem; font-weight: 700; color: var(--ink); display: inline-flex; gap: 6px; }
.lx-card-go::after { content: "\2192"; transition: transform .15s ease; }
.lx-card:hover .lx-card-go::after { transform: translateX(3px); }
.lx-draft-flag {
  display: inline-block; margin-left: 0; padding: 3px 6px; border: 1px dashed var(--muted);
  border-radius: 4px; color: var(--ink); letter-spacing: 0.12em;
}

/* the newest article: one wide card */
.lx-feature .lx-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.lx-feature .lx-card-img { aspect-ratio: auto; min-height: 300px; }
.lx-feature .lx-card-body { padding: clamp(24px, 3.5vw, 40px); justify-content: center; }
.lx-feature .lx-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.lx-feature .lx-card-sum { font-size: 1rem; color: var(--ink-soft); }
.lx-feature .lx-card-go { margin-top: 8px; }

.lx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }

/* zero articles: still a finished page */
.lx-empty {
  display: flex; gap: 28px; align-items: center; border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--surface); padding: clamp(24px, 4vw, 44px);
}
.lx-empty-mark { width: 84px; height: 84px; flex-shrink: 0; border-radius: 10px; background: #141414; display: grid; place-items: center; }
.lx-empty-mark img { width: 40px; height: 40px; filter: invert(1); opacity: 0.8; }
.lx-empty h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.lx-empty p { margin: 0 0 18px; color: var(--muted); max-width: 56ch; }

/* index: the other section (Learn <-> Guides) */
.lx-xsec { padding: clamp(36px, 6vw, 64px) 0; border-top: 1px solid var(--hairline); }
.lx-xsec-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 20px 36px; align-items: start; }
.lx-xsec .eyebrow { margin-bottom: 10px; }
.lx-xsec h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 6px; }
.lx-xsec h2 a:hover { text-decoration: underline; }
.lx-xsec p { margin: 0; color: var(--muted); max-width: 44ch; }
.lx-xsec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.lx-xsec-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.lx-xsec-list a { font-weight: 600; min-width: 0; }
.lx-xsec-list a:hover { text-decoration: underline; }
.lx-xsec-list span { flex-shrink: 0; font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 860px) { .lx-xsec-row { grid-template-columns: minmax(0, 1fr); } }

/* index: the basics site (GANUE Learn), only when site.json edu_link_enabled */
.lx-edu { padding: clamp(28px, 5vw, 48px) 0; border-top: 1px solid var(--hairline); }
.lx-edu-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; }
.lx-edu .eyebrow { margin-bottom: 10px; }
.lx-edu h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 6px; }
.lx-edu p { margin: 0; color: var(--muted); max-width: 60ch; }
/* article: one Background line to the matching basics lesson */
.lx-bg { margin: 28px 0 0; padding: 12px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: 0.9375rem; }
.lx-bg .micro { margin-right: 8px; }
.lx-bg a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lx-bg span:last-child { color: var(--muted); }

/* index bottom band */
.lx-tryband { padding: clamp(48px, 8vw, 88px) 0; border-top: 1px solid var(--hairline); background: var(--canvas-alt); }
.lx-tryband-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.lx-tryband .eyebrow { margin-bottom: 12px; }
.lx-tryband h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 8px; max-width: 26ch; }
.lx-tryband p { margin: 0; color: var(--muted); max-width: 52ch; }

/* ---------- article ---------- */
.lx-article { padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 6vw, 72px); }
.lx-head { max-width: 760px; }
.lx-crumb { margin: 0 0 22px; }
.lx-crumb a { color: var(--muted); border-bottom: 1px solid var(--hairline); }
.lx-crumb a:hover { color: var(--ink); border-color: var(--ink); }
.lx-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.08;
  letter-spacing: -0.028em; margin: 0 0 20px; max-width: 22ch;
}
.lx-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); line-height: 1.6; margin: 0 0 22px; max-width: 60ch; }
.lx-meta { margin: 0; font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lx-dot { margin: 0 6px; color: var(--faint); }

.lx-hero-wrap { max-width: 1120px; margin-top: clamp(28px, 5vw, 48px); }
.lx-fig.lx-hero { margin: 0; }
.lx-fig.lx-hero img { width: 100%; border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(20,20,20,0.28); background: #0b0b0b; }
.lx-fig.lx-hero figcaption { text-align: center; }

.lx-col { max-width: 760px; }
.lx-body { margin-top: clamp(36px, 6vw, 60px); font-size: 1.0625rem; line-height: 1.78; color: var(--ink-soft); }
.lx-body > :first-child { margin-top: 0; }
.lx-body p { margin: 0 0 1.15em; }
.lx-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -0.018em; line-height: 1.25;
  color: var(--ink); margin: 2.1em 0 0.7em; scroll-margin-top: 84px;
}
.lx-body h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 1.8em 0 0.55em; scroll-margin-top: 84px; }
.lx-body strong { color: var(--ink); }
.lx-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.lx-body a:hover { text-decoration-color: var(--ink); }
.lx-body a.btn { text-decoration: none; }
.lx-body a.btn-primary { color: var(--canvas); }
.lx-body a.btn-ghost { color: var(--ink); }
.lx-body ul, .lx-body ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.lx-body li { margin: 0 0 0.55em; padding-left: 0.2em; }
.lx-body li > ul, .lx-body li > ol { margin: 0.55em 0 0; }
.lx-body ol li::marker { font-variant-numeric: tabular-nums; color: var(--muted); }
.lx-body ul li::marker { color: var(--faint); }
.lx-body hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.4em 0; }
.lx-body blockquote { margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--ink); color: var(--ink); font-size: 1.125rem; }
.lx-body blockquote p:last-child { margin-bottom: 0; }
.lx-body code { font-family: var(--mono); font-size: 0.88em; background: var(--canvas-alt); padding: 1px 5px; border-radius: 4px; }
.lx-body pre { background: var(--canvas-alt); border: 1px solid var(--hairline); border-radius: 8px; padding: 14px 16px; overflow-x: auto; margin: 0 0 1.2em; }
.lx-body pre code { background: none; padding: 0; font-size: 0.8125rem; line-height: 1.55; }

/* callouts: label + text, no code */
.lx-callout { margin: 1.8em 0; padding: 18px 22px 18px; background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--ink); border-radius: 6px; font-size: 1rem; line-height: 1.7; }
.lx-callout p:last-child, .lx-callout ul:last-child, .lx-callout ol:last-child { margin-bottom: 0; }
.lx-callout-label { margin: 0 0 6px !important; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.lx-callout-try { background: var(--canvas-alt); border-left-color: var(--ink); }
.lx-callout-listen { border-left-style: double; border-left-width: 4px; }
.lx-callout-warn { border-left-color: var(--muted); border-style: solid solid solid dashed; }

/* figures */
.lx-fig { margin: 2em 0; }
.lx-fig img { width: 100%; height: auto; border-radius: 8px; background: var(--surface); border: 1px solid var(--hairline); }
.lx-fig figcaption { margin: 10px 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.lx-pending-box {
  min-height: 220px; border: 2px dashed var(--muted); border-radius: 8px; padding: 22px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
  background: repeating-linear-gradient(135deg, var(--surface) 0 16px, var(--canvas) 16px 32px);
}
.lx-hero .lx-pending-box { min-height: clamp(220px, 34vw, 420px); align-items: center; text-align: center; }
.lx-pending-tag {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--surface); background: var(--ink); padding: 5px 8px; border-radius: 4px;
}
.lx-pending-name { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink); overflow-wrap: anywhere; }
.lx-pending-alt { font-size: 0.875rem; color: var(--muted); max-width: 60ch; }

/* tables */
.lx-table { overflow-x: auto; margin: 0 0 1.4em; }
.lx-table table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.5; }
.lx-table th, .lx-table td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.lx-table th { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); white-space: nowrap; }
.lx-table td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Try it box */
.lx-try { margin: clamp(40px, 6vw, 56px) 0 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: clamp(20px, 3vw, 28px); }
.lx-try .eyebrow { margin-bottom: 8px; }
.lx-try-lead { margin: 0 0 6px; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.lx-try-rows { list-style: none; margin: 0; padding: 0; }
.lx-try-rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 18px 0 0; margin-top: 16px; border-top: 1px solid var(--hairline); }
.lx-try-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 3px; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.lx-try-text strong { color: var(--ink); font-size: 1.0625rem; }
.lx-try-kind { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.lx-try-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.lx-try-author > p { margin: 0 0 12px; font-size: 1rem; line-height: 1.65; color: var(--ink-soft); }
.lx-try-author > p:last-child { margin-bottom: 0; }
.lx-try-author p.lx-try-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; }
.lx-linklist { list-style: none; margin: 4px 0 16px; padding: 0; border-top: 1px solid var(--hairline); }
.lx-linklist li { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; font-size: 0.9375rem; }
.lx-linklist li a { font-weight: 700; }
.lx-linklist li span { color: var(--muted); }

/* previous / next */
.lx-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(36px, 5vw, 52px); }
.lx-pager-cell { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--hairline); border-radius: 10px; min-height: 92px; }
.lx-pager-cell.next { text-align: right; grid-column: 2; }
.lx-pager-cell.empty { border: 0; padding: 0; min-height: 0; }
a.lx-pager-cell:hover { border-color: var(--ink); }
.lx-pager-title { font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink); }

/* related products */
.lx-related { padding: clamp(48px, 8vw, 88px) 0; border-top: 1px solid var(--hairline); background: var(--canvas-alt); }
.lx-related .wrap { max-width: 760px; }
.lx-related .eyebrow { margin-bottom: 12px; }
.lx-related h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 28px; }
/* one product per row, picture left: reads the same with 1, 2 or 3 products */
.lx-pgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lx-pcard { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: stretch; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; transition: border-color .15s ease; }
.lx-pcard:hover { border-color: var(--ink); }
.lx-pcard-img { background: #0b0b0b; aspect-ratio: 16 / 10; display: grid; place-items: center; height: 100%; overflow: hidden; min-height: 0; }
.lx-pcard-img { position: relative; }
.lx-pcard-img img { position: absolute; inset: 0; }
.lx-pcard-img img { width: 100%; height: 100%; object-fit: contain; }
.lx-pcard-img.cover img { object-fit: cover; }
.lx-pcard-body { padding: 18px 22px 20px; align-self: center; }
.lx-pcard-body .micro { display: block; margin-bottom: 8px; line-height: 1.4; }
.lx-pcard h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.lx-pcard p { margin: 0; font-size: 0.875rem; color: var(--muted); line-height: 1.55; }
.lx-tag-free {
  display: inline-block; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; padding: 3px 6px; margin-left: 6px; vertical-align: 2px; line-height: 1;
}

/* header nav fit (Learn + Guides): site-wide rules in style.css, responsive section */

@media (max-width: 960px) {
  .lx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lx-feature .lx-card { display: flex; }
  .lx-feature .lx-card-img { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 560px) {
  .lx-grid { grid-template-columns: minmax(0, 1fr); }
  .lx-pcard { grid-template-columns: minmax(0, 1fr); }
  .lx-pcard-img { height: auto; }
  .lx-empty { flex-direction: column; align-items: flex-start; }
  .lx-pager { grid-template-columns: 1fr; }
  .lx-pager-cell.next { grid-column: 1; text-align: left; }
  .lx-pager-cell.empty { display: none; }
  .lx-body { font-size: 1rem; line-height: 1.72; }
  .lx-try-actions { width: 100%; }
  .lx-try-actions .btn { flex: 1 1 auto; justify-content: center; }
  .lx-try { padding: 20px 18px; }
  .lx-table th { white-space: normal; }
}
