@charset "UTF-8";

/***** Normalize.css *****/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
  appearance: button;
}

button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type=checkbox],
[type=radio] {
  box-sizing: border-box;
  padding: 0;
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

[type=search] {
  -webkit-appearance: textfield;
  appearance: textfield;
  outline-offset: -2px;
}

[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

:root {
  --brand-color: #FF0558;
  --brand-color-dark: #cc0446;
  --brand-text-color: #FFFFFF;
  --bg-color: #FFFFFF;
  --text-color: #2F3941;
  --text-color-light: #6c7378;
  --link-color: #1F73B7;
  --container-bg: #F8F9F9;
  --card-bg: #FFFFFF;
  --card-border: #E9EBED;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --header-bg: rgba(255, 255, 255, 0.8);
  --input-bg: #FFFFFF;
  --input-border: #848F99;
  --section-text-color: #000000;
  --hover-border-color: #000000;
}

[data-theme='dark'] {
  --bg-color: #0F0F0F;
  --text-color: #FFFFFF;
  --text-color-light: #B0B0B0;
  --link-color: #FF0558;
  --container-bg: #1A1A1A;
  --card-bg: #242424;
  --card-border: #333333;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(15, 15, 15, 0.9);
  --input-bg: #1A1A1A;
  --input-border: #444444;
  --section-text-color: #FFFFFF;
  --hover-border-color: var(--brand-color);
}

/* ===== Floating Action Button (FAB) Group ===== */
.fab-group {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.fab-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fab-btn:hover {
  transform: scale(1.1);
  border-color: var(--brand-color);
  box-shadow: 0 6px 24px rgba(255, 5, 88, 0.3);
}

.fab-btn:active {
  transform: scale(0.95);
}

/* Theme toggle: sun/moon icon switching */
.fab-theme .fab-sun {
  display: none;
}

.fab-theme .fab-moon {
  display: block;
}

[data-theme='dark'] .fab-theme .fab-sun {
  display: block;
}

[data-theme='dark'] .fab-theme .fab-moon {
  display: none;
}

/* Scroll-to-top: hidden by default, shown on scroll */
.fab-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.fab-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-top:hover {
  transform: translateY(-2px) scale(1.1);
  border-color: var(--brand-color);
  box-shadow: 0 6px 24px rgba(255, 5, 88, 0.3);
}

/* Hide old header theme toggle completely */
.theme-toggle-wrapper {
  display: none !important;
}

/***** Base *****/
* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Sticky-footer scaffold: when content is short (e.g. empty requests list),
     footer should stay at the viewport bottom instead of floating mid-screen. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

body > footer,
body > .footer {
  flex-shrink: 0;
  /* No margin-top: auto — main's `flex: 1 0 auto` already grows to fill the
     gap, and the auto kept the footer's own 64px margin-top from applying
     (rule specificity made auto win in cascade). */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  margin-top: 0;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 22px;
}

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

h4 {
  font-size: 16px;
}

a {
  color: #1F73B7;
  text-decoration: none;
}

a:visited {
  color: #9358B0;
}

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

.hbs-form input,
.hbs-form textarea,
.search input,
.search textarea {
  color: #000;
  font-size: 14px;
}

.hbs-form input,
.search input {
  max-width: 100%;
  box-sizing: border-box;
  transition: border 0.12s ease-in-out;
  /* We use the :where selector to not increase the specificity of the selector */
}

.hbs-form input:where(:not([type=checkbox])),
.search input:where(:not([type=checkbox])) {
  outline: none;
}

.hbs-form input:where(:not([type=checkbox])):focus,
.search input:where(:not([type=checkbox])):focus {
  border: 1px solid #17494D;
}

.hbs-form input[disabled],
.search input[disabled] {
  background-color: #ddd;
}

.hbs-form select,
.search select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23CCC' d='M0 0h10L5 6 0 0z'/%3E%3C/svg%3E%0A") no-repeat #fff;
  background-position: right 10px center;
  border: 1px solid #848F99;
  border-radius: 4px;
  padding: 8px 30px 8px 10px;
  outline: none;
  color: #555;
  width: 100%;
}

.hbs-form select:focus,
.search select:focus {
  border: 1px solid #17494D;
}

.hbs-form select::-ms-expand,
.search select::-ms-expand {
  display: none;
}

.hbs-form textarea,
.search textarea {
  border: 1px solid #848F99;
  border-radius: 2px;
  resize: vertical;
  width: 100%;
  outline: none;
  padding: 10px;
}

.hbs-form textarea:focus,
.search textarea:focus {
  border: 1px solid #17494D;
}

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

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

.container-divider {
  border-top: 1px solid #ddd;
  margin-bottom: 20px;
}

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

.error-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 120px;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Big brand "oops" heading */
.error-page h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--brand-color, #FF0558);
  letter-spacing: -0.02em;
}

/* Sub message (e.g. "찾고 있는 페이지가 존재하지 않습니다") */
.error-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-color);
}

.error-page h2 a {
  color: var(--brand-color, #FF0558);
  text-decoration: none;
}

.error-page p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 32px;
  color: var(--text-color-light, #888);
}

/* "홈 페이지로 이동" → brand button */
.error-page > a {
  display: inline-block;
  background-color: var(--brand-color, #FF0558);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 10px;
  transition: background-color 0.18s, transform 0.18s;
}

.error-page > a:hover {
  background-color: #d80046;
  transform: translateY(-1px);
}

[data-theme='dark'] .error-page > a:hover {
  background-color: #ff2d72;
}

@media (max-width: 640px) {
  .error-page {
    padding: 64px 20px 88px;
  }
  .error-page h1 {
    font-size: 40px;
  }
  .error-page h2 {
    font-size: 19px;
  }
}

.visibility-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/***** Buttons *****/
.button,
.pagination-next-link,
.pagination-prev-link,
.pagination-first-link,
.pagination-last-link,
.subscriptions-subscribe button,
.requests-table-toolbar .organization-subscribe button,
.community-follow button,
.article-subscribe button,
.section-subscribe button,
.split-button button {
  background-color: transparent;
  border: 1px solid #17494D;
  border-radius: 4px;
  color: #17494D;
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  line-height: 2.34;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  transition: background-color 0.12s ease-in-out, border-color 0.12s ease-in-out, color 0.15s ease-in-out;
  user-select: none;
  white-space: nowrap;
  width: 100%;
  -webkit-touch-callout: none;
}

@media (min-width: 768px) {

  .button,
  .pagination-next-link,
  .pagination-prev-link,
  .pagination-first-link,
  .pagination-last-link,
  .subscriptions-subscribe button,
  .requests-table-toolbar .organization-subscribe button,
  .community-follow button,
  .article-subscribe button,
  .section-subscribe button,
  .split-button button {
    width: auto;
  }
}

.button:visited,
.pagination-next-link:visited,
.pagination-prev-link:visited,
.pagination-first-link:visited,
.pagination-last-link:visited,
.subscriptions-subscribe button:visited,
.requests-table-toolbar .organization-subscribe button:visited,
.community-follow button:visited,
.article-subscribe button:visited,
.section-subscribe button:visited,
.split-button button:visited {
  color: #17494D;
}

.button:hover,
.pagination-next-link:hover,
.pagination-prev-link:hover,
.pagination-first-link:hover,
.pagination-last-link:hover,
.subscriptions-subscribe button:hover,
.requests-table-toolbar .organization-subscribe button:hover,
.community-follow button:hover,
.article-subscribe button:hover,
.section-subscribe button:hover,
.split-button button:hover,
.button:active,
.pagination-next-link:active,
.pagination-prev-link:active,
.pagination-first-link:active,
.pagination-last-link:active,
.subscriptions-subscribe button:active,
.requests-table-toolbar .organization-subscribe button:active,
.community-follow button:active,
.article-subscribe button:active,
.section-subscribe button:active,
.split-button button:active,
.button:focus,
.pagination-next-link:focus,
.pagination-prev-link:focus,
.pagination-first-link:focus,
.pagination-last-link:focus,
.subscriptions-subscribe button:focus,
.requests-table-toolbar .organization-subscribe button:focus,
.community-follow button:focus,
.article-subscribe button:focus,
.section-subscribe button:focus,
.split-button button:focus,
.button.button-primary,
.button-primary.pagination-next-link,
.button-primary.pagination-prev-link,
.button-primary.pagination-first-link,
.button-primary.pagination-last-link,
.subscriptions-subscribe button.button-primary,
.subscriptions-subscribe button[data-selected=true],
.requests-table-toolbar .organization-subscribe button.button-primary,
.requests-table-toolbar .organization-subscribe button[data-selected=true],
.community-follow button.button-primary,
.article-subscribe button.button-primary,
.article-subscribe button[data-selected=true],
.section-subscribe button.button-primary,
.section-subscribe button[data-selected=true],
.split-button button.button-primary {
  background-color: #17494D;
  color: #FFFFFF;
  text-decoration: none;
}

.button.button-primary:hover,
.button-primary.pagination-next-link:hover,
.button-primary.pagination-prev-link:hover,
.button-primary.pagination-first-link:hover,
.button-primary.pagination-last-link:hover,
.subscriptions-subscribe button.button-primary:hover,
.subscriptions-subscribe button[data-selected=true]:hover,
.requests-table-toolbar .organization-subscribe button.button-primary:hover,
.requests-table-toolbar .organization-subscribe button[data-selected=true]:hover,
.community-follow button.button-primary:hover,
.article-subscribe button.button-primary:hover,
.article-subscribe button[data-selected=true]:hover,
.section-subscribe button.button-primary:hover,
.section-subscribe button[data-selected=true]:hover,
.split-button button:hover,
.button.button-primary:focus,
.button-primary.pagination-next-link:focus,
.button-primary.pagination-prev-link:focus,
.button-primary.pagination-first-link:focus,
.button-primary.pagination-last-link:focus,
.subscriptions-subscribe button.button-primary:focus,
.subscriptions-subscribe button[data-selected=true]:focus,
.requests-table-toolbar .organization-subscribe button.button-primary:focus,
.requests-table-toolbar .organization-subscribe button[data-selected=true]:focus,
.community-follow button.button-primary:focus,
.article-subscribe button.button-primary:focus,
.article-subscribe button[data-selected=true]:focus,
.section-subscribe button.button-primary:focus,
.section-subscribe button[data-selected=true]:focus,
.split-button button.button-primary:focus,
.button.button-primary:active,
.button-primary.pagination-next-link:active,
.button-primary.pagination-prev-link:active,
.button-primary.pagination-first-link:active,
.button-primary.pagination-last-link:active,
.subscriptions-subscribe button.button-primary:active,
.subscriptions-subscribe button[data-selected=true]:active,
.requests-table-toolbar .organization-subscribe button.button-primary:active,
.requests-table-toolbar .organization-subscribe button[data-selected=true]:active,
.community-follow button.button-primary:active,
.article-subscribe button.button-primary:active,
.article-subscribe button[data-selected=true]:active,
.section-subscribe button.button-primary:active,
.section-subscribe button[data-selected=true]:active,
.split-button button.button-primary:active {
  background-color: #000;
  border-color: #000;
}

.button[data-disabled],
[data-disabled].pagination-next-link,
[data-disabled].pagination-prev-link,
[data-disabled].pagination-first-link,
[data-disabled].pagination-last-link,
.subscriptions-subscribe button[data-disabled],
.requests-table-toolbar .organization-subscribe button[data-disabled],
.community-follow button[data-disabled],
.article-subscribe button[data-disabled],
.section-subscribe button[data-disabled],
.split-button button[data-disabled] {
  cursor: default;
}

/* Pagination redesign — override #17494D (teal from manifest) with WATCHA pink + cleaner buttons */
.pagination {
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
}
.pagination-list {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.pagination-next-link,
.pagination-prev-link {
  background-color: transparent !important;
  border: 1px solid var(--card-border) !important;
  color: var(--text-color) !important;
  border-radius: 10px !important;
  padding: 9px 18px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pagination-next-link:visited,
.pagination-prev-link:visited {
  color: var(--text-color) !important;
}
.pagination-next-link:hover,
.pagination-prev-link:hover,
.pagination-next-link:focus,
.pagination-prev-link:focus,
.pagination-next-link:active,
.pagination-prev-link:active {
  background-color: var(--brand-color) !important;
  border-color: var(--brand-color) !important;
  color: #fff !important;
  text-decoration: none !important;
}
.pagination-next-icon,
.pagination-prev-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
}

/* Hide first/last jump buttons — redundant with prev/next and confusing with double arrows */
.pagination-first,
.pagination-last {
  display: none !important;
}

.pagination-info {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color-light);
  white-space: nowrap;
  user-select: none;
}

.button-large,
.hbs-form input[type=submit] {
  cursor: pointer;
  background-color: #17494D;
  border: 0;
  border-radius: 4px;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 2.72;
  min-width: 190px;
  padding: 0 1.9286em;
  width: 100%;
}

@media (min-width: 768px) {

  .button-large,
  .hbs-form input[type=submit] {
    width: auto;
  }
}

.button-large:visited,
.hbs-form input[type=submit]:visited {
  color: #FFFFFF;
}

.button-large:hover,
.button-large:active,
.button-large:focus,
.hbs-form input[type=submit]:hover,
.hbs-form input[type=submit]:active,
.hbs-form input[type=submit]:focus {
  background-color: #000;
}

.button-large[disabled],
.hbs-form input[type=submit][disabled] {
  background-color: #ddd;
}

.button-secondary {
  color: #5a6d7c;
  border: 1px solid #848F99;
  background-color: transparent;
}

.button-secondary:visited {
  color: #5a6d7c;
}

.button-secondary:hover,
.button-secondary:focus,
.button-secondary:active {
  color: #2F3941;
  border: 1px solid #848F99;
  background-color: #f7f7f7;
}

/***** Split button *****/
.split-button {
  display: flex;
}

.split-button button {
  background-color: #17494D;
  border: 0;
  color: #FFFFFF;
  height: 32px;
  line-height: 16px;
  outline-color: #17494D;
}

[dir=rtl] .split-button button:not(:only-child):first-child {
  border-left: 1px solid #FFFFFF;
  border-top-left-radius: unset;
  border-bottom-left-radius: unset;
}

[dir=ltr] .split-button button:not(:only-child):first-child {
  border-right: 1px solid #FFFFFF;
  border-top-right-radius: unset;
  border-bottom-right-radius: unset;
}

.split-button button:not(:only-child):last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  padding: 0;
}

[dir=rtl] .split-button button:not(:only-child):last-child {
  border-top-right-radius: unset;
  border-bottom-right-radius: unset;
}

[dir=ltr] .split-button button:not(:only-child):last-child {
  border-top-left-radius: unset;
  border-bottom-left-radius: unset;
}

/***** Tables *****/
.table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
}

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

.table th,
.table th a {
  color: #5a6d7c;
  font-size: 13px;
  text-align: left;
}

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

.table tr {
  border-bottom: 1px solid #ddd;
  display: block;
  padding: 20px 0;
}

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

.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: 650px;
}

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

.form-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}

.form-field input {
  border: 1px solid #848F99;
  border-radius: 4px;
  padding: 10px;
  width: 100%;
}

.form-field input:focus {
  border: 1px solid #17494D;
}

.form-field input[type=text] {
  border: 1px solid #848F99;
  border-radius: 4px;
}

.form-field input[type=text]:focus {
  border: 1px solid #17494D;
}

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

.form-field .nesty-input {
  border-radius: 4px;
  border: 1px solid #848F99;
  height: 40px;
  line-height: 40px;
  outline: none;
  vertical-align: middle;
}

.form-field .nesty-input:focus {
  border: 1px solid #17494D;
  text-decoration: none;
}

.form-field .hc-multiselect-toggle {
  border: 1px solid #848F99;
}

.form-field .hc-multiselect-toggle:focus {
  outline: none;
  border: 1px solid #17494D;
  text-decoration: none;
}

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

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

.form-field .optional {
  color: #5a6d7c;
  margin-left: 4px;
}

.form-field p {
  color: #5a6d7c;
  font-size: 12px;
  margin: 5px 0;
}

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

.form footer a {
  color: #5a6d7c;
  cursor: pointer;
  margin-right: 15px;
}

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

.form .suggestion-list label {
  border-bottom: 1px solid #ddd;
  display: block;
  padding-bottom: 5px;
}

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

.form .suggestion-list li a:visited {
  color: #9358B0;
}

/***** Header *****/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 70px;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

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

.logo img {
  max-height: 37px;
  vertical-align: middle;
}

.logo span:not(.brand-logo-container) {
  display: none;
  /* 왓챠 고객센터 글씨 숨김 (brand-logo-container는 유지) */
}

.brand-logo-container {
  display: flex;
  align-items: center;
}

.watcha-logo-svg {
  height: 28px;
  width: auto;
  color: var(--brand-color);
  transition: transform 0.3s ease;
}

.logo a:hover .watcha-logo-svg {
  transform: scale(1.05);
}

/* WATCHA logo (inline SVG, replaces text SVG) */
svg.watcha-logo-img {
  height: 32px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo a:hover svg.watcha-logo-img {
  transform: scale(1.05);
}

/* WATCHA logo: always pink (#ff0558), no dark/light switching */

.logo a {
  display: inline-block;
}

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

.user-nav {
  display: flex;
  align-items: center;
  position: absolute;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .user-nav {
    position: relative;
  }
}

.user-nav[aria-expanded=true] {
  background-color: #fff;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15), 0 4px 10px 0 rgba(0, 0, 0, 0.1);
  border: solid 1px #ddd;
  right: 0;
  left: 0;
  top: 71px;
  z-index: 1;
}

.user-nav[aria-expanded=true]>a {
  display: block;
  margin: 20px;
}

.user-nav[aria-expanded=true]>.user-nav-list li {
  display: block;
}

.user-nav[aria-expanded=true]>.user-nav-list a {
  display: block;
  margin: 20px;
}

.user-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
}

.user-nav-list>li {
  display: inline-block;
}

/* Desktop nav always hidden — use hamburger on all screen sizes */
.nav-wrapper-desktop {
  display: none !important;
}

.nav-wrapper-desktop a {
  border: 0;
  color: #1F73B7;
  display: none;
  font-size: 14px;
  padding: 0 20px 0 0;
  width: auto;
}

@media (min-width: 768px) {
  .nav-wrapper-desktop a {
    display: inline-block;
  }
}

[dir=rtl] .nav-wrapper-desktop a {
  padding: 0 0 0 20px;
}

.nav-wrapper-desktop a:hover,
.nav-wrapper-desktop a:focus,
.nav-wrapper-desktop a:active {
  background-color: transparent;
  color: #1F73B7;
  text-decoration: underline;
}

/* Mobile nav always visible */

.nav-wrapper-mobile .menu-button-mobile {
  background: none;
  border: 0;
  width: auto;
  min-width: 71px;
  cursor: pointer;
}

.nav-wrapper-mobile .menu-button-mobile .icon-menu {
  padding: 7px;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.nav-wrapper-mobile .menu-button-mobile[aria-expanded=true] .icon-menu {
  background: #f3f3f3;
}

.nav-wrapper-mobile .menu-list-mobile {
  position: absolute;
  background-color: var(--bg-color, #fff);
  box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.15);
  border-top: solid 1px var(--card-border, #ddd);
  border-bottom: solid 1px var(--card-border, #ddd);
  right: 0;
  left: 0;
  top: 71px;
  z-index: 2;
}

.nav-wrapper-mobile .menu-list-mobile[aria-expanded=false] {
  display: none;
}

.nav-wrapper-mobile .menu-list-mobile[aria-expanded=true] {
  display: block;
}

.nav-wrapper-mobile .menu-list-mobile-items .item {
  margin: 4px 0;
}

.nav-wrapper-mobile .menu-list-mobile-items li:empty:not(.nav-divider) {
  display: none;
}

.nav-wrapper-mobile .menu-list-mobile-items .nav-divider {
  border-bottom: 0.1px solid #ddd;
  padding: 0;
}

.nav-wrapper-mobile .menu-list-mobile-items .nav-divider:last-child {
  display: none;
}

.nav-wrapper-mobile .menu-list-mobile-items button {
  background: none;
  border: none;
  padding: 8px 24px;
  width: 100%;
  height: 100%;
  color: #2F3941;
  cursor: pointer;
  text-align: start;
}

.nav-wrapper-mobile .menu-list-mobile-items button:active,
.nav-wrapper-mobile .menu-list-mobile-items button:focus,
.nav-wrapper-mobile .menu-list-mobile-items button:hover {
  background-color: #f3f3f3;
  text-decoration: underline;
}

.nav-wrapper-mobile .menu-list-mobile-items a {
  display: block;
  padding: 8px 24px;
  width: 100%;
  height: 100%;
  color: #2F3941;
}

.nav-wrapper-mobile .menu-list-mobile-items a:active,
.nav-wrapper-mobile .menu-list-mobile-items a:focus,
.nav-wrapper-mobile .menu-list-mobile-items a:hover {
  background-color: #f3f3f3;
}

.nav-wrapper-mobile .menu-list-mobile-items .my-profile {
  display: flex;
  line-height: 1.5;
}

.nav-wrapper-mobile .menu-list-mobile-items .my-profile .my-profile-tooltip {
  font-size: 12px;
  color: #68737D;
}

.nav-wrapper-mobile .menu-list-mobile-items .menu-profile-avatar {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  margin-top: 1px;
}

[dir=rtl] .nav-wrapper-mobile .menu-list-mobile-items .menu-profile-avatar {
  margin-right: 0;
  margin-left: 8px;
}

.skip-navigation {
  align-items: center;
  background-color: black;
  color: white;
  display: flex;
  font-size: 14px;
  justify-content: center;
  left: -999px;
  margin: 20px;
  padding: 20px;
  overflow: hidden;
  position: absolute;
  top: auto;
  z-index: -999;
}

[dir=rtl] .skip-navigation {
  left: initial;
  right: -999px;
}

.skip-navigation:focus,
.skip-navigation:active {
  left: auto;
  overflow: auto;
  text-align: center;
  text-decoration: none;
  top: auto;
  z-index: 999;
}

[dir=rtl] .skip-navigation:focus,
[dir=rtl] .skip-navigation:active {
  left: initial;
  right: auto;
}

#zd-modal-container~.skip-navigation {
  display: none;
}

/***** 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>button {
  border: 0;
  color: #1F73B7;
  min-width: 0;
  padding: 0;
  white-space: nowrap;
}

.user-info>button:hover,
.user-info>button:focus {
  color: #1F73B7;
  background-color: transparent;
}

.user-info>button::after {
  color: #1F73B7;
  padding-right: 15px;
}

[dir=rtl] .user-info>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 {
  color: #17494D;
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: -4px;
  background-color: #FFFFFF;
  font-size: 17px;
  height: 17px;
  line-height: 17px;
  position: absolute;
  right: -2px;
  text-align: center;
  width: 17px;
}

/***** Footer (WATCHA style) *****/
.footer {
  background-color: var(--container-bg);
  border-top: 1px solid var(--card-border);
  color: var(--text-color-light);
  padding: 32px 0 28px;
  margin-top: 64px;
  font-size: 13px;
  line-height: 1.6;
}


.footer a {
  color: var(--text-color-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--text-color);
  text-decoration: none;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Legal/terms links — top row */
.footer-legal-links {
  list-style: none;
  margin: 0 0 20px;
  padding: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--card-border);
}
.footer-legal-links li {
  position: relative;
  padding: 0 14px;
  font-size: 13px;
}
.footer-legal-links li:first-child { padding-left: 0; }
.footer-legal-links li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 11px;
  background: var(--card-border);
}
.footer-legal-links a { font-weight: 500; color: var(--text-color-light); }
.footer-legal-links a strong { font-weight: 700; color: var(--text-color); }
.footer-legal-links a:hover { color: var(--text-color); }

/* Contact info — middle */
.footer-contact-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact-row {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 13px;
}
.footer-contact-label {
  flex: 0 0 140px;
  color: var(--text-color);
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding-right: 16px;
}
.footer-contact-label::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-45%);
  width: 1px;
  height: 12px;
  background: var(--card-border);
}
.footer-contact-values {
  flex: 1;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-left: 16px;
}
.footer-contact-values a { color: var(--text-color-light); }
.footer-contact-values a:hover { color: var(--text-color); }
.footer-contact-plain { color: var(--text-color-light); }
.footer-sep {
  color: var(--text-color-light);
  font-size: 13px;
  font-weight: 700;
  opacity: 0.7;
  user-select: none;
  margin: 0 2px;
}

