/* UtilTok subpage system aligned with the home workspace design. */

body:not([data-page="index"]) {
  background-color: #f7f9ff;
  background-image: none;
}

body:not([data-page="index"])::before {
  display: none;
}

body:not([data-page="index"]) .base_container {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin-top: 128px;
  padding-right: 0;
  padding-left: 0;
}

body:not([data-page="index"]) .ut-breadcrumbs {
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
}

body:not([data-page="index"]) .ut-page-banner {
  display: grid;
  height: 320px;
  min-height: 0;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  align-items: stretch;
  margin: 0 0 34px;
  border: 1px solid #e5ebfb;
  border-radius: 36px;
  color: #0c1933;
  background-color: #fff;
  background-image: none;
  box-shadow: 0 30px 80px rgba(32, 68, 145, 0.12);
}

body:not([data-page="index"]) .ut-page-banner::before,
body:not([data-page="index"]) .ut-page-banner__glow {
  display: none;
}

body:not([data-page="index"]) .ut-page-banner__content {
  display: flex;
  max-width: none;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px 32px 44px;
}

body:not([data-page="index"]) .ut-page-banner__eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 9px 14px;
  border: 1px solid #d9e2ff;
  border-radius: 999px;
  color: #2357dc;
  background-color: #fff;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

body:not([data-page="index"]) .ut-page-banner__eyebrow::before {
  display: none;
}

body:not([data-page="index"]) .ut-page-banner__eyebrow i {
  color: #6c3df0;
}

body:not([data-page="index"]) .ut-page-banner__title {
  max-width: 680px;
  margin: 0 0 16px;
  color: #091735;
  font-family: "Poppins", "Malgun Gothic", sans-serif;
  font-size: clamp(2.15rem, 3.4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.055em;
  text-shadow: none;
  word-break: keep-all;
}

body:not([data-page="index"]) .ut-page-banner__description {
  max-width: 650px;
  margin: 0;
  color: #60708d;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  word-break: keep-all;
}

body:not([data-page="index"]) .ut-page-banner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

body:not([data-page="index"]) .ut-page-banner__chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #395071;
  background-color: transparent;
  backdrop-filter: none;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

body:not([data-page="index"]) .ut-page-banner__chips i {
  color: #315ce9;
}

body:not([data-page="index"]) .ut-page-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

body:not([data-page="index"]) .ut-page-banner__action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid #315ce9;
  border-radius: 12px;
  color: #fff;
  background-color: #315ce9;
  box-shadow: 0 10px 24px rgba(49, 92, 233, 0.2);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body:not([data-page="index"]) .ut-page-banner__action:hover,
body:not([data-page="index"]) .ut-page-banner__action:focus-visible {
  color: #fff;
  background-color: #244bd0;
  box-shadow: 0 12px 28px rgba(49, 92, 233, 0.26);
  text-decoration: none;
  transform: translateY(-1px);
}

body:not([data-page="index"]) .ut-page-banner__audience {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #dce5fb;
  border-radius: 12px;
  color: #17305f;
  background-color: #f6f8ff;
  font-size: 0.8rem;
  line-height: 1.35;
}

body:not([data-page="index"]) .ut-page-banner__audience span {
  color: #315ce9;
  font-weight: 850;
}

body:not([data-page="index"]) .ut-page-banner__audience strong {
  font-weight: 750;
}

.ut-page-banner__visual {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid #eef2fb;
  background-color: #f7f9ff;
}

.ut-page-banner__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  outline: 0;
  object-fit: cover;
  object-position: 68% center;
}

body:not([data-page="index"]) .ut-page-content {
  color: #17305f;
}

