/* The support pages on the classic redesign (contactos.asp): the knowledge base and the ticket steps. Needs css/club-info.css
   (cards, facts, chips, table) and css/league.css (the board-green header .lg-head). */

/* the header: where you are, then the three sections as pills */
.ct .ct-head { flex-wrap: nowrap; }
.ct-head .inf-hero__body { flex: 1 1 auto; min-width: 0; }
.inf .ct-head .inf-eyebrow { display: block; }
.inf .ct-head .inf-eyebrow a { color: #d9f08a; text-decoration: none; }
.inf .ct-head .inf-eyebrow a:hover { color: #fff; text-decoration: underline; }
.ct-nav { flex-wrap: nowrap; }
.inf .ct-nav a.inf-btn2 { gap: 6px; }
.inf .ct-nav a.inf-btn2 .ct-ico { flex: 0 0 auto; width: 18px; height: 18px; }
.inf .lg-head .ct-nav a.inf-btn2.is-on { border-color: #fff; background: #fff; color: #2f6b22; }

/* texts from the ticket translations (they bring their own <b>, <br> and span.heading) */
.ct-text { display: block; font-size: 13px; line-height: 1.55; color: #3c4732; overflow-wrap: anywhere; }
.ct-text .heading { display: inline-block; margin: 6px 0 2px; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #2e6b12; }
.ct-text .heading:first-child { margin-top: 0; }
.ct-text img { max-width: 100%; height: auto; }
.ct-lead { margin: 0 0 8px; font-size: 13px; color: #3c4732; }
.ct-err { font-weight: bold; }

/* popular articles */
.ct-pop .ct-c-n { width: 1%; padding-right: 0; color: #6b7760; text-align: end; font-variant-numeric: tabular-nums; }
.ct-pop .ct-c-t { width: 100%; font-size: 13px; overflow-wrap: anywhere; }
.ct-pop .ct-c-t a { font-weight: bold; text-decoration: none; }
.ct-pop .ct-c-t a:hover { text-decoration: underline; }
.ct-pop .ct-c-r { white-space: nowrap; }
.ct-pop .ct-c-sub { display: none; margin-top: 3px; }
.ct-pop img { vertical-align: middle; }

/* categories, two by two */
.ct-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px 14px; }
.ct-cat { min-width: 0; padding: 10px 12px; border: 1px solid #e3ecd0; border-radius: 10px; background: #f7faef; }
.inf a.ct-cat__t { display: block; font-size: 14px; font-weight: bold; text-decoration: none; overflow-wrap: anywhere; }
.inf a.ct-cat__t:hover { text-decoration: underline; }
.ct-cat__s { margin-top: 4px; font-size: 12px; line-height: 1.5; color: #3c4732; overflow-wrap: anywhere; }

/* the search box */
.ct-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.ct-search__l { font-size: 12px; font-weight: bold; color: #3c4732; }
.inf .ct-search__q { flex: 1 1 220px; max-width: 420px; }

/* an article list */
.ct-arts { margin: 0; padding: 0; list-style: none; }
.ct-arts li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 0; border-top: 1px solid #eef2e6; font-size: 13px; }
.ct-arts li:first-child { border-top: 0; }
.ct-arts__n { flex: 0 0 auto; min-width: 22px; color: #6b7760; text-align: end; font-variant-numeric: tabular-nums; }
.ct-arts img { flex: 0 0 auto; width: 16px; height: 16px; object-fit: contain; }
.ct-arts a { min-width: 0; font-weight: bold; text-decoration: none; overflow-wrap: anywhere; }
.ct-arts a:hover { text-decoration: underline; }

/* the article: rating and views, the answer, the vote */
.ct-art .inf-card__body { gap: 10px; }
.ct-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-bottom: 8px; border-bottom: 1px dashed #d6e4b5; font-size: 12px; }
.ct-meta__i { display: inline-flex; align-items: center; gap: 6px; }
.ct-meta img { vertical-align: middle; }
.ct-art__text { font-size: 14px; }
.ct-vote { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed #d6e4b5; }
.ct-vote__q { margin-right: 4px; font-size: 13px; font-weight: bold; color: #23301a; }
.inf .ct-vote__b { display: inline-flex; align-items: center; min-height: 30px; margin: 0; padding: 3px 14px; border: 1px solid; border-radius: 999px; font: bold 11px Arial, Helvetica, sans-serif; cursor: pointer; }
.inf .ct-vote__b--yes { border-color: #6aa628; background: #dff1c4; color: #2f6512; }
.inf .ct-vote__b--no { border-color: #d9534f; background: #fbdcd6; color: #9a3420; }
.inf .ct-vote__b--mod { border-color: #f0a020; background: #fbeec2; color: #7a5000; }
.inf .ct-vote__b:hover, .inf .ct-vote__b:focus { filter: brightness(0.95); }

/* the ticket forms */
.ct-form { display: block; margin: 0; }
.ct-form .inf-card__body { gap: 10px; }
.ct-opts { display: flex; flex-direction: column; gap: 6px; }
.ct-opt { display: flex; align-items: flex-start; gap: 10px; min-width: 0; margin: 0; padding: 9px 12px; border: 1px solid #e3ecd0; border-radius: 10px; background: #fff; cursor: pointer; }
.ct-opt:hover { border-color: #9cc94a; background: #f7faef; }
.ct-opt:has(input:checked) { border-color: #2f6b22; background: #eef6d8; box-shadow: 0 0 0 2px rgba(156,201,74,0.4); }
.ct-opt input { flex: 0 0 auto; margin: 2px 0 0; }
.ct-opt__b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-opt__t { font-size: 13px; font-weight: bold; color: #1f2a17; }
.ct-opt__d { font-size: 12px; line-height: 1.45; color: #5b6650; font-style: italic; overflow-wrap: anywhere; }
.ct-fields { display: flex; flex-direction: column; gap: 10px; }
.ct-field { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); align-items: center; gap: 4px 14px; margin: 0; }
.ct-field--top { align-items: start; }
.ct-field--top .ct-field__k { padding-top: 7px; }
.ct-field__k { font-size: 12px; font-weight: bold; color: #3c4732; }
.ct-field__v { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.ct-req { color: #c0392b; }
.ct-sub { margin-top: 4px; padding-top: 10px; border-top: 1px dashed #d6e4b5; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #2e6b12; }
.inf .ct-in {
  width: 100%; min-width: 0; max-width: 560px; min-height: 34px; margin: 0; padding: 5px 9px; border: 1px solid #c9d8a8; border-radius: 6px;
  background: #fff; font: 13px Arial, Helvetica, sans-serif; color: #23301a;
}
.inf textarea.ct-in { min-height: 160px; resize: vertical; }
.inf .ct-in:focus { outline: 2px solid #9cc94a; outline-offset: 0; border-color: #9cc94a; }
.inf .ct-in--num { max-width: 140px; }
.ct-tnum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inf .ct-tnum select.ct-in { width: auto; max-width: 100%; }
.ct-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; padding-top: 4px; }
.ct-note { margin-right: auto; font-size: 12px; color: #5b6650; }
.inf .ct-form .new_button_small, .inf .ct-search .new_button_small { min-height: 34px; padding: 7px 18px; border-radius: 8px; font-size: 12px; font-weight: bold; cursor: pointer; }
.inf .ct-form .new_button_small[disabled] { opacity: 0.5; cursor: not-allowed; }
.ct-done { font-size: 14px; }

/* the ticket: facts and steps beside the reply, then the conversation */
.ct-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ct-steps { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed #d6e4b5; list-style: none; }
.ct-steps li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 13px; }
.ct-steps li::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #d9534f; }
.ct-steps li.is-done::before { border-color: #6aa628; background: #6aa628; }
.ct-steps li > span:first-of-type { flex: 1 1 auto; min-width: 0; }
.inf textarea.ct-reply { max-width: none; min-height: 190px; }
.ct-msgs { display: flex; flex-direction: column; gap: 10px; }
.ct-msg { max-width: 88%; padding: 9px 12px; border: 1px solid #e3ecd0; border-radius: 10px; background: #f7faef; }
.ct-msg--staff { align-self: flex-end; border-color: #c9df8f; background: #eef6d8; }
.ct-msg__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; font-size: 12px; }
.ct-msg--staff .ct-msg__h b { color: #2e6b12; }
.ct-msg__b { font-size: 13px; line-height: 1.5; color: #23301a; overflow-wrap: anywhere; }
.ct-msg__b img { max-width: 100%; height: auto; }

@media (max-width: 1180px) {
  .ct .ct-head { padding: 10px 12px; }
  .ct-field { grid-template-columns: minmax(110px, 150px) minmax(0, 1fr); }
}

@media (max-width: 820px) {
  /* phones: the pills under the name, as one row of three */
  .ct .ct-head { flex-wrap: wrap; justify-content: flex-start; text-align: start; }
  .ct-head .inf-hero__body { flex-basis: 100%; order: 0; }
  .ct-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .inf .ct-nav a.inf-btn2 { flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; padding: 4px 6px; border-radius: 10px; white-space: normal; text-align: center; line-height: 1.2; }
  .ct-pop .ct-c-r { display: none; }
  .ct-pop .ct-c-sub { display: block; }
  .ct-field, .ct-field--top { grid-template-columns: minmax(0, 1fr); }
  .ct-field--top .ct-field__k { padding-top: 0; }
  .inf .ct-in { max-width: none; }
  .inf .ct-in--num { max-width: 160px; }
  .ct-pair { grid-template-columns: minmax(0, 1fr); }
  .ct-msg { max-width: 100%; }
  .ct-foot .new_button_small { flex: 1 1 auto; }
}