/* Language selector (Zendesk required) — bottom-left to avoid FAB overlap */
.footer-language-selector {
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
  text-align: left;
}
.footer-language-selector .dropdown-toggle {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text-color-light);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-language-selector .dropdown-toggle:hover {
  border-color: var(--text-color-light);
  color: var(--text-color);
}
.footer-language-icon {
  flex-shrink: 0;
  opacity: 0.85;
}
.footer-language-menu {
  left: 0 !important;
  right: auto !important;
  min-width: 120px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 4px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  font-family: inherit;
}
.footer-language-menu a {
  display: block;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-color);
  text-decoration: none;
}
.footer-language-menu a:hover {
  background: var(--container-bg);
  color: var(--brand-color);
}

/* Hide the legacy "powered by zendesk" if it appears */
.powered-by-zendesk { display: none; }

/* Footer breakpoints follow watcha.com product policy:
   - Small (≤599): single-column stack, each row = label on top / values below
   - Medium (600-767): 2-column grid of contact rows
   - Large (≥768): horizontal inline — label | value · value (existing default rules)
   Content stays as-is; only the layout pattern follows the policy. */

/* --- Medium (600-767px): 2-column grid like watcha.com mobile-medium --- */
@media (min-width: 600px) and (max-width: 767px) {
  .footer { padding: 28px 0 24px; margin-top: 48px; }
  .footer-legal-links {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .footer-legal-links li { font-size: 12px; }
  .footer-contact-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 14px;
    margin-bottom: 16px;
  }
  .footer-contact-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.5;
  }
  .footer-contact-label {
    flex: 0 0 auto;
    padding-right: 0;
    font-size: 12px;
    font-weight: 500;
  }
  .footer-contact-label::after { display: none; }
  .footer-contact-values {
    flex: 1;
    padding-left: 0;
    font-size: 12px;
  }
  .footer-language-selector { text-align: left; margin-top: 4px; }
}

/* --- Small (≤599px): single-column stack like watcha.com mobile-small --- */
@media (max-width: 599px) {
  .footer { padding: 22px 0 20px; margin-top: 36px; }
  .footer-legal-links {
    gap: 0;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .footer-legal-links li { padding: 0 8px; font-size: 12px; line-height: 1.7; }
  .footer-contact-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    margin-bottom: 14px;
  }
  .footer-contact-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.5;
  }
  .footer-contact-label {
    flex: 0 0 auto;
    padding-right: 0;
    font-size: 12px;
    font-weight: 600;
  }
  .footer-contact-label::after { display: none; }
  .footer-contact-values {
    flex: 1;
    padding-left: 0;
    font-size: 12px;
  }
  .footer-language-selector { text-align: left; margin-top: 4px; }
}

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

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

.breadcrumbs li {
  color: #5a6d7c;
  font-size: 13px;
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.breadcrumbs li a:visited {
  color: #1F73B7;
}

/***** Search field *****/
.search-container {
  position: relative;
  width: 100%;
}

.search {
  background-color: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  box-shadow: var(--card-shadow);
  display: flex;
  margin: 0 auto;
  max-width: 650px;
  padding: 2px 20px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search:focus-within {
  border-color: var(--brand-color);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

.search input[type=search] {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: none;
  box-sizing: border-box;
  color: var(--text-color);
  flex: 1 1 auto;
  font-size: 16px;
  height: 54px;
  outline: none;
  width: 100%;
}

.search input[type=search]:focus {
  color: var(--text-color);
}

.search input[type=search]::-webkit-search-decoration,
.search input[type=search]::-webkit-search-cancel-button,
.search input[type=search]::-webkit-search-results-button,
.search input[type=search]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.search input[type=search]:-webkit-autofill,
.search input[type=search]:-webkit-autofill:hover,
.search input[type=search]:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

.search .clear-button {
  align-items: center;
  background-color: transparent;
  border: none;
  box-sizing: border-box;
  color: var(--text-color-light);
  cursor: pointer;
  display: none;
  flex: none;
  justify-content: center;
  padding: 0 14px;
  border-radius: 50px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.search .clear-button:hover {
  background-color: transparent;
  color: var(--brand-color);
}

.search .clear-button:focus {
  outline: 0;
  background-color: transparent;
  box-shadow: none;
  color: var(--brand-color);
}

.search-has-value .clear-button {
  display: flex;
}

[dir=ltr] .search input[type=search] {
  padding-left: 40px;
  padding-right: 20px;
}

[dir=ltr] .search-has-value input[type=search] {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  border-right-color: transparent;
}

[dir=ltr] .search-has-value input[type=search]:focus {
  border-right-color: #17494D;
}

[dir=ltr] .search .clear-button {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-left-color: transparent;
}

[dir=ltr] .search .clear-button:focus {
  border-left-color: #17494D;
}

[dir=rtl] .search input[type=search] {
  padding-left: 20px;
  padding-right: 40px;
}

[dir=rtl] .search-has-value input[type=search] {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-left-color: transparent;
}

[dir=rtl] .search-has-value input[type=search]:focus {
  border-left-color: #17494D;
}

[dir=rtl] .search .clear-button {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  border-right-color: transparent;
}

[dir=rtl] .search .clear-button:focus {
  border-right-color: #17494D;
}

.search-icon {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  left: 15px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #777;
  pointer-events: none;
}

[dir=rtl] .search-icon {
  left: auto;
  right: 15px;
}

/***** Hero component *****/
.hero {
  border-bottom: 1px solid var(--card-border);
  padding: 80px 0;
  text-align: center;
  background-color: var(--container-bg);
  width: 100%;
}

.hero-inner {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  max-width: 610px;
  margin: 0 auto;
}

/* Home Page Redesign */
.hero-redesign {
  background-color: var(--container-bg);
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
}

.hero-inner-redesign {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5%;
}

.hero-title {
  color: var(--section-text-color);
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-subtitle {
  color: var(--link-color);
  font-size: 16px;
  margin-bottom: 40px;
}

.search-container-redesign {
  display: flex;
  align-items: center;
  width: 100%;
  z-index: 10;
  /* Keep vertical padding, remove horizontal so the wrapper fits perfectly inside */
  padding: 15px 0;
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}

.search-box-wrapper {
  display: flex;
  position: relative;
  align-items: center;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

/* ===== Sticky Search Bar Styles ===== */
.search-container-redesign.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 15px 5%;
  /* Add space around it when full width */
  background-color: var(--header-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  border-bottom: 1px solid var(--card-border);
}

/* Make the actual input area slightly max-width even when container is full width */
.search-container-redesign.is-sticky .search,
.search-container-redesign.is-sticky .search-box-wrapper {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

/* Reset the default Zendesk .search pill shape inside our redesigned container */
.search-container-redesign .search {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  width: 100% !important;
  position: relative !important;
}

.search-container-redesign .search:focus-within {
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.search-container-redesign input[type="search"],
.search-container-redesign .search-has-value input[type="search"] {
  flex-grow: 1;
  background-color: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  color: var(--text-color) !important;
  padding: 16px 50px 16px 50px !important;
  border-radius: 8px 0 0 8px !important;
  font-size: 16px;
  height: auto !important;
}

.search-container-redesign input[type="search"]:focus {
  border: 2px solid var(--hover-border-color) !important;
  box-shadow: none !important;
  outline: none !important;
}

.search-container-redesign input[type="search"]::placeholder {
  color: #777;
}

.search-container-redesign input[type="search"]::-webkit-search-decoration,
.search-container-redesign input[type="search"]::-webkit-search-cancel-button,
.search-container-redesign input[type="search"]::-webkit-search-results-button,
.search-container-redesign input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* Force-hide Zendesk's default clear button */
.search-container-redesign .search .clear-button,
.search-container-redesign .search-has-value .clear-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
}

/* Custom clear (X) button */
.search-container-redesign .custom-clear-btn {
  position: absolute;
  right: 115px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: 16px;
  opacity: 0.6;
  border-radius: 50%;
  z-index: 5;
  user-select: none;
  transition: opacity 0.15s, background-color 0.15s;
}

.search-container-redesign .custom-clear-btn:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Directional overrides: prevent Zendesk from adding its own radius changes */
[dir=ltr] .search-container-redesign .search-has-value input[type=search],
[dir=rtl] .search-container-redesign .search-has-value input[type=search] {
  border-radius: 8px 0 0 8px !important;
}

/* Submit / Search button */
.search-container-redesign input[type="submit"] {
  background-color: var(--brand-color, #ff0558) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 30px !important;
  border-radius: 0 8px 8px 0 !important;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 100px !important;
  height: auto !important;
  flex-shrink: 0;
  position: static !important;
  background-image: none !important;
  text-indent: 0 !important;
  line-height: normal !important;
  overflow: visible !important;
}

.search-container-redesign input[type="submit"]:hover {
  background-color: #d80046;
}

/* Ensure submit button text stays visible even when Zendesk adds search-has-value class */
.search-container-redesign .search-has-value input[type="submit"],
.search-container-redesign .search-full input[type="submit"],
.search-container-redesign .search.search-has-value input[type="submit"] {
  background-color: var(--brand-color, #ff0558) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 30px !important;
  border-radius: 0 8px 8px 0 !important;
  font-weight: 600;
  font-size: 16px;
  min-width: 100px !important;
  height: auto !important;
  position: static !important;
  background-image: none !important;
  text-indent: 0 !important;
  line-height: normal !important;
  overflow: visible !important;
  width: auto !important;
}

.search-icon-redesign {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  z-index: 10;
  pointer-events: none;
}

.quick-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.quick-link-btn {
  background-color: transparent;
  border: 1px solid var(--card-border);
  color: var(--link-color);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* 방문 후에도 색 유지 — 전역 a:visited(보라)가 클래스 규칙보다 우선순위가 높아 덮어씀 */
.quick-link-btn:visited {
  color: var(--link-color);
}

.quick-link-btn:hover,
.quick-link-btn:visited:hover {
  background-color: var(--card-bg);
  color: var(--text-color);
  border-color: #555;
  text-decoration: none;
}

/* --- Promoted articles notice banner (Netflix-style alert) --- */
.promoted-banner-area {
  background: #FFF8E1;
  border-bottom: 1px solid #F0E0B0;
}

.promoted-banner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  text-decoration: none;
  transition: background-color 0.15s;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.promoted-banner-item:first-child {
  border-top: none;
}

a.promoted-banner-item,
a.promoted-banner-item:hover,
a.promoted-banner-item:focus,
a.promoted-banner-item:active {
  text-decoration: none !important;
}

.promoted-banner-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.promoted-banner-title,
.promoted-banner-action {
  transition: transform 0.15s ease;
}

.promoted-banner-title:hover {
  transform: scale(1.02);
}

.promoted-banner-action:hover {
  transform: scale(1.05);
}

.promoted-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.promoted-banner-icon {
  flex-shrink: 0;
}

.promoted-banner-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promoted-banner-action {
  display: none !important;
}

.promoted-banner-arrow {
  flex-shrink: 0;
  margin-left: 6px;
  color: #FF0558;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.promoted-banner-item:hover .promoted-banner-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Dark mode */
[data-theme='dark'] .promoted-banner-area {
  background: #2a2000;
  border-bottom-color: #3d3010;
}

[data-theme='dark'] .promoted-banner-item {
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] .promoted-banner-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme='dark'] .promoted-banner-title {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme='dark'] .promoted-banner-toggle {
  border-top-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
}

[data-theme='dark'] .promoted-banner-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .promoted-banner-item {
    padding: 12px 5%;
  }
}

.container-redesign {
  max-width: 1200px;
  padding: 60px 5%;
}

.knowledge-base-redesign {
  margin: 0;
}

.section-title-center {
  text-align: center;
  color: var(--section-text-color);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 50px;
}

.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;
    flex-wrap: wrap;
    gap: 16px;
    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;
  margin: 0 0 30px 0;
  word-break: break-word;
}

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

.page-header .icon-lock {
  height: 20px;
  width: 20px;
  position: relative;
  left: -5px;
  vertical-align: baseline;
}

.sub-nav {
  align-items: baseline;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 15px 30px;
  justify-content: space-between;
  margin-bottom: 55px;
}

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

.sub-nav .breadcrumbs {
  margin: 0;
}

.sub-nav .search-container {
  max-width: 300px;
  width: 100%;
}

@media (min-width: 768px) {
  .sub-nav .search-container {
    flex: 0 1 300px;
  }
}

.sub-nav input[type=search]::after {
  font-size: 15px;
}

/***** Blocks *****/
/* Used in Homepage#categories and Community#topics */
.blocks-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
}

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

.blocks-item {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex: 1 0 340px;
  margin: 0 0 30px;
  max-width: 100%;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

@media (min-width: 768px) {
  .blocks-item {
    margin: 0 15px 30px;
  }
}

.blocks-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--hover-border-color);
}

.blocks-item-link {
  color: var(--text-color);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

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

.blocks-item-title {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.blocks-item-title:hover {
  color: var(--brand-color);
}

.blocks-item-description {
  color: var(--text-color-light);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.blocks-item-description:not(:empty) {
  margin-top: 10px;
}

/* ===== Redesign overrides (after original .blocks rules for cascade priority) ===== */

.blocks-list-redesign {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blocks-item-redesign {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.blocks-item-redesign:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--hover-border-color);
}

.blocks-icon-bg {
  background-color: var(--brand-color, #ff0558);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.blocks-item-link-top {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.blocks-item-link-top:hover {
  text-decoration: none;
}

.blocks-item-title {
  color: var(--section-text-color);
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
  transition: color 0.3s ease;
}

.blocks-item-link-top:hover .blocks-item-title {
  color: var(--brand-color);
}

.blocks-item-description {
  color: var(--section-text-color);
  font-size: 14px;
  line-height: 1.6;
  display: block;
}

.blocks-item-sections {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.section-link-item {
  margin-bottom: 14px;
  padding-left: 16px;
  position: relative;
}

.section-link-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-color);
  font-size: 19px;
  line-height: 1.4;
}

.section-link-item:last-child {
  margin-bottom: 0;
}

.section-link-item a {
  color: #000000;
  text-decoration: none;
  font-size: 19px;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
}

[data-theme='dark'] .section-link-item a {
  color: #ffffff;
}

.section-link-item a:hover {
  color: var(--brand-color);
  text-decoration: none;
}

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

@media (min-width: 768px) {
  .section {
    margin-bottom: 60px;
  }
}

.home-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 {
  display: block;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.promoted-articles-item .icon-lock {
  vertical-align: baseline;
}

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

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

/***** Community section in homepage *****/
.community {
  text-align: center;
}

.community-image {
  min-height: 300px;
  margin-top: 32px;
  background-image: url($community_image);
  background-position: center;
  background-repeat: no-repeat;
  max-width: 100%;
}

.community a {
  color: #1F73B7;
  text-decoration: underline;
}

.community a:visited {
  color: #9358B0;
}

.community a:hover,
.community a:active,
.community a:focus {
  color: #0F3554;
}

.community,
.activity {
  border-top: 1px solid #ddd;
  padding: 30px 0;
}

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

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

.recent-activity-item {
  border-bottom: 1px solid #ddd;
  overflow: auto;
  padding: 20px 0;
}

.recent-activity-item h3 {
  margin: 0;
}

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

.recent-activity-item-parent,
.recent-activity-item-link {
  margin: 6px 0;
  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;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-activity-item-meta {
  color: #2F3941;
  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 {
  display: inline-block;
  font-size: 13px;
}

.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-controls {
  padding-top: 15px;
}

.recent-activity-controls a {
  color: #1F73B7;
  text-decoration: underline;
}

.recent-activity-controls a:visited {
  color: #9358B0;
}

.recent-activity-controls a:hover,
.recent-activity-controls a:active,
.recent-activity-controls a:focus {
  color: #0F3554;
}

.recent-activity-accessibility-label {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.recent-activity-comment-icon svg {
  vertical-align: middle;
  color: #17494D;
  width: 16px;
  height: 16px;
}

.recent-activity-comment-icon:after {
  content: attr(data-comment-count);
  margin-left: 3px;
}

[dir=rtl] .recent-activity-comment-icon:after {
  margin-left: 0;
  margin-right: 3px;
}

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

.category-content {
  flex: 1;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .category-content {
    flex: 0 0 80%;
  }
}

.section-tree {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
}

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

.section-tree .section {
  flex: initial;
  max-width: 100%;
}

@media (min-width: 768px) {
  .section-tree .section {
    flex: 0 0 45%;
    /* Two columns for tablet and desktop. Leaving 5% separation between columns */
  }
}

.section-tree-title {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.section-tree-title a {
  color: #000000;
  transition: color 0.3s ease;
}

[data-theme='dark'] .section-tree-title a {
  color: #FFFFFF;
}

.section-tree-title a:hover {
  color: var(--brand-color);
}

.section-tree .see-all-articles {
  display: block;
  padding: 15px 0;
}

.article-list-item {
  font-size: 16px;
  padding: 15px 0;
  text-overflow: ellipsis;
  overflow: hidden;
}

.article-list-item a {
  color: #2F3941;
}

.icon-star {
  color: #17494D;
  font-size: 18px;
}

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

.section-content {
  flex: 1;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .section-content {
    flex: 0 0 80%;
  }
}

.section-list {
  margin: 40px 0;
}

.section-list-item {
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  padding: 15px 0;
}

.section-list-item:first-child {
  border-top: 1px solid #ddd;
}

.section-list-item a {
  align-items: center;
  color: #2F3941;
  display: flex;
  justify-content: space-between;
}

.see-all-sections-trigger {
  cursor: pointer;
  display: block;
  padding: 15px;
  text-align: center;
}

.see-all-sections-trigger[aria-hidden=true] {
  display: none;
}

/***** Article *****/
.article {
  /*
  * The article grid is defined this way to optimize readability:
  * Sidebar | Content | Free space
  * 17%     | 66%     | 17%
  */
  flex: 1 0 auto;
}

@media (min-width: 1024px) {
  .article {
    flex: 1 0 66%;
    max-width: 66%;
    min-width: 640px;
    padding: 0 30px;
  }
}

.article-container {
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

.article-title {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

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

.article-title .icon-lock {
  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;
  vertical-align: middle;
}

.article-body {
  display: flow-root;
}

.article-body a {
  color: #1F73B7;
  text-decoration: underline;
}

.article-body a:visited {
  color: #9358B0;
}

.article-body a:hover,
.article-body a:active,
.article-body a:focus {
  color: #0F3554;
}

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

.article-body p>img.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}

.article-body p>img.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}

.article-body p>img.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}

.article-body p>img.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}

.article-body figure.image {
  display: table;
  margin: 0 auto;
}

.article-body figure.image>img {
  display: block;
  width: 100%;
}

.article-body figure.image.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}

.article-body figure.image.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}

.article-body figure.image.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}

.article-body figure.image.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}

.article-body figcaption {
  padding: 10px 0;
  font-size: 12px;
  text-align: center;
  background-color: #f2f2f2;
}

.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,
.article-body li>ul,
.article-body li>ol {
  margin: 0;
}

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

.article-body :not(pre)>code {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 5px;
  margin: 0 2px;
}

.article-body pre {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 15px;
  overflow: auto;
  white-space: pre;
  direction: ltr;
}

.article-body blockquote {
  border-left: 1px solid #ddd;
  color: #5a6d7c;
  font-style: italic;
  padding: 0 15px;
}

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

.article-content {
  line-height: 1.6;
  margin: 40px 0;
  word-wrap: break-word;
}

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

.article-comment-count {
  color: #5a6d7c;
}

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

.article-comment-count-icon {
  vertical-align: middle;
  color: #17494D;
  width: 18px;
  height: 18px;
}

.article-sidebar {
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
  flex: 1 0 auto;
  margin-bottom: 20px;
  padding: 0;
}

@media (min-width: 1024px) {
  .article-sidebar {
    border: 0;
    flex: 0 0 17%;
    height: auto;
    max-width: 17%;
  }
}

.article-relatives {
  border-top: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

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

.article-relatives>* {
  flex: 1 0 50%;
  min-width: 50%;
  overflow-wrap: break-word;
  margin-right: 0;
}

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

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

.article-votes {
  border-top: 1px solid #ddd;
  padding: 30px 0;
  text-align: center;
}

.article-votes-question {
  font-size: 15px;
  font-weight: normal;
  margin-bottom: 0;
}

.article-vote {
  margin: 10px 5px;
  min-width: 90px;
  width: auto;
}

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

.article-more-questions a {
  color: #1F73B7;
  text-decoration: underline;
}

.article-more-questions a:visited {
  color: #9358B0;
}

.article-more-questions a:hover,
.article-more-questions a:active,
.article-more-questions a:focus {
  color: #0F3554;
}

.article-return-to-top {
  border-top: 1px solid #848F99;
}

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

.article-return-to-top a {
  color: #2F3941;
  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 {
  transform: rotate(0.5turn);
}

.article td>p:first-child,
.article th>p:first-child {
  margin-top: 0;
}

.article td>p:last-child,
.article th>p:last-child {
  margin-bottom: 0;
}

.sidenav-title {
  font-size: 15px;
  position: relative;
  font-weight: 600;
}

.sidenav-item {
  display: block;
  margin-top: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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 .attachment-icon {
  color: #2F3941;
  left: 0;
  position: absolute;
  top: 5px;
}

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

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

.upload-dropzone span {
  color: #5a6d7c;
}

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

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

.share li {
  height: 25px;
  width: 25px;
}

.share a {
  color: #5a6d7c;
}

.share a:hover {
  text-decoration: none;
  color: #17494D;
}

.share a svg {
  height: 18px;
  width: 18px;
  display: block;
}

/***** Comments *****/
/* Styles comments inside articles, posts and requests */
.comment {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}

.comment-heading,
.recent-articles-title,
.related-articles-title {
  margin-bottom: 5px;
  margin-top: 0;
  font-size: 18px;
  font-weight: 600;
}

.comment-overview {
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
  padding: 20px 0;
}

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

.comment-callout {
  color: #5a6d7c;
  display: inline-block;
  font-size: 13px;
  margin-bottom: 0;
}

.comment-callout a {
  color: #1F73B7;
  text-decoration: underline;
}

.comment-callout a:visited {
  color: #9358B0;
}

.comment-callout a:hover,
.comment-callout a:active,
.comment-callout a:focus {
  color: #0F3554;
}

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

.comment-sorter .dropdown-toggle {
  color: #5a6d7c;
  font-size: 13px;
}

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

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

.comment-wrapper.comment-official {
  border: 1px solid #17494D;
  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 1 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: #17494D;
}

.comment-body {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;
  display: flow-root;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: auto;
}

.comment-body a {
  color: #1F73B7;
  text-decoration: underline;
}

.comment-body a:visited {
  color: #9358B0;
}

.comment-body a:hover,
.comment-body a:active,
.comment-body a:focus {
  color: #0F3554;
}

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

.comment-body p>img.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}

.comment-body p>img.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}

.comment-body p>img.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}

.comment-body p>img.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}

.comment-body figure.image {
  display: table;
  margin: 0 auto;
}

.comment-body figure.image>img {
  display: block;
  width: 100%;
}

.comment-body figure.image.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}

.comment-body figure.image.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}

.comment-body figure.image.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}

.comment-body figure.image.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}

.comment-body figcaption {
  padding: 10px 0;
  font-size: 12px;
  text-align: center;
  background-color: #f2f2f2;
}

.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,
.comment-body li>ul,
.comment-body li>ol {
  margin: 0;
}

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

.comment-body :not(pre)>code {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 5px;
  margin: 0 2px;
}

.comment-body pre {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 15px;
  overflow: auto;
  white-space: pre;
  direction: ltr;
}

.comment-body blockquote {
  border-left: 1px solid #ddd;
  color: #5a6d7c;
  font-style: italic;
  padding: 0 15px;
}

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

/***** Vote *****/
/* Used in article comments, post comments and post */
.vote {
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.vote-sum {
  color: #5a6d7c;
  display: block;
  margin: 3px 0;
}

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

.vote-up svg {
  transform: scale(1, -1);
}

.vote-up:hover,
.vote-down:hover {
  color: #17494D;
}

.vote-up,
.vote-down {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  color: #5a6d7c;
  cursor: pointer;
  min-height: 35px;
  min-width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vote-voted {
  color: #17494D;
}

.vote-voted:hover {
  color: #000;
}

/***** 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 button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  min-height: 35px;
  min-width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/***** Community *****/
.community-hero {
  background-image: url($community_background_image);
  margin-bottom: 10px;
}

.community-footer {
  padding-top: 50px;
  text-align: center;
}

.community-footer-title {
  font-size: 16px;
  margin-bottom: 20px;
}

.community-featured-posts .title {
  font-size: 18px;
  font-weight: 600;
}

.community-featured-posts,
.community-activity {
  padding-top: 40px;
  width: 100%;
}

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

.community-header .title {
  margin-bottom: 0;
  font-size: 16px;
}

.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: center;
  margin-top: 20px;
}

/* Community topic page */
.topic-header {
  border-bottom: 1px solid #ddd;
  font-size: 13px;
}

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

.topic-header .dropdown {
  display: block;
  border-top: 1px solid #ddd;
  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 button {
  line-height: 30px;
  padding: 0 10px 0 15px;
  position: relative;
  width: 100%;
}

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

.community-follow button:hover {
  background-color: #17494D;
}

.community-follow button:hover::after,
.community-follow button:focus::after {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.community-follow button[data-selected=true] {
  background-color: #17494D;
  color: #FFFFFF;
}

.community-follow button[data-selected=true]::after {
  border-left: 1px solid #FFFFFF;
  color: #FFFFFF;
}

.community-follow button[data-selected=true]:hover {
  background-color: #000;
  border-color: #000;
}

.community-follow button::after {
  border-left: 1px solid #17494D;
  content: attr(data-follower-count);
  color: #17494D;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  margin-left: 15px;
  padding-left: 10px;
  position: absolute;
  right: 10px;
}

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

[dir=rtl] .community-follow button::after {
  border-left: 0;
  border-right: 1px solid #17494D;
  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 #ddd;
  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: #1F73B7;
  margin-bottom: 10px;
  margin-right: 5px;
}

.striped-list-title:hover,
.striped-list-title:focus,
.striped-list-title:active {
  text-decoration: underline;
}

.striped-list-title:visited {
  color: #9358B0;
}

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

.striped-list-count {
  color: #5a6d7c;
  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 {
  text-align: center;
}

@media (min-width: 768px) {
  .striped-list-number {
    color: #2F3941;
    display: block;
  }
}

/***** Status labels *****/
/* Styles labels used in posts, articles and requests */
.status-label {
  background-color: #038153;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  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: #17494D;
}

.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-not-planned,
.status-label-closed {
  background-color: #e9ebed;
  color: #5a6d7c;
}

.status-label-pending,
.status-label-pending-moderation {
  background-color: #1f73b7;
  text-align: center;
}

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

.status-label-solved {
  background-color: #68737d;
}

.status-label-new {
  background-color: #ffb648;
  color: #703b15;
}

.status-label-hold {
  background-color: #000;
}

.status-label-request {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .status-label-request {
    max-width: 150px;
  }
}

/***** Post *****/
/*
* The post grid is defined this way:
* Content | Sidebar
* 70%     | 30%
*/
.post {
  flex: 1;
  margin-bottom: 10px;
}

@media (min-width: 1024px) {
  .post {
    flex: 1 0 70%;
    max-width: 70%;
  }
}

.post-container {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .post-container {
    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;
  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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  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 {
  display: flow-root;
}

.post-body a {
  color: #1F73B7;
  text-decoration: underline;
}

.post-body a:visited {
  color: #9358B0;
}

.post-body a:hover,
.post-body a:active,
.post-body a:focus {
  color: #0F3554;
}

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

.post-body p>img.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}

.post-body p>img.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}

.post-body p>img.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}

.post-body p>img.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}

.post-body figure.image {
  display: table;
  margin: 0 auto;
}

.post-body figure.image>img {
  display: block;
  width: 100%;
}

.post-body figure.image.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}

.post-body figure.image.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}

.post-body figure.image.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}

.post-body figure.image.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}

.post-body figcaption {
  padding: 10px 0;
  font-size: 12px;
  text-align: center;
  background-color: #f2f2f2;
}

.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,
.post-body li>ul,
.post-body li>ol {
  margin: 0;
}

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

.post-body :not(pre)>code {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 5px;
  margin: 0 2px;
}

.post-body pre {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 15px;
  overflow: auto;
  white-space: pre;
  direction: ltr;
}

.post-body blockquote {
  border-left: 1px solid #ddd;
  color: #5a6d7c;
  font-style: italic;
  padding: 0 15px;
}

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

.post-comment-count {
  color: #5a6d7c;
}

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

.post-comment-count .icon-comments {
  color: #17494D;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 5px;
  vertical-align: middle;
}

.post-sidebar {
  border-top: 1px solid #ddd;
  flex: 1;
  padding: 30px 0;
  text-align: center;
}

@media (min-width: 1024px) {
  .post-sidebar {
    border: 0;
    flex: 1 0 30%;
    padding: 0 0 0 50px;
    text-align: initial;
  }

  [dir=rtl] .post-sidebar {
    padding: 0 50px 0 0;
  }
}

.post-sidebar-title {
  font-size: 18px;
  font-weight: 600;
}

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

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

/***** Community Badges *****/
/* Styles labels used next to the authors of article comments, community posts, and community comments */
.community-badge-title {
  background-color: #04444d;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 0px 8px;
  vertical-align: top;
  white-space: nowrap;
  display: inline-block;
  line-height: 18px;
  vertical-align: middle;
}

.community-badge-titles {
  display: inline;
}

.community-badge-achievement {
  display: block;
  height: 16px;
  white-space: nowrap;
  width: 16px;
}

.community-badge-achievement img {
  width: 100%;
  height: 100%;
}

.community-badge-achievements {
  display: flex;
}

.community-badge-achievements-rest {
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  vertical-align: top;
}

.community-badge {
  margin: 2px;
}

.profile-info .community-badge-title {
  padding: 2px 8px;
  line-height: 20px;
}

.profile-info .community-badge-achievement {
  height: 40px;
  width: 40px;
}

.profile-info .community-badge-achievements-rest {
  line-height: 40px;
  font-size: 20px;
}

/* Navigation element that collapses on mobile */
.collapsible-nav {
  flex-direction: column;
  font-size: 14px;
  position: relative;
}

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

.collapsible-nav-border {
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
}

@media (min-width: 768px) {
  .collapsible-nav-border {
    border-top: 0;
  }
}

.collapsible-nav-toggle {
  top: 22.5px;
  transform: translateY(-50%);
  position: absolute;
  right: 0;
  padding: 0;
  border: 0;
  background: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .collapsible-nav-toggle {
    display: none;
  }
}

[dir=rtl] .collapsible-nav-toggle {
  left: 0;
  right: auto;
}

.collapsible-nav-toggle-icon {
  display: none;
}

.collapsible-nav-toggle[aria-expanded=false] .chevron-icon {
  display: inline-block;
}

.collapsible-nav-toggle[aria-expanded=true] .x-icon {
  display: inline-block;
}

.collapsible-nav-toggle:focus {
  outline: none;
  border: 1px solid #17494D;
}

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

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

.collapsible-nav-list li {
  color: #2F3941;
  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: #2F3941;
  display: block;
}

@media (min-width: 768px) {
  .collapsible-nav-list li:hover {
    border-bottom: 4px solid #ddd;
  }

  .collapsible-nav-list li:hover a:not([aria-current=page]) {
    padding: 15px 0 11px 0;
    text-decoration: none;
  }
}

.collapsible-nav-list li:not([aria-selected=true]),
.collapsible-nav-list li:not(.current) {
  display: none;
}

@media (min-width: 768px) {

  .collapsible-nav-list li:not([aria-selected=true]),
  .collapsible-nav-list li:not(.current) {
    display: block;
  }
}

@media (min-width: 768px) {
  .collapsible-nav-list li[aria-selected=true] {
    padding: 15px 0 11px 0;
  }
}

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

@media (min-width: 768px) {

  .collapsible-nav-list li[aria-selected=true],
  .collapsible-nav-list li.current {
    border-bottom: 4px solid #17494D;
    order: 1;
  }
}

.collapsible-nav-list li[aria-selected=true] a,
.collapsible-nav-list li.current a {
  color: #2F3941;
}

.collapsible-nav[aria-expanded=true] li:not([aria-selected=true]),
.collapsible-nav[aria-expanded=true] li:not(.current) {
  display: block;
}

/* 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-title {
  margin-top: 0;
}

.collapsible-sidebar-toggle {
  position: absolute;
  top: 22.5px;
  transform: translateY(-50%);
  right: 0;
  padding: 0;
  border: 0;
  background: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

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

[dir=rtl] .collapsible-sidebar-toggle {
  left: 0;
  right: auto;
}

.collapsible-sidebar-toggle-icon {
  display: none;
}

.collapsible-sidebar-toggle[aria-expanded=false] .chevron-icon {
  display: inline-block;
}

.collapsible-sidebar-toggle[aria-expanded=true] .x-icon {
  display: inline-block;
}

.collapsible-sidebar-toggle:focus {
  outline: none;
  border: 1px solid #17494D;
}

.collapsible-sidebar-body {
  display: none;
}

@media (min-width: 1024px) {
  .collapsible-sidebar-body {
    display: block;
  }
}

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

.collapsible-sidebar[aria-expanded=true] .collapsible-sidebar-body {
  display: block;
}

/***** My activities *****/
.my-activities-nav {
  background-color: #f2f2f2;
  margin-bottom: 20px;
}

.my-activities-sub-nav {
  margin-bottom: 30px;
}

.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;
  }
}

