:root {
  --htcnet-primary: #2C6BED;
  --htcnet-primary-light: #6191F3;
  --htcnet-primary-dark: #1851B4;
  --text: #1B1B1B;
  --text-muted: #5E5E5E;
  --border: #E2E2E2;
  --bg: #FFFFFF;
  --bg-alt: #F6F6F6;
  --radius: 10px;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --htcnet-primary: #6191F3;
    --htcnet-primary-light: #A0B8FA;
    --htcnet-primary-dark: #2C6BED;
    --text: #E2E2E2;
    --text-muted: #9A9A9A;
    --border: #303030;
    --bg: #121212;
    --bg-alt: #1B1B1B;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
}

.site-header .brand svg {
  width: 28px;
  height: 28px;
}

.site-header .brand-sub {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 15px;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
}

.site-header nav a:hover { color: var(--htcnet-primary); }

.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--htcnet-primary); }

h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 22px;
  margin: 32px 0 12px;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

p, ul, ol { margin: 0 0 16px; }

ul, ol { padding-left: 22px; }

li { margin-bottom: 4px; }

a {
  color: var(--htcnet-primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

code {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 90%;
}

pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  overflow-x: auto;
  font-size: 14px;
}

pre code { background: transparent; padding: 0; }

blockquote {
  border-left: 3px solid var(--htcnet-primary);
  margin: 20px 0;
  padding: 8px 16px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}

.card:hover {
  border-color: var(--htcnet-primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.card h3 { margin: 0 0 6px; font-size: 16px; color: var(--htcnet-primary); }
.card p { margin: 0; font-size: 14px; color: var(--text-muted); }

.note {
  border-left: 3px solid var(--htcnet-primary);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 15px;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
  margin: 0 8px;
}

.site-footer a:hover { color: var(--htcnet-primary); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0 8px;
  max-width: 620px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
}

.contact-form .field + .field { margin-top: 0; }

.contact-form .field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0;
}

.contact-form .req {
  color: var(--htcnet-primary);
  font-weight: 700;
  margin-left: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="url"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--htcnet-primary);
  box-shadow: 0 0 0 3px rgba(44, 107, 237, 0.15);
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%235E5E5E' d='M2 4.5l4 4 4-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 180px;
  font-family: inherit;
}

.contact-form .hint {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

.contact-form .field-captcha {
  margin-top: 4px;
}

.contact-form .form-actions {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.contact-form button[type="submit"] {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--htcnet-primary);
  border: 0;
  border-radius: 6px;
  padding: 11px 28px;
  cursor: pointer;
  transition: background .12s;
}

.contact-form button[type="submit"]:hover { background: var(--htcnet-primary-dark); }
.contact-form button[type="submit"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 107, 237, 0.35);
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.banner-success {
  border: 1px solid var(--htcnet-primary);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.banner-success h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--htcnet-primary);
}

.banner-success p { margin: 0; color: var(--text-muted); }
.banner-success .ticket {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
}

.banner-error {
  background: #FDECEA;
  color: #8A1F11;
  border: 1px solid #F0B4AE;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.45;
}

@media (prefers-color-scheme: dark) {
  .banner-error {
    background: #3A1412;
    color: #F5B8B0;
    border-color: #8A2D27;
  }
}

.banner-error strong { font-weight: 600; }

@media (max-width: 640px) {
  .site-header .brand-sub { display: none; }
  .site-header nav { gap: 16px; }
  .content { padding: 24px 20px 48px; }
  h1 { font-size: 26px; }
}

/* ─── 404 page ───────────────────────────────────── */
.not-found {
    text-align: center;
    padding: 60px 24px 80px;
    max-width: 560px;
    margin: 0 auto;
}
.not-found-code {
    font-size: 6em;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.not-found h1 {
    font-size: 1.6em;
    margin: 0 0 12px;
    color: #e2e8f0;
}
.not-found .lead {
    color: #94a3b8;
    font-size: 1.05em;
    line-height: 1.6;
}
.not-found-home {
    display: inline-block;
    padding: 10px 22px;
    background: #3b82f6;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 12px;
}
.not-found-home:hover { background: #2563eb; }

/* Also copy the same to /srv/www/support.dixl.com/assets/style.css? No —
   that legacy dir is no longer served as root. */

/* ─── Search bar ──────────────────────────────────────────
   Sits below the (already sticky) site header.  Sticky itself with a
   z-index just below the header so scrolling still keeps both pinned. */
.search-bar-wrap {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    position: sticky;
    top: 64px;            /* ≈ height of .site-header */
    z-index: 9;
}

.search-bar-wrap .inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

#cms-search {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 16px 11px 42px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237B7B7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
    background-repeat: no-repeat;
    background-position: 14px center;
    -webkit-appearance: none;
    appearance: none;
}

#cms-search::placeholder { color: var(--text-muted); opacity: 1; }

#cms-search::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A9A9A' stroke-width='2.4' stroke-linecap='round'><path d='M6 6l12 12M18 6L6 18'/></svg>");
    cursor: pointer;
}

#cms-search:focus {
    outline: none;
    border-color: var(--htcnet-primary);
    background-color: var(--bg);
    box-shadow: 0 0 0 3px rgba(44, 107, 237, 0.15);
}

#cms-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    z-index: 11;
}

@media (prefers-color-scheme: dark) {
    #cms-search-results {
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    }
}

#cms-search-results[hidden] { display: none; }

.cms-search-result {
    border-radius: 8px;
    margin: 0;
}

.cms-search-result a {
    display: block;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    outline: none;
}

.cms-search-result:hover a,
.cms-search-result.active a {
    background: var(--bg-alt);
    text-decoration: none;
}

.cms-search-result h4 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--htcnet-primary);
}

.cms-search-result p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cms-search-result mark {
    background: rgba(44, 107, 237, 0.18);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

@media (prefers-color-scheme: dark) {
    .cms-search-result mark {
        background: rgba(97, 145, 243, 0.28);
    }
}

.cms-search-empty {
    padding: 16px;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .search-bar-wrap { padding: 10px 14px; top: 56px; }
    #cms-search { font-size: 16px; }   /* prevent iOS auto-zoom on focus */
    #cms-search-results { max-height: 60vh; }
}

