/* =============================================================================
   Astrana Help Center — Design System & Block Styles
   Apple-inspired design language
   ============================================================================= */

/* ─── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;

  --color-text-primary:   #1C1C1E;
  --color-text-secondary: #3C3C43;
  --color-text-muted:     #8E8E93;
  --color-text-hint:      #C7C7CC;

  --color-bg-primary:   #ffffff;
  --color-bg-secondary: #F9F9FB;
  --color-bg-tertiary:  #F2F2F7;
  --color-bg-page:      #F5F5F7;

  --color-border: rgba(0, 0, 0, .09);

  --color-blue:   #007AFF;
  --color-green:  #1A7F3C;
  --color-orange: #FF9F0A;

  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);

  --transition: 0.18s ease;
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ─── Base ───────────────────────────────────────────────────────────────────── */
html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Home layout ────────────────────────────────────────────────────────────── */
.ahc-home-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ─── Section header ─────────────────────────────────────────────────────────── */
.ah-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ah-section-label {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--color-text-primary);
}

.ah-section-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-blue);
  text-decoration: none;
}
.ah-section-more:hover {
  text-decoration: underline;
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.ah-hero {
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  padding: 56px 24px 48px;
  text-align: center;
}

.ah-hero__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.ah-hero__title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--color-text-primary);
  margin: 0 0 10px;
  line-height: 1.15;
}

.ah-hero__subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 0 0 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.ah-hero__search {
  display: flex;
  max-width: 540px;
  margin: 0 auto;
  gap: 0;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.ah-hero__search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
}

.ah-hero__search-input::placeholder {
  color: var(--color-text-hint);
}

.ah-hero__search-btn {
  border: none;
  background: var(--color-blue);
  color: #fff;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.ah-hero__search-btn:hover {
  background: #0066d6;
}

/* ─── What's New ─────────────────────────────────────────────────────────────── */
.ah-whats-new {
  padding: 32px 0;
}

.ah-whats-new__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.ah-whats-new__card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-card);
}

.ah-whats-new__card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.ah-whats-new__card--hero {
  grid-column: span 1;
}

.ah-whats-new__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--color-bg-tertiary);
}

.ah-whats-new__body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ah-whats-new__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ah-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Announcement tag color variants */
.ah-tag--new-feature  { background: rgba(0,122,255,.10); color: #007AFF; }
.ah-tag--ui-update    { background: rgba(255,159,10,.12); color: #BF6F00; }
.ah-tag--improvement  { background: rgba(26,127,60,.10);  color: #1A7F3C; }
.ah-tag--fix          { background: rgba(142,142,147,.12); color: #636366; }

.ah-whats-new__date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.ah-whats-new__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin: 0;
}

.ah-whats-new__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.ah-whats-new__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-blue);
  margin-top: auto;
  padding-top: 8px;
  text-decoration: none;
}

.ah-whats-new__empty {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
  padding: 16px 0 8px;
}

.ah-whats-new__link:hover {
  text-decoration: underline;
}

/* ─── Most Visited ───────────────────────────────────────────────────────────── */
.ah-most-visited {
  padding: 32px 0;
}

.ah-most-visited__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ah-most-visited__card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 16px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-card);
}

.ah-most-visited__card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.ah-most-visited__icon {
  font-size: 24px;
  line-height: 1;
}

.ah-most-visited__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin: 0;
}

.ah-most-visited__desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ─── Browse by Section ──────────────────────────────────────────────────────── */
.ah-browse-section {
  padding: 32px 0;
}

.ah-browse-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ah-browse-section__card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-card);
}

.ah-browse-section__card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.ah-browse-section__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.ah-browse-section__count {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ─── Forms & Downloads Strip ────────────────────────────────────────────────── */
.ah-forms-strip {
  padding: 32px 0;
}

.ah-forms-strip__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ah-forms-strip__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.ah-forms-strip__pill:hover {
  background: var(--color-bg-secondary);
  box-shadow: var(--shadow-card-hover);
}

.ah-forms-strip__pill-icon {
  color: var(--color-blue);
  font-size: 14px;
}

/* ─── Right Panel ────────────────────────────────────────────────────────────── */
.ah-right-panel {
  width: 244px;
  flex-shrink: 0;
  padding-top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
}

.ah-rp-card:last-child {
  flex: 1;
}

/* ─── Right panel card shell ─────────────────────────────────────────────────── */
.ah-rp-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow-card);
}

.ah-rp-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.ah-rp-card__header-icon {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

.ah-rp-card__header-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ─── Need Help? list ────────────────────────────────────────────────────────── */
.ah-rp-support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ah-rp-support-item + .ah-rp-support-item {
  border-top: 1px solid var(--color-border);
  padding-top: 2px;
}

.ah-rp-support-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.ah-rp-support-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ah-rp-support-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.ah-rp-support-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid;
  font-size: 11px;
  font-weight: 500;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.ah-rp-support-badge:hover {
  opacity: 0.7;
}

/* ─── Coming Soon list ───────────────────────────────────────────────────────── */
.ah-rp-roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ah-rp-roadmap-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 0;
}

.ah-rp-roadmap-item + .ah-rp-roadmap-item {
  border-top: 1px solid var(--color-border);
}

.ah-rp-roadmap-item:last-child {
  padding-bottom: 0;
}

.ah-rp-roadmap-feature {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.ah-rp-roadmap-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ah-rp-roadmap-app,
.ah-rp-roadmap-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* legacy card styles kept for any other templates that reference them */
.ah-right-panel__card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
}
.ah-right-panel__card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 6px;
}
.ah-right-panel__card-body {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 12px;
}
.ah-right-panel__link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-blue);
  text-decoration: none;
}
.ah-right-panel__link:hover { text-decoration: underline; }
.ah-right-panel__email {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-blue);
  text-decoration: none;
  word-break: break-all;
}
.ah-right-panel__note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ─── Article page ───────────────────────────────────────────────────────────── */
.ahc-article-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px;
}

