/* Vixeria CMS and Polished Components */
:root {
  --cms-paper: #f7f8fa;
  --cms-ink: #17212d;
  --cms-muted: #626d7a;
  --cms-line: #dfe3e8;
  --cms-blue: #3159ed;
  --cms-blue-hover: #2447d3;
}

/* Sticky Header with Frosted Glass */
body > .header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 227, 232, 0.75);
  transition: background 0.2s, box-shadow 0.2s;
}

main [id], main[id] {
  scroll-margin-top: 105px;
}
@media (max-width: 800px) {
  main [id], main[id] {
    scroll-margin-top: 85px;
  }
}

/* Polished Contact Section */
.cms-contact {
  padding-block: clamp(56px, 7vw, 96px);
  font-family: var(--sans, 'Inter', Arial, sans-serif);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.contact-intro-col .eyebrow {
  margin-bottom: 16px;
}
.contact-intro-col h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  letter-spacing: -1.8px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 18px;
  border: none;
  padding: 0;
}
.contact-intro-col h2 em {
  font-style: italic;
  color: var(--blue, #3159ed);
  font-family: var(--serif, Georgia, serif);
}
.contact-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted, #626d7a);
  max-width: 460px;
  margin-bottom: 32px;
}
.contact-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #dfe3e8);
}
.contact-highlight-item small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: #8895a7;
  margin-bottom: 4px;
}
.contact-highlight-item b, .contact-highlight-item a {
  font-size: 15px;
  color: var(--ink, #17212d);
  font-weight: 600;
  text-decoration: none;
}
.contact-highlight-item a:hover {
  color: var(--blue, #3159ed);
}
.contact-form-col {
  background: #ffffff;
  border: 1px solid var(--line, #dfe3e8);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 10px 32px rgba(23, 33, 45, 0.04);
}
.styled-contact-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.styled-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #17212d);
  margin: 0;
}
.styled-contact-form input:not([type="hidden"]),
.styled-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, #17212d);
  background: #fafbfe;
  border: 1px solid #d2d8e2;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.styled-contact-form input:focus,
.styled-contact-form textarea:focus {
  border-color: var(--blue, #3159ed);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(49, 89, 237, 0.15);
}
.styled-contact-form textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
.form-disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted, #626d7a);
  margin: 4px 0 0;
}
.form-disclaimer a {
  color: var(--blue, #3159ed);
  text-decoration: underline;
}
.contact-submit-btn {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background: var(--blue, #3159ed);
  color: #ffffff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-submit-btn:hover {
  background: var(--blue-hover, #2447d3);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(49, 89, 237, 0.25);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-lead {
    max-width: 100%;
  }
}

/* Polished CMS Admin UI */
.cms {
  background: #f4f6fa;
  font-family: var(--sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  color: #17212d;
  margin: 0;
  line-height: 1.6;
}
.cms main {
  width: min(100% - 32px, 64rem);
  margin: 24px auto 48px;
  background: #ffffff;
  border: 1px solid #e1e6ef;
  border-radius: 14px;
  padding: clamp(20px, 3.5vw, 40px);
  box-shadow: 0 8px 30px rgba(23, 33, 45, 0.04);
}
.cms h1 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e8ecf2;
  padding-bottom: 16px;
  color: #111827;
}
.cms h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  border-top: 1px solid #e8ecf2;
  padding-top: 24px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: #111827;
}
.cms p[role="status"]:not(:empty) {
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  color: #027a48;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 550;
  font-size: 14px;
  margin-bottom: 16px;
}
.cms nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.cms nav a {
  background: #f0f3f8;
  color: #344054;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.cms nav a:hover {
  background: #3159ed;
  color: #ffffff;
}
.cms form {
  margin: 16px 0;
}
.cms label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #344054;
  margin: 12px 0 6px;
}
.cms input:not([type="hidden"]), .cms textarea, .cms select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  background: #fafbfe;
  color: #17212d;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.cms input:focus, .cms textarea:focus, .cms select:focus {
  outline: none;
  border-color: #3159ed;
  box-shadow: 0 0 0 3px rgba(49, 89, 237, 0.15);
  background: #ffffff;
}
.cms textarea[name="html"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  min-height: 380px;
  tab-size: 2;
}
.cms button {
  background: #3159ed;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 10px 20px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cms button:hover {
  background: #2447d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 89, 237, 0.25);
}
.cms form[action="/admin/publish"] button {
  background: #027a48;
  padding: 12px 24px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(2, 122, 72, 0.25);
}
.cms form[action="/admin/publish"] button:hover {
  background: #05603a;
}
.cms a {
  color: #3159ed;
  text-decoration: underline;
}
.cms pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-family: inherit;
  font-size: 13.5px;
  color: #1e293b;
}
.cms article {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.cms article h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
  color: #0f172a;
}
.cms article p {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
}
.cms ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.cms ul li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cms ul li a {
  font-weight: 600;
  color: #3159ed;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cms ul li code {
  font-size: 11px;
  background: #edf2f7;
  padding: 3px 6px;
  border-radius: 4px;
  color: #475569;
}
.cms ul li form button {
  background: #fee4e2;
  color: #b42318;
  padding: 6px 12px;
  font-size: 12px;
  width: fit-content;
}
.cms ul li form button:hover {
  background: #fecdca;
  transform: none;
  box-shadow: none;
}

/* Admin sign-in */
.admin-login {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 16px;
  background: radial-gradient(ellipse at top, #eaf0ff, transparent 65%), var(--cms-paper);
  color: var(--cms-ink);
}
.admin-login .login-card {
  box-sizing: border-box;
  width: min(100%, 420px);
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid #e1e6ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 33, 45, .05);
}
.admin-login .wordmark { width: fit-content; }
.admin-login .login-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 8px;
  color: var(--cms-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.admin-login .login-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cms-blue);
}
.admin-login h1 {
  margin: 0 0 24px;
  font-size: clamp(1.65rem, 5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.admin-login form { display: grid; gap: 8px; }
.admin-login label { font-size: .875rem; font-weight: 650; }
.admin-login input, .admin-login button {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
}
.admin-login input {
  margin-bottom: 8px;
  border: 1px solid #8794a7;
  background: #fff;
  color: var(--cms-ink);
}
.admin-login button {
  margin-top: 4px;
  border: 0;
  background: var(--cms-blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.admin-login button:hover { background: var(--cms-blue-hover); }
.admin-login :focus-visible {
  outline: 2px solid var(--cms-blue);
  outline-offset: 3px;
}
.admin-login .login-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f0;
  color: #9d2424;
}
.admin-login .login-return {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 12px;
  color: #2447d3;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}
