:root {
  --accent: #e3261c;
  --accent-light: #ff5a4e;
  --bg: #050505;
  --surface: #0f0f10;
  --surface-2: #161618;
  --surface-3: #222225;
  --line: #19191b;
  --line-2: #2c2c30;
  --text: #f2f2f2;
  --muted: #9a9a9f;
  --faint: #6e6e73;
  --accent-soft: rgba(227, 38, 28, .14);
}
/* ZeroHP for ByteForge: the zerohp.ro Invision theme. Fonts: Rajdhani for titles, Lexend for text. */
:root {
  --zhp-red: var(--accent);
  --page: 1470px;
  --zhp-page: #050505;
  --zhp-card: #0b0c0d;
  --zhp-row: #080909;
  --zhp-row-line: #121314;
  --zhp-nav: #0b0c0d;
  --zhp-bar: #0c0c0d;
  --zhp-grey: #38383b;
  --zhp-title: 'Rajdhani', 'Sora', sans-serif;
  --font: 'Lexend', 'Manrope', system-ui, sans-serif;
  --radius: 4px;
  /* Dashed edge (6px on, 4px off) drawn with gradients so the dash rhythm matches the original. */
  --dash-x: repeating-linear-gradient(90deg, var(--zhp-row-line) 0 6px, transparent 6px 10px);
  --dash-y: repeating-linear-gradient(180deg, var(--zhp-row-line) 0 6px, transparent 6px 10px);
  --zhp-frame: var(--dash-x) top / 100% 2px no-repeat, var(--dash-x) bottom / 100% 2px no-repeat,
    var(--dash-y) left / 2px 100% no-repeat, var(--dash-y) right / 2px 100% no-repeat,
    var(--zhp-pattern-img, none) 0 0 / 422px repeat, var(--zhp-row);
}

body { background: var(--zhp-page); font-size: 14px; }
.shell, .main { background: transparent; }
.content { padding-bottom: 40px; }
.zhp-wrap, .content > .page-head { width: min(var(--page), calc(100% - 2 * var(--gutter))); margin-inline: auto; box-sizing: border-box; }
.zhp-red { color: var(--zhp-red); }
.spacer { flex: 1; }

