/* Honor Guard — maroon, cream and gold with a field-ready dark header. */
.hg-app{--hg-maroon:#7a1f2b;--hg-maroon-d:#5c1620;--hg-gold:#c9a227;--hg-cream:#f7f1e3;--hg-ink:#231d1a;--hg-muted:#6f665e;--hg-line:#e4dccb;--hg-card:#fffdf8;--hg-ok:#2f6b3a;--hg-danger:#a3262f;
	font-family:"Source Sans 3",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--hg-ink);font-size:16px;line-height:1.5;max-width:1200px;margin:0 auto 40px;}
.hg-app *{box-sizing:border-box}
.hg-app a{color:var(--hg-maroon)}
.hg-app h1,.hg-app h2,.hg-app h3,.hg-app h4{font-family:Oswald,"Source Sans 3",sans-serif;letter-spacing:.02em;color:var(--hg-ink);margin:0 0 .5em;line-height:1.2}
.hg-app h2{font-size:1.25rem}.hg-app h3{font-size:1.05rem}.hg-app h4{font-size:.95rem;margin-top:1em}
.hg-muted{color:var(--hg-muted)}.hg-small{font-size:.85rem}.hg-nowrap{white-space:nowrap}
.hg-lead{font-size:1.05rem;color:var(--hg-muted);max-width:70ch}

