/* Galeria de Honra — identidade escura preto suave/cinza com título vermelho bombeiro (contrato visual do modelo correto). Classes `hg-`; fonte serifada editorial local (Lora, OFL), Georgia como alternativa. */
@font-face { font-family:Lora; font-style:normal; font-weight:400 700; font-display:swap; src:url('/fonts/lora-latin-wght-normal.woff2') format('woff2'); }
body.pb-honor { background:linear-gradient(180deg,#0a0b0c 0%,#121315 100%) fixed; background-color:#0a0b0c; }
body.pb-honor::before, body.pb-honor::after { display:none; }
.hg-main { width:min(1440px,calc(100% - 96px)); margin:0 auto; padding:34px 0 56px; }
.hg, .hg-dlg { --hg-bg:#0a0b0c; --hg-panel:#1d1f22; --hg-card:#1a1c1f; --hg-card-hi:#222427; --hg-red:#ed102a; --hg-copper:#eea46e; --hg-copper-hi:#ffc28f; --hg-text:#f2f1ef; --hg-muted:#bdc3cd; --hg-line:#3a3d42; --hg-silver:#bfc4cb; font-family:Lora,Georgia,'Times New Roman',serif; color:var(--hg-text); }
.hg *, .hg-dlg * { box-sizing:border-box; }
.hg { display:grid; grid-template-columns:minmax(0,58fr) minmax(0,42fr); column-gap:36px; grid-template-areas:'head panel' 'list panel' 'foot .'; align-items:start; }
.hg-cols { display:contents; }
.hg-head { grid-area:head; margin-bottom:22px; }
.hg-title { font-size:clamp(34px,4.2vw,62px); line-height:1.08; font-weight:600; margin:0 0 6px; letter-spacing:-.5px; } .hg-title:focus { outline:none; } .hg-title, .hg-title span { color:var(--hg-red); }
.hg-sub { margin:0; font-size:20px; color:var(--hg-muted); }
.hg-list { grid-area:list; }
.hg-row { display:grid; grid-template-columns:220px minmax(0,1fr); column-gap:32px; padding:18px; margin-bottom:14px; background:var(--hg-card); border:1px solid #303236; border-radius:10px; align-items:stretch; transition:background .18s,border-color .18s; }
.hg-row:hover { background:var(--hg-card-hi); }
.hg-photo { position:relative; overflow:hidden; border-radius:5px; background:#111214; border:1px solid #3a3d42; }
.hg-photo--row { width:220px; height:210px; } .hg-photo--panel { width:100%; aspect-ratio:16/9; } .hg-photo--dialog { width:100%; height:clamp(160px,28vh,260px); }
.hg-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 22%; }
.hg-photo__ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:48px; font-weight:600; color:#e4e4e4; background:radial-gradient(120% 120% at 20% 10%,#4a4d52,#2c2e32 60%,#1c1d20); }
.hg-photo.is-memo { border:2px solid var(--hg-silver); } .hg-photo.is-memo img { filter:grayscale(1) contrast(1.05); } .hg-photo.is-memo .hg-photo__ph { filter:grayscale(1); }
.hg-ribbon { position:absolute; z-index:2; pointer-events:none; }
.hg-ribbon--band { top:0; left:0; width:84px; height:84px; overflow:hidden; } .hg-ribbon--band::before { content:''; position:absolute; left:-24px; top:16px; width:130px; height:22px; background:#07090c; transform:rotate(-45deg); box-shadow:0 0 0 1px #4a525c; }
.hg-ribbon--bow { top:12px; right:18px; filter:drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.hg-info { position:relative; padding-left:32px; display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.hg-info::before { content:''; position:absolute; left:0; top:6px; bottom:6px; width:1px; background:linear-gradient(180deg,#c98a5a 0,#c98a5a 45%,var(--hg-line) 45%); }
.hg-name { font-size:30px; line-height:1.15; font-weight:600; margin:0; overflow-wrap:anywhere; } .hg-memo { font-size:.6em; font-weight:400; color:var(--hg-silver); }
.hg-rank { font-size:22px; color:var(--hg-copper); margin:4px 0 10px; overflow-wrap:anywhere; }
.hg-preview { font-size:18px; line-height:1.5; margin:0 0 16px; color:var(--hg-muted); display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; } .hg-muted { color:var(--hg-muted); font-style:italic; }
.hg-row.is-selected { background:var(--hg-card-hi); border-color:#6a6d73; }
.hg-btn { display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:0 18px; background:transparent; color:var(--hg-copper); border:1px solid var(--hg-copper); border-radius:6px; font:inherit; font-size:17px; cursor:pointer; text-decoration:none; transition:color .18s,border-color .18s,background .18s; }
.hg-btn:hover { color:var(--hg-copper-hi); border-color:var(--hg-copper-hi); background:#eea46e14; } .hg-btn:focus-visible { outline:2px solid var(--hg-copper-hi); outline-offset:3px; } .hg-btn:disabled { opacity:.6; cursor:progress; }
.hg-btn--ghost { color:var(--hg-text); border-color:var(--hg-line); } .hg-flip { transform:scaleX(-1); } .hg-more { margin:22px 0 0; } .hg-backhome { grid-area:foot; margin-top:26px; justify-self:start; }
.hg-panel { grid-area:panel; position:sticky; top:24px; align-self:start; border:1px solid var(--hg-line); border-radius:10px; background:var(--hg-panel); padding:26px; max-height:calc(100dvh - 48px); overflow:auto; }
.hg-panel__label { margin:0 0 14px; padding-left:12px; border-left:3px solid var(--hg-copper); font-size:13px; letter-spacing:.22em; text-transform:uppercase; color:var(--hg-muted); line-height:1; }
.hg-panel__in--empty { display:flex; flex-direction:column; min-height:300px; } .hg-panel__hint { margin:auto; text-align:center; color:var(--hg-muted); font-size:20px; font-style:italic; padding:40px 12px; }
.hg-panel__name, .hg-dlg__name { font-size:38px; line-height:1.15; font-weight:600; margin:18px 0 0; overflow-wrap:anywhere; } .hg-dlg__name:focus { outline:none; } .hg-panel__rank, .hg-dlg__rank { font-size:24px; color:var(--hg-copper); margin:6px 0 12px; overflow-wrap:anywhere; }
.hg-rule { display:block; width:56px; height:2px; background:var(--hg-copper); margin:0 0 16px; }
.hg-panel__text { font-size:18px; line-height:1.6; color:var(--hg-muted); } .hg-panel__text .pb-md { color:inherit; } .hg-panel__actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; padding-top:20px; border-top:1px solid var(--hg-line); }
.hg-panel .pb-md-blank, .hg-dlg .pb-md-blank { height:1em; }
.hg-emptymsg { font-size:22px; color:var(--hg-muted); margin:32px 0; } .hg--empty { display:block; }
/* diálogo central (história completa) */
html.hg-lock { overflow:hidden; }
.hg-dlg { width:min(1080px,calc(100vw - 48px)); max-width:none; max-height:calc(100dvh - 48px); margin:auto; padding:0; border:1px solid var(--hg-line); border-radius:10px; background:var(--hg-panel); overflow:hidden; box-shadow:0 24px 80px rgba(0,0,0,.55); }
.hg-dlg[open] { display:flex; flex-direction:column; }
.hg-dlg::backdrop { background:rgba(0,0,0,.6); animation:hgFade .32s ease both; } .hg-dlg.is-closing::backdrop { animation:hgFade .24s ease reverse both; }
@keyframes hgFade { from { opacity:0; } to { opacity:1; } }
.hg-dlg__head { display:flex; justify-content:space-between; align-items:center; padding:14px 24px 14px 28px; border-bottom:1px solid var(--hg-line); } .hg-dlg__head .hg-panel__label { margin:0; }
.hg-dlg__x { width:44px; height:44px; border:1px solid var(--hg-line); border-radius:6px; background:transparent; color:var(--hg-text); font-size:28px; line-height:1; cursor:pointer; } .hg-dlg__x:hover { color:var(--hg-copper-hi); border-color:var(--hg-copper); } .hg-dlg__x:focus-visible { outline:2px solid var(--hg-copper-hi); outline-offset:2px; }
.hg-dlg__scroll { flex:1 1 auto; overflow:auto; padding:26px clamp(18px,4vw,48px) 30px; overscroll-behavior:contain; }
.hg-dlg__body { max-width:880px; margin:0 auto; } .hg-story { max-width:72ch; font-size:19px; line-height:1.65; color:#e6e4e1; } .hg-story .pb-md { color:inherit; } .hg-story .pb-md-p, .hg-story .pb-md-quote { margin:0; }
.hg-story .pb-md-link { color:var(--hg-copper-hi); }
.hg-dlg__foot { padding:14px 28px; border-top:1px solid var(--hg-line); display:flex; justify-content:flex-start; }
/* prévia no painel Master */
.hg-admin-prev { max-width:560px; margin:6px 0 14px; } .hg-admin-prev.hg-panel { position:static; max-height:none; } .hg-admin-prev--dlg { border:1px solid var(--hg-line); border-radius:10px; background:var(--hg-panel); padding:20px; max-width:760px; max-height:460px; overflow:auto; --hg-red:#ed102a; font-family:Lora,Georgia,serif; color:var(--hg-text); --hg-copper:#eea46e; --hg-text:#f2f1ef; --hg-muted:#bdc3cd; --hg-line:#3a3d42; --hg-silver:#bfc4cb; }
.hg-admin-prev .hg-panel__actions { display:none; } .hg-admin-thumb { width:64px; height:60px; object-fit:cover; border-radius:4px; display:block; } .hg-admin-thumb.is-memo { filter:grayscale(1); border:1px solid #bfc4cb; }
/* intermediário e celular */
@media (max-width:1279px) { .hg { column-gap:28px; } .hg-row { grid-template-columns:180px minmax(0,1fr); column-gap:24px; } .hg-photo--row { width:180px; height:172px; } .hg-info { padding-left:24px; } .hg-name { font-size:27px; } .hg-rank { font-size:20px; } .hg-preview { font-size:17px; } .hg-panel { padding:22px; } .hg-panel__name { font-size:32px; } }
@media (max-width:1023px) {
  .hg { grid-template-columns:minmax(0,1fr); grid-template-areas:'head' 'list' 'foot'; } .hg-panel { display:none; } .hg-row { grid-template-columns:200px minmax(0,1fr); } .hg-photo--row { width:200px; height:190px; }
}
@media (max-width:767px) { .hg-main { width:calc(100% - 32px); padding-top:22px; } .hg-sub { font-size:18px; } }
@media (max-width:640px) {
  .hg-row { padding:14px; grid-template-columns:124px minmax(0,1fr); grid-template-areas:'photo name' 'photo rank' 'preview preview' 'btn btn'; grid-template-rows:auto minmax(0,1fr) auto auto; column-gap:16px; row-gap:0; } .hg-info { display:contents; } .hg-info::before { display:none; }
  .hg-photo--row { grid-area:photo; width:124px; height:118px; } .hg-name { grid-area:name; font-size:23px; align-self:start; } .hg-rank { grid-area:rank; font-size:18px; margin:2px 0 0; align-self:start; } .hg-preview { grid-area:preview; margin:14px 0 14px; font-size:17px; } .hg-row .hg-btn { grid-area:btn; justify-self:stretch; justify-content:center; }
  .hg-ribbon--band { width:60px; height:60px; } .hg-ribbon--band::before { left:-26px; top:10px; width:100px; height:16px; }
  .hg-dlg { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); } .hg-dlg__scroll { padding:16px 16px 22px; } .hg-dlg__head { padding:10px 12px 10px 16px; } .hg-dlg__foot { padding:12px 16px; } .hg-photo--dialog { height:clamp(130px,22vh,170px); } .hg-dlg__name { font-size:28px; } .hg-dlg__rank { font-size:20px; } .hg-story { font-size:18px; }
}
@media (prefers-reduced-motion: reduce) { .hg-dlg::backdrop, .hg-dlg.is-closing::backdrop { animation:none; } .hg-btn { transition:none; } }
