@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html,
body,
.arrss-profile-page,
.arrss-profile-page *,
.arrss-profile-page *::before,
.arrss-profile-page *::after {
  box-sizing: border-box;
}

html,
body.arrss-profile-page-body {
  overflow-x: hidden;
}

body.arrss-profile-page-body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #ffffff;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arrss-profile-page-body .araintel-search {
  display: none !important;
}

.arrss-profile-page {
  width: 100%;
  max-width: 100%;
  padding-top: 0;
  overflow-x: hidden;
  color: #1f252b;
  background: #ffffff;
}

body.agn-navbar-needs-offset .arrss-profile-page {
  padding-top: var(--agn-navbar-offset, 84px);
}

.arrss-profile-page__hero {
  width: 100%;
  border-bottom: 1px solid #e6e8ec;
}

.arrss-profile-page__hero-inner {
  width: 100%;
  margin: 0 auto;
  padding: 32px 18px 24px;
}

.arrss-profile-page__identity {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.arrss-profile-page__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 999px;
  background: #f4f5f7;
  color: #1f252b;
  font-size: 34px;
  font-weight: 600;
}

.arrss-profile-page__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.arrss-profile-page__copy {
  min-width: 0;
}

.arrss-profile-page__titleline {
  --arrss-profile-title-size: clamp(28px, 3.2vw, 42px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(var(--arrss-profile-title-size) * 0.18);
}

.arrss-profile-page__name {
  margin: 0;
  color: #1f252b;
  font-size: var(--arrss-profile-title-size);
  font-weight: 700;
  line-height: 1.05;
}

.arrss-profile-page__role {
  display: inline-flex;
  align-items: center;
  min-height: var(--arrss-profile-title-size);
  padding: 0 calc(var(--arrss-profile-title-size) * 0.28);
  border: 0;
  border-radius: calc(var(--arrss-profile-title-size) * 0.12);
  background: #0095f6;
  color: #ffffff;
  font-size: calc(var(--arrss-profile-title-size) * 0.5);
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.arrss-profile-page__company {
  margin: 8px 0 0;
  color: #6f7783;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arrss-profile-page__excerpt {
  margin: 10px 0 0;
  color: #1f252b;
  font-size: 15px;
  line-height: 1.65;
  max-width: 72ch;
}

.arrss-profile-page__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.arrss-profile-page__meta-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #1f252b;
  font-size: 14px;
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: anywhere;
}

.arrss-profile-page__meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #1f252b;
}

.arrss-profile-page__meta-icon svg {
  width: 16px;
  height: 16px;
}

.arrss-profile-page__meta-value,
.arrss-profile-page__meta-link {
  min-width: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.arrss-profile-page__meta-link {
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  color: #1f252b;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.arrss-profile-page__meta-link:hover,
.arrss-profile-page__meta-link:focus-visible {
  color: #1f252b;
}

/* Stats row: inline, same size as bio, no boxes */
.arrss-profile-page__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 14px;
  color: #1f252b;
  font-size: 15px;
  line-height: 1.65;
}

.arrss-profile-page__actions-wrap {
  position: relative;
  margin-top: 18px;
}

.arrss-profile-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.arrss-profile-page__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #cfd6de;
  background: #ffffff;
  color: #1f252b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
  flex: 1 1 180px;
}

.arrss-profile-page__action:hover,
.arrss-profile-page__action:focus-visible {
  border-color: #aab4bf;
  background: #fbfcfd;
  color: #1f252b;
}

.arrss-profile-page__action--primary {
  font-weight: 700;
}

.arrss-profile-page__settings-menu {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: block;
  background: rgba(31, 37, 43, 0.08);
}

.arrss-profile-page__settings-menu[hidden] {
  display: none !important;
}

.arrss-profile-page__settings-panel {
  width: min(75vw, 420px);
  min-height: calc(100dvh - 58px);
  margin-top: 58px;
  background: #ffffff;
  border-right: 1px solid #d7dde5;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.arrss-profile-page__settings-header {
  padding: 18px 18px 0;
}

.arrss-profile-page__settings-heading {
  margin: 0;
  color: #2f343a;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arrss-profile-page__settings-list {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  border-top: 1px solid rgba(47, 52, 58, 0.14);
}

.arrss-profile-page__settings-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 52px;
  width: 100%;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(47, 52, 58, 0.14);
  background: #ffffff;
  color: #3b4147;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.arrss-profile-page__settings-link:hover,
.arrss-profile-page__settings-link:focus-visible {
  color: #1f252b;
  background: #f8fafb;
}

.arrss-profile-page__settings-link--strong {
  font-weight: 700;
}

.arrss-profile-page__stat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.arrss-profile-page__stat-item strong {
  font-weight: 700;
}

.arrss-profile-page__stat-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #1f252b;
}

.arrss-profile-page__stat-sep {
  color: #999;
  font-size: 12px;
  user-select: none;
}

.arrss-profile-page__posts {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.arrss-profile-page__posts-inner {
  width: 100%;
}

.arrss-profile-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  border-top: 1px solid #e6e8ec;
  border-left: 1px solid #e6e8ec;
}

.arrss-profile-page__post {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid #e6e8ec;
  border-bottom: 1px solid #e6e8ec;
  background: #ffffff;
}

.arrss-profile-page__post.is-featured {
  border: 2px solid #111;
}

.arrss-profile-page__post-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f4f5f7;
}

.arrss-profile-page__post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Date badge — top left */
.arrss-profile-page__post-date {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
}

/* Title overlay — bottom, inside the image */
.arrss-profile-page__post-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  padding: 9px 10px 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 -1px 0 rgba(0,0,0,0.06);
}

/* Featured badge — top left, below date if both present */
.arrss-profile-page__featured-badge {
  position: absolute;
  top: 28px;
  left: 7px;
  background: #fff;
  color: #111;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 5px;
  border: 1px solid #111;
  pointer-events: none;
}

.arrss-profile-page__post-fallback {
  display: block;
  padding: 12px;
  color: #1f252b;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.arrss-profile-page__empty {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px 18px;
}

.arrss-profile-page__empty p {
  margin: 0;
  color: #6f7783;
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 901px) {
  .arrss-profile-page__hero-inner,
  .arrss-profile-page__posts-inner,
  .arrss-profile-page__empty {
    padding-left: 20%;
    padding-right: 20%;
  }

  .arrss-profile-page__hero-inner {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .arrss-profile-page__posts-inner {
    padding-bottom: 36px;
  }

  .arrss-profile-page__empty {
    padding-top: 24px;
    padding-bottom: 36px;
  }
}

@media (max-width: 900px) {
  .arrss-profile-page,
  body.agn-navbar-inline .arrss-profile-page,
  body.agn-navbar-needs-offset .arrss-profile-page {
    padding-top: 0;
  }

  .arrss-profile-page__hero-inner {
    padding: 22px 14px 18px;
  }

  .arrss-profile-page__identity {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
  }

  .arrss-profile-page__avatar {
    width: 84px;
    height: 84px;
    font-size: 28px;
  }

  .arrss-profile-page__titleline {
    --arrss-profile-title-size: 26px;
  }

  .arrss-profile-page__posts-inner {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .arrss-profile-page__action {
    flex: 1 1 0;
    min-width: 0;
  }

  .arrss-profile-page__settings-panel {
    width: 75vw;
    min-height: calc(100dvh - 54px);
    margin-top: 54px;
  }

}
