:root {
  --bg: var(--cls-bg-light);
  --text: var(--cls-text-primary);
  --muted: var(--cls-text-secondary);
  --border: var(--cls-border-light);
  --chip: var(--cls-chip-light);
  --container: 1100px;
  --accent: var(--cls-accent);
  --link: var(--cls-link);
}

html[data-theme="dark"] {
  --bg: var(--cls-bg-dark);
  --text: var(--cls-text-dark);
  --muted: var(--cls-text-dark-muted);
  --border: var(--cls-border-dark);
  --chip: var(--cls-chip-dark);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a {
  color: var(--link);
}

.three-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.three-site-header {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
}

.three-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  position: relative;
}

.brand {
  width: 150px;
  height: 48px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand .custom-logo {
  max-width: 240px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.three-site-title {
  display: inline-flex;
  align-items: center;
  font-size: 26px;
  letter-spacing: -0.5px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.three-site-title:hover {
  opacity: 0.85;
}

.logo-main {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
}

.logo-ext {
  font-weight: 400;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 2px;
}

.three-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.three-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.three-menu a {
  text-decoration: none;
  opacity: 0.95;
}

.three-menu a:hover {
  text-decoration: underline;
  opacity: 1;
}

.three-menu-primary a {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  opacity: 1;
  color: var(--link);
}

.three-menu-primary a:hover {
  background: var(--chip);
  text-decoration: none;
}

.three-theme-toggle {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

.three-menu-toggle {
  display: none;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--link);
}

/* Dropdown Menu */
.three-menu .menu-item-has-children {
  position: relative;
}

.three-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  min-width: 200px;
  z-index: 10;
  list-style: none;
  margin-top: 8px;
}

.three-menu .sub-menu li {
  margin: 0;
  padding: 0;
}

.three-menu .sub-menu a {
  display: block;
  padding: 6px 10px;
  white-space: nowrap;
  border: none;
  border-radius: 4px;
}

.three-menu .sub-menu a:hover {
  background: var(--chip);
  text-decoration: none;
}

.three-menu-primary .menu-item-has-children > a {
  position: relative;
  padding-right: 24px;
}

.three-menu-primary .menu-item-has-children > a::after {
  content: '▼';
  font-size: 10px;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

@media (min-width: 681px) {
  .three-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
  }
}

@media (max-width: 680px) {
  .three-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .three-nav.is-open {
    display: flex;
  }

  .three-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .three-menu-primary {
    flex-direction: column;
    gap: 12px;
  }

  .three-menu .sub-menu {
    display: none;
    position: static;
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0 0;
    padding: 8px 0 0;
    width: 100%;
    min-width: 0;
    border-radius: 0;
  }

  .three-menu .submenu-open > .sub-menu {
    display: block;
  }

  .three-menu-primary .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .three-menu-primary .menu-item-has-children > a::after {
    transform: none;
  }
}

/* Archive / Page Header */
.archive-header .archive-title {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0;
}

.three-ad,
.three-ad-slot {
  margin: 10px auto;
  text-align: center;
}

.three-ad-header {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.three-ad-top {
  margin: 8px 0 12px;
}

.three-ad-mid {
  margin: 24px 0;
}

.three-ad-footer {
  margin-top: 16px;
}

/* Grid Layouts */
.three-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.three-grid.three-grid-related {
  grid-template-columns: repeat(6, 1fr);
}

.three-grid.three-grid-related--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.three-grid.three-grid-related--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.three-grid.three-grid-related--cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.three-grid.three-grid-related--cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

.three-grid.three-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

.three-grid.three-grid-six {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1280px) {
  .three-grid.three-grid-six,
  .three-grid.three-grid-related--cols-6 {
    grid-template-columns: repeat(5, 1fr);
  }
  .three-grid.three-grid-four,
  .three-grid.three-grid-related--cols-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .three-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .three-grid.three-grid-six {
    grid-template-columns: repeat(4, 1fr);
  }
  .three-grid.three-grid-four,
  .three-grid.three-grid-related--cols-6,
  .three-grid.three-grid-related--cols-5,
  .three-grid.three-grid-related--cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .three-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .three-grid.three-grid-six {
    grid-template-columns: repeat(3, 1fr);
  }
  .three-grid.three-grid-four,
  .three-grid.three-grid-related--cols-6,
  .three-grid.three-grid-related--cols-5,
  .three-grid.three-grid-related--cols-4,
  .three-grid.three-grid-related--cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .three-grid,
  .three-grid.three-grid-six,
  .three-grid.three-grid-four,
  .three-grid.three-grid-related {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card */
.three-card {
  display: block;
}

.three-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--text);
}

.three-card-link > .three-card-thumb {
  order: 1;
}

.three-card-link > .three-card-title {
  order: 2;
}

.three-card-thumb {
  position: relative;
  border: 1px solid var(--border);
  background: var(--chip);
  border-radius: 0;
  overflow: hidden;
  margin: 0;
}

.three-thumb-16x9 {
  aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
}

.three-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.three-thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
  text-align: center;
}

.three-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--text-on-theme);
  background: linear-gradient(to top, var(--cls-overlay-fade-65), var(--cls-overlay-transparent));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.three-card-title {
  margin: 1px 0 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--link);
}