.ahc-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ahc-article-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
}

.ahc-article-badge--step-by-step { background: rgba(0,122,255,.10); color: #007AFF; }
.ahc-article-badge--urgent        { background: rgba(255,69,58,.10);  color: #D70015; }
.ahc-article-badge--new           { background: rgba(26,127,60,.10);  color: #1A7F3C; }

.ahc-article-meta-text {
  font-size: 13px;
  color: var(--color-text-muted);
}

.ahc-article-lede {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}

.ahc-article-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-primary);
}

/* Step list styling */
.ahc-article-body ol > li {
  margin-bottom: 14px;
  padding-left: 4px;
}

.ahc-article-body ol > li::marker {
  font-weight: 600;
  color: var(--color-blue);
}

/* TOC sidebar */
.ahc-toc {
  position: sticky;
  top: 24px;
}

.ahc-toc__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.ahc-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ahc-toc__item a {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color var(--transition), border-color var(--transition);
}

.ahc-toc__item a:hover,
.ahc-toc__item--active a {
  color: var(--color-blue);
  border-left-color: var(--color-blue);
}

.ahc-toc__item--h3 a {
  padding-left: 20px;
  font-size: 12px;
}

/* Related articles */
.ahc-related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.ahc-related__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.ahc-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ahc-related__list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-blue);
  text-decoration: none;
}

.ahc-related__list a:hover {
  text-decoration: underline;
}

/* Breadcrumbs */
.ahc-breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.ahc-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.ahc-breadcrumb a:hover {
  color: var(--color-blue);
}

.ahc-breadcrumb__sep {
  margin: 0 6px;
}

/* ─── Category archive ───────────────────────────────────────────────────────── */
.ahc-category-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px;
}

.ahc-article-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}

.ahc-article-row:last-child {
  border-bottom: none;
}

.ahc-article-row__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 4px;
}

.ahc-article-row__excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.ahc-article-row__meta {
  font-size: 12px;
  color: var(--color-text-hint);
  margin-top: 4px;
}

/* ─── Updates / changelog ────────────────────────────────────────────────────── */
.ahc-updates-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px;
}

.ahc-update-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.ahc-update-item:last-child {
  border-bottom: none;
}

.ahc-update-item__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-bg-tertiary);
  display: block;
}

.ahc-update-item__date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.ahc-update-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 8px;
}

.ahc-update-item__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0 0 12px;
}

.ahc-update-item__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-blue);
  text-decoration: none;
}

.ahc-update-item__link:hover {
  text-decoration: underline;
}

/* ─── Forms page ─────────────────────────────────────────────────────────────── */
.ahc-forms-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px;
}

.ahc-form-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.ahc-form-item:last-child {
  border-bottom: none;
}

.ahc-form-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ahc-form-item__info {
  flex: 1;
}

.ahc-form-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 2px;
}

.ahc-form-item__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.ahc-form-item__meta {
  font-size: 12px;
  color: var(--color-text-hint);
}

.ahc-form-item__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}

.ahc-form-item__btn:hover {
  background: #0066d6;
}

/* ─── Responsive — 900px ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ahc-home-layout {
    grid-template-columns: 1fr;
  }

  .ah-whats-new__grid {
    grid-template-columns: 1fr 1fr;
  }

  .ah-most-visited__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ah-browse-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ahc-article-wrap {
    grid-template-columns: 1fr;
  }

  .ahc-toc {
    display: none;
  }

  .ahc-update-item {
    grid-template-columns: 1fr;
  }

  .ahc-update-item__thumb {
    max-width: 280px;
  }
}

/* ─── Responsive — 600px ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ahc-home-layout {
    padding: 24px 16px;
  }

  .ah-hero {
    padding: 36px 16px 32px;
  }

  .ah-hero__title {
    font-size: 26px;
  }

  .ah-hero__search {
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: visible;
    box-shadow: none;
    border: none;
    gap: 8px;
  }

  .ah-hero__search-input {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
  }

  .ah-hero__search-btn {
    border-radius: var(--radius-sm);
    text-align: center;
  }

  .ah-whats-new__grid {
    grid-template-columns: 1fr;
  }

  .ah-most-visited__grid {
    grid-template-columns: 1fr 1fr;
  }

  .ah-browse-section__grid {
    grid-template-columns: 1fr 1fr;
  }

  .ahc-update-item {
    grid-template-columns: 1fr;
  }

  .ahc-form-item {
    flex-wrap: wrap;
  }
}

/* ─── Chrome header ──────────────────────────────────────────────────────────── */
.ah-chrome-header {
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ah-chrome-header__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
}

.ah-chrome-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: 8px;
  flex-shrink: 0;
}

.ah-chrome-header__wordmark {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.2px;
  line-height: 1;
}

.ah-chrome-header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.ah-chrome-header__nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.ah-chrome-header__nav-item:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.ah-chrome-header__nav-item--active {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.ah-chrome-header__portal-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: var(--color-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
  transition: background var(--transition);
}

.ah-chrome-header__portal-btn:hover {
  background: #0066d6;
}

/* ─── Site layout ────────────────────────────────────────────────────────────── */
.ah-site {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-bg-page);
}

.ah-site-body {
  flex: 1;
  width: 100%;
}

/* ─── Site footer ────────────────────────────────────────────────────────────── */
.ah-site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-primary);
  margin-top: 48px;
}

