/* Signed: ASDHEM | Theme Agora – classic community board. Two-tier header (search + brand bar), friendly
   rounded geometry, coloured category tiles, everything scannable at a glance. */
.t-agora { --bg: #ffffff; --surface: #f4f6fa; --surface-2: #e9edf4; --ink: #121a2b; --muted: #556075; --line: #e3e7ef;
  --w: 1240px; --fs-h1: clamp(34px, 4.6vw, 58px); --fs-h2: clamp(26px, 3vw, 38px); --sec: clamp(40px, 6vw, 80px); }
.t-agora[data-scheme=dark] { --bg: #0f1420; --surface: #161d2c; --surface-2: #1e2738; --ink: #e9edf5; --muted: #a0abc0; --line: #253049; }
.t-agora body { background: var(--surface); font-size: 16px; }
.t-agora main { min-height: 60vh; }

.ag-hd { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.ag-top { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.ag-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 800 20px/1 var(--font-display); letter-spacing: -.02em; flex: none; }
.ag-brand img { max-height: 38px; width: auto; }
.ag-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-size: 19px; }
.ag-search { flex: 1; max-width: 560px; margin-inline: auto; } .ag-search .f-search { min-width: 0; } .ag-search input { background: var(--surface); border-color: transparent; }
.ag-acc { display: flex; gap: 8px; align-items: center; flex: none; }
.ag-me { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; } .ag-me .fav { width: 34px; height: 34px; }
.ag-navbar { background: var(--brand); color: var(--on-brand); }
.ag-navbar-in { display: flex; align-items: center; min-height: 50px; }
.ag-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ag-nav a { color: var(--on-brand); text-decoration: none; padding: 14px 16px; font-weight: 600; font-size: 15px; opacity: .88; white-space: nowrap; border-bottom: 3px solid transparent; }
.ag-nav a:hover, .ag-nav a[aria-current] { opacity: 1; border-color: var(--on-brand); }
@media (max-width: 860px) {
  .ag-search { display: none; } .ag-acc .btn-ghost { display: none; }
  .nav-b { display: grid; color: var(--on-brand); margin-left: -10px; }
  .ag-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    display: none; box-shadow: 0 24px 40px -24px rgb(0 0 0 / .3); }
  .ag-navbar-in { position: relative; } .ag-navbar { position: relative; }
  .nav-t:checked ~ .ag-nav { display: flex; } .ag-nav a { color: var(--ink); border: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
}

.ag-hero { background: var(--bg); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 80px) 0; }
.ag-hero-in { display: grid; gap: 40px; align-items: center; } @media (min-width: 900px) { .ag-hero-in { grid-template-columns: 1.2fr .8fr; } }
.ag-hero h1 { max-width: 18ch; margin-bottom: 16px; } .ag-hero .lead { margin-bottom: 28px; }
.ag-hero-img { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; } .ag-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.t-agora .sec-forum, .t-agora .forum-page { background: var(--surface); }
.t-agora .f-cats, .t-agora .tp-list, .t-agora .f-box, .t-agora .pst { border-radius: 16px; box-shadow: 0 1px 2px rgb(16 24 40 / .04); }
.t-agora .fc-ic { border-radius: 14px; }
.t-agora .f-head { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; }
.t-agora .f-cat-head { border-left: 6px solid hsl(var(--hue) 70% 50%); }
.t-agora .page-h { font-size: clamp(28px, 3.4vw, 42px); }
.t-agora .sec-features .k-feature { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.t-agora .sec-features { background: var(--surface); }
.t-agora .sec-cta .k-cta { background: var(--brand); color: var(--on-brand); } .t-agora .sec-cta .k-cta .btn { --b-bg: var(--on-brand); --b-fg: var(--brand); }
.t-agora .sec-text, .t-agora .sec-faq, .t-agora .sec-contact { background: var(--bg); }

.ag-ft { background: var(--bg); border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.ag-ft-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-block: 40px; } .ag-ft-in p { max-width: 42ch; margin: 14px 0 0; }
.ag-ft nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; max-width: 560px; } .ag-ft a { color: var(--muted); text-decoration: none; } .ag-ft a:hover { color: var(--ink); }
.ag-ft .ag-brand { color: var(--ink); }
.ag-ft-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
@media (min-width: 861px) { .t-agora .f-head .f-search { display: none; } }
/* ---------- ASDHEM | community v2: classic board (XenForo-inspired structure, original design) ---------- */
.t-agora .cwrap, .t-agora .prof { --c-card: var(--bg); --c-hover: color-mix(in srgb, var(--brand) 4%, var(--bg)); --c-r: 10px; }
.ag-acc .umenu-ic, .ag-acc .umenu-dd summary { color: var(--ink); }
.ag-bar { background: var(--bg); border-bottom: 1px solid var(--line); }
.ag-bar-in { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; min-height: 46px; } .ag-bar .crumbs { margin: 0; }
.ag-bar-links { display: flex; gap: 4px; flex-wrap: wrap; } .ag-bar-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.ag-bar-links a:hover { background: var(--surface); color: var(--ink); }
.ag-board { padding-top: 24px; } .ag-title { margin-bottom: 20px; } .ag-title .page-h { margin: 0; font-size: clamp(26px, 3vw, 36px); } .ag-title .lead { margin: 6px 0 0; font-size: 16px; }
.ag-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ag-block { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); margin-bottom: 18px; }
.ag-block-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; padding: 12px 18px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 75%, var(--brand-accent)));
  color: var(--on-brand); font: 700 15px/1.3 var(--font-body); letter-spacing: .01em; }
