/* ==========================================================================
 * esoundz.css - the help desk in the shop's clothes (3.13.0).
 *
 * HESK 2.7.3 is a table-era application: one centred 960px table, four 7px
 * JPEG strips pretending to be a rounded border, green JPEG title bars, orange
 * GIF submit buttons and Verdana 12px everywhere. The shop around it is the
 * Phase 2 shell - carbon chassis, Bahnschrift, amber section colour, white
 * panels with a 12px radius. This file is the join.
 *
 * HOW IT LOADS
 *
 *   app.css      the shop's six cascade layers (tokens, reset, base, ...)
 *   hesk_style   HESK's own sheet, unlayered
 *   esoundz.css  this file, unlayered and last
 *
 * Unlayered rules beat every @layer whatever their specificity, so HESK's
 * sheet and this one simply win in source order - which is why the <link>
 * order in inc/header.inc.php is the contract and not a detail.
 *
 * THE RULE THAT KEEPS THIS SMALL
 *
 * HESK's pages are not rewritten; their markup is what it is. So the skin
 * works one level up: the .enclosing table becomes the page's sheet, its dark
 * first cell becomes the title bar, and everything HESK draws inside it is
 * restyled by the component classes it already uses - .headersm, .ticketrow,
 * .admin_white, .orangebutton, .isError. Nothing here depends on the order of
 * table cells beyond the two rows the header and footer includes write.
 *
 * Every rule is scoped to .hsk, the class the shop's main column gets on these
 * pages (inc/esoundz_chrome.php). If the frame is unavailable HESK renders its
 * own chrome and none of this applies - the help desk still works.
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * 1. The frame
 * ----------------------------------------------------------------------- */

/* HESK centres its sheet with <div align="center"> and gives the table a
 * fixed 960px. Both go: the shop's .main-col is already the right width, and
 * the sheet fills it. */
.hsk > div[align="center"] {
  text-align: start;
}

.hsk {
  font-family: var(--esz-font-body);
  font-size: var(--esz-text-md);
  color: var(--esz-ink-900);
  line-height: var(--esz-leading-body);
}

.hsk p {
  margin-block: 0 0.8em;
}

.hsk h1,
.hsk h2,
.hsk h3,
.hsk h4 {
  font-family: var(--esz-font-display);
  color: var(--esz-ink-900);
  text-wrap: balance;
}

.hsk h2 { font-size: var(--esz-text-lg); margin-block: 1.2em 0.5em; }
.hsk h3 { font-size: var(--esz-text-md); margin-block: 1em 0.4em; }