.ah-site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ah-site-footer__copy {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ─── Responsive — chrome header 900px ──────────────────────────────────────── */
@media (max-width: 900px) {
  .ah-chrome-header__nav-item span {
    display: none;
  }

  .ah-chrome-header__nav-item {
    padding: 6px 8px;
  }

  .ah-chrome-header__wordmark {
    display: none;
  }
}

@media (max-width: 600px) {
  .ah-chrome-header__inner {
    padding: 0 16px;
  }

  .ah-chrome-header__nav {
    gap: 0;
  }

  .ah-chrome-header__portal-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ─── Member 360 card ────────────────────────────────────────────────────────── */
/* ─── What's New feed (right panel) ─────────────────────────────────────────── */
.ah-whats-new-feed {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
}

.ah-whats-new-feed__heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 14px;
  letter-spacing: -0.1px;
}

.ah-whats-new-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.ah-whats-new-item--bordered {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.ah-whats-new-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.ah-whats-new-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.ah-whats-new-item__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #E3F9EC;
  color: #1A7F3C;
  padding: 2px 7px;
  border-radius: 5px;
}

.ah-whats-new-item__date {
  font-size: 11px;
  color: var(--color-text-hint);
  font-weight: 500;
}

.ah-whats-new-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.35;
}

.ah-whats-new-item__link {
  color: inherit;
  text-decoration: none;
}

.ah-whats-new-item__link:hover {
  color: var(--color-blue);
}

.ah-whats-new-item__desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── Emergency banner ───────────────────────────────────────────────────────── */
.ah-emergency-banner {
  width: 100%;
  background: #FFF9F0;
  border-top: 0.5px solid rgba(255, 159, 10, .35);
  padding: 14px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.ah-emergency-banner__link {
  font-weight: 500;
  color: #BF6F00;
  text-decoration: none;
  white-space: nowrap;
}

.ah-emergency-banner__link:hover {
  text-decoration: underline;
}

/* ─── App Grid ───────────────────────────────────────────────────────────────── */
.ah-app-grid-section {
  padding: 48px 0 32px;
}

.ah-app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ah-app-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative; /* needed for overlay */
  cursor: pointer;
}

.ah-app-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}


.ah-app-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ah-app-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ah-app-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.ah-app-card__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.ah-app-card__for {
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

.ah-app-card__for-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-hint);
  margin-right: 4px;
}

.ah-app-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.ah-app-card__btn-primary,
.ah-app-card__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: opacity var(--transition), background var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.ah-app-card__btn-primary {
  color: #fff;
}

.ah-app-card__btn-primary:hover {
  opacity: 0.88;
}

.ah-app-card__btn-secondary {
  color: var(--color-text-secondary);
  background: transparent;
  border-color: var(--color-border);
}

.ah-app-card__btn-secondary:hover {
  background: var(--color-bg-secondary);
  border-color: rgba(0,0,0,.14);
}

.ah-app-card__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  margin-top: 2px;
}

.ah-app-card__user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  opacity: 0.9;
}

.ah-app-card__user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.ah-app-card__user-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ah-app-card__user-email {
  font-size: 11px;
  color: var(--color-text-hint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Featured Tool (M360) ───────────────────────────────────────────────────── */
.ah-featured-tool {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-left: 4px solid #6C0C46;
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ah-featured-tool:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.ah-featured-tool__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ah-featured-tool__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6C0C46;
  opacity: 0.7;
}

.ah-featured-tool__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  background: #F5E8F0;
  color: #6C0C46;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.ah-featured-tool__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.ah-featured-tool__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}

.ah-featured-tool__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ah-featured-tool__tag {
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

.ah-featured-tool__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
  padding-top: 4px;
}

.ah-featured-tool__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #fff;
  text-decoration: none;
  background: #6C0C46;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.ah-featured-tool__btn:hover {
  opacity: 0.85;
}

.ah-featured-tool__support-link {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
  text-align: right;
}

.ah-featured-tool__support-link:hover {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

/* ─── App Grid responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ah-app-grid {
    grid-template-columns: 1fr;
  }

  .ah-featured-tool {
    flex-direction: column;
    gap: 24px;
  }

  .ah-featured-tool__cta {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .ah-app-grid {
    grid-template-columns: 1fr;
  }

  .ah-featured-tool {
    padding: 24px 20px;
  }

  .ah-app-card__actions {
    flex-direction: column;
  }

  .ah-app-card__btn-primary,
  .ah-app-card__btn-secondary {
    text-align: center;
  }
}

/* ─── Page layout ────────────────────────────────────────────────────────────── */
.ah-content-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 40px;
}

.ah-feed {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .ah-content-row {
    flex-direction: column;
    padding: 20px 24px;
  }

  .ah-right-panel {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Provider Portal home page  (.ah-pp-)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Three-column layout ───────────────────────────────────────────────────── */
.ah-pp-layout {
  display: flex;
  min-height: 100vh;
  background: #F5F5F7;
}

/* Fix sticky header position when WP admin bar is present */
html.admin-bar .ah-chrome-header {
  top: 32px;
}

/* ─── Left sidebar ──────────────────────────────────────────────────────────── */
.ah-pp-sidebar {
  width: 252px;
  flex-shrink: 0;
  background: #F5F5F7;
  border-right: 0.5px solid rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
}

.ah-pp-sidebar__logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 16px;
  border-bottom: 0.5px solid rgba(0, 0, 0, .07);
  flex-shrink: 0;
}

.ah-pp-sidebar__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ah-pp-sidebar__logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.ah-pp-sidebar__wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  line-height: 1;
  white-space: nowrap;
}

.ah-pp-sidebar__product {
  font-size: 12px;
  color: #8E8E93;
  line-height: 1;
}

.ah-pp-sidebar__nav {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
}

.ah-pp-sidebar__group-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8E8E93;
  padding: 0 8px;
  margin-bottom: 4px;
}

.ah-pp-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ah-pp-sidebar__link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
}

.ah-pp-sidebar__link:hover {
  background: rgba(0, 0, 0, .05);
  color: var(--color-text-primary);
}

.ah-pp-sidebar__link--active {
  background: rgba(0, 0, 0, .07);
  color: var(--color-text-primary);
  font-weight: 600;
}

.ah-pp-sidebar__nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ah-pp-sidebar__footer {
  padding: 14px 16px;
  border-top: 0.5px solid rgba(0, 0, 0, .07);
  flex-shrink: 0;
}

.ah-pp-sidebar__portal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: #007AFF;
  color: #fff;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition);
  width: 100%;
}

