/* FOR'U house guides: a quiet editorial document, not a household export. */
.hg [hidden]{display:none!important}
.hg {
 --hg-paper:var(--atelier-paper,var(--paper,#f8f7f2));
 --hg-ink:var(--atelier-ink,var(--ink,#292e29));
 --hg-muted:var(--atelier-soft,var(--muted,#73756b));
 --hg-line:var(--atelier-line,var(--line,#d9d7cd));
 --hg-accent:var(--atelier-olive,var(--moss,#4b6053));
 color:var(--hg-ink);font:13px/1.55 var(--font-ui,Inter,system-ui,sans-serif);overflow-wrap:anywhere;
}
#detailModal:has(.hg){padding:24px;background:var(--cream,#f2f0eb);place-items:start center}
#detailModal .modal-card:has(.hg){width:min(100%,1180px);max-width:1180px;max-height:calc(100dvh - 48px);border:0;border-radius:0;background:transparent;box-shadow:none;padding:20px 14px 32px}
#detailModal .modal-card:has(.hg)>.modal-close{right:12px;top:12px;z-index:2}
#detailModal:has(.hg) #settingsExtras{display:none}
.hg *{box-sizing:border-box}
.hg :is(h1,h2,h3,h4){font-family:var(--font-display,"Cormorant Garamond",Georgia,serif);font-weight:500;line-height:1.12;color:var(--hg-ink);margin:0}
.hg h1{font-size:clamp(30px,3.8vw,42px);letter-spacing:-.025em}
.hg h2{font-size:29px}
.hg h3{font-size:23px}
.hg h4{font-size:20px}
.hg p{margin:7px 0 12px}
.hg .hg-eyebrow{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--hg-muted);margin:0 0 17px}
.hg-intro{max-width:560px;margin:0 0 26px;color:var(--hg-muted)}
.hg-intro p{line-height:1.65;margin-top:12px}
.hg-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:stretch}
.hg-sidebar,.hg-document{border:1px solid var(--hg-line);background:var(--hg-paper);min-width:0;padding:23px}
.hg-sidebar>p{color:var(--hg-muted);font-size:12px}
.hg-guide{display:block;width:100%;text-align:left;border:0;border-top:1px solid var(--hg-line);padding:16px 0;background:transparent;color:inherit;cursor:pointer}
.hg-guide strong{font:500 21px var(--font-display,"Cormorant Garamond",Georgia,serif)}
.hg-guide small{display:block;color:var(--hg-muted);font-size:11px;line-height:1.6;margin-top:5px}
.hg-guide[aria-current=true] strong{color:var(--hg-accent)}
.hg-badge{float:right;border-radius:12px;padding:2px 7px;font-size:10px;background:#e8ece4;color:#506453;margin-top:5px}
.hg-badge.draft{color:var(--hg-muted);background:var(--cream,#efeee8)}
.hg button,.hg a.hg-btn{font:inherit;cursor:pointer;touch-action:manipulation}
.hg .hg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 16px;border:1px solid var(--hg-line);border-radius:24px;background:transparent;color:var(--hg-ink);text-decoration:none;font-size:12px;gap:5px}
.hg .hg-btn.primary{background:var(--hg-accent);border-color:var(--hg-accent);color:var(--hg-paper)}
.hg .hg-link{border:0;background:transparent;color:var(--hg-accent);padding:5px 0;font-size:11px;min-height:32px;text-align:left}
.hg button:hover:not(:disabled),.hg a:hover{filter:brightness(.92)}
.hg :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--hg-accent);outline-offset:3px}
.hg button:disabled{cursor:wait;opacity:.6}
.hg-policy{border:1px solid var(--hg-line);background:var(--cream,#f0efe9);padding:14px;margin-top:18px}
.hg-policy dl{margin:8px 0 0}
.hg-policy dl>div{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--hg-line);padding:8px 0;font-size:11px}
.hg-policy dt,.hg-policy dd{margin:0;flex:1}
.hg-policy dd{color:var(--hg-muted)}
.hg-document header{border-bottom:1px solid var(--hg-line);padding-bottom:15px}
.hg-document header .hg-eyebrow{margin-bottom:5px}
.hg-meta{color:var(--hg-muted);font-size:11px}
.hg-title-row,.hg-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hg-tools{display:flex;flex-wrap:wrap;gap:4px 12px}
.hg-section{padding:18px 0;border-bottom:1px solid var(--hg-line)}
.hg-section-head{align-items:baseline}
.hg-section p{font-size:13px;line-height:1.65;margin:8px 0;white-space:pre-wrap}
.hg-placeholder{font-style:italic;color:var(--hg-muted)}
.hg-lock{display:inline-block;font-size:10px;color:#8a7151;background:#f2e9dc;border-radius:12px;padding:3px 9px;margin:3px 5px 0 0}
.hg-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.hg-chip{display:inline-flex;align-items:center;gap:8px;background:var(--cream,#eeede5);padding:7px 10px;font-size:11px;max-width:100%;border-radius:3px}
.hg-chip:before{content:"";flex:0 0 26px;height:30px;background:linear-gradient(145deg,#c2c1b6,#8e9185);border-radius:2px}
.hg-chip small{display:block;font-size:10px;color:var(--hg-muted)}
.hg-chip button{border:0;background:transparent;color:var(--hg-muted);padding:5px;font-size:17px}
.hg-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 14px}
.hg-panel{padding:17px;border:1px solid var(--hg-line);background:var(--cream,#f0efe9);margin:14px 0}
.hg-panel h4{margin-bottom:12px}
.hg label{display:block;color:var(--hg-ink);font-size:12px;margin:10px 0}
.hg :is(input:not([type=checkbox]),select,textarea){display:block;width:100%;min-width:0;font:inherit;color:var(--hg-ink);background:var(--hg-paper);border:1px solid var(--hg-line);border-radius:3px;padding:10px 11px;margin-top:5px}
.hg textarea{resize:vertical;min-height:110px;line-height:1.65}
.hg .hg-check{display:flex;gap:9px;align-items:flex-start;min-height:32px}
.hg input[type=checkbox]{accent-color:var(--hg-accent);margin:3px 0 0;flex-shrink:0}
.hg-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.hg-fields>.hg-wide{grid-column:1/-1}
.hg-summary{margin:8px 0 0}
.hg-summary>div{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-top:1px solid var(--hg-line);font-size:11px}
.hg-summary dt,.hg-summary dd{margin:0}
.hg-summary dd{text-align:right;color:var(--hg-muted)}
.hg-error{color:var(--oxblood,#803e35);border-left:2px solid currentColor;padding-left:12px}
.hg-status{color:var(--hg-accent);font-size:12px;white-space:pre-wrap}
.hg-rules{margin-top:30px}
.hg-rule-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.hg-rule-grid article{border:1px solid var(--hg-line);background:var(--hg-paper);padding:18px}
.hg-rule-grid h4{font-size:20px}
.hg-rule-grid p{font-size:12px;margin-bottom:0}
.hg-picker{margin:10px 0;padding:14px;border:1px solid var(--hg-line)}
.hg-picker label{padding-bottom:9px;border-bottom:1px solid var(--hg-line)}
.hg-empty{padding:36px 12px;text-align:center}
.hg-skeleton{height:18px;background:var(--hg-line);opacity:.45;margin:16px 0;border-radius:3px;width:85%}
.hg-skeleton:nth-child(2n){width:62%}
.hg-reader section{border-bottom:1px solid var(--hg-line);padding:20px 0}
.hg-reader p{white-space:pre-wrap}
.hg-reader .hg-card{background:var(--cream,#eeede5);padding:12px 15px;margin:10px 0}
.hg-reader .hg-secret{padding:10px 0}
.hg-public{margin:0;background:#f2f0eb;min-height:100dvh}
.hg-public .hg{max-width:760px;margin:auto;padding:32px 24px 64px;--hg-paper:#f8f7f2;--hg-ink:#292e29;--hg-muted:#73756b;--hg-line:#d9d7cd;--hg-accent:#4b6053}
.hg-public header{padding:24px 0;border-bottom:1px solid var(--hg-line)}
.hg-public .hg-brand{font:32px "Cormorant Garamond",Georgia,serif;letter-spacing:.06em}
@media(max-width:767px){
 #detailModal:has(.hg){padding:0}
 #detailModal .modal-card:has(.hg){width:100%;max-height:100dvh;padding:30px 18px 36px}
 .hg-layout{grid-template-columns:1fr;gap:14px}
 .hg-sidebar,.hg-document{padding:18px}
 .hg-sidebar .hg-guide{padding:10px 0}
 .hg-sidebar .hg-policy{display:none}
 .hg-intro{padding-right:20px;margin-bottom:20px}
 .hg-rule-grid{grid-template-columns:1fr}
 .hg-title-row{align-items:flex-start}
 .hg-section-head{align-items:flex-start}
 .hg-tools{gap:2px 9px;justify-content:flex-end}
 .hg-fields{grid-template-columns:1fr}
 .hg-summary>div{display:block}
 .hg-summary dd{text-align:left;margin-top:3px}
 .hg .hg-btn{min-height:44px}
 .hg .hg-link{min-height:36px}
}
