.gg { --gg-bg: var(--bs-tertiary-bg,#292d31); --gg-border: var(--bs-border-color,#45494d); --gg-text: var(--bs-body-color,#eee); --gg-muted: var(--bs-secondary-color,#aeb3b9); color: var(--gg-text); text-align: left; }
.gg-public, .gg-detail, .gg-history, .gg-editor { max-width: 1140px; margin: 0 auto 32px; }
.gg [hidden] { display: none !important; }
.gg-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 8px 0 24px; }
.gg h1 { margin: 0 0 10px; padding: 0; border: 0; color: var(--gg-text); font-size: clamp(25px,3vw,34px); }
.gg-heading p { margin: 0; color: var(--gg-muted); }
.gg-eyebrow { display: block; font-size: 12px; font-weight: bold; letter-spacing: .12em; text-transform: uppercase; color: #dd655d; margin-bottom: 8px; }
.gg-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; background: #b52e26; color: #fff !important; border: 1px solid #b52e26; border-radius: 7px; text-decoration: none !important; font-weight: 600; font-size: 14px; }
.gg-button:hover { background: #93241d; border-color: #93241d; }
.gg-heading > .gg-button { flex-shrink: 0; }
.gg a:focus-visible, .gg button:focus-visible { outline: 2px solid #d86c61; outline-offset: 3px; }
.gg-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--gg-border); border-radius: 10px; background: var(--gg-bg); margin-bottom: 18px; }
.gg-nav a { padding: 10px 14px; color: var(--gg-text); text-decoration: none; border-radius: 6px; font-size: 14px; }
.gg-nav a.is-active, .gg-nav a:hover { background: rgba(127,127,127,.16); color: var(--gg-text); }
.gg-filterbar { display: flex; align-items: end; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.gg-chips { display: flex; flex: 1; flex-wrap: wrap; gap: 7px; }
.gg-chips a { padding: 7px 12px; color: var(--gg-text); text-decoration: none; border: 1px solid var(--gg-border); border-radius: 20px; font-size: 12px; }
.gg-chips a.is-active, .gg-chips a:hover { background: rgba(185,68,60,.12); border-color: #c85a50; }
.gg-search { width: 240px; margin: 0; }
.gg-search > span { display: block; font-size: 12px; margin-bottom: 5px; color: var(--gg-muted); }
.gg .form-control, .gg .form-select { min-height: 42px; border-radius: 7px; }
.gg-module-logo { max-width: 100%; height: auto; display: block; margin: 0 auto 24px; }
.gg-section { margin-bottom: 30px; }
.gg-section > h2, .gg-panel > h2 { margin: 0 0 20px; color: var(--gg-text); font-size: 21px; }
.gg-section > h2 span, .gg-count { margin-left: 8px; padding: 3px 8px; border: 1px solid var(--gg-border); border-radius: 14px; font-size: 13px; }
.gg-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gg-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--gg-border); border-radius: 12px; background: var(--gg-bg); }
.gg-image { position: relative; overflow: hidden; background: rgba(127,127,127,.08); }
.gg-image img { display: block; width: 100%; height: 190px; object-fit: cover; }
.gg-image-badge { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; border-radius: 20px; background: #fff3cd; color: #664d03; font-size: 11px; font-weight: 600; }
.gg-ribbon-wrap { position: absolute; top: 0; left: 0; width: 88px; height: 88px; overflow: hidden; pointer-events: none; }
.gg-ribbon { position: absolute; top: 16px; left: -28px; width: 120px; transform: rotate(-45deg); text-align: center; padding: 5px 0; font-size: 12px; line-height: 18px; color: #383d41; background: #e2e3e5; box-shadow: 0 1px 2px #555; }
.gg-ribbon-green { color: #155724; background: #d4edda; }
.gg-ribbon-yellow { color: #856404; background: #fff3cd; }
.gg-ribbon-red { color: #721c24; background: #f8d7da; }
.gg-ribbon-blue { color: #004085; background: #cce5ff; }
.gg-card-body { padding: 18px 18px 12px; flex: 1; }
.gg-category { font-size: 11px; color: var(--gg-muted); }
.gg-card h3 { font-size: 19px; line-height: 1.4; margin: 6px 0 8px; color: var(--gg-text); overflow-wrap: anywhere; }
.gg-card p { font-size: 13px; margin: 0 0 12px; color: var(--gg-muted); }
.gg-time { display: block; font-size: 11px; color: var(--gg-muted); }
.gg-card-actions { padding: 0 18px 18px; }
.gg-card-actions .gg-button { width: 100%; }
.gg-add-card { justify-content: center; align-items: center; text-align: center; border-style: dashed; padding: 24px 20px; min-height: 310px; }
.gg-add-card > i { font-size: 40px; color: #d85f55; margin-bottom: 16px; }
.gg-add-card p { line-height: 1.6; }
.gg-add-card .gg-button { margin-top: 12px; }
.gg-muted { color: var(--gg-muted); font-size: 13px; }
.gg-empty { padding: 24px; margin: 20px 0; border: 1px dashed var(--gg-border); border-radius: 10px; text-align: center; color: var(--gg-muted); }
.gg-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; align-items: start; }
.gg-panel { min-width: 0; padding: 24px; border: 1px solid var(--gg-border); border-radius: 12px; background: var(--gg-bg); margin-bottom: 22px; }
.gg-detail-image { border: 1px solid var(--gg-border); border-radius: 12px; margin-bottom: 22px; }
.gg-detail-image img { height: auto; max-height: 480px; object-fit: contain; }
.gg-richtext { line-height: 1.8; overflow-wrap: anywhere; }
.gg-richtext :is(p,div,span,font,strong,h1,h2,h3,h4,li) { color: inherit !important; }
.gg-richtext img { max-width: 100%; height: auto; }
.gg-meta { margin: 18px 0 24px; }
.gg-meta dt { color: var(--gg-muted); font-size: 12px; }
.gg-meta dd { margin: 4px 0 18px; color: var(--gg-text); font-size: 14px; }
.gg-detail aside .gg-button { display: flex; }
.gg-text-link { color: var(--gg-text); font-size: 14px; text-decoration: none; }
.gg-text-link:hover { color: var(--gg-text); text-decoration: underline; }
.gg-block { display: block; text-align: center; margin-top: 18px; }
.gg-badge { display: inline-block; color: #155724; background: #d4edda; padding: 4px 9px; border-radius: 20px; font-size: 11px; margin-bottom: 18px; }
.gg-history-entry { display: flex; align-items: start; justify-content: space-between; gap: 22px; padding: 20px 0; border-top: 1px solid var(--gg-border); }
.gg-history-entry h3 { font-size: 19px; margin: 6px 0; }
.gg-history-entry p, .gg-history-entry dt { font-size: 12px; color: var(--gg-muted); }
.gg-history-entry dl { margin: 0; flex-shrink: 0; font-size: 13px; }
.gg-history-entry dd { margin-bottom: 10px; }
.gg-editor { max-width: 1000px; }
.gg-editor > h1 { margin: 12px 0 24px; }
.gg-editor form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 24px; background: var(--gg-bg); border: 1px solid var(--gg-border); border-radius: 12px; }
.gg-editor form > .row, .gg-editor form > .form-group { display: block; width: auto; margin: 0 !important; }
.gg-editor form > .row > [class*="col-"], .gg-editor form > .form-group > [class*="col-"] { width: 100%; max-width: 100%; margin: 0; padding: 0; }
.gg-editor form > .row:has(textarea), .gg-editor form > .row:has(#toplistBannerPath), .gg-editor form > .row:has(#cordon-on), .gg-editor form > .form-group { grid-column: 1 / -1; }
.gg-editor form > label, .gg-editor form > input[type="hidden"] { grid-column: 1 / -1; }
.gg-editor label { display: block; padding: 0; margin: 0 0 8px; text-align: left; font-size: 14px; font-weight: 600; }
.gg-editor .input-group { flex-wrap: nowrap; }
.gg-editor .input-group .flipswitch label { margin: 0; }
.gg-editor .form-text { color: var(--gg-muted); font-size: 12px; line-height: 1.7; }
.gg-editor #toplistBannerPreview { margin-top: 16px; border-radius: 6px; }
.gg-editor .form-group > a { float: none !important; }
.gg-editor .form-group:last-of-type { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.gg-editor textarea { min-height: 120px; }
.gg-editor .tempus-dominus-widget { z-index: 1080; }
.gg-admin { padding: 8px 0 24px; }
.gg-admin > h1 { margin-bottom: 24px; }
.gg-admin .table-responsive { border: 1px solid var(--gg-border); border-radius: 10px; margin: 18px 0; }
.gg-admin table { margin-bottom: 0; }
.gg-admin table th, .gg-admin table td { padding: 14px 12px; vertical-align: middle; }
.gg-admin form > .row { margin-bottom: 20px !important; }
.gg-admin .form-control, .gg-admin .form-select { min-height: 42px; border-radius: 7px; }
.gg-box { --gg-bg: #fff; --gg-border: #e2e5e8; --gg-text: #252a30; --gg-muted: #626a73; }
.gg-box-sidebar .gg-grid { grid-template-columns: minmax(0,1fr); }
.gg-box-sidebar .gg-image img { height: 150px; }
@media (max-width: 991.98px) { .gg-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .gg-detail-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 575.98px) {
 .gg-grid, .gg-editor form { grid-template-columns: minmax(0,1fr); }
 .gg-heading { flex-direction: column; align-items: stretch; }
 .gg-search { width: 100%; }
 .gg-panel { padding: 18px 14px; }
 .gg-editor form { padding: 18px 14px; gap: 18px; }
 .gg-editor form > .row { grid-column: 1; }
 .gg-history-entry { flex-direction: column; }
 .gg-nav a { padding: 10px; }
}