.three-related-more {
  display: block;
  margin: 12px auto 0;
  padding: 8px 16px;
  border: 1px solid var(--link);
  border-radius: 8px;
  background: var(--link);
  color: var(--text-on-theme);
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  width: max-content;
}

.three-related-more:hover {
  opacity: 0.9;
}

/* Video Embed Wrapper */
.three-video-embed {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.three-video-embed iframe,
.three-video-embed video,
.three-video-embed embed {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.three-video-embed .secure-iframe-wrapper {
  margin: 0;
}

.three-video-meta {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.three-video-meta a {
  text-decoration: none;
}

.three-video-meta header {
  flex-basis: 100%;
  margin: 0 0 4px;
}

.three-video-meta .entry-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.three-sep {
  opacity: 0.6;
}

/* Meta Panels */
.three-meta-panels {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
}

.three-meta-panel {
  overflow: hidden;
  transition: max-height 0.25s ease;
  max-height: 0;
  background: var(--chip);
}

.three-meta-panel .three-panel-inner {
  padding: 12px;
}

.three-meta-panel.is-open {
  max-height: 1000px;
}

.collapsible.is-collapsed {
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.three-post-tags {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.three-post-tags li a,
.three-post-tags li span.three-post-tag-label {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  color: var(--text);
  display: inline-block;
}

/* Search Form */
.three-search-form {
  display: flex;
  flex-wrap: wrap;
}

.three-search-form input[type="search"] {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--bg);
  color: var(--text);
}

.three-search-form input[type="search"]::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.three-search-form button {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--accent);
  color: var(--text-on-theme);
  cursor: pointer;
}

.three-search-form button:hover {
  opacity: 0.9;
}

.three-search-form button i,
.three-search-form button svg {
  color: inherit;
  stroke: currentColor;
  fill: currentColor;
}

@media (max-width: 680px) {
  .three-video-meta a[data-target="#panel-search"] {
    display: none;
  }
  .three-meta-panel.search {
    max-height: 1000px;
  }
}

/* Pagination */
.three-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px 0;
}

.three-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--link);
  border-radius: 6px;
  text-decoration: none;
  color: var(--link);
  background: var(--bg);
  font-size: 13px;
}

.three-pagination .page-numbers.current {
  background: var(--accent);
  color: var(--text-on-theme);
  border-color: var(--accent);
}

.three-pagination .page-numbers:hover {
  background: var(--chip);
}

.three-download-block {
  margin: 18px 0;
  background: var(--chip);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
}

.three-section-sep {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* Footer */
.three-site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 16px 0;
}

.three-site-footer .three-container {
  text-align: center;
}

.three-site-footer .three-menu-footer {
  justify-content: center;
}

.three-menu-footer {
  gap: 0;
  font-size: 12px;
}

.three-menu-footer li {
  display: flex;
  align-items: center;
}

.three-menu-footer li + li:before {
  content: "|";
  margin: 0 6px;
  color: var(--muted);
}