.hsk a {
  color: var(--esz-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.hsk a:hover,
.hsk a:focus-visible {
  color: var(--esz-link-hover);
}

.hsk hr {
  border: 0;
  border-block-start: 1px solid var(--esz-ink-100);
  margin-block: var(--esz-space-4);
}

/* HESK's <font class="important">*</font> is the required-field marker. */
.hsk .important {
  color: #c0392b;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
 * 2. The sheet - .enclosing is the page
 * ----------------------------------------------------------------------- */

/* The sheet may never widen the page. An admin table full of nowrap cells has
 * a min-content width of its own, and a grid item whose min-width is `auto`
 * hands that width to its column - which is how the staff ticket list pushed
 * the whole document 152px sideways at 768 before the `min-inline-size: 0`
 * below. The sheet is pinned to its column and its content cell scrolls
 * instead. */
.hsk {
  min-inline-size: 0;
  max-inline-size: 100%;
}

/* .main-col is a grid (layout.css). Its single column is an `auto` track, so a
 * grid item whose min-width is `auto` hands it its min-content: HESK's
 * <div align="center"> wrapping an eleven-column ticket list measured 836px
 * inside a 614px shell, and the whole document scrolled sideways by 152px at
 * 768. State the column, and let the wrapper shrink; the sheet's content cell
 * then does the scrolling. */
.hsk {
  grid-template-columns: minmax(0, 1fr);
}

.hsk > div[align] {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.hsk .enclosing {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  background: var(--esz-surface);
  border: 1px solid rgb(0 0 0 / .55);
  border-radius: var(--esz-radius-lg);
  box-shadow: var(--esz-shadow-3);
  color: var(--esz-ink-900);
  font: inherit;
  overflow: clip;
}

.hsk .enclosing > tbody,
.hsk .enclosing > tbody > tr {
  min-inline-size: 0;
  max-inline-size: 100%;
}

/* Its rows and cells become plain blocks: a table cannot scroll horizontally,
 * a block can, and the admin's wide lists need that on a phone. */
.hsk .enclosing > tbody,
.hsk .enclosing > tbody > tr,
.hsk .enclosing > tbody > tr > td {
  display: block;
}

.hsk .enclosing > tbody > tr > td {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}

/* The title bar: HESK's first cell, which holds the green strip and the
 * breadcrumb. It is the shop's faceplate - the same material as the header's
 * metal and the 3.4 support band, one shade darker than the sheet. */
.hsk .enclosing > tbody > tr:first-child > td {
  background-color: #16191d;
  background-image:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2b3036 0%, #1d2126 42%, #14171b 100%);
  color: var(--esz-ink-100);
  border-block-end: 1px solid rgb(0 0 0 / .8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12);
}

/* The content cell. `:not(:first-child)` matters: a page that never closes the
 * title row (the staff sign-in is one) has a single row, and without the guard
 * the "last cell" padding and white background would repaint the title bar -
 * light type on white. */
.hsk .enclosing > tbody > tr:last-child:not(:first-child) > td {
  padding: var(--esz-space-4);
  background: var(--esz-surface);
}

@media (min-width: 48rem) {
  .hsk .enclosing > tbody > tr:last-child > td {
    padding: var(--esz-space-5) var(--esz-space-6);
  }
}

/* HESK's page has exactly two rows; anything it draws with its own <tr> pairs
 * after the header is still inside the second cell. That cell is the scroller
 * for the wide admin tables at EVERY width - a 1024px window still cannot show
 * eleven nowrap ticket columns beside the sheet's padding, and a clipped table
 * loses its right-hand columns with no way to reach them. */
.hsk .enclosing > tbody > tr:last-child:not(:first-child) > td {
  overflow-x: auto;
  min-inline-size: 0;
  overscroll-behavior-x: contain;
}

/* --------------------------------------------------------------------------
 * 3. The title bar and the breadcrumb
 * ----------------------------------------------------------------------- */

/* .headersm is HESK's green JPEG bar. It keeps its job - it names the page -
 * and loses the JPEG: the bar's background is the cell above it, so the strip
 * is just a line of type on the faceplate. */
.hsk .headersm {
  background: none !important;
  background-image: none !important;
  color: #f4f6f9;
  font-family: var(--esz-font-display);
  font-size: var(--esz-text-lg);
  font-weight: 600;
  letter-spacing: .01em;
  block-size: auto;
  height: auto;
  padding: var(--esz-space-3) var(--esz-space-4);
  text-align: start;
}

.hsk .headersm a,
.hsk .headersm a:link,
.hsk .headersm a:visited {
  color: #f4f6f9;
}

/* The 3px corner images either side of it, and the corner strips of every
 * "roundcorners" card: all of them are the old border. They become nothing. */
.hsk img[src*="headerleftsm"],
.hsk img[src*="headerrightsm"],
.hsk img[src*="roundcorner"],
.hsk img[src*="header_up_"],
.hsk img[src*="header_bottom_"],
.hsk img[src*="header_left"],
.hsk img[src*="header_right"],
.hsk img[src*="header_top"],
.hsk img[src*="blank.gif"] {
  display: none;
}

.hsk .roundcornersleft,
.hsk .roundcornersright,
.hsk .roundcornerstop,
.hsk .roundcornersbottom {
  background: none !important;
  background-image: none !important;
  padding: 0 !important;
  border: 0;
  font-size: 0;
  line-height: 0;
}

/* The breadcrumb: HESK's ".smaller" span in the title bar, Home > Support >
 * page. Light and quiet, the way .crumbs reads on the carbon. */
.hsk .enclosing > tbody > tr:first-child > td > table:last-of-type td {
  padding-block-end: var(--esz-space-3);
  padding-inline: var(--esz-space-4);
}

.hsk .enclosing > tbody > tr:first-child > td .smaller,
.hsk .enclosing > tbody > tr:first-child > td .smaller a {
  color: var(--esz-ink-300);
  font-size: var(--esz-text-sm);
}

.hsk .enclosing > tbody > tr:first-child > td .smaller a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
 * 4. Tables inside the sheet
 * ----------------------------------------------------------------------- */

/* HESK's inner tables carry their layout in cellpadding/cellspacing attributes
 * and their borders in classes. app.css's reset collapsed every border, which
 * is what makes the old construction readable again: no double rules. */
.hsk td,
.hsk th {
  color: inherit;
  font: inherit;
  vertical-align: top;
  border: 0;
}

/* The admin's data grids: .white is the table, .admin_white / .admin_gray the
 * header and body cells, .ticketrow / .ticketalt the alternating rows of the
 * customer's ticket view. They become one grid with hairline rules. */
.hsk table.white {
  inline-size: 100%;
  background: #fff;
  border: 1px solid var(--esz-ink-200);
  border-radius: var(--esz-radius-md);
  overflow: hidden;
}

.hsk .admin_white,
.hsk .admin_gray {
  padding: 6px 8px;
  border-block-end: 1px solid var(--esz-ink-100);
  font-size: var(--esz-text-sm);
}

.hsk th.admin_white {
  background: var(--esz-ink-100);
  color: var(--esz-ink-700);
  font-family: var(--esz-font-ui);
  font-weight: 600;
  text-align: start;
  white-space: nowrap;
  vertical-align: middle;
}

.hsk th.admin_white a {
  color: var(--esz-ink-700);
  text-decoration: none;
}

.hsk th.admin_white a:hover {
  color: var(--esz-link);
  text-decoration: underline;
}

.hsk .admin_gray {
  background: var(--esz-ink-100);
}

.hsk .ticketrow {
  background: #f7f8f9;
  border: 1px solid transparent;
  border-radius: var(--esz-radius-md);
  padding: var(--esz-space-3) var(--esz-space-4);
}

.hsk .ticketalt {
  background: #fff;
  border: 1px solid var(--esz-ink-100);
  border-radius: var(--esz-radius-md);
  padding: var(--esz-space-3) var(--esz-space-4);
}

/* Inside HESK's own data grid the ROW is the unit, not the cell: the admin's
 * ticket list puts .ticketrow / .ticketalt on every <td>, so the card rules
 * above would draw one little box per column - twelve boxes on a line. There,
 * the cells keep hairlines and the row keeps the tint. */
.hsk table.white .ticketrow,
.hsk table.white .ticketalt {
  border: 0;
  border-radius: 0;
  padding: 7px 8px;
}

.hsk table.white .ticketrow { background: #f7f8f9; }
.hsk table.white .ticketalt { background: #fff; }

.hsk table.white td {
  border-block-end: 1px solid var(--esz-ink-100);
}

.hsk .tickettd {
  font-size: var(--esz-text-sm);
  color: var(--esz-ink-700);
}

/* The ticket's own metadata block (date / name / e-mail) reads as a small
 * definition list: labels quiet, values normal. */
.hsk .tickettd:first-child {
  color: var(--esz-ink-500);
}

/* A message body, whatever HESK calls its container. */
.hsk .message {
  font-size: var(--esz-text-md);
  line-height: var(--esz-leading-body);
}

/* --------------------------------------------------------------------------
 * 5. Forms
 * ----------------------------------------------------------------------- */

.hsk input[type="text"],
.hsk input[type="password"],
.hsk input[type="email"],
.hsk input[type="url"],
.hsk input[type="number"],
.hsk input[type="search"],
.hsk input[type="tel"],
.hsk textarea,
.hsk select {
  font: inherit;
  font-size: var(--esz-text-md);
  color: var(--esz-ink-900);
  background: #fff;
  border: 1px solid var(--esz-ink-300);
  border-radius: var(--esz-radius-md);
  padding: 0.45rem 0.6rem;
  min-block-size: 40px;
  max-inline-size: 100%;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .06);
  transition: border-color .15s, box-shadow .15s;
}

.hsk textarea {
  min-block-size: 9rem;
  line-height: 1.5;
  resize: vertical;
}

.hsk select {
  /* The OS paints the popup white and keeps the closed control's text; the
   * option colours belong to the list, not the control (2.6.0's finding). */
  padding-inline-end: 1.6rem;
}

.hsk select option {
  color: var(--esz-ink-900);
  background: #fff;
}

.hsk input[type="text"]:focus,
.hsk input[type="password"]:focus,
.hsk input[type="email"]:focus,
.hsk input[type="url"]:focus,
.hsk input[type="number"]:focus,
.hsk input[type="search"]:focus,
.hsk input[type="tel"]:focus,
.hsk textarea:focus,
.hsk select:focus {
  outline: none;
  border-color: var(--section, var(--esz-sec-support));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--section, var(--esz-sec-support)) 28%, transparent);
}

.hsk input[type="checkbox"],
.hsk input[type="radio"] {
  accent-color: var(--section, var(--esz-sec-support));
  inline-size: 16px;
  block-size: 16px;
  vertical-align: -2px;
}

.hsk input[type="file"] {
  font-size: var(--esz-text-sm);
  max-inline-size: 100%;
}

/* A field HESK marked as invalid. The ring is red, not the section colour:
 * this is a state, not a location. */
.hsk .isError,
.hsk input.isError,
.hsk textarea.isError,
.hsk select.isError {
  border-color: #c0392b !important;
  background: #fff6f5 !important;
  box-shadow: 0 0 0 3px rgb(192 57 43 / .16);
}

.hsk .isNotice {
  border-color: var(--section, var(--esz-sec-support)) !important;
  background: #fffdf5 !important;
}

/* HESK's label column is a right-aligned 150px table cell. On a phone the
 * pair cannot sit side by side, so each row stacks and the label becomes a
 * caption above its field. */
@media (max-width: 47.99rem) {
  .hsk form table tr {
    display: block;
  }

  .hsk form table tr > td {
    display: block;
    inline-size: auto !important;
    text-align: start !important;
    padding-block: 2px !important;
  }

  .hsk form table tr > td:first-child {
    font-size: var(--esz-text-sm);
    color: var(--esz-ink-700);
    padding-block-start: var(--esz-space-2) !important;
  }

  .hsk form table tr > td:last-child {
    padding-block-end: var(--esz-space-2) !important;
  }

  .hsk input[type="text"],
  .hsk input[type="password"],
  .hsk input[type="email"],
  .hsk textarea,
  .hsk select {
    inline-size: 100%;
  }
}

/* Above the phone band the fields are sized by their `size="40"` attribute,
 * which is ~290px whatever the sheet is - so a 1112px panel showed a column of
 * short boxes and a wider message box beside them. Give the text controls one
 * width: the cell's, capped at 30rem (a 900px input reads as a textarea). */
@media (min-width: 48rem) {
  .hsk form table tr > td > input[type="text"],
  .hsk form table tr > td > input[type="password"],
  .hsk form table tr > td > input[type="email"],
  .hsk form table tr > td > textarea {
    inline-size: min(100%, 30rem);
  }
}

/* --------------------------------------------------------------------------
 * 6. Buttons
 *
 * HESK's orange/green/blue GIF buttons keep their class names and their
 * mouseover class swaps (hesk_btn() in hesk_javascript.js) - they simply stop
 * being GIFs. The material is the shop's neon-rim button, in the section hue,
 * because that is what a primary action looks like everywhere else on the site.
 * ----------------------------------------------------------------------- */

.hsk .orangebutton,
.hsk .orangebuttonover,
.hsk .orangebuttonsec,
.hsk .orangebuttonsecover,
.hsk .greenbutton,
.hsk .greenbuttonover,
.hsk .bluebutton,
.hsk input[type="submit"],
.hsk input[type="button"],
.hsk input[type="reset"],
.hsk button:not(.hsk-bar__tab) {
  --glow: var(--section, var(--esz-sec-support));

  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 40px;
  padding: 0.45rem 1.1rem;

  font-family: var(--esz-font-ui);
  font-size: var(--esz-text-sm);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  color: #eaf1fb !important;
  text-shadow: 0 1px 2px rgb(0 0 0 / .8);

  border: 0;
  border-radius: var(--esz-radius-btn);
  background-color: #10141a;
  background-image:
    radial-gradient(46px 30px at 13% 10%, rgb(255 246 205 / .9) 0%, rgb(255 214 130 / .38) 38%, transparent 72%),
    linear-gradient(180deg, #191e26 0%, #0a0d12 52%, #10141a 100%);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / .16),
    0 0 0 2px rgb(0 0 0 / .9),
    0 0 0 3px color-mix(in oklab, var(--glow) 55%, transparent),
    0 0 12px -1px var(--glow),
    0 3px 8px rgb(0 0 0 / .35),
    inset 0 1px 0 rgb(255 255 255 / .2);

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Hover and the mouseover classes HESK swaps in land on the same look: the
 * ring brightens. Two buttons that are meant to be the same must not drift. */
.hsk .orangebutton:hover,
.hsk .orangebuttonover:hover,
.hsk .greenbutton:hover,
.hsk .bluebutton:hover,
.hsk input[type="submit"]:hover,
.hsk input[type="button"]:hover,
.hsk button:not(.hsk-bar__tab):hover {
  box-shadow:
    0 0 0 1px rgb(255 255 255 / .2),
    0 0 0 2px rgb(0 0 0 / .9),
    0 0 0 3px var(--glow),
    0 0 20px 0 var(--glow),
    0 4px 10px rgb(0 0 0 / .4),
    inset 0 1px 0 rgb(255 255 255 / .28);
}

.hsk .orangebutton:focus-visible,
.hsk input[type="submit"]:focus-visible,
.hsk input[type="button"]:focus-visible,
.hsk button:not(.hsk-bar__tab):focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
}

.hsk input[type="submit"],
.hsk input[type="button"],
.hsk input[type="reset"] {
  /* An <input> is replaced content: `inline-flex` centres nothing inside it and
   * can leave the label unreadable, so these go back to a plain inline block
   * and are centred by text-align. The width floor keeps a Submit from being
   * as wide as its word. */
  display: inline-block;
  min-inline-size: 7rem;
  block-size: auto;
  padding-block: 0.55rem;
}

/* A button next to another control keeps its own line box. */
.hsk .orangebutton + .orangebutton {
  margin-inline-start: var(--esz-space-2);
}

/* The knowledge base's own search button is a submit input in the title bar,
 * so the 7rem floor above would make it as wide as a form's Submit. It is a
 * secondary control: same material, smaller. */
.hsk .searchbutton {
  min-inline-size: 0;
  min-block-size: 34px;
  padding: 0.25rem 0.85rem;
  margin-inline-start: var(--esz-space-2);
}

.hsk .searchfield {
  min-inline-size: 0;
  inline-size: min(16rem, 45vw);
  min-block-size: 34px;
}

/* The knowledge base's search is an inline <form> in a 300px cell of the title
 * bar, with the input and the button as siblings - which stacked the button
 * under the field at 768. The form's own style="display:inline" is inline and
 * has to be beaten by !important; the two controls then share the line. */
.hsk form[action*="knowledgebase"] {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--esz-space-2);
  margin: 0 !important;
}

.hsk form[action*="knowledgebase"] .searchfield {
  flex: 1 1 8rem;
  inline-size: auto;
}

.hsk form[action*="knowledgebase"] .searchbutton {
  margin-inline-start: 0;
}

/* --------------------------------------------------------------------------
 * 7. Messages - HESK's error / success / notice boxes
 * ----------------------------------------------------------------------- */

.hsk .notice {
  margin-block: var(--esz-space-3);
  padding: var(--esz-space-3) var(--esz-space-4);
  border: 1px solid #e0c98f;
  border-inline-start: 4px solid var(--esz-sec-support);
  border-radius: var(--esz-radius-md);
  background: #fdf7e7;
  color: var(--esz-ink-800);
}

.hsk div.error,
.hsk .errorhdr {
  margin-block: var(--esz-space-3);
  padding: var(--esz-space-3) var(--esz-space-4);
  border: 1px solid #e6b8b2;
  border-inline-start: 4px solid #c0392b;
  border-radius: var(--esz-radius-md);
  background: #fdf2f1;
  color: #8e2b20;
}

.hsk div.success {
  margin-block: var(--esz-space-3);
  padding: var(--esz-space-3) var(--esz-space-4);
  border: 1px solid #b7d9b0;
  border-inline-start: 4px solid #2f7d32;
  border-radius: var(--esz-radius-md);
  background: #f1faf0;
  color: #245c26;
}

.hsk div.notice {
  margin-block: var(--esz-space-3);
  padding: var(--esz-space-3) var(--esz-space-4);
  border: 1px solid #e0c98f;
  border-inline-start: 4px solid var(--esz-sec-support);
  border-radius: var(--esz-radius-md);
  background: #fffaf0;
  color: var(--esz-ink-800);
}

.hsk .important,
.hsk .critical { font-weight: 700; }

.hsk .critical { color: #b3261e; }
.hsk .medium   { color: #8a6d1f; }
.hsk .low      { color: var(--esz-ink-600); }

/* --------------------------------------------------------------------------
 * 8. The knowledge base and the category chooser
 * ----------------------------------------------------------------------- */

/* /tickets/ without a category is the list of ticket categories: eleven links
 * in a box, and the first screenful a customer sees after pressing "Start a
 * ticket". They read as the shop's own list rows, not as underlined blue
 * links in a rounded box. */
.hsk .select_category {
  /* HESK gives this box width:50%, which in a 614px sheet is a 307px column of
   * eleven links. Full width, capped, centred. */
  inline-size: 100%;
  margin: var(--esz-space-4) auto;
  max-inline-size: 34rem;
  text-align: start;
}

.hsk .select_category ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--esz-ink-200);
  border-radius: var(--esz-radius-md);
  overflow: clip;
}

.hsk .select_category li + li {
  border-block-start: 1px solid var(--esz-ink-100);
}

.hsk .select_category li a {
  display: flex;
  align-items: center;
  gap: var(--esz-space-2);
  min-block-size: 44px;
  padding: var(--esz-space-2) var(--esz-space-4);
  color: var(--esz-ink-800);
  text-decoration: none;
}

.hsk .select_category li a:hover,
.hsk .select_category li a:focus-visible {
  background: #fbf7ec;
  color: var(--esz-ink-950);
}

/* The "»" HESK prints before each label becomes the shop's own arrow: same
 * character in the markup, quiet colour, nudged on hover. */
.hsk .select_category li a::after {
  content: "";
  margin-inline-start: auto;
  inline-size: 0.45rem;
  block-size: 0.45rem;
  border-inline-end: 2px solid var(--esz-ink-400);
  border-block-start: 2px solid var(--esz-ink-400);
  transform: rotate(45deg);
  transition: transform .15s, border-color .15s;
}

.hsk .select_category li a:hover::after {
  border-color: var(--section, var(--esz-sec-support));
  transform: rotate(45deg) translate(2px, -2px);
}


.hsk .article {
  padding-block: var(--esz-space-2);
  border-block-end: 1px solid var(--esz-ink-100);
}

.hsk .article_list {
  display: grid;
  gap: var(--esz-space-2);
  margin-block: var(--esz-space-3);
  padding: 0;
  list-style: none;
}

.hsk .article_list li {
  padding-inline-start: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6a1a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 5.2A2.2 2.2 0 0 1 6.2 3H20v15.5H6.2A2.2 2.2 0 0 0 4 20.7V5.2Z'/%3E%3C/svg%3E") no-repeat 0 0.15em / 1.05rem;
}

.hsk .homepageh3,
.hsk .section {
  font-family: var(--esz-font-display);
  color: var(--esz-ink-900);
}

/* --------------------------------------------------------------------------
 * 9. The staff toolbar
 *
 * inc/show_admin_nav.inc.php used to draw a 2008 icon strip: 26px GIFs in a
 * table with a "blank.gif" spacer after each one. It is now this - one
 * faceplate bar of tabs, each a 44px target with an inline icon, the mail
 * counter as an LED badge, and the log-out at the end. It sits in the sheet's
 * dark first cell, so it is already on the right material.
 * ----------------------------------------------------------------------- */

.hsk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px;
  padding: var(--esz-space-2);
  padding-block-end: 0;
}

.hsk-bar__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-inline-size: 5.2rem;
  min-block-size: 52px;
  padding: 6px 10px 8px;
  border-radius: var(--esz-radius-md) var(--esz-radius-md) 0 0;
  color: var(--esz-ink-200) !important;
  font-family: var(--esz-font-ui);
  font-size: var(--esz-text-xs);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hsk-bar__tab:hover,
.hsk-bar__tab:focus-visible {
  background: rgb(255 255 255 / .07);
  color: #fff !important;
}

/* The page you are on: lit, and it stays lit - the shop's selected chip, one
 * step quieter. */
.hsk-bar__tab[aria-current="page"] {
  background: #0d1014;
  color: #fff !important;
  box-shadow: inset 0 2px 0 0 var(--section, var(--esz-sec-support));
}

.hsk-bar__icon {
  inline-size: 22px;
  block-size: 22px;
  display: block;
}

.hsk-bar__icon svg {
  inline-size: 22px;
  block-size: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hsk-bar__label {
  display: block;
  max-inline-size: 7rem;
}

.hsk-bar__end {
  margin-inline-start: auto;
  display: flex;
  gap: 2px;
}

/* The unread-mail count, as the shop's badge rather than "(3)". */
.hsk-bar__count {
  display: inline-block;
  min-inline-size: 1.05rem;
  padding: 0 4px;
  margin-inline-start: 3px;
  border-radius: var(--esz-radius-pill);
  background: var(--esz-sec-deals, #d64545);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.05rem;
  vertical-align: 1px;
}

@media (max-width: 47.99rem) {
  .hsk-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .hsk-bar__tab {
    flex: 0 0 auto;
  }

  .hsk-bar__end {
    margin-inline-start: 0;
  }
}

/* --------------------------------------------------------------------------
 * 10. Print
 * ----------------------------------------------------------------------- */

@media print {
  .hsk .enclosing {
    border: 0;
    box-shadow: none;
  }

  .hsk .enclosing > tbody > tr:first-child > td {
    background: none !important;
    color: #000;
    box-shadow: none;
  }

  .hsk .headersm,
  .hsk .enclosing > tbody > tr:first-child > td .smaller {
    color: #000 !important;
  }
}

/* --------------------------------------------------------------------------
 * 11. The shop chrome is OUTSIDE .hsk - protect it from HESK's element rules
 *
 * Everything else in this file is scoped to .hsk, the class the main column
 * gets. The shop's own header and footer are drawn around that column by
 * inc/esoundz_chrome.php, so they are outside it - and HESK's sheet reaches
 * them anyway.
 *
 * The mechanism is cascade layers. app.css puts every shop rule in a layer;
 * hesk_style.css is unlayered; and an unlayered rule beats a layered one
 * whatever its specificity. HESK's `input { font-family: Verdana; font-size:
 * 12px; color:#000 }` therefore beat the shop's own
 * `.site-search input[type="search"]` rule, and the search field in the header
 * came out in 12px Verdana and pure black on every help desk page while the
 * same field on the shop's pages was Bahnschrift. Measured, with HESK's sheet
 * disabled: Bahnschrift 13.39px rgb(16,16,24) instead of Verdana 12px #000.
 *
 * This file loads LAST and is unlayered, so it can put the shop's values back.
 * They are copied from scripts/css/components/header.css - the search field
 * rule there is the one being overridden - rather than invented, so the two
 * cannot drift apart.
 *
 * Only the properties HESK actually sets are restated. Background, border and
 * shadow were never touched by HESK and still come from the shop's sheet.
 * ----------------------------------------------------------------------- */

.site-header .site-search input[type="search"] {
  font-family: var(--esz-font-ui);
  font-size: var(--esz-text-sm);
  color: var(--esz-ink-900);
}

/* ---- Links and buttons in the chrome (3.24.6, nicol) --------------------
 *
 * "The top bar MUST BE THE SAME in all the website. There is no blue links in
 * the top bar whatsoever, so do the same for hesk."
 *
 * HESK's sheet opens with `a { color: Blue; text-decoration: underline }`.
 * Unlayered, so it beat the shop's layered rules for every anchor in the
 * chrome: the five nav entries, the footer's links and the Cart button all
 * came out rgb(0,0,255) and underlined. The nav read as a row of blue links,
 * and the Cart button - which is an <a> - looked like nothing at all.
 *
 * Every value below is copied from the shop's own sheet, so the help desk's
 * chrome is the shop's chrome rather than a lookalike:
 *   .site-nav a       scripts/css/components/header.css:334
 *   .site-footer a    scripts/css/components/panels.css:673
 *   .btn--quiet       scripts/css/components/buttons.css:200
 * ----------------------------------------------------------------------- */

.site-header a,
.site-footer a {
  text-decoration: none;
}

.site-nav a {
  color: #e2e8ee;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.site-footer a {
  color: var(--esz-mint);
}

/* The footer underlines on hover, and only on hover - HESK had it on always. */
.site-footer a:hover {
  text-decoration: underline;
}

/* The Cart button and the language button are <a>-classed controls. */
.site-header .btn--quiet {
  color: #cdd5de;
}

.site-header .btn--quiet:hover {
  color: #fff;
}

/* The same generic rules reach any other control the chrome grows later. */
.site-header select,
.site-footer select,
.site-header textarea,
.site-footer textarea {
  font-family: var(--esz-font-ui);
  font-size: var(--esz-text-sm);
}
