/* MyVocab grammar reference */
body { font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; color: #222; margin: 0; background: #fafaf7; }
main { max-width: 980px; margin: 0 auto; padding: 8px 20px 60px; }
nav { background: #1a4d8f; padding: 0 20px; position: sticky; top: 0; z-index: 2; }
nav .inner { max-width: 980px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2px; }
nav a { color: #dfe8f6; text-decoration: none; padding: 10px 12px; font-size: 14px; }
nav a:hover { background: rgba(255,255,255,.1); }
nav a.active { color: #fff; font-weight: 600; background: rgba(255,255,255,.15); }
h1 { font-size: 26px; margin: 24px 0 6px; color: #1a4d8f; }
h2 { font-size: 20px; margin: 32px 0 8px; border-bottom: 2px solid #e3e8f0; padding-bottom: 4px; }
h3 { font-size: 16px; margin: 22px 0 6px; color: #333; }
p.lead { color: #555; margin-top: 0; }
a { color: #1a4d8f; }
.ru, .fr, .it, .es, .zh, .ja, .hi, .de, .ko, .en { font-weight: 600; color: #1a4d8f; }
.note { background: #fff8dc; border-left: 4px solid #e6b800; padding: 8px 12px; margin: 12px 0; border-radius: 0 6px 6px 0; }
.tip { background: #eef6ee; border-left: 4px solid #3a9b4a; padding: 8px 12px; margin: 12px 0; border-radius: 0 6px 6px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid #e3e3e3; border-radius: 8px; padding: 12px 16px; }
.card h3 { margin-top: 0; }
table { border-collapse: collapse; background: #fff; margin: 8px 0 14px; font-size: 14px; }
table.wide { width: 100%; }
caption { text-align: left; font-weight: 600; color: #555; padding: 4px 0; }
th, td { border: 1px solid #e3e3e3; padding: 4px 8px; text-align: left; vertical-align: top; }
th { background: #f1f4f9; font-weight: 600; color: #444; }
td.lbl { background: #f8f9fb; color: #555; white-space: nowrap; }
.g-end { color: #8a6d3b; font-weight: 600; }
b.e { color: #c0392b; }
th.grp { background: #eef3fa; text-align: left; font-weight: 600; color: #1a4d8f; }
.g-note { font-size: 12px; color: #888; }
.scroll { overflow-x: auto; }
ul { padding-left: 22px; }
li { margin: 3px 0; }
.say { cursor: pointer; }
.say:hover { text-decoration: underline dotted; }
footer { color: #999; font-size: 12px; margin-top: 40px; }
.w { font-weight: 600; color: #1a4d8f; white-space: nowrap; }
.w-tr { font-weight: normal; font-style: italic; color: #777; margin-right: 2px; }
button.play { border: 1px solid #c8d6ea; background: #f2f6fc; border-radius: 10px; padding: 0 5px; margin-left: 2px; font-size: 12px; line-height: 18px; cursor: pointer; vertical-align: 1px; }
button.play:hover { background: #e2ebf8; }
td.big { font-size: 22px; font-weight: 600; color: #1a4d8f; white-space: nowrap; }
table.alphabet td { vertical-align: middle; }
.caseguide { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 18px 0; }
.case { background: #fff; border: 1px solid #e3e3e3; border-radius: 8px; padding: 4px 16px 12px; scroll-margin-top: 50px; }
.case h2 { border: 0; margin: 10px 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.case .num { background: #1a4d8f; color: #fff; border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.case .runame { font-weight: normal; color: #777; font-size: 16px; }
.case p { margin: 6px 0; }
.case p.ex { background: #f6f8fb; border-radius: 6px; padding: 4px 10px; }
.case p.ex i { color: #666; }
.case > a { font-size: 14px; }
.toc { background: #fff; border: 1px solid #e3e3e3; border-radius: 8px; padding: 8px 12px; }