.three-menu-footer a {
  color: var(--link);
  text-decoration: none;
}

.three-copy {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.three-footer-boilerplate {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.three-footer-boilerplate p {
  margin: 0 0 8px;
}

.three-footer-boilerplate p:last-child {
  margin-bottom: 0;
}

/* Breadcrumbs */
.three-breadcrumbs-container {
  padding-top: 6px;
}

.three-breadcrumbs {
  margin: 8px 0 14px;
  font-size: 12px;
  color: var(--muted);
}

.three-breadcrumbs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.three-breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.three-breadcrumb-item + .three-breadcrumb-item:before {
  content: "›";
  color: var(--muted);
  font-size: 11px;
}

.three-breadcrumbs a {
  text-decoration: none;
  color: var(--link);
}

.three-breadcrumbs a:hover {
  text-decoration: underline;
}

.three-breadcrumb-item.is-current {
  color: var(--text);
  font-weight: 600;
}

.three-meta-panels--static .three-meta-panel {
  max-height: 1000px;
}

.three-meta-panels--static .three-meta-panel + .three-meta-panel {
  border-top: 1px solid var(--border);
}

/* Sections */
.three-home-section {
  margin-top: 24px;
}

.three-home-section:first-of-type {
  margin-top: 20px;
}

.three-section-header {
  margin-bottom: 12px;
}

.three-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.three-home-intro,
.three-home-additional,
.three-term-intro,
.three-term-additional {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.three-home-intro p:last-child,
.three-home-additional p:last-child,
.three-term-intro p:last-child,
.three-term-additional p:last-child {
  margin-bottom: 0;
}

.three-home-additional {
  margin-top: 24px;
}

.three-card-overlay-hub {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px;
}

.three-card-heading {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-on-theme);
}

.three-card-count {
  font-size: 11px;
  color: var(--text-on-theme);
  opacity: 0.85;
}

/* Tag Index */
.three-home-tag-index {
  margin-top: 32px;
}

.three-tag-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
}

.three-tag-tab {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--chip);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.three-tag-tab.is-active {
  background: var(--link);
  border-color: var(--link);
  color: var(--text-on-theme);
}

.three-tag-tab[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.three-tag-panels {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--chip);
  padding: 16px;
}

.three-tag-panel {
  display: none;
}

.three-tag-panel.is-active {
  display: block;
}

.three-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1280px) {
  .three-tag-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .three-tag-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 820px) {
  .three-tag-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .three-tag-list {
    grid-template-columns: repeat(1, 1fr);
  }
}

.three-tag-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
}

.three-tag-item a:hover {
  border-color: var(--link);
  color: var(--link);
}

.three-tag-count {
  font-size: 12px;
  color: var(--muted);
}

/* Sitemap */
.three-sitemap-latest {
  margin-top: 32px;
}

.three-sitemap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .three-sitemap-list {
    grid-template-columns: repeat(1, 1fr);
  }
}

.three-sitemap-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--chip);
  font-size: 14px;
}

.three-sitemap-item a {
  text-decoration: none;
  color: var(--link);
  font-weight: 600;
}

.three-sitemap-item a:hover {
  text-decoration: underline;
}

.three-sitemap-trail {
  color: var(--muted);
  font-size: 13px;
}

.three-sitemap-sep {
  color: var(--muted);
  font-size: 12px;
}

.three-related-search {
  margin: 20px 0;
}

.three-related-search .three-meta-panel {
  max-height: 1000px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--chip);
}

.three-post-tags-wrapper {
  margin-top: 18px;
}

.three-tags-heading {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* Secure Iframe Loader */
.secure-iframe-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  background-color: var(--cls-bg-dark);
  overflow: hidden;
}

.secure-thumb {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button svg {
  width: 60px;
  height: 60px;
  fill: var(--cls-accent-orange);
}

.secure-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.secure-iframe-wrapper svg.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
}

/* Theme Tags Footer */
.three-footer-tags {
  margin-bottom: 12px;
}

.three-footer-tags-list {
  max-height: 50px;
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
}

.three-footer-tags-list.is-expanded {
  max-height: none;
}

