/* Nhà anh Hùng, Revision 2: style notes, plan, material palette, daylight maps */
.hr2-plans{grid-template-columns:1fr}
.hr2-plans figure{max-width:880px;margin:0 auto}
.hr2-plans picture{display:block}
@media(min-width:901px){.hr2-plans figure{max-width:1180px}.hr2-narrow{display:none!important}}
@media(max-width:900px){.hr2-wide{display:none!important}}
.hr2-plans figure img{background:#fff}
.hr2-materials{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:22px 26px}
.hr2-materials li{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:start}
.hr2-materials img{width:96px;height:96px;border-radius:6px;border:1px solid var(--line);object-fit:cover}
.hr2-materials h3{font-size:1rem;margin:2px 0 4px}
.hr2-materials p{margin:0;font-size:.94rem;line-height:1.45;color:var(--muted)}
.hr2-hex{display:flex;align-items:center;gap:8px;margin-top:6px!important;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.hr2-hex span{width:14px;height:14px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}
.hr2-drawings figure:nth-child(n+3) img{height:min(80vh,1300px);width:100%;object-fit:contain;background:#faf9f6}
.hr2-lux-note{margin-top:22px}
.hr2-reel{margin:8px 0 56px;font-family:var(--heading-font)}
.hr2-reel-head{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin:0 5vw 14px}
.hr2-reel-head .render-strip-label{margin:0}
.hr2-reel-nav{display:flex;gap:8px}
.hr2-reel-btn{min-width:44px;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);font:inherit;font-size:14px;cursor:pointer;transition:background-color .2s,border-color .2s}
.hr2-reel-btn:hover{border-color:var(--ink)}
.hr2-reel-btn:focus-visible,.hr2-reel-track:focus-visible,.hr2-reel-link:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.hr2-reel-track{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;cursor:grab;touch-action:pan-x pan-y}
.hr2-reel-track::-webkit-scrollbar{display:none}
.hr2-reel-track.is-dragging{cursor:grabbing;user-select:none}
.hr2-reel-track.is-dragging a{pointer-events:none}
.hr2-reel-list{display:flex;width:max-content}
.hr2-reel-group{display:flex;gap:10px;margin:0;padding:0 10px 0 0;list-style:none}
.hr2-reel-link{display:block;overflow:hidden;background:var(--panel)}
.hr2-reel-link img{display:block;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.hr2-reel-link:hover img{transform:scale(1.025)}
.hr2-reel-hint{margin:12px 5vw 0;font-size:12px;color:var(--muted)}
@media(hover:none){.hr2-reel-link:hover img{transform:none}}
@media(prefers-reduced-motion:reduce){.hr2-reel-link img{transition:none}}
.luong-plan svg.hr2-plan image{pointer-events:none}
/* top strip: pause control (WCAG 2.2.2) */
.hr2-strip-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 5vw 14px}
.hr2-strip-head .render-strip-label{margin:0}
.hr2-project .render-strip.is-paused .render-strip-rail{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.hr2-strip-toggle{display:none}}
/* captions: 11 px floor */
.hr2-project .render-strip-caption strong{font-size:12px}
.hr2-project .render-strip-caption small,.hr2-project .render-strip-caption em{font-size:11px}
.hr2-project .render-strip-label{font-size:12px}
/* the plan picture keeps its focus ring (.luong-plan a:focus-visible removes outlines for the SVG markers) */
.hr2-project .luong-plan .luong-board-picture:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
/* rooms with one view: text beside the picture instead of one full-width image */
@media(min-width:901px){
.hr2-project .luong-room:has(.luong-gallery>figure:only-child){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);grid-template-rows:auto 1fr;gap:0 48px;align-items:start}
.hr2-project .luong-room:has(.luong-gallery>figure:only-child)>.luong-gallery{grid-column:2;grid-row:1/span 2;grid-template-columns:1fr}
.hr2-project .luong-room:has(.luong-gallery>figure:only-child)>h3,.hr2-project .luong-room:has(.luong-gallery>figure:only-child)>p{grid-column:1}
}
/* reading measure and last-line balance */
.hr2-lux-note{max-width:68ch}
.hr2-project .luong-note p{text-wrap:pretty}
/* WebKit lets long view names in the plan drop-downs widen the page on phones */
.hr2-project .luong-board-toolbar{overflow-x:clip;padding-inline:8px;margin-inline:-8px}
@media(max-width:700px){.hr2-materials{grid-template-columns:1fr}}
.hr2-c01{--c:#EAD18E}.hr2-c02{--c:#EEEAE0}.hr2-c03{--c:#C05A34}.hr2-c04{--c:#181817}.hr2-c05{--c:#433A30}.hr2-c06{--c:#EDD493}.hr2-c07{--c:#EAE1CE}.hr2-c08{--c:#D0BD9F}.hr2-c09{--c:#C19D75}.hr2-c10{--c:#B9966D}.hr2-c11{--c:#492E1B}.hr2-c12{--c:#D1C4AD}.hr2-c13{--c:#D7CAB0}.hr2-c14{--c:#CCB799}.hr2-c15{--c:#A1603D}.hr2-c16{--c:#EAE1CE}.hr2-c17{--c:#AF8C56}