/* ---- Top navigation ---- */
.zhp-nav { background: var(--zhp-pattern-img, none) 0 0 / 422px repeat, var(--zhp-nav); border-bottom: 4px solid var(--zhp-red); box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--zhp-red) 40%, transparent); position: relative; z-index: 20; }
.zhp-nav-in { display: flex; align-items: center; gap: 6px; min-height: 114px; }
.zhp-menu { display: flex; align-items: center; gap: 6px; flex: none; }
.zhp-menu a, .zhp-more > button { display: inline-flex; align-items: center; gap: 9px; padding: 0 22px; height: 46px; border-radius: var(--radius); color: #e8e8e8; font: 700 16px/1 var(--zhp-title); text-transform: uppercase; letter-spacing: .4px; transition: background .15s, color .15s; }
.zhp-menu a:not([aria-current]), .zhp-more > button { color: #b6b6b6; }
.zhp-more > button { background: none; border: 0; cursor: pointer; }
.zhp-more > button > .i:last-child { width: 14px; height: 14px; }
.zhp-more > button:hover, .zhp-more.has-current > button { color: #fff; background: rgba(255, 255, 255, .05); }
.zhp-more .menu-panel { left: 0; right: auto; min-width: 220px; }
.zhp-more .menu-panel a { display: flex; align-items: center; gap: 10px; }
.zhp-more .menu-panel a[aria-current="page"] { color: var(--zhp-red); }
.zhp-menu a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.zhp-menu a[aria-current="page"] { background: var(--zhp-red); color: #fff; box-shadow: 0 0 14px color-mix(in srgb, var(--zhp-red) 50%, transparent); }
.zi { width: 17px; height: 17px; fill: currentColor; stroke: none; flex: none; }
.zhp-search { position: relative; flex: 0 1 320px; min-width: 160px; }
.zhp-search input { width: 100%; height: 48px; border-radius: 30px; border: 0; background: #363a3e; box-shadow: 0 0 14px rgba(0, 0, 0, .7); color: #ddd; padding: 0 44px 0 20px; font: 500 13px var(--font); }
.zhp-search input:focus { outline: none; border-color: var(--zhp-red); }
.zhp-search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; }
.zhp-search .i { width: 16px; height: 16px; }
.zhp-search-mobile { display: none; }

/* ---- Style bar ---- */
.zhp-bar { background: var(--zhp-bar); }
.zhp-bar-in { display: flex; align-items: center; gap: 12px; min-height: 104px; }
.zhp-styles { display: flex; align-items: center; gap: 6px; }
.zhp-swatch { width: 18px; height: 18px; border-radius: 3px; border: 0; background: var(--sw); cursor: pointer; padding: 0; }
.zhp-signin > button { white-space: nowrap; background: none; border: 0; color: #fff; font: 700 14px var(--zhp-title); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 6px; }
.zhp-signin .i { width: 12px; height: 12px; }
.zhp-signin-panel { right: 0; left: auto; width: 290px; padding: 20px; border: 0; border-radius: 0; background: var(--zhp-frame); box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
.zhp-signin-panel form { display: grid; gap: 14px; margin: 0; }
.zhp-signin-title { margin: 0 0 4px; color: #fff; font: 700 18px var(--font); }
.zhp-signin-panel input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #2a2b2d; border-radius: 4px; background: #0b0c0d; color: #eee; font: 400 13px var(--font); box-sizing: border-box; }
.zhp-signin-panel input::placeholder { color: #8a8f95; }
/* The menu styles every form button as a full-width row; these two are not menu rows. */
.zhp-signin-panel .pw-toggle { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; justify-content: center; }
.zhp-signin-panel .pw-toggle .i { width: 16px; height: 16px; }
.zhp-signin-panel .zhp-signin-submit { justify-content: center; width: 100%; height: 40px; padding: 0 16px; border-radius: 4px; background: var(--zhp-red); color: #fff; font: 600 14px var(--font); text-align: center; }
.zhp-signin-panel .zhp-signin-alt { justify-content: flex-end; padding: 0; color: #fff; font: 600 12px var(--font); }
.zhp-signin-panel .zhp-signin-alt:hover { background: none; color: var(--zhp-red); }
.zhp-signup, .zhp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 26px; border: 0; border-radius: var(--radius); background: var(--zhp-red); color: #fff; font: 700 14px/1 var(--zhp-title); cursor: pointer; transition: filter .15s; }
.zhp-signup:hover, .zhp-btn:hover { color: #fff; filter: brightness(1.12); }
.zhp-btn .i { width: 15px; height: 15px; --ia: #fff; }
.zhp-bar .btn-icon, .zhp-bar .user-chip { color: #e8e8e8; }

/* ---- Hero ---- */
.zhp-hero { position: relative; min-height: 0; height: 360px; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 24px;
  background:
    linear-gradient(180deg, rgba(60, 8, 6, .2) 0%, rgba(5, 5, 5, 0) 45%, var(--zhp-page) 100%),
    linear-gradient(90deg, rgba(40, 6, 4, .92) 0%, rgba(70, 14, 10, .55) 50%, rgba(25, 6, 5, .85) 100%),
    var(--zhp-hero-img, none) center 30% / cover no-repeat,
    radial-gradient(ellipse at 60% 40%, #4a0d09 0%, #1d0605 55%, #090303 100%); }
.zhp-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; }
.zhp-logo img { display: block; height: 62px; width: auto; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .6)); }
/* logo-mark.png is the full wordmark on a 600px canvas: this shows only its crosshair. */
.zhp-mark { --s: 74px; display: inline-block; width: var(--s); height: var(--s); flex: none; background-repeat: no-repeat; background-size: calc(var(--s) * 5.36); background-position: calc(var(--s) * -2.47) calc(var(--s) * -2.16); }

/* ---- Board ---- */
.zhp-board { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 46px; align-items: start; }
.zhp-rules { margin-bottom: 0; }
.zhp-rules summary { list-style: none; display: flex; align-items: center; justify-content: center; position: relative; height: 40px; cursor: pointer; color: #fff; font: 700 12px var(--zhp-title); background: var(--zhp-grey); border-radius: var(--radius); }
.zhp-rules[open] summary { border-radius: var(--radius) var(--radius) 0 0; }
.zhp-rules summary:focus-visible { outline: 1px solid var(--zhp-red); outline-offset: -1px; }
.zhp-rules summary::-webkit-details-marker { display: none; }
.zhp-rules summary .i { position: absolute; right: 14px; width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .2s; }
.zhp-rules[open] summary .i { transform: rotate(0); }
/* The announcement text sits in its own framed panel, lighter than the title bar's white. */
.zhp-rules .prose { margin: 0 0 12px; padding: 24px 30px; background: var(--zhp-frame); color: #a8adb3; font: 400 14px/1.7 var(--font); }
.zhp-rules .prose > :first-child { margin-top: 0; }
.zhp-rules .prose > :last-child { margin-bottom: 0; }
.zone-board-top { margin: 0 0 30px; }
.zone-board-top:empty { display: none; }
/* Chat (board top and the chat page): the same dashed frame and pattern as the other boxes. */
.zone-board-top .card, .chat { border: 0; border-radius: 0; background: var(--zhp-frame); }
.chat-head { margin: 2px 2px 0; background: rgba(255, 255, 255, .025); border-bottom: 1px solid var(--zhp-row-line); }
.chat-form, .chat-readonly { margin: 0 2px 2px; border-top: 1px solid var(--zhp-row-line); }
.chat-emojis { background: #121314; border-color: var(--zhp-row-line); border-radius: 0; }
.zhp-forums-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 30px; }
.zhp-forums-head h1 { margin: 0; color: #fff; font: 700 22px var(--zhp-title); }
.zhp-forums-head .zhp-btn { height: 46px; padding: 0 44px; font-size: 13px; font-weight: 600; }

.zhp-cat { background: var(--zhp-card); border-radius: var(--radius); padding: 30px 30px 26px; margin-bottom: 30px; }
.zhp-cat-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 26px 15px; }
.zhp-cat-head h2 { margin: 0; color: #f1f1f1; font: 700 26px/1 var(--zhp-title); text-transform: uppercase; letter-spacing: .5px; }
.zhp-cat-toggle { background: none; border: 0; color: #4a4a4e; cursor: pointer; padding: 6px; }
.zhp-cat-toggle .i { width: 18px; height: 18px; transition: transform .2s; }
.zhp-cat.is-collapsed .zhp-cat-body { display: none; }
.zhp-cat.is-collapsed .zhp-cat-toggle .i { transform: rotate(-90deg); }
.zhp-cat.is-collapsed .zhp-cat-head { margin-bottom: 6px; }

.zhp-forum { display: grid; grid-template-columns: 48px minmax(0, 1fr) 80px 260px; align-items: center; gap: 22px; padding: 32px 30px; }
/* Rows and the servers block share the frame: dashed edge plus corner brackets. */
.zhp-forum, .zhp-servers { position: relative; border-radius: 0; margin: 2px 2px 24px;
  background: var(--zhp-frame); }
/* Solid 20px brackets just outside each corner. */
.zhp-forum::before, .zhp-servers::before, .list-card > .row::before { content: ''; position: absolute; inset: -2px; pointer-events: none;
  --c: linear-gradient(var(--zhp-row-line), var(--zhp-row-line));
  background: var(--c) top left / 20px 2px, var(--c) top left / 2px 20px, var(--c) top right / 20px 2px, var(--c) top right / 2px 20px,
    var(--c) bottom left / 20px 2px, var(--c) bottom left / 2px 20px, var(--c) bottom right / 20px 2px, var(--c) bottom right / 2px 20px;
  background-repeat: no-repeat; }
.zhp-forum.is-link { grid-template-columns: 48px minmax(0, 1fr); padding-top: 26px; padding-bottom: 26px; }
.zhp-ficon { width: 46px; height: 46px; border-radius: 3px; background: #363a3e; display: grid; place-items: center; color: #fff; box-shadow: 0 0 14px rgba(54, 58, 62, .55); --ia: #fff; }
.zhp-ficon .i { width: 22px; height: 22px; stroke: #fff; }
.is-link .zhp-ficon { background: var(--zhp-red); box-shadow: 0 0 14px rgba(54, 58, 62, .55); }
.zhp-fmain h3 { margin: 0 0 4px; font: 700 20px/1.2 var(--zhp-title); }
.zhp-fmain h3 a { color: #f2f2f2; }
.zhp-fmain h3 a:hover { color: var(--zhp-red); }
.zhp-visits { color: #6f6f74; font: 500 10px var(--font); }
.zhp-desc { color: #7d7d82; font-size: 12.5px; line-height: 1.75; }
.zhp-subs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px 40px; }
.zhp-subs-1 { grid-template-columns: 1fr; }
.zhp-subs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zhp-subs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zhp-subs li { position: relative; padding-left: 14px; }
.zhp-subs li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: #8a8a8e; }
.zhp-subs a { color: #f1f1f1; font: 600 13px var(--zhp-title); }
.zhp-subs a:hover { color: var(--zhp-red); }
.zhp-fcount { text-align: right; color: #6e6e73; line-height: 1.2; }
.zhp-fcount strong { display: block; color: #8b8b90; font: 600 16px var(--font); }
.zhp-fcount span { font-size: 12px; }
.zhp-flast { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 12px; color: #6e6e73; }
.zhp-flast > div { min-width: 0; display: flex; flex-direction: column; }
.zhp-flast-title { color: #f0f0f0; font: 700 14px var(--zhp-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zhp-flast-title:hover { color: var(--zhp-red); }
.zhp-flast .avatar, .zhp-mini .avatar { border-radius: 3px; flex: none; }

.zhp-servers { padding: 34px 26px 44px; }
/* The servers picture, black and white and faded, inside the frame. */
.zhp-servers::after { content: ''; position: absolute; inset: 2px; z-index: 0; pointer-events: none; background: var(--zhp-servers-img, none) center / cover no-repeat; filter: grayscale(1); opacity: .2; }
.zhp-servers > * { position: relative; z-index: 1; }
.zhp-servers h3 { margin: 0 0 6px; font: 700 21px var(--zhp-title); }
.zhp-servers h3 a { color: #f2f2f2; }
.zhp-servers .zhp-desc { max-width: 980px; }
.zhp-pills { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 34px; }
/* Same shape as the active menu tab: red, square-cornered, Rajdhani capitals, soft red glow. */
.zhp-pills a { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 3px; background: var(--zhp-red); color: #fff; font: 700 15px/1 var(--zhp-title); text-transform: uppercase; letter-spacing: .4px; box-shadow: 0 0 14px color-mix(in srgb, var(--zhp-red) 50%, transparent); transition: filter .15s; --ia: #fff; }
.zhp-pills a .i { width: 20px; height: 20px; }
.zhp-pills a:hover { color: #fff; filter: brightness(1.12); }

/* ---- Sidebar ---- */
.zhp-box { background: var(--zhp-card); border-radius: var(--radius); padding: 34px 38px; margin-bottom: 20px; }
.zhp-box h2 { margin: 0 0 22px; color: #f2f2f2; font: 700 24px/1 var(--zhp-title); text-transform: uppercase; letter-spacing: .4px; }
.zhp-side .zhp-box { padding: 34px 38px; }
.zhp-announce { text-align: center; padding-top: 26px; }
.zhp-announce h2 { font-size: 11px; margin: 8px 0 26px; }
.zhp-announce-icon { width: 66px; height: 66px; margin: 0 auto; border-radius: 50%; background: #2f86e8; display: grid; place-items: center; }
.zhp-announce-icon .zhp-mark { --s: 44px; filter: brightness(0) invert(1); }
.zhp-announce-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 14px 0 22px; border-radius: var(--radius); background: var(--zhp-grey); color: #fff; font: 700 11px var(--zhp-title); width: 100%; border: 0; cursor: pointer; text-align: left; }
.zhp-announce-btn .i { width: 15px; height: 15px; transform: rotate(-90deg); }
.zhp-announce-btn:hover { color: #fff; background: #48484c; }
.zhp-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.zhp-mini li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.zhp-mini li > div { display: flex; flex-direction: column; min-width: 0; font-size: 11.5px; color: #6e6e73; }
.zhp-mini-title { color: #f0f0f0; font: 700 13.5px/1.35 var(--zhp-title); }
.zhp-mini-title:hover { color: var(--zhp-red); }
.zhp-mini p { margin: 12px 0 0; color: #7d7d82; font-size: 11.5px; line-height: 1.7; }
.zhp-replies { min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: 50%; background: color-mix(in srgb, var(--zhp-red) 40%, #1b0b0a); color: #ff6d63; font: 700 11px/24px var(--font); text-align: center; margin-top: 8px; }

/* ---- Under the board ---- */
.zhp-crumbs { display: flex; justify-content: space-between; align-items: center; background: var(--zhp-card); border-radius: var(--radius); padding: 22px 30px; margin: 14px 0 20px; font-size: 12px; }
.zhp-crumbs a { color: #6e6e73; display: inline-flex; align-items: center; gap: 6px; }
.zhp-crumbs a:hover { color: #fff; }
.zhp-crumbs .i { width: 14px; height: 14px; }
.zhp-wide { padding: 34px 30px 40px; }
.zhp-legend { margin: 0; line-height: 2; font: 600 13px var(--zhp-title); }
.zhp-legend a { display: inline-flex; align-items: center; gap: 4px; }
.zhp-legend svg { width: 13px; height: 13px; }
.zhp-online { margin: 0; }
/* The two characters stand in the side gutters next to Members and the stats, overlapping the content edge by 20px. */
.zhp-floor { position: relative; --gut: calc((100vw - min(var(--page), 100vw - 2 * var(--gutter))) / 2); }
.zhp-floor > :not(.zhp-char) { position: relative; z-index: 1; }
.zhp-char { position: absolute; z-index: 2; width: min(240px, calc(var(--gut) + 10px)); height: auto; pointer-events: none; user-select: none; }
.zhp-char-l { top: 10px; right: calc(100% - 20px); }
.zhp-char-r { top: -14px; left: calc(100% - 20px); }
@media (max-width: 1710px) { .zhp-char { display: none; } }
.zhp-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--zhp-card); border-radius: var(--radius); margin-bottom: 0; }
.zhp-stats > div { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 12px 46px; }
.zhp-stats strong { color: var(--zhp-red); font: 500 38px/1.1 var(--font); }
.zhp-stats .zhp-newest, .zhp-stats .zhp-newest * { color: #fff !important; font: 500 38px/1.1 var(--font) !important; }
.zhp-stats span { color: #6e6e73; font-size: 13px; margin-top: 6px; }

/* ---- Footer ---- */
.zhp-foot { margin-top: 20px; padding-top: 140px; background:
  linear-gradient(180deg, var(--zhp-page) 0%, rgba(5, 5, 5, .8) 35%, rgba(5, 5, 5, .88) 100%),
  var(--zhp-footer-img, none) center / cover no-repeat,
  radial-gradient(ellipse at 50% 60%, #1b0f0d 0%, #070505 70%); }
.zhp-foot-cols { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 70px; }
.zhp-foot h2 { margin: 0 0 44px; color: #fff; font: 700 20px var(--zhp-title); text-transform: uppercase; }
.zhp-foot-about p { margin: 0; color: #eee; font-size: 12.5px; line-height: 1.75; }
.zhp-foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.zhp-foot-list a, .zhp-foot-list button { display: inline-flex; align-items: center; gap: 12px; color: #f0f0f0; font: 600 13px var(--zhp-title); background: none; border: 0; padding: 0; cursor: pointer; }
.zhp-foot-list a:hover, .zhp-foot-list button:hover { color: var(--zhp-red); }
.zhp-foot-list .i { width: 12px; height: 12px; color: var(--zhp-red); stroke: var(--zhp-red); --ia: var(--zhp-red); }
.zhp-foot-list a > .i:first-child { transform: rotate(-90deg); }
.zhp-foot-important .i { width: 14px; height: 14px; }
.zhp-foot-list .menu-panel { bottom: 100%; top: auto; padding: 10px; min-width: 180px; }
.zhp-foot-list select { width: 100%; }
.zhp-menu-item { display: block; padding: 6px 8px; color: #ddd; font-size: 13px; }
.zhp-foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .04); }
.zhp-foot-bottom p { margin: 2px 0; color: #fff; font: 700 12px var(--zhp-title); text-transform: uppercase; }
.zhp-foot-bottom a { color: var(--zhp-red); }
.zhp-foot-right { text-align: right; }
.zhp-foot-right p:last-child { color: var(--zhp-red); }

/* ---- Inner pages: the stock pages in ZeroHP colours ---- */
.page-head { --ink: var(--text); background: var(--zhp-frame); color: var(--text); border: 0; border-radius: 0; padding: 30px; margin: 46px auto 24px; }
.page-head a:not(.btn) { color: var(--muted); }
.page-head a:not(.btn):hover { color: var(--zhp-red); }
.page-head h1 { font-family: var(--zhp-title); text-transform: uppercase; color: #fff; }
.page-head p, .page-head .muted { color: var(--muted); }
.page-head .btn { background: var(--zhp-red); border-color: var(--zhp-red); color: #fff; --ia: #fff; }
.page-head .btn:hover { background: var(--zhp-red); filter: brightness(1.12); color: #fff; }
/* Inner page cards span the page head's width. */
.content > .narrow { max-width: none; }
/* Inner pages use the board's frames: dashed edge and pattern on cards, corner brackets on list rows. */
.card { background: var(--zhp-frame); border: 0; border-radius: 0; }
.list-card { background: var(--zhp-card); padding: 18px; overflow: visible; }
.list-card > .row { position: relative; margin: 2px 2px 14px; border: 0; background: var(--zhp-frame); }
.list-card > .row:last-child { margin-bottom: 2px; }
.list-card > .row:hover { background: var(--zhp-frame); }
.btn { border-radius: var(--radius); font-family: var(--zhp-title); font-weight: 700; }
.btn-primary { background: var(--zhp-red); border-color: var(--zhp-red); --ia: #fff; }
h1, h2, h3, .side-title { font-family: var(--zhp-title); }
.forum-icon { border-radius: 3px; }
.top-progress { background: var(--zhp-red); }

/* ---- Small screens ---- */
@media (max-width: 1100px) {
  /* The menu keeps its width, so the search field becomes the search button. */
  .zhp-search { display: none; }
  .zhp-search-mobile { display: inline-grid; }
  .zhp-board { grid-template-columns: 1fr; }
  .zhp-forum { grid-template-columns: 46px minmax(0, 1fr) 70px; padding: 26px 20px; }
  .zhp-flast { display: none; }
  .zhp-foot-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .zhp-nav-in { min-height: 64px; gap: 8px; }
  .zhp-menu { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .zhp-menu a { padding: 0 12px; height: 38px; font-size: 14px; }
  .zhp-menu a span { display: none; }
  .zhp-menu a[aria-current="page"] span { display: inline; }
  .zhp-more > button { padding: 0 10px; height: 38px; font-size: 14px; }
  .zhp-more > button span { display: none; }
  .zhp-search { display: none; }
  .zhp-search-mobile { display: inline-grid; }
  .zhp-bar-in { min-height: 60px; }
  .zhp-sm-hide { display: none; }
  .zhp-bar-in { gap: 6px; }
  .zhp-styles { gap: 4px; }
  .zhp-swatch { width: 14px; height: 14px; }
    .zhp-signup { padding: 0 14px; white-space: nowrap; }
  .zhp-hero { height: auto; max-height: 360px; padding-top: 44px; }
  .zhp-logo { position: static; transform: none; align-self: center; margin-bottom: 34px; }
  .zhp-logo img { height: 40px; }
      .zhp-cat { padding: 20px 14px; }
  .zhp-cat-head { margin-left: 4px; }
  .zhp-cat-head h2 { font-size: 20px; }
  .zhp-forum { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px 14px; }
  .zhp-fcount { display: none; }
  .zhp-ficon { width: 40px; height: 40px; }
  .zhp-subs-2, .zhp-subs-3 { grid-template-columns: 1fr; }
  .zhp-stats { grid-template-columns: 1fr 1fr; }
  .zhp-stats strong { font-size: 28px; }
  .zhp-foot { padding-top: 60px; }
  .zhp-foot-cols { grid-template-columns: 1fr; gap: 30px; }
  .zhp-foot h2 { margin-bottom: 18px; }
  .zhp-foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .zhp-foot-right { text-align: left; }
}

/* Topic posts, as in the Invision theme: green framed card, author column with stat bars. */
.post-stream { gap: 22px; }
.zhp-post { grid-template-columns: 282px minmax(0, 1fr); background: #0b0c0d; border: 0; border-radius: 0; outline: 1px solid #247558; outline-offset: 0; box-shadow: 0 0 0 5px #091c15; margin: 5px; }
.zhp-post:target { box-shadow: 0 0 0 5px #091c15, 0 0 0 6px var(--zhp-red); }
.zhp-pa { position: relative; align-items: center; gap: 0; padding: 50px 20px 22px; background: var(--zhp-pattern-img, none) 0 0 / 422px repeat, #121314; border-right: 0; }
.zhp-pa-dot { position: absolute; left: 20px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: #341c1d; }
.zhp-pa-dot::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #ff5252; }
.zhp-pa-dot.is-on { background: #12301f; }
.zhp-pa-dot.is-on::after { background: #3be21f; }
.zhp-pa-name { color: #f2f2f2; font: 700 18px/1 var(--zhp-title); text-transform: uppercase; letter-spacing: .3px; text-align: center; }
.zhp-pa-av { margin-top: 16px; display: block; }
.zhp-pa .av { width: auto; height: auto; min-width: 88px; min-height: 88px; border-radius: 0; font-size: 28px; }
.zhp-pa .av-img img { width: auto; height: auto; max-width: 170px; max-height: 120px; display: block; }
.zhp-pa-role { display: inline-flex; align-items: center; gap: 4px; margin-top: 26px; color: var(--role); font: 600 13px var(--font); }
.zhp-pa-role .i, .zhp-pill .i { width: 13px; height: 13px; }
.zhp-pa-stats { list-style: none; margin: 26px 0 0; padding: 0; width: 100%; }
.zhp-pa-stats li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; height: 44px; padding-bottom: 6px; }
.zhp-pa-stats li::after { content: ''; position: absolute; right: 0; bottom: 6px; width: 67px; height: 3px; border-radius: 2px; background: var(--zhp-red); }
.zhp-pa-stats .i, .zhp-hash { width: 18px; height: 18px; color: var(--zhp-red); stroke: var(--zhp-red); }
.zhp-hash { font: 700 18px/18px var(--zhp-title); text-align: center; }
.zhp-pa-stats span { color: #f2f2f2; font: 700 14px var(--zhp-title); text-transform: uppercase; }
.zhp-pa-stats strong { color: #f2f2f2; font: 700 14px var(--zhp-title); }
.zhp-pm { padding: 26px 42px 22px 25px; }
.zhp-ph { align-items: center; gap: 8px; border: 0; padding: 0; margin-bottom: 18px; }
.zhp-posted { color: #8a8f95; font-size: 13px; }
.zhp-pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 12px; border-radius: 12px; background: #2b0f0d; color: var(--zhp-red); font: 500 12px var(--font); white-space: nowrap; }
.zhp-post-menu > button { background: none; border: 0; color: #8a8f95; cursor: pointer; padding: 4px 8px; margin-left: 20px; letter-spacing: -1px; font-size: 13px; }
.zhp-post-menu .menu-panel { right: 0; left: auto; }
.zhp-post-menu .menu-panel form { margin: 0; }
.zhp-pm > .prose { color: #bcbcbc; font-size: 15px; line-height: 24px; }
.zhp-pm > .prose strong, .zhp-pm > .prose b { color: #f2f2f2; }
.zhp-pf { gap: 12px; border-top: 1px solid #232425; margin-top: auto; padding-top: 14px; }
.zhp-quote { display: inline-flex; align-items: center; gap: 19px; background: none; border: 0; padding: 0; color: #656b71; font: 500 13px var(--font); cursor: pointer; }
.zhp-quote:hover { color: #fff; }
.zhp-plus { width: 29px; height: 28px; border-radius: 2px; background: var(--zhp-red); color: #fff; font: 400 22px/28px var(--font); text-align: center; }
.zhp-react .vote-btn { display: inline-flex; align-items: center; gap: 8px; height: 27px; padding: 0 12px 0 3px; border-radius: 14px; border: 1px solid #232628; background: #141718; color: #f2f2f2; font: 700 12px var(--font); cursor: pointer; }
.zhp-react .vote-btn[disabled] { cursor: default; }
.zhp-heart { width: 21px; height: 21px; border-radius: 50%; background: #226f9b; display: grid; place-items: center; }
.zhp-heart .i { width: 12px; height: 12px; color: #fff; fill: #fff; }
.zhp-react .vote-btn.is-on .zhp-heart { background: var(--zhp-red); }
@media (max-width: 760px) {
  .zhp-post { grid-template-columns: 1fr; }
  .zhp-pa { padding: 46px 16px 14px; }
  .zhp-pm { padding: 18px 16px; }
  .zhp-ph { flex-wrap: wrap; }
}

/* Breadcrumbs, Group Legend, Members and the stats: the same dashed frame and pattern as the rows, without corner brackets. */
.zhp-crumbs, .zhp-box.zhp-wide, .zhp-stats { border-radius: 0; margin: 0 0 10px;
  background: var(--zhp-frame); }
.zhp-crumbs { margin-top: 14px; }