.three-footer-tags-list a {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 4px;
  text-decoration: none;
  color: var(--muted);
}

.three-footer-tags-list a:hover {
  color: var(--link);
  text-decoration: underline;
}

.three-footer-tags-toggle {
  text-align: center;
  margin-top: 8px;
}

.three-footer-tags-toggle button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.three-footer-tags-toggle button:hover {
  background: var(--chip);
}

/* Like Button State */
#cls-like-btn.liked {
  background: var(--accent) !important;
  color: var(--text-on-theme) !important;
  border-color: var(--accent) !important;
}

#cls-like-btn.liked svg {
  fill: currentColor;
}

/* Banner Ads */
.fv-banner {
  text-align: center;
  margin: 16px auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  width: 100%;
}

.fv-banner img,
.fv-banner iframe {
  max-width: 100%;
  margin-inline: auto;
}

/* Age Gate Custom Style */
.age-gate {
  background: var(--bg) !important;
  opacity: 0.98 !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}

.age-gate__content {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px var(--cls-overlay-fade-08) !important;
}

.age-gate__badge {
    text-align: center !important;
    line-height: 1 !important;
display: inline-flex !important; align-items: center !important; justify-content: center !important; 
  border: 2px solid var(--accent) !important;
  color: var(--accent) !important;
  
  font-weight: 700 !important;
  background: var(--chip) !important;
}

.age-gate__title {
  color: var(--text) !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
}

.age-gate__desc {
  color: var(--muted) !important;
  font-size: 0.9rem !important;
}

.age-gate__btn {
  background: var(--accent) !important;
  color: var(--text-on-theme) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  transition: opacity 0.2s ease !important;
}

.age-gate__btn:hover {
  opacity: 0.9 !important;
}

.age-gate__btn:active {
  transform: scale(0.98) !important;
}

@media (max-width: 768px) {
  .single .three-single-video h1.entry-title {
    font-size: 13px !important;
  }
}

/* Policy Pages */
.cs-policy-shell {
  width: 100%;
  padding: clamp(2rem, 5vw, 5rem) 1rem;
}

.cs-policy-card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cs-policy-tab {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.65rem;
  color: var(--text-on-theme);
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cs-policy-card h1 {
  margin: 0 0 2rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
}

.cs-policy-card h2 {
  margin: 2.2rem 0 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
}

.cs-policy-card a {
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
}

.cs-policy-meta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.cs-policy-note {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--chip);
  border-left: 4px solid var(--accent);
}

.cs-policy-form {
  width: 100%;
  max-width: 700px;
  margin: 2rem auto 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cs-policy-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.cs-policy-form legend {
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.cs-form-grid {
  display: grid;
  gap: 1rem;
}

.cs-policy-field {
  display: grid;
  gap: 0.4rem;
}

.cs-policy-field label {
  font-size: 0.82rem;
  font-weight: 700;
}

.cs-policy-field input,
.cs-policy-field textarea,
.cs-policy-field select {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

.cs-policy-field textarea {
  min-height: 145px;
  resize: vertical;
}

.cs-policy-field select {
  appearance: none;
  padding-right: 2.8rem;
  background-image: var(--cls-select-arrow);
  background-position: right 0.9rem center;
  background-repeat: no-repeat;
}

.cs-policy-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.84rem;
}

.cs-policy-check input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.cs-policy-submit {
  min-height: 46px;
  margin-top: 1.2rem;
  padding: 0.75rem 1rem;
  color: var(--text-on-theme);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 700;
}

.cs-policy-status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
}

.cs-policy-table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cs-policy-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.cs-policy-table caption {
  padding: 0.8rem;
  color: var(--text-on-theme);
  background: var(--accent);
  text-align: left;
  font-weight: 700;
}

.cs-policy-table th,
.cs-policy-table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.cs-policy-table thead,
.cs-policy-table tfoot {
  background: var(--chip);
  font-weight: 700;
}

.cs-policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
}

.cs-policy-links a {
  font-size: 0.78rem;
}

@media (min-width: 680px) {
  .cs-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cs-field-wide {
    grid-column: 1 / -1;
  }
}
