@import url('https://new.smarttoysandgames.com/zendesk-theme-css');

body {
  font-family: 'Gabarito', sans-serif;
  background: var(--smart-bg, #f8f8f8);
  color: var(--smart-text, #333);
}

a {
  color: var(--smart-text, #333);
}
a:hover, a:focus {
  color: var(--smart-dark, #2d3b45);
}

/* ---- Buttons — SmartTheme pill style ---- */
.button, .button-large, input[type="submit"],
.submit-a-request, .sign-in,
.community-follow button, .article-subscribe button, .section-subscribe button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--smart-dark, #2d3b45);
  color: var(--smart-white, #fff);
  border: 2px solid var(--smart-dark, #2d3b45);
  border-radius: 999px;
  font-family: 'Gabarito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  width: auto;
}
.button:hover, .button-large:hover, input[type="submit"]:hover {
  background: var(--smart-white, #fff);
  color: var(--smart-dark, #2d3b45);
}

/* ---- Hero — homepage search hero ---- */
.hero {
  background-color: var(--smart-accent, #7693af);
  padding: 80px 20px;
  text-align: center;
  width: 100%;
}
.hero-inner {
  max-width: 610px;
  margin: 0 auto;
}

/* ---- Search field ---- */
.search {
  position: relative;
}
.search input[type="search"] {
  width: 100%;
  height: 48px;
  padding: 10px 48px 10px 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  background: var(--smart-white, #fff);
  color: var(--smart-text, #333);
  font-family: 'Gabarito', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
.search input[type="search"]:focus {
  border-color: var(--smart-dark, #2d3b45);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--smart-dark, #2d3b45);
  pointer-events: none;
  z-index: 1;
}

/* ---- Category blocks — homepage grid ---- */
.blocks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  list-style: none;
  margin: 24px 0;
}
.blocks-item {
  flex: 1 1 280px;
  max-width: 100%;
  border: 2px solid var(--smart-light, #e9edf2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  background: var(--smart-white, #fff);
}
.blocks-item:hover {
  border-color: var(--smart-dark, #2d3b45);
  background: var(--smart-dark, #2d3b45);
}
.blocks-item-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  text-decoration: none;
  color: var(--smart-text, #333);
  height: 100%;
}
.blocks-item:hover .blocks-item-link,
.blocks-item:hover .blocks-item-title,
.blocks-item:hover .blocks-item-description {
  color: var(--smart-white, #fff);
}
.blocks-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.blocks-item-description {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.4;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
  font-size: 14px;
  opacity: 0.65;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

/* ---- Sub-nav ---- */
.sub-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

/* ---- Page header ---- */
.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.page-header h1 {
  font-family: 'Gabarito', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}
.page-header-description {
  opacity: 0.65;
  font-size: 15px;
  margin: 8px 0 30px;
}

/* ---- Section tree ---- */
.section-tree {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.section-tree .section {
  flex: 1 1 280px;
}
.section-tree-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.section-tree-title a {
  color: inherit;
  text-decoration: none;
}

/* ---- Article page ---- */
.article-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  .article-container {
    flex-direction: row;
  }
}
.article {
  flex: 1;
  min-width: 0;
}
.article-header {
  margin-bottom: 32px;
}
.article-title {
  font-family: 'Gabarito', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}
.article-body {
  font-family: 'Gabarito', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
.article-body a {
  color: var(--smart-dark, #2d3b45);
  text-decoration: underline;
}
.article-body h2, .article-body h3, .article-body h4 {
  font-family: 'Gabarito', sans-serif;
  margin-top: 28px;
  margin-bottom: 12px;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin: 16px 0;
}
.article-body code {
  background: var(--smart-light, #e9edf2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
}
.article-body pre {
  background: var(--smart-light, #e9edf2);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
}
.article-sidebar {
  flex: 0 0 240px;
  border-top: 1px solid var(--smart-light, #e9edf2);
  padding-top: 20px;
}
@media (min-width: 1024px) {
  .article-sidebar {
    border-top: none;
    border-left: 1px solid var(--smart-light, #e9edf2);
    padding-top: 0;
    padding-left: 24px;
  }
}
.sidenav-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.sidenav-item {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.7;
}
.sidenav-item:hover {
  opacity: 1;
}

/* ---- Section list ---- */
.section-list {
  margin: 20px 0;
}
.section-list-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--smart-light, #e9edf2);
  font-size: 15px;
}
.section-list-item:first-child {
  border-top: 1px solid var(--smart-light, #e9edf2);
}
.section-list-item a {
  color: inherit;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---- Article relatives ---- */
.article-relatives {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--smart-light, #e9edf2);
  padding-top: 20px;
  margin-top: 40px;
  font-size: 14px;
}
.article-relatives > * {
  flex: 1;
}
.article-relatives a {
  color: inherit;
  text-decoration: none;
}

/* ---- Article votes ---- */
.article-votes {
  border-top: 1px solid var(--smart-light, #e9edf2);
  padding: 24px 0;
  text-align: center;
  margin-top: 40px;
}
.article-votes-question {
  font-size: 15px;
  margin-bottom: 12px;
}

/* ---- Comments ---- */
.comment {
  border-bottom: 1px solid var(--smart-light, #e9edf2);
  padding: 24px 0;
}
.comment-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.comment-body {
  font-family: 'Gabarito', sans-serif;
  line-height: 1.6;
}
.comment-form textarea {
  width: 100%;
  border: 2px solid var(--smart-light, #e9edf2);
  border-radius: 12px;
  padding: 14px;
  font-family: 'Gabarito', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.comment-form textarea:focus {
  border-color: var(--smart-dark, #2d3b45);
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}
.pagination-next-link, .pagination-prev-link,
.pagination-first-link, .pagination-last-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--smart-light, #e9edf2);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pagination-next-link:hover, .pagination-prev-link:hover {
  border-color: var(--smart-dark, #2d3b45);
  background: var(--smart-dark, #2d3b45);
  color: var(--smart-white, #fff);
}

/* ---- Dividers ---- */
.container-divider {
  border-top: 1px solid var(--smart-light, #e9edf2);
  margin-bottom: 24px;
}

/* ---- Footer attribution ---- */
.powered-by-zendesk {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 8px;
}

/* ---- Visibility utility ---- */
.visibility-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* ---- Promoted articles ---- */
.promoted-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.promoted-articles-item {
  flex: 1 1 200px;
}
.promoted-articles-item a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--smart-light, #e9edf2);
  color: inherit;
  text-decoration: none;
}

/* ---- Recent activity ---- */
.recent-activity-header {
  margin-bottom: 16px;
  text-align: center;
}
.recent-activity-list {
  list-style: none;
  padding: 0;
}
.recent-activity-item {
  border-bottom: 1px solid var(--smart-light, #e9edf2);
  padding: 16px 0;
}
.recent-activity-item a {
  color: inherit;
  text-decoration: none;
}

/* ---- Notifications ---- */
.notification {
  padding: 14px 20px;
  border-radius: 12px;
  font-family: 'Gabarito', sans-serif;
  font-size: 14px;
  margin-bottom: 16px;
}
.notification-error {
  background: #fff0f1;
  border: 1px solid #e35b66;
  color: #cc3340;
}
.notification-notice {
  background: var(--smart-blue-light, #e0eefa);
  border: 1px solid var(--smart-accent, #7693af);
}

/* ---- User avatar (Zendesk) ---- */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--smart-white, #fff);
  outline: 2px solid var(--smart-dark, #2d3b45);
}

/* ---- Dropdown menu ---- */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--smart-white, #fff);
  border-radius: 16px;
  min-width: 220px;
  padding: 8px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 1000;
  display: none;
}
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
  display: block;
}
.dropdown-menu [role="menuitem"] {
  display: block;
  padding: 10px 20px;
  color: var(--smart-text, #333);
  font-size: 14px;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.dropdown-menu [role="menuitem"]:hover {
  background: var(--smart-light, #e9edf2);
}
.dropdown-menu .separator {
  height: 1px;
  background: var(--smart-light, #e9edf2);
  margin: 4px 0;
}

/* ---- Search results ---- */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .search-results {
    flex-direction: row;
  }
}
.search-results-column {
  flex: 1;
}
.search-results-list {
  list-style: none;
  padding: 0;
}
.search-results-list > li {
  padding: 20px 0;
  border-top: 1px solid var(--smart-light, #e9edf2);
}
.search-result-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.search-result-description {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 6px;
}

/* ---- Skip navigation (a11y) ---- */
.skip-navigation {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-navigation:focus {
  left: auto;
  width: auto;
  height: auto;
  overflow: auto;
  padding: 20px;
  background: var(--smart-dark, #2d3b45);
  color: var(--smart-white, #fff);
  text-align: center;
  z-index: 999;
}

/* ---- Homepage hero ---- */
.hero-title {
  color: var(--smart-white, #fff);
  font-family: 'Gabarito', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
}
.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-family: 'Gabarito', sans-serif;
  font-size: 17px;
  margin: 0 0 28px;
  line-height: 1.5;
}
.hero-cta {
  font-size: 17px !important;
  padding: 14px 36px !important;
}

/* ---- Error page ---- */
.error-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 5%;
}

/* ---- New Request Page — card-based form selector ---- */
.new-request-intro {
  text-align: center;
  margin-bottom: 40px;
}
.new-request-heading {
  font-family: 'Gabarito', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--smart-dark, #2d3b45);
}
.new-request-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--smart-text, #333);
  opacity: 0.8;
  margin: 0;
}

/* Request form wrapper — full-width white card matching office locations */
.request-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--smart-white, #fff);
  border-radius: 20px;
  padding: 48px 40px;
}
#new-request-form-section {
  margin-bottom: 80px;
}
.request-form-wrapper .form-field,
.request-form-wrapper .request-form dd {
  margin-bottom: 20px;
}
.request-form-wrapper input[type="text"],
.request-form-wrapper input[type="email"],
.request-form-wrapper input[type="tel"],
.request-form-wrapper input[type="password"] {
  width: 100%;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid #c7ccd2;
  background: var(--smart-white, #fff);
  color: #4b5d6b;
  font-family: 'Gabarito', sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: none;
  box-sizing: border-box;
}
.request-form-wrapper input[type="text"]:focus,
.request-form-wrapper input[type="email"]:focus,
.request-form-wrapper input[type="tel"]:focus,
.request-form-wrapper input[type="password"]:focus {
  outline: none;
  border-color: #a9b3bc;
}
.request-form-wrapper textarea {
  min-height: 180px;
  padding: 16px 20px;
  border-radius: 40px;
  border: 1.5px solid #c7ccd2;
  background: var(--smart-white, #fff);
  color: #4b5d6b;
  font-family: 'Gabarito', sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}
.request-form-wrapper textarea:focus {
  outline: none;
  border-color: #a9b3bc;
}
.request-form-wrapper select {
  width: 100%;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid #c7ccd2;
  background: var(--smart-white, #fff);
  color: #4b5d6b;
  font-family: 'Gabarito', sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: none;
  box-sizing: border-box;
}
.request-form-wrapper .request-form dd {
  margin-left: 0;
}
.request-form-wrapper .form-field:last-child,
.request-form-wrapper .request-form dd:last-child {
  margin-bottom: 0;
}
.request-form-wrapper input[type="submit"],
.request-form-wrapper .submit-a-request {
  margin-top: 12px;
  background: var(--smart-accent, #7693af);
  border-color: var(--smart-accent, #7693af);
}
.request-form-wrapper input[type="submit"]:hover,
.request-form-wrapper .submit-a-request:hover {
  background: var(--smart-white, #fff);
  color: var(--smart-accent, #7693af);
}
.request-form-wrapper .nesty-input {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 36px 0 20px;
  border: 1.5px solid #c7ccd2;
  border-radius: 999px;
  background: var(--smart-white, #fff);
  font-family: 'Gabarito', sans-serif;
  font-size: 0.95rem;
  color: #4b5d6b;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  box-sizing: border-box;
}
.request-form-wrapper .nesty-input:focus {
  border-color: #a9b3bc;
  outline: none;
}
.request-form-wrapper .nesty-input:after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #4b5d6b;
}
.request-form-wrapper .nesty-panel {
  border-radius: 12px;
  border: 1.5px solid #c7ccd2;
  font-family: 'Gabarito', sans-serif;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin-top: 4px;
}
.request-form-wrapper .nesty-panel li {
  padding: 10px 20px;
  cursor: pointer;
  color: #4b5d6b;
}
.request-form-wrapper .nesty-panel li:hover,
.request-form-wrapper .nesty-panel li.focus {
  background: #e9edf2;
}
.request-form-wrapper .ck-editor {
  border-radius: 40px !important;
  border: 1.5px solid #c7ccd2 !important;
  overflow: hidden;
  background: var(--smart-white, #fff);
}
.request-form-wrapper .ck-editor .ck-toolbar {
  display: none !important;
}
.request-form-wrapper .ck-editor .ck-editor__editable {
  min-height: 180px;
  background: var(--smart-white, #fff) !important;
  color: #4b5d6b;
  font-family: 'Gabarito', sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 16px 20px;
  border: none !important;
}
.request-form-wrapper .ck-editor .ck-editor__editable:focus {
  outline: none;
}
.request-form-wrapper .ck-editor .ck-button {
  color: #4b5d6b !important;
}
.request-form-wrapper .ck-editor .ck-button:hover {
  background: #e9edf2 !important;
}

/* Card grid */
.request-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 520px;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .request-cards {
    grid-template-columns: 1fr;
  }
}

/* Individual card */
.request-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 20px;
  background: var(--smart-light, #e9edf2);
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Gabarito', sans-serif;
  text-align: center;
  min-height: 160px;
}
.request-card:hover {
  background: var(--smart-white, #fff);
  border-color: var(--smart-dark, #2d3b45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 59, 69, 0.1);
}
.request-card:focus {
  outline: 2px solid var(--smart-dark, #2d3b45);
  outline-offset: 2px;
}

/* Card icon */
.request-card-icon {
  color: var(--smart-accent, #7693af);
  transition: color 0.25s ease;
}
.request-card:hover .request-card-icon {
  color: var(--smart-dark, #2d3b45);
}

/* Card title */
.request-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--smart-dark, #2d3b45);
}

/* ---- Office locations ---- */
.office-locations {
  background: #e8ddf5;
  border-radius: 20px;
  padding: 48px 40px 25px;
  margin: 64px 0;
}
.office-locations-title {
  font-family: 'Gabarito', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 32px;
  color: var(--smart-dark, #2d3b45);
}
.office-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .office-locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .office-locations-grid {
    grid-template-columns: 1fr;
  }
}
.office-location-card {
  background: var(--smart-white, #fff);
  border-radius: 12px;
  padding: 24px;
}
.office-location-name {
  font-family: 'Gabarito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--smart-dark, #2d3b45);
}
.office-location-label {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--smart-text, #333);
}
.office-location-address {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--smart-text, #333);
  opacity: 0.8;
}
