/*
 * JPTech support portal: component layer.
 *
 * Authored by JPTech. Contains no HESK source.
 *
 * This file replaces the empty override hook HESK 3.7.10 ships at
 * theme/<name>/customer/css/core_overrides.css. It is the last stylesheet the
 * customer header loads, after dist/app.min.css, which is what lets it correct
 * core rules without editing a core file. Tokens live in css/themes/jptech.css
 * and load first; nothing here declares a raw colour that is not derived from
 * one of those tokens.
 *
 * Order of sections:
 *   0  Typeface
 *   1  Reset and reading
 *   2  Layout, reflow and the 320 CSS pixel floor
 *   3  Focus, targets and the skip link
 *   4  Header, navigation and breadcrumbs
 *   5  Search and knowledge
 *   6  Actions and forms
 *   7  Notices, validation and status
 *   8  Tickets, conversation and attachments
 *   9  Tables, pagination and long content
 *  10  The ticket conversation below 640 CSS pixels
 *  11  Motion, forced colours and print
 *
 * Accessibility rules in here are load-bearing, not decoration. A change that
 * removes a focus ring, drops a target below 24 CSS pixels, makes a state
 * legible only by colour or introduces page-level horizontal scrolling is a
 * regression against WCAG 2.2 AA and against DESIGN.md, and the theme test
 * suite is written to catch each of those.
 */

/* ==========================================================================
   0  Typeface
   ========================================================================== */

/* Manrope, self-hosted under the SIL Open Font License 1.1. The latin subset
 * files and the licence (OFL.txt) ship beside each other in customer/fonts/manrope,
 * copied unchanged from Fontsource 5.3.0. Look B was approved by Joseph on
 * 2026-10-20 (decision D2). font-display: swap keeps text readable in the system
 * face while a file loads, and no face is ever requested from another host.
 */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/manrope/manrope-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/manrope/manrope-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/manrope/manrope-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/manrope/manrope-latin-700-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/manrope/manrope-latin-800-normal.woff2") format("woff2");
}

/* ==========================================================================
   1  Reset and reading
   ========================================================================== */

html {
    /* Never set a fixed root font size: it overrides the reader's own choice.
     * Percentage keeps browser text-size settings and 400 percent zoom working.
     */
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.cust-help {
    font-family: var(--jptech-font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--jptech-ink);
    background: var(--jptech-paper);
}

/* Stock names its own bundled face on about thirty selectors, up to four classes deep, so the
 * body rule above reaches only what nothing else styles. The `:is()` argument
 * that never matches lends this one rule the specificity of four classes, which
 * outranks all of them without `!important`; code keeps its monospace face. */
body.cust-help :is(*, .jptech-face.jptech-face.jptech-face.jptech-face):not(code, pre, kbd, samp) {
    font-family: var(--jptech-font-body);
}

body.cust-help h1,
body.cust-help h2,
body.cust-help h3,
body.cust-help h4 {
    font-family: var(--jptech-font-heading);
    color: var(--jptech-navy-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    /* Balanced headings where supported; ignored elsewhere, never required. */
    text-wrap: balance;
}

body.cust-help h1 { font-size: 1.75rem; margin: 0 0 var(--jptech-space-md); }
body.cust-help h2 { font-size: 1.375rem; margin: var(--jptech-space-lg) 0 var(--jptech-space-sm); }
body.cust-help h3 { font-size: 1.125rem; margin: var(--jptech-space-md) 0 var(--jptech-space-xs); }

@media (min-width: 640px) {
    body.cust-help h1 { font-size: 2.125rem; }
    body.cust-help h2 { font-size: 1.625rem; }

    /* HESK marks each knowledgebase category title up as an h2 beneath the
     * "Knowledgebase" section heading, so the rule above made every child
     * larger than its section. Card-title size restores the order.
     */
    body.cust-help .topics__title { font-size: 1.125rem; }
}

/* Stock pulls the required-fields tip up by 32 CSS pixels to meet a heading
 * margin this layer has already reduced to 16, so at every width the tip was
 * drawn into "Submit a Support Request". The offset is replaced, not countered.
 */
html.page-create-ticket body.cust-help .article__heading + .article-heading-tip {
    margin-top: var(--jptech-space-xs);
}

body.cust-help p {
    /* A support answer is read, not scanned. The measure ceiling stops a long
     * article turning into a single line across a wide monitor.
     */
    max-width: var(--jptech-measure);
}

body.cust-help .lightgrey,
body.cust-help .navlink__descr {
    color: var(--jptech-muted);
}

/* On any tinted surface the plain muted grey falls under 4.5:1, so the darker
 * tint takes over. Measured figures are in DESIGN.md.
 */
body.cust-help .notification .lightgrey,
body.cust-help .preview:hover .lightgrey,
body.cust-help .preview:focus-within .lightgrey {
    color: var(--jptech-muted-tint);
}

/* ==========================================================================
   2  Layout, reflow and the 320 CSS pixel floor
   ========================================================================== */

body.cust-help .contr {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: var(--jptech-space-md);
    box-sizing: border-box;
}

@media (min-width: 780px) {
    body.cust-help .contr { padding-inline: var(--jptech-space-lg); }
}

body.cust-help .main__content {
    padding-block: var(--jptech-space-lg);
}

/* Nothing may make the page itself scroll sideways. Each of these is a real
 * overflow source in the stock theme at 320 CSS pixels: a fixed-width table, a
 * pasted URL in an article, a long attachment name, an unbroken tracking ID.
 */
body.cust-help,
body.cust-help .wrapper,
body.cust-help .main {
    overflow-x: clip;
    max-width: 100%;
}

body.cust-help img,
body.cust-help svg:not(.icon),
body.cust-help video,
body.cust-help iframe {
    max-inline-size: 100%;
    block-size: auto;
}

/* One column by default. Two only where both columns still read at their own
 * width, and never below 640 CSS pixels.
 */
body.cust-help .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--jptech-space-md);
    margin-block: var(--jptech-space-lg);
}

