:root {
  --ht-navy: #071437;
  --ht-blue: #075cff;
  --ht-blue-2: #0055ff;
  --ht-muted: #71809f;
  --ht-line: #d9e3f3;
  --ht-soft: #f5f9ff;
  --ht-white: #ffffff;
  --ht-shadow: 0 12px 34px rgba(7, 20, 55, 0.08);
}

.ht-author-page,
.ht-author-page * { box-sizing: border-box; }

.ht-author-page {
  background: #fff;
  color: var(--ht-navy);
  font-family: inherit;
  padding: 24px 0 56px;
	margin-top: 103px !important;
}

.ht-author-shell {
  width: min(100% - 32px, 1540px);
  margin: 0 auto;
}

.ht-author-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 390px;
  gap: 42px;
  align-items: center;
  min-height: 360px;
  padding: 46px 56px;
  border: 1px solid #cedcf0;
  border-radius: 13px;
  background:
    radial-gradient(circle at 18% 15%, rgba(68, 135, 255, .10), transparent 31%),
    linear-gradient(112deg, #f6faff 0%, #fff 68%, #f8fbff 100%);
  box-shadow: 0 1px 2px rgba(6, 23, 64, .02);
}

.ht-author-decoration { pointer-events: none; position: absolute; }
.ht-author-decoration-dots {
  left: 30px; top: 30px; width: 120px; height: 74px; opacity: .45;
  background-image: radial-gradient(circle, #8bb8ff 1.7px, transparent 1.8px);
  background-size: 15px 15px;
}
.ht-author-decoration-waves {
  left: -28px; bottom: -56px; width: 450px; height: 240px; opacity: .42;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at 0 100%, transparent 0 10px, rgba(69,132,255,.20) 11px 12px, transparent 13px 20px);
  transform: rotate(8deg);
}

