/* หน้าเนื้อหา (ตารางนิ้วขลุ่ย, วิธีอ่านโน้ต) ใช้สีและฟอนต์เดียวกับหน้าหลัก ไม่ใช้ Tailwind/JavaScript */
:root { --bg: #e8ecf2; --ink: #1f2937; --soft: #4b5563; --line: #d5dae3; --orange: #c2570c; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Kanit', ui-sans-serif, system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.75; }
header, main, footer { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; }
a { color: var(--orange); }
nav a { text-decoration: none; padding: .35rem 0; }
nav a:hover, nav a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }
main { background: #fff; border-radius: 1.25rem; padding: 2rem 1.25rem 2.5rem; }
h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.3; margin: 0 0 .75rem; text-wrap: balance; }
h2 { font-size: 1.4rem; line-height: 1.4; margin: 2.5rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .25rem; }
p { margin: .5rem 0; max-width: 44rem; }
ul, ol { padding-left: 1.4rem; max-width: 44rem; }
li { margin: .25rem 0; }
.lead { font-size: 1.125rem; color: var(--soft); }
.btn { display: inline-block; margin: .5rem .6rem .25rem 0; padding: .55rem 1.2rem; border-radius: .8rem; font-weight: 600; text-decoration: none; color: #1f2937; background: #ffb52e; }
.btn:hover { background: #ffa50a; }
.btn.plain { background: var(--bg); }
a:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: .3rem; }
.scroll { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; }
thead th { color: var(--soft); font-size: .95rem; }
.note { margin: 1.5rem 0; padding: 1rem 1.25rem; background: #fff6e0; border-radius: 1rem; }
.note h2 { margin-top: 0; font-size: 1.2rem; }
.note th, .note td { border-color: #ecdcb4; }
/* ตารางนิ้ว */
.fingers { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr)); gap: .75rem; margin: 1rem 0; padding: 0; list-style: none; max-width: none; }
.fingers li { margin: 0; padding: .6rem .25rem .7rem; text-align: center; background: #f5f7fa; border-radius: .9rem; }
.fingers svg { display: block; height: 15rem; margin: .25rem auto 0; }
.fingers b { display: block; font-size: 1.5rem; line-height: 1.5; }
.fingers span { display: block; font-size: .85rem; color: var(--soft); line-height: 1.35; }
.parts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.parts svg { flex: 0 1 auto; height: 22rem; max-width: 100%; }
.parts > div { flex: 1 1 16rem; }
/* ตัวอย่างห้องโน้ต */
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem 0; max-width: 44rem; }
.bars div { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: .6rem .25rem; background: #f5f7fa; border: 1px solid var(--line); border-radius: .6rem; font-size: 1.25rem; font-weight: 500; }
.bars small { font-size: .75rem; font-weight: 400; color: var(--soft); }
footer button { padding: 0; border: 0; background: none; color: var(--orange); font: inherit; text-decoration: underline; cursor: pointer; }
footer { padding-top: 1.5rem; padding-bottom: 2rem; font-size: .9rem; color: var(--soft); }
@media (min-width: 48rem) { main { padding: 2.75rem 3rem 3rem; } }
@media (max-width: 34rem) {
  .bars { grid-template-columns: repeat(2, 1fr); }
  .fingers { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .fingers svg { height: 12rem; max-width: 100%; }
  .fingers span { font-size: .75rem; }
  .note { padding: 1rem .9rem; }
  .note table { table-layout: fixed; font-size: .92rem; line-height: 1.5; }
  .note th, .note td { white-space: normal; padding: .5rem .35rem; }
  .note tr > :first-child { width: 24%; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