@media (min-width: 640px) {
    body.cust-help .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* HESK gives each task card a fixed width and a 16 CSS pixel margin. In this
 * grid that is wrong at every width: on a phone the card is wider than its
 * track, and on the desktop it is narrower and inset, so the two home cards
 * stopped short of the search panel above and the knowledgebase panel below.
 * The grid owns the track and the card fills it, so `.contr` remains the only
 * horizontal inset. Home is `html.page-index`; choosing a category is
 * `html.page-category-select`, which adds `.navlink-condensed` and restates the
 * margin, hence a chain that outranks both. Every other `.nav` keeps stock.
 */
html.page-index body.cust-help .nav > .navlink,
html.page-category-select body.cust-help .nav > .navlink {
    width: auto;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Look B (decision D2): surfaces are white, edged by a hairline and squared to
 * the one 2px radius. Nothing floats on a soft shadow. */
body.cust-help .navlink {
    display: flex;
    gap: var(--jptech-space-md);
    align-items: flex-start;
    padding: var(--jptech-space-lg);
    min-height: var(--jptech-target);
    background: var(--jptech-surface);
    border: 1px solid var(--jptech-hairline);
    border-radius: var(--jptech-radius);
    text-decoration: none;
    color: var(--jptech-ink);
    box-shadow: none;
}

body.cust-help .navlink:hover,
body.cust-help .navlink:focus-visible {
    background: var(--jptech-green-soft);
    /* Hover is not the only cue: the border darkens as well, so a reader who
     * cannot distinguish the fill still sees the change.
     */
    border-color: var(--jptech-green);
}

body.cust-help .navlink__title {
    color: var(--jptech-navy-dark);
    margin: 0 0 var(--jptech-space-xs);
    font-size: 1.125rem;
    font-weight: 800;
}

body.cust-help .article,
body.cust-help .ticket,
body.cust-help .form,
body.cust-help .table-wrap {
    background: var(--jptech-surface);
    border: 1px solid var(--jptech-hairline);
    border-radius: var(--jptech-radius-lg);
    padding: var(--jptech-space-md);
    box-shadow: none;
}

@media (min-width: 640px) {
    body.cust-help .article,
    body.cust-help .ticket,
    body.cust-help .form,
    body.cust-help .table-wrap {
        padding: var(--jptech-space-xl);
    }
}

/* Look B has no soft elevation anywhere (decision D2). HESK's bundle draws a
 * shadow on forty-odd components, some as deep as five classes, so one rule
 * lists them and the `:is()` list lends it the specificity of the deepest. A
 * panel is told apart by its hairline, and a popup that floated on a shadow
 * gets a hairline edge instead. */
body.cust-help :is(
    .notification, .notification-flash, .table-wrap, .loading-message, .form-submit-ticket,
    .navlink, .navlink-condensed, .step-footer, .topics, .preview, .article .block__head,
    .tabbed__head .tabbed__head_tabs li.current, .tabbed__tabs .tabbed__tabs_tab,
    .ticket__body_block, .ticket__body_block .block--timer,
    .ticket__params .params--bar, .ticket__params .params--block,
    .ticket__body_block .block--head .contact .dropdown.customer,
    .ticket__body_block .block--head .contact .dropdown.customer .label,
    .ticket .ticket__params .dropdown-select .label, .ticket .ticket__params .dropdown-select label,
    .dropdown-list, .select-items, .selectize-dropdown, .datepicker, .modal .modal__body,
    .header .profile__user .profile__menu, .tooltype .tooltype__content
) {
    box-shadow: none;
}

body.cust-help :is(
    .dropdown-list, .select-items, .selectize-dropdown, .datepicker, .modal .modal__body,
    .header .profile__user .profile__menu, .tooltype .tooltype__content
) {
    border: 1px solid var(--jptech-hairline);
    border-radius: var(--jptech-radius);
}

/* Icons sit in small navy squares, as on the home tiles. */
body.cust-help .icon-in-circle {
    border-radius: var(--jptech-radius);
}

/* The ticket and article side panels sit inside the white panel, so they are
 * opened by the same 3px rule as the content column rather than drawn as a box
 * inside a box, and their rows divide on the hairline. */
body.cust-help .ticket__params .params--block {
    border: 0;
    border-top: 3px solid var(--jptech-navy-dark);
    border-radius: 0;
    background: transparent;
}

body.cust-help .ticket__params .params--block .row {
    border-color: var(--jptech-hairline);
}

/* Knowledge base lists: a title, the category and a plain preview per row,
 * separated by hairlines. No icon disc, no stars and no view count; the article
 * page keeps its own rating control. */
html.page-view-category body.cust-help .preview,
html.page-search-results body.cust-help .preview {
    margin: 0;
    padding: var(--jptech-space-md) 0;
    border: 0;
    border-bottom: 1px solid var(--jptech-hairline);
    border-radius: 0;
    background: transparent;
}

html.page-view-category body.cust-help .preview:hover,
html.page-search-results body.cust-help .preview:hover {
    background: transparent;
}

html.page-view-category body.cust-help .preview > .icon-in-circle,
html.page-view-category body.cust-help .preview > .rate,
html.page-search-results body.cust-help .preview > .icon-in-circle,
html.page-search-results body.cust-help .preview > .rate {
    display: none;
}

html.page-view-category body.cust-help .tabbed__tabs .tabbed__tabs_tab,
html.page-view-category body.cust-help .topics {
    border: 0;
    background: transparent;
}

/* ==========================================================================
   3  Focus, targets and the skip link
   ========================================================================== */

/* One focus treatment, everywhere, and it is never removed. The offset keeps
 * the ring clear of the control's own border so it is visible on a filled
 * button as well as on a white field.
 */
body.cust-help a:focus-visible,
body.cust-help button:focus-visible,
body.cust-help input:focus-visible,
body.cust-help select:focus-visible,
body.cust-help textarea:focus-visible,
body.cust-help summary:focus-visible,
body.cust-help [tabindex]:focus-visible {
    outline: var(--jptech-focus-width) solid var(--jptech-focus);
    outline-offset: var(--jptech-focus-offset);
    border-radius: var(--jptech-radius-sm);
}

/* Browsers that do not support :focus-visible still get a ring rather than
 * nothing, because the stock theme suppresses several default outlines.
 */
body.cust-help a:focus,
body.cust-help button:focus,
body.cust-help input:focus,
body.cust-help select:focus,
body.cust-help textarea:focus {
    outline: var(--jptech-focus-width) solid var(--jptech-focus);
    outline-offset: var(--jptech-focus-offset);
}

body.cust-help a:focus:not(:focus-visible),
body.cust-help button:focus:not(:focus-visible),
body.cust-help input:focus:not(:focus-visible),
body.cust-help select:focus:not(:focus-visible),
body.cust-help textarea:focus:not(:focus-visible) {
    outline: none;
}

/* Every interactive control clears the WCAG 2.2 AA floor of 24 CSS pixels, and
 * the ones a customer uses to complete a task are drawn at the 44 this project
 * designs to. The one measured exception is the operating system's own file
 * picker button, which a page cannot size.
 *
 * The ticket details toggler is left out of the `display` half. Stock hides it at
 * 0,1,0 and shows it again below 769 CSS pixels, where the details body starts
 * collapsed; this rule is 0,1,1, so naming it here put a chevron on the desktop
 * sidebar that toggled nothing. It keeps the same target size below.
 */
body.cust-help a.btn,
body.cust-help button:not(.btn-toggler),
body.cust-help input[type="submit"],
body.cust-help input[type="button"],
body.cust-help .pagination__link,
body.cust-help .pagination__nav-btn {
    min-height: var(--jptech-target);
    min-width: var(--jptech-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--jptech-space-sm);
}

body.cust-help .btn-toggler {
    min-height: var(--jptech-target);
    min-width: var(--jptech-target);
    align-items: center;
    justify-content: center;
}

body.cust-help .breadcrumbs a,
body.cust-help .header__nav a,
body.cust-help .profile--logout a {
    display: inline-flex;
    align-items: center;
    min-height: var(--jptech-target-min);
    padding-block: var(--jptech-space-xs);
}

/* The skip link is the first thing in the tab order and must become visible the
 * moment it takes focus. The stock rule moves it off-screen and leaves it there.
 */
body.cust-help .skiplink {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1100;
}

body.cust-help .skiplink:focus,
body.cust-help .skiplink:focus-visible {
    left: var(--jptech-space-md);
    top: var(--jptech-space-md);
    width: auto;
    height: auto;
    padding: var(--jptech-space-sm) var(--jptech-space-md);
    background: var(--jptech-surface);
    color: var(--jptech-navy-dark);
    border: 2px solid var(--jptech-focus);
    border-radius: var(--jptech-radius-sm);
    text-decoration: underline;
}

/* Programmatic focus lands on the page heading and on error summaries. Neither
 * is a control, so neither takes focus by default and neither should keep a
 * ring after the pointer moves on.
 */
body.cust-help [tabindex="-1"]:focus {
    outline: none;
}

body.cust-help [tabindex="-1"]:focus-visible {
    outline: var(--jptech-focus-width) solid var(--jptech-focus);
    outline-offset: var(--jptech-focus-offset);
}

/* ==========================================================================
   4  Header, navigation and breadcrumbs
   ========================================================================== */

/* Look B (decision D2): a deep navy bar on every page. The reversed mark, the
 * help desk title in logo green beside a hairline, then the JPTech navigation and
 * the stock account and language controls. White on #0e1f33 is 16.63:1 and logo
 * green on it is 8.82:1. */
body.cust-help .header {
    background: var(--jptech-navy-deep);
    border-bottom: 1px solid var(--jptech-navy-rule);
    /* Not sticky. A sticky header at 320 CSS pixels and at 400 percent zoom eats
     * the viewport and can obscure the control that just took focus, which is
     * WCAG 2.2 criterion 2.4.11. The header scrolls away instead.
     */
    position: static;
}

body.cust-help .header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--jptech-space-sm) var(--jptech-space-lg);
    min-height: 64px;
    padding-block: var(--jptech-space-sm);
}

body.cust-help .header__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--jptech-space-md);
    color: var(--jptech-surface);
    font-weight: 700;
    text-decoration: none;
    min-height: var(--jptech-target);
}

body.cust-help .jptech-brand__mark {
    display: block;
    height: 28px;
    width: auto;
}

/* The help desk title. A phone shows the mark alone, as the mockup does. */
body.cust-help .jptech-brand__site {
    display: none;
    padding-left: var(--jptech-space-md);
    border-left: 1px solid var(--jptech-navy-rule);
    color: var(--jptech-logo-green);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.6;
}

body.cust-help .jptech-header-nav {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--jptech-space-sm) var(--jptech-space-lg);
}

/* Text links give way to the home page tiles on a phone; the call to action
 * stays. */
body.cust-help .jptech-header-nav__link {
    display: none;
    align-items: center;
    min-height: var(--jptech-target);
    color: var(--jptech-surface);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

body.cust-help .jptech-header-nav__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Logo green under deep navy text, 8.82:1; the hover fill keeps 10.28:1. */
body.cust-help .btn.btn-full.jptech-header-nav__cta {
    min-height: var(--jptech-target);
    padding: 0 var(--jptech-space-md);
    background: var(--jptech-logo-green);
    border-color: var(--jptech-logo-green);
    color: var(--jptech-navy-deep);
    font-size: 0.9375rem;
    font-weight: 600;
}

body.cust-help .btn.btn-full.jptech-header-nav__cta:hover {
    background: var(--jptech-logo-green-hover);
    border-color: var(--jptech-logo-green-hover);
    color: var(--jptech-navy-deep);
}

@media (min-width: 720px) {
    body.cust-help .header__inner { min-height: 72px; }
    body.cust-help .jptech-brand__mark { height: 36px; }
    body.cust-help .jptech-brand__site { display: inline; }
    body.cust-help .jptech-header-nav__link { display: inline-flex; }
}

/* The stock account and language controls follow the JPTech navigation, which
 * already took the free space. */
body.cust-help .header__nav {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--jptech-space-md);
}

body.cust-help .jptech-header-nav ~ .header__nav {
    margin-left: 0;
}