@media (min-width: 768px) {
  .requests-table-toolbar .organization-subscribe {
    margin-left: 10px;
  }

  [dir=rtl] .requests-table-toolbar .organization-subscribe {
    margin: 0 10px 0 0;
  }
}

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

.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-table-toolbar+.requests {
  margin-top: 40px;
}

.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;
}

/* Following table */
@media (min-width: 768px) {
  .subscriptions-subscribe button {
    width: auto;
  }
}

.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: #5a6d7c;
  font-size: 13px;
}

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

.no-activities {
  color: #5a6d7c;
}

/***** Request *****/
.request-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  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: 40px;
}

@media (min-width: 1024px) {
  .request-breadcrumbs {
    margin-bottom: 60px;
  }
}

.request-main {
  flex: 1 0 auto;
  order: 1;
}

.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: 0 0 66%;
    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: 2px;
  border: 1px solid #ddd;
  color: #5a6d7c;
  text-align: inherit;
  padding: 8px 25px;
  width: 100%;
}

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

.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 #17494D;
}

.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 #17494D;
}

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

.request-title {
  width: 100%;
}

@media (min-width: 1024px) {
  .request-title {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
    max-width: 66%;
    padding-bottom: 20px;
  }
}

.request-sidebar {
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
  flex: 1 0 auto;
  order: 0;
}

@media (min-width: 1024px) {
  .request-sidebar {
    background-color: #f7f7f7;
    border: 0;
    font-size: 13px;
    flex: 0 0 auto;
    padding: 0 20px;
    width: 30%;
  }
}

.request-sidebar h2 {
  font-size: 15px;
  font-weight: 600;
  position: relative;
}

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

.request-details {
  border-bottom: 1px solid #ddd;
  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%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

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

.request-details dt {
  line-break: strict;
  color: #5a6d7c;
  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-next,
.pagination-prev,
.pagination-first,
.pagination-last {
  display: inline-block;
}

.pagination-first-link,
.pagination-last-link {
  padding: 0 10px;
}

.pagination-first-text,
.pagination-last-text {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.pagination-next-link {
  padding-right: 10px;
}

.pagination-next-text {
  margin-right: 10px;
}

[dir=rtl] .pagination-next-link {
  padding-left: 10px;
}

[dir=rtl] .pagination-next-text {
  margin-left: 10px;
}

.pagination-prev-link {
  padding-left: 10px;
}

.pagination-prev-text {
  margin-left: 10px;
}

[dir=rtl] .pagination-prev-link {
  padding-right: 10px;
}

[dir=rtl] .pagination-prev-text {
  margin-right: 10px;
}

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

.meta-group-opposite {
  float: right;
}

[dir=rtl] .meta-group-opposite {
  float: left;
}

.meta-group * {
  display: inline;
}

.meta-data {
  color: #5a6d7c;
  font-size: 13px;
}

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

/* User Profiles */
.profile-header {
  padding: 30px 0;
  background-color: #f7f7f7;
}

.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: 80px;
  height: 80px;
}

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

.profile-header .basic-info {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  word-wrap: 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;
  line-height: 25px;
  vertical-align: middle;
  display: inline;
}

.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;
  }
}

.user-profile-actions {
  width: 100%;
  margin-bottom: 15px;
}

.profile-header .description {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  word-wrap: 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-label {
  color: #5a6d7c;
  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 #ddd;
  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 #ddd;
}

@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 #17494D;
  border-radius: 4px;
  color: #17494D;
  padding: 5px 20px;
  font-size: 12px;
  text-align: center;
}

.profile-private-badge .profile-private-icon {
  margin-left: 5px;
  line-height: 15px;
}

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

.profile-nav {
  background-color: #f2f2f2;
  margin-bottom: 37px;
}

.profile-section {
  width: 100%;
}

@media (min-width: 1024px) {
  .profile-section {
    width: calc(100% - 330px);
  }
}

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

.profile-section-title {
  flex-basis: 100%;
  margin-bottom: 0;
}

.profile-section-description {
  flex-basis: 100%;
  padding: 10px 0;
  color: #5a6d7c;
  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 #eee;
  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-badges-items {
  margin-top: 25px;
}

.profile-badges-item {
  border-top: 1px solid #ddd;
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: flex-start;
  padding: 27px 12px;
}

.profile-badges-item>div {
  padding-right: 12px;
  padding-left: 12px;
}

.profile-badges-item-image {
  height: 40px;
  width: 40px;
  margin-right: 12px;
}

.profile-badges-item-image img {
  max-height: 40px;
}

[dir=rtl] .profile-badges-item-image {
  margin-left: 12px;
  margin-right: 0;
}

.profile-badges-item-title,
.profile-badges-item-metadata-title {
  font-size: 15px;
  margin-bottom: 10px;
}

.profile-badges-item-title {
  font-weight: 600;
}

.profile-badges-item-description,
.profile-badges-item-metadata-description {
  color: #5a6d7c;
  font-size: 13px;
  margin: 0;
}

.profile-badges-item-metadata {
  margin-left: auto;
  text-align: right;
}

[dir=rtl] .profile-badges-item-metadata {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.profile-contribution {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  word-wrap: 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: 21px;
  font-size: 15px;
  vertical-align: middle;
}

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

.profile-contribution-list>.profile-contribution {
  border-top: 1px solid #eee;
}

@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 #eee;
}

.profile-contribution-icon {
  left: 0;
  position: absolute;
  color: #ccc;
  line-height: 25px;
}

[dir=rtl] .profile-contribution-icon {
  right: 0;
}

.profile-contribution-icon svg {
  vertical-align: middle;
}

.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: #999;
}

.private-activity-icon {
  margin-right: 10px;
}

[dir=rtl] .private-activity-icon {
  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 #ddd;
  }

  [dir=rtl] .profile-activity:not(:last-child) {
    border-left: 0;
    border-right: 1px solid #ddd;
  }
}

.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;
  word-wrap: 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: #f7f7f7;
}

@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-icon {
  position: absolute;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-color: #FFFFFF;
  background-position: 50% 50%;
  text-align: center;
  color: #ccc;
}

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

@media (min-width: 768px) {
  .profile-activity-icon {
    left: -14px;
  }

  [dir=rtl] .profile-activity-icon {
    right: -14px;
  }
}

.profile-activity-icon svg {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
  height: 1em;
  margin: auto;
}

/***** Search results *****/
.search-results {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
}

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

.search-results-column {
  flex: 1 1 100%;
}

/* Sidebar hidden — only "Articles" source available in WATCHA, so type filter is redundant */
.search-results-sidebar {
  display: none;
}

.search-results-sidebar .sidenav-item {
  border-radius: 4px;
  padding: 10px 36px;
  margin-bottom: 4px;
  color: #2F3941;
}

.search-results-sidebar .sidenav-item:hover,
.search-results-sidebar .sidenav-item.current {
  background-color: #e9ebed;
  text-decoration: none;
}

.search-results-sidebar .sidenav-subitem {
  unicode-bidi: embed;
}

.search-results-sidebar .sidenav-tag {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-grow: 0;
}

.search-results-sidebar .sidenav-tag .content-tag {
  background: #E9EBED;
  border-radius: 4px;
  padding: 4px 12px;
  text-decoration: none;
}

.search-results-sidebar .sidenav-tag .content-tag .label {
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  letter-spacing: -0.000427656px;
  color: #49545C;
  flex-grow: 0;
  vertical-align: middle;
  display: inline-block;
}

