/* Quiet fields retain native validation and keyboard operation. */
body :is(input, textarea, select):is(:focus, :focus-visible) {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}
.tarh-article-page {
  padding-block-start: var(--tarh-article-top-gap, 56px);
}
.tarh-article-content {
  margin-block-start: 32px;
}
.tarh-article-page.has-heading-lines .tarh-article-content h2 {
  width: fit-content;
  max-width: 100%;
  padding-block-end: 12px;
  border-bottom: 2px solid var(--tarh-primary);
  margin-block: 36px 20px;
}
.tarh-auth-site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px auto 24px;
  text-align: center;
}
.tarh-auth-site-logo img {
  display: block;
  width: auto;
  max-width: min(180px, 100%);
  height: auto;
  max-height: 60px;
  object-fit: contain;
}
.tarh-auth-site-logo strong {
  font-size: 26px;
}
#tarh-auth-dialog
  :is(#tarh-auth-title, #tarh-auth-subtitle, .tarh-auth-footer) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
  padding: 0;
}
.tarh-comment-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--tarh-line);
  border-radius: 20px;
  padding: 22px;
  background: #fff;
  color: var(--tarh-text);
}
.tarh-comment-dialog::backdrop {
  background: #1c273b80;
}
.tarh-comment-dialog [hidden] {
  display: none !important;
}
.tarh-comment-dialog .tarh-drawer-top {
  padding: 0 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--tarh-line);
}
.tarh-comment-context {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f5f6fa;
  font-size: 13px;
}
.tarh-comment-context img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}
.tarh-comment-form {
  font-size: 13px;
}
.tarh-comment-form > label,
.tarh-comment-identity label {
  display: block;
  font-weight: 700;
  margin: 18px 0 8px;
}
.tarh-comment-form
  :is(input:not([type="radio"]):not([type="hidden"]), textarea) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #e0e5ef;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  font: inherit;
  color: inherit;
}
.tarh-comment-form textarea {
  resize: vertical;
  min-height: 110px;
}
.tarh-comment-form fieldset {
  border: 0;
  padding: 0;
  margin: 18px 0;
  min-width: 0;
}
.tarh-comment-form legend {
  font-weight: 700;
  margin-bottom: 10px;
}
.tarh-comment-rating > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.tarh-comment-rating label {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  padding: 8px 2px;
  border: 1px solid #e0e5ef;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}
.tarh-comment-rating input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--tarh-primary);
}
.tarh-comment-rating label:has(input:checked),
.tarh-comment-recommend label:has(input:checked) {
  border-color: var(--tarh-primary);
  background: #f4f9ee;
}
.tarh-comment-rating label > span {
  font-size: 25px;
}
.tarh-comment-rating small {
  font-size: 10px;
}
.tarh-comment-recommend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tarh-comment-recommend legend {
  width: 100%;
}
.tarh-comment-recommend label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 12px;
  border: 1px solid #e0e5ef;
  border-radius: 12px;
}
.tarh-comment-points {
  margin-top: 20px;
}
.tarh-comment-points > strong {
  display: block;
  margin-bottom: 8px;
}
.tarh-comment-points > div {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.tarh-comment-points button {
  flex: 0 0 42px;
  border: 1px solid var(--tarh-primary);
  border-radius: 10px;
  background: #fff;
  color: var(--tarh-secondary);
  cursor: pointer;
  font-size: 20px;
}
.tarh-comment-trap {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.tarh-comment-status {
  color: #b42318;
  min-height: 20px;
  margin-block: 12px;
}
.tarh-comment-success {
  padding: 24px 4px;
  line-height: 2;
  color: var(--tarh-secondary);
}
.tarh-comments {
  margin-block: 40px;
}
.tarh-comments-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.tarh-comments-head h2 {
  font-size: 22px;
  margin: 0;
}
.tarh-comments-head h2 span {
  font-size: 13px;
  color: var(--tarh-muted);
}
.tarh-comment-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.tarh-comment-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--tarh-line);
}
.tarh-comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.tarh-comment-meta time,
.tarh-comment-verified {
  font-size: 11px;
  color: var(--tarh-muted);
}
.tarh-comment-text {
  line-height: 2;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.tarh-comment-reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--tarh-secondary);
  font: inherit;
  font-size: 12px;
  padding: 6px 0;
  cursor: pointer;
}
.tarh-comment-reply svg {
  width: 16px;
  height: 16px;
}
.tarh-review-points {
  margin-top: 12px;
  font-size: 12px;
}
.tarh-review-points ul {
  margin: 4px 0 0;
  padding-inline-start: 18px;
}
.tarh-review-points.is-pros strong {
  color: #527d26;
}
.tarh-review-points.is-cons strong {
  color: #b42318;
}
.tarh-comment-loader {
  display: inline-flex;
  gap: 4px;
}
.tarh-comment-loader i {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  animation: tarh-auth-pulse 1s infinite;
}
.tarh-comment-loader i:nth-child(2) {
  animation-delay: 0.15s;
}
.tarh-comment-loader i:nth-child(3) {
  animation-delay: 0.3s;
}
@media (max-width: 600px) {
  .tarh-comment-dialog {
    padding: 18px;
  }
  .tarh-article-page {
    padding-block-start: max(
      24px,
      calc(var(--tarh-article-top-gap, 56px) * 0.7)
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  .tarh-comment-loader i {
    animation: none;
  }
}

.tarh-comment-rating label > span .tarh-icon {
  width: 28px;
  height: 28px;
}
#tarh-auth-message:empty {
  display: none;
}
.tarh-auth-tools:has([data-auth-back][hidden]):has([data-auth-resend][hidden]) {
  display: none;
}
.tarh-comment-recommendation {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tarh-secondary);
  font-size: 12px;
}
.tarh-comment-recommendation .tarh-icon {
  width: 16px;
  height: 16px;
}