body.cust-help .header__nav a {
    color: var(--jptech-surface);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.cust-help .header__nav a:hover {
    color: var(--jptech-green-soft);
}

/* The profile menu opens as a white panel, where the navy text returns. */
body.cust-help .header .profile__menu a {
    color: var(--jptech-navy-dark);
}

body.cust-help .header__lang .dropdown-select {
    border-radius: var(--jptech-radius);
}

/* On a deep navy surface the dark focus ring measures 1.08:1, so the ring turns
 * logo green there, 8.82:1 against the navy it is drawn on. */
body.cust-help .header a:focus-visible,
body.cust-help .header button:focus-visible,
body.cust-help .header select:focus-visible,
body.cust-help .header [tabindex]:focus-visible,
body.cust-help .jptech-footer a:focus-visible,
body.cust-help .jptech-hero a:focus-visible,
body.cust-help .jptech-hero button:focus-visible,
body.cust-help .jptech-hero input:focus-visible,
html.page-index body.cust-help .breadcrumbs a:focus-visible {
    outline-color: var(--jptech-focus-on-dark);
}

body.cust-help .header .profile__menu a:focus-visible {
    outline-color: var(--jptech-focus);
}

body.cust-help .breadcrumbs {
    background: var(--jptech-surface);
    border-bottom: 1px solid var(--jptech-hairline);
}

body.cust-help .breadcrumbs__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--jptech-space-sm);
    padding-block: var(--jptech-space-sm);
    font-size: 0.8125rem;
}

body.cust-help .breadcrumbs a {
    color: var(--jptech-green);
}

body.cust-help .breadcrumbs .last {
    color: var(--jptech-muted-tint);
    font-weight: 600;
}

/* On the home page the header, the breadcrumb trail and the banner read as one
 * navy block. #b8c4d3 on #0e1f33 is 9.41:1. */
html.page-index body.cust-help .breadcrumbs {
    background: var(--jptech-navy-deep);
    border-bottom: 0;
}

html.page-index body.cust-help .breadcrumbs__inner {
    padding-top: var(--jptech-space-lg);
    padding-bottom: 0;
}

html.page-index body.cust-help .breadcrumbs a,
html.page-index body.cust-help .breadcrumbs .last,
html.page-index body.cust-help .breadcrumbs .icon {
    color: var(--jptech-on-navy-muted);
    fill: var(--jptech-on-navy-muted);
    font-weight: 400;
}

/* --- Footer band ---------------------------------------------------------
 *
 * The JPTech brand line, the administration link where stock shows it, and the
 * HESK credit, which is printed by the licensing block unchanged and is only
 * placed and coloured here. #b8c4d3 on #0e1f33 is 9.41:1 and white is 16.63:1.
 */
body.cust-help .jptech-footer {
    background: var(--jptech-navy-deep);
    color: var(--jptech-on-navy-muted);
    font-size: 0.8125rem;
}

body.cust-help .jptech-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--jptech-space-sm);
    padding-block: var(--jptech-space-lg);
}

body.cust-help .jptech-footer .jptech-footer__inner > p {
    margin: 0;
}

body.cust-help .jptech-footer a,
body.cust-help .jptech-footer .footer a.link {
    color: var(--jptech-on-navy-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.cust-help .jptech-footer .footer {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--jptech-on-navy-muted);
}

body.cust-help .jptech-footer .footer p {
    margin: 0;
    text-align: left;
    color: var(--jptech-on-navy-muted);
    font-size: 0.8125rem;
}

/* The credit closes its paragraph with a line break and a non-breaking space,
 * which would add an empty second line to the band. The words and the link are
 * untouched. */
body.cust-help .jptech-footer .footer br {
    display: none;
}

body.cust-help .jptech-footer .footer .font-weight-bold {
    color: var(--jptech-surface);
}

@media (min-width: 720px) {
    body.cust-help .jptech-footer__inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--jptech-space-sm) var(--jptech-space-lg);
        min-height: 72px;
        padding-block: var(--jptech-space-md);
    }

    body.cust-help .jptech-footer .jptech-footer__inner > .jptech-footer__brand {
        margin-right: auto;
    }
}

/* ==========================================================================
   5  Search and knowledge
   ========================================================================== */

body.cust-help .help-search {
    padding: var(--jptech-space-lg) 0;
}

body.cust-help .search__title {
    text-align: left;
    margin-bottom: var(--jptech-space-sm);
}

body.cust-help .jptech-lede {
    color: var(--jptech-muted);
    max-width: var(--jptech-measure);
    margin: 0 0 var(--jptech-space-md);
}

/* The stock search row is a single flex line that overflows below about 380 CSS
 * pixels once the submit button is enabled. Wrapping is what makes 320 work.
 */
body.cust-help .search__form .form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--jptech-space-sm);
}

/* Look B search: no navy box around the field on a light page and no hover
 * shadow; the field carries the control border. The home banner restates it. */
body.cust-help .search__form {
    padding: 0;
    background: transparent;
}

body.cust-help .search__form .form-group {
    max-width: none;
}

body.cust-help .search__form .form-group input,
body.cust-help .search__form .form-group input:hover,
body.cust-help .search__form .form-group input:focus {
    border: 1px solid var(--jptech-border);
    border-radius: var(--jptech-radius);
    box-shadow: none;
}

body.cust-help #kb_search {
    /* Overrides the inline 70 percent the stock template prints into <style>. */
    width: 100%;
    flex: 1 1 14rem;
    min-width: 0;
}

body.cust-help #search-button {
    width: auto;
    margin-left: 0;
    flex: 0 0 auto;
    height: auto;
}

body.cust-help .kb-suggestions {
    border: 1px solid var(--jptech-hairline);
    border-radius: var(--jptech-radius);
    background: var(--jptech-surface);
    color: var(--jptech-ink);
    margin-top: var(--jptech-space-sm);
    box-shadow: none;
}

body.cust-help .preview,
body.cust-help .suggest-preview {
    display: flex;
    gap: var(--jptech-space-md);
    align-items: flex-start;
    padding: var(--jptech-space-md);
    border: 1px solid var(--jptech-hairline);
    border-radius: var(--jptech-radius);
    margin-bottom: var(--jptech-space-sm);
    text-decoration: none;
    color: var(--jptech-ink);
    box-shadow: none;
}

body.cust-help .preview:hover,
body.cust-help .preview:focus-visible,
body.cust-help .suggest-preview:hover,
body.cust-help .suggest-preview:focus-visible {
    background: var(--jptech-green-soft);
    border-color: var(--jptech-green);
}

body.cust-help .preview__title,
body.cust-help .suggest-preview__title {
    color: var(--jptech-green);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 var(--jptech-space-xs);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.cust-help .preview__text {
    min-width: 0;
}

/* A result count, a view count and a rating are numbers that change between
 * renders. Tabular figures stop the row jumping as they do.
 */
body.cust-help .rate,
body.cust-help .pagination__link,
body.cust-help .jptech-count {
    font-variant-numeric: tabular-nums;
}

body.cust-help .no-articles-found {
    color: var(--jptech-muted-tint);
    padding: var(--jptech-space-sm) var(--jptech-space-md);
}

/* --- Home page, Look B (decision D2) -------------------------------------
 *
 * The banner is the stock `.help-search` block. It is painted deep navy edge to
 * edge with a border image whose outset reaches past the content column; an
 * outset is ink overflow, not layout, so it never widens the page. The tiles
 * are the stock `.nav` row pulled up over the banner's lower edge, and the
 * page's notices follow the tiles so the overlap can never cover one.
 */
html.page-index body.cust-help .main__content {
    padding-top: 0;
}

html.page-index body.cust-help .main__content > .contr {
    display: flex;
    flex-direction: column;
}

html.page-index body.cust-help .main__content > .contr > .help-search { order: -2; }
html.page-index body.cust-help .main__content > .contr > .nav { order: -1; }

html.page-index body.cust-help .help-search {
    max-width: none;
    margin: 0;
    padding: var(--jptech-space-xl) 0 112px;
    background: var(--jptech-navy-deep);
    border-radius: 0;
    border-image: conic-gradient(var(--jptech-navy-deep) 0 0) fill 0 / / 0 100vmax;
    color: var(--jptech-surface);
}

html.page-index body.cust-help .help-search > * {
    max-width: 800px;
}

html.page-index body.cust-help .search__title {
    color: var(--jptech-surface);
    font-size: 2.125rem;
    line-height: 1.15;
    margin: 0;
}

html.page-index body.cust-help .jptech-hero__lede {
    margin: var(--jptech-space-md) 0 0;
    color: var(--jptech-on-navy-muted);
    font-size: 1rem;
}

/* `kb-search.php` prints the form with an inline `display: inline`, which wins
 * over any stylesheet, and a vertical margin on an inline box moves nothing. The
 * gap therefore belongs to `.search__form`, the block HESK puts inside it. */
html.page-index body.cust-help .help-search .search__form {
    margin-top: var(--jptech-space-lg);
}

html.page-index body.cust-help .search__form .form-group {
    margin: 0;
}

/* The magnifier is the submit HESK renders before the field. On the banner it
 * sits inside the field's leading edge, as the mockup draws it. */
html.page-index body.cust-help .search__form .form-group > .search__submit {
    justify-self: start;
    margin: 0 0 0 var(--jptech-space-xs);
    background: transparent;
    border: 0;
}

html.page-index body.cust-help .search__form .form-group > #kb_search,
html.page-index body.cust-help .search__form .form-group > #kb_search:hover,
html.page-index body.cust-help .search__form .form-group > #kb_search:focus {
    min-height: 56px;
    padding: 0 var(--jptech-space-md) 0 calc(var(--jptech-target) + var(--jptech-space-sm));
    border: 0;
    border-radius: var(--jptech-radius) 0 0 var(--jptech-radius);
    font-size: 1rem;
}

