/* WealthSure Author Pages - dedicated CSS fallback
   Purpose: Keeps /articles/author/ and /articles/author/{slug} styled even when the main article CSS is not loaded by head.php. */

:root {
  --ws-author-blue: #0b5cab;
  --ws-author-dark: #101828;
  --ws-author-muted: #667085;
  --ws-author-soft: #f4f8ff;
  --ws-author-border: rgba(16, 24, 40, 0.12);
  --ws-author-shadow: 0 18px 48px rgba(16, 24, 40, 0.10);
}

.ws-author-system,
.ws-author-system * {
  box-sizing: border-box;
}

.ws-author-system {
  width: 1340px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 22px 0 54px;
  color: var(--ws-author-dark);
  font-family: inherit;
}

.ws-author-system img {
  max-width: 100%;
  display: block;
}

.ws-article-breadcrumb-wrap {
  width: 100%;
  margin: 0 auto 18px;
}

.ws-article-breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ws-author-muted);
}

.ws-article-breadcrumb a {
  color: var(--ws-author-blue);
  text-decoration: none;
  font-weight: 700;
}

.ws-article-breadcrumb a:hover {
  text-decoration: underline;
}

.ws-article-index-hero,
.ws-author-index-hero {
  width: 100%;
  margin: 0 0 28px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
  border: 1px solid var(--ws-author-border);
  box-shadow: var(--ws-author-shadow);
}

.ws-article-index-hero h1,
.ws-author-index-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.ws-article-index-copy p,
.ws-author-index-hero p {
  max-width: 900px;
  margin: 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.75;
}

.ws-article-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e9f4ff;
  color: #084c8d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ws-author-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.ws-author-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--ws-author-border);
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.07);
}

.ws-author-photo-link {
  display: block;
  text-decoration: none;
}

.ws-author-photo,
.ws-author-profile-photo {
  width: 150px !important;
  height: 150px !important;
  min-width: 150px;
  max-width: 150px !important;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  border: 1px solid rgba(16, 24, 40, 0.10);
  background: #f2f4f7;
}

.ws-author-card-body {
  min-width: 0;
}

.ws-author-name-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.ws-author-name-row h1,
.ws-author-name-row h2 {
  margin: 0;
  color: #050b5f !important;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.ws-author-name-row h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.ws-author-name-row h2 {
  font-size: clamp(22px, 2.4vw, 32px);
}

.ws-author-name-row h2 a {
  color: #050b5f !important;
  text-decoration: none;
}

.ws-author-name-row h2 a:hover {
  color: var(--ws-author-blue);
}

.ws-author-linkedin {
  display: inline-flex !important;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  color: #0a66c2;
  text-decoration: none;
  line-height: 1;
  flex: 0 0 auto;
}

.ws-author-linkedin svg {
  display: block;
  width: 22px;
  height: 22px;
}

.ws-author-title {
  margin: 0 0 10px;
  color: var(--ws-author-dark);
  font-size: 14px;
}

.ws-author-description,
.ws-author-profile-copy p {
  margin: 0 0 16px;
  color: #475467;
  line-height: 1.75;
  font-size: 15px;
}

.ws-author-card-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ws-author-article-count,
.ws-author-profile-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f0f7ff;
  color: #0b4a8b;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(11, 92, 171, 0.14);
}

.ws-author-profile-hero,
.ws-author-articles-section {
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
}

.ws-author-profile-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--ws-author-border);
  box-shadow: var(--ws-author-shadow);
}

.ws-author-profile-photo {
  width: 180px !important;
  height: 180px !important;
  min-width: 180px;
  max-width: 180px !important;
  border-radius: 26px;
}

.ws-author-section-title-row {
  margin: 0 0 20px;
}

.ws-author-section-title-row h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.ws-author-section-title-row p {
  margin: 0;
  color: var(--ws-author-muted);
}

.ws-article-grid,
.ws-author-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ws-article-list-card {
  display: block;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--ws-author-border);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  color: inherit;
  text-decoration: none;
}

.ws-article-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.10);
}

.ws-article-list-card h2 {
  margin: 14px 0 10px;
  color: var(--ws-author-dark);
  font-size: 20px;
  line-height: 1.25;
}

.ws-article-list-card p {
  margin: 0 0 12px;
  color: #475467;
  line-height: 1.65;
}

.ws-article-meta {
  color: var(--ws-author-muted) !important;
  font-size: 13px;
  margin-bottom: 0 !important;
}

.ws-author-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 34px 0 0;
}

.ws-author-pagination a,
.ws-author-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ws-author-border);
  background: #fff;
  color: var(--ws-author-dark);
  text-decoration: none;
  font-weight: 800;
}

.ws-author-pagination span[aria-current="page"] {
  background: var(--ws-author-dark);
  color: #fff;
}

.ws-author-empty-card {
  max-width: 760px;
}

@media (max-width: 980px) {
  .ws-article-grid,
  .ws-author-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ws-author-system {
    width: min(100% - 22px, 1180px);
    padding-top: 14px;
  }
  .ws-article-index-hero,
  .ws-author-index-hero,
  .ws-author-card,
  .ws-author-profile-card {
    padding: 20px;
    border-radius: 20px;
  }
  .ws-author-card,
  .ws-author-profile-card {
    grid-template-columns: 1fr;
  }
  .ws-author-photo,
  .ws-author-profile-photo {
    width: 116px !important;
    height: 116px !important;
    min-width: 116px;
    max-width: 116px !important;
  }
  .ws-article-grid,
  .ws-author-article-grid {
    grid-template-columns: 1fr;
  }
}
