@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@700&display=swap");

:root {
  --ink-strong: #171a1f;
  --ink-muted: #565d6d;
  --line: #dee1e6;
  --surface: rgba(255, 255, 255, 0.6);
  --white: #ffffff;
  --soft: #f3f4f6;
  --soft-green: rgba(46, 121, 106, 0.15);
  --green: #2e796a;
  --red: #e53e3e;
  --panel: rgba(244, 251, 249, 0.3);
  --shadow-1: 0 0 2px rgba(23, 26, 31, 0.08);
  --shadow-2: 0 1px 2.5px rgba(23, 26, 31, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #fcfcfd;
  color: var(--ink-strong);
  font-family: "Inter", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

body .navbar,
body .web-header,
body .page-breadcrumbs,
body .page-header-wrapper {
  display: none !important;
}

body .page-footer,
body .web-footer,
body .footer,
body .fm-footer {
  display: none !important;
}

body.embedded-view .navbar,
body.embedded-view .web-header,
body.embedded-view .page-breadcrumbs,
body.embedded-view .page-header-wrapper,
body.embedded-view .page-footer,
body.embedded-view .web-footer,
body.embedded-view .footer,
body.embedded-view .fm-footer {
  display: none !important;

}

body.embedded-view .ap-user-wrap {
  display: none !important;
}

.ap-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 64px;
  background: var(--surface);
  box-shadow: var(--shadow-1), var(--shadow-2);
  backdrop-filter: blur(8px);
}

.ap-topbar-inner,
.fm-shell,
.fm-loading,
.fm-error {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.ap-topbar-inner {
  min-height: 64px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ap-brand-group,
.ap-brand,
.ap-breadcrumbs,
.ap-actions,
.ap-user-btn {
  display: flex;
  align-items: center;
}

.ap-brand-group {
  gap: 24px;
  min-width: 0;
}

.ap-brand {
  gap: 14px;
  color: var(--ink-strong);
  text-decoration: none;
}

.ap-brand-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ap-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ap-brand-text {
  font-family: "Lora", serif;
  font-size: 20px;
  line-height: 20px;
  font-weight: 700;
}

.ap-breadcrumbs {
  gap: 14px;
  font-size: 14px;
  line-height: 20px;
}

.ap-breadcrumbs a,
.ap-breadcrumbs span {
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}

.ap-breadcrumbs span:last-child {
  color: var(--ink-strong);
}

.ap-actions {
  gap: 18px;
  margin-left: auto;
}

.ap-bell-btn {
  position: relative;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}

.ap-bell-btn svg {
  width: 20px;
  height: 20px;
}

.ap-notification-dot {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--red);
}

.ap-topbar-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

.ap-user-wrap {
  position: relative;
}

.ap-user-btn {
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.ap-user-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.ap-user-nameplate {
  font-size: 14px;
  line-height: 14px;
  font-weight: 500;
  color: var(--ink-strong);
}

.ap-user-role {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}

.ap-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d9dde5;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 600;
}

.ap-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-user-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
  display: none;
}

.ap-user-wrap.open .ap-user-menu {
  display: block;
}

.ap-user-name {
  margin: 0 0 8px;
  padding: 6px 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}

.ap-user-menu a,
.ap-login-link {
  color: var(--ink-strong);
  text-decoration: none;
}

.ap-user-menu a {
  display: block;
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
}

.ap-user-menu a:hover {
  background: #f8fafc;
}

.ap-login-link {
  font-size: 14px;
  font-weight: 500;
}

.fm-loading,
.fm-error {
  padding: 40px 24px 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 24px;
}

.fm-error-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.fm-error-card h2 {
  margin: 0 0 10px;
  font-family: "Lora", serif;
  font-size: 24px;
  line-height: 32px;
}

.fm-error-card p {
  margin: 0;
}

.fm-shell {
  padding: 48px 24px 72px;
        background: #fcfcfd;
}

.fm-page-kicker {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.fm-page-kicker a {
  color: var(--ink-muted);
  text-decoration: none;
}

.fm-page-kicker a:hover {
  color: var(--ink-strong);
}

.fm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.fm-column {
  min-width: 0;
}

.fm-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-1), var(--shadow-2);
}