/* Header and tabs */
.hg-top{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#1f1a17,#3a1218 70%,var(--hg-maroon));color:var(--hg-cream);padding:18px 20px;border-radius:14px 14px 0 0;border-bottom:3px solid var(--hg-gold)}
.hg-crest{color:var(--hg-gold);display:flex}
.hg-top-text{flex:1;min-width:0}
.hg-kicker{text-transform:uppercase;font-size:.72rem;letter-spacing:.14em;opacity:.8}
.hg-top .hg-title{color:var(--hg-cream);font-size:clamp(1.6rem,4vw,2.3rem);margin:0}
.hg-me{display:flex;align-items:center;gap:10px;color:var(--hg-cream)!important;text-decoration:none}
.hg-me img{border-radius:50%;border:2px solid var(--hg-gold)}
.hg-me span{display:flex;flex-direction:column;line-height:1.15}.hg-me small{color:var(--hg-gold)}
.hg-nav{background:#2a2320;border-radius:0 0 14px 14px;margin-bottom:18px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.hg-nav-inner{display:flex;gap:2px;padding:6px;min-width:max-content}
.hg-nav a{color:#e9e1d0!important;text-decoration:none;padding:8px 12px;border-radius:8px;font-weight:600;font-size:.95rem;white-space:nowrap}
.hg-nav a:hover{background:rgba(255,255,255,.08)}
.hg-nav a.is-on{background:var(--hg-gold);color:#231d1a!important}

/* Layout */
.hg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;margin-bottom:16px}
.hg-span{grid-column:1/-1}.hg-span-2{grid-column:span 2}
@media(max-width:700px){.hg-span-2{grid-column:1/-1}}
.hg-card{background:var(--hg-card);border:1px solid var(--hg-line);border-radius:12px;padding:18px;margin-bottom:16px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.hg-grid>.hg-card{margin-bottom:0}
.hg-notice{padding:12px 16px;border-radius:10px;margin-bottom:16px;font-weight:600}
.hg-notice-ok{background:#e8f3e9;color:var(--hg-ok);border:1px solid #bcd9c0}
.hg-notice-error{background:#fbeaea;color:var(--hg-danger);border:1px solid #efc3c3}
.hg-prose p{margin:0 0 .8em}.hg-prose ul,.hg-prose ol{margin:0 0 .8em 1.2em}

/* Buttons and forms */
.hg-btn{display:inline-block;background:var(--hg-maroon);color:#fff!important;border:2px solid var(--hg-maroon);border-radius:8px;padding:9px 16px;font-weight:700;font-size:.95rem;cursor:pointer;text-decoration:none;line-height:1.2;font-family:inherit}
.hg-btn:hover{background:var(--hg-maroon-d);border-color:var(--hg-maroon-d)}
.hg-btn-sm{padding:6px 11px;font-size:.85rem}
.hg-btn-ghost{background:transparent;color:var(--hg-maroon)!important}
.hg-btn-ghost:hover{background:#f3e7e2}
.hg-btn-danger{background:transparent;color:var(--hg-danger)!important;border-color:var(--hg-danger)}
.hg-btn.is-on{background:var(--hg-ok);border-color:var(--hg-ok);color:#fff!important}
.hg-form label{display:block;font-weight:600;font-size:.9rem;margin-bottom:10px}
.hg-form input[type=text],.hg-form input[type=number],.hg-form input[type=date],.hg-form input[type=time],.hg-form select,.hg-form textarea{display:block;width:100%;margin-top:4px;padding:9px 10px;border:1px solid #cfc5b2;border-radius:8px;background:#fff;font:inherit;font-weight:400;color:var(--hg-ink)}
.hg-form label.hg-check{display:flex;gap:8px;align-items:flex-start;font-weight:400}
.hg-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:520px){.hg-row{grid-template-columns:1fr}}
.hg-inline{display:inline-block;margin:0}
.hg-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
details>summary{cursor:pointer;font-weight:700;color:var(--hg-maroon)}
details[open]>summary{margin-bottom:12px}

/* Pills and tags */
.hg-pill{display:inline-block;border-radius:999px;padding:3px 10px;font-size:.8rem;font-weight:700;background:#efe7d6;color:var(--hg-ink);text-decoration:none}
.hg-pill-yes{background:#dcefdf;color:var(--hg-ok)}.hg-pill-maybe{background:#fbf0cf;color:#7a5b00}.hg-pill-no{background:#f3dcdc;color:var(--hg-danger)}
.hg-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.hg-tag{display:inline-block;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:3px 8px;border-radius:6px;margin-bottom:6px}
.hg-ok{color:var(--hg-ok);font-weight:700}

/* Event rows and colours */
.hg-ev{display:flex;gap:12px;align-items:center;padding:10px;border-radius:10px;text-decoration:none!important;color:var(--hg-ink)!important;border-left:4px solid var(--hg-gold);background:#fbf7ee;margin-bottom:8px}
.hg-ev:hover{background:#f5eedd}
.hg-ev-date{display:flex;flex-direction:column;align-items:center;min-width:44px;font-size:1.3rem;font-weight:700;line-height:1}
.hg-ev-date b{font-size:.7rem;text-transform:uppercase;color:var(--hg-maroon)}
.hg-ev-body{flex:1;display:flex;flex-direction:column}.hg-ev-body small{color:var(--hg-muted)}
.hg-ev-drill,.hg-ev-exercise{border-color:#7a1f2b}.hg-ev-training{border-color:#2f5d8a}.hg-ev-workday{border-color:#6b8e23}.hg-ev-hunt{border-color:#8b5a2b}.hg-ev-fishing{border-color:#2a8a8a}.hg-ev-forage{border-color:#4f7a3a}.hg-ev-meeting{border-color:#c9a227}.hg-ev-range{border-color:#555}
.hg-tag.hg-ev-drill,.hg-chip.hg-ev-drill,.hg-tag.hg-ev-exercise,.hg-chip.hg-ev-exercise{background:#f4dfe2}
.hg-tag.hg-ev-training,.hg-chip.hg-ev-training{background:#dde8f3}.hg-tag.hg-ev-workday,.hg-chip.hg-ev-workday{background:#e6efd6}
.hg-tag.hg-ev-hunt,.hg-chip.hg-ev-hunt{background:#efe2d3}.hg-tag.hg-ev-fishing,.hg-chip.hg-ev-fishing{background:#d8eeee}
.hg-tag.hg-ev-forage,.hg-chip.hg-ev-forage{background:#e1ecd9}.hg-tag.hg-ev-meeting,.hg-chip.hg-ev-meeting{background:#f6eccb}.hg-tag.hg-ev-range,.hg-chip.hg-ev-range{background:#e5e5e5}

/* Calendar */
.hg-cal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.hg-cal-head h2{margin:0}
.hg-cal{background:var(--hg-card);border:1px solid var(--hg-line);border-radius:12px;overflow:hidden;margin-bottom:16px}
.hg-cal-dow,.hg-cal-grid{display:grid;grid-template-columns:repeat(7,1fr)}
.hg-cal-dow span{background:#2a2320;color:#e9e1d0;text-align:center;font-size:.8rem;font-weight:700;padding:6px 0}
.hg-day{min-height:96px;border-right:1px solid var(--hg-line);border-bottom:1px solid var(--hg-line);padding:4px;display:flex;flex-direction:column;gap:3px;min-width:0}
.hg-day:nth-child(7n){border-right:0}
.hg-day.is-empty{background:#f6f1e6}
.hg-day.is-today{background:#fff7dc}
.hg-day.is-today .hg-dnum{background:var(--hg-gold);color:#231d1a;border-radius:50%;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center}
.hg-dnum{font-size:.8rem;font-weight:700;color:var(--hg-muted)}
.hg-chip{display:block;font-size:.75rem;padding:2px 5px;border-radius:5px;text-decoration:none;color:var(--hg-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:640px){.hg-day{min-height:58px}.hg-chip{font-size:0;height:8px;padding:0}}
.hg-rsvp{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}

/* Chat */
.hg-chat{display:grid;grid-template-columns:240px 1fr;gap:16px;height:min(72vh,720px)}
.hg-chat-side{background:var(--hg-card);border:1px solid var(--hg-line);border-radius:12px;padding:14px;overflow:auto}
.hg-chat-side h3{font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;color:var(--hg-muted);margin:14px 0 6px}
.hg-chat-side h3:first-child{margin-top:0}
.hg-channels,.hg-online{list-style:none;margin:0;padding:0}
.hg-channels a{display:flex;justify-content:space-between;align-items:center;padding:7px 9px;border-radius:8px;text-decoration:none;font-weight:600;color:var(--hg-ink)!important}
.hg-channels a:hover{background:#f3ecdc}.hg-channels a.is-on{background:var(--hg-maroon);color:#fff!important}
.hg-badge{background:var(--hg-gold);color:#231d1a;border-radius:999px;font-size:.72rem;padding:1px 7px;font-weight:700}
.hg-online li{font-size:.9rem;padding:2px 0}.hg-online li:before{content:"●";color:#3c9a4a;margin-right:6px;font-size:.7rem}
.hg-online li.hg-muted:before{content:""}
.hg-chat-main{display:flex;flex-direction:column;background:var(--hg-card);border:1px solid var(--hg-line);border-radius:12px;overflow:hidden;min-height:0}
.hg-chat-head{padding:10px 14px;font-weight:700;border-bottom:1px solid var(--hg-line);background:#fbf7ee}
.hg-msgs{flex:1;overflow-y:auto;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.hg-msg{display:flex;gap:10px;align-items:flex-start}
.hg-msg img{width:34px;height:34px;border-radius:50%;flex:none}
.hg-msg-body{min-width:0;flex:1}
.hg-msg-meta{font-size:.82rem;color:var(--hg-muted)}.hg-msg-meta strong{color:var(--hg-ink);font-size:.95rem}
.hg-msg-text p{margin:.1em 0;overflow-wrap:anywhere}
.hg-msg.is-system{justify-content:center;font-size:.88rem;color:var(--hg-muted);font-style:italic}
.hg-msg-del{background:none;border:0;color:var(--hg-muted);cursor:pointer;font-size:.78rem;padding:0 4px;visibility:hidden}
.hg-msg:hover .hg-msg-del{visibility:visible}
.hg-chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--hg-line)}
.hg-chat-form textarea{flex:1;resize:none;padding:9px;border:1px solid #cfc5b2;border-radius:8px;font:inherit}
@media(max-width:760px){.hg-chat{grid-template-columns:1fr;height:auto}.hg-chat-side{max-height:none}.hg-chat-main{height:70vh}}

/* Board */
.hg-boards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.hg-board{display:block;text-decoration:none!important;color:var(--hg-ink)!important;margin:0}
.hg-board:hover{border-color:var(--hg-gold)}
.hg-topics{list-style:none;margin:0;padding:0}
.hg-topics li{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--hg-line)}
.hg-topics li:last-child{border-bottom:0}
.hg-topics li img{border-radius:50%}.hg-topics li div{display:flex;flex-direction:column}
.hg-byline{display:flex;gap:10px;align-items:center;margin-bottom:10px}.hg-byline img{border-radius:50%}
.hg-reply{margin-left:24px}
.hg-ann{padding:8px 0;border-bottom:1px solid var(--hg-line)}.hg-ann:last-child{border-bottom:0}.hg-ann p{margin:.2em 0}

/* Training */
.hg-bars{list-style:none;margin:0;padding:0}
.hg-bars li{margin-bottom:10px}.hg-bars a{font-weight:600;text-decoration:none}
.hg-bar{display:block;height:8px;background:#ece3cf;border-radius:99px;overflow:hidden;margin:3px 0}
.hg-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--hg-maroon),var(--hg-gold))}
.hg-bars small{color:var(--hg-muted)}
.hg-phase>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;list-style:none;color:var(--hg-ink)}
.hg-phase>summary::-webkit-details-marker{display:none}
.hg-phase>summary span:first-child{display:flex;flex-direction:column}
.hg-lessons{margin:0 0 10px 1.2em}.hg-lessons li{padding:4px 0}.hg-lessons li.done a{color:var(--hg-ok)}
.hg-quals{list-style:none;margin:0;padding:0}
.hg-quals li{display:flex;gap:10px;align-items:flex-start;padding:6px 0;border-bottom:1px dashed var(--hg-line)}
.hg-quals li:last-child{border-bottom:0}
.hg-q-mark{font-weight:700;color:#b9ae98;width:1.2em}.hg-quals li.has .hg-q-mark{color:var(--hg-ok)}
.hg-quals li>span:nth-child(2){flex:1}
.hg-lesson{max-width:820px}
.hg-practice{background:#fbf3d9;border-left:4px solid var(--hg-gold);padding:12px 14px;border-radius:8px;margin:14px 0}
.hg-pager{display:flex;justify-content:space-between;gap:10px;margin-top:18px;padding-top:12px;border-top:1px solid var(--hg-line)}
.hg-pager .hg-next{margin-left:auto;text-align:right}

/* Tables */
.hg-table-wrap{overflow-x:auto}
.hg-table{width:100%;border-collapse:collapse;font-size:.92rem}
.hg-table th,.hg-table td{text-align:left;padding:8px;border-bottom:1px solid var(--hg-line);vertical-align:middle}
.hg-table th{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--hg-muted)}
.hg-who{display:flex;gap:8px;align-items:center;font-weight:600;text-decoration:none}.hg-who img{border-radius:50%}
.hg-matrix th span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}
.hg-matrix td{text-align:center}.hg-matrix td:first-child{text-align:left;white-space:nowrap}
.hg-matrix td.has{background:#e3f1e5;color:var(--hg-ok);font-weight:700}
.hg-table tr.is-dead{opacity:.55}
.hg-copy{display:flex;gap:6px}.hg-copy input{flex:1;min-width:180px;padding:6px;border:1px solid #cfc5b2;border-radius:6px;font-size:.82rem}

/* People */
.hg-faces{display:flex;flex-wrap:wrap;gap:4px}.hg-faces img{border-radius:50%;border:2px solid #fff}
.hg-profile{display:flex;gap:14px;align-items:center;margin-bottom:10px}.hg-profile img{border-radius:50%;border:3px solid var(--hg-gold)}
.hg-av{border-radius:50%}

/* Invitation screen */
.hg-invite{display:flex;justify-content:center;padding:30px 0}
.hg-invite-card{max-width:560px;text-align:center}
.hg-invite-card .hg-crest{justify-content:center;color:var(--hg-maroon);margin-bottom:6px}
.hg-invite-card .hg-actions{justify-content:center}
.hg-invite-card .hg-form{text-align:left}
.hg-grid{align-items:start}
@media(max-width:760px){.hg-chat-main{order:-1}.hg-kicker{display:none}.hg-me span{display:none}}
.hg-logout{color:#e9e1d0!important;font-size:.85rem;margin-left:4px;opacity:.8}
.hg-gate-body{margin:0;background:#f4efe3;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}
.hg-gate-body .hg-invite{padding:0;width:100%}
.hg-invite-card form#loginform{text-align:left}
.hg-invite-card form#loginform p{margin:0 0 10px}
.hg-invite-card form#loginform label{display:block;font-weight:600;font-size:.9rem}
.hg-invite-card form#loginform input[type=text],.hg-invite-card form#loginform input[type=password]{display:block;width:100%;margin-top:4px;padding:9px 10px;border:1px solid #cfc5b2;border-radius:8px;font:inherit}
.hg-invite-card form#loginform .login-remember label{font-weight:400}
.hg-invite-card form#loginform input[type=submit]{background:#7a1f2b;color:#fff;border:0;border-radius:8px;padding:10px 18px;font-weight:700;font:inherit;font-weight:700;cursor:pointer;width:100%}
.hg-invite-card .hg-form input[type=email],.hg-invite-card .hg-form input[type=password]{display:block;width:100%;margin-top:4px;padding:9px 10px;border:1px solid #cfc5b2;border-radius:8px;background:#fff;font:inherit}
/* Public pages */
.hg-public{max-width:1000px}
.hg-hero{background:linear-gradient(135deg,#1f1a17,#3a1218 70%,#7a1f2b);color:#f7f1e3;border-radius:14px;padding:44px 24px;text-align:center;border-bottom:4px solid #c9a227;margin-bottom:28px}
.hg-hero .hg-crest{justify-content:center;color:#c9a227}
.hg-hero .hg-title{color:#f7f1e3;font-size:clamp(2rem,6vw,3.2rem);margin:.1em 0}
.hg-hero-lead{max-width:640px;margin:0 auto 10px;font-size:1.1rem;opacity:.92}
.hg-hero .hg-actions{justify-content:center}
.hg-btn-light{color:#f7f1e3!important;border-color:#f7f1e3}
.hg-btn-light:hover{background:rgba(255,255,255,.1)}
.hg-center{text-align:center}
.hg-cards h3,.hg-steps h3{margin-top:4px}
.hg-step{display:inline-flex;width:32px;height:32px;border-radius:50%;background:#c9a227;color:#231d1a;font-weight:700;align-items:center;justify-content:center}
.hg-apply{max-width:620px;margin:0 auto}
.hg-apply .hg-crest{color:#7a1f2b}
.hg-apply input[type=email],.hg-apply input[type=password]{display:block;width:100%;margin-top:4px;padding:9px 10px;border:1px solid #cfc5b2;border-radius:8px;background:#fff;font:inherit}
.hg-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.hg-approve{margin-top:8px}