/* Custom workspaces should use the same horizontal edge as the shared hero. */
body:not([data-page="index"]) .ut-page-content > :is(
  .ae-app,
  .lotto-app,
  .se-app,
  .ve-app,
  .pw-shell,
  .pw-landing,
  .ut-discovery
) {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body:not([data-page="index"]) .ut-page-content > .row {
  width: 100%;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body:not([data-page="index"]) .ut-page-content > :first-child {
  margin-top: 0;
}

body:not([data-page="index"]) .ut-page-content h1,
body:not([data-page="index"]) .ut-page-content h2,
body:not([data-page="index"]) .ut-page-content h3 {
  color: #091735;
  word-break: keep-all;
}

body:not([data-page="index"]) .ut-page-content h2 {
  font-weight: 900;
  letter-spacing: -0.045em;
}

body:not([data-page="index"]) .ut-page-content .se-intro h2 {
  color: #fff;
}

body:not([data-page="index"]) .ut-page-content p,
body:not([data-page="index"]) .ut-page-content li,
body:not([data-page="index"]) .ut-page-content small {
  line-height: 1.7;
}

body:not([data-page="index"]) .ut-page-content .card,
body:not([data-page="index"]) .ut-page-content .bbs-card,
body:not([data-page="index"]) .ut-page-content .policy-card,
body:not([data-page="index"]) .ut-page-content .ai-guide-card,
body:not([data-page="index"]) .ut-page-content .ai-news-card,
body:not([data-page="index"]) .ut-page-content .ai-qna-card,
body:not([data-page="index"]) .ut-page-content .files-list-card,
body:not([data-page="index"]) .ut-page-content .result-card,
body:not([data-page="index"]) .ut-page-content .upload-card {
  border: 1px solid #e5ebfb !important;
  border-radius: 24px !important;
  background-color: #fff !important;
  background-image: none !important;
  box-shadow: 0 18px 48px rgba(32, 68, 145, 0.08) !important;
}

body:not([data-page="index"]) .ut-page-content .card-header,
body:not([data-page="index"]) .ut-page-content .files-list-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 23px 23px 0 0 !important;
  background-color: #173b86 !important;
  background-image: none !important;
  box-shadow: none !important;
}

body:not([data-page="index"]) .ut-page-content .card-body {
  padding: clamp(24px, 4vw, 46px);
}

body:not([data-page="index"]) .ut-page-content .form-control,
body:not([data-page="index"]) .ut-page-content input[type="text"],
body:not([data-page="index"]) .ut-page-content input[type="email"],
body:not([data-page="index"]) .ut-page-content input[type="password"],
body:not([data-page="index"]) .ut-page-content input[type="url"],
body:not([data-page="index"]) .ut-page-content input[type="number"],
body:not([data-page="index"]) .ut-page-content select,
body:not([data-page="index"]) .ut-page-content textarea {
  min-height: 48px;
  border: 1px solid #d9e2f4 !important;
  border-radius: 14px !important;
  color: #17305f;
  background-color: #fbfcff !important;
  box-shadow: none !important;
}

body:not([data-page="index"]) .ut-page-content textarea {
  min-height: 132px;
}

body:not([data-page="index"]) .ut-page-content .form-control:focus,
body:not([data-page="index"]) .ut-page-content input:focus,
body:not([data-page="index"]) .ut-page-content select:focus,
body:not([data-page="index"]) .ut-page-content textarea:focus {
  border-color: #315ce9 !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 4px rgba(49, 92, 233, 0.12) !important;
}

body:not([data-page="index"]) .ut-page-content .btn,
body:not([data-page="index"]) .ut-page-content button:not(.close):not(.swal2-close) {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px !important;
  font-weight: 800;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body:not([data-page="index"]) .ut-page-content .btn-primary,
body:not([data-page="index"]) .ut-page-content .btn-info,
body:not([data-page="index"]) .ut-page-content label[class*="upload-label"] {
  border-color: #315ce9 !important;
  color: #fff !important;
  background-color: #315ce9 !important;
  background-image: none !important;
}

body:not([data-page="index"]) .ut-page-content .btn-success {
  border-color: #0f887f !important;
  color: #fff !important;
  background-color: #0f887f !important;
  background-image: none !important;
}

body:not([data-page="index"]) .ut-page-content .btn-danger {
  border-color: #c83e54 !important;
  color: #fff !important;
  background-color: #c83e54 !important;
  background-image: none !important;
}

body:not([data-page="index"]) .ut-page-content .btn:hover,
body:not([data-page="index"]) .ut-page-content button:not(.close):not(.swal2-close):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(49, 92, 233, 0.17);
}

body:not([data-page="index"]) .ut-page-content .btn-outline-primary,
body:not([data-page="index"]) .ut-page-content .btn-outline-info,
body:not([data-page="index"]) .ut-page-content .btn-outline-secondary,
body:not([data-page="index"]) .ut-page-content .btn-light,
body:not([data-page="index"]) .ut-page-content .btn-secondary {
  border-color: #d9e2f4 !important;
  color: #17305f !important;
  background-color: #fff !important;
  background-image: none !important;
}

body:not([data-page="index"]) .ut-page-content .dropzone,
body:not([data-page="index"]) .ut-page-content [class*="drop-zone"],
body:not([data-page="index"]) .ut-page-content [class*="upload-area"] {
  border: 2px dashed #b8c9f4 !important;
  border-radius: 20px !important;
  background-color: #f8faff !important;
  background-image: none !important;
}

body:not([data-page="index"]) .ut-page-content .nav-tabs {
  gap: 8px;
  padding: 7px;
  border: 1px solid #e5ebfb;
  border-radius: 16px;
  background-color: #fff;
}

body:not([data-page="index"]) .ut-page-content .nav-tabs .nav-link,
body:not([data-page="index"]) .ut-page-content [role="tab"] {
  min-height: 44px;
  border: 0 !important;
  border-radius: 11px !important;
  color: #60708d;
  background-color: transparent;
}

body:not([data-page="index"]) .ut-page-content .nav-tabs .nav-link.active,
body:not([data-page="index"]) .ut-page-content [role="tab"].active {
  color: #17305f !important;
  background-color: #eef3ff !important;
}

body:not([data-page="index"]) .ut-page-content table {
  overflow: hidden;
  border: 1px solid #e5ebfb;
  border-radius: 18px;
  background-color: #fff;
}

body:not([data-page="index"]) .ut-page-content table thead th {
  color: #17305f;
  background-color: #f0f4ff !important;
}

/* Product, workflow, and solution pages */
body:not([data-page="index"]) .pw-section--panel,
body:not([data-page="index"]) .pw-landing__lead,
body:not([data-page="index"]) .pw-landing__audience,
body:not([data-page="index"]) .pw-dashboard-card,
body:not([data-page="index"]) .pw-tool-groups article,
body:not([data-page="index"]) .pw-trust-grid article {
  border: 1px solid #e5ebfb;
  background-color: #fff;
  background-image: none;
  box-shadow: 0 18px 48px rgba(32, 68, 145, 0.08);
}

body:not([data-page="index"]) .pw-landing__lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 36px;
  padding: 34px 38px;
  border-radius: 24px;
}