.ah-pp-sidebar__portal-btn:hover {
  background: #0066d6;
}

.ah-pp-sidebar__portal-arrow {
  margin-left: auto;
  opacity: 0.7;
}

/* ─── Main content column ───────────────────────────────────────────────────── */
.ah-pp-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* ─── Top bar ────────────────────────────────────────────────────────────────── */
.ah-pp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 28px;
  border-bottom: 0.5px solid rgba(0, 0, 0, .07);
}

.ah-pp-topbar__breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
}

.ah-pp-topbar__suggest {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border: 0.5px solid rgba(0, 0, 0, .15);
  border-radius: 8px;
  padding: 6px 14px;
  transition: background var(--transition), border-color var(--transition);
}

.ah-pp-topbar__suggest:hover {
  background: var(--color-bg-secondary);
  border-color: rgba(0, 0, 0, .22);
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.ah-pp-hero {
  padding: 36px 40px 28px;
  border-bottom: 0.5px solid rgba(0, 0, 0, .07);
}

.ah-pp-hero__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8E8E93;
  margin-bottom: 10px;
}

.ah-pp-hero__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: #1C1C1E;
  margin: 0 0 10px;
}

.ah-pp-hero__subtitle {
  font-size: 15px;
  color: #8E8E93;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.ah-pp-hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F2F2F7;
  border-radius: 14px;
  padding: 14px 18px;
  max-width: 560px;
}

.ah-pp-hero__search-icon {
  flex-shrink: 0;
}

.ah-pp-hero__search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  outline: none;
  min-width: 0;
}

.ah-pp-hero__search-input::placeholder {
  color: #8E8E93;
}

.ah-pp-hero__kbd {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #8E8E93;
  background: rgba(0, 0, 0, .07);
  border-radius: 5px;
  padding: 2px 6px;
  flex-shrink: 0;
  user-select: none;
}

/* ─── Body wrapper (lifts right panel to topbar level) ──────────────────────── */
.ah-pp-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.ah-pp-body-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ─── Content row, feed, right panel ────────────────────────────────────────── */
.ah-pp-content-row {
  display: flex;
  gap: 0;
  align-items: flex-start;
  flex: 1;
}

.ah-pp-feed {
  flex: 1;
  min-width: 0;
  padding: 28px 40px;
}

.ah-pp-right-panel {
  width: 244px;
  flex-shrink: 0;
  background: #FAFAFA;
  border-left: 0.5px solid rgba(0, 0, 0, .07);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: stretch;
}

/* ─── Portal About section ───────────────────────────────────────────────────── */
.ah-pp-about {
  padding: 4px 0 20px;
}

.ah-pp-about__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.ah-pp-about__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0 0 10px;
  max-width: 640px;
}

.ah-pp-about__for {
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

.ah-pp-about__for-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ah-pp-about__divider {
  border: none;
  border-top: 0.5px solid rgba(0, 0, 0, .07);
  margin: 0;
}

/* ─── Most Visited (PP-specific hardcoded cards) ────────────────────────────── */
.ah-pp-mv {
  padding: 32px 0;
}

.ah-pp-mv__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ah-pp-mv__card {
  background: #F9F9FB;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.ah-pp-mv__card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.ah-pp-mv__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ah-pp-mv__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
}

.ah-pp-mv__desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ─── Right panel ────────────────────────────────────────────────────────────── */
.ah-pp-right {
  width: 244px;
  flex-shrink: 0;
  background: #FAFAFA;
  border-left: 0.5px solid rgba(0, 0, 0, .07);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
}

/* ─── Contact card ───────────────────────────────────────────────────────────── */
.ah-pp-contact {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
}

.ah-pp-contact__need-help {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8E8E93;
  line-height: 1;
}

.ah-pp-contact__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-hint);
  line-height: 1;
  margin-bottom: 2px;
}

.ah-pp-contact__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ah-pp-contact__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 8px;
}

.ah-pp-contact__email-box {
  background: #F2F2F7;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 4px;
}

.ah-pp-contact__email-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-hint);
}

.ah-pp-contact__email-val {
  font-size: 13px;
  font-weight: 500;
  color: #007AFF;
  text-decoration: none;
  word-break: break-all;
}

.ah-pp-contact__email-note {
  font-size: 11px;
  color: var(--color-text-muted);
}

.ah-pp-contact__divider {
  border: none;
  border-top: 0.5px solid var(--color-border);
  margin: 4px 0;
}

.ah-pp-contact__btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: #007AFF;
  color: #fff;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.ah-pp-contact__btn:hover {
  background: #0066d6;
}

/* ─── Right panel section label ("NEED HELP?") ───────────────────────────────── */
.ah-rp-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8E8E93;
  margin: 0 0 10px 2px;
}

/* ─── Emergency / Portal Down card ───────────────────────────────────────────── */
.ah-pp-emergency {
  background: #FFFBEB;
  border: 1px solid rgba(217, 119, 6, .25);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ah-pp-emergency__status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ah-pp-emergency__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F59E0B;
  flex-shrink: 0;
  animation: ah-pulse 2s ease-in-out infinite;
}

@keyframes ah-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(.8); }
}

.ah-pp-emergency__status-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92400E;
}

.ah-pp-emergency__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ah-pp-emergency__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 4px;
}

.ah-pp-emergency__btn {
  display: block;
  text-align: center;
  padding: 11px 12px;
  background: #D97706;
  color: #fff;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.ah-pp-emergency__btn:hover {
  background: #B45309;
}

/* ─── Member 360 card ────────────────────────────────────────────────────────── */
.ah-pp-m360 {
  background: #FFF0F6;
  border: 0.5px solid rgba(191, 43, 110, .2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ah-pp-m360__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  background: #E3F9EC;
  color: #1A7F3C;
  border-radius: 20px;
  padding: 3px 8px;
  letter-spacing: 0.04em;
}

.ah-pp-m360__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
}

