/* Trang tổng «Luyện thi JLPT N5» (luyen-thi-n5.php, 2026-10-19). Same look as the N5/N4 list pages (v5-lesson.css
   .v5-learning-list): warm page, serif title with a red bar, Fuji art, peach review card, white part cards. */
#main-container:has(#n5h-app),body:has(#n5h-app){background:#f9f5f2}
.n5h{--red:#cd2f39;--brown:#6f4b31;--brown-2:#9a6243;--navy:#1f2552;--ink:#2b3446;--muted:#6b7480;--line:#ece3da;--peach:#fcf4eb;--peach-line:#f0d9bd;--shadow:0 1px 2px rgba(80,50,30,.04),0 6px 18px rgba(80,50,30,.05);max-width:1180px;margin:0 auto;padding:14px 24px 36px;color:var(--ink);font:15px/1.6 "Segoe UI",Arial,sans-serif}
.n5h *{box-sizing:border-box}.n5h [hidden]{display:none!important}
.n5h h1,.n5h h2,.n5h h3,.n5h p{font-family:inherit;color:inherit}.n5h p{margin:0 0 10px}
.n5h a{color:#b13d36;text-decoration:none}.n5h a:hover{color:#8f2f29}
.n5h a:focus-visible{outline:3px solid #548cb0;outline-offset:3px}
.n5h .n5h-icon,.n5h .n4ui-icon{width:20px;height:20px;flex:none}
.n5h-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;margin:4px 0 16px;font-size:13px}
.n5h .n5h-crumb-home{display:inline-flex;color:var(--brown-2)}.n5h-crumb-home .n4ui-icon{width:18px;height:18px}
.n5h-crumb-sep{color:#b3a79c;font-size:15px;line-height:1}

/* Hero */
.n5h-hero{position:relative;min-height:240px;margin:0 0 8px;padding:6px 0 24px}
.n5h-hero>*:not(.n4ui-hero-art){position:relative;z-index:1;max-width:58%}
.n5h .n5h-eyebrow{margin:0;font-size:12px;font-weight:750;letter-spacing:1.6px;color:var(--brown-2)}
.n5h .n5h-hero h1{margin:8px 0 10px;padding:2px 0 2px 18px;border-left:7px solid var(--red);font:600 38px/1.25 "Noto Serif","Times New Roman",Georgia,serif;letter-spacing:0;color:#151515}
.n5h .n5h-lead{font-size:15.5px;color:#5c6672}
.n5h-stats{display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:16px;font-size:13px;color:var(--muted)}
.n5h-stats strong{margin-right:5px;font:600 24px/1 "Noto Serif","Times New Roman",serif;color:var(--brown)}
.n5h .n4ui-hero-art{position:absolute;top:-44px;right:-10px;width:min(42%,480px);pointer-events:none;user-select:none}
.n5h .n4ui-hero-art img{display:block;width:100%;height:auto}
.n5h .n4ui-hero-motto{position:absolute;top:52%;right:1%;margin:0;color:#3b3734}
.n5h .n4ui-hero-motto span{display:block;font:600 21px/1.6 "Klee One","Yu Mincho","Hiragino Mincho ProN",serif;letter-spacing:.06em}
.n5h .n4ui-hero-motto em{display:block;margin-top:2px;font:italic 12.5px/1.4 Georgia,"Times New Roman",serif;color:#716b66}

/* Buttons */
.n5h .n5h-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 17px;border:1px solid #ded3c9;border-radius:8px;background:#fff;color:var(--ink);font-weight:650;line-height:1.4;transition:background .15s,border-color .15s}
.n5h .n5h-button:hover{background:#f6f4f2;border-color:#bba794;color:var(--ink)}
.n5h .n5h-button-primary{background:#d04f4d;border-color:#c64543;color:#fff}
.n5h .n5h-button-primary:hover{background:#bb3f3d;border-color:#ab3634;color:#fff}
.n5h-button .n5h-icon{width:16px;height:16px}
.n5h .n5h-link{display:inline-flex;align-items:center;gap:6px;padding:6px 2px;font-size:14px;font-weight:650}
.n5h-link .n5h-icon{width:16px;height:16px}
.n5h-count{min-width:24px;padding:1px 7px;border-radius:999px;background:#d04f4d;color:#fff;font-size:12px;font-weight:700;line-height:1.6;text-align:center}
.is-empty>.n5h-count{background:#efe6dd;color:#8a7a6c}

/* «Cần ôn tập N5» */
.n5h-review{position:relative;z-index:1;display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;margin:0 0 26px;padding:22px 24px;background:var(--peach);border:1px solid var(--peach-line);border-radius:14px;box-shadow:var(--shadow)}
.n5h-review-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #e98b6a;color:#d4573a}
.n5h-review-icon .n4ui-icon{width:28px;height:28px;stroke-width:2.1}
.n5h .n5h-review h2{margin:2px 0 4px;font-size:19px;font-weight:700;line-height:1.35;color:#7a3a1f}
.n5h #n5h-review-status{margin:0;font-size:14px;color:#5c6672}
.n5h-review-parts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0;padding:0;list-style:none}
.n5h-review-parts li{min-width:0}
.n5h .n5h-review-parts a{display:flex;align-items:center;gap:8px;height:100%;min-height:48px;padding:9px 12px;border:1px solid #f0dfcc;border-radius:10px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;line-height:1.35;transition:border-color .15s,background .15s}
.n5h .n5h-review-parts a:hover{border-color:#e2b8a8;background:#fffaf6;color:#b13d36}
.n5h-review-parts .n5h-icon{width:18px;height:18px;color:#c0705a}
.n5h-review-parts .n5h-count{margin-left:auto}
.n5h-review-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.n5h-review-actions .n5h-link{margin-left:auto}
.n5h .n5h-review-note{margin:12px 0 0;font-size:13px;color:#6b6158}.n5h-review-note a{text-decoration:underline}

/* Section titles */
.n5h-section-head{margin:0 0 14px}
.n5h .n5h-section-title{display:flex;align-items:center;gap:10px;margin:0 0 3px;font:700 22px/1.3 "Segoe UI",Arial,sans-serif;color:var(--navy)}
.n5h-section-title .n4ui-icon{width:25px;height:25px;color:var(--red);fill:#fbe3e1}
.n5h-section-head p,.n5h .n5h-muted{margin:0;font-size:13.5px;color:var(--muted)}

/* Part cards */
.n5h-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 16px}
.n5h-part{--tint:#fff3e6;--accent:#a55718;display:flex;flex-direction:column;min-width:0;padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);transition:border-color .15s,box-shadow .15s}
.n5h-part:hover{border-color:#e6b1ab;box-shadow:0 2px 4px rgba(80,50,30,.05),0 10px 24px rgba(80,50,30,.08)}
.n5h-part-grammar{--tint:#eaf2fb;--accent:#2f6aa8}.n5h-part-reading{--tint:#eaf7f0;--accent:#287255}.n5h-part-listening{--tint:#f2edfc;--accent:#6a4aa0}
.n5h-part-head{display:flex;align-items:center;gap:14px;margin:0 0 10px}
.n5h-part-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:13px;background:var(--tint);color:var(--accent)}
.n5h-part-icon .n5h-icon{width:25px;height:25px}
.n5h .n5h-part h3{margin:0;font-size:20px;font-weight:700;line-height:1.3}
.n5h .n5h-part h3 a{color:var(--navy)}.n5h .n5h-part h3 a:hover{color:#b13d36}
.n5h-part-jp{display:block;margin-top:1px;font:500 13px/1.4 "Noto Sans JP","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;color:var(--accent);letter-spacing:.06em}
.n5h .n5h-part-text{flex:0 0 auto;font-size:14px;line-height:1.65;color:#5c6672}
.n5h-types{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 12px;padding:0;list-style:none}
.n5h-types li{padding:3px 9px;border-radius:6px;background:var(--tint);color:var(--accent);font-size:12px;font-weight:650}
.n5h .n5h-part-stats{display:flex;flex-wrap:wrap;gap:4px 18px;margin:auto 0 14px;padding-top:12px;border-top:1px solid #f0e8e0;font-size:13px;color:var(--muted)}
.n5h-part-stats strong{margin-right:3px;font:600 19px/1 "Noto Serif","Times New Roman",serif;color:var(--brown)}
.n5h-part-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.n5h-part-actions .n5h-link{margin-left:auto}

/* Grammar reference */
.n5h .n5h-reference{display:flex;align-items:center;gap:16px;margin:0 0 28px;padding:16px 22px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);color:var(--ink)}
.n5h .n5h-reference:hover{border-color:#e6b1ab;color:var(--ink)}
.n5h-reference-icon{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:12px;background:#fbe3e1;color:var(--red)}
.n5h-reference>span:nth-child(2){flex:1;min-width:0}
.n5h-reference strong{display:block;font-size:16px;color:var(--navy)}
.n5h-reference>span>span{display:block;font-size:13.5px;color:var(--muted)}
.n5h-reference>.n5h-icon{color:#b13d36}

/* Exam structure + path */
.n5h-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px}
.n5h-exam,.n5h-path{padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.n5h-exam .n5h-section-title,.n5h-path .n5h-section-title{font-size:19px;margin-bottom:6px}
.n5h-exam-list{margin:14px 0 0;padding:0;list-style:none}
.n5h-exam-list li{display:grid;gap:2px;padding:12px 0;border-top:1px solid #f0e8e0}
.n5h-exam-list li:first-child{border-top:0;padding-top:4px}
.n5h-exam-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.n5h-exam-jp{font:500 14px/1.5 "Noto Sans JP","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;color:var(--brown-2)}
.n5h-exam-time{flex:none;padding:1px 9px;border-radius:999px;background:#f3eeea;color:var(--brown);font-size:12px;font-weight:700}
.n5h-exam-list strong{font-size:15px;color:var(--navy)}
.n5h-exam-detail{font-size:13px;color:var(--muted)}
.n5h-steps{margin:14px 0 0;padding:0;list-style:none;counter-reset:n5h-step}
.n5h-steps li{position:relative;display:grid;gap:1px;padding:0 0 14px 44px;counter-increment:n5h-step}
.n5h-steps li:last-child{padding-bottom:0}
.n5h-steps li::before{content:counter(n5h-step);position:absolute;left:0;top:0;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e7f2f8;color:#16698f;font:800 13px/1 "Segoe UI",Arial,sans-serif}
.n5h-steps strong{font-size:15px;color:var(--navy)}
.n5h-steps span{font-size:13px;color:var(--muted)}

@media(max-width:1000px){.n5h .n4ui-hero-art{width:44%;top:-20px}.n5h .n4ui-hero-motto span{font-size:18px}.n5h-review-parts{grid-template-columns:repeat(2,minmax(0,1fr))}.n5h-columns{grid-template-columns:1fr}}
@media(max-width:760px){
 .n5h{padding:10px 14px 28px}
 .n5h .n4ui-hero-art{display:none}
 .n5h-hero{min-height:0;padding-bottom:16px}
 .n5h-hero>*:not(.n4ui-hero-art){max-width:none}
 .n5h .n5h-hero h1{padding-left:12px;border-left-width:5px;font-size:28px}
 .n5h-stats{gap:8px 18px}.n5h-stats strong{font-size:21px}
 .n5h-review{grid-template-columns:1fr;gap:10px;padding:16px}
 .n5h-review-icon{width:40px;height:40px}.n5h-review-icon .n4ui-icon{width:23px;height:23px}
 .n5h-review-actions .n5h-link{margin-left:0}
 .n5h-parts{grid-template-columns:1fr}
 .n5h-part{padding:18px}
 .n5h .n5h-section-title{font-size:20px}
 .n5h .n5h-reference{padding:14px 16px;gap:12px}
 .n5h-exam,.n5h-path{padding:18px}
}
@media(max-width:420px){.n5h-review-parts{grid-template-columns:1fr 1fr;gap:6px}.n5h .n5h-review-parts a{padding:8px 9px;font-size:13px}.n5h-part-actions .n5h-link{margin-left:0}}