.search-results-sidebar .sidenav-tag .content-tag .close-icon {
  color: #555555;
  vertical-align: middle;
  display: inline-block;
}

.search-results-sidebar .collapsible-sidebar {
  margin-bottom: 30px;
}

.search-results-sidebar .collapsible-sidebar[aria-expanded=false] .multibrand-filter-list {
  display: none;
}

@media (min-width: 1024px) {
  .search-results-sidebar .collapsible-sidebar[aria-expanded=false] .multibrand-filter-list {
    display: block;
  }
}

.search-results-sidebar .multibrand-filter-list--collapsed li:nth-child(1n+6) {
  display: none;
}

.search-results-sidebar .multibrand-filter-list .doc-count {
  color: #666;
}

.search-results-sidebar .see-all-filters {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  padding: 10px;
  color: #1F73B7;
}

.search-results-sidebar .see-all-filters[aria-hidden=true] {
  display: none;
}

.search-results-sidebar .see-all-filters:hover {
  text-decoration: underline;
}

.search-results-sidebar .see-all-filters::after {
  content: " ⌄";
  font-weight: bold;
}

.search-results-subheading {
  font-size: 18px;
  font-weight: 600;
}

.search-results-list {
  margin-bottom: 25px;
}

.search-results-list>li {
  padding: 20px 0;
}

.search-results-list>li:first-child {
  border-top: 1px solid #ddd;
}

.search-results .no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4rem;
}

.search-results .no-results .headline {
  color: #2F3941;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.45px;
}

.search-results .no-results .action-prompt {
  color: #68737D;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.154px;
}

.search-results .no-results .action-prompt a {
  color: #1F73B7;
}

.search-results .no-results .action-prompt a:visited {
  color: #1F73B7;
}

.search-result-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-result-title {
  font-size: 16px;
  margin-bottom: 0;
}

.search-result-votes,
.search-result-meta-count {
  color: #5a6d7c;
  font-size: 13px;
}

.search-result-votes-icon,
.search-result-meta-count-icon {
  color: #17494D;
  vertical-align: middle;
  width: 13px;
  height: 13px;
}

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

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

.search-result-meta-container {
  color: #666;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .search-result-meta-container {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .search-result-meta-container nav {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  [dir=ltr] .search-result-meta-container .meta-data {
    margin-left: 20px;
  }
}

@media (min-width: 1024px) {
  [dir=rtl] .search-result-meta-container .meta-data {
    margin-right: 20px;
  }
}

.search-result-meta-container .meta-data::after {
  content: none;
}

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

.search-result-description {
  margin-top: 10px;
  margin-bottom: 0;
  word-break: break-word;
}

/* By default use bold instead of italic to highlight */
.search-results-description em {
  font-style: normal;
  font-weight: bold;
}

/* Add a yellow background for Chinese */
html[lang|=zh] .search-results-description em {
  font-style: normal;
  background: yellow;
}

/***** Notifications *****/
.notification {
  border: 1px solid;
  display: table;
  font-family: sans-serif;
  font-size: 12px;
  padding: 13px 15px;
  transition: height 0.2s;
  width: 100%;
  color: #555;
}

.notification a {
  color: #158ec2;
}

.notification-inner {
  margin: 0 auto;
  padding: 0 20px;
  max-width: 980px;
}

.notification-icon,
.notification-inline.notification-error::before,
.notification-text,
.notification-dismiss {
  display: table-cell;
  vertical-align: middle;
}

.notification-text {
  padding: 0 15px;
  width: 100%;
}

.notification+.notification {
  margin-bottom: -1px;
  position: relative;
  top: -1px;
}

/* Error */
.notification-error {
  background: #ffeded;
  border-color: #f7cbcb;
}

.notification-error .notification-icon::before,
.notification-error .notification-inline.notification-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cg fill='none' stroke='%23555555'%3E%3Ccircle cx='5.5' cy='6.5' r='5'/%3E%3Cpath stroke-linecap='round' d='M5.5 3.5v3'/%3E%3C/g%3E%3Ccircle cx='5.5' cy='9' r='1' fill='%23555555'/%3E%3C/svg%3E");
}

/* Notice */
.notification-notice {
  background: #dbf3ff;
  border-color: #b5e0f5;
}

.notification-notice .notification-icon::before,
.notification-notice .notification-inline.notification-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cg fill='none' stroke='%23555555'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l2 2L9 4.5'/%3E%3Ccircle cx='6' cy='6' r='5.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Alert / Lock */
.notification-alert {
  color: #ad5e18;
  background: #fff8ed;
  border-color: #fcdba9;
}

.notification-alert .notification-icon::before,
.notification-alert .notification-inline.notification-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ad5e18' stroke-linecap='round' d='M5.06 1.27l-4.5 8.5c-.18.33.06.73.44.73h9c.38 0 .62-.4.44-.73l-4.5-8.5a.494.494 0 00-.88 0zM5.5 4v2'/%3E%3Ccircle cx='5.5' cy='8' r='.8' fill='%23ad5e18'/%3E%3C/svg%3E");
}

.notification-icon::before,
.notification-inline.notification-error::before {
  background-size: cover;
  content: "";
  display: inline-block;
  height: 14px;
  width: 14px;
  vertical-align: middle;
}

/* Dismiss button */
.notification-dismiss,
a.notification-dismiss {
  color: #555;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 100ms ease;
  text-decoration: none !important;
}

.notification-dismiss:hover {
  opacity: 1;
}

/* Inline notifications */
.notification-inline {
  border-radius: 4px;
  line-height: 14px;
  margin-top: 5px;
  padding: 5px;
  position: relative;
  text-align: left;
  vertical-align: middle;
}

[dir=rtl] .notification-inline {
  text-align: right;
}

.notification-inline[aria-hidden=true] {
  display: none;
}

.notification-inline.notification-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cg fill='none' stroke='%23e35b66'%3E%3Ccircle cx='5.5' cy='6.5' r='5'/%3E%3Cpath stroke-linecap='round' d='M5.5 3.5v3'/%3E%3C/g%3E%3Ccircle cx='5.5' cy='9' r='1' fill='%23e35b66'/%3E%3C/svg%3E");
  margin: -2px 5px 0 0;
}

[dir=rtl] .notification-inline.notification-error::before {
  margin: 0 0 0 5px;
}

.notification-inline.notification-error {
  background-color: #fff0f1;
  border: 1px solid #e35b66;
  color: #cc3340;
}

.notification-inline.notification-large {
  padding: 13px 15px;
  margin-bottom: 25px;
}

.notification-left-aligned {
  text-align: left;
  padding-left: 0;
}

html[dir=rtl] .notification-left-aligned {
  text-align: right;
  padding-left: auto;
  padding-right: 0;
}

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

.dropdown-toggle {
  cursor: pointer;
  background: none;
  border: 0;
  display: inline-block;
  padding: 0;
  text-align: initial;
  vertical-align: middle;
}

.dropdown-toggle:hover {
  text-decoration: none;
}

.dropdown-toggle>* {
  display: inline-block;
}

.dropdown-toggle[aria-expanded=true]+.dropdown-menu {
  display: block;
}

.dropdown-menu {
  background: #fff;
  border: 1px solid #d8dcde;
  border-radius: 3px;
  box-shadow: 0px 20px 30px 0px rgba(23, 73, 77, 0.15);
  display: none;
  font-size: 14px;
  font-style: normal;
  font-weight: normal;
  left: 0;
  margin-top: 1px;
  min-width: 170px;
  padding: 10px 0;
  position: absolute;
  text-align: left;
  z-index: 1000;
}

[dir=rtl] .dropdown-menu {
  text-align: right;
}

.dropdown-menu [role=separator] {
  border-bottom: 1px solid #e9ebed;
  margin: 4px 0;
}

.dropdown-menu [role=menuitem],
.dropdown-menu [role=menuitemradio] {
  color: #2f3941;
  cursor: pointer;
  display: block;
  padding: 7px 40px 7px 20px;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  -webkit-appearance: none;
  text-align: start;
  line-height: inherit;
  width: 100%;
}

[dir=rtl] .dropdown-menu [role=menuitem],
[dir=rtl] .dropdown-menu [role=menuitemradio] {
  padding: 7px 20px 7px 40px;
}

.dropdown-menu [role=menuitem]:hover,
.dropdown-menu [role=menuitem]:focus,
.dropdown-menu [role=menuitemradio]:hover,
.dropdown-menu [role=menuitemradio]:focus {
  background: rgba(31, 115, 183, 0.08);
  text-decoration: none;
  color: #2f3941;
}

.dropdown-menu [role=menuitem][aria-selected=true],
.dropdown-menu [role=menuitem][aria-checked=true],
.dropdown-menu [role=menuitemradio][aria-selected=true],
.dropdown-menu [role=menuitemradio][aria-checked=true] {
  cursor: default;
}

.dropdown-menu [role=menuitem][aria-selected=true]::after,
.dropdown-menu [role=menuitem][aria-checked=true]::after,
.dropdown-menu [role=menuitemradio][aria-selected=true]::after,
.dropdown-menu [role=menuitemradio][aria-checked=true]::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 7l3 3 7-7'%3E%3C/path%3E%3C/svg%3E");
  display: inline-block;
  height: 12px;
  margin-left: 10px;
  width: 12px;
}

[dir=rtl] .dropdown-menu [role=menuitem][aria-selected=true]::after,
[dir=rtl] .dropdown-menu [role=menuitem][aria-checked=true]::after,
[dir=rtl] .dropdown-menu [role=menuitemradio][aria-selected=true]::after,
[dir=rtl] .dropdown-menu [role=menuitemradio][aria-checked=true]::after {
  margin-left: 0;
  margin-right: 10px;
  float: left;
}

.dropdown-menu [role=menuitem][hidden],
.dropdown-menu [role=menuitem][aria-hidden=true],
.dropdown-menu [role=menuitemradio][hidden],
.dropdown-menu [role=menuitemradio][aria-hidden=true] {
  display: none !important;
}

.dropdown-menu-end {
  left: auto;
  right: 0;
}

.dropdown-menu-top {
  bottom: 100%;
  margin-bottom: 1px;
}

[dir=rtl] .dropdown-menu {
  left: auto;
  right: 0;
  text-align: right;
}

[dir=rtl] .dropdown-menu-end {
  left: 0;
  right: auto;
}

.dropdown-chevron-icon {
  vertical-align: middle;
}

.content-tags>p {
  color: #68737D;
  margin-top: 32px;
  margin-bottom: 4px;
}

.content-tags-add-hint {
  color: #68737D;
  font-size: 14px;
}

.content-tag-list {
  display: flex;
  flex-wrap: wrap;
  word-break: break-word;
}

.content-tag-list li {
  border-right: 1px solid #C2C8CC;
  margin-bottom: 4px;
}

[dir=ltr] .content-tag-list li {
  padding-right: 8px;
  margin-right: 8px;
}

[dir=rtl] .content-tag-list li {
  padding-left: 8px;
  margin-left: 8px;
}

.content-tag-list li:last-child {
  border: none;
}

/***** WYSIWYG Editor *****/
#hc-wysiwyg {
  border: 1px solid #848F99;
}

/***** Upload Dropzone *****/
.upload-dropzone {
  border: 1px solid #848F99;
}

/***** Summary component *****/
zd-summary-block {
  background: #f3f6f6;
}

[dir=ltr] zd-summary-block {
  border-left-color: #859fa1;
}

[dir=rtl] zd-summary-block {
  border-right-color: #859fa1;
}

.service-catalog-hero {
  background-image: url($service_catalog_hero_image);
  margin-bottom: 10px;
  height: 320px;
}

.service-catalog-description {
  display: flow-root;
}

.service-catalog-description a {
  color: #1F73B7;
  text-decoration: underline;
}

.service-catalog-description a:visited {
  color: #9358B0;
}

.service-catalog-description a:hover,
.service-catalog-description a:active,
.service-catalog-description a:focus {
  color: #0F3554;
}

.service-catalog-description img {
  height: auto;
  max-width: 100%;
}

.service-catalog-description p>img.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}

.service-catalog-description p>img.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}

.service-catalog-description p>img.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}

.service-catalog-description p>img.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}

.service-catalog-description figure.image {
  display: table;
  margin: 0 auto;
}

.service-catalog-description figure.image>img {
  display: block;
  width: 100%;
}

.service-catalog-description figure.image.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}

.service-catalog-description figure.image.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}

.service-catalog-description figure.image.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}

.service-catalog-description figure.image.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}

.service-catalog-description figcaption {
  padding: 10px 0;
  font-size: 12px;
  text-align: center;
  background-color: #f2f2f2;
}

.service-catalog-description ul,
.service-catalog-description ol {
  padding-left: 20px;
  list-style-position: outside;
  margin: 20px 0 20px 20px;
}

[dir=rtl] .service-catalog-description ul,
[dir=rtl] .service-catalog-description ol {
  padding-right: 20px;
  padding-left: 0;
  margin-left: 0;
  margin-right: 20px;
}

.service-catalog-description ul>ul,
.service-catalog-description ol>ol,
.service-catalog-description ol>ul,
.service-catalog-description ul>ol,
.service-catalog-description li>ul,
.service-catalog-description li>ol {
  margin: 0;
}

.service-catalog-description ul {
  list-style-type: disc;
}

.service-catalog-description :not(pre)>code {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 5px;
  margin: 0 2px;
}

.service-catalog-description pre {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 15px;
  overflow: auto;
  white-space: pre;
  direction: ltr;
}

.service-catalog-description blockquote {
  border-left: 1px solid #ddd;
  color: #5a6d7c;
  font-style: italic;
  padding: 0 15px;
}

/* =====================================================
   Phase 3: Article & Section Page Design System
   OTT Premium Aesthetics — watcha help center
   ===================================================== */

/* --- Step 1: Sub-nav & Breadcrumbs --- */

.sub-nav {
  background: transparent;
  border-bottom: none;
  padding: 8px 0 16px;
  margin-bottom: 0;
}

.breadcrumbs,
.breadcrumbs li {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.breadcrumbs li a,
.breadcrumbs li a:visited,
.breadcrumbs li a:link {
  color: var(--text-color);
  transition: color 0.2s;
  text-decoration: none;
}

.breadcrumbs li a:hover {
  color: #FF0558;
  text-decoration: none;
}

.breadcrumbs li+li::before {
  color: var(--text-muted);
}

.breadcrumbs li:last-child,
.breadcrumbs li:last-child a,
.breadcrumbs li:last-child a:visited,
.breadcrumbs li:last-child a:link {
  color: #FF0558 !important;
  font-weight: 700;
}

.breadcrumbs li:last-child::before {
  color: var(--text-muted);
  font-weight: 500;
}

[data-theme='dark'] .sub-nav {
  background: transparent;
}

[data-theme='dark'] .breadcrumbs li a,
[data-theme='dark'] .breadcrumbs li a:visited,
[data-theme='dark'] .breadcrumbs li a:link {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme='dark'] .breadcrumbs li:last-child,
[data-theme='dark'] .breadcrumbs li:last-child a,
[data-theme='dark'] .breadcrumbs li:last-child a:visited {
  color: #FF0558 !important;
}

/* --- Step 2: Article Page Typography --- */

.article-title {
  font-size: 2rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-color) !important;
}

.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.article-body :not(pre) > code {
  background: rgba(255, 5, 88, 0.08) !important;
  color: #FF0558 !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  font-size: 0.875em !important;
}

.article-body pre {
  background: #1a1a1a !important;
  color: #e0e0e0 !important;
  border-radius: 8px !important;
  border: none !important;
  border-left: 3px solid #FF0558 !important;
  padding: 20px !important;
  overflow-x: auto;
}

.article-body pre code {
  background: transparent !important;
  color: inherit !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0.9em !important;
}

.article-body blockquote {
  border-left: 3px solid #FF0558 !important;
  background: rgba(255, 5, 88, 0.04) !important;
  margin: 16px 0 !important;
  padding: 12px 20px !important;
  border-radius: 0 8px 8px 0 !important;
  font-style: italic;
  color: var(--text-muted);
}

[data-theme='dark'] .article-title {
  color: #ffffff !important;
}

[data-theme='dark'] .article-body :not(pre) > code {
  background: rgba(255, 5, 88, 0.18) !important;
}

[data-theme='dark'] .article-body blockquote {
  background: rgba(255, 5, 88, 0.08) !important;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Step 3: Section Page Layout --- */

.section-content .page-header {
  margin-bottom: 32px;
}

.section-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.section-content .page-header-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.article-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.article-list-item {
  border-bottom: 1px solid var(--card-border);
  list-style: none !important;
  transition: background-color 0.15s ease;
}

.article-list-item:first-child {
  border-top: 1px solid var(--card-border);
}

.article-list-item:hover {
  background-color: rgba(255, 5, 88, 0.04);
}

.article-list-link {
  display: flex;
  align-items: center;
  padding: 12px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color) !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.article-list-link::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF0558;
  margin-right: 12px;
  flex-shrink: 0;
}

.article-list-link:hover {
  color: #FF0558 !important;
  text-decoration: none !important;
}

.article-list-item .icon-star,
.article-list-item .icon-lock {
  margin-left: 8px;
  opacity: 0.5;
  flex-shrink: 0;
}

.article-list-item.article-promoted .icon-star {
  color: #FF0558;
  opacity: 0.8;
}

/* promoted 항목은 불렛 대신 별표가 그 자리에 (2026-07-25 디자인 피드백)
   DOM 순서가 svg → a 라서 li를 flex로 만들면 별표가 같은 줄 왼쪽으로 들어옴 */
.article-list-item.article-promoted {
  display: flex;
  align-items: center;
}
.article-list-item.article-promoted .icon-star {
  margin: 0 12px 0 12px;
}
.article-list-item.article-promoted .article-list-link {
  flex: 1;
  padding-left: 0;
}
.article-list-item.article-promoted .article-list-link::before {
  display: none;
}

@media (max-width: 768px) {
  .section-container {
    padding: 24px 0;
  }
  .section-content h1 {
    font-size: 1.4rem;
  }
}

[data-theme='dark'] .section-content h1 {
  color: #ffffff;
}

[data-theme='dark'] .article-list-item {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme='dark'] .article-list-item:hover {
  background-color: rgba(255, 5, 88, 0.08);
}

[data-theme='dark'] .article-list-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme='dark'] .article-list-link:hover {
  color: #FF0558 !important;
}

/* --- Step 4: Dark Mode Completion (Article Page) --- */

[data-theme='dark'] .article-meta {
  color: rgba(255, 255, 255, 0.45);
}

[data-theme='dark'] .article-author {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme='dark'] .article-votes {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .article-votes-question {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme='dark'] .collapsible-sidebar {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme='dark'] .collapsible-sidebar-toggle {
  color: #ffffff !important;
}

[data-theme='dark'] .article-sidebar a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

[data-theme='dark'] .article-sidebar a:hover {
  color: #FF0558;
}

[data-theme='dark'] .article-sidebar a[aria-current="true"] {
  color: #FF0558 !important;
  font-weight: 600;
}

[data-theme='dark'] .vote-button {
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  background: transparent !important;
}

[data-theme='dark'] .vote-button:hover,
[data-theme='dark'] .vote-button.active {
  border-color: #FF0558 !important;
  color: #FF0558 !important;
  background: rgba(255, 5, 88, 0.08) !important;
}

[data-theme='dark'] .article-comment-count a {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme='dark'] .article-comment-count a:hover {
  color: #FF0558;
}

[data-theme='dark'] .article-return-to-top a {
  color: rgba(255, 255, 255, 0.45);
}

[data-theme='dark'] .article-return-to-top a:hover {
  color: #FF0558;
}

[data-theme='dark'] .article-relatives .article-list-item {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.08);
}

/* === Phase 4: article_page extended dark mode === */

/* Article body text */
[data-theme='dark'] .article-body,
[data-theme='dark'] .article-body p,
[data-theme='dark'] .article-body span,
[data-theme='dark'] .article-body li,
[data-theme='dark'] .article-body div,
[data-theme='dark'] .article-body td,
[data-theme='dark'] .article-body th,
[data-theme='dark'] .article-content {
  color: var(--text-color) !important;
}

[data-theme='dark'] .article-body h1,
[data-theme='dark'] .article-body h2,
[data-theme='dark'] .article-body h3,
[data-theme='dark'] .article-body h4,
[data-theme='dark'] .article-body h5,
[data-theme='dark'] .article-body h6 {
  color: #fff !important;
}

[data-theme='dark'] .article-body a {
  color: var(--brand-color) !important;
}

[data-theme='dark'] .article-body strong,
[data-theme='dark'] .article-body b {
  color: #fff !important;
}

/* Inline meta data on article header */
[data-theme='dark'] .meta-data,
[data-theme='dark'] .meta-group .meta-data,
[data-theme='dark'] .article-meta a {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* Attachments */
[data-theme='dark'] .article-attachments .attachment-item {
  border-color: var(--card-border);
  color: var(--text-color);
}
[data-theme='dark'] .article-attachments a {
  color: var(--text-color) !important;
}
[data-theme='dark'] .article-attachments a:hover {
  color: var(--brand-color) !important;
}

/* Content tags */
[data-theme='dark'] .content-tags {
  color: var(--text-color);
}
[data-theme='dark'] .content-tag-item a {
  background: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text-color) !important;
}
[data-theme='dark'] .content-tag-item a:hover {
  border-color: var(--brand-color) !important;
  color: var(--brand-color) !important;
}

/* Related / recently viewed sidebar */
[data-theme='dark'] .article-relatives-sidebar,
[data-theme='dark'] .article-relatives {
  background: transparent !important;
  color: var(--text-color);
}
[data-theme='dark'] .article-relatives h3,
[data-theme='dark'] .article-relatives .related-articles-title,
[data-theme='dark'] .article-relatives .recent-articles-title {
  color: #fff !important;
}
[data-theme='dark'] .article-relatives a {
  color: rgba(255, 255, 255, 0.7) !important;
}
[data-theme='dark'] .article-relatives a:hover {
  color: var(--brand-color) !important;
}

