

/* ============================================================
   PRIME HARBOR INSURANCE Ã¢â‚¬â€ AUTHOR BYLINE MODULE STYLES
   File: author-byline-styles.css
   Version: 1.0
   Last Updated: 2026-05-22
   Worker Route: /author-byline/styles.css

   Foundation Dependency: phi-product-page-foundation (site-wide)
   Consumes: --phi-navy-deep, --phi-navy, --phi-navy-light,
   --phi-gold, --phi-gold-deep, --phi-gold-soft,
   --phi-cream, --phi-cream-warm, --phi-charcoal, --phi-charcoal-soft,
   --phi-font-serif, --phi-font-sans

   Architecture: Three components rendered from a single module Ã¢â‚¬â€
   .phi-author-byline (compact byline at top of page),
   .phi-author-spotlight (expert spotlight at bottom of page),
   .phi-disclosures-modal (modal triggered from byline).

   Foundation specificity defense: The foundation snippet's defensive
   .phi-page a:not(...) rule at specificity (0,7,1) overrides class-based
   color declarations. Color declarations on links inside .phi-page below
   use !important with documentary inline comments per Methodology v10
   Pattern 43.
   ============================================================ */

/* ============================================================
   COMPACT BYLINE Ã¢â‚¬â€ sub-component A
   Sits at top of consuming page immediately below H1.
   ============================================================ */

.phi-author-byline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  margin: 8px 0 24px 0;
  border-top: 1px solid rgba(11, 31, 58, 0.08);
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  font-family: var(--phi-font-sans, system-ui, -apple-system, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--phi-charcoal-soft, #444444);
}

.phi-author-byline__photos {
  display: flex;
  flex-shrink: 0;
  position: relative;
}

.phi-author-byline__photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--phi-cream, #F7F5F0);
  background: var(--phi-navy-deep, #0B1F3A);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.phi-author-byline__photo + .phi-author-byline__photo {
  margin-left: -12px;
}