/* Logo green under deep navy text, 8.82:1. */
html.page-index body.cust-help .search__form .form-group > #search-button {
    min-height: 56px;
    margin: 0;
    padding: 0 var(--jptech-space-md);
    border-radius: 0 var(--jptech-radius) var(--jptech-radius) 0;
    background: var(--jptech-logo-green);
    border-color: var(--jptech-logo-green);
    color: var(--jptech-navy-deep);
    font-weight: 800;
}

html.page-index body.cust-help .search__form .form-group > #search-button:hover {
    background: var(--jptech-logo-green-hover);
    border-color: var(--jptech-logo-green-hover);
}

/* Three tasks in one bordered row. */
html.page-index body.cust-help .nav {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: -80px 0 0;
    background: var(--jptech-surface);
    border: 1px solid var(--jptech-hairline);
    border-radius: var(--jptech-radius);
}

html.page-index body.cust-help .nav > .navlink {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--jptech-space-md);
    padding: var(--jptech-space-lg);
    border: 0;
    border-radius: 0;
    background: var(--jptech-surface);
}

html.page-index body.cust-help .nav > .navlink + .navlink {
    border-top: 1px solid var(--jptech-hairline);
}

html.page-index body.cust-help .nav > .navlink:hover,
html.page-index body.cust-help .nav > .navlink:focus-visible {
    background: var(--jptech-green-soft);
}

/* A plain arrow, silent to assistive technology: the link text already says
 * where the tile goes. */
html.page-index body.cust-help .nav > .navlink::after {
    content: "\2192" / "";
    color: var(--jptech-green);
    font-size: 1.5rem;
    line-height: 1;
}

html.page-index body.cust-help .nav .icon-in-circle {
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: var(--jptech-radius);
    background: var(--jptech-navy-dark);
}

html.page-index body.cust-help .nav .icon-in-circle .icon {
    fill: var(--jptech-logo-green);
}

html.page-index body.cust-help .nav .navlink__title {
    margin: 0 0 var(--jptech-space-xs);
    color: var(--jptech-navy-dark);
    font-size: 1.125rem;
    line-height: 1.3;
}

html.page-index body.cust-help .nav .navlink__descr {
    color: var(--jptech-muted);
    font-size: 0.9375rem;
}

/* The first tile is the main task: logo green, every word in deep navy at
 * 8.82:1, and its icon square reversed. */
html.page-index body.cust-help .nav > .navlink:first-child {
    background: var(--jptech-logo-green);
}

html.page-index body.cust-help .nav > .navlink:first-child:hover,
html.page-index body.cust-help .nav > .navlink:first-child:focus-visible {
    background: var(--jptech-logo-green-hover);
}

html.page-index body.cust-help .nav > .navlink:first-child .navlink__title,
html.page-index body.cust-help .nav > .navlink:first-child .navlink__descr,
html.page-index body.cust-help .nav > .navlink:first-child::after {
    color: var(--jptech-navy-deep);
}

html.page-index body.cust-help .nav > .navlink:first-child .icon-in-circle {
    background: var(--jptech-navy-deep);
}

/* Popular help articles: one white panel. The stock heading and the single
 * stock knowledge base link share the first row, the grouped list follows. */
html.page-index body.cust-help .main__content .article {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--jptech-space-sm) var(--jptech-space-lg);
    margin-top: var(--jptech-space-2xl);
    padding: var(--jptech-space-lg) var(--jptech-space-md) var(--jptech-space-sm);
}

html.page-index body.cust-help .article > .article__heading {
    order: 1;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
}

html.page-index body.cust-help .article > .article__heading a {
    padding: 0;
    color: var(--jptech-navy-dark);
    text-decoration: none;
}

html.page-index body.cust-help .article > .article__heading a:hover {
    text-decoration: underline;
}

html.page-index body.cust-help .article > .article__heading .icon-in-circle {
    display: none;
}

/* Stock's `.article__heading a .icon-in-circle + span { margin-left: 8px }`
 * spaced the text from that disc and left the heading 8px in from the rule and
 * the lists below it. */
html.page-index body.cust-help .article > .article__heading a .icon-in-circle + span {
    margin-left: 0;
}

html.page-index body.cust-help .article > .article__footer {
    order: 2;
    margin: 0;
    padding: 0;
}

/* The one stock knowledge base link, drawn as a text link with an arrow. */
html.page-index body.cust-help .article > .article__footer .btn {
    min-height: var(--jptech-target);
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--jptech-green);
    font-weight: 600;
    text-decoration: none;
}

html.page-index body.cust-help .article > .article__footer .btn:hover {
    background: transparent;
    text-decoration: underline;
}

html.page-index body.cust-help .article > .article__footer .btn::after {
    content: "\2192" / "";
}

html.page-index body.cust-help .article > .tabbed__head,
html.page-index body.cust-help .article > .tabbed__tabs {
    display: none;
}

html.page-index body.cust-help .jptech-kb-groups {
    order: 3;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: var(--jptech-space-2xl);
    border-top: 3px solid var(--jptech-navy-dark);
    margin-top: var(--jptech-space-sm);
}

body.cust-help .jptech-kb-group__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--jptech-space-xs) var(--jptech-space-md);
    margin: 0;
    padding: var(--jptech-space-lg) 0 var(--jptech-space-sm);
    border-bottom: 1px solid var(--jptech-hairline);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.cust-help .jptech-kb-group__title a {
    color: var(--jptech-navy-dark);
    text-decoration: none;
}

body.cust-help .jptech-kb-group__title a:hover {
    text-decoration: underline;
}

body.cust-help .jptech-kb-group__count {
    color: var(--jptech-muted);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}

body.cust-help .jptech-kb-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.cust-help .jptech-kb-list > li + li {
    border-top: 1px solid var(--jptech-hairline);
}

body.cust-help .jptech-kb-item {
    display: flex;
    flex-direction: column;
    gap: var(--jptech-space-xs);
    padding: var(--jptech-space-md) 0;
    text-decoration: none;
}

body.cust-help .jptech-kb-item__title {
    color: var(--jptech-green);
    font-weight: 600;
}

body.cust-help .jptech-kb-item:hover .jptech-kb-item__title {
    text-decoration: underline;
}

/* Two lines of plain preview, then an ellipsis. */
body.cust-help .jptech-kb-item__preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: var(--jptech-muted);
    font-size: 0.875rem;
}

/* The administration link moved to the footer band, which prints it only on
 * the request where stock printed this one. */
html.page-index body.cust-help .main__content > .contr > .article__footer {
    display: none;
}

@media (min-width: 720px) {
    html.page-index body.cust-help .help-search {
        padding: 56px 0 136px;
    }

    html.page-index body.cust-help .search__title {
        font-size: 3rem;
    }

    html.page-index body.cust-help .jptech-hero__lede {
        font-size: 1.125rem;
    }

    html.page-index body.cust-help .help-search .search__form {
        margin-top: var(--jptech-space-xl);
    }

    html.page-index body.cust-help .search__form .form-group > #kb_search,
    html.page-index body.cust-help .search__form .form-group > #search-button {
        min-height: 64px;
        font-size: 1.0625rem;
    }

    html.page-index body.cust-help .search__form .form-group > #search-button {
        padding: 0 var(--jptech-space-xl);
    }

    html.page-index body.cust-help .nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: -88px;
    }

    html.page-index body.cust-help .nav > .navlink {
        display: flex;
        flex-direction: column;
        gap: var(--jptech-space-md);
        min-height: 208px;
        padding: var(--jptech-space-xl);
    }

    html.page-index body.cust-help .nav > .navlink + .navlink {
        border-top: 0;
        border-left: 1px solid var(--jptech-hairline);
    }

    html.page-index body.cust-help .nav .navlink__title {
        font-size: 1.375rem;
    }

    html.page-index body.cust-help .main__content .article {
        margin-top: var(--jptech-space-3xl);
        padding: var(--jptech-space-xl) 40px var(--jptech-space-md);
    }

    html.page-index body.cust-help .article > .article__heading {
        font-size: 1.75rem;
    }

    html.page-index body.cust-help .jptech-kb-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   6  Actions and forms
   ========================================================================== */

body.cust-help .btn {
    border-radius: var(--jptech-radius);
    padding: var(--jptech-space-sm) var(--jptech-space-lg);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: none;
    transition: background-color var(--jptech-duration) ease,
                border-color var(--jptech-duration) ease;
}

body.cust-help .btn.btn-full {
    background: var(--jptech-green);
    color: var(--jptech-surface);
    border-color: var(--jptech-green);
}

body.cust-help .btn.btn-full:hover {
    background: var(--jptech-green-dark);
    border-color: var(--jptech-green-dark);
}

/* Look B form actions are drawn at the 48 CSS pixel control height. */
body.cust-help a.btn.btn-full,
body.cust-help button.btn.btn-full,
body.cust-help .btn--blue-border {
    min-height: var(--jptech-control);
}

body.cust-help .btn--blue-border {
    background: var(--jptech-surface);
    color: var(--jptech-navy-dark);
    border-color: var(--jptech-navy-dark);
}