/* Comments section */
[data-theme='dark'] .article-comments,
[data-theme='dark'] .comments {
  color: var(--text-color);
}
[data-theme='dark'] .comment-heading,
[data-theme='dark'] .comment-callout {
  color: #fff !important;
}
[data-theme='dark'] .comment {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 14px !important;
  margin-bottom: 12px;
  padding: 16px 20px !important;
}
[data-theme='dark'] .comment-body,
[data-theme='dark'] .comment-body p,
[data-theme='dark'] .comment-body span {
  color: var(--text-color) !important;
}
[data-theme='dark'] .comment-meta,
[data-theme='dark'] .comment-meta a,
[data-theme='dark'] .comment-meta .meta-data {
  color: rgba(255, 255, 255, 0.55) !important;
}
[data-theme='dark'] .comment-author a {
  color: var(--text-color) !important;
}
[data-theme='dark'] .comment-form,
[data-theme='dark'] .hbs-form {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 14px !important;
  padding: 16px !important;
}
[data-theme='dark'] .comment-form textarea,
[data-theme='dark'] .comment-form input[type="text"],
[data-theme='dark'] .comment-form input[type="email"] {
  background: var(--input-bg) !important;
  border: 1.5px solid var(--input-border) !important;
  color: var(--text-color) !important;
  border-radius: 10px !important;
}
[data-theme='dark'] .dropdown-toggle {
  color: var(--text-color) !important;
  background: transparent !important;
  border: 1px solid var(--input-border) !important;
  border-radius: 8px !important;
}
[data-theme='dark'] .dropdown-menu {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  color: var(--text-color) !important;
}
[data-theme='dark'] .dropdown-menu a {
  color: var(--text-color) !important;
}

/* Bottom sticky search bar */
[data-theme='dark'] .bottom-search-bar {
  background: var(--container-bg) !important;
  border-top: 1px solid var(--card-border) !important;
}
[data-theme='dark'] .bottom-search-bar .search,
[data-theme='dark'] .bottom-search-bar input[type="search"] {
  background: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text-color) !important;
}

/* Article sidebar (current article highlight) */
[data-theme='dark'] .sidenav-item.current-article,
[data-theme='dark'] .sidenav-item.current,
[data-theme='dark'] .sidenav-item[aria-current="page"] {
  color: var(--brand-color) !important;
  font-weight: 600;
}

/* Vote / share buttons */
[data-theme='dark'] .article-vote,
[data-theme='dark'] .button.article-vote {
  background: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text-color) !important;
}
[data-theme='dark'] .article-vote.button-primary,
[data-theme='dark'] .article-vote[data-selected="true"] {
  background: var(--brand-color) !important;
  border-color: var(--brand-color) !important;
  color: #fff !important;
}
[data-theme='dark'] .article-share .share-icon,
[data-theme='dark'] .article-share a {
  color: var(--text-color-light) !important;
}

/* Tables in body */
[data-theme='dark'] .article-body table {
  border-color: var(--card-border) !important;
}
[data-theme='dark'] .article-body table th,
[data-theme='dark'] .article-body table td {
  border-color: var(--card-border) !important;
}
[data-theme='dark'] .article-body table thead th {
  background: var(--input-bg) !important;
}

/* === End Phase 4 === */

/* === End Phase 3 === */

/* --- Category Emoji Icon --- */
.category-emoji {
  font-size: 24px;
  line-height: 1;
}

/* --- Section links: max 3 + toggle (smooth animation) --- */
.blocks-item-sections .section-link-item:nth-child(n+4) {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-bottom: 0;
  transition: max-height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.3s ease 0.05s,
              margin-bottom 0.3s ease;
}

.blocks-item-sections.is-expanded .section-link-item:nth-child(n+4) {
  max-height: 60px;
  opacity: 1;
  margin-bottom: 14px;
}

.blocks-item-sections.is-expanded .section-link-item:last-child {
  margin-bottom: 0;
}

.section-toggle-btn {
  background: rgba(255, 5, 88, 0.06);
  border: 1px solid rgba(255, 5, 88, 0.12);
  border-radius: 8px;
  color: var(--brand-color);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 8px 16px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.section-toggle-btn:hover {
  background: rgba(255, 5, 88, 0.12);
  border-color: rgba(255, 5, 88, 0.3);
  transform: translateY(-1px);
}

.section-toggle-btn:active {
  transform: translateY(0);
}

.section-toggle-btn .toggle-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 10px;
}

.blocks-item-sections.is-expanded + .section-toggle-btn .toggle-icon {
  transform: rotate(180deg);
}

[data-theme='dark'] .section-toggle-btn {
  background: rgba(255, 5, 88, 0.1);
  border-color: rgba(255, 5, 88, 0.2);
}

[data-theme='dark'] .section-toggle-btn:hover {
  background: rgba(255, 5, 88, 0.18);
  border-color: rgba(255, 5, 88, 0.4);
}

/* --- Page search area (matches home page style) --- */
.page-search-area {
  position: relative;
  margin: 24px 0 8px;
  max-width: 480px;
  width: 100%;
}

.page-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 2;
  pointer-events: none;
}

.page-search-area .search {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex !important;
  position: relative !important;
}

/* (Custom autocomplete removed — used /api/v2 which doesn't respect user_segment.
    Home now uses Zendesk's native instant search; page-search-area has no autocomplete.) */

.page-search-area .search:focus-within {
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.page-search-area input[type="search"],
.page-search-area .search-has-value input[type="search"] {
  flex-grow: 1 !important;
  background-color: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  color: var(--text-color) !important;
  padding: 12px 38px 12px 44px !important;
  border-radius: 8px 0 0 8px !important;
  font-size: 14px !important;
  height: auto !important;
  -webkit-appearance: none;
}

.page-search-area input[type="search"]:focus {
  border-color: #FF0558 !important;
  box-shadow: none !important;
  outline: none !important;
}

.page-search-area input[type="search"]::placeholder {
  color: #999;
  font-size: 14px;
}

.page-search-area input[type="submit"] {
  background-color: var(--brand-color, #FF0558) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 20px !important;
  border-radius: 0 8px 8px 0 !important;
  font-weight: 600;
  font-size: 14px !important;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 70px !important;
  height: auto !important;
  flex-shrink: 0;
  position: static !important;
  background-image: none !important;
  text-indent: 0 !important;
  line-height: normal !important;
  overflow: visible !important;
  display: inline-block !important;
}

.page-search-area input[type="submit"]:hover {
  background-color: #d80046 !important;
}

[data-theme='dark'] .page-search-area input[type="search"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Page search: hide ALL Zendesk clear buttons */
.page-search-area .search .clear-button,
.page-search-area .search-has-value .clear-button {
  display: none !important;
}

/* Input wrapper for X button positioning */
.page-search-input-wrap {
  position: relative;
  flex-grow: 1;
  display: flex;
}

.page-search-x {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.4;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  user-select: none;
  transition: opacity 0.15s;
}

.page-search-x:hover {
  opacity: 0.8;
}

/* --- Content alignment: override flex-end to left-align --- */
.category-container {
  justify-content: flex-start;
}

.category-content {
  flex: 1;
  max-width: 100%;
}

.section-container {
  max-width: none;
  margin: 0;
  padding: 40px 0;
  justify-content: flex-start;
}

.section-content {
  flex: 1;
  max-width: 100%;
}

/* --- Hide: follow/subscribe buttons on section & article pages --- */
.section-subscribe,
.article-subscribe { display: none; }

/* --- Hide: share button on article page --- */
.article-share { display: none; }

/* --- Hide: comments section on article page --- */
.article-comments { display: none; }

/* --- Responsive: blocks-list-redesign mobile --- */
@media (max-width: 768px) {
  .blocks-list-redesign {
    grid-template-columns: 1fr;
  }
  .blocks-item-sections {
    min-height: auto;
  }
}

/* === Header navigation: button-style nav + minimal dropdown === */

/* Style nav links as buttons */
.nav-wrapper-desktop a.nav-btn {
  display: inline-block !important;
  padding: 7px 16px !important;
  border: 1.5px solid #FF0558 !important;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #FF0558 !important;
  transition: background 0.2s, color 0.2s;
  margin-left: 8px;
}

.nav-wrapper-desktop a.nav-btn:hover,
.nav-wrapper-desktop a.nav-btn:focus {
  background: #FF0558 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* === Spotify-style header === */

/* Hide old nav wrappers (Zendesk helpers preserved in HTML) */
.nav-wrapper-desktop,
.nav-wrapper-mobile {
  display: none !important;
}

/* Header left: logo + nav links */
.header-left {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Header nav links removed (moved into profile dropdown / article footer) */
.header-nav-links { display: none !important; }

/* Profile dropdown wrapper */
.header-profile-dropdown {
  position: relative;
}

/* Dropdown menu (hidden by default) */
.header-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: none;
  z-index: 1000;
}

.header-profile-dropdown.is-open .header-profile-menu {
  display: block;
}

.header-profile-menu a.header-profile-menu-item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s;
}

.header-profile-menu a.header-profile-menu-item:hover {
  background: rgba(255,255,255,0.08);
  text-decoration: none !important;
}

/* 구분선 제거 후 항목 간 간격 (2026-07-25 디자인 피드백) */
.header-profile-menu a.header-profile-menu-item + a.header-profile-menu-item {
  margin-top: 2px;
}

/* Chevron rotation when open */
.header-profile-chevron {
  transition: transform 0.2s;
  color: var(--text-color, #fff);
}

.header-profile-dropdown.is-open .header-profile-chevron {
  transform: rotate(180deg);
}

/* Profile pill is now a button — reset button defaults */
button.header-profile-pill {
  font: inherit;
  outline: none;
}

/* Light mode dropdown */
[data-theme='light'] .header-profile-menu {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

[data-theme='light'] .header-profile-menu a.header-profile-menu-item {
  color: #333 !important;
}

[data-theme='light'] .header-profile-menu a.header-profile-menu-item:hover {
  background: rgba(0,0,0,0.05);
}

/* Header right: sign-out + profile pill */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Sign-out text link */
.header-signout-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color, #fff) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.header-signout-link:hover {
  opacity: 0.7;
  text-decoration: none !important;
}

/* Spotify-style profile pill */
.header-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 4px 14px 4px 4px;
  text-decoration: none !important;
  transition: background 0.2s;
  cursor: pointer;
}

.header-profile-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none !important;
}

.header-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Default avatar icon for anonymous users */
.header-profile-avatar-default {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  padding: 4px;
  color: rgba(255,255,255,0.7);
  box-sizing: border-box;
}

[data-theme='light'] .header-profile-avatar-default {
  background: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.5);
}

/* Sign-in pill same style as profile pill */
a.header-profile-pill.sign-in {
  text-decoration: none !important;
  color: inherit !important;
}

.header-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color, #fff);
  white-space: nowrap;
}

/* Light mode adjustments */
[data-theme='light'] .header-nav-links {
  border-right-color: rgba(0,0,0,0.15);
}

[data-theme='light'] .header-nav-links a.header-nav-link {
  color: #FF0558 !important;
}

[data-theme='light'] .header-signout-link,
[data-theme='light'] .header-profile-name {
  color: #333 !important;
}

[data-theme='light'] .header-nav-links a.header-nav-link:hover {
  background: none;
}

[data-theme='light'] .header-profile-pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .header-profile-pill:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Mobile: shrink gaps */
@media (max-width: 600px) {
  .header-left {
    gap: 12px;
  }
  .header-nav-links {
    margin-right: 12px;
    padding-right: 12px;
    gap: 14px;
  }
  .header-nav-links a.header-nav-link {
    font-size: 12px;
    padding: 0;
  }
  .header-profile-name {
    display: none;
  }
  .header-profile-pill {
    padding: 4px;
  }
}

/* === Article page: left sidebar hidden, right related-articles sticky === */

.article-sidebar {
  display: none !important;
}

.article-container {
  display: flex !important;
  gap: 40px;
  align-items: flex-start;
}

.article {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Hide article meta: author, dates, return-to-top, recently viewed, vote count.
   (.article-more-questions는 2026-07-31 부활 — 아티클 하단 문의 등록 콜아웃, 팀 결정) */
.article-author,
.article-updated-at,
.article-return-to-top,
.recent-articles,
.article-votes-count {
  display: none !important;
}

/* Article bottom request callout — "더 궁금한 점이 있나요?" + 문의 등록 (2026-07-31 부활)
   pill 버튼 → 텍스트 링크로 확정: ① 버튼(투표) vs 링크(이동) 형태로 역할이 갈려 색으로 억지 구분할 필요 없음
   ② 브랜드 핑크를 투표 버튼에만 남겨 강조 신호 보존 ③ 팀 서식 가이드(테마 링크색 #666)·dana 의견(밑줄=링크,
   톤 낮추고 중요한 것만 컬러)·CS 원칙 ③(1:1 유도는 마지막 수단)과 정합 ④ 레거시 테마와 동일한 모양.
   투표 블록과 구분선 없이 한 덩어리로 묶어 "같은 질문을 두 번 묻는" 인상 제거. */
/* 투표 블록 바로 아래 (구분선 없이 한 덩어리). 문구는 팀 논의 전까지 현행 유지 */
.article-more-questions {
  border: 0;
  padding: 0 0 30px;
  margin: 0;
  text-align: center;
}

.article-more-questions-text {
  display: block;
  color: var(--text-color-light);
  font-size: 14px;
  margin-bottom: 14px;
}

/* 버튼형 — 투표(핑크 아웃라인)와 색 계통을 달리해 위계를 가름: 여긴 중립 아웃라인(테두리·글자 모두 중립),
   호버에서만 브랜드로 반응. 글자만 핑크였던 half-state와 브랜드색 남발을 동시에 회피 */
.article-more-questions a.article-more-questions-link,
.article-more-questions a.article-more-questions-link:visited {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-more-questions a.article-more-questions-link:hover,
.article-more-questions a.article-more-questions-link:focus {
  border-color: var(--brand-color);
  background-color: rgba(255, 5, 88, 0.06);
  color: var(--brand-color);
  text-decoration: none;
}

[data-theme='dark'] .article-more-questions a.article-more-questions-link,
[data-theme='dark'] .article-more-questions a.article-more-questions-link:visited {
  border-color: rgba(255, 255, 255, 0.22);
}

/* Hide bottom search bar on article page (replaced by top search) */
.bottom-search-bar {
  display: none !important;
}

/* Article votes: seamless inline layout + brand-styled buttons */
.article-votes {
  background: transparent !important;
  border-top: none !important;
  padding: 40px 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
}

.article-votes-question {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
}

.article-votes-controls {
  display: flex !important;
  gap: 8px !important;
}

.article-vote {
  display: inline-block !important;
  padding: 6px 18px !important;
  border: 1.5px solid #FF0558 !important;
  border-radius: 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  width: auto !important;
  min-width: 0 !important;
  color: #FF0558 !important;
  background: transparent !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s !important;
  min-width: 80px !important;
  cursor: pointer;
}

.article-vote:hover {
  background: #FF0558 !important;
  color: #fff !important;
}

.article-vote.button-primary {
  background: #FF0558 !important;
  color: #fff !important;
  border-color: #FF0558 !important;
}

[data-theme='dark'] .article-votes {
  background: transparent !important;
  border-color: transparent !important;
}

[data-theme='dark'] .article-votes-question {
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme='dark'] .article-vote {
  color: #FF0558 !important;
  border-color: #FF0558 !important;
}

[data-theme='dark'] .article-vote:hover {
  background: #FF0558 !important;
  color: #fff !important;
}

/* === Related articles: sticky sidebar === */
.article-relatives-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.article-relatives-sidebar .article-relatives {
  display: block !important;
}

.article-relatives-sidebar .related-articles {
  padding: 20px;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 12px;
}

.article-relatives-sidebar .related-articles-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  margin-top: 0 !important;
}

.article-relatives-sidebar .related-articles li {
  margin-bottom: 10px;
}

.article-relatives-sidebar .related-articles li a {
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.article-relatives-sidebar .related-articles li a:hover {
  color: #FF0558 !important;
}

[data-theme='dark'] .article-relatives-sidebar .related-articles {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile: sidebar below content */
@media (max-width: 768px) {
  .article-container {
    flex-direction: column !important;
  }
  .article-relatives-sidebar {
    flex: none;
    width: 100%;
    position: static;
  }
}

/* ===========================================================
   REQUEST PAGE — 개별 문의 상세
   =========================================================== */

/* Title row: subject + status badge inline */
.request-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.request-title-row .request-title {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.request-title-row .status-label {
  flex-shrink: 0;
  margin-top: 6px;
}

/* Comment thread */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.comment {
  margin-bottom: 16px;
}

.comment-wrapper {
  display: flex;
  gap: 14px;
}

.comment-info {
  flex: 1;
  min-width: 0;
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-avatar .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  margin-top: 8px;
}

/* Agent comment special styling */
.comment .icon-agent + .user-avatar {
  border: 2px solid var(--brand-color);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.comment-meta a {
  font-weight: 700;
  color: var(--text-color) !important;
  text-decoration: none !important;
}

.comment-meta .meta-data {
  color: var(--text-color-light);
}

/* Request sidebar */
.request-sidebar {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 14px !important;
  padding: 20px !important;
}

@media (min-width: 1024px) {
  .request-sidebar {
    position: sticky !important;
    top: 88px !important;
  }
}

.request-sidebar .collapsible-sidebar-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--text-color-light) !important;
}

.request-details {
  margin: 0 !important;
}

.request-details dt {
  color: var(--text-color-light) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

.request-details dd {
  font-weight: 600 !important;
  font-size: 13px !important;
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid var(--card-border) !important;
}

.request-details dd:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Comment form */
.comment-form {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 14px !important;
  padding: 20px !important;
  margin-top: 24px;
}

.comment-show-container {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 10px 20px !important;
  border: 1.5px solid var(--brand-color) !important;
  border-radius: 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--brand-color) !important;
  background: transparent !important;
  cursor: pointer;
  transition: all 0.2s;
}

.comment-show-container:hover {
  background: var(--brand-color) !important;
  color: #fff !important;
}

.comment-form textarea,
.comment-form .ccs-input {
  border-radius: 10px !important;
  border: 1px solid var(--card-border) !important;
  background: transparent !important;
  color: var(--text-color) !important;
  transition: border-color 0.2s;
  padding: 12px !important;
}

.comment-form textarea:focus,
.comment-form .ccs-input:focus {
  border-color: var(--brand-color) !important;
  outline: none !important;
}

/* Submit button pill style */
.comment-form .button,
.comment-form .button-large,
.comment-form input[type="submit"] {
  border-radius: 24px !important;
  background: var(--brand-color) !important;
  border-color: var(--brand-color) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  transition: background 0.2s;
}

.comment-form .button:hover,
.comment-form .button-large:hover,
.comment-form input[type="submit"]:hover {
  background: var(--brand-color-dark) !important;
  border-color: var(--brand-color-dark) !important;
}

/* Mark as solved button */
.mark-as-solved {
  border-radius: 24px !important;
  border: 1.5px solid var(--card-border) !important;
  background: transparent !important;
  color: var(--text-color) !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
}

.mark-as-solved:hover {
  border-color: var(--text-color) !important;
}

/* Checkbox accent */
.comment-form input[type="checkbox"] {
  accent-color: var(--brand-color);
}

/* Status badge shared styles (all pages) */
.status-label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 4px 14px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.status-label-open,
.status-label-new    { color: #f39c12 !important; background: rgba(243, 156, 18, 0.14) !important; border: none !important; }
.status-label-pending,
.status-label-hold   { color: #3498db !important; background: rgba(52, 152, 219, 0.14) !important; border: none !important; }
.status-label-solved { color: #27ae60 !important; background: rgba(39, 174, 96, 0.14) !important; border: none !important; }
.status-label-closed { color: #95a5a6 !important; background: rgba(149, 165, 166, 0.14) !important; border: none !important; }

/* ===========================================================
   SEARCH RESULTS — 검색 결과
   =========================================================== */

/* Filter sidebar card sections */
.search-results-sidebar .filters-in-section {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  margin-bottom: 14px !important;
}

.search-results-sidebar .collapsible-sidebar-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--text-color-light) !important;
}

.search-results-sidebar .sidenav-item {
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  transition: background 0.15s;
}

.search-results-sidebar .sidenav-item:hover {
  background: rgba(127, 127, 127, 0.08) !important;
}

.search-results-sidebar .sidenav-item[aria-selected="true"],
.search-results-sidebar .sidenav-item[aria-checked="true"] {
  color: var(--brand-color) !important;
  font-weight: 600;
}

/* Content tag pills */
.content-tag {
  border-radius: 20px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  background: rgba(255, 5, 88, 0.1) !important;
  color: var(--brand-color) !important;
  border: 1px solid rgba(255, 5, 88, 0.3) !important;
}

@media (min-width: 1024px) {
  .search-results-sidebar {
    position: sticky !important;
    top: 88px !important;
    align-self: flex-start;
  }
}

/* Search result items → card style */
.search-results-list li {
  list-style: none;
}

.search-results-list article {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 14px !important;
  padding: 20px 24px !important;
  margin-bottom: 14px !important;
  transition: border-color 0.2s;
}

.search-results-list article:hover {
  border-color: var(--brand-color) !important;
}

.search-result-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--text-color) !important;
  text-decoration: none !important;
}

.search-result-title:hover {
  color: var(--brand-color) !important;
}

/* Search highlight */
.search-results-list em,
.search-result-title em {
  font-style: normal !important;
  background: rgba(255, 5, 88, 0.15) !important;
  color: var(--brand-color) !important;
  padding: 0 3px;
  border-radius: 3px;
}

.search-result-description {
  font-size: 14px !important;
  color: var(--text-color-light) !important;
  line-height: 1.6 !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-result-meta-container {
  font-size: 12px !important;
  color: var(--text-color-light) !important;
}

/* Generative answers (AI response) */
.generative-answers-container {
  background: linear-gradient(135deg, rgba(255, 5, 88, 0.08), rgba(255, 5, 88, 0.02)) !important;
  border: 1px solid rgba(255, 5, 88, 0.3) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
}

/* Pagination pill buttons */
.pagination-next-link,
.pagination-prev-link,
.pagination-first-link,
.pagination a {
  border-radius: 24px !important;
  padding: 6px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* ===========================================================
   NEW REQUEST PAGE — 문의 등록 폼
   =========================================================== */

/* Form card wrapper */
#new-request-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 8px;
}

/* Form inputs (React-rendered, generic selectors) */
#new-request-form input[type="text"],
#new-request-form input[type="email"],
#new-request-form textarea,
#new-request-form select,
#new-request-form .ql-editor,
#new-request-form .nesty-input {
  border-radius: 10px !important;
  border: 1.5px solid var(--input-border) !important;
  background: var(--input-bg) !important;
  color: var(--text-color) !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  transition: border-color 0.2s;
}

#new-request-form input:focus,
#new-request-form textarea:focus,
#new-request-form select:focus,
#new-request-form .ql-editor:focus {
  border-color: var(--brand-color) !important;
  outline: none !important;
}

#new-request-form textarea {
  min-height: 180px !important;
}

/* Submit button */
#new-request-form input[type="submit"],
#new-request-form button[type="submit"],
#new-request-form .button {
  border-radius: 24px !important;
  background: var(--brand-color) !important;
  border: 1.5px solid var(--brand-color) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 12px 28px !important;
  cursor: pointer;
  transition: background 0.2s;
}