.fm-hero {
  padding: 28px;
  background: linear-gradient(180deg, rgba(244, 251, 249, 0.72) 0%, #ffffff 100%);
}

.fm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.fm-person {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fm-avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
}

.fm-avatar-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(46, 121, 106, 0.18), rgba(244, 251, 249, 0.1));
}

.fm-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.9);
}

.fm-eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fm-name {
  margin: 0;
  color: var(--ink-strong);
  font-family: "Lora", serif;
  font-size: 38px;
  line-height: 46px;
  font-weight: 700;
}

.fm-sub {
  margin: 12px 0 0;
  max-width: 580px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 30px;
}

.fm-meta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
}

.fm-badge.is-muted {
  background: #f3f4f6;
  color: var(--ink-muted);
}

.fm-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.fm-cta-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 20px;
  text-align: right;
}

.fm-btn {
  min-width: 196px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 12px;
  background: var(--ink-strong);
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-align: center;
}

.fm-btn:hover {
  background: #222834;
  color: var(--white);
}

.fm-content-stack {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.fm-sec {
  padding: 28px;
}

.fm-h3 {
  margin: 0 0 16px;
  color: var(--ink-strong);
  font-family: "Lora", serif;
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
}

.fm-richtext,
.fm-richtext p,
.fm-richtext ul,
.fm-richtext ol,
.fm-richtext li,
.fm-sidep {
  color: var(--ink-muted);
}

.fm-richtext p,
.fm-richtext ul,
.fm-richtext ol,
.fm-sidep {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 30px;
}

.fm-richtext ul,
.fm-richtext ol {
  padding-left: 20px;
}

.fm-richtext li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 28px;
}

.fm-side-stack {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.fm-side-card {
  padding: 24px;
  background: var(--panel);
}

.fm-side-card.is-white {
  background: var(--white);
}

.fm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fm-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.fm-empty-copy {
  margin: 0;
  color: #9ca3af;
  font-size: 15px;
  line-height: 24px;
}

.fm-side-richtext p,
.fm-side-richtext ul,
.fm-side-richtext ol,
.fm-side-richtext li {
  font-size: 15px;
  line-height: 26px;
}

.fm-side-richtext p:last-child,
.fm-richtext p:last-child,
.fm-sidep:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .fm-layout {
    grid-template-columns: 1fr;
  }

  .fm-side-stack {
    position: static;
    top: auto;
  }
}

@media (max-width: 900px) {
  .ap-topbar-inner {
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .ap-brand-group {
    gap: 16px;
    flex-wrap: wrap;
  }

  .fm-shell,
  .fm-loading,
  .fm-error {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fm-hero-grid {
    grid-template-columns: 1fr;
  }

  .fm-hero-cta {
    align-items: flex-start;
  }

  .fm-cta-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .ap-actions {
    width: 100%;
    justify-content: space-between;
  }

  .fm-shell {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .fm-loading,
  .fm-error,
  .fm-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fm-page-kicker {
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .fm-hero,
  .fm-sec,
  .fm-side-card {
    padding: 20px;
  }

  .fm-person {
    align-items: flex-start;
    gap: 16px;
  }

  .fm-avatar-wrap {
    width: 88px;
    height: 88px;
  }

  .fm-name {
    font-size: 28px;
    line-height: 34px;
  }

  .fm-sub,
  .fm-richtext p,
  .fm-richtext ul,
  .fm-richtext ol,
  .fm-richtext li,
  .fm-sidep {
    font-size: 15px;
    line-height: 26px;
  }

  .fm-h3 {
    font-size: 24px;
    line-height: 30px;
  }

  .fm-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body.embedded-view .ap-topbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid #f1f2f4;
  }

  body.embedded-view .ap-topbar-inner {
    position: relative;
    min-height: 48px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  body.embedded-view .ap-brand-group {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -54%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
  }

  body.embedded-view .ap-brand {
    display: inline-flex !important;
    justify-self: auto;
  }

  body.embedded-view .ap-breadcrumbs,
  body.embedded-view .ap-breadcrumbs,
  body.embedded-view .ap-topbar-divider,
  body.embedded-view .ap-user-copy,
  body.embedded-view .ap-login-link {
    display: none !important;
  }

  body.embedded-view .ap-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    margin-left: 0 !important;
    justify-content: flex-end;
    gap: 0;
  }

  body.embedded-view .ap-bell-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
  }

  body.embedded-view .fm-page-kicker {
    display: none !important;
    
  }
}