body.cust-help .btn--blue-border:hover {
    background: var(--jptech-navy-soft);
}

body.cust-help .btn[disabled],
body.cust-help .btn[aria-disabled="true"],
body.cust-help button[disabled] {
    background: var(--jptech-navy-soft);
    color: var(--jptech-muted-tint);
    border-color: var(--jptech-border);
    cursor: not-allowed;
}

body.cust-help .form-group {
    margin-bottom: var(--jptech-space-md);
}

body.cust-help .label {
    display: inline-block;
    font-weight: 600;
    color: var(--jptech-navy-dark);
    margin-bottom: var(--jptech-space-xs);
}

/* A required field is marked twice by the application and neither marking is
 * this layer's to replace. The control carries the native `required` attribute,
 * which is what a screen reader reports, and `css/core/0_09_forms.css` draws a
 * `*` through `.label.required:after`, which is language neutral. An override
 * here would have to be English, would not translate, and would inherit the
 * stock rule's absolute positioning on top of that.
 */

body.cust-help .form-control {
    width: 100%;
    box-sizing: border-box;
    min-height: var(--jptech-control);
    padding: var(--jptech-space-sm) var(--jptech-space-md);
    background: var(--jptech-surface);
    color: var(--jptech-ink);
    border: 1px solid var(--jptech-border);
    border-radius: var(--jptech-radius);
    box-shadow: none;
    font: inherit;
}

body.cust-help textarea.form-control {
    min-height: 8rem;
    line-height: 1.5;
}

body.cust-help .form-control::placeholder {
    color: var(--jptech-muted);
    opacity: 1;
}

/* An invalid field carries a heavier border, a tinted fill and a leading marker,
 * so the state survives greyscale, forced colours and a monochrome print.
 */
body.cust-help .form-control.isError,
body.cust-help .form-control[aria-invalid="true"] {
    border-width: 2px;
    border-color: var(--jptech-danger);
    background: var(--jptech-danger-soft);
}

body.cust-help .form-control.isNotice {
    border-width: 2px;
    border-color: var(--jptech-caution);
    background: var(--jptech-caution-soft);
}

body.cust-help .form-footer {
    display: flex;
    flex-wrap: wrap;
    gap: var(--jptech-space-md);
    align-items: center;
    margin-top: var(--jptech-space-lg);
}

body.cust-help select.form-control,
body.cust-help .cat-select {
    /* The stock chevron is a background image on a fixed-width field. Keeping the
     * padding but letting the field be fluid is what makes it survive 320.
     */
    max-width: 100%;
}

/* ==========================================================================
   7  Notices, validation and status
   ========================================================================== */

body.cust-help .notification {
    border: 1px solid var(--jptech-hairline);
    border-left-width: 6px;
    border-radius: var(--jptech-radius);
    box-shadow: none;
    padding: var(--jptech-space-md);
    background: var(--jptech-surface);
    color: var(--jptech-ink);
}

body.cust-help .notification p {
    margin: 0 0 var(--jptech-space-sm);
}

body.cust-help .notification p:last-child {
    margin-bottom: 0;
}

/* The kind of a notice is already stated twice by the application, in the
 * reader's own language: `customer/util/alerts.php` maps HESK's five message
 * styles onto role="alert", role="status" and role="log", and prints the
 * translated title as the leading bold line. Neither of those is this layer's to
 * add, and neither of them is visible.
 *
 * What the stock classes carry for a sighted reader is a fill and a border
 * colour, and in forced colours all four collapse onto one system colour. So
 * each variant also draws a different left border *style*. A style is not a
 * colour: it survives forced colours, greyscale and a monochrome printout, and
 * it needs no generated English to do it.
 */
body.cust-help .notification.red {
    background: var(--jptech-danger-soft);
    border-color: var(--jptech-danger);
    border-left-style: double;
    border-left-width: 8px;
    color: var(--jptech-ink);
}

body.cust-help .notification.orange {
    background: var(--jptech-caution-soft);
    border-color: var(--jptech-caution);
    border-left-style: dashed;
}

body.cust-help .notification.green {
    background: var(--jptech-green-soft);
    border-color: var(--jptech-success);
    border-left-style: solid;
}

body.cust-help .notification.blue,
body.cust-help .notification.white {
    background: var(--jptech-navy-soft);
    border-color: var(--jptech-navy);
    border-left-style: dotted;
}

body.cust-help .notification.red b,
body.cust-help .notification.red strong {
    color: var(--jptech-danger-ink);
}

body.cust-help .notification.orange b,
body.cust-help .notification.orange strong {
    color: var(--jptech-caution-ink);
}

body.cust-help .notice-flash {
    margin-bottom: var(--jptech-space-md);
}

/* Ticket status. The meaning is the word HESK already printed, translated, from
 * whichever status set the installation is configured with. This is only the
 * container for it: one neutral bordered chip that separates the value from the
 * dense text around it in the ticket list and on the ticket page.
 *
 * There is deliberately no per-status variant. `inc/statuses.inc.php` seeds six
 * defaults and then loads every row of the `custom_statuses` table over the top,
 * keyed by identifier, so an administrator can add, rename or repurpose one at
 * any time. A rule that drew identifier 3 as a green tick would sooner or later
 * put a resolved-looking tick beside a status that means something else, and the
 * customer would have no way to tell.
 */
body.cust-help .jptech-status {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--jptech-space-sm);
    min-height: var(--jptech-target-min);
    border: 1px solid var(--jptech-navy);
    border-radius: var(--jptech-radius);
    /* Look B draws status as a small filled pill: white on panel navy, 11.56:1. */
    background: var(--jptech-navy);
    color: var(--jptech-surface);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ==========================================================================
   8  Tickets, conversation and attachments
   ========================================================================== */

/* Stock justifies this block, which is both a ticket message and a knowledge base
 * article body. Justified text on a desktop measure stretches the gaps between
 * words unevenly, so the body is set ragged-right like every other text column
 * on the page. */
body.cust-help .ticket__body_block {
    /* Look B: no box inside a box. A message is a section of its panel, opened
     * by a rule along the top rather than drawn as a card with a side rail. */
    border: 0;
    border-top: 3px solid var(--jptech-navy);
    border-radius: var(--jptech-radius-lg);
    padding: var(--jptech-space-md) 0;
    margin-bottom: var(--jptech-space-md);
    background: var(--jptech-surface);
    text-align: left;
}

/* A staff reply and the customer's own message open with two different rules,
 * and the From and Reply by text each one prints is the primary cue, so the
 * timeline reads without colour alone.
 */
body.cust-help .ticket__body_block.original-message {
    border-top-color: var(--jptech-green);
    background: var(--jptech-surface);
}

/* The reply form sits in a message block that already opens with the navy rule,
 * inside the white ticket panel, so it draws no box of its own: one surface. */
body.cust-help .ticket__body_block .form.form--reply {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.cust-help .ticket__body_block .block--head {
    border-bottom: 1px solid var(--jptech-hairline);
    padding-bottom: var(--jptech-space-sm);
    margin-bottom: var(--jptech-space-sm);
}

body.cust-help .row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--jptech-space-xs) var(--jptech-space-md);
    align-items: baseline;
}

body.cust-help .row .title {
    color: var(--jptech-muted);
    font-weight: 600;
    flex: 0 0 auto;
}

body.cust-help .row .value {
    min-width: 0;
}

/* A ticket message holds text a customer pasted. Anything unbroken in it -- a
 * URL, a log line, a base64 blob -- must wrap rather than widen the page.
 */
body.cust-help .ticket__body_block,
body.cust-help .message,
body.cust-help .jptech-usertext {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.cust-help .ticket__body_block pre,
body.cust-help .ticket__body_block code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 100%;
}

/* Attachment names come from the customer and can be long, right-to-left or full
 * of markup characters. HESK escapes them; this makes sure they also fit.
 */
body.cust-help .attachment,
body.cust-help .dz-filename,
body.cust-help .dz-details,
body.cust-help a[href*="download_attachment.php"] {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    display: inline-block;
}

body.cust-help .dropzone {
    border: 2px dashed var(--jptech-border);
    border-radius: var(--jptech-radius);
    background: var(--jptech-paper);
    min-height: var(--jptech-target);
}

/* ==========================================================================
   9  Tables, pagination and long content
   ========================================================================== */

/* A ticket list is a table and stays one, because the relationships are real.
 * The scroll region is scoped to the table, labelled and reachable by keyboard,
 * so the page itself never scrolls sideways.
 */
body.cust-help .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.cust-help .table-wrap:focus-visible {
    outline: var(--jptech-focus-width) solid var(--jptech-focus);
    outline-offset: var(--jptech-focus-offset);
}

body.cust-help table.table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

body.cust-help table.table th,
body.cust-help table.table td {
    text-align: left;
    padding: var(--jptech-space-sm) var(--jptech-space-md);
    border-bottom: 1px solid var(--jptech-hairline);
    vertical-align: top;
}