#new-request-form input[type="submit"]:hover,
#new-request-form button[type="submit"]:hover,
#new-request-form .button:hover {
  background: var(--brand-color-dark) !important;
  border-color: var(--brand-color-dark) !important;
}

/* File upload area — pink dashed accent (mockup pattern).
   Garden React renders the dropzone as <div role="button" data-garden-id="forms.file_upload"
   class="StyledFileUpload-sc-*"> — not `.upload-dropzone`. Match by Garden id + styled-components
   prefix; `.upload-dropzone` kept as fallback for non-React Copenhagen contexts. */
#new-request-form [data-garden-id="forms.file_upload"],
#new-request-form [class*="StyledFileUpload"],
#new-request-form .upload-dropzone {
  border: 1.5px dashed rgba(255, 5, 88, 0.40) !important;
  border-radius: 10px !important;
  padding: 26px 20px !important;
  background: rgba(255, 5, 88, 0.025) !important;
  color: var(--text-color-light) !important;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#new-request-form [data-garden-id="forms.file_upload"] *,
#new-request-form [class*="StyledFileUpload"] *,
#new-request-form .upload-dropzone * {
  color: var(--text-color-light) !important;
}

#new-request-form [data-garden-id="forms.file_upload"]:hover,
#new-request-form [class*="StyledFileUpload"]:hover,
#new-request-form .upload-dropzone:hover {
  border-color: var(--brand-color) !important;
  background: rgba(255, 5, 88, 0.06) !important;
}

/* The clickable "파일 추가" / "파일을 선택" trigger — brand pink + bold.
   In Copenhagen native HTML it's an <a>; Garden React may render it inside <button>. */
#new-request-form .upload-dropzone a,
#new-request-form .upload-dropzone button,
#new-request-form .upload-dropzone input[type="file"] + label,
#new-request-form .upload-dropzone .button,
#new-request-form [data-garden-id="forms.file_upload"] a,
#new-request-form [data-garden-id="forms.file_upload"] button,
#new-request-form [class*="StyledFileUpload"] a,
#new-request-form [class*="StyledFileUpload"] button {
  color: var(--brand-color) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Form labels */
#new-request-form label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text-color) !important;
}

/* Page subtitle */
.page-subtitle {
  font-size: 15px;
  color: var(--text-color-light);
  margin: -16px 0 24px;
}

/* ===========================================================
   REQUESTS PAGE — 내 문의내역 리스트
   =========================================================== */

/* Header row: title left + CTA right */
.my-activities-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px !important;
}

.my-activities-header h1 {
  margin: 0 !important;
}

/* New request CTA button (added in HBS) */
.my-activities-header .btn-new-request {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 24px;
  background: var(--brand-color);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s;
  white-space: nowrap;
}

/* "+" prefix via pseudo-element so locale text from {{link 'new_request'}}
   stays untouched (ko/ja/en all work). */
.my-activities-header .btn-new-request::before {
  content: "+";
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  display: inline-block;
  margin-right: 2px;
}

.my-activities-header .btn-new-request:hover {
  background: var(--brand-color-dark);
}

/* React-rendered request list (Zendesk React classes) */

/* Hide ownership-based tabs (My/CC'd/Organization) — replaced by status tabs.
   Most users only have personal requests; CC'd/Organization is rare and the
   row is awkward at narrow widths. JS fallback in styleRequestsPage(). */
.my-activities-nav,
#main-content [role="tablist"] {
  display: none !important;
}

/* Toolbar (search + filter) hide handled by JS — see styleRequestsPage() in script.js
   (CSS-only attempts failed because React uses styled-components hash classes) */

/* Hide page-level search bar on requests_page only
   (helper kept to avoid 400 upload error) */
.container:has([data-status-tabs]) > .page-search-area {
  display: none !important;
}

/* === search_results page === */

/* Search bar container layout fix (was overlapping with X icon) */
.sub-nav .search-container {
  position: relative;
  margin-left: auto;
  max-width: 380px;
  width: 100%;
}
.sub-nav .search-container .search {
  background-color: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: 50px !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 2px 16px 2px 36px !important;
  width: 100% !important;
}
.sub-nav .search-container .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 2;
  pointer-events: none;
}
.sub-nav .search-container .search input[type="search"] {
  height: 40px !important;
  font-size: 14px !important;
  padding: 0 !important;
}
@media (min-width: 768px) {
  .sub-nav {
    align-items: center !important;
    display: flex !important;
    gap: 16px;
    flex-wrap: wrap;
  }
  .sub-nav > .breadcrumbs {
    flex: 1;
    min-width: 0;
  }
}

/* Hide vote count + comment count + author + date in result list */
.search-result-votes,
.search-result-meta-count,
.search-result-meta-container .meta-data {
  display: none !important;
}

/* === Garden listbox dropdown (mounted to body via portal) — dark mode === */
[role="listbox"] {
  background-color: var(--input-bg) !important;
  color: var(--text-color) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  padding: 4px !important;
}

[role="listbox"] [role="option"] {
  background-color: transparent !important;
  color: var(--text-color) !important;
  border: none !important;
  border-left: none !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  box-shadow: none !important;
}

[role="listbox"] [role="option"]:hover {
  background-color: rgba(255, 5, 88, 0.12) !important;
  color: var(--text-color) !important;
  box-shadow: none !important;
}

[role="listbox"] [role="option"][aria-selected="true"] {
  background-color: rgba(255, 5, 88, 0.18) !important;
  color: var(--text-color) !important;
  font-weight: 600 !important;
  border-left: none !important;
  box-shadow: inset 3px 0 0 var(--brand-color) !important;
}

[role="listbox"] [role="option"] svg,
[role="listbox"] [role="option"][aria-selected="true"] svg {
  color: var(--brand-color) !important;
  fill: var(--brand-color) !important;
}

/* === Override Garden teal accent → brand pink in new_request_form === */
#new-request-form input:focus,
#new-request-form select:focus,
#new-request-form textarea:focus,
#new-request-form [contenteditable]:focus,
#new-request-form [contenteditable="true"]:focus-within,
#new-request-form [role="combobox"]:focus,
#new-request-form [role="combobox"][aria-expanded="true"],
#new-request-form [data-garden-id="forms.faux_input"]:focus-within,
#new-request-form [aria-expanded="true"][data-garden-id="forms.faux_input"] {
  border-color: var(--brand-color) !important;
  outline-color: var(--brand-color) !important;
  outline: 2px solid var(--brand-color) !important;
  outline-offset: -2px !important;
  box-shadow: none !important;
}

/* Faux-input + combobox default border (matches dark inputs) */
#new-request-form [data-garden-id="forms.faux_input"],
#new-request-form [role="combobox"] {
  border: 1.5px solid var(--input-border) !important;
  background-color: var(--input-bg) !important;
  color: var(--text-color) !important;
  border-radius: 10px !important;
}

/* === WYSIWYG editor: enforce text color on all descendants in dark mode === */
#new-request-form [contenteditable] {
  background-color: var(--input-bg) !important;
  color: var(--text-color) !important;
}
#new-request-form [contenteditable] *,
#new-request-form [contenteditable] p,
#new-request-form [contenteditable] span,
#new-request-form [contenteditable] li,
#new-request-form [contenteditable] strong,
#new-request-form [contenteditable] em,
#new-request-form [contenteditable] code,
#new-request-form [contenteditable] blockquote {
  color: var(--text-color) !important;
  background-color: transparent !important;
}
#new-request-form [contenteditable] a {
  color: var(--brand-color) !important;
}
/* Text selection: pink tint instead of inverted white */
#new-request-form [contenteditable] ::selection,
#new-request-form [contenteditable]::selection {
  background-color: rgba(255, 5, 88, 0.35) !important;
  color: var(--text-color) !important;
}
/* WYSIWYG toolbar buttons */
#new-request-form [role="toolbar"] {
  background-color: var(--input-bg) !important;
  border-color: var(--input-border) !important;
}
#new-request-form [role="toolbar"] button,
#new-request-form [role="toolbar"] [role="button"] {
  color: var(--text-color) !important;
}

/* Status tabs (전체 / 진행 중 / 답변 완료 / 종료) */
.status-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}

.status-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color-light);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.status-tab:hover {
  color: var(--text-color);
}

.status-tab.active {
  color: var(--brand-color);
  border-bottom-color: var(--brand-color);
}

.status-tab-count {
  display: inline-block;
  background: var(--card-border);
  color: var(--text-color);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  min-width: 22px;
  text-align: center;
}

.status-tab.active .status-tab-count {
  background: var(--brand-color);
  color: #fff;
}

@media (max-width: 600px) {
  .status-tab {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Request table → card rows */
.requests .requests-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 12px !important;
}

.requests .requests-table thead th {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--text-color-light) !important;
  border-bottom: none !important;
  padding: 8px 20px !important;
}

.requests .requests-table tbody tr,
#main-content .requests-table tbody tr {
  background: var(--card-bg) !important;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

/* Rounded hover that follows the row's first/last-td border-radius — no more sharp rectangle.
   bg-tint on each td fills the cells with rounded ends; transform gives subtle lift like mockup. */
.requests .requests-table tbody tr:hover,
#main-content .requests-table tbody tr:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.requests .requests-table tbody tr:hover td,
#main-content .requests-table tbody tr:hover td {
  background-color: rgba(255, 5, 88, 0.10) !important;
}

.requests .requests-table tbody tr:hover .striped-list-title,
#main-content .requests-table tbody tr:hover .striped-list-title,
.requests .requests-table tbody tr:hover a,
#main-content .requests-table tbody tr:hover a {
  color: var(--brand-color) !important;
}

.requests .requests-table td {
  padding: 16px 20px !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  font-size: 14px;
  background: transparent !important;
}

.requests .requests-table td:first-child {
  border-radius: 14px 0 0 14px;
}

.requests .requests-table td:last-child {
  border-radius: 0 14px 14px 0;
}

/* Request title in table — match mockup .request-item-title (16px/700) */
.requests .requests-table .striped-list-title,
.requests .requests-table a,
#main-content .requests-table .striped-list-title,
#main-content .requests-table a {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--text-color) !important;
  text-decoration: none !important;
}

.requests .requests-table a:hover,
#main-content .requests-table a:hover {
  color: var(--brand-color) !important;
}

/* Status badge pill — match mockup .status-badge (rounded pill, color-coded by status).
   Zendesk renders with .status-label-{new,open,pending,solved,closed,hold,not-planned}. */
[class*="status-label"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  border: none !important;
}

.status-label-new,
.status-label-open {
  color: #f39c12 !important;
  background: rgba(243, 156, 18, 0.14) !important;
}

.status-label-pending,
.status-label-hold {
  color: #3498db !important;
  background: rgba(52, 152, 219, 0.14) !important;
}

.status-label-solved {
  color: #27ae60 !important;
  background: rgba(39, 174, 96, 0.14) !important;
}

.status-label-closed,
.status-label-not-planned {
  color: #95a5a6 !important;
  background: rgba(149, 165, 166, 0.14) !important;
}

/* Empty state */
.requests-table-toolbar + .requests-search-info,
.requests p:only-child {
  color: var(--text-color-light) !important;
  text-align: center;
  padding: 40px 0;
}

/* === my-activities (subscriptions / contributions) + user_profile — 2026-06-05 === */

/* Top tab strip — subscriptions ↔ contributions */
.my-activities-nav {
  background-color: transparent;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 28px;
  padding: 0;
}

.my-activities-nav .collapsible-nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.my-activities-nav .collapsible-nav-list a {
  color: var(--text-color-light);
  text-decoration: none;
  font-weight: 500;
  padding: 14px 0;
  display: inline-block;
  position: relative;
  transition: color 0.2s;
}

.my-activities-nav .collapsible-nav-list a:hover {
  color: var(--text-color);
}

.my-activities-nav .collapsible-nav-list li.current a {
  color: var(--brand-color);
  font-weight: 700;
}

.my-activities-nav .collapsible-nav-list li.current a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-color);
}

/* Sub-nav (contribution filter pills: articles / posts / comments) */
.my-activities-sub-nav {
  margin-top: 14px;
  margin-bottom: 24px;
}

.my-activities-sub-nav .collapsible-nav-list {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.my-activities-sub-nav .collapsible-nav-list a {
  color: var(--text-color-light);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  display: inline-block;
  transition: all 0.2s;
}

.my-activities-sub-nav .collapsible-nav-list a:hover {
  border-color: var(--brand-color);
  color: var(--brand-color);
}

.my-activities-sub-nav .collapsible-nav-list li.current a {
  background: var(--brand-color);
  border-color: var(--brand-color);
  color: #fff;
  font-weight: 600;
}

/* Page heading */
.my-activities-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 8px;
}

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

/* Card-row table (subscriptions + contributions) */
.my-activities-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.my-activities-table thead th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-color-light);
  border-bottom: none;
  padding: 8px 18px;
  text-align: left;
  background: transparent;
}

.my-activities-table tbody tr {
  background: var(--card-bg);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.my-activities-table tbody tr:hover {
  transform: translateY(-1px);
}

.my-activities-table tbody tr:hover td {
  background-color: rgba(255, 5, 88, 0.10);
}

.my-activities-table td {
  padding: 16px 18px;
  border: none;
  font-size: 14px;
  color: var(--text-color);
  background: transparent;
  vertical-align: middle;
}

.my-activities-table td:first-child {
  border-radius: 12px 0 0 12px;
}

.my-activities-table td:last-child {
  border-radius: 0 12px 12px 0;
}

.my-activities-table .striped-list-title {
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  max-width: 100%;
}

.my-activities-table .striped-list-title:hover {
  color: var(--brand-color);
}

.subscriptions-subscribe {
  text-align: right;
}

/* Empty states (no_activities / no_activity / no_contributions / private_activity) */
.no-activities,
.profile-section .no-activity,
.profile-section .private-activity {
  display: block;
  text-align: center;
  padding: 56px 20px;
  color: var(--text-color-light);
  font-size: 15px;
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: 14px;
  margin: 24px 0;
}

.private-activity-icon {
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.7;
}

/* === user_profile === */

.profile-header {
  padding: 32px 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
}

.profile-header .profile-info {
  align-items: center;
}

.profile-avatar .user-avatar {
  border-radius: 50%;
  border: 2px solid var(--card-border);
}

.profile-header .basic-info .name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
}

.profile-header .basic-info .name a {
  color: inherit;
  text-decoration: none;
}

.profile-header .description {
  color: var(--text-color-light);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
}

.profile-private-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color-light);
  font-size: 12px;
}

/* Profile stats — card chip row */
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.profile-stats .stat {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 96px;
  text-align: center;
}

.profile-stats .stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-color-light);
  margin-bottom: 4px;
}

.profile-stats .stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
}

.profile-stats-counters .stat-value {
  color: var(--brand-color);
}

/* Profile nav (filters tabs) */
.profile-nav {
  margin: 8px 0 20px;
  border-bottom: 1px solid var(--card-border);
}

.profile-nav .collapsible-nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.profile-nav .collapsible-nav-list a {
  color: var(--text-color-light);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  display: inline-block;
  position: relative;
  transition: color 0.2s;
}

.profile-nav .collapsible-nav-list a:hover {
  color: var(--text-color);
}

.profile-nav .collapsible-nav-list li.current a {
  color: var(--brand-color);
  font-weight: 700;
}

.profile-nav .collapsible-nav-list li.current a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-color);
}

/* Profile section header */
.profile-section {
  margin: 24px 0;
}

.profile-section-header {
  margin-bottom: 16px;
}

.profile-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 4px;
}

.profile-section-description {
  color: var(--text-color-light);
  font-size: 14px;
}

/* === End my-activities + user_profile === */

/* === Search autocomplete (instant_search) dropdown styling === */
/* Zendesk renders dropdown items as custom elements with no default theme-aware styling,
   so on dark mode the title defaults to a low-contrast blue. Apply token-based styling
   to match the rest of the theme (auto-switches with [data-theme="dark"]). */

zd-autocomplete[role="listbox"] {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 6px;
  margin-top: 6px;
  font-family: inherit;
}

zd-autocomplete-multibrand[role="option"],
zd-autocomplete-result[role="option"] {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background-color 0.12s ease, border-left-color 0.12s ease;
}

zd-autocomplete-multibrand[role="option"]:hover,
zd-autocomplete-multibrand[role="option"][aria-selected="true"],
zd-autocomplete-result[role="option"]:hover,
zd-autocomplete-result[role="option"][aria-selected="true"] {
  background-color: rgba(255, 5, 88, 0.12);
  border-left-color: var(--brand-color);
}

zd-autocomplete-title-multibrand,
zd-autocomplete-title {
  display: block;
  color: var(--text-color);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 4px;
}

zd-autocomplete-title-multibrand em,
zd-autocomplete-title em {
  color: var(--brand-color);
  font-style: normal;
  font-weight: 700;
}

zd-autocomplete-breadcrumbs-multibrand[role="directory"],
zd-autocomplete-breadcrumbs[role="directory"] {
  display: block;
  color: var(--text-color-light);
  font-size: 12px;
  line-height: 1.4;
}

/* End-of-list aria-live announcer is sr-only by Zendesk; just make sure
   the empty-state container doesn't render any visible box. */
zd-autocomplete-announcement[role="listbox"] {
  background: transparent;
  border: none;
  padding: 0;
}

/* === Request page (single ticket) — 2026-06-08 === */
/* Live HBS may be older than HEAD, so .request-sidebar / .request-breadcrumbs may not exist in DOM.
   These rules style what DOES render (title + comment-list + comment-form). */

.request-title {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--text-color) !important;
  margin: 8px 0 16px !important;
  border-bottom: none !important;
  max-width: 100% !important;
  padding-bottom: 0 !important;
  line-height: 1.3 !important;
}

/* Detail page status badge hidden — list page already shows status, and the two
   pages use different label sources ("답장 대기 중" vs "응답을 기다리는 중") which
   confused users (team decision 2026-06-11). */
.status-label-request {
  display: none !important;
}

@media (max-width: 768px) {
  .request-title {
    font-size: 22px !important;
  }
}

/* Title row: H1 + status badge inline-aligned */
.request-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}

.request-title-row .request-title {
  margin: 0 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  flex: 0 1 auto;
}

/* Request container — single column when sidebar missing, 2-col when present */
.request-container {
  display: block;
  width: 100%;
}

@media (min-width: 1024px) {
  .request-container:has(.request-sidebar) {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
  }
  /* Override generic .request-sidebar width:30% (L5147) which collapses the column
     to 90px inside our 300px grid track. */
  .request-container:has(.request-sidebar) > .request-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 18px 20px !important;
  }
}

.request-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Comment list as card stack */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-list .comment {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 0;
}

.comment-list .comment-wrapper {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.comment-list .comment-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Author row: avatar + name + time */
.comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: none !important;
}

.comment-list .avatar.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 36px;
  overflow: hidden;
  background: var(--card-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comment-list .avatar.comment-avatar img.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-list .comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-color);
  font-style: normal !important;
}

.comment-list .comment-meta * {
  font-style: normal !important;
}

.comment-list .comment-meta a,
.comment-list .comment-meta span[title],
.comment-list .comment-author > span,
.comment-list .comment-author > .comment-meta {
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  font-style: normal !important;
}

.comment-list .comment-meta .meta-data,
.comment-list .comment-meta .meta-group {
  color: var(--text-color-light);
  font-size: 13px;
  font-weight: 400;
}

/* Body */
.comment-list .comment-body {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.6;
}

.comment-list .comment-body p {
  margin: 0 0 8px;
}

.comment-list .comment-body p:last-child {
  margin-bottom: 0;
}

/* Reply form — unified card, hide collapse-toggle since fields are always shown */
.comment-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 20px;
}

.comment-form .avatar.comment-avatar {
  display: none; /* author avatar above form is redundant — user knows they're posting */
}

.comment-form .comment-container {
  width: 100%;
}

/* "답변하기" collapse button — hide entirely, fields always show. Cleaner UX. */
.comment-form .comment-show-container {
  display: none !important;
}

.comment-form .comment-fields,
.request-main .comment-fields {
  display: block !important;
  padding: 0;
  background: transparent;
  border: none;
}

.comment-form .comment-fields > * + * {
  margin-top: 12px;
}

