@charset "UTF-8";

/***** CDI design tokens *****/
:root {
  --cdi-navy: #031441;
  --cdi-navy-footer: #00103a;
  --cdi-green: #14c214;
  --cdi-green-soft: #7fdc7a;
  --cdi-blue: #3558e6;
  --cdi-blue-soft: #94a7f0;
  --cdi-page: #fafafa;
  --cdi-white: #ffffff;
  --cdi-shadow: 0 4px 18px rgba(3, 20, 65, 0.07);
  --cdi-muted: #5d6785;
  --cdi-line: #e8eaf2;
  --cdi-chip: #eef1fa;
  --cdi-font: "Raleway", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --cdi-w-hero: 1222px;
  --cdi-w-content: 976px;
  --cdi-gutter: clamp(16px, 4vw, 24px);
  --cdi-cat-overlap: clamp(48px, 5vw, 75px);
}
/***** Base *****/
* {
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: #333333;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  body > main {
    min-height: 65vh;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  margin-top: 0;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

h4 {
  font-size: 16px;
}

a {
  color: var(--cdi-blue);
  text-decoration: none;
}

a:hover, a:active, a:focus {
  text-decoration: underline;
}

input,
textarea {
  color: #000;
  font-size: 14px;
}

input {
  font-weight: 500;
  max-width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border .12s ease-in-out;
}

input:focus {
  border: 1px solid var(--cdi-blue);
}

input[disabled] {
  background-color: var(--cdi-line);
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url(/hc/theming_assets/01HZPRQ76A8YA5Q0KYE55M8W74) no-repeat #fff;
  background-position: right 10px center;
  border: 1px solid var(--cdi-line);
  border-radius: 8px;
  padding: 8px 30px 8px 10px;
  outline: none;
  color: var(--cdi-navy);
  width: 100%;
}

select:focus {
  border: 1px solid var(--cdi-blue);
}

select::-ms-expand {
  display: none;
}

textarea {
  border: 1px solid var(--cdi-line);
  border-radius: 8px;
  resize: vertical;
  width: 100%;
  outline: none;
  padding: 10px;
}

textarea:focus {
  border: 1px solid var(--cdi-blue);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5%;
}

@media (min-width: 1160px) {
  .container {
    padding: 0;
    width: 90%;
  }
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.error-page {
  max-width: 640px;
  margin: clamp(32px, 6vw, 72px) auto 0;
  padding: clamp(28px, 5vw, 56px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
  text-align: center;
}

.error-page h1 {
  font-family: inherit;
  font-size: clamp(32px, 1.2rem + 3vw, 56px);
  font-weight: 800;
}

.error-page h2 {
  font-family: inherit;
  font-size: clamp(18px, 1rem + .6vw, 24px);
  font-weight: 700;
}

.error-page p {
  color: var(--cdi-muted);
  font-weight: 500;
}

.dropdown-toggle::after {
  color: inherit;
}

/***** Buttons *****/
.button, [role="button"] {
  border: 1px solid var(--cdi-blue);
  border-radius: 8px;
  color: var(--cdi-blue);
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  line-height: 2.34;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  transition: background-color .12s ease-in-out, border-color .12s ease-in-out, color .15s ease-in-out;
  user-select: none;
  white-space: nowrap;
  width: 100%;
  -webkit-touch-callout: none;
}

@media (min-width: 768px) {
  .button, [role="button"] {
    width: auto;
  }
}

.button::after, [role="button"]::after {
  color: var(--cdi-blue);
}

.button:hover, .button:active, .button:focus, .button[aria-selected="true"], [role="button"]:hover, [role="button"]:active, [role="button"]:focus, [role="button"][aria-selected="true"] {
  background-color: var(--cdi-blue);
  color: var(--cdi-white);
  text-decoration: none;
}

.button[aria-selected="true"]:hover, .button[aria-selected="true"]:focus, .button[aria-selected="true"]:active, [role="button"][aria-selected="true"]:hover, [role="button"][aria-selected="true"]:focus, [role="button"][aria-selected="true"]:active {
  background-color: var(--cdi-blue);
  filter: brightness(.92);
  border-color: var(--cdi-blue);
}

.button[data-disabled], [role="button"][data-disabled] {
  cursor: default;
}

.button-large, input[type="submit"] {
  background-color: var(--cdi-blue);
  border: 0;
  border-radius: 8px;
  color: var(--cdi-white);
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 2.72;
  min-width: 190px;
  padding: 0 1.9286em;
  width: 100%;
}

@media (min-width: 768px) {
  .button-large, input[type="submit"] {
    width: auto;
  }
}

.button-large:hover, .button-large:active, .button-large:focus, input[type="submit"]:hover, input[type="submit"]:active, input[type="submit"]:focus {
  background-color: var(--cdi-blue);
  filter: brightness(.92);
  text-decoration: none;
}

.button-large[disabled], input[type="submit"][disabled] {
  background-color: var(--cdi-line);
}

.button-secondary {
  color: var(--cdi-muted);
  font-weight: 700;
  border: 1px solid var(--cdi-line);
  background-color: transparent;
}

.button-secondary:hover, .button-secondary:focus, .button-secondary:active {
  color: var(--cdi-navy);
  border: 1px solid var(--cdi-line);
  background-color: var(--cdi-chip);
}

/***** Tables *****/
.table {
  width: 100%;
  table-layout: fixed;
}

@media (min-width: 768px) {
  .table {
    table-layout: auto;
  }
}

.table th,
.table th a {
  color: var(--cdi-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

[dir="rtl"] .table th, [dir="rtl"]
.table th a {
  text-align: right;
}

.table tr {
  border-bottom: 1px solid var(--cdi-line);
  display: block;
  padding: 20px 0;
}

@media (min-width: 768px) {
  .table tr {
    display: table-row;
  }
}

.table tbody tr:last-child {
  border-bottom: 0;
}

.table td {
  display: block;
}

@media (min-width: 768px) {
  .table td {
    display: table-cell;
  }
}

@media (min-width: 1024px) {
  .table td, .table th {
    padding: 20px 30px;
  }
}

@media (min-width: 768px) {
  .table td, .table th {
    padding: 10px 20px;
    height: 60px;
  }
}

/***** Forms *****/
.form {
  max-width: 760px;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

.form-field ~ .form-field {
  margin-top: 25px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-field input {
  border: 1px solid var(--cdi-line);
  border-radius: 8px;
  padding: 10px;
  width: 100%;
}

.form-field input:focus {
  border: 1px solid var(--cdi-blue);
}

.form-field input[type="text"] {
  border: 1px solid var(--cdi-line);
  border-radius: 8px;
}

.form-field input[type="text"]:focus {
  border: 1px solid var(--cdi-blue);
}

.form-field input[type="checkbox"] {
  width: auto;
}

.form-field .nesty-input {
  border-radius: 8px;
  height: 40px;
  line-height: 40px;
  outline: none;
  vertical-align: middle;
}

.form-field .nesty-input:focus {
  border: 1px solid var(--cdi-blue);
  text-decoration: none;
}

.form-field textarea {
  vertical-align: middle;
}

.form-field input[type="checkbox"] + label {
  margin: 0 0 0 10px;
}

.form-field.required > label::after {
  content: "*";
  color: #f00;
  margin-left: 2px;
}

.form-field p {
  color: var(--cdi-muted);
  font-size: 12px;
  margin: 5px 0;
}

[data-loading="true"] input,
[data-loading="true"] textarea {
  background: transparent url(/hc/theming_assets/01HZPRQ7N9WRJ36QTZM1PCJE6K) 99% 50% no-repeat;
  background-size: 16px 16px;
}

.form footer {
  margin-top: 40px;
  padding-top: 30px;
}

.form footer a {
  color: var(--cdi-muted);
  cursor: pointer;
  margin-right: 15px;
}

.form .suggestion-list {
  font-size: 13px;
  margin-top: 30px;
}

.form .suggestion-list label {
  border-bottom: 1px solid var(--cdi-line);
  display: block;
  padding-bottom: 5px;
}

.form .suggestion-list li {
  padding: 10px 0;
}

.form .suggestion-list li a:visited {
  color: var(--cdi-blue);
}

/***** User info in header *****/
.user-info {
  display: inline-block;
}

.user-info .dropdown-toggle::after {
  display: none;
}

@media (min-width: 768px) {
  .user-info .dropdown-toggle::after {
    display: inline-block;
  }
}

.user-info > [role="button"] {
  border: 0;
  color: rgba(17, 23, 236, 1);
  min-width: 0;
  padding: 0;
  white-space: nowrap;
}

.user-info > [role="button"]:hover {
  color: rgba(17, 23, 236, 1);
  background-color: transparent;
}

.user-info > [role="button"]::after {
  color: rgba(17, 23, 236, 1);
  padding-right: 15px;
}

[dir="rtl"] .user-info > [role="button"]::after {
  padding-left: 15px;
  padding-right: 0;
}

#user #user-name {
  display: none;
  font-size: 14px;
}

@media (min-width: 768px) {
  #user #user-name {
    display: inline-block;
  }
}

#user #user-name:hover {
  text-decoration: underline;
}

/***** User avatar *****/
.user-avatar {
  height: 25px;
  width: 25px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
}

.avatar {
  display: inline-block;
  position: relative;
}

.avatar img {
  height: 40px;
  width: 40px;
}

.avatar .icon-agent::before {
  background-color: var(--cdi-blue);
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: -4px;
  color: var(--cdi-white);
  content: "\1F464";
  font-size: 14px;
  height: 14px;
  line-height: 14px;
  position: absolute;
  right: -2px;
  text-align: center;
  width: 14px;
}

/***** Breadcrumbs *****/
.breadcrumbs {
  margin: 0 0 15px 0;
  padding: 0;
}

@media (min-width: 768px) {
  .breadcrumbs {
    margin: 0;
  }
}

.breadcrumbs li {
  color: #666;
  display: inline;
  font-weight: 300;
  font-size: 13px;
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumbs li + li::before {
  content: ">";
  margin: 0 4px;
}

.breadcrumbs li a:visited {
  color: rgba(17, 23, 236, 1);
}

/***** Search field *****/
.search {
  position: relative;
  display: flex;
  height: 52px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(3, 20, 65, .12);
}

/* Anillo de focus: se dibuja encima (inset -3px y borde de 4px) para montarse 1px sobre
   el contenido y tapar la costura que dejan dos bordes redondeados en la misma curva. */
.search::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 4px solid var(--cdi-blue);
  border-radius: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.search:focus-within::after {
  opacity: 1;
}

.search input[type="search"],
.search input[type="search"]:focus {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 clamp(14px, 2vw, 24px);
  border: 0;
  border-radius: 8px 0 0 8px;
  outline: none;
  background: #f6f6f8;
  box-shadow: none;
  color: var(--cdi-navy);
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px; /* 16px o más evita el zoom de iOS al enfocar */
  font-weight: 500;
  text-align: left;
  -webkit-appearance: none;
}

/* Formulario sin botón ({{search submit=false}}): esquinas redondeadas a ambos lados */
.search input[type="search"]:last-child {
  border-radius: 8px;
}

input#query::placeholder {
  color: transparent;
}

.search input[type="submit"],
.search input[type="submit"]:hover,
.search input[type="submit"]:focus {
  flex: none;
  width: 56px;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--cdi-blue) url(/hc/theming_assets/01M4RRAJEEJ0CCQFN8S364H604) center / 26px no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.search input[type="submit"]:hover {
  filter: brightness(1.08);
}

.search input[type="submit"]:focus-visible {
  outline: none; /* el anillo ya lo dibuja .search::after */
}

@media (prefers-reduced-motion: reduce) {
  .search::after {
    transition: none;
  }
}

.page-header {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 10px 0;
}

@media (min-width: 768px) {
  .page-header {
    align-items: baseline;
    flex-direction: row;
    margin: 0;
  }
}

.page-header .section-subscribe {
  flex-shrink: 0;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .page-header .section-subscribe {
    margin-bottom: 0;
  }
}

.page-header h1 {
  flex-grow: 1;
  margin-bottom: 10px;
}

.page-header-description {
  font-style: italic;
  font-weight: 300;
  margin: 0 0 30px 0;
  word-break: break-word;
}

@media (min-width: 1024px) {
  .page-header-description {
    flex-basis: 100%;
  }
}

.page-header .icon-lock::before {
  content: "\1F512";
  font-size: 20px;
  position: relative;
  left: -5px;
  vertical-align: baseline;
}

.sub-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 30px;
  min-height: 50px;
  padding-bottom: 15px;
}

@media (min-width: 768px) {
  .sub-nav {
    align-items: baseline;
    flex-direction: row;
  }
}

.sub-nav .search {
  width: min(420px, 100%);
}

@media (max-width: 767px) {
  .sub-nav .search {
    margin-top: 12px;
  }
}
/***** Blocks *****/
/* Used in Community#topics */
.blocks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  margin: 0;
}

.blocks-item {
  border-radius: clamp(14px, 1.6vw, 20px);
  background-color: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
  transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}

.blocks-item:hover, .blocks-item:focus-within {
  box-shadow: 0 10px 28px rgba(3, 20, 65, .14);
  transform: translateY(-2px);
}

.blocks-item-internal .icon-lock::before {
  content: "\1F512";
  font-size: 15px;
  bottom: 5px;
  position: relative;
}

.blocks-item-link {
  display: block;
  height: 100%;
  padding: clamp(20px, 2.5vw, 32px);
  color: var(--cdi-navy);
}

.blocks-item-link:hover, .blocks-item-link:focus, .blocks-item-link:active {
  text-decoration: none;
}

.blocks-item-link:hover .blocks-item-title {
  color: var(--cdi-blue);
}

.blocks-item-title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: clamp(20px, 1rem + .6vw, 26px);
  font-weight: 800;
}

.blocks-item-description {
  margin: 0;
  color: var(--cdi-muted);
  font-size: 16px;
  font-weight: 500;
}

/***** Homepage *****/
.section {
  margin-bottom: 40px;
}

.section h2 {
  margin-bottom: 10px;
  text-align: center;
}

/***** Promoted articles *****/
.promoted-articles {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .promoted-articles {
    flex-direction: row;
  }
}

.promoted-articles-item {
  flex: 1 0 auto;
}

@media (min-width: 1024px) {
  .promoted-articles-item {
    align-self: flex-end;
    flex: 0 0 auto;
    padding-right: 30px;
    width: 33%;
    /* Three columns on desktop */
  }
  [dir="rtl"] .promoted-articles-item {
    padding: 0 0 0 30px;
  }
}

.promoted-articles-item:nth-child(3n) {
  padding-right: 0;
}

.promoted-articles-item a {
  border-bottom: 1px solid var(--cdi-line);
  color: var(--cdi-navy);
  display: block;
  padding: 15px 0;
}

.promoted-articles-item:last-child a {
  border: 0;
}

@media (min-width: 1024px) {
  .promoted-articles-item:last-child a {
    border-bottom: 1px solid var(--cdi-line);
  }
}

/***** Article links *****/
.linkIco.one::before{
  content: url(/hc/theming_assets/01HZPRQ93BZYPQ9R1AE0R19J50);
}

.linkIco.two::before{
  content: url(/hc/theming_assets/01HZPRQ9GXAYD4RTQ9FMW4YMF3);
}

.linkIco.three::before{
  content: url(/hc/theming_assets/01HZPRQ9YHJG4Q6JK3RNKPRBSV);
}

.linkIco.four::before{
  content: url(/hc/theming_assets/01HZPRQABYP3N6BKBHY5Q70XRW);
}

.linkIco.five::before,.linkIco.six::before{
  content: url(/hc/theming_assets/01HZPRQASW86SG56J59CC6XD2A);
}

.linkIco.seven::before,.linkIco.eight::before{
  content: url(/hc/theming_assets/01HZPRQB786X70J85C8M2TH28Y);
}

.linkIco.nine::before,.linkIco.ten::before{
  content: url(/hc/theming_assets/01HZPRQBN704FAYZR0GAYNZC7W);
}

.linkIco.eleven::before,.linkIco.twelve::before{
  content: url(/hc/theming_assets/01HZPRQBW73VEXA9XHP84R0XCB);
}

.linkIco.thirteen::before{
  content: url(/hc/theming_assets/01HZPRQCC9DHYGCZG72D2KG3K5);
}

.linkIco.fourteen::before,.linkIco.fiveteen::before{
  content: url(/hc/theming_assets/01HZPRQ9GXAYD4RTQ9FMW4YMF3);
}

.linkIco.one::before,.linkIco.two::before,.linkIco.three::before,.linkIco.four::before,.linkIco.five::before,.linkIco.six::before,.linkIco.seven::before,.linkIco.eight::before,.linkIco.nine::before,.linkIco.ten::before,.linkIco.eleven::before,.linkIco.twelve::before,.linkIco.thirteen::before,.linkIco.fourteen::before,.linkIco.fiveteen::before{
  margin-right: 1%;
}

/***** Recent activity *****/
.recent-activity-header {
  margin-bottom: 10px;
  text-align: center;
}

.recent-activity-list {
  padding: 0;
}

.recent-activity-item {
  border-bottom: 1px solid var(--cdi-line);
  overflow: auto;
  padding: 20px 0;
}

.recent-activity-item-parent {
  font-size: 16px;
}

.recent-activity-item-parent, .recent-activity-item-link {
  margin: 6px 0;
  color: var(--cdi-navy);
  display: inline-block;
  width: 100%;
}

@media (min-width: 768px) {
  .recent-activity-item-parent, .recent-activity-item-link {
    width: 70%;
    margin: 0;
  }
}

.recent-activity-item-link {
  font-size: 14px;
  font-weight: 300;
}

.recent-activity-item-meta {
  margin: 15px 0 0 0;
  float: none;
}

@media (min-width: 768px) {
  .recent-activity-item-meta {
    margin: 0;
    float: right;
  }
  [dir="rtl"] .recent-activity-item-meta {
    float: left;
  }
}

.recent-activity-item-time, .recent-activity-item-comment {
  color: var(--cdi-muted);
  display: inline-block;
  font-size: 13px;
  font-weight: 300;
}

.recent-activity-item-comment {
  padding-left: 5px;
}

[dir="rtl"] .recent-activity-item-comment {
  padding: 0 5px 0 0;
}

.recent-activity-item-comment::before {
  display: inline-block;
}

.recent-activity-item-comment span::before {
  color: var(--cdi-blue);
  content: "\1F4AC";
  display: inline-block;
  font-size: 15px;
  padding-right: 3px;
  vertical-align: middle;
}

[dir="rtl"] .recent-activity-item-comment span::before {
  padding-left: 3px;
}

.recent-activity-controls {
  padding-top: 15px;
}

/***** Help center pages (resultados, categoría, sección y artículo) *****/
.help-page {
  padding-bottom: clamp(48px, 7vw, 96px);
  background: var(--cdi-page);
  color: var(--cdi-navy);
  font-family: var(--cdi-font);
}

.help-page .container {
  max-width: var(--cdi-w-hero);
}

.help-page .sub-nav {
  align-items: center;
  min-height: 0;
  margin-bottom: clamp(20px, 3vw, 36px);
  padding-bottom: 0;
}

.help-page .breadcrumbs li {
  color: var(--cdi-muted);
  font-size: 14px;
  font-weight: 500;
}

.help-page .breadcrumbs li a,
.help-page .breadcrumbs li a:visited {
  color: var(--cdi-blue);
  font-weight: 600;
}

.help-page .page-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 clamp(24px, 3vw, 40px);
}