.ah-pp-m360__desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.ah-pp-m360__link {
  font-size: 13px;
  font-weight: 500;
  color: #007AFF;
  text-decoration: none;
}

.ah-pp-m360__link:hover {
  text-decoration: underline;
}

/* ─── Provider Portal responsive ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .ah-pp-mv__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .ah-pp-right,
  .ah-pp-right-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .ah-pp-sidebar {
    display: none;
  }

  .ah-pp-feed {
    padding: 20px;
  }

  .ah-pp-topbar {
    padding: 0 20px;
  }

  .ah-pp-mv__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .ah-pp-hero__title {
    font-size: 30px;
  }

  .ah-pp-mv__grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   ARTICLE DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Three-column layout (reuses .ah-pp-sidebar) ───────────────────────────── */
.ah-article-layout {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg-primary);
}

/* ─── Main content column ────────────────────────────────────────────────────── */
.ah-article-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* ─── Topbar ─────────────────────────────────────────────────────────────────── */
.ah-article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 28px;
  border-bottom: 0.5px solid rgba(0, 0, 0, .07);
  flex-shrink: 0;
}

.ah-article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
}

.ah-article-breadcrumbs__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.ah-article-breadcrumbs__link:hover {
  color: var(--color-text-primary);
}

.ah-article-breadcrumbs__sep {
  color: var(--color-text-hint);
  flex-shrink: 0;
}

.ah-article-breadcrumbs__current {
  color: var(--color-text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ah-article-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ah-article-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 0.5px solid rgba(0, 0, 0, .15);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition), border-color var(--transition);
}

.ah-article-action-btn:hover {
  background: var(--color-bg-secondary);
  border-color: rgba(0, 0, 0, .22);
}

/* ─── Article inner ──────────────────────────────────────────────────────────── */
.ah-article-inner {
  flex: 1;
  padding: 36px 40px 48px;
  max-width: 760px;
}

/* ─── Article header ─────────────────────────────────────────────────────────── */
.ah-article-header {
  margin-bottom: 32px;
}

.ah-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ah-article-section-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.ah-article-readtime,
.ah-article-updated {
  font-size: 12px;
  color: #8E8E93;
}

.ah-article-readtime::before {
  content: '·';
  margin-right: 6px;
  opacity: 0.5;
}

.ah-article-updated::before {
  content: '·';
  margin-right: 6px;
  opacity: 0.5;
}

.ah-article-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin: 0 0 12px;
}

.ah-article-lede {
  font-size: 16px;
  color: #8E8E93;
  line-height: 1.6;
  margin: 0 0 32px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid rgba(0, 0, 0, .07);
  letter-spacing: -0.01em;
}

/* ─── Article body ───────────────────────────────────────────────────────────── */
.ah-article-body {
  font-size: 15px;
  color: #3C3C43;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.ah-article-body p {
  margin: 0 0 16px;
}

.ah-article-body .wp-block-separator {
  display: none;
}

.ah-article-body strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

.ah-article-body a {
  color: #007AFF;
  text-decoration: none;
}

.ah-article-body a:hover {
  text-decoration: underline;
}

.ah-article-body ul,
.ah-article-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.ah-article-body li {
  margin-bottom: 6px;
}

/* ─── Step-numbered H2 headings ──────────────────────────────────────────────── */
.ah-article-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 36px 0 14px;
  line-height: 1.3;
}

.ah-article-step:first-child {
  margin-top: 0;
}

.ah-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1C1C1E;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Callout (blockquote) ───────────────────────────────────────────────────── */
.ah-callout {
  display: flex;
  gap: 12px;
  background: #F2F2F7;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
}

.ah-callout__icon {
  font-size: 15px;
  flex-shrink: 0;
  color: #8E8E93;
  line-height: 1.6;
}

.ah-callout__body {
  font-size: 14px;
  color: #3C3C43;
  line-height: 1.6;
}

.ah-callout__body strong {
  color: var(--color-text-primary);
}

/* ─── Feedback row ───────────────────────────────────────────────────────────── */
.ah-feedback-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(0, 0, 0, .07);
}

.ah-feedback-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-right: 2px;
}

.ah-feedback-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  border: 0.5px solid rgba(0, 0, 0, .18);
  background: #fff;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition), border-color var(--transition);
}

.ah-feedback-btn:hover {
  background: #F2F2F7;
  border-color: rgba(0, 0, 0, .28);
}

.ah-feedback-thanks {
  font-size: 13px;
  color: #1A7F3C;
}

/* ─── Right panel ────────────────────────────────────────────────────────────── */
.ah-article-right-panel {
  width: 244px;
  flex-shrink: 0;
  background: #FAFAFA;
  border-left: 0.5px solid rgba(0, 0, 0, .07);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ah-panel-divider {
  border: none;
  border-top: 0.5px solid rgba(0, 0, 0, .08);
  margin: 18px 0;
}

/* ─── Table of contents ──────────────────────────────────────────────────────── */
.ah-toc {
  margin-bottom: 4px;
}

.ah-toc-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.ah-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ah-toc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  text-decoration: none;
  transition: background var(--transition);
  cursor: pointer;
}

.ah-toc-item:hover {
  background: #F2F2F7;
}

.ah-toc-item.active {
  background: #F2F2F7;
}

.ah-toc-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E0E0E5;
  color: #8E8E93;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.ah-toc-item.active .ah-toc-num {
  background: #007AFF;
  color: #fff;
}

.ah-toc-text {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  padding-top: 1px;
}

.ah-toc-item.active .ah-toc-text {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* ─── Related articles ───────────────────────────────────────────────────────── */
.ah-related {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ah-related-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.ah-related-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--transition);
}

.ah-related-item:hover {
  background: #F2F2F7;
}

.ah-related-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.ah-related-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ah-related-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.ah-related-meta {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ─── Compact contact card ───────────────────────────────────────────────────── */
.ah-article-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ah-article-contact__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.ah-article-contact__desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 4px;
}

