.support-page {
    --support-container-width: min(calc(100% - 1.5rem), 86rem);
}

.support-page .dlines-commerce-header .header-inner,
.support-page .support-main {
    box-sizing: border-box;
    width: var(--support-container-width);
    max-width: 86rem;
    margin-inline: auto;
}

.support-main {
    overflow-wrap: anywhere;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-block-start: 1rem;
}

.support-main .support-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
    margin: 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--dl-border, #e4e7ec);
    border-radius: var(--dl-card-radius, .75rem);
    background: var(--dl-surface, #fff);
}

.support-card h3,
.support-card p {
    margin: 0;
}

.support-card .btn {
    box-sizing: border-box;
    max-width: 100%;
    margin-top: auto;
    white-space: normal;
    text-align: center;
}

.support-resources {
    margin-block-start: 2rem;
}

.support-resource-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1.5rem;
    padding: 0;
    list-style: none;
}

.support-resource-list span {
    display: block;
}

@media (max-width: 56rem) {
    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 38rem) {
    .support-grid,
    .support-resource-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Centralised support desk (tickets, tracking, KB) ---------- */
.support-main { padding-block: 1rem 3rem; }
.support-breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .82rem; color: #5A6A8C; margin: .4rem 0 1rem; }
.support-breadcrumb a { color: #2563EB; font-weight: 650; text-decoration: none; }
.support-breadcrumb a:hover { text-decoration: underline; }
.support-page-head { max-width: 54rem; margin-bottom: 1.3rem; }
.support-page-head .eyebrow, .support-form-page .eyebrow { color: #2563EB; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.support-page-head h1, .support-ticket-head h1 { margin: .35rem 0 .5rem; font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -.035em; color: #14213D; }
.support-page-head p { margin: 0; color: #4A5568; line-height: 1.65; }
.support-panel { background: #fff; border: 1px solid #E2E8F4; border-radius: .9rem; padding: clamp(1rem, 2.4vw, 1.5rem); box-shadow: 0 .4rem 1.2rem rgba(20, 33, 61, .05); margin-bottom: 1rem; min-width: 0; }
.support-panel h2 { margin: 0 0 .8rem; font-size: 1.2rem; letter-spacing: -.02em; color: #14213D; }
.support-panel h3 { margin: 1rem 0 .4rem; font-size: 1rem; color: #14213D; }
.support-muted { color: #5A6A8C; font-size: .85rem; line-height: 1.55; }
.support-form-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 1fr); gap: 1rem; align-items: start; }
.support-side { min-width: 0; }
.support-form { display: grid; gap: .9rem; }
.support-form label { display: block; font-size: .88rem; font-weight: 650; color: #2B2B2B; }
.support-form label > input, .support-form label > select, .support-form label > textarea { display: block; width: 100%; margin-top: .35rem; min-height: 2.75rem; padding: .6rem .75rem; border: 1px solid #C9D2E3; border-radius: .45rem; background: #fff; font: inherit; color: #2B2B2B; }
.support-form label > textarea { min-height: 8rem; resize: vertical; }
.support-form label > input[type="file"] { padding: .5rem; background: #FAFAF7; }
.support-form label > input:focus-visible, .support-form label > select:focus-visible, .support-form label > textarea:focus-visible { outline: 3px solid #86AEF8; outline-offset: 1px; border-color: #2563EB; }
.support-form label > em { display: block; margin-top: .2rem; font-style: normal; }
.support-form .req { color: #C2410C; font-weight: 800; }
.support-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field-error { color: #B42318; font-size: .8rem; font-weight: 650; }
.support-form button { justify-self: start; }
.support-form .btn { min-height: 2.9rem; }
.support-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.support-actions .btn { text-align: center; }
.support-toolbar { align-items: center; margin: 0 0 1rem; }
.support-filter { display: inline-flex; align-items: center; min-height: 2.4rem; padding: .35rem .8rem; border: 1px solid #D7DEEA; border-radius: 999px; color: #24304A; background: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.support-filter.is-active, .support-filter:hover { border-color: #2563EB; background: #EFF4FF; color: #1D4ED8; }
.support-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; counter-reset: step; }
.support-steps li { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: .6rem; align-items: start; }
.support-steps li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 999px; background: #2563EB; color: #fff; font-size: .78rem; font-weight: 800; }
.support-steps strong { display: block; font-size: .88rem; color: #14213D; }
.support-steps span { display: block; font-size: .82rem; color: #5A6A8C; line-height: 1.5; }
.support-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.support-links li { padding-top: .6rem; border-top: 1px solid #EEF1F7; }
.support-links li:first-child { border-top: 0; padding-top: 0; }
.support-links a { color: #1D4ED8; font-weight: 700; text-decoration: none; }
.support-links a:hover { text-decoration: underline; }
.support-links span { display: block; color: #5A6A8C; font-size: .82rem; line-height: 1.5; }
.support-confirmation { border-left: 4px solid #16A34A; }
.support-reference { font-size: 1.05rem; }
.support-reference strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #14213D; }
.support-notice { border: 1px solid #BBF7D0; background: #F0FDF4; color: #166534; padding: .7rem .9rem; border-radius: .5rem; }
.support-ticket-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.support-ticket-head p { margin: 0; }
.support-status { display: inline-flex; align-items: center; min-height: 1.7rem; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; background: #EFF4FF; color: #1D4ED8; }
.support-status-open { background: #EFF4FF; color: #1D4ED8; }
.support-status-in_progress { background: #FFF7ED; color: #9A3412; }
.support-status-waiting_customer { background: #FFFBEB; color: #92400E; }
.support-status-closed { background: #F0FDF4; color: #166534; }
.support-ticket-list { display: grid; gap: .7rem; }
.support-ticket-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin: 0; }
.support-ticket-row h2 { margin: .35rem 0 .25rem; font-size: 1.05rem; }
.support-ticket-row h2 a { color: #14213D; text-decoration: none; }
.support-ticket-row h2 a:hover { color: #2563EB; }
.support-ticket-row .support-muted { margin: 0; }
.support-empty { text-align: left; }
.support-meta { display: grid; grid-template-columns: minmax(7rem, auto) minmax(0, 1fr); gap: .45rem .8rem; margin: 0; font-size: .86rem; }
.support-meta dt { color: #5A6A8C; font-weight: 650; }
.support-meta dd { margin: 0; color: #14213D; font-weight: 650; overflow-wrap: anywhere; }
.ticket-timeline { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .8rem; }
.ticket-message { border: 1px solid #E2E8F4; border-radius: .7rem; padding: .85rem 1rem; background: #FAFAF7; }
.ticket-message-staff { background: #F5F8FF; border-color: #CFDBF5; }
.ticket-message-head { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; margin-bottom: .45rem; font-size: .8rem; }
.ticket-message-head strong { color: #14213D; }
.ticket-message-head time { color: #5A6A8C; }
.ticket-message-body { color: #2B2B2B; font-size: .92rem; line-height: 1.6; overflow-wrap: anywhere; }
.ticket-attachments { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .35rem; font-size: .84rem; }
.ticket-attachments li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.ticket-attachments a { color: #1D4ED8; font-weight: 700; }
.ticket-attachments span { color: #5A6A8C; }
.support-reply { border-top: 1px solid #EEF1F7; padding-top: 1rem; }
.support-search { display: block; margin-top: 1rem; font-size: .85rem; font-weight: 650; color: #2B2B2B; max-width: 32rem; }
.support-search input { display: block; width: 100%; margin-top: .35rem; min-height: 2.8rem; padding: .6rem .8rem; border: 1px solid #C9D2E3; border-radius: .45rem; font: inherit; }
.kb-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.kb-nav a { padding: .4rem .75rem; border: 1px solid #D7DEEA; border-radius: 999px; background: #fff; color: #24304A; font-size: .82rem; font-weight: 700; text-decoration: none; }
.kb-nav a:hover { border-color: #2563EB; color: #1D4ED8; }
.kb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.kb-item { border-top: 1px solid #EEF1F7; padding: .65rem 0; }
.kb-item:first-of-type { border-top: 0; }
.kb-item summary { cursor: pointer; font-weight: 700; color: #14213D; font-size: .92rem; }
.kb-item p { margin: .5rem 0 0; color: #4A5568; font-size: .88rem; line-height: 1.6; }
.kb-empty { margin: 1rem 0; padding: .8rem 1rem; border: 1px dashed #C9D2E3; border-radius: .6rem; color: #5A6A8C; }
.support-kb-cta { margin-top: 1.2rem; }
.support-signin { max-width: 46rem; }
@media (max-width: 62rem) { .support-form-layout { grid-template-columns: minmax(0, 1fr); } .kb-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .support-field-row { grid-template-columns: minmax(0, 1fr); } .support-actions .btn { width: 100%; } .support-meta { grid-template-columns: minmax(0, 1fr); } .support-meta dd { margin-bottom: .35rem; } }
.support-steps li > div { min-width: 0; }

/* Support resource links: consistent with the DLINES editorial link style. */
.support-resource-list a {
  color: #14213D;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid rgba(37, 99, 235, .22);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.support-resource-list a:hover,
.support-resource-list a:focus-visible {
  color: #2563EB;
  border-color: #FF6A00;
}
.support-resource-list span {
  color: #5A6472;
  font-size: .9rem;
  line-height: 1.45;
  margin-top: .18rem;
}