body:not([data-page="index"]) .pw-landing__lead h2,
body:not([data-page="index"]) .pw-landing__lead p {
  grid-column: 1;
}

body:not([data-page="index"]) .pw-landing__lead .pw-btn {
  grid-row: 1 / span 3;
  grid-column: 2;
}

body:not([data-page="index"]) .pw-btn,
body:not([data-page="index"]) .pw-inline-action {
  border-radius: 14px !important;
  background-image: none !important;
}

body:not([data-page="index"]) .pw-btn--primary {
  border-color: #315ce9;
  background-color: #315ce9;
}

body:not([data-page="index"]) .pw-btn--secondary {
  border-color: #d9e2f4;
  color: #17305f;
  background-color: #fff;
}

body:not([data-page="index"]) .pw-tool-groups article,
body:not([data-page="index"]) .pw-trust-grid article {
  border-radius: 22px;
}

body:not([data-page="index"]) .pw-tool-groups article:hover,
body:not([data-page="index"]) .pw-trust-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(32, 68, 145, 0.12);
}

body:not([data-page="index"]) .pw-icon {
  color: #315ce9;
  background-color: #eef3ff;
  background-image: none;
}

/* Community and article listings use the same home-style surfaces. */
body .ut-page-content .ai-guide-filter,
body .ut-page-content .ai-news-filter,
body .ut-page-content .ai-qna-toolbar {
  border-color: #e5ebfb;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 12px 34px rgba(32, 68, 145, 0.06);
}

body .ut-page-content .ai-guide-tag,
body .ut-page-content .ai-news-tag {
  color: #2357dc;
  background-color: #eef3ff;
}

