/* =========================================================
   Surgeon cards
   ========================================================= */

/* Display logic */
.surgeon-card p.short-desc,
body.page--state .surgeon-card p.long-desc,
body.page--insurance .surgeon-card p.long-desc {
  display: none;
}

.detailed-desc {
  display: none;
}

body.page--state .surgeon-card-header,
body.page--insurance .surgeon-card-header {
  display: none;
}

body.page--state .detailed-desc,
body.page--insurance .detailed-desc {
  display: block;
}

/* Base card */
body #content .surgeon-card {
  position: relative;
  clear: both;
  overflow: visible;

  margin: 0 0 24px;
  padding: 20px 22px;

  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(22, 59, 92, 0.035);

  color: var(--text-body);
}

/* Header / title */
body #content .surgeon-card-header {
  margin: 0 0 8px;
}

body #content .surgeon-card-header h3 {
  margin: 0;

  color: var(--text-heading) !important;
  font-family: "Frutiger", "Frutiger LT Std", "Frutiger Next", Arial, sans-serif !important;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body #content .surgeon-card-header h3 a {
  color: var(--link-color) !important;
  text-decoration: none;
}

body #content .surgeon-card-header h3 a:hover,
body #content .surgeon-card-header h3 a:focus {
  color: var(--link-hover) !important;
  text-decoration: underline;
}

/* Headshot */
body #content .surgeon-card img.alignleft,
body #content .surgeon-card img.headshot {
  float: left;

  width: 96px;
  height: 96px;
  object-fit: cover;

  margin: 2px 16px 8px 0;

  border: 3px solid #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(22, 59, 92, 0.16);
}

/* Description text */
body #content .surgeon-card p {
  margin: 0.7em 0;

  color: var(--text-body);
  font-size: 15.5px;
  line-height: 1.55;
}

body #content .surgeon-card p:last-child {
  margin-bottom: 0;
}

body #content .surgeon-card p.short-desc {
  font-size: 15px;
}

body #content .surgeon-card p a {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: none;
}

body #content .surgeon-card p a:hover,
body #content .surgeon-card p a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Metadata / location if present */
body #content .surgeon-card h5.surgeon-location {
  margin: 4px 0 8px;

  color: #5f7384;
  font-family: "Source Sans 3", "Source Sans Pro", "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

/* Payment icon line if present */
body #content .surgeon-card p.payment-types-icons {
  margin-top: 10px;

  color: #5f7384;
  font-size: 14px;
  line-height: 1.4;
}

/* New / updated badge */
body #content .surgeon-card {
  position: relative;
}

body #content .surgeon-card .ribbonbox {
  position: absolute;
  top: -16px;
  right: 14px;
  z-index: 3;
}

body #content .surgeon-card .ribbon,
body #content .surgeon-card .ribbon span {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  overflow: visible;

  background: transparent;
  box-shadow: none;
  transform: none;
  -webkit-transform: none;
}

body #content .surgeon-card .ribbon span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #e7f3ec;
border: 1px solid #c8dfd1;
color: #2f6b4f;
  font-family: "Source Sans 3", "Source Sans Pro", "Open Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

body #content .surgeon-card .ribbon span::before,
body #content .surgeon-card .ribbon span::after {
  content: none;
  display: none;
}

/* Homepage featured cards */
body#home #content .featuredsurgeons .surgeon-card-featured {
  padding: 18px 20px;
}

body#home #content .featuredsurgeons .surgeon-card-featured h5.surgeon-location,
body#home #content .featuredsurgeons .surgeon-card-featured p.long-desc,
body#home #content .featuredsurgeons .surgeon-card-featured p.payment-types-icons,
body#home #content .featuredsurgeons .surgeon-card-featured .ribbonbox {
  display: none !important;
}

body#home #content .featuredsurgeons .surgeon-card-featured p.short-desc {
  display: block !important;
}

body#home #content .featuredsurgeons .surgeon-card-featured .surgeon-card-header h3 {
  display: block !important;
  margin: 0 0 8px !important;

  font-size: 1.45rem !important;
  line-height: 1.15 !important;
}

body#home #content .featuredsurgeons .surgeon-card-featured .surgeon-card-header h3 img.alignleft {
  float: left !important;

  width: 88px !important;
  height: 88px !important;

  margin: 2px 16px 8px 0 !important;
}

body#home #content .featuredsurgeons .surgeon-card-featured .surgeon-card-header h3 > a:last-child {
  display: inline !important;

  color: var(--link-color) !important;
  font-size: 1.75rem !important;
  line-height: 1.15 !important;
  text-decoration: none;
}

body#home #content .featuredsurgeons .surgeon-card-featured p {
  margin: 0 !important;

  font-size: 14.5px !important;
  line-height: 1.45 !important;
}

/* Surgeon index detailed cards */
body#surgeonsindex #content hr {
	height: 0;
	margin: 8px 0 18px;
	border: 0;
	background: transparent;
}

body#surgeonsindex #content .partners .row {
  margin-left: -8px;
  margin-right: -8px;
}

body#surgeonsindex #content .partners .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}


body#surgeonsindex #content .surgeon-card-detailed {
 margin-bottom: 18px;
  padding: 16px 18px;
  box-shadow: none;
  border-color: #e4ebf0;
  background: rgba(255, 255, 255, 0.72);
}  

body#surgeonsindex #content .surgeon-card-detailed img.alignleft {
  width: 82px !important;
  height: 82px !important;

  margin: 2px 14px 6px 0 !important;
}

body#surgeonsindex #content .surgeon-card-detailed .surgeon-card-header h3,
body#surgeonsindex #content .surgeon-card-detailed .surgeon-card-header h3 a {
  color: var(--link-color) !important;
  font-size: 1.5rem !important;
  line-height: 1.1 !important;
}

body#surgeonsindex #content .surgeon-card-detailed p {
  margin: 0.45em 0 !important;

  font-size: 14px !important;
  line-height: 1.42 !important;
}

/* Context-specific badge hiding */
body.procedure .surgeon-card-featured .ribbonbox,
body.page--state .surgeon-card-detailed .ribbonbox,
body.page--insurance .surgeon-card-detailed .ribbonbox {
  display: none;
}

/* State/insurance large-screen headshot behavior */
@media (min-width: 768px) {
  body.page--state img.headshot {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  
  body#surgeonsindex #content hr {
	display: none;
}
  
  body #content .surgeon-card {
    padding: 18px;
  }

  body #content .surgeon-card img.alignleft,
  body #content .surgeon-card img.headshot,
  body#home #content .surgeon-card-featured img.alignleft {
    width: 78px;
    height: 78px;
    margin-right: 13px;
  }

  body #content .surgeon-card-header h3,
  body#home #content .surgeon-card-featured .surgeon-card-header h3 {
    font-size: 1.2rem;
  }

  body #content .surgeon-card p {
    font-size: 14.5px;
  }
}

/* Legacy custom.css override */
p.dept-heading {
  border-bottom: none;
}
