/* How-to-play guides. Colours and type come from the brand tokens set in templates/base.html.
   Greens, greys and browns on .lh-art and .lh-hero-art are game artwork, and green, amber and red are
   status colours inside the games: both stay as they are. */
.lh { --lh-ink: var(--ink); --lh-muted: var(--muted); --lh-line: var(--line); --lh-accent: var(--accent-ink); --lh-soft: var(--accent-tint); --lh-night: var(--paper-2); --lh-display: var(--font-sans);
    max-width: 1240px; margin: 0 auto; padding: 24px 18px 80px; color: var(--lh-ink); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.lh h1, .lh h2, .lh h3 { font-family: var(--lh-display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.lh h3 { font-weight: 700; letter-spacing: -0.01em; }
.lh-toc { position: sticky; top: 84px; display: grid; gap: 2px; font-size: 15px; }
.lh-toc strong { font: 700 15px var(--font-sans); color: var(--lh-ink); margin-bottom: 6px; }
.lh-toc a { color: var(--ink-2); text-decoration: none; padding: 5px 10px; border-radius: var(--radius-sm); }
.lh-toc a:hover { background: var(--lh-soft); color: var(--lh-ink); }
.lh-main { display: grid; gap: 34px; min-width: 0; }
.lh-hero { background: var(--lh-night); color: var(--lh-ink); border-radius: var(--radius-md); padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; align-items: center; }
.lh-hero p { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin: 10px 0 0; }
.lh-eyebrow { font: 700 15px var(--font-sans); color: var(--accent-ink); }
.lh-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; color: var(--lh-ink); margin-top: 6px; }
.lh-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); font-size: 15px; color: var(--lh-ink); }
.lh-note i { color: var(--accent-ink); margin-top: 3px; }
.lh-hero-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #c4d7a2; border-radius: var(--radius-md); padding: 10px; }
.lh-hero-art .lh-art { width: 100%; height: auto; aspect-ratio: 1; background: transparent; }
.lh-section { scroll-margin-top: 84px; }
.lh-section > h2 { font-size: 26px; line-height: 1.23; display: flex; gap: 10px; align-items: center; }
.lh-section > h2 i { color: var(--lh-accent); font-size: 20px; }
.lh-lead { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin: 8px 0 16px; max-width: 820px; }
.lh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.lh-grid.is-wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.lh-card { background: var(--paper); border: 1px solid var(--lh-line); border-radius: var(--radius-md); padding: 14px; display: grid; gap: 8px; align-content: start; }
.lh-card-head { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; }
.lh-card-head h3 { font-size: 17px; }
.lh-card-head small { display: block; color: var(--lh-muted); font-size: 14px; margin-top: 2px; }
.lh-art { width: 88px; height: 88px; border-radius: var(--radius-md); background: #c4d7a2; display: block; }
.lh-art.is-road { background: #4d4440; }
.lh-art.is-dark { background: #2b2520; }
.lh-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.lh-card .lh-why { background: var(--lh-soft); border-radius: var(--radius-sm); padding: 8px 10px; color: var(--lh-ink); }
.lh-card .lh-why b { color: var(--lh-ink); }
.lh-specs { display: flex; flex-wrap: wrap; gap: 4px; }
.lh-spec { font: 600 13px var(--font-sans); padding: 3px 7px; border-radius: var(--radius-sm); background: var(--paper-2); color: var(--lh-ink); white-space: nowrap; }
.lh-spec.is-bad { background: #fde8e6; color: #b42318; }
.lh-spec.is-good { background: #e7f6ec; color: #157f3b; }
.lh-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lh-steps { counter-reset: step; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lh-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; background: var(--paper); border: 1px solid var(--lh-line); border-radius: var(--radius-md); padding: 10px 12px; line-height: 1.5; font-size: 15px; }
.lh-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 14px var(--lh-display); }
.lh-flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.lh-flow-step { position: relative; background: var(--paper); border: 1px solid var(--lh-line); border-radius: var(--radius-md); padding: 10px; text-align: center; font-size: 14px; line-height: 1.4; display: grid; gap: 6px; justify-items: center; align-content: start; }
.lh-flow-step b { font-family: var(--lh-display); font-size: 15px; }
.lh-flow-step:not(:last-child)::after { content: "\f054"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; right: -10px; top: 40%; color: var(--lh-accent); font-size: 12px; z-index: 1; }
.lh-flow .lh-art { width: 64px; height: 64px; }
.lh-table-wrap { overflow-x: auto; background: var(--paper); }
.lh-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lh-table th, .lh-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.lh-table th { font: 700 14px var(--font-sans); color: var(--lh-ink); background: var(--paper); border-bottom: 2px solid var(--ink); }
.lh-m { font: 700 13px var(--font-sans); text-align: center !important; }
.lh-m.is-strong { background: #dcfce7; color: #166534; }
.lh-m.is-weak { background: #fef3c7; color: #92400e; }
.lh-m.is-none { background: var(--paper-2); color: var(--muted); }
.lh-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.lh-key-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lh-key-list li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; }
kbd.lh-kbd, .lh-btnchip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 28px; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--muted); border-bottom-width: 3px; font: 700 13px var(--font-sans); color: var(--lh-ink); white-space: nowrap; }
.lh-btnchip.is-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lh-btnchip.is-hot { background: var(--accent); color: var(--on-accent); border-color: var(--accent-ink); }
.lh-agent-head { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; }
.lh-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 13px var(--lh-display); }
.lh-pros, .lh-cons { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 14px; line-height: 1.45; }
.lh-pros li::before, .lh-cons li::before { font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 6px; }
.lh-pros li { color: #166534; }
.lh-pros li::before { content: "\f00c"; }
.lh-cons li { color: #991b1b; }
.lh-cons li::before { content: "\f071"; }
.lh-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.lh-legend-item { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--lh-line); border-radius: var(--radius-md); padding: 8px; font-size: 14px; line-height: 1.45; }
.lh-legend-item .lh-art { width: 64px; height: 64px; }
.lh-legend-item b { display: block; font-family: var(--lh-display); font-size: 15px; }
.lh-tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.lh-tip { display: grid; grid-template-columns: 30px 1fr; gap: 10px; background: var(--paper); border: 1px solid var(--lh-line); border-radius: var(--radius-md); padding: 12px; font-size: 15px; line-height: 1.5; }
.lh-tip i { color: var(--lh-accent); font-size: 18px; margin-top: 2px; }
.lh-tip.is-bad i { color: #b42318; }
.lh-callout { background: var(--lh-soft); border-radius: var(--radius-md); padding: 12px 14px; font-size: 15px; line-height: 1.55; margin-top: 12px; }
.lh-top { display: inline-flex; gap: 6px; margin-top: 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.lh-crumb { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; margin-bottom: -20px; }
.lh-crumb:hover { color: var(--lh-accent); }
.lh-hero.has-shot { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
.lh-shot { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--ink); display: block; }
.lh-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lh-fact { display: grid; gap: 1px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--lh-ink); }
.lh-fact small { font: 600 13px var(--font-sans); color: var(--muted); }
.lh-icon { width: 88px; height: 88px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--lh-ink); color: #fff; font-size: 32px; }
.lh-legend-item .lh-icon, .lh-flow .lh-icon { width: 64px; height: 64px; font-size: 24px; }
.lh-card-head.is-plain { grid-template-columns: 1fr; }
.lh-table td.is-good { background: #e7f6ec; color: #157f3b; font-weight: 600; }
.lh-table td.is-warn { background: #fef3c7; color: #92400e; font-weight: 600; }
.lh-table td.is-bad { background: #fde8e6; color: #b42318; font-weight: 600; }
.lh-table td.is-muted { color: var(--muted); }
.lh-key-list .lh-chips { display: flex; flex-wrap: wrap; gap: 4px; align-content: start; }
.lh-key-list.is-roomy li { grid-template-columns: 150px 1fr; }

.hp { --lh-ink: var(--ink); --lh-muted: var(--muted); --lh-line: var(--line); --lh-accent: var(--accent-ink); --lh-soft: var(--accent-tint); --lh-display: var(--font-sans);
    max-width: 1240px; margin: 0 auto; padding: 24px 18px 80px; color: var(--lh-ink); display: grid; gap: 30px; }
.hp h1, .hp h2, .hp h3 { font-family: var(--lh-display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.hp h3 { font-weight: 700; letter-spacing: -0.01em; }
.hp-hero { background: var(--paper-2); color: var(--lh-ink); border-radius: var(--radius-md); padding: 28px; }
.hp-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; color: var(--lh-ink); margin-top: 6px; }
.hp-hero p { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin: 10px 0 0; max-width: 760px; }
.hp-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hp-jump a { color: var(--lh-ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.hp-jump a:hover { background: var(--lh-soft); border-color: var(--ink); }
.hp-group { display: grid; gap: 14px; scroll-margin-top: 84px; }
.hp-group h2 { font-size: 26px; line-height: 1.23; }
.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hp-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--lh-line); border-radius: var(--radius-md); overflow: hidden; color: inherit; text-decoration: none; transition: border-color 0.15s ease; }
.hp-card:hover { border-color: var(--ink); }
.hp-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; display: block; background: var(--ink); border-bottom: 1px solid var(--lh-line); }
.hp-card-body { display: grid; gap: 6px; padding: 12px 14px 14px; align-content: start; }
.hp-card-body h3 { font-size: 17px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.hp-card-body h3 small { font: 600 13px var(--font-sans); letter-spacing: 0; color: var(--lh-muted); white-space: nowrap; }
.hp-card-body p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.hp-card-body span { font-size: 15px; font-weight: 600; color: var(--lh-accent); }

@media (max-width: 960px) {
    .lh { grid-template-columns: 1fr; }
    .lh-toc { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .lh-hero, .lh-hero.has-shot { grid-template-columns: 1fr; }
    .lh-flow { grid-template-columns: repeat(2, 1fr) !important; }
    .lh-flow-step::after { display: none; }
    .lh-crumb { margin-bottom: 0; }
}