/* Look B table head: structure navy with white text, 14.97:1. */
body.cust-help table.table thead th {
    background: var(--jptech-navy-dark);
    color: var(--jptech-surface);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.cust-help table.table thead th a {
    color: var(--jptech-surface);
}

body.cust-help table.table thead th a:focus-visible {
    outline-color: var(--jptech-focus-on-dark);
}

body.cust-help table.table tbody tr:nth-child(even) {
    background: var(--jptech-surface);
}

body.cust-help table.table tbody tr:hover {
    background: var(--jptech-green-soft);
}

/* The stock template marks an unread ticket row with class "new" and nothing
 * else. A weight and a leading rule give it a second cue.
 */
body.cust-help table.table tbody tr.new td:first-child {
    border-left: 4px solid var(--jptech-green);
}

body.cust-help table.table tbody tr.new {
    font-weight: 600;
}

body.cust-help .pagination__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--jptech-space-xs);
    list-style: none;
    margin: var(--jptech-space-md) 0;
    padding: 0;
}

body.cust-help .pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--jptech-target);
    min-height: var(--jptech-target);
    padding-inline: var(--jptech-space-sm);
    border: 1px solid var(--jptech-hairline);
    border-radius: var(--jptech-radius);
    background: var(--jptech-surface);
    color: var(--jptech-navy-dark);
    text-decoration: none;
}

/* The current page is not only filled differently: it is bolder and it carries
 * a marker, which is what survives greyscale and forced colours.
 */
body.cust-help .pagination__item.is-current .pagination__link {
    background: var(--jptech-navy-dark);
    border-color: var(--jptech-navy-dark);
    color: var(--jptech-surface);
    font-weight: 700;
    text-decoration: underline;
}

/* Every long single token anywhere in the reading column. Below 400 CSS pixels
 * this is the difference between a readable page and a horizontal scrollbar.
 */
body.cust-help .main__content {
    overflow-wrap: break-word;
}

/* HESK's customer detail affordance is a native disclosure in this layer. The
 * browser owns keyboard operation and open state. Its list deliberately does
 * not use HESK's `.dropdown-list` class, because the stock jQuery controller
 * injects inline hidden state into every element with that class. The rules
 * below reproduce the accepted desktop geometry with HESK's own theme tokens
 * while keeping this disclosure outside that legacy controller.
 */
body.cust-help details.dropdown.customer {
    display: inline-flex;
}

body.cust-help details.dropdown.customer > summary.label {
    list-style: none;
    white-space: nowrap;
}

body.cust-help details.dropdown.customer > summary.label::-webkit-details-marker {
    display: none;
}

body.cust-help .dropdown.customer > .customer-details-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--dropdown_list__border-clr);
    border-radius: var(--jptech-radius);
    box-shadow: none;
    background-color: var(--dropdown_list__bg);
}

body.cust-help details.dropdown.customer[open] > .customer-details-list {
    display: block;
}

body.cust-help .dropdown.customer > .customer-details-list > li {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    color: var(--dropdown_list_item__clr);
    font-family: var(--jptech-font-body);
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.57;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

body.cust-help .dropdown.customer > .customer-details-list .title {
    min-width: 36px;
    margin-right: 8px;
    color: var(--gray-2);
}

body.cust-help .dropdown.customer > .customer-details-list .value {
    color: var(--gray-7);
    font-weight: 400;
}

body.cust-help .dropdown.customer > .customer-details-list a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 16px !important;
    color: var(--theme-color-dark-2) !important;
}

body.cust-help details.dropdown.customer[open] > summary.label .icon-chevron-down {
    transform: rotate(180deg);
}

body.cust-help details.dropdown.customer > summary.label:focus-visible {
    outline: var(--jptech-focus-width) solid var(--jptech-focus);
    outline-offset: var(--jptech-focus-offset);
}

/* No email means no disclosure. These classes intentionally do not inherit
 * HESK's dropdown hover, shadow, pointer or label-control treatment.
 */
body.cust-help .customer-static {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    margin-left: 8px;
    cursor: default;
}

body.cust-help .customer-static > .customer-identity {
    display: flex;
    align-items: center;
    min-height: 2em;
    padding: 0 12px;
    color: var(--dropdown_label__clr);
    white-space: nowrap;
    cursor: default;
}

body.cust-help .customer-static > .customer-identity > span {
    font-weight: 700;
}

body.cust-help .customer-static .icon-person {
    margin-top: -1px;
    margin-right: 4px;
}

/* HESK's print links are icon-only on the accepted desktop. The transform also
 * carries the existing translated label so a narrow layout can make the action
 * explicit without authoring a word or changing the desktop presentation.
 */
body.cust-help .jptech-print-label {
    display: none;
}

/* ==========================================================================
   10  Mobile refinements below 640 CSS pixels
   ========================================================================== */

/* Everything in this section is an override of the sections above it, and every
 * one of them is confined to this query. The desktop ticket view is accepted as
 * it stands, so the ceiling is a boundary rather than a preference: at 640 CSS
 * pixels and above nothing in here applies and the accepted rules are what run.
 *
 * `639.98px` rather than `639px` because a viewport width can be fractional
 * under zoom or on a scaled display, and a `639px` ceiling beside a `640px`
 * floor leaves the widths between them described by neither.
 *
 * The dense task view does not want the 20 CSS pixel feature radius on a narrow
 * screen: at that width the corner is a large proportion of the card and the
 * surfaces read as nested lozenges rather than as a conversation.
 */
/* The approved real-submit spacing fix also applies at tablet and desktop. */
    body.cust-help .search__form .form-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 0;
        min-width: 0;
        max-width: 100%;
    }

    body.cust-help .search__form .form-group > .search__submit {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        width: var(--jptech-target);
        height: var(--jptech-target);
        min-width: var(--jptech-target);
        min-height: var(--jptech-target);
        margin: 0 var(--jptech-space-xs) 0 0;
        padding: 0;
        box-sizing: border-box;
        z-index: 2;
    }

    /* Reserve the icon's box and the generic clear control's box even while the
     * clear control is absent or transparent. A value and its placeholder can
     * therefore reach neither control. If HESK adds `.search-clear` to this form,
     * it sits immediately before the submit instead of occupying the same pixels.
     */
    body.cust-help .search__form .form-group > #kb_search {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        padding: 17px calc(var(--jptech-target) + var(--jptech-target) + var(--jptech-space-md)) 17px var(--jptech-space-md);
        box-sizing: border-box;
    }

    body.cust-help .search__form .form-group > .search-clear {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        width: var(--jptech-target);
        height: var(--jptech-target);
        min-width: var(--jptech-target);
        min-height: var(--jptech-target);
        margin-right: calc(var(--jptech-target) + var(--jptech-space-xs));
        box-sizing: border-box;
        z-index: 3;
    }

    /* Stock fixes this optional `.btn-full` button to 40 CSS pixels with an
     * important height. A normal min-height is a separate sizing constraint, so
     * it raises the used box to the target without escalating importance.
     */
    body.cust-help .search__form .form-group > #search-button {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        min-height: var(--jptech-target);
        margin: 0 0 0 var(--jptech-space-sm);
        box-sizing: border-box;
    }


body.cust-help .jptech-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--jptech-space-md);
    margin-block: var(--jptech-space-md);
}
body.cust-help .jptech-article-actions a {
    display: inline-flex;
    align-items: center;
    min-height: var(--jptech-target);
    overflow-wrap: anywhere;
}

/* The ticket details heading is a title and a refresh link in a sidebar about a
 * third of the content width. Stock lets both shrink, and the pill padding every
 * `.btn` gets from this layer squeezed them further, so "Ticket details" and
 * "Refresh this page" each broke over two lines beside each other. Each part now
 * stays on one line and the pair wraps as whole items when the column is too
 * narrow. The refresh link is a text link inside the heading, not a pill. */
body.cust-help .ticket__params .params--block .accordion-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--jptech-space-xs) var(--jptech-space-md);
}

body.cust-help .ticket__params .params--block .accordion-title > span {
    white-space: nowrap;
}

body.cust-help .ticket__params .params--block .accordion-title .btn.link {
    padding: 0;
    border: 0;
    border-radius: 0;
    font-weight: 400;
    white-space: nowrap;
}

/* The customer status action, "Mark as resolved" or "Open ticket". HESK prints it
 * as a bare link in the one `.value.center` cell of the details list, and it is
 * the only action in that list, so it is drawn as the secondary button the rest
 * of the layer uses rather than as underlined text. */
body.cust-help .ticket__params .row .value.center > a.link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--jptech-target);
    padding: var(--jptech-space-xs) var(--jptech-space-md);
    border: 1px solid var(--jptech-navy-dark);
    border-radius: var(--jptech-radius);
    color: var(--jptech-navy-dark);
    font-weight: 700;
    text-decoration: none;
}

body.cust-help .ticket__params .row .value.center > a.link:hover {
    background-color: var(--jptech-navy);
    color: var(--jptech-surface);
}