.phi-author-byline__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.phi-author-byline__author {
  font-weight: 500;
  color: var(--phi-charcoal, #1A1A1A);
  position: relative;
}

.phi-author-byline__role-label {
  font-weight: 400;
  color: var(--phi-charcoal-soft, #444444);
}

.phi-author-byline__author-link {
  /* !important defends against foundation .phi-page a:not(...) rule at (0,7,1) per Pattern 43 */
  color: var(--phi-navy, #1B3A6B) !important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--phi-navy-light, #2A4F8A);
  transition: color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.phi-author-byline__author-link:hover,
.phi-author-byline__author-link:focus-visible {
  /* !important defends against foundation .phi-page a:not(...) rule at (0,7,1) per Pattern 43 */
  color: var(--phi-gold-deep, #A88842) !important;
  border-bottom-color: var(--phi-gold-deep, #A88842);
}

.phi-author-byline__author-link:focus-visible {
  outline: 2px solid var(--phi-gold, #C9A961);
  outline-offset: 3px;
  border-radius: 2px;
}

.phi-author-byline__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--phi-charcoal-soft, #444444);
  margin-top: 4px;
}

.phi-author-byline__separator {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--phi-charcoal-soft, #444444);
  opacity: 0.5;
  vertical-align: middle;
}

/* DISCLOSURES BUTTON Ã¢â‚¬â€ Defends against Hello/Elementor button hover bleed.
   The pink/magenta artifact on hover came from the parent theme's default
   button:hover background. Force transparent on all states. */
.phi-author-byline__disclosures {
  /* !important defends against foundation rule + theme button styling per Pattern 43 */
  color: var(--phi-navy, #1B3A6B) !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: underline;
  text-decoration-color: rgba(27, 58, 107, 0.3);
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0 !important;
  margin: 0;
  font: inherit;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  line-height: inherit;
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.phi-author-byline__disclosures:hover,
.phi-author-byline__disclosures:focus,
.phi-author-byline__disclosures:focus-visible,
.phi-author-byline__disclosures:active {
  /* !important defends against foundation rule + theme button styling per Pattern 43 */
  color: var(--phi-gold-deep, #A88842) !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  text-decoration: underline;
  text-decoration-color: var(--phi-gold-deep, #A88842);
  box-shadow: none !important;
}

.phi-author-byline__disclosures:focus-visible {
  outline: 2px solid var(--phi-gold, #C9A961);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   AUTHOR TOOLTIP Ã¢â‚¬â€ appears on hover/focus of byline author link.
   Hover-bridge handled in JS via setTimeout-delayed hide.
   Viewport collision flips to .phi-author-byline-tooltip--above.
   Long bios scroll inside max-height container.
   ============================================================ */

.phi-author-byline-tooltip {
  display: none;
  position: fixed;
  z-index: 9000;
  /* top, left, and width are set by JS at open time */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  background: var(--phi-cream, #F7F5F0);
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.18);
  font-family: var(--phi-font-sans, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--phi-charcoal, #1A1A1A);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  /* Firefox custom scrollbar matches the TOC gold scrollbar pattern */
  scrollbar-width: thin;
  scrollbar-color: var(--phi-gold, #C9A961) transparent;
}

/* WebKit and Blink custom scrollbar (Safari, Chrome, Edge, iOS Safari) */
.phi-author-byline-tooltip::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.phi-author-byline-tooltip::-webkit-scrollbar-track {
  background: transparent;
}

.phi-author-byline-tooltip::-webkit-scrollbar-thumb {
  background: var(--phi-gold, #C9A961);
  border-radius: 4px;
}

.phi-author-byline-tooltip::-webkit-scrollbar-thumb:hover {
  background: var(--phi-gold-deep, #A88842);
}

.phi-author-byline-tooltip[data-tooltip-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Viewport-collision-flip variant: JS sets coordinates; this variant only adjusts the entry transform offset direction */
.phi-author-byline-tooltip--above {
  transform: translateY(4px);
}

.phi-author-byline-tooltip--above[data-tooltip-open="true"] {
  transform: translateY(0);
}

.phi-author-byline-tooltip__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.phi-author-byline-tooltip__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--phi-navy-deep, #0B1F3A);
  flex-shrink: 0;
}

.phi-author-byline-tooltip__identity {
  min-width: 0;
}

.phi-author-byline-tooltip__name {
  font-family: var(--phi-font-serif, Georgia, serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--phi-navy-deep, #0B1F3A);
  margin: 0 0 2px 0;
}

.phi-author-byline-tooltip__title {
  font-size: 12px;
  color: var(--phi-charcoal-soft, #444444);
  margin: 0;
  line-height: 1.4;
}

.phi-author-byline-tooltip__bio {
  font-size: 13px;
  line-height: 1.55;
  color: var(--phi-charcoal-soft, #444444);
  margin: 0 0 12px 0;
}

.phi-author-byline-tooltip__credentials {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.phi-author-byline-tooltip__credential-item {
  position: relative;
  padding-left: 20px;
  font-size: 12px;
  color: var(--phi-charcoal, #1A1A1A);
  margin-bottom: 6px;
  line-height: 1.4;
}

.phi-author-byline-tooltip__credential-item::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--phi-gold-deep, #A88842);
  font-weight: 700;
}

.phi-author-byline-tooltip__profile-link {
  /* !important defends against foundation .phi-page a:not(...) rule at (0,7,1) per Pattern 43 */
  display: inline-block;
  color: var(--phi-navy, #1B3A6B) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--phi-navy-light, #2A4F8A);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.phi-author-byline-tooltip__profile-link:hover,
.phi-author-byline-tooltip__profile-link:focus-visible {
  /* !important defends against foundation .phi-page a:not(...) rule at (0,7,1) per Pattern 43 */
  color: var(--phi-gold-deep, #A88842) !important;
  border-bottom-color: var(--phi-gold-deep, #A88842);
}

/* ============================================================
   EXPERT SPOTLIGHT Ã¢â‚¬â€ sub-component B
   Constrained to 1350px max-width per operator brand spec.
   Cream-warm card with rounded corners, no longer full-bleed.
   ============================================================ */

.phi-author-spotlight {
  display: block;
  width: calc(100% - 48px);
  max-width: 1350px;
  margin: 60px auto 0;
  padding: 56px 48px;
  background: var(--phi-cream-warm, #F2EEE3);
  border: 1px solid rgba(11, 31, 58, 0.06);
  border-radius: 16px;
  font-family: var(--phi-font-sans, system-ui, sans-serif);
  color: var(--phi-charcoal, #1A1A1A);
  box-sizing: border-box;
}

.phi-author-spotlight__inner {
  display: block;
}

.phi-author-spotlight__pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201, 169, 97, 0.15);
  color: var(--phi-gold-deep, #A88842);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 16px;
}

.phi-author-spotlight__heading {
  font-family: var(--phi-font-serif, Georgia, serif);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--phi-navy-deep, #0B1F3A);
  margin: 0 0 32px 0;
  max-width: 760px;
}

.phi-author-spotlight__body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.phi-author-spotlight__photo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phi-author-spotlight__photo-frame {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--phi-navy-deep, #0B1F3A);
  border: 4px solid var(--phi-gold, #C9A961);
  overflow: hidden;
  margin-bottom: 16px;
}

.phi-author-spotlight__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phi-author-spotlight__experience-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--phi-cream, #F7F5F0);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--phi-charcoal, #1A1A1A);
  margin-bottom: 16px;
}

.phi-author-spotlight__experience-badge::before {
  content: "\2713";
  color: var(--phi-gold-deep, #A88842);
  font-weight: 700;
}

.phi-author-spotlight__author-name {
  font-family: var(--phi-font-serif, Georgia, serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--phi-navy-deep, #0B1F3A);
  margin: 0 0 4px 0;
}

.phi-author-spotlight__author-title {
  font-size: 13px;
  color: var(--phi-charcoal-soft, #444444);
  margin: 0;
  line-height: 1.4;
}

.phi-author-spotlight__content {
  min-width: 0;
}

.phi-author-spotlight__credentials {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.phi-author-spotlight__credential-item {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--phi-charcoal, #1A1A1A);
  margin-bottom: 10px;
}

.phi-author-spotlight__credential-icon {
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  color: var(--phi-gold-deep, #A88842);
  flex-shrink: 0;
}

.phi-author-spotlight__bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--phi-charcoal-soft, #444444);
  margin: 0 0 24px 0;
}

.phi-author-spotlight__cta {
  /* !important defends against foundation .phi-page a:not(...) rule at (0,7,1) per Pattern 43 */
  display: inline-block;
  padding: 14px 28px;
  background: var(--phi-gold, #C9A961) !important;
  background-color: var(--phi-gold, #C9A961) !important;
  color: var(--phi-navy-deep, #0B1F3A) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 6px;
  border: 2px solid var(--phi-gold, #C9A961) !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.phi-author-spotlight__cta:hover,
.phi-author-spotlight__cta:focus-visible {
  /* !important defends against foundation rule + theme button styling per Pattern 43 */
  background: var(--phi-gold-deep, #A88842) !important;
  background-color: var(--phi-gold-deep, #A88842) !important;
  border-color: var(--phi-gold-deep, #A88842) !important;
  color: var(--phi-cream, #F7F5F0) !important;
}

.phi-author-spotlight__cta:focus-visible {
  outline: 3px solid var(--phi-navy-deep, #0B1F3A);
  outline-offset: 3px;
}

.phi-author-spotlight__cta:active {
  transform: translateY(1px);
}

/* ============================================================
   DISCLOSURES MODAL Ã¢â‚¬â€ triggered from byline disclosures link.
   Close button hardened against theme button color bleed.
   ============================================================ */

.phi-disclosures-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
  overflow-y: auto;
}

.phi-disclosures-modal[data-modal-open="true"] {
  display: flex;
}

.phi-disclosures-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.phi-disclosures-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--phi-cream, #F7F5F0);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  padding: 32px;
  font-family: var(--phi-font-sans, system-ui, sans-serif);
  color: var(--phi-charcoal, #1A1A1A);
}

/* Modal close button Ã¢â‚¬â€ Defends against theme button color bleed.
   The pink-at-rest artifact came from Hello/Elementor default button colors.
   Force transparent background and explicit gray-to-navy color on all states. */
.phi-disclosures-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer;
  color: var(--phi-charcoal-soft, #444444) !important;
  font-family: inherit !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  line-height: 1;
  padding: 0 !important;
  margin: 0;
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.phi-disclosures-modal__close:hover,
.phi-disclosures-modal__close:focus,
.phi-disclosures-modal__close:focus-visible,
.phi-disclosures-modal__close:active {
  background: rgba(11, 31, 58, 0.08) !important;
  background-color: rgba(11, 31, 58, 0.08) !important;
  background-image: none !important;
  color: var(--phi-navy-deep, #0B1F3A) !important;
  box-shadow: none !important;
}

.phi-disclosures-modal__close:focus-visible {
  outline: 2px solid var(--phi-gold, #C9A961);
  outline-offset: 2px;
}

.phi-disclosures-modal__title {
  font-family: var(--phi-font-serif, Georgia, serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--phi-navy-deep, #0B1F3A);
  margin: 0 0 24px 0;
  padding-right: 40px;
}

.phi-disclosures-modal__section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.phi-disclosures-modal__section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.phi-disclosures-modal__section-title {
  font-family: var(--phi-font-serif, Georgia, serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--phi-navy-deep, #0B1F3A);
  margin: 0 0 8px 0;
}

.phi-disclosures-modal__section-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--phi-charcoal-soft, #444444);
  margin: 0 0 10px 0;
}

.phi-disclosures-modal__learn-more {
  /* !important defends against foundation .phi-page a:not(...) rule at (0,7,1) per Pattern 43 */
  display: inline-block;
  color: var(--phi-navy, #1B3A6B) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid var(--phi-navy-light, #2A4F8A);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.phi-disclosures-modal__learn-more:hover,
.phi-disclosures-modal__learn-more:focus-visible {
  /* !important defends against foundation .phi-page a:not(...) rule at (0,7,1) per Pattern 43 */
  color: var(--phi-gold-deep, #A88842) !important;
  border-bottom-color: var(--phi-gold-deep, #A88842);
}

.phi-disclosures-modal__learn-more:focus-visible {
  outline: 2px solid var(--phi-gold, #C9A961);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .phi-author-spotlight {
    padding: 40px 28px;
  }
  .phi-author-spotlight__body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .phi-author-spotlight__photo-frame {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 600px) {
  .phi-author-spotlight {
    width: calc(100% - 24px);
    padding: 32px 22px;
    margin-top: 40px;
  }
  .phi-disclosures-modal__dialog {
    padding: 24px;
  }
  .phi-disclosures-modal__title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .phi-author-byline {
    gap: 12px;
    font-size: 13px;
  }
  .phi-author-byline__photo {
    width: 36px;
    height: 36px;
  }
  .phi-author-byline__details {
    font-size: 12px;
  }
}

/* ============================================================
   PRINT Ã¢â‚¬â€ hide interactive elements
   ============================================================ */

@media print {
  .phi-author-byline__disclosures,
  .phi-disclosures-modal,
  .phi-author-byline-tooltip,
  .phi-author-spotlight__cta {
    display: none !important;
  }
}

  