:root {
  --pws-surface: #fcfcfb;
  --pws-surface-alt: #f1f4f7;
  --pws-ink: #10212f;
  --pws-muted: #3d5163;
  --pws-brand: #0f4c81;
  --pws-brand-dark: #0a365c;
  --pws-accent: #b45309;
  --pws-border: #708090;
  --pws-border-subtle: #d4dce4;
  --pws-radius: 8px;
  --pws-font-heading: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pws-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

[data-pws-theme="ai_bold_industrial"] {
  --pws-surface: #ffffff;
  --pws-surface-alt: #eef1f3;
  --pws-ink: #0b151e;
  --pws-brand: #134e4a;
  --pws-brand-dark: #0f3d39;
  --pws-accent: #b91c1c;
  --pws-radius: 2px;
}

[data-pws-theme="ai_warm_editorial"] {
  --pws-surface: #fdfbf7;
  --pws-surface-alt: #f4ede2;
  --pws-ink: #271d16;
  --pws-brand: #7c2d12;
  --pws-brand-dark: #5c200c;
  --pws-accent: #365314;
  --pws-radius: 12px;
  --pws-font-heading: Georgia, Cambria, serif;
}

[data-pws-theme="ai_executive_classic"] {
  --pws-surface: #ffffff;
  --pws-surface-alt: #f3f5f8;
  --pws-ink: #0f172a;
  --pws-brand: #1e3a5f;
  --pws-brand-dark: #152943;
  --pws-accent: #78350f;
  --pws-radius: 4px;
  --pws-font-heading: Georgia, 'Times New Roman', serif;
}

[data-pws-theme="ai_high_energy_vibrant"] {
  --pws-surface: #ffffff;
  --pws-surface-alt: #fef3c7;
  --pws-ink: #111827;
  --pws-brand: #0369a1;
  --pws-brand-dark: #075985;
  --pws-accent: #c2410c;
  --pws-radius: 14px;
}

[data-pws-theme="kim_chung_human_crafted"] {
  --pws-surface: #fbfaf8;
  --pws-surface-alt: #efece6;
  --pws-ink: #18181b;
  --pws-brand: #0f4c81;
  --pws-brand-dark: #0a365c;
  --pws-accent: #9a3412;
  --pws-radius: 6px;
  --pws-font-heading: Georgia, Cambria, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--pws-font-body);
  font-size: 1rem;
  line-height: 1.62;
  background: var(--pws-surface);
  color: var(--pws-ink);
  padding-bottom: 4.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--pws-font-heading);
  line-height: 1.22;
  margin-top: 0;
  color: var(--pws-ink);
}

a {
  color: var(--pws-brand);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #0b57d0;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--pws-brand);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--pws-radius);
  z-index: 1000;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

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

.pws-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.pws-header {
  border-bottom: 1px solid var(--pws-border-subtle);
  background: var(--pws-surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.pws-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.pws-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--pws-ink);
  text-decoration: none;
  min-height: 48px;
}

.pws-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.pws-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.85rem;
  border-radius: var(--pws-radius);
  text-decoration: none;
  font-weight: 600;
  color: var(--pws-ink);
}

.pws-nav-links a:hover {
  background: var(--pws-surface-alt);
}

.pws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--pws-radius);
  border: 2px solid var(--pws-brand);
  background: var(--pws-brand);
  color: #ffffff !important;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.pws-btn:hover {
  background: var(--pws-brand-dark);
  border-color: var(--pws-brand-dark);
}

.pws-btn-secondary {
  background: transparent;
  color: var(--pws-brand) !important;
}

.pws-btn-secondary:hover {
  background: var(--pws-surface-alt);
}

.pws-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--pws-border-subtle);
}

.pws-section-alt {
  background: var(--pws-surface-alt);
}

.pws-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2rem;
  align-items: start;
}

.pws-card {
  background: #ffffff;
  border: 1px solid var(--pws-border-subtle);
  border-radius: var(--pws-radius);
  padding: 1.5rem;
}

.pws-table-wrap {
  overflow-x: auto;
}

.pws-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.pws-table th,
.pws-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--pws-border-subtle);
  text-align: left;
  vertical-align: top;
}

.pws-table th {
  background: var(--pws-surface-alt);
  font-weight: 700;
}

.pws-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  margin-block-end: 1.25rem;
}

.pws-field label {
  font-weight: 600;
}

.pws-field input,
.pws-field select,
.pws-field textarea {
  width: 100%;
  font: inherit;
  font-size: max(1rem, 1em);
  padding: 0.75rem;
  min-height: 48px;
  border: 1.5px solid var(--pws-border);
  border-radius: var(--pws-radius);
  background: #ffffff;
  color: var(--pws-ink);
}

.pws-field input:user-invalid,
.pws-field select:user-invalid,
.pws-field textarea:user-invalid {
  border-color: #b91c1c;
}

.pws-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-block-end: 1.25rem;
}

.pws-checkbox-row input[type="checkbox"],
.pws-checkbox-row input[type="radio"] {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.2rem;
  accent-color: var(--pws-brand);
  flex-shrink: 0;
}

.pws-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--pws-surface-alt);
  border: 1px solid var(--pws-border-subtle);
  font-size: 0.875rem;
  font-weight: 700;
}

.pws-footer {
  padding: 2.5rem 0 5rem;
  background: var(--pws-surface-alt);
  font-size: 0.95rem;
}

.pws-sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pws-ink);
  color: #ffffff;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  z-index: 60;
  justify-content: center;
}

.pws-sticky-mobile-bar a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--pws-radius);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
  .pws-sticky-mobile-bar {
    display: none;
  }
}