.help-page .page-header h1 {
  flex: 1 1 auto;
  margin: 0;
  font-family: inherit;
  font-size: clamp(30px, 1.2rem + 2.6vw, 48px);
  font-weight: 800;
  line-height: 1.15;
}

.help-page .page-header .section-subscribe {
  margin: 0;
}

.help-page .page-header-description {
  flex-basis: 100%;
  margin: 0;
  color: var(--cdi-muted);
  font-size: clamp(16px, 1rem + .3vw, 20px);
  font-style: normal;
  font-weight: 500;
}

/***** Category pages *****/
.category-container {
  display: flex;
}

.category-content {
  flex: 1;
  min-width: 0;
}

.section-tree {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
}

.section-tree .section {
  margin: 0;
  padding: clamp(20px, 3vw, 36px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

.section-tree .icon-lock::before {
  vertical-align: baseline;
}

.section-tree-title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: clamp(20px, 1rem + .6vw, 26px);
  font-weight: 800;
}

.section-tree-title a {
  color: var(--cdi-navy);
}

.section-tree-title a:hover {
  color: var(--cdi-blue);
  text-decoration: none;
}

.section-tree .see-all-articles {
  display: block;
  padding: 15px 0 0;
  color: var(--cdi-blue);
  font-weight: 700;
}

.section-empty a, .category-empty a {
  color: var(--cdi-muted);
}

.article-list-item {
  border-bottom: 1px solid var(--cdi-line);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  padding: 14px 0;
}

.article-list-item:last-child {
  border-bottom: 0;
}

.article-list-item a {
  color: var(--cdi-navy);
}

.article-list-item a:hover {
  color: var(--cdi-blue);
  text-decoration: none;
}

.icon-star::before {
  color: var(--cdi-green);
  font-size: 18px;
}

/***** Section pages *****/
.section-container {
  display: flex;
}

.section-content {
  flex: 1;
  min-width: 0;
}

.section-content > .article-list {
  padding: clamp(8px, 1.4vw, 16px) clamp(20px, 3vw, 36px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

.section-subscribe .dropdown-toggle::after {
  display: none;
}

/***** Article *****/
.article {
  flex: 1;
  min-width: 0;
  padding: clamp(20px, 3.5vw, 48px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

.article-container {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 32px);
}

@media (min-width: 1024px) {
  .article-container {
    flex-direction: row;
    align-items: flex-start;
  }
}

.article-header {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .article-header {
    flex-direction: row;
  }
}

.article-author {
  margin-bottom: 10px;
}

.article-title {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: clamp(28px, 1.1rem + 2.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .article-title {
    flex-basis: 100%;
    /* Take entire row */
  }
}

.article-title .icon-lock::before {
  content: "\1F512";
  font-size: 20px;
  position: relative;
  left: -5px;
  vertical-align: baseline;
}

.article [role="button"] {
  flex-shrink: 0;
  /*Avoid collapsing elements in Safari (https://github.com/philipwalton/flexbugs#1-minimum-content-sizing-of-flex-items-not-honored)*/
  width: 100%;
}

@media (min-width: 768px) {
  .article [role="button"] {
    width: auto;
  }
}

.article-info {
  max-width: 100%;
}

.article-meta {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

.article-meta a {
  color: var(--cdi-blue);
  font-weight: 700;
}

.article-body img {
  height: auto;
  max-width: 100%;
}

.article-body ul, .article-body ol {
  padding-left: 20px;
  list-style-position: outside;
  margin: 20px 0 20px 20px;
}

[dir="rtl"] .article-body ul, [dir="rtl"] .article-body ol {
  padding-right: 20px;
  padding-left: 0;
  margin-left: 0;
  margin-right: 20px;
}

.article-body ul > ul, .article-body ol > ol, .article-body ol > ul, .article-body ul > ol {
  margin: 0;
}

.article-body ul {
  list-style-type: disc;
}

.article-body a,
.article-body a:visited {
  color: var(--cdi-blue);
  text-decoration: underline;
}

.article-body h2, .article-body h3, .article-body h4 {
  margin: 1.6em 0 .6em;
  color: var(--cdi-navy);
  font-family: inherit;
  font-weight: 800;
  line-height: 1.25;
}

.article-body h2 {
  font-size: 26px;
}

.article-body h3 {
  font-size: 21px;
}

.article-body h4 {
  font-size: 18px;
}

.article-body code {
  background: var(--cdi-chip);
  border: 1px solid var(--cdi-line);
  border-radius: 3px;
  padding: 0 5px;
  margin: 0 2px;
}

.article-body pre {
  background: var(--cdi-chip);
  border: 1px solid var(--cdi-line);
  border-radius: 3px;
  padding: 10px 15px;
  overflow: auto;
  white-space: pre;
}

.article-body blockquote {
  border-left: 1px solid var(--cdi-line);
  color: var(--cdi-muted);
  font-style: italic;
  padding: 0 15px;
}

.article-body > p:last-child {
  margin-bottom: 0;
}

.article-content {
  font-size: 17px;
  line-height: 1.7;
  margin: 28px 0;
  word-wrap: break-word;
}

.article-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
}

.article-comment-count {
  color: var(--cdi-muted);
  font-weight: 600;
}

.article-comment-count:hover {
  text-decoration: none;
}

.article-comment-count .icon-comments {
  color: var(--cdi-green);
  content: "\1F4AC";
  display: inline-block;
  font-size: 18px;
  padding: 5px;
}

.article-sidebar {
  flex: 1 0 auto;
  padding: 8px clamp(16px, 2vw, 24px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

@media (min-width: 1024px) {
  .article-sidebar {
    flex: 0 0 300px;
    padding: 24px;
  }
}

.article-relatives {
  border-top: 1px solid var(--cdi-line);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

@media (min-width: 768px) {
  .article-relatives {
    flex-direction: row;
  }
}

.article-relatives > * {
  flex: 1 0 auto;
  margin-right: 0;
}

.article-relatives > *:last-child {
  margin: 0;
}

@media (min-width: 768px) {
  .article-relatives > * {
    margin-right: 20px;
  }
}

.article-votes {
  border-top: 1px solid var(--cdi-line);
  padding: 30px 0;
  text-align: center;
}

.article-vote {
  background: transparent;
  border: 1px solid var(--cdi-blue);
  border-radius: 8px;
  color: var(--cdi-blue);
  margin: 10px 5px;
  min-width: 90px;
  width: auto;
}

.article-vote::before {
  font-size: 8px;
  margin-right: 10px;
}

[dir="rtl"] .article-vote::before {
  margin-right: 0;
  margin-left: 10px;
}

.article-vote::after {
  content: attr(title);
  /* Yes/No label*/
}

.article-vote:focus, .article-vote:active {
  background-color: transparent;
  color: var(--cdi-blue);
}

.article-vote:hover {
  background-color: var(--cdi-blue);
  color: var(--cdi-white);
}

.article-vote:hover::before, .article-vote:hover::after, .article-vote[aria-selected="true"]::before, .article-vote[aria-selected="true"]::after {
  color: var(--cdi-white);
}

.article-vote-up::before {
  content: "\2713";
}

.article-vote-down::before {
  content: "\2715";
}

.article-more-questions {
  margin: 10px 0 20px;
  text-align: center;
}

.article-return-to-top {
  border-top: 1px solid var(--cdi-line);
}

@media (min-width: 1024px) {
  .article-return-to-top {
    display: none;
  }
}

.article-return-to-top a {
  color: var(--cdi-navy);
  display: block;
  padding: 20px 0;
}

.article-return-to-top a:hover, .article-return-to-top a:focus {
  text-decoration: none;
}

.article-return-to-top .icon-arrow-up::before {
  font-size: 16px;
  margin-left: 5px;
}

[dir="rtl"] .article-return-to-top .icon-arrow-up::before {
  margin-right: 10px;
}

.article-unsubscribe {
  background-color: var(--cdi-blue);
  color: var(--cdi-white);
  text-decoration: none;
}

.article-unsubscribe:hover {
  filter: brightness(.92);
}

.sidenav-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  position: relative;
}

.sidenav-item {
  border-radius: 8px;
  color: var(--cdi-navy);
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  padding: 10px 12px;
}

.sidenav-item:hover {
  background-color: var(--cdi-chip);
  color: var(--cdi-blue);
  text-decoration: none;
}

.sidenav-item.current-article {
  background-color: var(--cdi-blue);
  color: var(--cdi-white);
  text-decoration: none;
}

.article-sidebar-item {
  display: block;
  padding: 10px 12px;
  color: var(--cdi-blue);
  font-weight: 700;
}

.recent-articles h3,
.related-articles h3 {
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  margin: 20px 0;
}

.recent-articles a,
.related-articles a {
  color: var(--cdi-navy);
  font-weight: 600;
}

.recent-articles a:hover,
.related-articles a:hover {
  color: var(--cdi-blue);
  text-decoration: none;
}

.recent-articles li,
.related-articles li {
  margin-bottom: 15px;
}

/***** Attachments *****/
/* Styles attachments inside posts, articles and comments */
.attachments .attachment-item {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.attachments .attachment-item:last-child {
  margin-bottom: 0;
}

.attachments .attachment-item::before {
  color: var(--cdi-navy);
  content: "\1F4CE";
  font-size: 15px;
  left: 0;
  position: absolute;
  top: 5px;
}

[dir="rtl"] .attachments .attachment-item {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .attachments .attachment-item::before {
  left: auto;
  right: 0;
}

.upload-dropzone span {
  color: var(--cdi-muted);
}

/***** Social share links *****/
.share {
  padding: 0;
  white-space: nowrap;
}

.share li, .share a {
  display: inline-block;
}

.share a {
  border-radius: 50%;
  height: 25px;
  line-height: 25px;
  overflow: hidden;
  width: 25px;
}

.share a::before {
  color: var(--cdi-muted);
  display: block;
  font-size: 23px;
  text-align: center;
  width: 100%;
}

.share a:hover {
  text-decoration: none;
}

.share a:hover::before {
  color: var(--cdi-blue);
}

.share-twitter::before {
  content: "\e901";
}

.share-facebook::before {
  content: "\e903";
}

.share-linkedin::before {
  content: "\e900";
}

.share-googleplus::before {
  content: "\e902";
}

/***** Comments *****/
/* Styles comments inside articles, posts and requests */
.comment {
  border-bottom: 1px solid var(--cdi-line);
  padding: 20px 0;
}

.comment-heading {
  margin-bottom: 5px;
  margin-top: 0;
}

.comment-overview {
  border-bottom: 1px solid var(--cdi-line);
  border-top: 1px solid var(--cdi-line);
  padding: 20px 0;
}

.comment-overview p {
  margin-top: 0;
}

.comment-callout {
  color: var(--cdi-muted);
  display: inline-block;
  font-weight: 300;
  font-size: 13px;
  margin-bottom: 0;
}

.comment-callout a {
  color: var(--cdi-blue);
}

.comment-sorter {
  display: inline-block;
  float: right;
}

.comment-sorter a {
  color: var(--cdi-muted);
  font-weight: 300;
  font-size: 13px;
  text-decoration: none;
}

[dir="rtl"] .comment-sorter {
  float: left;
}

.comment-wrapper {
  display: flex;
  position: relative;
}

.comment-wrapper.comment-official {
  border: 1px solid var(--cdi-blue);
  padding: 40px 20px 20px;
}

@media (min-width: 768px) {
  .comment-wrapper.comment-official {
    padding-top: 20px;
  }
}

.comment-info {
  min-width: 0;
  padding-right: 20px;
  width: 100%;
}

[dir="rtl"] .comment-info {
  padding-right: 0;
  padding-left: 20px;
}

.comment-author {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .comment-author {
    justify-content: space-between;
  }
}

.comment-avatar {
  margin-right: 10px;
}

[dir="rtl"] .comment-avatar {
  margin-left: 10px;
  margin-right: 0;
}

.comment-meta {
  flex: 1 0 auto;
}

.comment-labels {
  flex-basis: 100%;
}

@media (min-width: 768px) {
  .comment-labels {
    flex-basis: auto;
  }
}

.comment .status-label:not(.status-label-official) {
  margin-top: 10px;
}

@media (min-width: 768px) {
  .comment .status-label:not(.status-label-official) {
    margin-top: 0;
  }
}

.comment-form {
  display: flex;
  padding-top: 30px;
  word-wrap: break-word;
}

.comment-container {
  width: 100%;
}

.comment-form-controls {
  display: none;
  margin-top: 10px;
  text-align: left;
}

@media (min-width: 768px) {
  [dir="ltr"] .comment-form-controls {
    text-align: right;
  }
}

.comment-form-controls input[type="submit"] {
  margin-top: 15px;
}

@media (min-width: 1024px) {
  .comment-form-controls input[type="submit"] {
    margin-left: 15px;
  }
  [dir="rtl"] .comment-form-controls input[type="submit"] {
    margin-left: 0;
    margin-right: 15px;
  }
}

.comment-form-controls input[type="checkbox"] {
  margin-right: 5px;
}

.comment-form-controls input[type="checkbox"] [dir="rtl"] {
  margin-left: 5px;
}

.comment-ccs {
  display: none;
}

.comment-ccs + textarea {
  margin-top: 10px;
}

.comment-attachments {
  margin-top: 10px;
}

.comment-attachments a {
  color: var(--cdi-blue);
}

.comment-body {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  font-family: inherit;
  line-height: 1.6;
}

.comment-body img {
  height: auto;
  max-width: 100%;
}

.comment-body ul, .comment-body ol {
  padding-left: 20px;
  list-style-position: outside;
  margin: 20px 0 20px 20px;
}

[dir="rtl"] .comment-body ul, [dir="rtl"] .comment-body ol {
  padding-right: 20px;
  padding-left: 0;
  margin-left: 0;
  margin-right: 20px;
}

.comment-body ul > ul, .comment-body ol > ol, .comment-body ol > ul, .comment-body ul > ol {
  margin: 0;
}

.comment-body ul {
  list-style-type: disc;
}

.comment-body a:visited {
  color: var(--cdi-blue);
}

.comment-body code {
  background: var(--cdi-chip);
  border: 1px solid var(--cdi-line);
  border-radius: 3px;
  padding: 0 5px;
  margin: 0 2px;
}

.comment-body pre {
  background: var(--cdi-chip);
  border: 1px solid var(--cdi-line);
  border-radius: 3px;
  padding: 10px 15px;
  overflow: auto;
  white-space: pre;
}

.comment-body blockquote {
  border-left: 1px solid var(--cdi-line);
  color: var(--cdi-muted);
  font-style: italic;
  padding: 0 15px;
}

.comment-mark-as-solved {
  display: inline-block;
}

/***** Vote *****/
/* Used in article comments, post comments and post */
.vote {
  display: inline-block;
  text-align: center;
  width: 35px;
}

.vote a {
  outline: none;
}

.vote a:active, .vote a:hover, .vote a:focus {
  text-decoration: none;
}

.vote-sum {
  color: var(--cdi-muted);
  display: block;
  margin: 3px 0;
}

[dir="rtl"] .vote-sum {
  direction: ltr;
  unicode-bidi: bidi-override;
}

.vote-up:hover::before,
.vote-down:hover::before {
  color: var(--cdi-blue);
}

.vote-up::before, .vote-down::before {
  color: var(--cdi-muted);
  font-size: 24px;
}

.vote-up::before {
  content: "\2B06";
}

.vote-down::before {
  content: "\2B07";
}

.vote-voted::before {
  color: var(--cdi-blue);
}

.vote-voted:hover::before {
  color: var(--cdi-blue);
}

/***** Actions *****/
/* Styles admin and en user actions(edit, delete, change status) in comments and posts */
.actions {
  text-align: center;
  flex-shrink: 0;
  /*Avoid collapsing elements in Safari*/
}

.actions .dropdown-toggle {
  font-size: 0;
  margin: 15px 0;
}

.actions .dropdown-toggle:hover::before, .actions .dropdown-toggle:focus::before, .actions .dropdown-toggle:active::before {
  background-color: var(--cdi-chip);
}

.actions .dropdown-toggle::before {
  background-color: transparent;
  border-radius: 50%;
  color: var(--cdi-muted);
  content: "\2699";
  display: block;
  font-size: 13px;
  margin: auto;
  padding: 5px;
}

/***** Community *****/
.community-footer {
  margin-top: clamp(24px, 3vw, 40px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
  text-align: center;
}

.community-footer h4 {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: clamp(20px, 1rem + .6vw, 26px);
  font-weight: 800;
}

.community-featured-posts, .community-activity {
  margin-top: clamp(24px, 3vw, 40px);
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
  width: 100%;
}

.community-featured-posts h3 {
  font-family: inherit;
  font-size: clamp(20px, 1rem + .6vw, 26px);
  font-weight: 800;
  text-align: left;
}

.community-header {
  margin-bottom: 30px;
}

.community-header h4 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(30px, 1.2rem + 2.6vw, 48px);
  font-weight: 800;
  line-height: 1.15;
}

div.community-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: space-between;
}

.community-header .page-header-description {
  flex: 1 1 320px;
  margin: 0;
}

.post-to-community {
  margin-top: 10px;
}

@media (min-width: 768px) {
  .post-to-community {
    margin: 0;
  }
}

/* Community topics grid */
.topics {
  max-width: none;
  width: 100%;
}

.topics-item .meta-group {
  justify-content: flex-start;
  margin-top: 16px;
}

/* Community topic page */
.topic-header {
  border-bottom: 1px solid var(--cdi-line);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.topic-header .dropdown-toggle {
  color: var(--cdi-blue);
  cursor: pointer;
}

@media (min-width: 768px) {
  .topic-header {
    padding-bottom: 10px;
  }
}

.topic-header .dropdown {
  display: block;
  border-top: 1px solid var(--cdi-line);
  padding: 10px 0;
}

@media (min-width: 768px) {
  .topic-header .dropdown {
    border-top: 0;
    display: inline-block;
    margin-right: 20px;
    padding: 0;
  }
}

.no-posts-with-filter {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Topic, post and user follow button */
.community-follow {
  margin-bottom: 10px;
  width: 100%;
}

@media (min-width: 768px) {
  .community-follow {
    margin-bottom: 0;
    width: auto;
  }
}

.community-follow .dropdown {
  width: 100%;
}

.community-follow [role="button"] {
  line-height: 30px;
  padding: 0 10px 0 15px;
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .community-follow [role="button"] {
    width: auto;
  }
}

.community-follow [role="button"]:hover {
  background-color: var(--cdi-blue);
}

.community-follow [role="button"]:hover::after, .community-follow [role="button"]:focus::after {
  border-color: var(--cdi-white);
  color: var(--cdi-white);
}

.community-follow [role="button"][aria-selected="true"] {
  background-color: var(--cdi-blue);
  color: var(--cdi-white);
}

.community-follow [role="button"][aria-selected="true"]::after {
  border-left: 1px solid var(--cdi-white);
  color: var(--cdi-white);
}

.community-follow [role="button"][aria-selected="true"]:hover {
  background-color: var(--cdi-blue);
  filter: brightness(.92);
  border-color: var(--cdi-blue);
}

.community-follow [role="button"]::after {
  border-left: 1px solid var(--cdi-blue);
  content: attr(data-follower-count);
  color: var(--cdi-blue);
  display: inline-block;
  font-family: inherit;
  margin-left: 15px;
  padding-left: 10px;
  position: absolute;
  right: 10px;
}

@media (min-width: 768px) {
  .community-follow [role="button"]::after {
    position: static;
  }
}

[dir="rtl"] .community-follow [role="button"]::after {
  border-left: 0;
  border-right: 1px solid var(--cdi-blue);
  margin: 0 10px 0 0;
  padding: 0 10px 0 0;
}

/***** Striped list *****/
/* Used in community posts list and requests list */
.striped-list {
  padding: 0;
}

.striped-list-item {
  align-items: flex-start;
  border-bottom: 1px solid var(--cdi-line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 0;
}

@media (min-width: 768px) {
  .striped-list-item {
    align-items: center;
    flex-direction: row;
  }
}

.striped-list-info {
  flex: 2;
}

.striped-list-title {
  color: var(--cdi-navy);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-right: 5px;
}

.striped-list-title:hover, .striped-list-title:focus, .striped-list-title:active {
  color: var(--cdi-blue);
  text-decoration: none;
}

.striped-list-title:visited {
  color: var(--cdi-navy);
}

.posts-list {
  padding: clamp(4px, 1vw, 12px) clamp(16px, 3vw, 32px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

.posts-list > li:last-child .striped-list-item {
  border-bottom: 0;
}

.striped-list .meta-group {
  margin: 5px 0;
}

.striped-list-count {
  color: var(--cdi-muted);
  font-weight: 600;
  font-size: 13px;
  justify-content: flex-start;
  text-transform: capitalize;
}

@media (min-width: 768px) {
  .striped-list-count {
    display: flex;
    flex: 1;
    justify-content: space-around;
  }
}

.striped-list-count-item::after {
  content: "·";
  display: inline-block;
  padding: 0 5px;
}

@media (min-width: 768px) {
  .striped-list-count-item::after {
    display: none;
  }
}

.striped-list-count-item:last-child::after {
  display: none;
}

.striped-list-number {
  font-weight: 300;
  text-align: center;
}

@media (min-width: 768px) {
  .striped-list-number {
    color: var(--cdi-navy);
    display: block;
    font-weight: 400;
  }
}

/***** Status labels *****/
/* Styles labels used in posts, articles and requests */
.status-label {
  background-color: var(--cdi-green);
  border-radius: 999px;
  color: var(--cdi-white);
  font-size: 12px;
  font-weight: 700;
  margin-right: 2px;
  padding: 3px 10px;
  vertical-align: middle;
  white-space: nowrap;
  display: inline-block;
}

.status-label:hover, .status-label:active, .status-label:focus {
  text-decoration: none;
}

.status-label-pinned, .status-label-featured, .status-label-official {
  background-color: var(--cdi-blue);
}

.status-label-official {
  border-radius: 0;
  margin-right: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .status-label-official {
    border-radius: 0 0 4px 4px;
    right: 30px;
    width: auto;
  }
}

[dir="rtl"] .status-label-official {
  left: 30px;
  right: auto;
}

.status-label-pending, .status-label-not-planned {
  background-color: #eee;
  color: var(--cdi-muted);
}

.status-label-pending {
  text-align: center;
}

.status-label-open {
  background-color: #e03b30;
}

.status-label-closed {
  background-color: var(--cdi-chip);
  color: var(--cdi-muted);
}

.status-label-solved {
  background-color: var(--cdi-muted);
}

.status-label-new {
  background-color: #ffd12a;
}

.status-label-hold {
  background-color: var(--cdi-navy);
}

.status-label-open, .status-label-closed, .status-label-solved, .status-label-new, .status-label-hold, .status-label-answered {
  text-transform: lowercase;
}

/***** Post *****/
/*
* The post grid is defined this way:
* Content | Sidebar
* 70%     | 30%
*/
.post {
  flex: 1;
  min-width: 0;
  padding: clamp(20px, 3.5vw, 48px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

.post-container {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 32px);
}

@media (min-width: 1024px) {
  .post-container {
    align-items: flex-start;
    flex-direction: row;
  }
}

.post-header {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .post-header {
    align-items: baseline;
    flex-direction: row;
  }
}

.post-header .status-label {
  vertical-align: super;
}

.post-title {
  margin-bottom: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .post-title {
    margin-bottom: 0;
    padding-right: 10px;
  }
}

.post-title h1 {
  display: inline;
  font-family: inherit;
  font-size: clamp(28px, 1.1rem + 2.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .post-title h1 {
    margin-right: 5px;
  }
}

.post-author {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.post-avatar {
  margin-bottom: 30px;
}

.post-content {
  font-family: inherit;
  line-height: 1.6;
  word-break: break-word;
}

.post-info-container {
  display: flex;
  margin-bottom: 40px;
}

.post-info {
  min-width: 0;
  padding-right: 20px;
  width: 100%;
}

[dir="rtl"] .post-info {
  padding-right: 0;
  padding-left: 20px;
}

.post-meta {
  display: inline-block;
  flex: 1;
  margin-left: 10px;
  vertical-align: middle;
}

[dir="rtl"] .post-meta {
  margin-left: 0;
  margin-right: 10px;
}

.post-body img {
  height: auto;
  max-width: 100%;
}

.post-body ul, .post-body ol {
  padding-left: 20px;
  list-style-position: outside;
  margin: 20px 0 20px 20px;
}

[dir="rtl"] .post-body ul, [dir="rtl"] .post-body ol {
  padding-right: 20px;
  padding-left: 0;
  margin-left: 0;
  margin-right: 20px;
}

.post-body ul > ul, .post-body ol > ol, .post-body ol > ul, .post-body ul > ol {
  margin: 0;
}

.post-body ul {
  list-style-type: disc;
}

.post-body a:visited {
  color: var(--cdi-blue);
}

.post-body code {
  background: var(--cdi-chip);
  border: 1px solid var(--cdi-line);
  border-radius: 3px;
  padding: 0 5px;
  margin: 0 2px;
}

.post-body pre {
  background: var(--cdi-chip);
  border: 1px solid var(--cdi-line);
  border-radius: 3px;
  padding: 10px 15px;
  overflow: auto;
  white-space: pre;
}

.post-body blockquote {
  border-left: 1px solid var(--cdi-line);
  color: var(--cdi-muted);
  font-style: italic;
  padding: 0 15px;
}

.post-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
}

.post-comment-count {
  color: var(--cdi-muted);
  font-weight: 300;
}

.post-comment-count:hover {
  text-decoration: none;
}

.post-comment-count .icon-comments {
  color: var(--cdi-blue);
  content: "\1F4AC";
  display: inline-block;
  font-size: 18px;
  padding: 5px;
}

.post-sidebar {
  flex: 1;
  padding: clamp(20px, 3vw, 28px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
  text-align: center;
}

@media (min-width: 1024px) {
  .post-sidebar {
    flex: 0 0 300px;
    text-align: initial;
  }
}

.post-sidebar .sidebar-title {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
}

.post-comments {
  margin-bottom: 20px;
}

@media (min-width: 1024px) {
  .post-comments {
    margin-bottom: 0;
  }
}

/* Navigation element that collapses on mobile */
.collapsible-nav {
  border-bottom: 1px solid var(--cdi-line);
  border-top: 1px solid var(--cdi-line);
  flex-direction: column;
  max-height: 45px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .collapsible-nav {
    border: 0;
    height: auto;
    flex-direction: row;
    max-height: none;
  }
}

.collapsible-nav-list {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .collapsible-nav-list {
    flex-direction: row;
  }
}

.collapsible-nav-list li {
  color: var(--cdi-navy);
  line-height: 45px;
  order: 1;
}

@media (min-width: 768px) {
  .collapsible-nav-list li {
    line-height: normal;
    margin-right: 30px;
  }
  [dir="rtl"] .collapsible-nav-list li {
    margin-left: 30px;
    margin-right: 0;
  }
  .collapsible-nav-list li a {
    text-decoration: none;
    padding: 15px 0;
  }
}

.collapsible-nav-list li a {
  color: var(--cdi-navy);
  display: block;
}

@media (min-width: 768px) {
  .collapsible-nav-list li:hover {
    border-bottom: 4px solid var(--cdi-line);
  }
  .collapsible-nav-list li:hover a {
    padding: 15px 0 11px 0;
    text-decoration: none;
  }
}

.collapsible-nav-list li[aria-selected="true"] {
  order: 0;
  position: relative;
}

@media (min-width: 768px) {
  .collapsible-nav-list li[aria-selected="true"] {
    border-bottom: 4px solid var(--cdi-blue);
    order: 1;
    padding: 15px 0 11px 0;
  }
}

.collapsible-nav-list li[aria-selected="true"] a {
  color: var(--cdi-navy);
}

.collapsible-nav-list li[aria-selected="true"]::after {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  content: "\25BE";
  position: absolute;
  right: 0;
}

@media (min-width: 768px) {
  .collapsible-nav-list li[aria-selected="true"]::after {
    display: none;
  }
}

[dir="rtl"] .collapsible-nav-list li[aria-selected="true"]::after {
  left: 0;
  right: auto;
}

.collapsible-nav[aria-expanded="true"] {
  max-height: none;
}

.collapsible-nav[aria-expanded="true"] li[aria-selected="true"]::after {
  content: "\2715";
}

/* Sidebar navigation that collapses on mobile */
.collapsible-sidebar {
  flex: 1;
  max-height: 45px;
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}

@media (min-width: 1024px) {
  .collapsible-sidebar {
    max-height: none;
    padding: 0;
  }
}

.collapsible-sidebar[aria-expanded="true"] {
  max-height: none;
}

.collapsible-sidebar[aria-expanded="true"] .collapsible-sidebar-title::after {
  content: "\2715";
}

@media (min-width: 1024px) {
  .collapsible-sidebar[aria-expanded="true"] .collapsible-sidebar-title::after {
    display: none;
  }
}

.collapsible-sidebar-title {
  margin-top: 0;
}

.collapsible-sidebar-title::after {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  content: "\25BE";
  position: absolute;
  right: 10px;
}

@media (min-width: 1024px) {
  .collapsible-sidebar-title::after {
    display: none;
  }
}

[dir="rtl"] .collapsible-sidebar-title::after {
  left: 10px;
  right: auto;
}

/***** My activities *****/
.my-activities-nav {
  background-color: var(--cdi-white);
  border: 0;
  box-shadow: 0 1px 0 var(--cdi-line);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.my-activities-sub-nav {
  background-color: transparent;
  border-bottom: 1px solid var(--cdi-line);
  flex-basis: 100%;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .my-activities-sub-nav li:hover {
    border-bottom: 4px solid var(--cdi-line);
  }
}

.my-activities-sub-nav li[aria-selected="true"] {
  border-color: var(--cdi-blue);
}

.my-activities-table .striped-list-title {
  /* My activities tables */
  display: block;
  margin-bottom: 10px;
  max-width: 350px;
  white-space: normal;
}

@media (min-width: 1024px) {
  .my-activities-table .striped-list-title {
    margin-bottom: 0;
    max-width: 500px;
    min-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.my-activities-table thead {
  display: none;
}

@media (min-width: 768px) {
  .my-activities-table thead {
    display: table-header-group;
  }
}

.my-activities-table th:first-child,
.my-activities-table td:first-child {
  padding-left: 0;
}

@media (min-width: 1024px) {
  .my-activities-table th:first-child,
  .my-activities-table td:first-child {
    width: 500px;
  }
}

.my-activities-table th:last-child,
.my-activities-table td:last-child {
  padding-right: 0;
}

.my-activities-table td:not(:first-child) {
  display: none;
}

@media (min-width: 768px) {
  .my-activities-table td:not(:first-child) {
    display: table-cell;
  }
}

/* Requests table */
.requests-search {
  width: 100%;
}

.requests-table-toolbar {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .requests-table-toolbar {
    flex-direction: row;
  }
}

.requests-table-toolbar .search {
  flex: 1;
  width: 100%;
}

.requests-table-toolbar .request-table-filter {
  width: 100%;
}

@media (min-width: 768px) {
  .requests-table-toolbar .request-table-filter {
    width: auto;
  }
}

.requests-table-toolbar .request-filter {
  display: block;
}

@media (min-width: 768px) {
  .requests-table-toolbar .request-filter {
    margin: 0 0 0 30px;
  }
  [dir="rtl"] .requests-table-toolbar .request-filter {
    margin: 0 30px 0 0;
  }
}

.requests-table-toolbar .request-filter-label {
  font-size: 13px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .requests-table-toolbar .request-filter-label {
    margin-top: 0;
  }
}

.requests-table-toolbar select {
  max-height: 40px;
  margin-bottom: 30px;
  width: 100%;
}

@media (min-width: 768px) {
  .requests-table-toolbar select {
    margin-bottom: 0;
    max-width: 300px;
    width: auto;
  }
}

.requests-table-toolbar .organization-subscribe,
.requests-table-toolbar .organization-unsubscribe {
  line-height: 40px;
  max-height: 40px;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .requests-table-toolbar .organization-subscribe,
  .requests-table-toolbar .organization-unsubscribe {
    margin-left: 10px;
  }
  [dir="rtl"] .requests-table-toolbar .organization-subscribe, [dir="rtl"]
  .requests-table-toolbar .organization-unsubscribe {
    margin: 0 10px 0 0;
  }
}

.requests-table-toolbar .organization-unsubscribe {
  background-color: var(--cdi-blue);
  color: var(--cdi-white);
}

.requests-table-toolbar + .requests-search-info {
  margin-top: 15px;
}

.requests-table-toolbar + .requests-search-info.meta-data::after {
  content: "";
  margin: 0;
}

.requests-table-toolbar + .requests-search-info + .requests {
  margin-top: 20px;
}

.requests {
  padding: clamp(8px, 1.4vw, 16px) clamp(16px, 3vw, 32px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

.requests-table-toolbar + .requests {
  margin-top: 24px;
}

.requests .requests-table-meta {
  display: block;
}

@media (min-width: 768px) {
  .requests .requests-table-meta {
    display: none;
  }
}

.requests .requests-table thead {
  display: none;
}

@media (min-width: 768px) {
  .requests .requests-table thead {
    display: table-header-group;
  }
}

.requests .requests-table-info {
  display: block;
}

@media (min-width: 768px) {
  .requests .requests-table-info {
    display: table-cell;
    vertical-align: middle;
    width: auto;
  }
}

.requests .requests-table .requests-link {
  position: relative;
}

.requests .requests-table .requests-sort-symbol {
  position: absolute;
  left: calc(100% + 3px);
  bottom: 0;
  font-size: 10px;
}

.my-activities-following-header {
  margin-bottom: 16px;
  font-weight: 700;
}

.my-activities-following-header .dropdown-toggle {
  color: var(--cdi-blue);
  cursor: pointer;
}

/* Following table */
.subscriptions-unsubscribe a {
  background: var(--cdi-blue);
  border-radius: 8px;
  color: var(--cdi-white);
  display: inline-block;
  font-size: 12px;
  line-height: 2.34;
  padding: 0 20px;
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {
  .subscriptions-unsubscribe a {
    width: auto;
  }
}

.subscriptions-unsubscribe a:hover {
  background-color: var(--cdi-blue);
  filter: brightness(.92);
  text-decoration: none;
}

.subscriptions-table td:last-child {
  display: block;
}

@media (min-width: 768px) {
  .subscriptions-table td:last-child {
    display: table-cell;
  }
}

.subscriptions-table td:first-child {
  display: flex;
  align-items: center;
}

.subscriptions-table .user-avatar {
  margin-right: 10px;
}

.subscriptions .striped-list-title {
  display: inline-block;
  vertical-align: middle;
}

/* Contributions table */
.contributions-table td:last-child {
  color: var(--cdi-muted);
  font-size: 13px;
  font-weight: 300;
}

@media (min-width: 768px) {
  .contributions-table td:last-child {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
  }
}

.no-activities {
  color: var(--cdi-muted);
}

/***** Request *****/
.request-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 32px);
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .request-container {
    align-items: flex-start;
    flex-direction: row;
  }
}

.request-container .comment-container {
  min-width: 0;
}

.request-breadcrumbs {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.request-main {
  flex: 1 0 auto;
  order: 1;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

.request-main .comment-fields, .request-main .request-submit-comment {
  display: none;
}

.request-main .comment-fields.shown {
  display: block;
}

.request-main .request-submit-comment.shown {
  display: inline;
}

@media (min-width: 1024px) {
  .request-main {
    flex: 1 1 0;
    order: 0;
    min-width: 0;
  }
}

.request-main .comment-form-controls {
  display: block;
}

.request-main .comment-ccs {
  display: block;
}

.request-main .comment-show-container {
  border-radius: 8px;
  border: 1px solid var(--cdi-line);
  cursor: pointer;
  display: flex;
  padding: 8px 15px;
  width: 100%;
}

.request-main .comment-show-container.hidden {
  display: none;
}

.request-main .comment-show-container-content {
  align-self: center;
  color: var(--cdi-muted);
  margin-left: 10px;
}

.request-main .form-field.comment-ccs > ul {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}

.request-main .form-field.comment-ccs > ul[data-hc-focus="true"] {
  border: 1px solid var(--cdi-blue);
}

.request-main .form-field.comment-ccs > input[type="text"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}

.request-main .comment-ccs + textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}

.request-main .comment-ccs + textarea:focus {
  border-top: 1px solid var(--cdi-blue);
}

.request-main input#mark_as_solved {
  display: none;
}

.request-title {
  width: 100%;
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-family: inherit;
  font-size: clamp(28px, 1.1rem + 2.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}

.request-sidebar {
  flex: 1 0 auto;
  order: 0;
  padding: 10px 20px;
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

@media (min-width: 1024px) {
  .request-sidebar {
    flex: 0 0 320px;
    font-size: 14px;
    padding: 12px 24px;
    width: auto;
  }
}

.request-sidebar h5 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  position: relative;
}

@media (min-width: 1024px) {
  .request-sidebar h5 {
    display: none;
  }
}

.request-details {
  border-bottom: 1px solid var(--cdi-line);
  font-size: 0;
  margin: 0;
  padding-bottom: 20px;
}

.request-details:last-child {
  border: 0;
}

.request-details dt, .request-details dd {
  display: inline-block;
  vertical-align: top;
  font-size: 13px;
  margin: 20px 0 0 0;
}

.request-details dd {
  padding: 0 10px;
  width: 60%;
  color: var(--cdi-navy);
  font-weight: 600;
}

.request-details dd::after {
  content: "\A";
  white-space: pre;
}

.request-details dt {
  color: var(--cdi-muted);
  font-weight: 600;
  width: 40%;
}

.request-details .request-collaborators {
  display: inline-block;
}

.request-attachments dt, .request-attachments dd {
  width: 100%;
}

.request-attachments dd {
  margin: 10px 0 0 0;
}

.request-form textarea {
  min-height: 120px;
}

.request-follow-up {
  padding-top: 20px;
}

/***** Pagination *****/
.pagination {
  margin: 20px 0;
  text-align: center;
}

.pagination * {
  display: inline-block;
}

.pagination li {
  border-radius: 50%;
  height: 40px;
  float: left;
  margin-left: 5px;
  width: 40px;
}

@media (min-width: 768px) {
  .pagination li {
    height: 30px;
    width: 30px;
  }
}

[dir="rtl"] .pagination li {
  float: right;
}

.pagination li:hover:not(.pagination-current) {
  background-color: #f3f3f3;
}

.pagination li:hover:not(.pagination-current) span, .pagination li:hover:not(.pagination-current) a {
  color: var(--cdi-navy);
  text-decoration: none;
}

.pagination a, .pagination span {
  font-size: 15px;
  color: var(--cdi-muted);
  padding: 10px 12px;
}

@media (min-width: 768px) {
  .pagination a, .pagination span {
    font-size: 13px;
    padding: 5px 12px;
  }
}

.pagination-current {
  background-color: var(--cdi-blue);
}

.pagination-current a, .pagination-current span {
  color: var(--cdi-white);
}

.pagination-first {
  border-radius: 3px 0 0 3px;
}

[dir="rtl"] .pagination-first {
  border-radius: 0 3px 3px 0;
}

.pagination-last {
  border-radius: 0 3px 3px 0;
}

[dir="rtl"] .pagination-last {
  border-radius: 3px 0 0 3px;
}

/***** Metadata *****/
.meta-group {
  display: block;
}

.meta-group * {
  display: inline;
}

.meta-data {
  color: var(--cdi-muted);
  font-size: 14px;
  font-weight: 500;
}

.meta-data:not(:last-child)::after {
  content: "\00B7";
  margin: 0 5px;
}

/***** Icons *****/
[class^="icon-"]::before,
[class*=" icon-"]::before,
.icon,
.recent-activity-item-comment span::before,
.article-vote::before,
.attachments .attachment-item::before,
.share a::before,
.vote-up::before,
.vote-down::before,
.actions .dropdown-toggle::before,
.collapsible-nav-list li[aria-selected="true"]::after,
.collapsible-sidebar-title::after,
.search-result-votes::before,
.search-result-meta-count::before {
  font-family: "copenhagen-icons";
  font-style: normal;
  font-weight: normal;
  speak: none;
  line-height: 1em;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
}

.icon-lock::before {
  content: "\1F512";
}

.icon-star::before {
  content: "\2605";
}

.icon-linkedin::before {
  content: "\e900";
}

.icon-twitter::before {
  content: "\e901";
}

.icon-googleplus-::before {
  content: "\e902";
}

.icon-facebook::before {
  content: "\e903";
}

.icon-agent::before {
  content: "\1F464";
}

.icon-close::before {
  content: "\2715";
}

.icon-arrow-up::before {
  content: "\2B06";
}

.icon-arrow-down::before {
  content: "\2B07";
}

.icon-attachments::before {
  content: "\1F4CE";
}

.icon-comments::before {
  content: "\1F4AC";
}

.icon-search::before {
  content: "\1F50D";
}

.icon-vote::before {
  content: "\1F44D";
}

.icon-handle::before {
  content: "\25BE";
}

.icon-check::before {
  content: "\2713";
}

.icon-gear::before {
  content: "\2699";
}

.icon-menu::before {
  content: "\2630";
}

.icon-article::before {
  content: "\1F4C4";
}

.icon-post::before {
  content: "\1F4D4";
}

.icon-notification-alert::before {
  content: "\26A0";
}

.icon-notification-error::before {
  content: "\00D7";
}

.icon-notification-info::before {
  content: "\2139";
}

.icon-notification-success::before {
  content: "\2714";
}

/* User Profiles */
.profile-header {
  margin-bottom: 0;
  padding: clamp(24px, 4vw, 48px) 0;
  background-color: var(--cdi-white);
  box-shadow: 0 1px 0 var(--cdi-line);
}

.profile-header .container {
  display: flex;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .profile-header .container {
    flex-wrap: nowrap;
  }
}

.profile-header .profile-info {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.profile-avatar {
  position: relative;
  line-height: 0;
  align-self: center;
  margin-right: 10px;
}

[dir="rtl"] .profile-avatar {
  margin-left: 10px;
  margin-right: 0;
}

.profile-avatar .user-avatar {
  width: 72px;
  height: 72px;
}

.profile-avatar .icon-agent::before {
  bottom: 0;
  right: 0;
}

.profile-header .basic-info {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
}

.profile-header .basic-info .name {
  margin: 0;
  font-family: inherit;
  font-size: clamp(26px, 1.1rem + 2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
}

.profile-header .basic-info .name a {
  color: var(--cdi-navy);
}

.profile-header .options {
  display: flex;
  flex-basis: 100%;
  margin-top: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .profile-header .options {
    flex-wrap: nowrap;
    flex-basis: auto;
    margin-top: 0;
    margin-left: 10px;
  }
  [dir="rtl"] .profile-header .options {
    margin-left: 0;
    margin-right: 10px;
  }
  .profile-header .options > :not(:last-child) {
    margin-bottom: 0;
    margin-right: 10px;
  }
  [dir="rtl"] .profile-header .options > :not(:last-child) {
    margin-left: 10px;
    margin-right: 0;
  }
}

.profile-header .options [data-action="edit-profile"] {
  background-color: var(--cdi-blue);
  border: 0;
  border-radius: 8px;
  color: var(--cdi-white);
  font-weight: 700;
  line-height: normal;
  padding: 8px 20px;
}

.profile-header .description {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  margin: 15px 0;
  flex-basis: 100%;
}

.profile-stats {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
}

.profile-stats .stat {
  display: flex;
  margin-bottom: 10px;
}

.profile-stats .stat-value {
  color: var(--cdi-navy);
  font-weight: 700;
}

.profile-stats .stat-label {
  color: var(--cdi-muted);
  font-weight: 600;
  flex: 0 0 100px;
  margin-right: 10px;
}

[dir="rtl"] .profile-stats .stat-label {
  margin-left: 10px;
  margin-right: 0;
}

.profile-stats-activity {
  border-top: solid 1px var(--cdi-line);
  margin-top: 15px;
}

@media (min-width: 768px) {
  .profile-stats-activity {
    border-top: 0;
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .profile-stats-activity .stat {
    flex-direction: column;
  }
}

.profile-stats-activity .stat:first-child {
  margin-top: 10px;
}

@media (min-width: 768px) {
  .profile-stats-activity .stat:first-child {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .profile-stats-activity .stat:not(:last-child) {
    margin-right: 40px;
  }
  [dir="rtl"] .profile-stats-activity .stat:not(:last-child) {
    margin-left: 40px;
    margin-right: 0;
  }
}

@media (min-width: 768px) {
  .profile-stats-activity .stat-label {
    flex: 0 1 auto;
  }
}

.profile-stats-counters {
  border-bottom: solid 1px var(--cdi-line);
}

@media (min-width: 768px) {
  .profile-stats-counters {
    flex: 0 0 200px;
    border-bottom: 0;
    margin-left: 40px;
  }
  [dir="rtl"] .profile-stats-counters {
    margin-left: 0;
    margin-right: 40px;
  }
}

@media (min-width: 1024px) {
  .profile-stats-counters {
    flex: 0 0 270px;
    margin-left: 60px;
  }
  [dir="rtl"] .profile-stats-counters {
    margin-right: 60px;
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  .profile-stats-counters .stat {
    flex-direction: column;
  }
}

@media (min-width: 1024px) {
  .profile-stats-counters .stat {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .profile-stats-counters .stat:not(:last-child) {
    margin-bottom: 15px;
  }
}

@media (min-width: 768px) {
  .profile-stats-counters .stat-label {
    flex: 0 1 auto;
  }
}

@media (min-width: 1024px) {
  .profile-stats-counters .stat-label {
    flex: 0 0 100px;
  }
}

.profile-private-badge {
  flex-basis: 100%;
  border: solid 1px var(--cdi-blue);
  border-radius: 8px;
  color: var(--cdi-blue);
  font-weight: 700;
  padding: 5px 20px;
  font-size: 12px;
  text-align: center;
}

.profile-private-badge::after {
  content: "\1f512";
  margin-left: 5px;
  font-family: "copenhagen-icons";
  vertical-align: middle;
  line-height: 15px;
}

@media (min-width: 768px) {
  .profile-private-badge {
    flex-basis: auto;
  }
}

.profile-nav {
  background-color: var(--cdi-white);
  border: 0;
  box-shadow: 0 1px 0 var(--cdi-line);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.profile-section {
  width: 100%;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

.profile-section-header {
  display: flex;
  flex-wrap: wrap;
}

.profile-section-title {
  flex-basis: 100%;
  margin-bottom: 0;
  font-family: inherit;
  font-size: clamp(22px, 1rem + 1vw, 28px);
  font-weight: 800;
}

.profile-section-description {
  flex-basis: 100%;
  padding: 10px 0;
  color: var(--cdi-muted);
  font-weight: 300;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .profile-section-description {
    flex: 1 0 50%;
    padding-bottom: 0;
  }
}

.profile-section-sorter {
  flex-basis: 100%;
  border-top: solid 1px var(--cdi-line);
  font-size: 13px;
}

.profile-section-sorter .dropdown-toggle {
  padding: 10px 0;
  width: 100%;
}

.profile-section-sorter .dropdown-toggle::after {
  position: absolute;
  right: 0;
}

[dir="rtl"] .profile-section-sorter .dropdown-toggle::after {
  left: 0;
  right: initial;
}

@media (min-width: 768px) {
  .profile-section-sorter .dropdown-toggle::after {
    position: relative;
  }
}

@media (min-width: 768px) {
  .profile-section-sorter {
    flex: 0 1 auto;
    padding-top: 0;
    border-top: 0;
    margin-left: 20px;
  }
  [dir="rtl"] .profile-section-sorter {
    margin-left: 0;
    margin-right: 20px;
  }
}

.profile-contribution {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  padding: 20px 0;
  position: relative;
}

.profile-contribution-header {
  margin-bottom: 5px;
}

.profile-contribution-title {
  margin: 0 0 5px 0;
  display: inline;
  line-height: 24px;
  font-size: 17px;
  font-weight: 700;
  vertical-align: middle;
}

.profile-contribution-title a {
  color: var(--cdi-navy);
}

.profile-contribution-title a:hover {
  color: var(--cdi-blue);
  text-decoration: none;
}

.profile-contribution-body {
  margin: 10px 0;
}

.profile-contribution-list > .profile-contribution {
  border-top: 1px solid var(--cdi-line);
}

@media (min-width: 768px) {
  .profile-contribution-list > .profile-contribution {
    padding-left: 30px;
  }
  [dir="rtl"] .profile-contribution-list > .profile-contribution {
    padding-right: 30px;
    padding-left: 0;
  }
}

.profile-contribution-list > .profile-contribution:last-child {
  border-bottom: 1px solid var(--cdi-line);
}

.profile-contribution-list > .profile-contribution::before {
  left: 0;
  position: absolute;
  font-size: 16px;
  color: var(--cdi-blue-soft);
  font-family: "copenhagen-icons";
  line-height: 25px;
}

[dir="rtl"] .profile-contribution-list > .profile-contribution::before {
  right: 0;
}

.profile-contribution-list .profile-contribution-header {
  margin-left: 30px;
}

[dir="rtl"] .profile-contribution-list .profile-contribution-header {
  padding-right: 30px;
  padding-left: 0;
}

@media (min-width: 768px) {
  .profile-contribution-list .profile-contribution-header {
    margin-left: 0;
  }
  [dir="rtl"] .profile-contribution-list .profile-contribution-header {
    padding-right: 0;
  }
}

.profile-comments .profile-contribution-breadcrumbs {
  margin-left: 30px;
}

[dir="rtl"] .profile-comments .profile-contribution-breadcrumbs {
  padding-right: 30px;
  padding-left: 0;
}

@media (min-width: 768px) {
  .profile-comments .profile-contribution-breadcrumbs {
    margin-left: 0;
  }
  [dir="rtl"] .profile-comments .profile-contribution-breadcrumbs {
    padding-right: 0;
  }
}

.profile-section .no-activity,
.profile-section .private-activity {
  display: block;
  margin-top: 40px;
  color: var(--cdi-muted);
}

.profile-section .private-activity::before {
  content: "\1f512";
  font-family: "copenhagen-icons";
  font-style: normal;
  font-size: 12px;
  font-weight: normal;
  vertical-align: middle;
  margin-right: 10px;
}

[dir="rtl"] .profile-section .private-activity::before {
  margin-right: 0;
  margin-left: 10px;
}

.profile-activity-list {
  margin-top: 25px;
}

.profile-activity {
  position: relative;
  padding-bottom: 30px;
}

@media (min-width: 768px) {
  .profile-activity {
    padding-left: 20px;
  }
  [dir="rtl"] .profile-activity {
    padding-right: 20px;
    padding-left: 0;
  }
}

@media (min-width: 768px) {
  .profile-activity:not(:last-child) {
    border-left: 1px solid var(--cdi-line);
  }
  [dir="rtl"] .profile-activity:not(:last-child) {
    border-left: 0;
    border-right: 1px solid var(--cdi-line);
  }
}

.profile-activity-header {
  display: flex;
  align-items: center;
  margin-left: 35px;
}

[dir="rtl"] .profile-activity-header {
  margin-left: 0;
  margin-right: 35px;
}

@media (min-width: 768px) {
  .profile-activity-header {
    margin-left: 0;
  }
  [dir="rtl"] .profile-activity-header {
    margin-right: 0;
  }
}

.profile-activity-header .user-avatar {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  min-width: 40px;
  align-self: flex-start;
}

[dir="rtl"] .profile-activity-header .user-avatar {
  margin-left: 10px;
  margin-right: 0;
}

.profile-activity-description {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.profile-activity-description span:first-child {
  font-weight: 600;
  display: inline;
}

.profile-activity-contribution {
  padding: 20px;
  margin-top: 10px;
  border-radius: 8px;
  background-color: var(--cdi-chip);
}

@media (min-width: 768px) {
  .profile-activity-contribution {
    margin-top: 0;
    margin-left: 50px;
  }
  [dir="rtl"] .profile-activity-contribution {
    margin-left: 0;
    margin-right: 50px;
  }
}

.profile-activity::before {
  position: absolute;
  left: 0;
  width: 28px;
  border-radius: 50%;
  content: "";
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-color: #ffffff;
  background-position: 50% 50%;
  text-align: center;
  line-height: 40px;
  font-size: 16px;
  color: var(--cdi-blue-soft);
  font-family: "copenhagen-icons";
}

[dir="rtl"] .profile-activity::before {
  right: 0;
}

@media (min-width: 768px) {
  .profile-activity::before {
    left: -14px;
  }
  [dir="rtl"] .profile-activity::before {
    right: -14px;
  }
}

.profile-articles > .profile-contribution::before,
.profile-activity-list > li[class$="-article"]::before {
  content: "\1f4c4";
}

.profile-posts > .profile-contribution::before,
.profile-activity-list > li[class$="-post"]::before {
  content: "\1f4d4";
}

.profile-comments > .profile-contribution::before,
.profile-activity-list > li[class$="-comment"]::before {
  content: "\1f4ac";
  line-height: 35px;
}

/***** Search results *****/
.search-results {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 32px);
}

@media (min-width: 1024px) {
  .search-results {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
}

.search-results-column {
  flex: 1;
  min-width: 0;
  padding: clamp(20px, 3vw, 36px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: var(--cdi-white);
  box-shadow: var(--cdi-shadow);
}

.search-results-subheading {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: clamp(20px, 1rem + .6vw, 26px);
  font-weight: 800;
}

.search-results-column > p {
  margin: 0;
  color: var(--cdi-muted);
  font-size: 16px;
  line-height: 1.6;
}

.search-results-column > p a {
  color: var(--cdi-blue);
  font-weight: 700;
  text-decoration: underline;
}

.search-results-list {
  margin: 0;
}

.search-results-list > li {
  border-bottom: 1px solid var(--cdi-line);
  padding: 20px 0;
}

.search-results-list > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.search-result-link {
  color: var(--cdi-navy);
  font-size: clamp(18px, .9rem + .5vw, 22px);
  font-weight: 700;
  line-height: 1.3;
}

.search-result-link:hover, .search-result-link:focus {
  color: var(--cdi-blue);
  text-decoration: none;
}

.search-result-description {
  max-width: 70ch;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.search-result-link em, .search-result-description em {
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(20, 194, 20, .16);
  font-style: normal;
  font-weight: 700;
}

.search-result-votes, .search-result-meta-count {
  color: var(--cdi-muted);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--cdi-chip);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  vertical-align: middle;
}

.search-result-votes::before, .search-result-meta-count::before {
  color: var(--cdi-green);
}

[dir="ltr"] .search-result-votes, [dir="ltr"] .search-result-meta-count {
  margin-left: 5px;
}

[dir="ltr"] .search-result-votes::before, [dir="ltr"] .search-result-meta-count::before {
  margin-right: 3px;
}

[dir="rtl"] .search-result-votes, [dir="rtl"] .search-result-meta-count {
  margin-right: 5px;
}

[dir="rtl"] .search-result-votes::before, [dir="rtl"] .search-result-meta-count::before {
  margin-left: 3px;
}

.search-result-votes::before {
  content: "\1F44D";
}

.search-result-meta-count::before {
  content: "\1F4AC";
}

.search-result .meta-group {
  align-items: center;
  margin-top: 8px;
}

.search-result .meta-data a {
  color: inherit;
  font-weight: 600;
}

.search-result-breadcrumbs {
  margin: 0;
}

.search-result-breadcrumbs li:last-child::after {
  content: "·";
  display: inline-block;
  margin: 0 5px;
}


/* ==========================================================
   CDI · Help Center — header, home y footer
   Medidas de Figma (frame ~1512px): hero 1222 · contenido 976 ·
   tarjetas 205×205 · filas 976×99 · flecha 79×99 · logo 80×42
   Todo es fluido: lo de Figma es el máximo en desktop.
   Íconos: icon-user.svg e icon-search.svg (assets del tema).
   ========================================================== */

/* Acotado a los bloques CDI: no toca el resto del tema */
.cdi-header, .cdi-main, .cdi-footer {
  color: var(--cdi-navy);
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.25;
  -webkit-text-size-adjust: 100%;
}
.cdi-header *, .cdi-header *::before, .cdi-header *::after,
.cdi-main *, .cdi-main *::before, .cdi-main *::after,
.cdi-footer *, .cdi-footer *::before, .cdi-footer *::after { box-sizing: border-box; }

.cdi-header a, .cdi-main a, .cdi-footer a { text-decoration: none; }
.cdi-header a:hover, .cdi-main a:hover, .cdi-header a:focus, .cdi-main a:focus { text-decoration: none; }
.cdi-header a:not(.login), .cdi-main a, .cdi-footer a { color: inherit; }
.cdi-header img, .cdi-main img { display: block; max-width: 100%; height: auto; }
.cdi-header :focus-visible, .cdi-main :focus-visible, .cdi-footer :focus-visible {
  outline: 3px solid var(--cdi-blue); outline-offset: 3px;
}
:where(.cdi-main h1, .cdi-main h2) { font-family: inherit; margin: 0; }
:where(.cdi-main ul, .cdi-footer ul) { list-style: none; margin: 0; padding: 0; }

.cdi-main { background: var(--cdi-page); }

/* ---------- Header ---------- */
.cdi-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(84px, 10vw, 150px);
  padding: clamp(16px, 4vw, 40px) clamp(var(--cdi-gutter), 7vw, 104px);
  background: var(--cdi-page);
}
.cdi-logo img { width: clamp(64px, 6vw, 80px); height: auto; aspect-ratio: 80 / 42; object-fit: contain; }

.cdi-header__nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }

/* "Nuevo tiquet" (helper link 'new_request') */
.cdi-header .cdi-link-ticket {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--cdi-navy);
}
.cdi-link-ticket img { flex: none; width: 28px; height: 28px; }

/* "Iniciar sesión" (lo pinta {{user_info}} como a.login) */
.cdi-header__nav a.login,
.cdi-header__nav a.login:hover,
.cdi-header__nav a.login:focus,
.cdi-header__nav a.login:active {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px clamp(14px, 1.4vw, 20px);
  border: 0;
  border-radius: 8px;
  background-color: var(--cdi-blue);
  color: var(--cdi-white);
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
}
.cdi-header__nav a.login::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background: url(/hc/theming_assets/01M4RR9VRY6P52K56XXSE5JP65) center / contain no-repeat;
}
.cdi-header__nav a.login:hover { filter: brightness(1.08); }

/* Con sesión iniciada: nombre/avatar de Zendesk, sin estilo de botón */
.cdi-header__nav .user-info > [role="button"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: auto;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--cdi-navy);
}
.cdi-header__nav #user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cdi-header__nav #user #user-name { display: inline-block; color: var(--cdi-navy); font-size: inherit; }

/* Botón hamburguesa (solo móvil) */
.cdi-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit;
}
.cdi-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--cdi-navy);
  transition: transform .2s ease, opacity .2s ease;
}
.cdi-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.cdi-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cdi-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.cdi-hero {
  width: min(var(--cdi-w-hero), calc(100% - 2 * var(--cdi-gutter)));
  min-height: 479px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 90px) clamp(16px, 4vw, 40px) calc(var(--cdi-cat-overlap) + clamp(28px, 4vw, 40px));
  background: var(--cdi-white);
  border-radius: clamp(14px, 1.6vw, 20px);
  box-shadow: var(--cdi-shadow);
  text-align: center;
}
.cdi-hero__title {
  font-size: clamp(30px, 1.2rem + 3.4vw, 64px);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}
.cdi-hero__title em { font-style: normal; color: var(--cdi-green); }

/* Buscador del hero: mismo componente .search, más grande */
.cdi-hero .search {
  width: min(845px, 100%);
  height: clamp(52px, 5.6vw, 75px);
  margin: clamp(24px, 3.4vw, 46px) auto 0;
}

.cdi-hero .search input[type="search"],
.cdi-hero .search input[type="search"]:focus {
  font-size: clamp(16px, 1.6vw, 22px);
}

.cdi-hero .search input[type="submit"],
.cdi-hero .search input[type="submit"]:hover,
.cdi-hero .search input[type="submit"]:focus {
  width: clamp(56px, 6vw, 80px);
  background-size: clamp(26px, 3vw, 42px);
}

.cdi-hero__subtitle {
  max-width: 62ch;
  margin: clamp(14px, 1.6vw, 22px) auto 0;
  font-size: clamp(16px, 1.1rem + .6vw, 26px);
  font-weight: 500;
  line-height: 1.3;
}
.cdi-hero__subtitle strong { font-weight: 500; color: var(--cdi-green); }

/* ---------- Categorías (montadas sobre el borde del hero) ---------- */
.cdi-cats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 205px));
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  width: min(var(--cdi-w-content), calc(100% - 2 * var(--cdi-gutter)));
  margin: calc(-1 * var(--cdi-cat-overlap)) auto 0;
}
.cdi-main .cdi-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 16px);
  width: 100%;
  aspect-ratio: 1;
  padding: 12px;
  background: var(--cdi-white);
  border-radius: clamp(12px, 1.4vw, 18px);
  box-shadow: var(--cdi-shadow);
  color: var(--cdi-navy);
  text-align: center;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cdi-main .cdi-cat:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(3, 20, 65, .12); }
.cdi-cat__label { text-wrap: balance; }

/* Ícono de cada categoría (<img> en el HTML) */
.cdi-cat__icon {
  display: block;
  width: 45%;
  max-width: 92px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

/* ---------- Secciones y filas ---------- */
.cdi-section {
  width: min(var(--cdi-w-content), calc(100% - 2 * var(--cdi-gutter)));
  margin: clamp(48px, 6vw, 80px) auto 0;
}
.cdi-section__title {
  margin: 0 0 clamp(20px, 2.6vw, 36px);
  text-align: center;
  font-size: clamp(28px, 1rem + 2.4vw, 44px);
  font-weight: 800;
  line-height: 1.27;
}

.cdi-rows { display: grid; gap: clamp(16px, 3vw, 44px); }

.cdi-main .cdi-row {
  display: flex;
  align-items: stretch;
  min-height: clamp(68px, 7.2vw, 99px);
  background: var(--cdi-white);
  border-radius: 12px;
  box-shadow: var(--cdi-shadow);
  color: var(--cdi-navy);
  overflow: hidden;
}
.cdi-row__label {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 12px clamp(16px, 3vw, 40px);
  font-size: clamp(16px, .9rem + .7vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.cdi-row__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(52px, 5.2vw, 79px);
  background: var(--cdi-green-soft);
  color: var(--cdi-green);
  transition: filter .15s ease;
}
/* Chevrón dibujado con CSS (sin asset) */
.cdi-row__arrow::after {
  content: "";
  width: clamp(9px, 1vw, 14px);
  height: clamp(9px, 1vw, 14px);
  margin-right: clamp(3px, .4vw, 6px);
  border-top: clamp(3px, .3vw, 4px) solid currentColor;
  border-right: clamp(3px, .3vw, 4px) solid currentColor;
  transform: rotate(45deg);
}
.cdi-row:hover .cdi-row__arrow { filter: brightness(.95); }
.cdi-row--blue .cdi-row__arrow { background: var(--cdi-blue-soft); color: var(--cdi-blue); }

/* ---------- Banda FAQ: la tarjeta cruza el inicio del footer ---------- */
.cdi-faq-band {
  margin-top: clamp(56px, 8vw, 115px);
  padding: 0 var(--cdi-gutter);
  background: linear-gradient(to bottom, var(--cdi-page) 0 57%, var(--cdi-navy-footer) 57% 100%);
}
.cdi-faq {
  width: min(var(--cdi-w-hero), 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 55px) var(--cdi-gutter) clamp(28px, 3.4vw, 45px);
  background: var(--cdi-white);
  border-radius: clamp(14px, 1.6vw, 20px);
  box-shadow: var(--cdi-shadow);
}
.cdi-faq .cdi-section__title { margin-bottom: clamp(18px, 2.2vw, 30px); }
.cdi-faq .cdi-rows { width: min(var(--cdi-w-content), 100%); margin: 0 auto; }

/* ---------- Footer ---------- */
.cdi-footer {
  padding: clamp(36px, 5vw, 60px) var(--cdi-gutter) clamp(32px, 4vw, 48px);
  background: var(--cdi-navy-footer);
  color: var(--cdi-white);
  text-align: center;
}
.cdi-footer__copy { margin: 0 0 8px; font-size: clamp(15px, 1.4vw, 20px); }
.cdi-footer__legal {
  max-width: 1226px;
  margin: 0 auto 28px;
  font-size: 12px;
  line-height: 1.4;
  opacity: .9;
}
.cdi-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 0 24px;
  font-size: 14px;
}
.cdi-footer__links a { display: inline-block; padding: 6px 0; text-decoration: underline; }
.cdi-footer__made { margin: 0; font-size: 13px; text-transform: uppercase; }
.cdi-footer__made .heart { color: #ff3b3b; }
.cdi-footer .footer-language-selector {
  display: inline-block;
  margin-top: 20px;
  font-weight: 300;
}
.cdi-footer .footer-language-selector,
.cdi-footer .footer-language-selector .dropdown-toggle { color: var(--cdi-white); }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .cdi-hero { min-height: 0; }
  .cdi-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdi-main .cdi-cat { aspect-ratio: 1.15; }
}

/* ---------- Móvil: header con menú ---------- */
@media (max-width: 720px) {
  .cdi-menu-toggle { display: flex; }

  .cdi-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--cdi-gutter);
    right: var(--cdi-gutter);
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: var(--cdi-white);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(3, 20, 65, .16);
  }
  .cdi-header__nav.is-open { display: flex; }
  .cdi-header .cdi-link-ticket { padding: 8px 12px; }
  .cdi-header__nav a.login { justify-content: center; }

  /* Usuario con sesión: avatar + nombre + flecha, alineado con "Nuevo tiquet" */
  .cdi-header__nav .user-info { display: block; }
  .cdi-header__nav .user-info > [role="button"] {
    display: flex;
    width: 100%;
    padding: 8px 12px;
  }
  .cdi-header__nav #user #user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cdi-header__nav .user-info .dropdown-toggle::after { display: inline-block; margin-left: auto; padding-right: 0; }
  .cdi-header__nav .user-info .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 4px;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 380px) {
  .cdi-main .cdi-cat { padding: 8px; }
  .cdi-row__label { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .cdi-header *, .cdi-main *, .cdi-footer * { transition: none !important; }
}