/*
 * smseagle-hc.css - SMSEagle Help Center design layer (RD-1270)
 *
 * Visual language and tokens taken from docs.smseagle.eu (smseagle-docs 7.00),
 * same source as feedback-board.css (.fb). Loaded from document_head.hbs AFTER
 * Copenhagen's style.css, so equal-specificity rules win here.
 *
 * Rules of the road:
 *  - New markup uses the se- prefix. Castor markup that we still render
 *    (Zendesk helpers, request/profile pages) is restyled in the "Copenhagen bridge" part.
 *  - Keep Copenhagen's style.css as shipped (easier upgrades). Override here.
 *  - Colours: text on brand fills uses --se-brand-700 or darker (white on #399aeb is 3.0:1).
 */

:root {
  --se-primary-50: #f0f9ff;
  --se-primary-100: #b3e5fc;
  --se-primary-500: #399aeb;
  --se-primary-600: #2080d0;
  --se-primary-700: #1a66a8;
  --se-primary-800: #144d7f;
  --se-secondary-600: #4e4ed7;
  --se-neutral-50: #f7f9fc;
  --se-neutral-100: #eff4fa;
  --se-neutral-200: #dde7f1;
  --se-neutral-300: #c3d2e4;
  --se-neutral-400: #819cb8;
  --se-neutral-500: #4f6d8a;
  --se-neutral-600: #314c66;
  --se-neutral-800: #041f34;
  --se-success-50: #d9ffee;
  --se-success-700: #005c42;
  --se-danger-600: #aa2200;
  --se-bg: #f5f8fa;

  --se-text: var(--se-neutral-600);
  --se-text-subtle: var(--se-neutral-500);
  --se-heading: var(--se-neutral-800);
  --se-link: var(--se-primary-700);
  --se-link-hover: var(--se-primary-800);
  --se-border: var(--se-neutral-200);
  --se-border-strong: var(--se-neutral-300);

  --se-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --se-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --se-radius-card: 16px;
  --se-radius: 8px;
  --se-radius-sm: 6px;
  --se-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --se-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  /* Hero = docs.smseagle.eu (#399aeb -> #6f6fe2). White body text on #399aeb is 3.0:1: passes WCAG AA
     only for large text (titles), not for the 16-17px lead. Darker AA variant, if ever needed:
     linear-gradient(to bottom right, #1a66a8 0%, #1f74c0 50%, #4e4ed7 100%). */
  --se-hero: linear-gradient(to bottom right, #399aeb 0%, #399aeb 50%, #6f6fe2 100%);
  --se-width: 1572px;   /* = docs.smseagle.eu frame (1524px content) + 2 x 24px padding; header, footer and pages share it */
  --se-width-wide: 1572px;
  --se-focus: 0 0 0 3px rgba(32, 128, 208, .45);
}

/* =====================================================================
 * Base
 * ===================================================================== */
html { -webkit-text-size-adjust: 100%; }
body,
body.helpcenter-enable {
  font-family: var(--se-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--se-text);
  background: var(--se-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: var(--se-font);
  color: var(--se-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}
body a,
body a:hover,
body a:focus { color: var(--se-link); transition: color .15s ease, background-color .15s ease, box-shadow .15s ease; }
body a:hover { color: var(--se-link-hover); text-decoration: underline; }
body a:focus { outline: 0; }
body a:focus-visible,
body button:focus-visible,
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible,
body [role="button"]:focus-visible { outline: 0; box-shadow: var(--se-focus); border-radius: var(--se-radius-sm); }
::-webkit-scrollbar-thumb { background: var(--se-neutral-300); }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: var(--se-primary-100); color: var(--se-heading); }

.se-container { max-width: var(--se-width); margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.se-container--wide { max-width: var(--se-width-wide); }
.se-page { padding-top: 24px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.se-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.se-skip { position: absolute; left: 12px; top: -200px; z-index: 1000; background: #fff; color: var(--se-heading); padding: 10px 14px; border-radius: var(--se-radius); box-shadow: var(--se-shadow-lg); }
.se-skip:focus { top: 12px; }

.se-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--se-text-subtle); margin: 0; }
.se-muted { color: var(--se-text-subtle); }
.se-h1 { margin: 0; font-size: 32px; line-height: 1.2; text-wrap: balance; font-weight: 700; letter-spacing: -0.02em; color: var(--se-heading); }
.se-lead { margin: 0; font-size: 16px; color: var(--se-text-subtle); }

/* Buttons */
.se-btn,
body .se-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; box-sizing: border-box;
  border: 0; border-radius: var(--se-radius);
  background: var(--se-primary-700); color: #fff;
  font: 600 15px/1.2 var(--se-font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.se-btn:hover, .se-btn:focus { background: var(--se-primary-800); color: #fff; text-decoration: none; }
.se-btn--ghost, body .se-btn--ghost { background: #fff; color: var(--se-link); box-shadow: inset 0 0 0 1px var(--se-border-strong); }
.se-btn--ghost:hover, .se-btn--ghost:focus { background: var(--se-primary-50); color: var(--se-link-hover); }
.se-btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.se-btn::after, .se-btn::before { content: none !important; }

/* Cards and rows */
.se-card { background: #fff; border-radius: var(--se-radius-card); box-shadow: var(--se-shadow); }
a.se-card { display: block; color: var(--se-text); }
a.se-card:hover { box-shadow: var(--se-shadow-lg); text-decoration: none; color: var(--se-text); }
.se-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: var(--se-radius);
  color: var(--se-text); font-size: 15px; line-height: 1.4;
}
body a.se-row { color: var(--se-text); }
body a.se-row:hover { background: var(--se-primary-50); color: var(--se-link-hover); text-decoration: none; }
.se-row__chev { color: var(--se-neutral-400); flex: none; }
.se-count { flex: none; font-size: 13px; line-height: 1.5; color: var(--se-text-subtle); background: var(--se-neutral-100); border-radius: 999px; padding: 1px 9px; }
.se-rows { list-style: none; margin: 0 -14px; padding: 0; display: flex; flex-direction: column; }
.se-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--se-primary-50); color: var(--se-primary-700); }
.se-icon svg { width: 22px; height: 22px; }
.se-icon--sm { width: 40px; height: 40px; }
.se-icon--sm svg { width: 20px; height: 20px; }

/* =====================================================================
 * Header
 * ===================================================================== */
.se-header { position: relative; z-index: 20; background: #fff; box-shadow: inset 0 -1px 0 var(--se-border); }
.se-header__inner { display: flex; align-items: center; gap: 16px 24px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.se-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.se-brand:hover { text-decoration: none; }
.se-brand img { display: block; height: 28px; width: auto; max-width: 180px; }
.se-brand__product { font-size: 15px; font-weight: 600; color: var(--se-text-subtle); padding-left: 12px; box-shadow: inset 1px 0 0 var(--se-border); }
.se-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; margin: 0; padding: 0; list-style: none; }
.se-nav a,
body .se-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: var(--se-radius-sm); color: var(--se-text); font-size: 15px; font-weight: 500; }
body .se-nav a:hover { background: var(--se-neutral-100); color: var(--se-heading); text-decoration: none; }
body .se-nav a[aria-current="page"] { background: var(--se-primary-50); color: var(--se-link-hover); }
.se-header__search { flex: 0 1 220px; min-width: 160px; }
.se-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.se-header__actions .se-btn { flex: none; }
.se-menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--se-radius); background: transparent; color: var(--se-heading); cursor: pointer; }
.se-menu-toggle:hover { background: var(--se-neutral-100); }
/* On the home page script.js moves the header search form into the hero slot and hides
   the header wrapper, so there is only one #query on the page. Without JS the header
   search stays and the empty hero slot collapses. */
.se-header__search[hidden] { display: none; }
.se-hero__search:empty { display: none; }

/* Copenhagen sign-in link and user dropdown (header.hbs: .se-user.dropdown). */
body .se-header a.sign-in { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--se-text); font-weight: 500; font-size: 15px; }
body .se-header a.sign-in:hover { color: var(--se-heading); text-decoration: none; background: var(--se-neutral-100); border-radius: var(--se-radius-sm); }
.se-user { position: relative; display: inline-flex; min-width: 0; }
.se-user > .dropdown-toggle { display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--se-radius-sm); background: transparent; color: var(--se-text); font: 500 15px/1.2 var(--se-font); cursor: pointer; }
.se-user > .dropdown-toggle:hover, .se-user > .dropdown-toggle[aria-expanded="true"] { background: var(--se-neutral-100); color: var(--se-heading); }
.se-user > .dropdown-toggle::after { display: none; }
.se-user .user-avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.se-user__name { min-width: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-user .dropdown-chevron-icon { flex: none; }
.se-user .dropdown-menu { right: 0; left: auto; min-width: 220px; margin-top: 6px; padding: 6px; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--se-shadow-lg), 0 0 0 1px var(--se-border); }
.se-user .dropdown-menu [role="menuitem"] { display: block; padding: 8px 12px; border-radius: var(--se-radius-sm); color: var(--se-text); font-size: 14px; }
.se-user .dropdown-menu [role="menuitem"]:hover, .se-user .dropdown-menu [role="menuitem"]:focus { background: var(--se-neutral-100); color: var(--se-heading); text-decoration: none; }
.se-user .dropdown-menu .separator { height: 1px; margin: 6px 0; background: var(--se-border); }
/* "Ask AI" link (rendered by {{link 'chat'}} only when an AI agent is set up) */
body .se-header a.ask-ai { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--se-radius); color: var(--se-link); box-shadow: inset 0 0 0 1px var(--se-border-strong); font-weight: 600; font-size: 14px; }
body .se-header a.ask-ai:hover { background: var(--se-primary-50); text-decoration: none; }