body .ut-page-content .pagination .page-link {
  border-color: #d9e2f4;
  color: #315ce9;
  background-color: #fff;
}

body .ut-page-content .pagination .active .page-link {
  border-color: #315ce9;
  color: #fff;
  background-color: #315ce9;
}

@media (max-width: 1100px) {
  body:not([data-page="index"]) .ut-page-banner {
    height: 300px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  }

  body:not([data-page="index"]) .ut-page-banner:has(.ut-page-banner__actions) {
    height: 340px;
  }

  body:not([data-page="index"]) .ut-page-banner:has(.ut-page-banner__actions) .ut-page-banner__chips {
    display: none;
  }

  body:not([data-page="index"]) .ut-page-banner__content {
    padding-left: 40px;
  }

  body:not([data-page="index"]) .ut-page-banner__chips span:last-child {
    display: none;
  }
}

@media (max-width: 820px) {
  body:not([data-page="index"]) .base_container {
    width: calc(100% - 28px);
    margin-top: 102px;
  }

  body:not([data-page="index"]) .ut-page-banner {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  body:not([data-page="index"]) .ut-page-banner__content {
    padding: 30px 26px 26px;
  }

  body:not([data-page="index"]) .ut-page-banner__title {
    font-size: clamp(2rem, 7vw, 2.65rem);
  }

  .ut-page-banner__visual {
    height: 170px;
    border-top: 1px solid #eef2fb;
    border-left: 0;
  }

  .ut-page-banner__visual img {
    min-height: 170px;
  }

  body:not([data-page="index"]) .pw-landing__lead {
    display: block;
    padding: 28px 24px;
  }

  body:not([data-page="index"]) .pw-landing__lead .pw-btn {
    width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 575px) {
  body:not([data-page="index"]) .base_container {
    width: calc(100% - 20px);
    margin-top: 88px;
    padding-bottom: 58px !important;
  }

  body:not([data-page="index"]) .ut-page-banner {
    margin-bottom: 22px;
    border-radius: 22px;
  }

  body:not([data-page="index"]) .ut-page-banner__content {
    padding: 24px 20px 22px;
  }

  body:not([data-page="index"]) .ut-page-banner__eyebrow {
    margin-bottom: 16px;
    font-size: 0.66rem;
  }

  body:not([data-page="index"]) .ut-page-banner__title {
    margin-bottom: 12px;
    font-size: 1.85rem;
  }

  body:not([data-page="index"]) .ut-page-banner__description {
    font-size: 0.95rem;
  }

  body:not([data-page="index"]) .ut-page-banner__chips {
    display: none;
  }

  body:not([data-page="index"]) .ut-page-banner__actions {
    align-items: stretch;
  }

  body:not([data-page="index"]) .ut-page-banner__action,
  body:not([data-page="index"]) .ut-page-banner__audience {
    width: 100%;
    justify-content: center;
  }

  .ut-page-banner__visual,
  .ut-page-banner__visual img {
    height: 132px;
    min-height: 132px;
  }

  body:not([data-page="index"]) .ut-page-content .card,
  body:not([data-page="index"]) .ut-page-content .bbs-card,
  body:not([data-page="index"]) .ut-page-content .policy-card,
  body:not([data-page="index"]) .ut-page-content .ai-guide-card,
  body:not([data-page="index"]) .ut-page-content .ai-news-card,
  body:not([data-page="index"]) .ut-page-content .ai-qna-card,
  body:not([data-page="index"]) .ut-page-content .files-list-card,
  body:not([data-page="index"]) .ut-page-content .result-card,
  body:not([data-page="index"]) .ut-page-content .upload-card {
    border-radius: 19px !important;
  }

  body:not([data-page="index"]) .ut-page-content .card-body {
    padding: 22px 18px;
  }

  body:not([data-page="index"]) .ut-page-content .btn,
  body:not([data-page="index"]) .ut-page-content button:not(.close):not(.swal2-close) {
    max-width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not([data-page="index"]) .ut-page-content .btn,
  body:not([data-page="index"]) .ut-page-content button,
  body:not([data-page="index"]) .pw-tool-groups article,
  body:not([data-page="index"]) .pw-trust-grid article {
    transition: none;
  }
}