.comment-form .comment-form-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
}

/* Mobile: submit takes full row width for thumb-friendliness */
@media (max-width: 600px) {
  .comment-form .comment-form-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .comment-form input[type='submit'],
  .comment-form button[type='submit'],
  .request-submit-comment input,
  .request-submit-comment button,
  .comment-form .button-large {
    width: 100% !important;
    padding: 13px 24px !important;
    font-size: 15px !important;
  }
  .request-submit-comment {
    width: 100% !important;
  }
}

/* Submit button — primary action. Confident size on desktop, full-width on mobile. */
.comment-form input[type='submit'],
.comment-form button[type='submit'],
.request-submit-comment input,
.request-submit-comment button,
.comment-form .button-large {
  background: var(--brand-color) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 11px 32px !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  display: inline-block !important;
  visibility: visible !important;
  width: auto !important;
  min-width: 120px !important;
}

.comment-form input[type='submit']:active,
.comment-form button[type='submit']:active,
.request-submit-comment input:active,
.request-submit-comment button:active,
.comment-form .button-large:active {
  transform: translateY(1px);
}

.comment-form input[type='submit']:hover,
.comment-form button[type='submit']:hover,
.request-submit-comment input:hover,
.request-submit-comment button:hover,
.comment-form .button-large:hover {
  background: var(--brand-color-dark) !important;
}

/* Force submit container visible (HBS conditionally adds .shown class — guard against it) */
.request-submit-comment {
  display: inline-block !important;
  visibility: visible !important;
}

/* Attachments / upload-dropzone — single dashed container, not nested borders.
   `.comment-attachments` is just a wrapper (no border); `.upload-dropzone` IS the
   visual drop target with the dashed style. Also clean up the teal "파일 추가"
   link leak from stale Copenhagen Sass (`#5a6d7c`). */
.comment-form .comment-attachments {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.comment-form .upload-dropzone {
  border: 1px dashed var(--card-border) !important;
  border-radius: 10px !important;
  padding: 18px 14px !important;
  background: transparent !important;
  color: var(--text-color-light) !important;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.comment-form .upload-dropzone:hover {
  border-color: var(--brand-color) !important;
  background: rgba(255, 5, 88, 0.04) !important;
}

.comment-form .upload-dropzone * {
  color: var(--text-color-light) !important;
}

/* The clickable "파일 추가" trigger — brand-tinted, not Copenhagen teal */
.comment-form .upload-dropzone a,
.comment-form .upload-dropzone button,
.comment-form .upload-dropzone input[type="file"] + label,
.comment-form .upload-dropzone .button {
  color: var(--brand-color) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Hide the native file input + its "선택된 파일 없음" status text — the dropzone
   click area already triggers the file picker. Native UI just adds noise. */
.comment-form .upload-dropzone input[type="file"],
.comment-form .comment-attachments input[type="file"] {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Synth sidebar — when live HBS lacks .request-sidebar, JS builds one from API data.
   Pinned right column on desktop, stacked below title on mobile.
   !important on layout to override the generic .request-sidebar rule at L7973-7984
   which forces `position: sticky` and no width — without !important the synth column
   collapses to ~80px inside a flex parent. */
aside.synth-sidebar.request-sidebar,
.synth-sidebar {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  margin: 20px 0 !important;
  width: 300px !important;
  max-width: 300px !important;
  min-width: 300px !important;
  flex: 0 0 300px !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  box-sizing: border-box !important;
}

.synth-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.synth-sidebar-list {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
  font-size: 13px;
}

.synth-sidebar-list dt {
  color: var(--text-color-light);
  font-weight: 500;
  margin: 0;
}

.synth-sidebar-list dd {
  color: var(--text-color);
  margin: 0;
  word-break: keep-all;
}

.request-container {
  position: relative;
}

@media (min-width: 1024px) {
  .request-container:has(.synth-sidebar) .request-main {
    margin-right: 340px;
  }
}

@media (max-width: 1023px) {
  aside.synth-sidebar.request-sidebar,
  .synth-sidebar {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 16px 0 !important;
  }
}

/* Status badge inline with title */
[data-synth-statusbadge] {
  display: inline-block !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  vertical-align: middle !important;
  margin-left: 12px !important;
}

/* Avatar discs dropped — distinguish 나 vs 상담사 by alignment instead. */
.comment-list .avatar.comment-avatar,
.comment-list .comment-avatar {
  display: none !important;
}

/* Chat-bubble pattern: 사용자 좌측, 상담사 우측 (messenger-style).
   Note: admin이 본인 ticket을 customer 시점으로 볼 때 모든 comment author가 자기
   자신이라 우리 JS의 isAgent 매칭에 모두 hit → 모두 agent로 분류됨. 라이브 user가
   다른 계정의 ticket을 보면 자기 description은 user, 상담사 답변만 agent로 잘 분류됨. */
.comment-list .comment.comment-from-agent {
  margin-left: 12% !important;
  margin-right: 0 !important;
}

.comment-list .comment.comment-from-user {
  margin-right: 12% !important;
  margin-left: 0 !important;
}

.comment-list .comment.comment-from-agent .comment-author {
  justify-content: flex-end !important;
  flex-direction: row-reverse !important;
}

.comment-list .comment.comment-from-agent .comment-meta {
  justify-content: flex-end !important;
  text-align: right !important;
}

.comment-list .comment.comment-from-agent .comment-body {
  text-align: right !important;
}

/* Modern accent: subtle right-edge brand stripe + barely-there tint.
   No gradient — clean and contemporary (Linear/GitHub PR review style).
   Token-based so it works in both dark and light themes. */
.comment-list .comment.comment-from-agent {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-right: 3px solid var(--brand-color) !important;
  position: relative;
}

[data-theme='dark'] .comment-list .comment.comment-from-agent {
  background: rgba(255, 5, 88, 0.025) !important;
  border-color: rgba(255, 5, 88, 0.15) !important;
  border-right: 3px solid var(--brand-color) !important;
}

@media (max-width: 600px) {
  .comment-list .comment.comment-from-agent { margin-left: 0 !important; }
  .comment-list .comment.comment-from-user { margin-right: 0 !important; }
}

.comment-list .avatar.comment-avatar img.user-avatar:not([src]),
.comment-list .avatar.comment-avatar img.user-avatar[src=""],
.comment-list .avatar.comment-avatar img.user-avatar[src*="default"] {
  display: none;
}

/* Mobile adjustments — tighter padding, smaller gaps */
@media (max-width: 600px) {
  .request-title {
    font-size: 22px !important;
  }

  .comment-list .comment,
  .comment-form {
    padding: 16px;
    border-radius: 12px;
  }

  .comment-list {
    gap: 12px;
  }

  .comment-form {
    margin-top: 12px;
  }

  .comment-form .comment-form-controls {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Hide empty Zendesk decoration that creates dead vertical space.
   .request-follow-up renders the {{comment_callout}} which is often empty on customer side. */
.request-follow-up:empty {
  display: none !important;
}

/* === Reply form button area — clean hierarchy ===
   Two Zendesk standard fields:
     • `mark_as_solved` (checkbox + .mark-as-solved button proxy) → secondary outline
     • `commit` (input[type=submit]) → primary brand pill
   Mobile: stack vertical, full width. */
.comment-form-controls {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 16px !important;
  text-align: initial !important;
}

/* Hide both the mark-as-solved button AND its hidden checkbox — team decision
   2026-06-11: customers don't need to self-mark solved; the workflow ends when
   the agent marks the ticket. Submit-only form is cleaner. */
.comment-form-controls .mark-as-solved,
.comment-form-controls input[type="checkbox"]#mark_as_solved,
.comment-form-controls label[for="mark_as_solved"] {
  display: none !important;
}

/* Primary: 제출 — balanced brand pill (text:box ratio fixed).
   Without `line-height: 1.2` and `min-width: 0`, button-large's `line-height: 2.72`
   + `min-width: 190px` made the box look oversized vs the 14px text inside. */
.comment-form-controls input[type="submit"][name="commit"] {
  background: var(--brand-color) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  padding: 10px 24px !important;
  min-width: 0 !important;
  border-radius: 22px !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: background 0.15s;
}

.comment-form-controls input[type="submit"][name="commit"]:hover {
  background: var(--brand-color-dark, #d8044a) !important;
}

@media (max-width: 600px) {
  .comment-form-controls input[type="submit"][name="commit"] {
    width: 100% !important;
    padding: 12px 20px !important;
  }
}

/* Mark-as-solved checkbox area — hide if unchecked & ticket not solvable to reduce noise */
.comment-form input#mark_as_solved:not(:checked) + label:empty,
.comment-form .mark-as-solved:not([style]) {
  /* keep visible only if Zendesk explicitly enabled it; HBS gates with {{#if request.can_be_marked_as_solved}} */
}

/* === End request page === */

/* CKEditor toolbar — HIDDEN on both edit surfaces (team decision 2026-06-11).
   Customer-side input is plain text, the formatting toolbar (단락/B/I/code/link/list/image/quote)
   was visual noise. The CKEditor instance keeps running — keyboard shortcuts still work,
   we just hide the chrome. Applies in all themes (light + dark). */
:is(.comment-form, #new-request-form) :is(
  .ck.ck-editor__top,
  .ck.ck-sticky-panel,
  .ck.ck-sticky-panel__content,
  .ck.ck-toolbar
) {
  display: none !important;
}

/* CKEditor 5 — dark mode override. Applies to both edit surfaces:
   - .comment-form (reply editor on /requests/<id>)
   - #new-request-form (description editor on /requests/new)
   Zendesk's default CKEditor theme is light; override chrome AND content area. */
[data-theme='dark'] :is(.comment-form, #new-request-form) :is(
  .ck.ck-editor,
  .ck.ck-editor__main,
  .ck.ck-toolbar,
  .ck.ck-toolbar__items,
  .ck.ck-reset_all,
  .ck-content
) {
  background: var(--card-bg) !important;
  color: var(--text-color) !important;
  border-color: var(--card-border) !important;
}

/* Outer container is the ONLY visible frame. Inner layers (sticky-panel, toolbar,
   content) share the bg, so any internal 1px borders create faint stripes — kill them.
   Focus state moves to the outer frame too, so we never get the "box-in-box" look. */
[data-theme='dark'] :is(.comment-form, #new-request-form) .ck.ck-editor {
  border-radius: 10px !important;
  border: 1px solid var(--card-border) !important;
  overflow: hidden !important;
  transition: border-color 0.15s ease;
}

[data-theme='dark'] :is(.comment-form, #new-request-form) .ck.ck-editor:focus-within {
  border-color: var(--brand-color) !important;
}

[data-theme='dark'] :is(.comment-form, #new-request-form) :is(
  .ck.ck-toolbar,
  .ck.ck-sticky-panel__content,
  .ck-content,
  .ck-editor__editable_inline,
  .ck-editor__editable_inline.ck-focused,
  .ck-editor__editable_inline:focus
) {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

[data-theme='dark'] :is(.comment-form, #new-request-form) :is(
  .ck-editor__editable_inline,
  .ck-content
) {
  background: transparent !important;
  color: var(--text-color) !important;
  min-height: 140px;
}

[data-theme='dark'] :is(.comment-form, #new-request-form) :is(
  .ck.ck-button,
  .ck.ck-dropdown__button
) {
  background: transparent !important;
  color: var(--text-color) !important;
}

[data-theme='dark'] :is(.comment-form, #new-request-form) :is(
  .ck.ck-button:hover,
  .ck.ck-button.ck-on,
  .ck.ck-dropdown__button:hover
) {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-color) !important;
}

[data-theme='dark'] :is(.comment-form, #new-request-form) :is(
  .ck.ck-button .ck-button__label,
  .ck.ck-dropdown__button .ck-button__label,
  .ck.ck-icon,
  .ck.ck-button .ck-icon
) {
  color: var(--text-color) !important;
}

[data-theme='dark'] :is(.comment-form, #new-request-form) .ck.ck-toolbar .ck.ck-toolbar__separator {
  background: var(--card-border) !important;
}

[data-theme='dark'] :is(.comment-form, #new-request-form) :is(
  .ck.ck-dropdown__panel,
  .ck.ck-list,
  .ck.ck-list__item
) {
  background: var(--card-bg) !important;
  color: var(--text-color) !important;
  border-color: var(--card-border) !important;
}

[data-theme='dark'] :is(.comment-form, #new-request-form) .ck.ck-list__item :is(
  .ck-button:hover,
  .ck-button.ck-on
) {
  background: rgba(255, 5, 88, 0.16) !important;
}

[data-theme='dark'] :is(.comment-form, #new-request-form) :is(
  .ck-placeholder::before,
  .ck.ck-content .ck-placeholder::before
) {
  color: var(--text-color-light) !important;
}



/* === Requests list (React Garden table) === */

/* Hide the table's column-toggle kebab — admin convenience leaked into customer view.
   Customer doesn't need to manage which columns appear. */
[data-garden-id="tables.overflow_button"],
#main-content button[aria-label="컬럼 표시 및 숨기기"],
#main-content button[aria-label="Show and hide columns"],
#main-content button[aria-label="列の表示/非表示"] {
  display: none !important;
}

/* Garden dropdown/menu popups (Zendesk's React menus float at body root, not inside
   #main-content, so we can't scope to it). Force dark mode when document is dark. */
[data-theme='dark'] [data-garden-id="menus.menu"],
[data-theme='dark'] [data-garden-id="dropdowns.menu"],
[data-theme='dark'] [data-garden-id="menus.menu_view"] {
  background: var(--card-bg) !important;
  color: var(--text-color) !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme='dark'] [data-garden-id="menus.item"],
[data-theme='dark'] [data-garden-id="dropdowns.item"],
[data-theme='dark'] [data-garden-id^="menus."] {
  color: var(--text-color) !important;
  background: transparent !important;
}

[data-theme='dark'] [data-garden-id="menus.item"]:hover,
[data-theme='dark'] [data-garden-id="menus.item"][aria-selected="true"],
[data-theme='dark'] [data-garden-id="menus.item"].is-focused,
[data-theme='dark'] [data-garden-id="dropdowns.item"]:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-color) !important;
}

[data-theme='dark'] [data-garden-id="menus.item_meta"],
[data-theme='dark'] [data-garden-id="menus.separator"] {
  color: var(--text-color-light) !important;
  background: var(--card-border) !important;
}

/* React Garden table header — defaults to white background which becomes a glaring
   horizontal stripe across the dark-mode requests list. Force dark.
   Selectors target both the wrapping thead/tr and the Garden styled-component classes. */
#main-content table thead,
#main-content table thead tr,
#main-content table thead th,
#main-content [data-garden-id="tables.header_row"],
#main-content [data-garden-id="tables.header_cell"] {
  background: var(--card-bg) !important;
  color: var(--text-color) !important;
  border-color: var(--card-border) !important;
}

#main-content table tbody tr,
#main-content [data-garden-id="tables.row"] {
  background: transparent !important;
  border-color: var(--card-border) !important;
}

#main-content table tbody tr:hover,
#main-content [data-garden-id="tables.row"]:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

#main-content table tbody td,
#main-content [data-garden-id="tables.cell"] {
  color: var(--text-color) !important;
  border-color: var(--card-border) !important;
}

#main-content table thead th [data-garden-id="tables.sortable"] {
  color: var(--text-color) !important;
}

/* Sort chevron — Garden draws an SVG that ignores `color: currentColor`
   in some states (hover / sorted). Force fill+stroke to text-secondary so
   it never shows up as the bright teal default. */
#main-content table thead th [data-garden-id="tables.sortable"] svg,
#main-content table thead th [data-garden-id="tables.sortable"]:hover svg,
#main-content table thead th [data-garden-id="tables.sortable"][aria-sort] svg {
  color: var(--text-secondary, #999) !important;
  fill: var(--text-secondary, #999) !important;
}

#main-content table thead th [data-garden-id="tables.sortable"] svg path,
#main-content table thead th [data-garden-id="tables.sortable"] svg polygon {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Kill Garden's hover tooltip popper. The "상태" tooltip on the status sort
   header is redundant (the column label is already "상태") and visually noisy. */
[data-garden-id="tooltip.tooltip"],
[data-garden-id="tooltips.tooltip"],
[role="tooltip"]:not(.tippy-content):not(.modal-tooltip) {
  display: none !important;
}

/* === Requests list — aesthetic cleanup === */

/* Tabs sit a bit above the card list — gives the brand-pink underline of the
   active tab room to breathe before the first row card starts. */
.status-tabs {
  margin-bottom: 20px !important;
}

#main-content > * {
  margin-top: 0 !important;
}

/* React renders an empty counter strip ("X개의 문의" / page navigator) on the
   requests-list page. Squash its wrapper. Scope to :not(.form) so this doesn't
   eat the new-request page's <div id="new-request-form"> (its parent main has class form). */
#main-content:not(.form) > div:has(> form),
#main-content:not(.form) > div:empty {
  display: none !important;
}

/* Table header (thead) — hidden entirely.
   Each row is visually self-explanatory (title + date + status pill), the column
   labels added noise without helping users skim the list. */
#main-content table thead {
  display: none !important;
}

/* Card-per-row pattern: tr = flex card, td = its child. This avoids the 1px
   misalignment that per-td borders produced at the rounded corners, and adapts
   to mobile by flipping flex-direction (no separate display:block table reset). */
#main-content table,
#main-content [data-garden-id="tables.table"] {
  display: block !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  margin-top: 8px !important;
  width: 100% !important;
}

#main-content table tbody {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

#main-content table tbody tr,
#main-content [data-garden-id="tables.row"] {
  display: flex !important;
  align-items: flex-start !important;       /* title row aligns with status pill */
  gap: 12px !important;
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background 0.15s, border-color 0.15s !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

#main-content table tbody tr:hover,
#main-content [data-garden-id="tables.row"]:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* td as flex child — no chrome of its own. */
#main-content table tbody td {
  display: block !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: none !important;
}

/* Subject takes the remaining horizontal space; min-width:0 lets ellipsis kick in. */
#main-content table tbody td[data-test-id="table-cell-subject"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 !important;          /* hard-reset against any other tbody td rule */
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Date column hidden — its info now lives inside subject as a meta line
   ("N시간 전 업데이트") so each row reads top-to-bottom: title → meta → preview. */
#main-content table tbody td[data-test-id="table-cell-created_at"] {
  display: none !important;
}

/* Status pill: JS moves the status td into .synth-title-row inside the subject td,
   so it sits next to the title (no left-side dead space). margin-left:auto pushes
   it to the right end of the title row; if the title wraps long, the pill wraps too. */
.synth-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-bottom: 2px !important;
  width: 100% !important;
}

.synth-title-row > a {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: inline-block !important;
  margin-bottom: 0 !important;
}

/* Status pill in title row — push to right end of title row, no ellipsis,
   AND collapse the td/wrappers to the pill's actual width. Without fit-content
   the td reserves ~32px of empty space on its inside-right edge (Garden default
   typography.ellipsis sizing), which reads as "휑한 빈공간". */
#main-content table tbody td[data-test-id="table-cell-status"] {
  margin-left: auto !important;
  flex: 0 0 auto !important;
  width: fit-content !important;
  max-width: none !important;
  padding: 0 !important;
}

/* Wrappers AROUND the pill (typography.ellipsis spans etc.) collapse to fit. */
#main-content table tbody td[data-test-id="table-cell-status"] > *,
#main-content table tbody td[data-test-id="table-cell-status"] [data-garden-id="typography.ellipsis"] {
  width: fit-content !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* The pill itself: explicit 24px height + 14px horiz padding so the text never
   touches the rounded end caps. Without this the 22px height + 12px padding
   left only 1px of clearance from the capsule curve (text "중" visibly grazed
   the corner). overflow: hidden keeps any descender inside the rounded shape. */
#main-content table tbody td[data-test-id="table-cell-status"] [data-garden-id="tags.tag_view"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-width: 0 !important;
  height: 24px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;     /* exactly height/2 → clean capsule */
  overflow: hidden !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

#main-content table thead th,
#main-content [data-garden-id="tables.header_cell"] {
  padding: 14px 16px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.3px !important;
}

/* (removed legacy `td { padding: 14px 16px }` — was overriding our new row-card
   pattern where padding lives on the tr and tds are zero-padding flex children) */

/* React table's pink "등록" tag clashes with the 문의 등록 primary button.
   Recolor Garden tags by status group via JS-set class (see script.js). */
#main-content [data-garden-id="tags.tag_view"][data-status-group="ongoing"] {
  background: rgba(243, 156, 18, 0.18) !important;
  color: #f39c12 !important;
  border-color: transparent !important;
}

#main-content [data-garden-id="tags.tag_view"][data-status-group="solved"] {
  background: rgba(39, 174, 96, 0.18) !important;
  color: #27ae60 !important;
  border-color: transparent !important;
}

#main-content [data-garden-id="tags.tag_view"][data-status-group="closed"] {
  background: rgba(127, 140, 141, 0.20) !important;
  color: #95a5a6 !important;
  border-color: transparent !important;
}

/* === Requests list — column widths, link color, badge shape === */

/* Title column should dominate, date/status narrow. React Garden auto-sizes
   each column to its content — explicit widths give title the real estate. */
#main-content table {
  table-layout: fixed !important;
  width: 100% !important;
}

/* Header TH uses data-test-id="header-cell-*"; body TD uses data-test-id="table-cell-*".
   Sortable cells (created_at/updated_at/status) have neither on the TH — match by
   the inner button's test-id via :has(). */
#main-content table th[data-test-id="header-cell-subject"],
#main-content table td[data-test-id="table-cell-subject"] {
  width: 62% !important;
}

/* Ticket ID column — fully hidden (users don't navigate by id). */
#main-content table th[data-test-id="header-cell-id"],
#main-content table td[data-test-id="table-cell-id"] {
  display: none !important;
}