.ah-article-contact__btn {
  display: block;
  text-align: center;
  padding: 10px 12px;
  background: #007AFF;
  color: #fff;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.ah-article-contact__btn:hover {
  background: #0066d6;
}

/* ─── Article page responsive ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .ah-article-right-panel {
    width: 220px;
  }
}

@media (max-width: 1024px) {
  .ah-article-right-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .ah-article-topbar {
    padding: 0 20px;
  }

  .ah-article-inner {
    padding: 28px 20px 40px;
  }

  .ah-article-title {
    font-size: 26px;
  }

  .ah-article-breadcrumbs__current {
    display: none;
  }
}

@media print {
  .ah-pp-sidebar,
  .ah-article-topbar,
  .ah-pp-right-panel,
  .ah-article-right-panel,
  .ah-feedback-row,
  .ah-pp-topnav,
  .ah-chrome-header {
    display: none !important;
  }

  .ah-article-inner,
  .ah-article-feed {
    padding: 0;
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ARTICLE TEMPLATE v2 — new class names
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Layout: sidebar extends full height, topnav in main only ───────────────── */
.ah-article-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #F5F5F7;
  position: relative;
  overflow: hidden;
}

/* ─── Body row: feed + right panel side by side ──────────────────────────────── */
.ah-article-body-row {
  display: flex;
  flex: 1;
  align-items: flex-start;
  overflow: hidden;
}

/* ─── Article feed column ────────────────────────────────────────────────────── */
.ah-article-feed {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 32px 44px 56px;
  background: #fff;
}