@media (max-width: 639.98px) {
    /* The search icon is the submit button HESK actually renders before the
     * input. Stock absolutely positions it 24 CSS pixels from the left, while
     * this layer's old `#search-button` rule addresses a separate optional text
     * button. A shared grid cell overlays the real submit at the input's right
     * edge without taking it out of the form layout. The optional text button,
     * when configured, owns the second column and its leading space so an empty
     * second column does not leave a gap when that button is absent.
     */
    body.cust-help .search__form .form-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 0;
        min-width: 0;
        max-width: 100%;
    }

    body.cust-help .search__form .form-group > .search__submit {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        width: var(--jptech-target);
        height: var(--jptech-target);
        min-width: var(--jptech-target);
        min-height: var(--jptech-target);
        margin: 0 var(--jptech-space-xs) 0 0;
        padding: 0;
        box-sizing: border-box;
        z-index: 2;
    }

    /* Reserve the icon's box and the generic clear control's box even while the
     * clear control is absent or transparent. A value and its placeholder can
     * therefore reach neither control. If HESK adds `.search-clear` to this form,
     * it sits immediately before the submit instead of occupying the same pixels.
     */
    body.cust-help .search__form .form-group > #kb_search {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        padding: 17px calc(var(--jptech-target) + var(--jptech-target) + var(--jptech-space-md)) 17px var(--jptech-space-md);
        box-sizing: border-box;
    }

    body.cust-help .search__form .form-group > .search-clear {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        width: var(--jptech-target);
        height: var(--jptech-target);
        min-width: var(--jptech-target);
        min-height: var(--jptech-target);
        margin-right: calc(var(--jptech-target) + var(--jptech-space-xs));
        box-sizing: border-box;
        z-index: 3;
    }

    /* Stock fixes this optional `.btn-full` button to 40 CSS pixels with an
     * important height. A normal min-height is a separate sizing constraint, so
     * it raises the used box to the target without escalating importance.
     */
    body.cust-help .search__form .form-group > #search-button {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        min-height: var(--jptech-target);
        margin: 0 0 0 var(--jptech-space-sm);
        box-sizing: border-box;
    }

    /* A category view prints a later page-level `.topics__block { width: ... }`
     * rule from the configured desktop column count. This selector's 0,3,1
     * specificity beats that normal 0,1,0 rule even though the page-level style
     * follows the overlay; the full flex basis keeps one category on each row.
     */
    body.cust-help .topics {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.cust-help .topics > .topics__block {
        width: 100%;
        flex: 0 0 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: var(--jptech-space-md);
    }

    body.cust-help .topics > .topics__block > .topics__title {
        align-items: flex-start;
        gap: var(--jptech-space-sm);
        min-width: 0;
        max-width: 100%;
    }

    body.cust-help .topics > .topics__block > .topics__title > .icon {
        margin-right: 0;
        flex: 0 0 auto;
    }

    body.cust-help .topics > .topics__block > .topics__title > span {
        min-width: 0;
        max-width: 100%;
    }

    body.cust-help .topics > .topics__block > .topics__title .title-link {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        min-height: var(--jptech-target);
        max-width: 100%;
        padding-block: var(--jptech-space-xs);
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    body.cust-help .topics > .topics__block > .topics__list {
        min-width: 0;
        max-width: 100%;
        padding-left: var(--jptech-space-lg);
        box-sizing: border-box;
    }

    body.cust-help .topics > .topics__block > .topics__list > li {
        min-width: 0;
        max-width: 100%;
    }

    body.cust-help .topics > .topics__block > .topics__list > li > a {
        align-items: center;
        min-height: var(--jptech-target);
        margin: 0;
        padding-block: var(--jptech-space-xs);
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* The stock tab labels each demand at least 150 CSS pixels before their
     * horizontal padding, so two cannot fit the 320 CSS pixel floor. They share
     * one shrinkable row here, and each remains a 44 CSS pixel target.
     */
    body.cust-help .tabbed__head .tabbed__head_tabs {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    body.cust-help .tabbed__head .tabbed__head_tabs > li {
        flex: 1 1 0;
        min-width: 0;
        min-height: var(--jptech-target);
        padding: var(--jptech-space-xs) var(--jptech-space-sm);
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Stock wraps the icon onto one row and gives the text a full-width row at
     * 580 CSS pixels. Two explicit columns keep the icon aligned with the title
     * while the text owns the only shrinkable track. Optional view and rating
     * metadata follows the text, not the icon, and may wrap without widening the
     * card.
     */
    body.cust-help .tabbed__tabs .preview {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: var(--jptech-space-xs) var(--jptech-space-sm);
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: var(--jptech-space-sm);
        box-sizing: border-box;
    }

    body.cust-help .tabbed__tabs .preview > .icon-in-circle {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        margin: 0;
    }

    body.cust-help .tabbed__tabs .preview > .preview__text {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        min-width: 0;
        max-width: 100%;
    }

    body.cust-help .tabbed__tabs .preview > .rate {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        min-width: 0;
        max-width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    body.cust-help .tabbed__tabs .preview .preview__title {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* The two task-card pages take one balanced track on a phone. The card
     * width reset that fills the track is in section 2, because the same stock
     * geometry is wrong on the desktop too.
     */
    html.page-index body.cust-help .nav,
    html.page-category-select body.cust-help .nav {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
    }

    /* The new-ticket heading and the tip that follows it.
     *
     * Stock gives the form heading `margin: 0 0 32px` and pulls the adjacent
     * tip up by the same 32 CSS pixels, so the pair nets to nothing. Section 2
     * of this stylesheet sets `body.cust-help h1 { margin: 0 0 16px }`, which
     * outranks the single-class stock rule, and the stock offset is left
     * untouched underneath it. Sixteen against minus thirty two nets to minus
     * sixteen: the tip is drawn *into* the heading, and at 320 CSS pixels the
     * heading has just wrapped onto a second line to meet it.
     *
     * So the offset is replaced rather than counteracted, and the heading is
     * restated as what it already is on the page: two items, a decorative icon
     * and the translated title, which may take a line each when there is not
     * room for both. Nothing is positioned out of flow, nothing is given a
     * pixel width and nothing is hidden, so a longer translation or a reader at
     * 200 percent text size gets more lines rather than a collision.
     */
    html.page-create-ticket body.cust-help h1.article__heading--form {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: var(--jptech-space-sm);
        margin: 0 0 var(--jptech-space-sm);
        min-width: 0;
        max-width: 100%;
    }

    /* The title is a flex item now, so the 8 CSS pixel left margin stock gives
     * it would sit beside the gap and push a wrapped title off centre.
     */
    html.page-create-ticket body.cust-help h1.article__heading--form > .ml-1 {
        margin-left: 0;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* The tip is a centred flex row carrying a sentence and the required-field
     * marker. It wraps rather than overflowing, and the marker keeps its room:
     * stock draws it with `content: "*"` on an empty span, absolutely placed at
     * `right: -.5em`, so a marker on a full line would otherwise hang past the
     * text it belongs to.
     */
    html.page-create-ticket body.cust-help .article-heading-tip {
        flex-wrap: wrap;
        align-items: center;
        min-width: 0;
        max-width: 100%;
    }

    html.page-create-ticket body.cust-help .article-heading-tip .label.required {
        margin-right: 1em;
    }

    body.cust-help .ticket,
    body.cust-help .ticket__body_block,
    body.cust-help .form.form--reply {
        border-radius: var(--jptech-radius-sm);
    }

    /* Containment is stated along the whole chain rather than at the one place
     * an escape was noticed. Each of these boxes is allowed to be narrower than
     * what it holds and forbidden from exceeding what holds it, so a value that
     * cannot fit is wrapped by the box it is in instead of being handed outward
     * until the page itself is wider than the screen.
     */
    body.cust-help .ticket,
    body.cust-help .ticket__body,
    body.cust-help .ticket__body_block,
    body.cust-help .form.form--reply,
    body.cust-help .ticket__params {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* The leaves that carry customer text: a detail value, the head of a message
     * with its author and time, and an attachment row with its filename.
     */
    body.cust-help .ticket__params .row .value,
    body.cust-help .ticket__body_block .block--head,
    body.cust-help .attachment-row,
    body.cust-help .dz-filename {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* Look B draws the same top rule at every width (section 8), so a phone
     * needs only to keep the body ragged-right here.
     */
    body.cust-help .ticket__body_block {
        border-top: 3px solid var(--jptech-navy);
        text-align: left;
    }

    body.cust-help .ticket__body_block.original-message {
        border-top-color: var(--jptech-green);
    }

    /* The message head puts `From`, the customer disclosure and the time on one
     * line. There is room for that at 640 CSS pixels and none at 320, where the
     * same rule is what pushes the name past the card edge. One column, a row
     * each, and every part allowed to shrink below its content width: a flex or
     * grid child defaults to `min-width: auto`, which is the usual reason a
     * long email widens its parent instead of wrapping inside it.
     */
    body.cust-help .block--head .d-flex {
        flex-wrap: wrap;
        min-width: 0;
        max-width: 100%;
    }

    /* Every message head uses the same outer two-column grid. The metadata
     * wrapper takes the flexible column and Print takes the fixed one beside
     * it, both starting at the top, so a name that wraps lengthens its own
     * column instead of moving the control that prints the ticket.
     */
    body.cust-help .ticket__body_block .block--head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: var(--jptech-space-xs) var(--jptech-space-sm);
        text-align: left;
    }

    body.cust-help .ticket__body_block .block--head > .d-flex {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    /* `Reply by`, the person and the moment are three lines at this width, not
     * one. The transform names each part, because two of the four were bare
     * text nodes that a stylesheet could only place by their position in an
     * implicit track, which is what left the name starting after the label and
     * wrapping towards the centre. One column of stated rows puts all three at
     * the same left edge; the height stays automatic because wrapped customer
     * text is taller than the line it was written for.
     */
    body.cust-help .ticket__body_block .block--head > .d-flex > .contact {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        row-gap: var(--jptech-space-xs);
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-right: 0;
    }

    body.cust-help .ticket__body_block .block--head > .d-flex > .contact > .jptech-reply-by {
        grid-column: 1;
        grid-row: 1;
    }

    body.cust-help .ticket__body_block .block--head > .d-flex > .contact > .jptech-reply-author {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        margin: 0;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* A `»` between two stacked rows separates nothing. It stays in the markup
     * and stays visible on the accepted desktop, where the parts are one line.
     */
    body.cust-help .ticket__body_block .block--head > .d-flex > .contact > .jptech-reply-separator {
        display: none;
    }

    body.cust-help .ticket__body_block .block--head > .d-flex > .contact > .jptech-reply-time {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        margin: 0;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    body.cust-help .ticket__body_block .block--head > a.btn.btn-action {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: start;
        width: auto;
        min-height: var(--jptech-target);
        padding-inline: var(--jptech-space-sm);
    }

    body.cust-help .ticket__body_block .block--head > a.btn.btn-action > .jptech-print-label {
        display: inline;
    }

    body.cust-help .contact.grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--jptech-space-xs);
        min-width: 0;
        max-width: 100%;
    }

    body.cust-help .ticket__body_block .block--head .contact.grid .requester-header,
    body.cust-help .ticket__body_block .block--head .contact.grid .requester,
    body.cust-help .ticket__body_block .block--head .contact.grid .cc-header,
    body.cust-help .ticket__body_block .block--head .contact.grid .cc {
        grid-column: 1 / -1;
        grid-row: auto;
        min-width: 0;
        max-width: 100%;
    }

    body.cust-help .ticket__body_block .block--head .contact.grid .requester {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: var(--jptech-space-xs);
    }

    /* The submitted message is different from a reply. Its generic wrappers do
     * not carry semantics, so their children may join the outer grid directly:
     * From and Print lead, the full-width disclosure follows, then the time.
     */
    body.cust-help .ticket__body_block.original-message .block--head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: var(--jptech-space-xs) var(--jptech-space-sm);
        text-align: left;
    }

    body.cust-help .ticket__body_block.original-message .block--head > .d-flex,
    body.cust-help .ticket__body_block.original-message .block--head .contact.grid {
        display: contents;
    }

    body.cust-help .ticket__body_block.original-message .block--head .contact.grid .requester-header {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        min-width: 0;
        max-width: 100%;
        text-align: left;
    }

    body.cust-help .ticket__body_block.original-message .block--head .contact.grid .requester {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-column: 1 / -1;
        grid-row: 2;
        gap: var(--jptech-space-xs);
        min-width: 0;
        max-width: 100%;
        font-size: 0;
    }

    body.cust-help .ticket__body_block.original-message .contact.grid .requester > .dropdown.customer,
    body.cust-help .ticket__body_block.original-message .contact.grid .requester > .customer-static {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        font-size: 14px;
    }

    body.cust-help .ticket__body_block.original-message .contact.grid .requester > time {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        margin: 0;
        font-size: 14px;
        white-space: nowrap;
    }

    body.cust-help .ticket__body_block.original-message .block--head .contact.grid .cc-header {
        grid-column: 1 / -1;
        grid-row: 3;
        min-width: 0;
        max-width: 100%;
        text-align: left;
    }

    body.cust-help .ticket__body_block.original-message .block--head .contact.grid .cc {
        grid-column: 1 / -1;
        grid-row: 4;
        min-width: 0;
        max-width: 100%;
    }

    body.cust-help .ticket__body_block.original-message .block--head > a.btn.btn-action {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    /* The disclosure that opens the customer's details is operated by a thumb,
     * so it is the width of the row and no shorter than the 44 CSS pixels this
     * project designs to. The icon and the chevron keep their intrinsic widths;
     * the name takes the one track that may be narrower than its own text, so a
     * long name wraps inside the card instead of widening it.
     */
    body.cust-help .ticket__body_block .block--head .contact .dropdown.customer {
        display: block;
        width: 100%;
        margin-left: 0;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.cust-help .ticket__body_block .block--head .contact .dropdown.customer > summary.label {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: var(--jptech-space-xs);
        width: 100%;
        /* Stock HESK sets this customer label to 2em !important. */
        min-height: var(--jptech-target) !important;
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body.cust-help .ticket__body_block .block--head .contact .customer-static {
        display: block;
        width: 100%;
        margin-left: 0;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.cust-help .ticket__body_block .block--head .contact .customer-static > .customer-identity {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: var(--jptech-space-xs);
        width: 100%;
        min-height: var(--jptech-target);
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Out of flow, the open list is measured against the viewport and sized to
     * the longest address it holds, which is exactly the overflow Joseph saw.
     * Back in flow it is measured against the card, so opening it makes the
     * page longer rather than wider. Reset the offsets and any transform with
     * it, or the static box is still displaced by whatever the stock rules set.
     */
    body.cust-help .ticket__body_block .block--head .contact .dropdown.customer > .customer-details-list {
        position: static;
        inset: auto;
        transform: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.cust-help .ticket__body_block .block--head .contact .dropdown.customer > .customer-details-list > li {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        height: auto;
        min-height: var(--jptech-target);
        padding-block: var(--jptech-space-xs);
        min-width: 0;
        max-width: 100%;
        white-space: normal;
    }

    /* An address that does not fit the column breaks inside itself. The other
     * answers, which are an ellipsis or a hidden overflow, both amount to not
     * showing the customer their own contact details.
     */
    body.cust-help .ticket__body_block .block--head .contact .dropdown.customer > .customer-details-list a {
        display: flex;
        align-items: center;
        height: auto;
        min-height: var(--jptech-target);
        white-space: normal;
    }

    body.cust-help .ticket__body_block .block--head .contact .dropdown.customer > .customer-details-list .title,
    body.cust-help .ticket__body_block .block--head .contact .dropdown.customer > .customer-details-list .value,
    body.cust-help .ticket__body_block .block--head .contact .dropdown.customer > .customer-details-list a {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    body.cust-help .dropzone + .fileinput-button {
        margin-top: var(--jptech-space-sm);
    }
}

/* ==========================================================================
   11  Motion, forced colours and print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    body.cust-help *,
    body.cust-help *::before,
    body.cust-help *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}

/* Forced colours: hand every colour decision back to the operating system and
 * keep only the parts that carry meaning, which are the shapes.
 *
 * There is no `forced-color-adjust: none` here on purpose. That property tells
 * the browser to keep the author's colours on an element, which is the exact
 * opposite of what somebody who turned forced colours on asked for. The default
 * mapping is what should run; all this block does is make sure a surface that
 * was distinguished only by its fill still has an edge once every fill is the
 * same, and that the left border style each notice kind carries is drawn.
 */
@media (forced-colors: active) {
    body.cust-help .notification,
    body.cust-help .navlink,
    body.cust-help .preview,
    body.cust-help .article,
    body.cust-help .ticket,
    body.cust-help .form,
    body.cust-help .jptech-status,
    body.cust-help .pagination__link {
        border: 1px solid;
    }

    /* A field is not the page. `Canvas`/`CanvasText` would paint an input in the
     * page colours and remove the one boundary that says it can be typed into;
     * `Field`/`FieldText` is the system pair for exactly this surface.
     */
    body.cust-help .form-control {
        border: 1px solid;
        background: Field;
        color: FieldText;
    }

    /* The notice kinds keep their distinct left border styles: the widths and
     * styles survive, only the colours are replaced.
     */
    body.cust-help .notification.red { border-left-style: double; border-left-width: 8px; }
    body.cust-help .notification.orange { border-left-style: dashed; border-left-width: 6px; }
    body.cust-help .notification.green { border-left-style: solid; border-left-width: 6px; }
    body.cust-help .notification.blue,
    body.cust-help .notification.white { border-left-style: dotted; border-left-width: 6px; }

    body.cust-help a:focus-visible,
    body.cust-help button:focus-visible,
    body.cust-help input:focus-visible,
    body.cust-help select:focus-visible,
    body.cust-help textarea:focus-visible {
        outline: 3px solid Highlight;
        outline-offset: 2px;
    }

    body.cust-help .icon {
        fill: CanvasText;
    }

    body.cust-help .form-control.isError,
    body.cust-help .form-control[aria-invalid="true"] {
        border: 3px solid;
    }
}

@media print {
    body.cust-help .header,
    body.cust-help .breadcrumbs,
    body.cust-help .skiplink,
    body.cust-help .kb-suggestions,
    body.cust-help .pagination__list {
        display: none !important;
    }

    body.cust-help,
    body.cust-help .article,
    body.cust-help .ticket,
    body.cust-help .ticket__body_block {
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
        border-color: #000000 !important;
    }

    /* Status must remain legible on a greyscale printout, so the chip keeps its
     * border and its generated marker and loses only its fill.
     */
    body.cust-help .jptech-status {
        background: transparent !important;
        border: 2px solid #000000 !important;
        color: #000000 !important;
    }

    /* A printed page loses every href, so the destination is printed with it.
     * Ticket links are the reason a customer prints one of these pages at all.
     */
    body.cust-help .main__content a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        word-break: break-all;
    }
}