/* =====================================================================
 * Search box ({{search}} helper renders form.search > input#query + input[type=submit])
 * ===================================================================== */
.se-search form.search { position: relative; display: flex; align-items: center; margin: 0; }
.se-search form.search input[type="search"] {
  width: 100%; min-height: 40px; box-sizing: border-box; margin: 0;
  padding: 0 12px 0 38px; border: 0; border-radius: var(--se-radius);
  background: var(--se-neutral-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234f6d8a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
  font: 400 15px/1.4 var(--se-font); color: var(--se-heading); box-shadow: none; -webkit-appearance: none; appearance: none;
}
.se-search form.search input[type="search"]::placeholder { color: var(--se-text-subtle); opacity: 1; }
.se-search form.search input[type="search"]:focus { background-color: #fff; box-shadow: inset 0 0 0 2px var(--se-primary-600); outline: 0; }
.se-search form.search input[type="submit"] { display: none; }

/* Copenhagen's .search draws a rounded border on the form itself and adds a clear button. */
body .se-search form.search { border: 0; border-radius: var(--se-radius); background: transparent; }
body .se-search--hero form.search { background: #fff; border-radius: 12px; }
body .se-search form.search .clear-button { display: none; align-items: center; justify-content: center; flex: none; min-width: 36px; padding: 0 10px; border: 0; border-radius: var(--se-radius); background: transparent; color: var(--se-text-subtle); cursor: pointer; }
body .se-search form.search.search-has-value .clear-button { display: flex; }
body .se-search form.search .clear-button:hover { background: var(--se-neutral-100); color: var(--se-heading); }
body .se-search form.search button[type="submit"] { display: none; }

/* Hero variant: large white field with a visible submit button. */
.se-search--hero form.search { background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 10px 15px -3px rgba(4, 31, 52, .25); gap: 8px; }
.se-search--hero form.search input[type="search"] { min-height: 48px; font-size: 16px; background-color: transparent; background-position: 14px center; padding-left: 42px; }
.se-search--hero form.search input[type="search"]:focus { box-shadow: none; }
.se-search--hero form.search:focus-within { box-shadow: 0 10px 15px -3px rgba(4, 31, 52, .25), var(--se-focus); }
.se-search--hero form.search input[type="submit"] {
  display: inline-flex; flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--se-radius);
  background: var(--se-primary-700); color: #fff; font: 600 15px/1 var(--se-font); cursor: pointer; -webkit-appearance: none; appearance: none;
}
.se-search--hero form.search input[type="submit"]:hover { background: var(--se-primary-800); }

/* =====================================================================
 * Breadcrumbs ({{breadcrumbs}} renders ol.breadcrumbs)
 * ===================================================================== */
.se-crumbs ol.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 14px; background: transparent; }
.se-crumbs ol.breadcrumbs li { color: var(--se-text-subtle); }
.se-crumbs ol.breadcrumbs li + li::before { content: "/"; padding: 0 8px; color: var(--se-neutral-400); font-family: var(--se-font); }
.se-crumbs ol.breadcrumbs li a { color: var(--se-text-subtle); }
.se-crumbs ol.breadcrumbs li a:hover { color: var(--se-link-hover); }
.se-crumbs ol.breadcrumbs li:first-child a::before { content: none; }
.se-crumbs ol.breadcrumbs li:last-child,
.se-crumbs ol.breadcrumbs li:last-child a { color: var(--se-heading); }

/* =====================================================================
 * Home
 * ===================================================================== */
.se-home { display: flex; flex-direction: column; gap: 40px; }
.se-hero { position: relative; overflow: hidden; border-radius: var(--se-radius-card); padding: 48px 40px; color: #fff; background: var(--se-hero); }
.se-hero__body { position: relative; z-index: 1; max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.se-hero__eyebrow { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: rgba(255, 255, 255, .15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); padding: 4px 12px; border-radius: 999px; }
.se-hero h1, .se-hero h2.se-hero__title { margin: 0; color: #fff; font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.se-hero p { margin: 0; font-size: 17px; line-height: 1.55; color: #fff; text-shadow: 0 1px 2px rgba(4, 31, 52, .18); }
.se-hero__search { margin-top: 8px; }
.se-hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.se-hero__popular-label { font-size: 14px; color: rgba(255, 255, 255, .92); margin-right: 4px; }
body a.se-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
body a.se-chip:hover, body a.se-chip:focus { background: rgba(255, 255, 255, .28); color: #fff; text-decoration: none; }

.se-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.se-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.se-grid > * { min-width: 0; }
.se-grid--fill { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }  /* auto-fit: 3 public cards fill the wider row */

.se-cat { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.se-cat__head { display: flex; gap: 14px; align-items: flex-start; }
.se-cat__title { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 600; }
body .se-cat__title a { color: var(--se-heading); }
.se-cat__desc { margin: 4px 0 0; font-size: 14px; color: var(--se-text-subtle); }
.se-cat__more { margin-top: auto; font-size: 14px; font-weight: 600; }

/* Category icons: keyed by category id, default = book. Masks keep the icon in currentColor. */
.se-cat-icon::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--se-cat-icon) center / contain no-repeat; mask: var(--se-cat-icon) center / contain no-repeat; }
.se-cat-icon { --se-cat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3Cpath d='M9 7h7M9 11h5'/%3E%3C/svg%3E"); }
.se-cat-icon[data-category-id="360001371553"] { --se-cat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.3-2 5-2 5s3.7-.5 5-2c.7-.8.7-2.1-.1-2.9a2.2 2.2 0 0 0-2.9-.1z'/%3E%3Cpath d='m12 15-3-3a22 22 0 0 1 2-3.9A12.9 12.9 0 0 1 22 2c0 2.7-.8 7.5-6 11a22.4 22.4 0 0 1-4 2z'/%3E%3Cpath d='M9 12H4s.6-3 2-4c1.6-1.1 5 0 5 0'/%3E%3Cpath d='M12 15v5s3-.6 4-2c1.1-1.6 0-5 0-5'/%3E%3C/svg%3E"); }
.se-cat-icon[data-category-id="360001371613"] { --se-cat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.8-3.8a6 6 0 0 1-7.9 7.9l-6.9 6.9a2.1 2.1 0 0 1-3-3l6.9-6.9a6 6 0 0 1 7.9-7.9z'/%3E%3C/svg%3E"); }
.se-cat-icon[data-category-id="360001365534"] { --se-cat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }

.se-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.se-split__main { flex: 999 1 560px; min-width: 0; }
.se-split__side { flex: 1 1 320px; min-width: 0; }
.se-panel { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.se-panel__title { margin: 0; font-size: 18px; font-weight: 600; }
.se-panel__divider { height: 1px; background: var(--se-border); margin: 4px 0; }
.se-popular { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 24px; margin: 0 -14px; padding: 0; list-style: none; }
.se-popular-internal[hidden] { display: none; }
.se-popular-internal { display: flex; flex-direction: column; gap: 8px; }
.se-panel__subtitle { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--se-heading); }
.se-badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--se-neutral-100); color: var(--se-text-subtle); }
.se-popular > li { min-width: 0; }

/* {{recent_articles}} on home: card only when the helper rendered something */
.se-recent:empty { display: none; }
.se-recent:has(.recent-articles) { background: #fff; border-radius: var(--se-radius-card); box-shadow: var(--se-shadow); padding: 24px; }
.se-recent .recent-articles { margin: 0; }
.se-recent .recent-articles-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--se-heading); }
.se-recent .recent-articles ul { margin: 0 -14px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 24px; }
.se-recent .recent-articles li { min-width: 0; }
.se-recent .recent-articles li::before { content: none; }
.se-recent .recent-articles li a { display: block; padding: 11px 14px; border-radius: var(--se-radius); color: var(--se-text); font-size: 15px; }
.se-recent .recent-articles li a:hover { background: var(--se-primary-50); color: var(--se-link-hover); text-decoration: none; }

/* Ideas strip */
.se-ideas { padding: 28px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.se-ideas__intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.se-ideas__intro .se-eyebrow { color: var(--se-secondary-600); }
.se-ideas__title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.se-ideas__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.se-ideas__list { flex: 999 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.se-ideas__list[hidden] { display: none; }
.se-idea { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 10px; background: var(--se-neutral-50); }
.se-idea__votes { flex: none; width: 52px; text-align: center; font-weight: 700; font-size: 18px; line-height: 1.1; color: var(--se-heading); }
.se-idea__votes small { display: block; font-size: 11px; font-weight: 500; color: var(--se-text-subtle); }
body a.se-idea__title { flex: 1 1 auto; min-width: 0; color: var(--se-heading); font-weight: 500; }
.se-status { flex: none; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--se-primary-50); color: var(--se-primary-700); }
.se-status--planned { background: #eaeafb; color: #3030c2; }
.se-status--completed { background: var(--se-success-50); color: var(--se-success-700); }

/* Contact cards */
.se-contact { padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; }
.se-contact strong { display: block; color: var(--se-heading); font-size: 16px; font-weight: 600; }
.se-contact span.se-muted { display: block; font-size: 14px; margin-top: 4px; }

/* =====================================================================
 * Two/three column layouts with the knowledge base side nav
 * ===================================================================== */
.se-layout { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-start; }
.se-layout__nav { flex: 1 1 240px; max-width: 280px; min-width: 0; }
.se-layout__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.se-layout__aside { flex: 1 1 240px; max-width: 280px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.se-layout--article { gap: 32px; }

.se-side { display: flex; flex-direction: column; }
.se-side__cat { display: block; padding: 14px 12px 6px; }
.se-side__cat:first-child { padding-top: 0; }
body .se-side a { display: block; padding: 7px 12px; border-radius: var(--se-radius-sm); color: var(--se-text); font-size: 14px; line-height: 1.4; }
body .se-side a:hover { background: var(--se-neutral-100); color: var(--se-heading); text-decoration: none; }
body .se-side a[aria-current="page"],
body .se-side a.is-current { background: var(--se-primary-50); color: var(--se-link-hover); font-weight: 600; box-shadow: inset 2px 0 0 var(--se-primary-600); }
body .se-side .se-side__cat a { padding: 0; font: inherit; color: inherit; background: none; box-shadow: none; }
body .se-side .se-side__cat a:hover { color: var(--se-heading); background: none; text-decoration: underline; }
body .se-side a.is-restricted { display: flex; align-items: center; gap: 8px; }
.se-side__lock { flex: none; width: 13px; height: 13px; color: var(--se-neutral-400); }
.se-side__cat.is-internal a::after { content: "Internal"; margin-left: 8px; padding: 1px 6px; border-radius: 999px; background: var(--se-neutral-100); color: var(--se-text-subtle); font-size: 10px; letter-spacing: .06em; vertical-align: 1px; }
.se-side__loading { padding: 8px 12px; font-size: 14px; color: var(--se-text-subtle); }

/* Page heads */
.se-pagehead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.se-pagehead__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.se-pagehead p.se-lead:empty { display: none; }

/* Category: section cards */
.se-sections { display: flex; flex-wrap: wrap; gap: 24px; }
.se-sections > .se-card { flex: 1 1 320px; min-width: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.se-sections h2 { margin: 0; font-size: 18px; font-weight: 600; }
body .se-sections h2 a { color: var(--se-heading); }

/* Article list (section page, category cards) */
.se-artlist { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.se-artlist > li { box-shadow: inset 0 -1px 0 var(--se-neutral-100); }
.se-artlist > li:last-child { box-shadow: none; }
body .se-artlist a.se-art { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: var(--se-text); }
body .se-artlist a.se-art:hover { background: var(--se-neutral-50); color: var(--se-link-hover); text-decoration: none; }
.se-art__icon { flex: none; width: 18px; height: 18px; color: var(--se-neutral-400); }
.se-art__title { flex: 1 1 auto; min-width: 0; }
.se-art__badge { flex: none; font-size: 12px; font-weight: 600; color: var(--se-primary-700); background: var(--se-primary-50); padding: 2px 8px; border-radius: 999px; }
body .se-artlist--compact a.se-art { padding: 10px 0; }
body .se-artlist--compact > li { box-shadow: inset 0 -1px 0 var(--se-neutral-100); }
.se-empty { padding: 20px; color: var(--se-text-subtle); font-style: normal; }
.se-help-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 12px; background: var(--se-neutral-100); }

/* Zendesk {{subscribe}} (section/article follow) */
.se-follow a,
.se-follow .article-subscribe,
.se-follow .section-subscribe,
.se-follow .dropdown-toggle,
.se-follow button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; box-sizing: border-box;
  border: 0; border-radius: var(--se-radius); background: #fff; color: var(--se-link);
  box-shadow: inset 0 0 0 1px var(--se-border-strong); font: 600 14px/1.2 var(--se-font); cursor: pointer;
}
.se-follow a:hover, .se-follow button:hover { background: var(--se-primary-50); color: var(--se-link-hover); text-decoration: none; }
.se-follow a::after, .se-follow a::before { content: none; }
/* style.css (SMSEagle addition) positions the follow link absolutely in the old article box. */
body .se-follow a.article-subscribe, body .se-follow .article-unsubscribe { position: static; right: auto; top: auto; float: none; }
/* style.css: a.article-subscribe { color: #fff !important; background: #757575 } */
body .se-follow a.article-subscribe, body .se-follow a.article-unsubscribe { color: var(--se-link) !important; background: #fff; }
body .se-follow a.article-subscribe:hover, body .se-follow a.article-unsubscribe:hover { color: var(--se-link-hover) !important; background: var(--se-primary-50); }
body .se-follow a.article-unsubscribe { color: #fff !important; background: var(--se-primary-700); box-shadow: none; }
.se-follow [aria-selected="true"] { background: var(--se-primary-50); color: var(--se-link-hover); }

/* =====================================================================
 * Article
 * ===================================================================== */
.se-article { padding: 40px 48px; box-sizing: border-box; }
.se-article__head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; box-shadow: inset 0 -1px 0 var(--se-neutral-100); }
.se-article__title { margin: 0; font-size: 28px; line-height: 1.25; text-wrap: pretty; font-weight: 700; letter-spacing: -0.02em; }
.se-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; color: var(--se-text-subtle); }
.se-article__meta .se-follow { margin-left: auto; }
.se-article__author { display: inline-flex; align-items: center; gap: 8px; }
.se-article__author img { width: 24px; height: 24px; border-radius: 50%; }

.se-prose { padding-top: 24px; font-size: 16px; line-height: 1.7; color: var(--se-text); overflow-wrap: anywhere; }
.se-prose > :first-child { margin-top: 0; }
.se-prose h1, .se-prose h2 { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 36px 0 12px; scroll-margin-top: 24px; }
.se-prose h3 { font-size: 18px; line-height: 1.35; font-weight: 600; margin: 28px 0 8px; scroll-margin-top: 24px; }
.se-prose h4 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.se-prose p { margin: 0 0 14px; }
.se-prose ul, .se-prose ol { margin: 0 0 14px; padding-left: 22px; }
.se-prose ul { list-style: disc; }
.se-prose ol { list-style: decimal; }
.se-prose ul ul { list-style: circle; }
.se-prose li::before { content: none; }
.se-prose li { margin: 4px 0; }
.se-prose li > p { margin: 0; }
.se-prose img { max-width: 100%; height: auto; border-radius: var(--se-radius); box-shadow: 0 0 0 1px var(--se-border); }
.se-prose a { text-decoration: underline; text-decoration-color: var(--se-primary-100); text-underline-offset: 2px; }
.se-prose a:hover { text-decoration-color: currentColor; }
.se-prose blockquote { margin: 0 0 14px; padding: 14px 16px; border: 0; border-radius: var(--se-radius); background: var(--se-primary-50); color: var(--se-primary-800); font-size: 15px; }
.se-prose blockquote p:last-child { margin: 0; }
.se-prose code { font-family: var(--se-mono); font-size: .9em; background: var(--se-neutral-100); color: var(--se-heading); border-radius: 4px; padding: 1px 5px; }
.se-pre-wrap { position: relative; margin: 0 0 10px; }
.se-pre-wrap > pre { margin: 0 !important; }
.se-prose pre {
  position: relative; margin: 0 0 10px; padding: 12px 56px 12px 16px; border: 0; border-radius: var(--se-radius);
  background: var(--se-neutral-800); color: var(--se-neutral-200);
  font-family: var(--se-mono); font-size: 13.5px; line-height: 1.55; white-space: pre; overflow-x: auto; word-break: normal; overflow-wrap: normal;
}
.se-prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; border-radius: 0; }
.se-copy {
  position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 32px; padding: 0 8px; border: 0; border-radius: var(--se-radius-sm);
  background: #173550; color: var(--se-neutral-300); font: 500 12px/1 var(--se-font); cursor: pointer;
  box-shadow: -8px 0 8px -2px var(--se-neutral-800); /* solid, so code scrolling underneath does not show through */
}
.se-copy:hover { background: #24476a; color: #fff; }
.se-copy.is-copied { color: #fff; background: rgba(0, 185, 137, .35); }
.se-prose .table-responsive { margin: 0 0 14px; border-radius: var(--se-radius); box-shadow: 0 0 0 1px var(--se-border); overflow-x: auto; }
.se-prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.se-prose th, .se-prose td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--se-border); text-align: left; vertical-align: top; font-weight: 400; }
.se-prose th, .se-prose thead td { background: var(--se-neutral-50); color: var(--se-heading); font-weight: 600; }
.se-prose tr:last-child td { border-bottom: 0; }
/* Zendesk WYSIWYG helper classes keep working */
.se-prose .wysiwyg-text-align-center { text-align: center; }
.se-prose .wysiwyg-text-align-right { text-align: right; }
.se-prose .wysiwyg-text-align-justify { text-align: left; }
.se-prose .wysiwyg-font-size-large { font-size: 1.15em; }
.se-prose .wysiwyg-font-size-small { font-size: .9em; }

.se-attachments { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.se-attachments:empty { display: none; }
.se-attachments li { font-size: 14px; }
.se-attachments li span { color: var(--se-text-subtle); margin-left: 6px; }

/* Vote: helpers render empty anchors with a title (Yes/No) */
.se-feedback { margin-top: 32px; padding: 24px; border-radius: 12px; background: var(--se-neutral-50); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.se-feedback .article-vote { display: contents; }
.se-feedback .article-vote-question { font-size: 16px; font-weight: 600; color: var(--se-heading); margin-right: auto; }
.se-feedback .article-vote-controls { display: flex; gap: 8px; }
.se-feedback .article-vote-controls a,
.se-feedback .article-vote-controls button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; box-sizing: border-box;
  border-radius: var(--se-radius); background: #fff; color: var(--se-text); box-shadow: inset 0 0 0 1px var(--se-border-strong);
  font: 500 15px/1 var(--se-font); text-decoration: none;
}
.se-feedback .article-vote-controls a::before,
.se-feedback .article-vote-controls button::before {
  content: ""; width: 16px; height: 16px; background: currentColor; font-family: inherit;
  -webkit-mask: var(--se-vote-icon) center / contain no-repeat; mask: var(--se-vote-icon) center / contain no-repeat;
}
.se-feedback .article-vote-controls a:empty::after, .se-feedback .article-vote-controls button:empty::after { content: attr(title); }
.se-feedback .article-vote-up { --se-vote-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v12M15 5.9 14 10h5.8a2 2 0 0 1 1.9 2.6l-2.3 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.8a2 2 0 0 0 1.8-1.1L12 2a3.1 3.1 0 0 1 3 3.9z'/%3E%3C/svg%3E"); }
.se-feedback .article-vote-down { --se-vote-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 14V2M9 18.1 10 14H4.2a2 2 0 0 1-1.9-2.6l2.3-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.8a2 2 0 0 0-1.8 1.1L12 22a3.1 3.1 0 0 1-3-3.9z'/%3E%3C/svg%3E"); }
.se-feedback .article-vote-controls a:hover, .se-feedback .article-vote-controls button:hover { background: var(--se-primary-50); color: var(--se-link-hover); }
.se-feedback .article-vote-controls .button-primary,
.se-feedback .article-vote-controls a.article-voted,
.se-feedback .article-vote-controls a[aria-selected="true"] { background: var(--se-primary-700); color: #fff; box-shadow: none; }
.se-feedback .article-vote-count { flex-basis: 100%; font-size: 13px; color: var(--se-text-subtle); }
.se-feedback__more { flex-basis: 100%; font-size: 14px; color: var(--se-text-subtle); }
.se-feedback .share { margin: 0; }

/* Right column: TOC + related/recent helpers */
.se-toc { display: flex; flex-direction: column; }
.se-toc[hidden] { display: none; }
.se-toc .se-eyebrow { margin-bottom: 10px; }
body .se-toc a { display: block; font-size: 14px; line-height: 1.4; color: var(--se-text-subtle); padding: 5px 0 5px 12px; box-shadow: inset 1px 0 0 var(--se-border); }
body .se-toc a:hover { color: var(--se-link-hover); text-decoration: none; }
body .se-toc a.is-sub { padding-left: 24px; font-size: 13.5px; }
body .se-toc a.is-current { color: var(--se-link-hover); font-weight: 600; box-shadow: inset 2px 0 0 var(--se-primary-600); }
.se-aside-block .related-articles,
.se-aside-block .recent-articles { margin: 0; }
.se-aside-block .related-articles-title,
.se-aside-block .recent-articles-title { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--se-text-subtle); }
.se-aside-block ul { margin: 0 -12px; padding: 0; list-style: none; }
.se-aside-block li { padding: 0; }
.se-aside-block li::before { content: none !important; }
.se-aside-block li a { display: block; padding: 8px 12px; border-radius: var(--se-radius); color: var(--se-text); font-size: 14px; line-height: 1.4; }
.se-aside-block li a:hover { background: var(--se-primary-50); color: var(--se-link-hover); text-decoration: none; }

/* Article comments (setting off today, kept styled) */
.se-comments { margin-top: 32px; }
.se-comments h2 { font-size: 20px; margin: 0 0 16px; }
.se-comments .comment-list { list-style: none; margin: 0; padding: 0; }
.se-comments .comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--se-neutral-100); }
.se-comments .comment-avatar img, .se-comments .user-avatar { width: 36px; height: 36px; border-radius: 50%; }
.se-comments .comment-container { flex: 1; min-width: 0; }
.se-comments .comment-published, .se-comments .comment-edited { font-size: 13px; color: var(--se-text-subtle); margin-left: 8px; }
.se-comments .comment-form { display: flex; gap: 12px; margin-top: 16px; }

/* =====================================================================
 * Search results
 * ===================================================================== */
.se-results { list-style: none; margin: 0; padding: 0; }
.se-results > li { padding: 18px 22px; box-shadow: inset 0 -1px 0 var(--se-neutral-100); }
.se-results > li:last-child { box-shadow: none; }
.se-results__title { font-size: 17px; font-weight: 600; }
.se-results__text { margin-top: 4px; font-size: 14.5px; color: var(--se-text); }
.se-results__text em { font-style: normal; background: #fff2c2; color: var(--se-heading); border-radius: 3px; padding: 0 2px; }
.se-results__meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--se-text-subtle); }
.se-results__meta a { color: var(--se-text-subtle); }

/* =====================================================================
 * Pagination ({{pagination}} renders nav.pagination > ul > li)
 * ===================================================================== */
body .pagination { display: flex; justify-content: center; margin: 24px 0 0; }
body .pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
body .pagination li a, body .pagination li span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px; box-sizing: border-box;
  border: 0; border-radius: var(--se-radius); background: #fff; color: var(--se-text); box-shadow: inset 0 0 0 1px var(--se-border);
}
body .pagination li.pagination-current span, body .pagination li.active span { background: var(--se-primary-700); color: #fff; box-shadow: none; }

/* =====================================================================
 * New request: Copenhagen renders the form with a React bundle (Zendesk Garden).
 * Colours/fonts come from the theme settings; we only provide the card around it.
 * Do not restyle Garden internals here: they change between Copenhagen releases.
 * ===================================================================== */
.se-form-card { padding: 32px; box-sizing: border-box; }
.se-follow-up { display: block; font-size: 14px; font-weight: 400; color: var(--se-text-subtle); margin-top: 6px; }
.se-tips ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; list-style: disc; }
.se-tips p { margin: 0; font-size: 14px; line-height: 1.6; }

/* =====================================================================
 * Copenhagen bridge: pages kept as Copenhagen markup (requests, request, profile,
 * contributions, subscriptions, service catalog, approvals). Align width, type, buttons.
 * ===================================================================== */
body .container { max-width: var(--se-width); width: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
body .container-divider { border-top: 1px solid var(--se-border); margin-bottom: 0; }
body .sub-nav { padding-top: 24px; }
body .button, body .button-large, body a.button { border-radius: var(--se-radius); font-family: var(--se-font); font-weight: 600; }
body .striped-list-item, body .my-activities-table, body .profile-section { font-family: var(--se-font); }
/* Copenhagen paints the Contributions/Following tab bar darken(#fff,5%), a grey band on our grey page. */
body .my-activities-nav { background-color: transparent; border-bottom: 1px solid var(--se-border); }
body .page-header h1, body .profile-header h1, body .request-title { font-weight: 700; letter-spacing: -0.02em; color: var(--se-heading); }
/* Community (.fb) pages bring their own container and hero. */
body:has(.fb) .breadcrumbs { padding-top: 24px; }


/* Error page */
.se-error { max-width: 640px; margin: 48px auto 0; padding: 48px 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.se-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
body .se-error a.se-btn { margin: 0; }

/* Community (.fb) heroes: same gradient as the home hero, white text >= 4.5:1
   (feedback-board.css uses #399aeb, 3.0:1 against white). */
body .fb .fb-hero { background: var(--se-hero); }

/* Category page: cards size to their own content */
.se-sections > .se-card { align-self: flex-start; }

/* Copenhagen (v4) specifics */
.se-nav li:empty { display: none; }                                   /* {{link 'service_catalog'}} renders nothing when disabled */
.se-hero .se-hero__title { margin: 0; color: #fff; font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.se-lock { flex: none; width: 14px; height: 14px; color: var(--se-neutral-400); vertical-align: -1px; margin-left: 6px; }
.se-article__title .se-lock { width: 18px; height: 18px; }
.se-panel__subtitle .se-lock { margin-left: 0; }
/* Promoted articles are split in the template by the "internal" flag; hide an empty half. */
.se-popular:not(:has(li)) { display: none; }
.se-popular-internal:not(:has(li)) { display: none; }
body .se-search--hero form.search button[type="submit"] {
  display: inline-flex; align-items: center; flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--se-radius);
  background: var(--se-primary-700); color: #fff; font: 600 15px/1 var(--se-font); cursor: pointer;
}
body .se-search--hero form.search button[type="submit"]:hover { background: var(--se-primary-800); }
.se-article .content-tags { margin-top: 24px; font-size: 14px; }
.se-article .content-tag-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.se-article .content-tag-item a { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--se-neutral-100); color: var(--se-text); }
.se-article .article-comments { margin-top: 32px; }
.fb-crumbs { padding-top: 24px; }

/* Hero decoration, as on docs.smseagle.eu: dot grid, fading rings and the eagle mark. */
.se-hero__deco { position: absolute; inset: 0; pointer-events: none; }
/* Two blurred light blobs, as on docs (white/20 top, secondary/60 bottom-right). */
.se-hero__glow { position: absolute; border-radius: 50%; filter: blur(64px); }
.se-hero__glow--light { top: -96px; right: 33.333%; width: 288px; height: 288px; background: rgba(255, 255, 255, .2); }
.se-hero__glow--violet { bottom: -128px; right: -40px; width: 320px; height: 320px; background: rgba(111, 111, 226, .6); }
.se-hero__dots { position: absolute; top: 0; bottom: 0; right: 0; width: 66%; background-image: radial-gradient(circle, rgba(255, 255, 255, .22) 1px, transparent 1.5px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(270deg, #000, transparent); mask-image: linear-gradient(270deg, #000, transparent); }
.se-hero__rings { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(270deg, #000 25%, transparent 80%); mask-image: linear-gradient(270deg, #000 25%, transparent 80%); }
.se-hero__rings svg { position: absolute; right: 8%; top: 50%; width: 1600px; height: 1600px; transform: translate(50%, -50%); }
.se-hero__mark { position: absolute; right: 8%; top: 50%; height: 288px; aspect-ratio: 30 / 27; transform: translate(50%, -50%); color: rgba(255, 255, 255, .1); }
.se-hero__mark svg { display: block; width: 100%; height: 100%; }
.se-footer__address { font-style: normal; line-height: 1.6; }
.se-footer__address strong { font-weight: 600; color: var(--se-heading); }

/* =====================================================================
 * Footer
 * ===================================================================== */
.se-footer { margin-top: auto; background: #fff; box-shadow: inset 0 1px 0 var(--se-border); font-size: 14px; }
.se-footer__top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; }
.se-footer__org { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; line-height: 1.6; }
.se-footer__org img { height: 24px; width: auto; align-self: flex-start; }
.se-footer__nav { flex: 1 1 360px; display: flex; flex-wrap: wrap; gap: 16px 48px; align-content: flex-start; }
.se-footer__col { display: flex; flex-direction: column; gap: 8px; }
.se-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body .se-footer__col a { color: var(--se-text); }
body .se-footer__col a:hover { color: var(--se-link-hover); }
.se-footer__bottom { padding-top: 16px; padding-bottom: 24px; color: var(--se-text-subtle); font-size: 13px; box-shadow: inset 0 1px 0 var(--se-neutral-100); }

/* Page chrome on the page background, as on docs.smseagle.eu: no white header/footer bands.
   Hover and current states move one step darker so they stay visible on #f5f8fa. */
.se-header { background: var(--se-bg); box-shadow: none; }
.se-footer { background: var(--se-bg); box-shadow: inset 0 1px 0 var(--se-border); }
.se-footer__bottom { box-shadow: inset 0 1px 0 var(--se-border); }
body .se-nav a:hover { background: var(--se-neutral-200); }
body .se-nav a[aria-current="page"] { background: rgba(57, 154, 235, .14); color: var(--se-link-hover); }
body .se-header a.login:hover, body .se-header a.sign-in:hover,
.se-header #user .dropdown-toggle:hover, .se-user > .dropdown-toggle:hover, .se-user > .dropdown-toggle[aria-expanded="true"],
.se-menu-toggle:hover { background: var(--se-neutral-200); }
/* Header search like the docs search button: neutral-200 field, darker placeholder for contrast. */
.se-header .se-search form.search input[type="search"] { background-color: var(--se-neutral-200); }
.se-header .se-search form.search input[type="search"]::placeholder { color: var(--se-neutral-600); }
.se-header .se-search form.search input[type="search"]:focus { background-color: #fff; }

/* =====================================================================
 * Responsive
 * ===================================================================== */
@media (max-width: 1100px) {
  .se-layout--article .se-layout__aside { flex-basis: 100%; max-width: none; flex-direction: row; flex-wrap: wrap; }
  .se-layout--article .se-layout__aside > * { flex: 1 1 260px; }
  .se-layout--article .se-toc { display: none; }
}
/* Header: one row from 1200px, burger menu below. A signed-in user (avatar + name) plus
   "Submit a request" needs ~1100px next to brand, nav and search. */
@media (max-width: 1199px) {
  .se-menu-toggle { display: inline-flex; margin-left: auto; }
  .se-header__inner { gap: 8px 12px; }
  .se-header__collapse { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 0 4px; }
  .se-header__collapse.is-open { display: flex; }
  .se-nav { flex-direction: column; align-items: stretch; }
  .se-nav a, body .se-nav a { min-height: 44px; }
  .se-header__search { flex-basis: auto; min-width: 0; }
  .se-header__actions { margin-left: 0; justify-content: space-between; }
}
@media (min-width: 1200px) {
  .se-header__collapse { display: contents; }
  .se-header__inner { flex-wrap: nowrap; }
  .se-nav { flex-wrap: nowrap; white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .se-header__search { min-width: 140px; }
  .se-user__name { max-width: 140px; }
}
@media (max-width: 860px) {
  .se-layout__nav { max-width: none; flex-basis: 100%; order: 2; }
  .se-layout__aside { max-width: none; flex-basis: 100%; }
}
@media (max-width: 640px) {
  body .se-form-card.form { padding: 20px; }
  .se-container { padding-left: 16px; padding-right: 16px; }
  .se-hero { padding: 32px 20px; }
  .se-hero h1, .se-hero .se-hero__title { font-size: 30px; }
  .se-hero__rings, .se-hero__mark { display: none; }
  .se-search--hero form.search input[type="submit"] { padding: 0 14px; }
  .se-article { padding: 24px 20px; }
  .se-article__title, .se-h1 { font-size: 26px; }
  .se-form-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .se-header, .se-footer, .se-layout__nav, .se-layout__aside, .se-feedback, .se-copy { display: none !important; }
  .se-article { box-shadow: none; padding: 0; }
  .se-prose pre { white-space: pre-wrap; background: #fff; color: #000; box-shadow: 0 0 0 1px #ccc; }
}

#knowledge-base { scroll-margin-top: 24px; }

/* Brand: logo -> smseagle.eu, "Support" -> help center home (two separate links). */
.se-brand { display: inline-flex; align-items: center; gap: 12px; }
.se-brand__logo { display: inline-flex; align-items: center; border-radius: var(--se-radius-sm); }
body a.se-brand__product { color: var(--se-text-subtle); font-size: 15px; font-weight: 600; padding: 4px 8px 4px 12px; box-shadow: inset 1px 0 0 var(--se-border); }
body a.se-brand__product:hover { color: var(--se-heading); text-decoration: none; }
/* "Support" is the only header link to the help center home besides the menu: never hide it.
   At 1200-1439px tighten spacing instead so the header stays on one line. */
@media (min-width: 1200px) and (max-width: 1439px) {
  .se-header__inner { column-gap: 16px; }
  .se-nav a, body .se-nav a { padding: 0 8px; }
}

/* Home category cards: same height for every category. Long categories (agents see
   Baza Wiedzy with 15+ sections) show the first 4 sections; script.js adds "(+N more)" to the
   Browse link; the description is clamped to 1 line (full text on the category page). */
.se-cat .se-rows > li:nth-child(n+5):not(.se-rows__more) { display: none; }
.se-cat__desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
/* All home category cards share one row height, also across grid rows. */
.se-grid--fill { grid-auto-rows: 1fr; }
/* Side nav: category names bold and dark, sections stay regular. */
.se-side .se-side__cat { color: var(--se-heading); font-weight: 700; }

/* =====================================================================
 * Copenhagen pages we did not rewrite (search results, requests, profile):
 * breadcrumbs and the sub-nav search match .se-crumbs and the header search.
 * ===================================================================== */
body .sub-nav ol.breadcrumbs { align-items: center; gap: 4px 0; font-size: 14px; }
body .sub-nav ol.breadcrumbs li { color: var(--se-text-subtle); font-size: 14px; }
body .sub-nav ol.breadcrumbs li + li::before { content: "/"; margin: 0; padding: 0 8px; color: var(--se-neutral-400); }
body .sub-nav ol.breadcrumbs li a, body .sub-nav ol.breadcrumbs li a:visited { color: var(--se-text-subtle); }
body .sub-nav ol.breadcrumbs li a:hover { color: var(--se-link-hover); }
body .sub-nav ol.breadcrumbs li:last-child, body .sub-nav ol.breadcrumbs li:last-child a { color: var(--se-heading); }
body .sub-nav .search { border: 1px solid transparent; border-radius: var(--se-radius); background: var(--se-neutral-200); }
body .sub-nav .search:focus-within { border-color: var(--se-link); background: #fff; }
body .sub-nav .search input[type="search"] { background: transparent; font-family: var(--se-font); color: var(--se-heading); }
/* Copenhagen paints the clear (x) button white with a pill radius: a white block inside our grey field. */
body .sub-nav .search .clear-button { background: transparent; border-radius: var(--se-radius); color: var(--se-text-subtle); padding: 0 12px; }
body .sub-nav .search .clear-button:hover { background: var(--se-neutral-300); color: var(--se-heading); }
body .sub-nav .search .clear-button:focus-visible { box-shadow: 0 0 0 2px var(--se-link); }
body .search-results-sidebar .sidenav-item { border-radius: var(--se-radius); color: var(--se-text); }
body .search-results-sidebar .sidenav-item:hover, body .search-results-sidebar .sidenav-item.current { background: var(--se-neutral-100); color: var(--se-heading); }
body .search-results-sidebar .sidenav-item.current { font-weight: 600; }

/* =====================================================================
 * Request page (Copenhagen template, restyled only): crumbs like .se-crumbs,
 * conversation and details as cards, reply box as an input.
 * ===================================================================== */
body .request-breadcrumbs { margin: 0 0 20px; padding-top: 24px; }
body .request-breadcrumbs ol.breadcrumbs { align-items: center; gap: 4px 0; }
body .request-breadcrumbs ol.breadcrumbs li { color: var(--se-text-subtle); font-size: 14px; }
body .request-breadcrumbs ol.breadcrumbs li + li::before { content: "/"; margin: 0; padding: 0 8px; color: var(--se-neutral-400); }
body .request-breadcrumbs ol.breadcrumbs li a, body .request-breadcrumbs ol.breadcrumbs li a:visited { color: var(--se-text-subtle); }
body .request-breadcrumbs ol.breadcrumbs li a:hover { color: var(--se-link-hover); }
body .request-breadcrumbs ol.breadcrumbs li:last-child, body .request-breadcrumbs ol.breadcrumbs li:last-child a { color: var(--se-heading); }
body .request-title { max-width: none; margin: 0 0 24px; padding-bottom: 0; border-bottom: 0; }
body .request-container { gap: 24px; margin-bottom: 48px; }
body .request-main { background: #fff; border-radius: var(--se-radius-card); box-shadow: var(--se-shadow); padding: 4px 32px 28px; box-sizing: border-box; }
body .request-main .comment { border-bottom-color: var(--se-border); }
body .request-main .comment-meta a { font-weight: 600; color: var(--se-heading); }
body .request-main .comment-meta .meta-data { color: var(--se-text-subtle); }
body .request-main .comment-show-container { background: #fff; border: 1px solid var(--se-neutral-300); border-radius: var(--se-radius); padding: 10px 14px; color: var(--se-text-subtle); font-family: var(--se-font); font-size: 15px; cursor: text; }
body .request-main .comment-show-container:hover { border-color: var(--se-link); }
body .request-main .comment-show-container:focus-visible { outline: 2px solid var(--se-link); outline-offset: 2px; }
body .request-sidebar { border-color: var(--se-border); }
body .request-details { border-bottom-color: var(--se-border); }
body .request-details dt { color: var(--se-text-subtle); }
body .request-details dd { color: var(--se-heading); white-space: normal; overflow-wrap: anywhere; }  /* Copenhagen truncates dates with an ellipsis */
body .request-title { line-height: 1.2; }
@media (min-width: 1024px) {
  body .request-main { flex: 1 1 auto; }
  body .request-sidebar { flex: 0 0 320px; width: auto; background: #fff; border: 0; border-radius: var(--se-radius-card); box-shadow: var(--se-shadow); padding: 4px 24px; box-sizing: border-box; font-size: 14px; }
}
@media (max-width: 640px) {
  body .request-main { padding: 4px 16px 20px; }
}

/* =====================================================================
 * Long text fields: let people drag the description/comment box taller.
 * CKEditor (Copenhagen React form, community posts, rich-text request form) re-renders the
 * editable's attributes on every change, which wipes an inline height set by dragging.
 * So the handle sits on .ck-editor__main (a UI wrapper CKEditor does not re-render) and the
 * editable fills it via flex. Content longer than the dragged height scrolls in the wrapper.
 * ===================================================================== */
body .ck.ck-editor > .ck-editor__main { display: flex; flex-direction: column; resize: vertical; overflow: auto; min-height: 240px; }
body .ck.ck-editor > .ck-editor__main > .ck-editor__editable { flex: 1 0 auto; min-height: 240px; }
body textarea#request_description,
body textarea[name="request[description]"],
body .request-main textarea,
body .comment-form textarea { resize: vertical; min-height: 200px; }

/* Right column matches the left side nav: bold dark group titles, rows as tight as the nav
   (Castor/Copenhagen add 15px margin under every related/recent item). */
body .se-aside-block .related-articles-title,
body .se-aside-block .recent-articles-title,
body .se-toc .se-eyebrow { color: var(--se-heading); font-weight: 700; margin-bottom: 6px; }
body .se-aside-block li { margin: 0; }
body .se-aside-block li a { padding: 7px 12px; line-height: 1.4; }