/* ─── Breadcrumb classes ─────────────────────────────────────────────────────── */
.ah-crumb {
  font-size: 13px;
  color: #8E8E93;
  text-decoration: none;
  letter-spacing: -.01em;
}
.ah-crumb:hover { color: #1C1C1E; }
.ah-crumb-sep { color: #C7C7CC; font-size: 12px; }
.ah-crumb-current {
  font-size: 13px;
  font-weight: 500;
  color: #1C1C1E;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Topbar action button ───────────────────────────────────────────────────── */
.ah-topbar-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;
  border: 0.5px solid rgba(0,0,0,.15);
  background: transparent;
  color: #3C3C43;
  cursor: pointer;
  font-family: var(--font-sans);
  margin-left: 8px;
}
.ah-topbar-btn:hover { background: #F2F2F7; }

.ah-article-topbar-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ─── Meta separator ─────────────────────────────────────────────────────────── */
.ah-article-sep { color: #C7C7CC; font-size: 11px; }

/* ─── Step wrapper (div wraps step-num + h2) ─────────────────────────────────── */
.ah-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}
.ah-step:last-of-type { }
.ah-step h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1C1C1E;
  letter-spacing: -.02em;
  margin: 2px 0 0;
  line-height: 1.3;
}

/* ─── Callout body ───────────────────────────────────────────────────────────── */
.ah-callout-body {
  flex: 1;
  font-size: 13.5px;
  color: #8E8E93;
  line-height: 1.6;
}

/* ─── Feedback question label ────────────────────────────────────────────────── */
.ah-feedback-q {
  font-size: 13px;
  color: #8E8E93;
  margin-right: 2px;
}

/* ─── Rail divider ───────────────────────────────────────────────────────────── */
.ah-rail-divider {
  height: 0.5px;
  background: rgba(0,0,0,.07);
  margin: 16px 0;
}

/* ─── Related body ───────────────────────────────────────────────────────────── */
.ah-related-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* ─── Contact mini card ──────────────────────────────────────────────────────── */
.ah-contact-mini {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,.09);
  border-radius: 14px;
  padding: 16px;
}
.ah-contact-mini-title {
  font-size: 13px;
  font-weight: 600;
  color: #1C1C1E;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.ah-contact-mini-desc {
  font-size: 12px;
  color: #8E8E93;
  line-height: 1.5;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.ah-contact-mini-btn {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px;
  border-radius: 9px;
  background: #007AFF;
  color: #fff;
  text-decoration: none;
}
.ah-contact-mini-btn:hover { background: #0066d6; }

/* ─── PP layout v2: sidebar full height, topnav in main only ─────────────────── */
.ah-pp-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #F5F5F7;
  position: relative;
  overflow: hidden;
}
.ah-pp-sidebar {
  width: 252px;
  min-width: 252px;
  flex-shrink: 0;
  background: #F5F5F7;
  border-right: 0.5px solid rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Top nav bar (inlined in .ah-pp-main) ───────────────────────────────────── */
.ah-pp-topnav {
  height: 52px;
  border-bottom: 0.5px solid rgba(0,0,0,.1);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 40px;
  flex-shrink: 0;
}
.ah-pp-topnav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.ah-pp-topnav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  border-right: 1px solid rgba(0,0,0,.1);
  text-decoration: none;
  flex-shrink: 0;
}
.ah-topnav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ah-topnav-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.ah-topnav-brand {
  font-size: 14px;
  font-weight: 600;
  color: #1C1C1E;
  letter-spacing: -.02em;
  line-height: 1;
}
.ah-pp-topnav-products {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ah-topnav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #3C3C43;
  text-decoration: none;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.ah-topnav-item:hover { background: #F2F2F7; color: #1C1C1E; }
.ah-topnav-item.active { background: #F2F2F7; font-weight: 500; color: #1C1C1E; }

@media (max-width: 900px) {
  .ah-topnav-item span { display: none; }
  .ah-topnav-item { padding: 6px 8px; }
  .ah-topnav-brand { display: none; }
  .ah-pp-topnav { padding: 0 20px; }
}

@media (max-width: 768px) {
  .ah-article-feed { padding: 24px 20px 40px; }
  .ah-pp-sidebar { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SIDEBAR ACCORDION
   ═══════════════════════════════════════════════════════════════════════════════ */

.ah-sbi-ic {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ah-sbi-lbl {
  font-size: 13px;
  color: #3C3C43;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.ah-sidebar-section {
  margin-bottom: 1px;
}

.ah-sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
}

.ah-sidebar-section-header:hover {
  background: rgba(0, 0, 0, .05);
}

.ah-sidebar-section.open .ah-sidebar-section-header {
  background: rgba(0, 0, 0, .04);
}

.ah-sidebar-section-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ah-sidebar-chevron {
  font-size: 12px;
  color: #6C6C70;
  transition: transform .2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.ah-sidebar-section-articles {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 4px 10px 6px 40px;
}

.ah-sidebar-article {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 12.5px;
  color: #3C3C43;
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.ah-sidebar-article:hover {
  background: rgba(0, 0, 0, .05);
  color: #1C1C1E;
}

.ah-sidebar-article.active {
  background: rgba(0, 0, 0, .06);
  color: #1C1C1E;
  font-weight: 500;
}

.ah-sidebar-article-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C7C7CC;
  flex-shrink: 0;
  margin-top: 5px;
}

.ah-sidebar-article.active .ah-sidebar-article-dot {
  background: #007AFF;
}

.ah-sidebar-empty {
  font-size: 12px;
  color: #8E8E93;
  padding: 4px 8px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CATEGORY ARCHIVE PAGE  (taxonomy-help_category.php)
   ═══════════════════════════════════════════════════════════════════════════════ */

.ah-cat-feed {
  flex: 1;
  min-width: 0;
  padding: 32px 44px 56px;
  background: #fff;
}

.ah-cat-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid rgba(0, 0, 0, .07);
}

.ah-cat-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8E8E93;
  display: block;
  margin-bottom: 8px;
}

.ah-cat-title {
  font-size: 34px;
  font-weight: 700;
  color: #1C1C1E;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.ah-cat-subtitle {
  font-size: 14px;
  color: #8E8E93;
  letter-spacing: -.01em;
}

.ah-cat-article-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, .06);
  text-decoration: none;
  cursor: pointer;
  transition: background .12s, padding .12s, border-radius .12s;
}

.ah-cat-article-row:last-child {
  border-bottom: none;
}

.ah-cat-article-row:hover {
  background: #F9F9FB;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
  border-radius: 10px;
}

.ah-cat-article-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ah-cat-article-title {
  font-size: 15px;
  color: #1C1C1E;
  letter-spacing: -.02em;
  flex: 1;
  font-weight: 500;
}

.ah-cat-article-row:hover .ah-cat-article-title {
  color: #007AFF;
}

.ah-cat-article-meta {
  font-size: 12px;
  color: #8E8E93;
  white-space: nowrap;
  flex-shrink: 0;
}

.ah-cat-chevron {
  font-size: 14px;
  color: #C7C7CC;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   WHAT'S NEW PAGE  (templates/help-whats-new.php)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Sidebar breadcrumb ─────────────────────────────────────────────────────── */

.ah-pp-sidebar__breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
  padding: 0 16px;
}

.ah-pp-sidebar__breadcrumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
}

.ah-pp-sidebar__breadcrumb a:hover {
  color: rgba(255,255,255,.85);
}

.ah-pp-sidebar__breadcrumb span:last-child {
  color: rgba(255,255,255,.85);
  font-weight: 500;
}

/* ── Feed column ────────────────────────────────────────────────────────────── */

.ah-wn-feed {
  flex: 1;
  min-width: 0;
  padding: 32px 44px 64px;
  background: #fff;
}

/* ── Page header ────────────────────────────────────────────────────────────── */

.ah-wn-page-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid rgba(0,0,0,.07);
}

.ah-wn-page-header__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8E8E93;
  margin-bottom: 8px;
}

.ah-wn-page-header__title {
  font-size: 34px;
  font-weight: 700;
  color: #1C1C1E;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.ah-wn-page-header__subtitle {
  font-size: 14px;
  color: #8E8E93;
  letter-spacing: -.01em;
  margin: 0;
}

/* ── Filter tabs ────────────────────────────────────────────────────────────── */

.ah-wn-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ah-wn-tab {
  appearance: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  padding: 5px 12px;
  border-radius: 20px;
  background: #F2F2F7;
  color: #3C3C43;
  transition: background .12s, color .12s;
  letter-spacing: -.01em;
}

.ah-wn-tab:hover {
  background: #E5E5EA;
  color: #1C1C1E;
}

.ah-wn-tab--active {
  background: #1C1C1E;
  color: #fff;
}

.ah-wn-tab--active:hover {
  background: #1C1C1E;
  color: #fff;
}

/* ── Entry list ─────────────────────────────────────────────────────────────── */

.ah-wn-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Entry: column layout — badge on top, then the 3-column row below */
.ah-wn-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 0.5px solid rgba(0,0,0,.07);
}

.ah-wn-entry:first-child {
  padding-top: 0;
}

.ah-wn-entry:last-child {
  border-bottom: none;
}

/* Inner 3-column row: [date] [body] [thumb] — badge excluded so thumb aligns with title */
.ah-wn-entry__row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* ── Date column ────────────────────────────────────────────────────────────── */

.ah-wn-entry__date {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

.ah-wn-entry__date-main {
  font-size: 12px;
  font-weight: 500;
  color: #1C1C1E;
  letter-spacing: -.01em;
  line-height: 1.4;
}

.ah-wn-entry__date-rel {
  font-size: 11px;
  color: #8E8E93;
}

/* ── Entry body ─────────────────────────────────────────────────────────────── */

.ah-wn-entry__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ah-wn-entry__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 3px 8px;
  border-radius: 20px;
  align-self: flex-start;
}

.ah-wn-entry__title {
  font-size: 17px;
  font-weight: 600;
  color: #1C1C1E;
  letter-spacing: -.025em;
  line-height: 1.35;
  margin: 0;
}

.ah-wn-entry__desc {
  font-size: 14px;
  color: #3C3C43;
  line-height: 1.6;
  letter-spacing: -.01em;
  margin: 0;
}

.ah-wn-entry__link {
  font-size: 13px;
  font-weight: 500;
  color: #007AFF;
  text-decoration: none;
  letter-spacing: -.01em;
  align-self: flex-start;
}

.ah-wn-entry__link:hover {
  text-decoration: underline;
}

/* ── Thumbnail column ───────────────────────────────────────────────────────── */

.ah-wn-entry__thumb {
  width: 176px;
  flex-shrink: 0;
}

.ah-wn-thumb-img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.ah-wn-thumb-placeholder {
  width: 100%;
  height: 112px;
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
}

.ah-wn-thumb-placeholder__bar {
  height: 6px;
  flex-shrink: 0;
}

.ah-wn-thumb-placeholder__body {
  flex: 1;
  background: #F9F9FB;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 12px 14px;
}

.ah-wn-thumb-skel {
  height: 8px;
  border-radius: 4px;
  background: #E5E5EA;
}

.ah-wn-thumb-skel--full         { width: 100%; }
.ah-wn-thumb-skel--three-quarter { width: 75%; }
.ah-wn-thumb-skel--half         { width: 50%; }

/* ── Entry meta row (hub page: badge + portal pill side by side) ────────────── */

.ah-wn-entry__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ah-wn-entry__portal-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 3px 8px;
  border-radius: 20px;
}

