:root {
  /* phpBB prosilver palette */
  --color-bg: #aca8a1;
  --color-surface: #ffffff;
  --color-primary: #105289;
  --color-primary-hover: #d31141;
  --color-accent: #12a3eb;
  --color-text: #536482;
  --color-text-muted: #666666;
  --color-border: #a9b8c2;
  --color-header-text: #ffffff;
  --font-heading: "Trebuchet MS", Arial, Helvetica, sans-serif;
  --font-body: "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, Arial, sans-serif;
  --border-radius: 5px;
  --shadow-sm: none;
  --shadow-md: none;
}

html {
  background: #aca8a1;
}

body {
  background: #aca8a1 !important;
  color: #536482 !important;
  font-size: 10px;
  line-height: 1.4;
}

a {
  color: #105289 !important;
  font-weight: bold;
}

a:hover {
  color: #d31141 !important;
  text-decoration: underline !important;
}

.header-top {
  max-width: 1152px;
  margin: 12px auto 0;
  padding: 22px 28px 28px !important;
  background: #12a3eb;
  background-image: linear-gradient(#12a3eb, #105289);
  color: #ffffff;
  border-radius: 7px 7px 0 0;
  min-height: 92px;
  border: 1px solid #0f5f94;
  border-bottom: 0;
}

.header-top h1 {
  color: #ffffff !important;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif !important;
  font-size: 2.9em !important;
  font-weight: normal !important;
  letter-spacing: 0 !important;
  text-shadow: 1px 1px 1px #000000 !important;
}

.header-top p {
  color: #ffffff !important;
  font-size: 1.15em !important;
}

.header-navbar {
  max-width: 1152px;
  margin: 0 auto;
  padding: 6px 10px !important;
  background: #cadceb !important;
  background-image: linear-gradient(#e8ecef, #cadceb) !important;
  border: 1px solid #ffffff;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  box-shadow: none !important;
  min-height: 26px;
}

.header-navbar a,
.dropdown-trigger {
  color: #105289 !important;
  font-size: 1.1em;
  font-weight: bold;
  padding: 3px 7px;
}

.header-navbar a:hover,
.dropdown-trigger:hover {
  background: transparent !important;
  color: #d31141 !important;
  text-shadow: none !important;
}

.container {
  max-width: 1152px !important;
  margin: 4px auto 0 !important;
  padding: 14px !important;
  background: #ffffff !important;
  border: 1px solid #e6e9ed !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  font-size: 1.2em;
}

.footer {
  max-width: 1152px;
  margin: 0 auto 18px !important;
  padding: 10px !important;
  border: 0 !important;
  color: #536482 !important;
  font-size: 1.1em !important;
}

h1, h2, h3, h4 {
  color: #115098 !important;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif !important;
  font-weight: normal !important;
}

.phpbb-panel,
.container > section,
.container > div[style*="max-width"] {
  background: #ecf3f7 !important;
  border: 1px solid #a9b8c2 !important;
  border-radius: 7px !important;
  padding: 12px !important;
  box-shadow: none !important;
}

.forabg,
.forumbg {
  clear: both;
  margin-bottom: 8px;
  padding: 5px;
  background: #0076b1;
  background-image: linear-gradient(#12a3eb, #105289);
  border-radius: 7px;
}

.forum-category-header,
.forabg-header {
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05em;
  font-weight: bold;
  padding: 6px 8px 7px;
  text-transform: uppercase;
}

.forum-category-header a,
.forabg-header a {
  color: #ffffff !important;
}

.forum-list {
  background: #eef5f9 !important;
  border-radius: 4px;
  overflow: hidden;
}

.forum-row,
.forum-item {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 72px 72px minmax(145px, 0.46fr);
  gap: 8px;
  align-items: center !important;
  min-height: 54px;
  padding: 7px 8px !important;
  background: #ecf3f7 !important;
  border-top: 1px solid #ffffff !important;
  border-bottom: 1px solid #d6e3ec !important;
  list-style: none !important;
  transition: none !important;
  transform: none !important;
}

.forum-row:nth-child(even),
.forum-item:nth-child(even) {
  background: #e1ebf2 !important;
}

.forum-row:hover,
.forum-item:hover {
  background: #f6f4d0 !important;
  transform: none !important;
}

.forum-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0 16%, #cadceb 17% 42%, #105289 43% 100%);
  border: 1px solid #105289;
}

.forum-title {
  color: #105289 !important;
  display: inline !important;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 1.25em !important;
  font-weight: bold !important;
  line-height: 1.2;
}

.forum-desc {
  margin: 3px 0 0 !important;
  color: #4c5d77 !important;
  font-size: 0.95em !important;
}

.forum-stat,
.forum-lastpost {
  color: #536482 !important;
  font-size: 0.92em !important;
  text-align: center;
}

.forum-lastpost {
  text-align: left;
}

.forum-table {
  background: #ecf3f7 !important;
  border: 1px solid #a9b8c2 !important;
}

.forum-table th {
  background: #12a3eb !important;
  background-image: linear-gradient(#12a3eb, #105289) !important;
  color: #ffffff !important;
  font-size: 0.92em;
  text-transform: uppercase;
}

.forum-table td {
  background: #ecf3f7 !important;
  border-color: #d6e3ec !important;
}

.btn,
button {
  border-radius: 4px !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-primary,
button[type="submit"] {
  background: #105289 !important;
  color: #ffffff !important;
  border-color: #0b3f6f !important;
  font-weight: bold !important;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  background: #ffffff !important;
  border: 1px solid #b4bac0 !important;
  border-radius: 3px !important;
  color: #333333 !important;
  font-size: 1em !important;
}

.post-shell {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.post-header {
  background: #d9e6f1 !important;
}

@media (max-width: 760px) {
  .header-top,
  .header-navbar,
  .container,
  .footer {
    margin-left: 6px !important;
    margin-right: 6px !important;
  }

  .forum-row,
  .forum-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .forum-stat,
  .forum-lastpost {
    grid-column: 2;
    text-align: left;
  }
}