/* Subject cell: bold title link + multi-line layout to fit synth preview. */
#main-content table td[data-test-id="table-cell-subject"] {
  vertical-align: top !important;
  padding: 16px 18px !important;
}

#main-content table td[data-test-id="table-cell-subject"] a {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--text-color) !important;
  text-decoration: none !important;
  display: block !important;
  margin-bottom: 4px !important;
  line-height: 1.4 !important;
}

#main-content table td[data-test-id="table-cell-subject"] a:hover {
  color: var(--brand-color) !important;
}

/* Synth meta line — "N시간 전 업데이트", injected by JS between title and preview. */
.synth-meta-row {
  font-size: 12px !important;
  color: var(--text-color-light) !important;
  margin: 0 0 4px !important;
  line-height: 1.4 !important;
}

.synth-meta-row:empty {
  display: none !important;
}

/* Synth preview — first comment/body text injected by JS. 2-line clamp keeps
   row height consistent regardless of how long the body is. */
.synth-request-preview {
  font-size: 13px !important;
  color: var(--text-secondary, #999) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
}

.synth-request-preview:empty {
  display: none !important;
}

#main-content table th:has(button[data-test-id="sortable-cell-created_at"]),
#main-content table td[data-test-id="table-cell-created_at"],
#main-content table th:has(button[data-test-id="sortable-cell-updated_at"]),
#main-content table td[data-test-id="table-cell-updated_at"] {
  width: 14% !important;
}

#main-content table th:has(button[data-test-id="sortable-cell-status"]),
#main-content table td[data-test-id="table-cell-status"] {
  width: 14% !important;
}

/* Kebab column: hide the button (already) AND its containing TH so no phantom column. */
#main-content table th:has(> [data-garden-id="tables.overflow_button"]),
#main-content table td:has(> [data-garden-id="tables.overflow_button"]) {
  display: none !important;
}

/* Title cell: stop truncating to ellipsis prematurely — let it use the room we
   just gave it. The Garden ellipsis component clips at parent width; let the
   subject anchor take it instead. */
#main-content table [data-test-id="table-cell-subject"] [data-garden-id="typography.ellipsis"] {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

/* Visited-link purple is the browser default — overrides our brand. Force the title
   anchor to stay brand-pink whether visited or not. */
#main-content table a,
#main-content table a:visited,
#main-content table a:link {
  color: var(--brand-color) !important;
}

#main-content table a:hover {
  color: var(--brand-color-dark, var(--brand-color)) !important;
  text-decoration: underline !important;
}

/* Status tag as a real pill — match tab-count pill scale.
   Garden's StyledTag is already rounded but a bit chunky; tighten + make uppercase. */
#main-content [data-garden-id="tags.tag_view"] {
  padding: 4px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  min-height: 22px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* === Requests list — column simplification === */

/* Drop ID and 마지막 활동 — admin-centric data, not useful at a glance for customers.
   Keep 제목 / 접수일 / 상태 only. */
#main-content table th[data-test-id="header-cell-id"],
#main-content table td[data-test-id="table-cell-id"],
#main-content table th:has(button[data-test-id="sortable-cell-updated_at"]),
#main-content table td[data-test-id="table-cell-updated_at"] {
  display: none !important;
}

/* 3 columns. Status gets enough room for "내 답변 필요" pill without ellipsis. */
#main-content table th[data-test-id="header-cell-subject"],
#main-content table td[data-test-id="table-cell-subject"] {
  width: 60% !important;
}

#main-content table th:has(button[data-test-id="sortable-cell-created_at"]),
#main-content table td[data-test-id="table-cell-created_at"] {
  width: 18% !important;
}

#main-content table th:has(button[data-test-id="sortable-cell-status"]),
#main-content table td[data-test-id="table-cell-status"] {
  width: 22% !important;
}

/* Link color — white default (blends with surrounding text), brand on hover,
   muted on visited so user can see what they've already read.
   Reverses the earlier brand-pink rule. */
#main-content table a,
#main-content table a:link {
  color: var(--text-color) !important;
  text-decoration: none !important;
}

#main-content table a:hover {
  color: var(--brand-color) !important;
  text-decoration: underline !important;
}

#main-content table a:visited {
  color: var(--text-color-light) !important;
}

/* Mobile: same row-card pattern, just flipped to vertical stack via flex-direction.
   No display:block reset — the new desktop pattern is already block-friendly. */
@media (max-width: 600px) {
  #main-content table tbody tr,
  #main-content [data-garden-id="tables.row"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 14px 18px !important;
  }

  /* Subject takes full width */
  #main-content table tbody td[data-test-id="table-cell-subject"] {
    width: 100% !important;
  }

  /* Date row — small, muted, sits under subject */
  #main-content table tbody td[data-test-id="table-cell-created_at"] {
    font-size: 12px !important;
    color: var(--text-color-light) !important;
  }

  /* Status pill — drop the right-anchor so it stacks naturally */
  #main-content table tbody td[data-test-id="table-cell-status"] {
    margin-left: 0 !important;
  }

  /* Hide phantom TDs (kebab placeholder, empty wrappers). */
  #main-content table tbody td:not([data-test-id]),
  #main-content table tbody td:empty {
    display: none !important;
  }

  /* Hide Garden tooltip duplicates that otherwise bleed into the card. */
  #main-content table tbody td [aria-hidden="true"]:has([role="tooltip"]),
  #main-content table tbody td [role="tooltip"] {
    display: none !important;
  }

  /* Title wraps to multiple lines on mobile */
  #main-content table td[data-test-id="table-cell-subject"] [data-garden-id="typography.ellipsis"],
  #main-content table td[data-test-id="table-cell-subject"] a {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Date/status inner ellipsis containers — unconstrain. */
  #main-content table td[data-test-id="table-cell-created_at"] [data-garden-id="typography.ellipsis"],
  #main-content table td[data-test-id="table-cell-status"] [data-garden-id="typography.ellipsis"],
  #main-content table td[data-test-id="table-cell-status"] [data-garden-id="tags.tag_view"] {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
    width: auto !important;
  }
}

/* === Request page — editor text color, toolbar border, hide ticket sidebar === */

/* CKEditor renders <p> with inherited dark color (#000) which is invisible on our
   dark editor bg. Force inherit of the editable's color through all descendants.
   Applies to both the reply editor (.comment-form) on /requests/<id> and the
   description editor (#new-request-form) on /requests/new. */
[data-theme='dark'] .comment-form .ck-content,
[data-theme='dark'] .comment-form .ck-content *,
[data-theme='dark'] .comment-form [contenteditable="true"],
[data-theme='dark'] .comment-form [contenteditable="true"] *,
[data-theme='dark'] #new-request-form .ck-content,
[data-theme='dark'] #new-request-form .ck-content *,
[data-theme='dark'] #new-request-form [contenteditable="true"],
[data-theme='dark'] #new-request-form [contenteditable="true"] * {
  color: var(--text-color) !important;
}

/* (The .ck-sticky-panel__content top border is now zeroed in the consolidated
   CKEditor block above — no separate override needed.) */

/* Hide the ticket detail sidebar entirely on customer request page —
   metadata is admin-centric (priority, custom fields, assigned agent etc.)
   that customers don't need. Covers both native HBS sidebar and our synth. */
.request-container .request-sidebar,
.request-container .collapsible-sidebar,
[data-synth-sidebar] {
  display: none !important;
}

/* With no sidebar, main column should reclaim the full width. */
@media (min-width: 1024px) {
  .request-container:has(.request-sidebar) {
    display: block !important;
  }
  .request-container .request-main {
    margin-right: 0 !important;
    width: 100% !important;
  }
}

/* Dropzone clickability — Zendesk renders cursor:auto so the "파일 추가" link
   looks like plain text. Make the whole zone (and the inner link) read as clickable. */
.upload-dropzone,
.upload-dropzone span,
.upload-dropzone a {
  cursor: pointer !important;
}

.upload-dropzone a {
  color: var(--brand-color) !important;
  text-decoration: underline !important;
}


/* === i18n lang gate — ko 카피는 하드코딩, 타 로케일은 dc (2026-07-26) ===
   페이지 템플릿엔 current_locale 객체가 없어 hbs 분기 불가 → html[lang] 기반 CSS 게이트.
   .loc-ko = 한국어에서만 표시 / .loc-other = 한국어가 아닐 때만 표시 */
html:not([lang^="ko"]) .loc-ko { display: none !important; }
html[lang^="ko"] .loc-other { display: none !important; }

/* === Article body card accordion (2026-07-27) ===
   Hub 아티클(계정 찾기) 등 <details> 카드 패턴 공용 스타일.
   본문 HTML은 시맨틱 유지 — 넘버 배지는 summary 안 .card-num 스팬. */
.article-body details {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background-color: var(--card-bg);
  margin: 12px 0;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.article-body details:hover {
  border-color: #555;
}

.article-body details summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.article-body details summary::-webkit-details-marker {
  display: none;
}

.article-body details summary:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: -2px;
  border-radius: 12px;
}

/* chevron */
.article-body details summary::after {
  content: '';
  flex: none;
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0.45;
  transition: transform 0.2s ease;
}

.article-body details[open] summary::after {
  transform: rotate(225deg) translate(-3px, -1px);
}

.article-body details[open] summary {
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 16px;
}

/* number badge inside summary */
.article-body .card-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255, 5, 88, 0.10);
  color: var(--brand-color);
  font-size: 13px;
  font-weight: 700;
}

/* card inner content */
.article-body details > *:not(summary) {
  margin-left: 20px;
  margin-right: 20px;
}

.article-body details > ol,
.article-body details > ul {
  margin-left: 20px;
  margin-right: 20px;
  padding-left: 22px;
}

.article-body details > *:last-child:not(summary) {
  margin-bottom: 20px;
}

/* 상황/단계 소제목 — 카드 제목(16) > 소제목(15, 브랜드) > 본문(15) > 부속 설명(14, 회색) 위계 */
.article-body details h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--brand-color);
  margin-top: 26px;
  margin-bottom: 10px;
}

.article-body details h4:first-of-type {
  margin-top: 4px;
}

/* 예시·기기별 절차 등 부속 블록 — 회색조 + 좌측 라인으로 본문과 분리 */
.article-body details .note-block {
  margin: 10px 20px 18px;
  padding: 12px 16px;
  border-left: 2px solid var(--card-border);
  color: var(--text-color-light);
  font-size: 14px;
  line-height: 1.65;
}

.article-body details .note-block p,
.article-body details .note-block li {
  color: inherit;
  font-size: inherit;
}

.article-body details .note-block p {
  margin: 0 0 6px;
}

.article-body details .note-block > *:last-child {
  margin-bottom: 0;
}

.article-body details .note-block ol {
  margin: 2px 0 12px;
  padding-left: 20px;
}

.article-body details .note-block .device-name {
  font-weight: 600;
  color: var(--text-color);
  margin: 12px 0 4px;
}

.article-body details .note-block .device-name:first-child {
  margin-top: 0;
}

/* 안내 이미지 — 원본이 크므로 축소 + 본문 좌측 라인에 맞춰 정렬 */
.article-body details img,
.article-body details img.guide-img {
  display: block;
  max-width: 380px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  margin: 6px 0 4px;
}

/* 다크모드 — .article-body 전역 색 규칙(!important)이 카드 위계 색을 전부 덮으므로 되돌림.
   넘버 배지는 낮은 알파의 핑크가 어두운 배경에서 자주색으로 탁해져 채도·명도 보정 */
[data-theme='dark'] .article-body .card-num {
  background-color: rgba(255, 5, 88, 0.20);
  color: #FF6B96 !important;
}

[data-theme='dark'] .article-body details h4 {
  color: var(--brand-color) !important;
}

[data-theme='dark'] .article-body details .note-block,
[data-theme='dark'] .article-body details .note-block p,
[data-theme='dark'] .article-body details .note-block li {
  color: var(--text-color-light) !important;
}

[data-theme='dark'] .article-body details .note-block .device-name,
[data-theme='dark'] .article-body details .note-block strong {
  color: var(--text-color) !important;
}

[data-theme='light'] .article-body details:hover {
  border-color: #C2C8CC;
}

/* === Article layout: 1023px 이하 폭 낭비 수정 + 사이드바 유지 구간 확대 (2026-08-02) ===
   `.article-container { align-items: flex-start }`는 row 모드(사이드바 상단 정렬)용인데
   세로 스택에서도 적용돼 본문이 내용 폭(≈457px)으로 쪼그라들고 우측이 통째로 비었음.
   ① 스택 모드에선 stretch로 폭을 다 쓰고 ② 사이드바 유지 구간을 1024 → 900px로 낮춤 */
.article-container {
  align-items: stretch;
}

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

/* 스택 모드에선 관련 문서 박스도 폭을 다 쓰도록 (280px 고정 basis 해제) + sticky 해제 */
@media (max-width: 899px) {
  .article-relatives-sidebar {
    flex: 1 1 auto;
    width: 100%;
    position: static;
  }
}

/* === 다크모드 투표 버튼 색 충돌 정리 (2026-08-02) ===
   `[data-theme='dark'] .button.article-vote`(중립, 0,0,3,0)가 나중에 선언된 핑크 규칙(0,0,2,0)을
   특이도로 눌러서 라이트=핑크 / 다크=회색으로 갈리고 있었음 → 라이트와 동일하게 브랜드 아웃라인으로 통일 */
[data-theme='dark'] .button.article-vote,
[data-theme='dark'] .article-vote {
  background: transparent !important;
  color: var(--brand-color) !important;
  border-color: var(--brand-color) !important;
}

[data-theme='dark'] .button.article-vote:hover,
[data-theme='dark'] .article-vote:hover {
  background: var(--brand-color) !important;
  color: #fff !important;
  border-color: var(--brand-color) !important;
}

/* === 아티클 푸터 타이포·pill 정합 (2026-08-03) ===
   ① 투표 pill을 살짝 축소하고 ② 문의 등록 버튼을 같은 치수로 맞춤
   ③ 두 질문("도움이 되었나요?" 18/600 진하게 vs "더 궁금한 점이 있나요?" 14/400 muted)의
      낙차가 커서 16/600 vs 15/500(70% 톤)으로 좁힘 */
.article-votes-question {
  font-size: 16px !important;
}

.article-vote {
  padding: 5px 16px !important;
  border-radius: 18px !important;
  min-width: 74px !important;
}

.article-more-questions-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 12px;
}

.article-more-questions a.article-more-questions-link,
.article-more-questions a.article-more-questions-link:visited {
  padding: 5px 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* === 푸터 두 블록 구조 통일 (2026-08-03) ===
   라이브 테마처럼 "질문 아래 버튼" 세로 배치로 통일 — 투표만 가로(질문 옆 버튼)라
   아래 콜아웃(질문 위 / 버튼 아래)과 구조가 어긋나 어색하게 보였음.
   + 문의 등록 버튼은 색이 없어 투표 pill보다 작아 보이므로 테두리 두께·톤을 올려 시각 무게를 맞춤 */
.article-votes {
  flex-direction: column !important;
  gap: 12px !important;
}

.article-more-questions a.article-more-questions-link,
.article-more-questions a.article-more-questions-link:visited {
  padding: 5px 18px;
  border-width: 1.5px;
  border-color: #C6CBD0;
}

[data-theme='dark'] .article-more-questions a.article-more-questions-link,
[data-theme='dark'] .article-more-questions a.article-more-questions-link:visited {
  border-color: rgba(255, 255, 255, 0.34);
}

/* 두 블록이 균일 간격이면 4줄이 한 덩어리로 뭉쳐 보임 → 블록 사이만 벌려 각각 한 단위로 읽히게 */
.article-votes {
  padding-bottom: 34px !important;
}

/* 상태별 색 구분 (2026-08-04) — group 3종만 쓰면 진행 중 계열(등록·답장 대기 중·보류)이
   모두 같은 색이라 구분이 안 됨. data-status-key로 상태별 의미색 부여:
   접수(등록)=중립 블루 / 답장 대기 중=주의 앰버 / 보류=회색 / 해결=그린 / 종료=연회색 */
#main-content [data-garden-id="tags.tag_view"][data-status-key="new"],
#main-content [data-garden-id="tags.tag_view"][data-status-key="open"] {
  background: rgba(52, 120, 246, 0.14) !important;
  color: #2f6fd0 !important;
}

#main-content [data-garden-id="tags.tag_view"][data-status-key="pending"] {
  background: rgba(243, 156, 18, 0.18) !important;
  color: #d98806 !important;
}

/* hold(어드민 표기 "대기")는 내부 보류일 뿐 유저에겐 "접수완료"로 보이므로 new/open과 같은 색.
   pending(어드민 표기 "보류")만 "회원님의 답변이 필요해요" = 주의색 */
#main-content [data-garden-id="tags.tag_view"][data-status-key="hold"] {
  background: rgba(52, 120, 246, 0.14) !important;
  color: #2f6fd0 !important;
}

/* closed도 solved와 같은 색 — 젠데스크가 최종 사용자에게 closed를 "해결"로 표시하므로
   (라벨은 3종: 등록 / 답장 대기 중 / 해결) 색도 라벨 의미에 맞춤 */
#main-content [data-garden-id="tags.tag_view"][data-status-key="solved"],
#main-content [data-garden-id="tags.tag_view"][data-status-key="closed"] {
  background: rgba(39, 174, 96, 0.18) !important;
  color: #1e9150 !important;
}

[data-theme='dark'] #main-content [data-garden-id="tags.tag_view"][data-status-key="new"],
[data-theme='dark'] #main-content [data-garden-id="tags.tag_view"][data-status-key="open"],
[data-theme='dark'] #main-content [data-garden-id="tags.tag_view"][data-status-key="hold"] {
  color: #7EA9F5 !important;
}

[data-theme='dark'] #main-content [data-garden-id="tags.tag_view"][data-status-key="pending"] {
  color: #F2B34B !important;
}

[data-theme='dark'] #main-content [data-garden-id="tags.tag_view"][data-status-key="solved"],
[data-theme='dark'] #main-content [data-garden-id="tags.tag_view"][data-status-key="closed"] {
  color: #4FC77F !important;
}

/* === 문의 내역 행 카드: 라이트 테마 경계 보강 (2026-08-05) ===
   --card-border(#E9EBED)가 흰 배경 위에서 거의 안 보여 카드 단위 구분이 안 됨(다크는 #333으로 잘 보임).
   라이트에서만 테두리를 진하게 + 아주 옅은 그림자로 카드감 부여. hover도 라이트용 회색 톤으로 교정
   (기존 hover는 rgba(255,255,255,.04)라 라이트에선 변화가 보이지 않았음) */
[data-theme='light'] #main-content table tbody tr,
[data-theme='light'] #main-content [data-garden-id="tables.row"] {
  border-color: #DDE1E4 !important;
  box-shadow: 0 1px 2px rgba(23, 28, 33, 0.05) !important;
}

[data-theme='light'] #main-content table tbody tr:hover,
[data-theme='light'] #main-content [data-garden-id="tables.row"]:hover {
  background: #FAFBFC !important;
  border-color: #C4CACE !important;
  box-shadow: 0 2px 6px rgba(23, 28, 33, 0.08) !important;
}

/* 문의 내역 안내 문구(dc, <br> 포함) — 줄간격 정돈 */
.my-activities-header .page-subtitle {
  line-height: 1.6;
  color: var(--text-color-light);
}

/* === 한국어 줄바꿈 + 모바일 타이포 (2026-08-05, 라이브 피드백) ===
   ① 한국어는 word-break 기본값(normal)에서 글자 단위로 끊겨 "무엇을 도와드릴까 / 요?",
      "선택해 보 / 세요"처럼 어절이 쪼개짐 → keep-all로 어절(공백) 단위 줄바꿈.
      ⚠️ 일본어는 공백이 없어 keep-all이면 넘칠 수 있으므로 한국어에만 적용(html[lang^="ko"]).
   ② 모바일에서 히어로 48px는 과해 두 줄이 되므로 축소 — 한 줄에 들어오게. */
html[lang^="ko"] .hero-title,
html[lang^="ko"] .hero-subtitle,
html[lang^="ko"] .blocks-item-title,
html[lang^="ko"] .blocks-item-description,
html[lang^="ko"] .section-link-item a,
html[lang^="ko"] .quick-link-btn {
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 34px;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 15px;
  }
}

/* ③ 카테고리 카드의 섹션 링크 축소 — 19px는 카드 제목(25px)과 너무 붙어 보임.
   위계 제약(카드 제목 25 > 섹션 링크 > 써머리 14)을 지키는 최소값으로 15px.
   (요청은 "현재의 70%"였으나 13.3px는 써머리보다 작아져 위계가 뒤집힘) */
.section-link-item a {
  font-size: 15px;
}

/* 히어로 부제 색 — 기존 var(--link-color)는 아래 빠른 접근 버튼과 색·크기가 같아
   클릭 가능한 요소로 오인됨(라이브 피드백 2026-08-05) → 회색조로 낮춰 제목(검정)과 버튼(링크색) 사이에 둠 */
.hero-subtitle {
  color: var(--text-color-light);
}

/* === 프로필 드롭다운이 sticky 검색바에 가려지는 문제 (2026-08-05 라이브 이슈) ===
   실측 구조: 헤더 = position:sticky, z-index:100 (스크롤 시 top:0 고정)
             검색바 = position:fixed, top:70px(헤더 아래), z-index:1000
   헤더가 sticky+z-index로 **자기 스택 컨텍스트를 만들기 때문에**, 그 안의 드롭다운 z-index를
   얼마로 올려도 헤더 전체가 100으로 묶여 검색바(1000)에 가려짐 → 헤더 자체를 검색바 위로 올림.
   (헤더 0~70px, 검색바 70~153px로 영역이 겹치지 않아 헤더를 올려도 가리는 것 없음) */
.header {
  z-index: 1100;
}

.header-profile-dropdown {
  z-index: 1101;
}

.header-profile-menu {
  z-index: 1102;
}