/* ── Empty state ────────────────────────────────────────────────────────────── */

.ah-wn-empty {
  padding: 40px 0;
  text-align: center;
  color: #8E8E93;
  font-size: 14px;
}

/* ── Announcement detail header ──────────────────────────────────────────────── */

.ah-ann-header {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid rgba(0,0,0,.07);
}

.ah-ann-header__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ah-ann-header__date {
  font-size: 12px;
  font-weight: 500;
  color: #8E8E93;
  letter-spacing: -.01em;
}

.ah-ann-header__title {
  font-size: 28px;
  font-weight: 700;
  color: #1C1C1E;
  letter-spacing: -.04em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.ah-ann-header__thumb {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 0.5px solid rgba(0,0,0,.07);
}

.ah-ann-header__thumb img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.ah-ann-lede {
  font-size: 16px;
  color: #3C3C43;
  line-height: 1.65;
  letter-spacing: -.01em;
  margin: 0;
}

.ah-ann-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #007AFF;
  text-decoration: none;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(0,0,0,.07);
  width: 100%;
}

.ah-ann-back:hover {
  text-decoration: underline;
}

/* =============================================================================
   Portal Forms & Downloads page
   ============================================================================= */

/* ── Page header ──────────────────────────────────────────────────────────── */
.ah-forms-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0 24px;
  border-bottom: 0.5px solid rgba(0,0,0,.08);
  margin-bottom: 32px;
}

.ah-forms-header__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ah-forms-header__title {
  font-size: 22px;
  font-weight: 700;
  color: #1C1C1E;
  letter-spacing: -.02em;
  margin: 0 0 3px;
}

.ah-forms-header__subtitle {
  font-size: 14px;
  color: #8E8E93;
  margin: 0;
}

/* ── Form groups ──────────────────────────────────────────────────────────── */
.ah-forms-group {
  margin-bottom: 36px;
}

.ah-forms-group__title {
  font-size: 11px;
  font-weight: 700;
  color: #8E8E93;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 14px;
}

/* ── Card grid ────────────────────────────────────────────────────────────── */
.ah-forms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .ah-forms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ah-forms-grid { grid-template-columns: 1fr; }
}

.ah-forms-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 0.5px solid rgba(0,0,0,.09);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.ah-forms-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.ah-forms-card__icon-area {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ah-forms-card__body {
  flex: 1;
  padding: 13px 15px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ah-forms-card__title {
  font-size: 13px;
  font-weight: 600;
  color: #1C1C1E;
  line-height: 1.35;
  margin: 0;
}

.ah-forms-card__desc {
  font-size: 12px;
  color: #8E8E93;
  line-height: 1.45;
  margin: 0;
}

.ah-forms-card__footer {
  padding: 10px 15px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 0.5px solid rgba(0,0,0,.06);
}

.ah-forms-card__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8E8E93;
  background: #F2F2F7;
  padding: 3px 7px;
  border-radius: 5px;
}

.ah-forms-card__download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: transparent;
  color: #007AFF;
  border: 1.5px solid #007AFF;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, transform .12s;
  white-space: nowrap;
}

.ah-forms-card__download:hover {
  background: #007AFF;
  color: #fff;
  transform: translateY(-1px);
}

.ah-forms-card__download:active {
  transform: translateY(0);
}

.ah-forms-card__download--pending {
  background: transparent;
  color: #C7C7CC;
  border-color: #C7C7CC;
  cursor: default;
  pointer-events: none;
  opacity: .7;
}

.ah-forms-card__download--pending:hover {
  background: transparent;
  color: #C7C7CC;
  transform: none;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.ah-forms-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 72px 24px;
  text-align: center;
  color: #8E8E93;
  font-size: 14px;
}

.ah-forms-empty p {
  margin: 0;
}

.ah-forms-empty__edit {
  font-size: 13px;
  color: #007AFF;
  text-decoration: none;
}

.ah-forms-empty__edit:hover {
  text-decoration: underline;
}

/* ── Forms toolbar (search + sort) ───────────────────────────────────────── */
.ah-forms-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 20px;
}

.ah-forms-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F2F2F7;
  border-radius: 14px;
  padding: 10px 14px;
  color: #8E8E93;
}

.ah-forms-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  outline: none;
}

.ah-forms-search__input::placeholder {
  color: #8E8E93;
}

.ah-forms-sort-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border: 0.5px solid rgba(0, 0, 0, .15);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.ah-forms-sort-btn:hover {
  background: var(--color-bg-secondary);
  border-color: rgba(0, 0, 0, .22);
}

.ah-forms-sort-btn--active {
  background: #EAF4FF;
  border-color: #007AFF;
  color: #007AFF;
}