.ht-author-avatar-col { position: relative; z-index: 2; display: flex; justify-content: center; }
.ht-author-avatar-wrap { position: relative; width: 245px; height: 245px; }
.ht-author-avatar {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: 0 6px 22px rgba(12, 34, 84, .13);
  background: #eef4ff;
}
.ht-author-pencil {
	display: none !important;
  position: absolute; right: -17px; top: 16px;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ht-blue); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 9px 18px rgba(0, 85, 255, .25);
}
.ht-author-pencil svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.ht-author-main-col { position: relative; z-index: 2; min-width: 0; }
.ht-author-kicker { display: block; color: var(--ht-blue); font-weight: 800; font-size: 14px; line-height: 1; margin-bottom: 10px; }
.ht-author-main-col h1 { margin: 0; font-size: clamp(34px, 3vw, 46px); line-height: 1.08; letter-spacing: -1.5px; color: var(--ht-navy); }
.ht-title-rule { display: block; width: 46px; height: 4px; margin-top: 15px; border-radius: 5px; background: var(--ht-blue); }
.ht-author-bio { margin: 22px 0 0; max-width: 760px; font-size: 17px; line-height: 1.7; color: #16264e; }

.ht-author-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.ht-author-stat { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ht-stat-icon { width: 34px; height: 34px; color: #3f587f; flex: 0 0 34px; }
.ht-stat-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.ht-author-stat div { min-width: 0; }
.ht-author-stat strong { display: block; color: var(--ht-navy); font-size: 17px; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.ht-author-stat span:not(.ht-stat-icon) { display: block; margin-top: 3px; color: #63718f; font-size: 14px; line-height: 1.3; }

.ht-author-social-col { position: relative; z-index: 2; align-self: stretch; border-left: 1px solid #d7e0ee; padding-left: 48px; display: flex; flex-direction: column; justify-content: center; }
.ht-author-social-col h2 { margin: 0 0 22px; font-size: 20px; line-height: 1.2; color: var(--ht-navy); }
.ht-social-list { display: grid; gap: 14px; }
.ht-social-row { display: flex; gap: 15px; align-items: flex-start; min-width: 0; }
.ht-social-icon { width: 23px; height: 23px; flex: 0 0 23px; color: var(--ht-blue); display: inline-flex; }
.ht-social-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ht-social-row:nth-child(1) .ht-social-icon svg,
.ht-social-row:nth-child(3) .ht-social-icon svg,
.ht-social-row:nth-child(4) .ht-social-icon svg,
.ht-social-row:nth-child(6) .ht-social-icon svg { fill: currentColor; stroke: none; }
.ht-social-copy { min-width: 0; line-height: 1.2; }
.ht-social-copy a { display: block; color: var(--ht-blue); text-decoration: none; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.ht-social-copy a:hover { text-decoration: underline; }
.ht-social-copy strong { display: block; font-size: 14px; color: #4f5d79; font-weight: 700; }
.ht-social-copy span { display: block; margin-top: 2px; color: #99a4b8; font-size: 13px; }
.ht-social-row.is-unavailable .ht-social-icon { color: #9aa7bc; }

.ht-author-articles { padding-top: 38px; }
.ht-articles-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.ht-articles-head h2 { margin: 0; font-size: clamp(27px, 2.2vw, 34px); line-height: 1.2; letter-spacing: -.7px; color: var(--ht-navy); }
.ht-articles-head .ht-title-rule { width: 46px; margin-top: 10px; }
.ht-view-all {
  appearance: none; border: 1.5px solid var(--ht-blue); background: #fff; color: var(--ht-blue);
  border-radius: 6px; padding: 14px 29px; font: inherit; font-weight: 700; cursor: pointer;
  transition: .2s ease;
}
.ht-view-all:hover, .ht-view-all:focus-visible { background: var(--ht-blue); color: #fff; outline: none; }

.ht-articles-carousel { position: relative; }
.ht-article-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 1px 4px;
}
.ht-article-track::-webkit-scrollbar { display: none; }
.ht-article-card {
  scroll-snap-align: start;
  min-width: 0;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(6, 23, 64, .03);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ht-article-card:hover { transform: translateY(-3px); box-shadow: var(--ht-shadow); }
.ht-card-image-link { display: block; aspect-ratio: 1.95 / 1; overflow: hidden; background: #071b40; }
.ht-card-image-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .28s ease; }
.ht-article-card:hover .ht-card-image-link img { transform: scale(1.025); }
.ht-card-image-fallback { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 50% 45%, #1268ff 0, #08255a 45%, #03132f 100%); }
.ht-card-body { padding: 16px 18px 18px; }
.ht-card-category { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 10px; border-radius: 5px; background: var(--ht-blue); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.ht-card-body h3 { margin: 13px 0 20px; font-size: 18px; line-height: 1.31; letter-spacing: -.2px; }
.ht-card-body h3 a { color: var(--ht-navy); text-decoration: none; }
.ht-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #6e7d99; font-size: 13px; }
.ht-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ht-card-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ht-card-meta i { font-style: normal; color: #9ca8bb; }

.ht-carousel-btn {
  position: absolute; top: 50%; z-index: 4; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid #e0e8f4; background: #fff; color: #19335f;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(7,20,55,.12);
  transition: .18s ease;
}
.ht-carousel-btn:hover:not(:disabled) { background: var(--ht-blue); color: #fff; border-color: var(--ht-blue); }
.ht-carousel-btn:disabled { opacity: 0; pointer-events: none; }
.ht-carousel-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.ht-carousel-prev { left: -23px; }
.ht-carousel-prev svg { transform: rotate(180deg); }
.ht-carousel-next { right: -23px; }

.ht-author-articles.is-expanded .ht-article-track {
  grid-auto-flow: row;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-columns: auto;
  overflow: visible;
  scroll-snap-type: none;
}
.ht-author-articles.is-expanded .ht-carousel-btn { display: none; }
.ht-no-posts, .ht-author-error { padding: 36px; border: 1px solid var(--ht-line); border-radius: 12px; background: var(--ht-soft); }

@media (max-width: 1200px) {
  .ht-author-hero { grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 30px; padding: 38px 36px; }
  .ht-author-avatar-wrap { width: 205px; height: 205px; }
  .ht-author-pencil { width: 56px; height: 56px; }
  .ht-author-main-col h1 { font-size: 38px; }
  .ht-author-bio { font-size: 15px; }
  .ht-author-social-col { padding-left: 32px; }
  .ht-author-stats { gap: 18px; }
}

@media (max-width: 980px) {
  .ht-author-hero { grid-template-columns: 190px minmax(0, 1fr); }
  .ht-author-social-col { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #d7e0ee; padding: 28px 0 0; display: block; }
  .ht-social-list { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 24px; }
  .ht-author-avatar-wrap { width: 180px; height: 180px; }
  .ht-author-stats { margin-top: 28px; }
  .ht-article-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .ht-author-articles.is-expanded .ht-article-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .ht-author-page { padding-top: 14px; }
  .ht-author-shell { width: min(100% - 22px, 1540px); }
  .ht-author-hero { display: block; padding: 30px 22px; text-align: center; }
  .ht-author-avatar-wrap { width: 176px; height: 176px; margin: 0 auto 26px; }
  .ht-author-pencil { right: -8px; top: 8px; width: 50px; height: 50px; }
  .ht-author-kicker { margin-top: 2px; }
  .ht-title-rule { margin-left: auto; margin-right: auto; }
  .ht-author-bio { font-size: 15px; line-height: 1.65; }
  .ht-author-stats { grid-template-columns: 1fr; margin-top: 28px; gap: 16px; text-align: left; }
  .ht-author-stat { max-width: 280px; margin: 0 auto; width: 100%; }
  .ht-author-social-col { margin-top: 28px; text-align: left; }
  .ht-author-social-col h2 { text-align: center; }
  .ht-social-list { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ht-articles-head { align-items: flex-end; }
  .ht-view-all { padding: 11px 15px; font-size: 13px; }
  .ht-article-track { grid-auto-columns: 86%; }
  .ht-author-articles.is-expanded .ht-article-track { grid-template-columns: 1fr; }
  .ht-carousel-prev { left: -8px; }
  .ht-carousel-next { right: -8px; }
}

@media (max-width: 460px) {
  .ht-social-list { grid-template-columns: 1fr; }
  .ht-articles-head { display: block; }
  .ht-view-all { margin-top: 18px; width: 100%; }
  .ht-article-track { grid-auto-columns: 92%; }
  .ht-carousel-btn { width: 40px; height: 40px; }
}