.ag-block-h .ic { align-self: center; } .ag-block-h small { font-weight: 500; opacity: .85; font-size: 13px; }
.ag-node { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.ag-block-h + .ag-node { border-top: 0; } .ag-node:hover { background: var(--c-hover); }
@media (min-width: 860px) { .ag-node { grid-template-columns: 46px minmax(0, 1fr) 150px minmax(0, 250px); } }
.ag-node-name { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; } .ag-node-name:hover { color: var(--brand-text); text-decoration: underline; }
.ag-node-main p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.ag-subs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; } .ag-subs li { display: inline-flex; align-items: center; gap: 5px; } .ag-subs .ic { color: var(--muted); width: 14px; }
.ag-subs a { color: var(--brand-text); font-weight: 600; text-decoration: none; }
.ag-node-stats { display: none; grid-template-columns: 1fr 1fr; margin: 0; text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ag-node-stats div { display: flex; flex-direction: column-reverse; } .ag-node-stats dt { font-size: 11.5px; color: var(--muted); } .ag-node-stats dd { margin: 0; font-weight: 700; }
.ag-node-last { display: none; gap: 10px; align-items: center; min-width: 0; font-size: 13.5px; } .ag-node-last > div { display: grid; min-width: 0; }
.ag-node-last a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ag-node-last small { color: var(--muted); }
@media (min-width: 860px) { .ag-node-stats { display: grid; } .ag-node-last { display: flex; } }
.ag-online-in { padding: 14px 18px; font-size: 14px; } .ag-online-in p { margin: 0 0 8px; } .ag-online-names .uname { font-weight: 600; }
.ag-totals { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); } .ag-totals div { display: flex; gap: 6px; } .ag-totals dt { color: var(--muted); } .ag-totals dd { margin: 0; font-weight: 700; }
.ag-th { display: none; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (min-width: 860px) { .ag-th { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px 150px; padding-left: 74px; } .ag-th span:not(:first-child) { text-align: center; } }
.ag-tr { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ag-tr:last-child { border-bottom: 0; } .ag-tr:hover { background: var(--c-hover); } .ag-tr.ann { background: color-mix(in srgb, #f59e0b 6%, var(--bg)); }
@media (min-width: 860px) { .ag-tr { grid-template-columns: 40px minmax(0, 1fr) 90px 90px 150px; } }
.ag-tr-main { min-width: 0; display: grid; } .ag-tr-t { color: var(--ink); font-weight: 600; text-decoration: none; } .ag-tr-t:hover { color: var(--brand-text); text-decoration: underline; }
.ag-tr.unread .ag-tr-t { font-weight: 800; } .ag-tr-main small { color: var(--muted); font-size: 13px; } .ag-tr-main small .uname { color: var(--muted); font-weight: 500; }
.ag-num { display: none; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; } .ag-tr-last { display: none; text-align: right; font-size: 13px; } .ag-tr-last a { color: var(--ink); font-weight: 600; text-decoration: none; } .ag-tr-last small { display: block; color: var(--muted); }
@media (min-width: 860px) { .ag-num, .ag-tr-last { display: block; } }
/* classic postbit */
.t-agora .post { border-radius: 10px; } .t-agora .post-side .post-user { background: var(--surface); }
.t-agora .post-head { margin: -16px calc(-1 * clamp(16px, 2.4vw, 26px)) 0; padding: 9px clamp(16px, 2.4vw, 26px); background: var(--surface); border-bottom: 1px solid var(--line); border-radius: 0 10px 0 0; }
@media (max-width: 819px) { .t-agora .post-head { border-radius: 0; } }
.t-agora .gtag { border-radius: 4px; } .t-agora .ttl { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
.t-agora .cbox { border-radius: 10px; } .t-agora .cbox-h { font-size: 12px; }
.t-agora .ftabs a[aria-current] { border-color: var(--brand); }
