/* GEM - Expert Contributions (to-B 038, 19 Nov 2026): expert-contributions.html, the contribution-*.html reading pages
   and the section on professional-education.html. The Professional Education Center's palette (navy, the pale blue
   cards, gold); no stock photo, no generated face: an article's card has a drawn page in the navy, a video its cover.
   One item in a section: one wide card (the picture, the words, the copyright note and the button side by side); two or
   more: the grid. The copyright note stands in full beside the download button, before anyone downloads.
   Loaded after styles.css and education-center.css. */

.xc-page { background: var(--white, #fff); }
.xc-band .pec-band__title { overflow-wrap: anywhere; }
.xc-note { margin: 14px 0 0; max-width: 64ch; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.xc-reading .xc-note, .xc-article .xc-note { color: var(--text-warm, #4a4458); }

.xc-sec { padding: 48px 0 8px; font-family: var(--font-body); color: var(--text, #2b2340); }
.xc-sec + .xc-sec { padding-top: 32px; }
.xc-h2 { margin: 0 0 20px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; color: var(--navy, #14325C); }

.xc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.xc-grid--one { grid-template-columns: minmax(0, 1fr); }

.xc-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 16px; background: #EEF3FA; border: 1px solid rgba(20, 50, 92, 0.14); color: var(--navy, #14325C); scroll-margin-top: 96px; }
.xc-card:target { box-shadow: 0 0 0 3px var(--gold, #B8862F); }
.xc-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #14325C 0%, #1F4A80 100%); color: #E9C77B; }
.xc-art svg { width: 64px; height: 80px; }
.xc-art--video { background: linear-gradient(135deg, #0E2340 0%, #14325C 100%); }
.xc-cover { position: relative; aspect-ratio: 16 / 9; background: #0E2340; }
/* to-B 039: an article's cover plate ("Cover A") - the professional navy from top to bottom (--navy-deep #0E2340 -> #1F4A80, the
   pair the page's own cards use), the gold label with its short rule, the fan, and at the foot a pale rule and the "Published in"
   line in the site's serif italic. No picture: a band on a phone, the full height of the wide card from 900px. */
.xc-plate { display: flex; flex-direction: column; gap: 10px; aspect-ratio: 16 / 9; min-height: 0; padding: 18px 22px 16px; background: linear-gradient(180deg, var(--navy-deep, #0E2340) 0%, #1F4A80 100%); color: #fff; }
.xc-plate__kind { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.16em; text-transform: uppercase; color: #D6AA4A; overflow-wrap: anywhere; }
.xc-plate__kind::after { content: ""; display: block; width: 42px; height: 2px; margin-top: 9px; background: #D6AA4A; }
.xc-plate__fan { display: block; width: auto; max-width: min(70%, 220px); height: auto; min-height: 0; margin: auto auto 0; flex: 1 1 0; fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.2; }
.xc-plate__fan .xc-plate__gold { stroke: #D6AA4A; stroke-width: 2.2; }
.xc-plate__fan .xc-plate__dot { fill: #D6AA4A; stroke: none; }
.xc-plate--nopub .xc-plate__fan { margin-bottom: 6px; }   /* no "Published in": the drawing sits a little lower */
.xc-plate__pub { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.28); font-family: var(--font-head); font-style: italic; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.92); overflow-wrap: anywhere; }
.xc-title.xc-title--long { font-size: 18px; line-height: 1.32; }   /* to-B 039: a long title one step smaller; it wraps, never cut (two classes, so it wins over .xc-title below) */
.xc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xc-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(10, 12, 40, 0.55); }
.xc-play svg { width: 24px; height: 24px; margin-left: 3px; }
.xc-main { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 4px; min-width: 0; }
/* from-B 065: the copyright note and the button in one row under the text (they wrap into two rows where the card is narrow) */
.xc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 6px 0 16px; min-width: 0; }
.xc-foot .xc-legal { flex: 1 1 340px; min-width: 0; padding: 12px 16px; }
.xc-foot .xc-legal__text { font-size: 14px; line-height: 1.5; }
.xc-foot .xc-legal__text p { margin: 0 0 5px; }
.xc-foot .xc-act { flex: 0 0 auto; }
/* from-B 065: the description in three lines and "Read more" (expert-contributions.js sets the height from the third line's foot,
   so no line is ever cut through; the words stay in the page, a screen reader reads them all) */
.xc-desc.is-clamped { overflow: hidden; max-height: var(--xc-clamp, 4.8em); -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 1.4em), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 1.4em), transparent); }
.xc-desc .xc-sum { margin-top: 8px; }
.xc-more { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin: -4px 0 0; padding: 0 2px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #1F4A80; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.xc-more:hover { color: var(--navy, #14325C); }
.xc-more:focus-visible { outline: 3px solid var(--gold, #B8862F); outline-offset: 3px; border-radius: 4px; }
.xc-more[hidden], .xc-more [hidden] { display: none; }
/* from-B 065: the teaser's one line, and its title as the link to the item */
.xc-who1 { margin: 0; font-size: 15px; line-height: 1.5; color: #3D4A63; overflow-wrap: anywhere; }
.xc-who1 > span:first-child { font-weight: 600; color: var(--navy, #14325C); }
.xc-title__link { color: inherit; text-decoration: none; }
.xc-title__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.xc-title__link:focus-visible { outline: 3px solid var(--gold, #B8862F); outline-offset: 3px; border-radius: 4px; }
.xc-card--teaser .xc-foot { margin: 10px 0 0; }
.xc-card--teaser .xc-legal--short { padding: 6px 0 4px; }
.xc-kind { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5A4A1E; }
.xc-pdf { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 6px; background: #8A6222; color: #fff; font-size: 12px; letter-spacing: 0.04em; }
.xc-title { margin: 2px 0 4px; font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.25; color: var(--navy, #14325C); overflow-wrap: anywhere; }
.xc-by { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.45; color: var(--navy, #14325C); }
.xc-inst { margin: 0; font-size: 15px; line-height: 1.45; color: #3D4A63; }
.xc-date { margin: 0; font-size: 14px; color: #4A5672; }
.xc-sum { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--text, #2b2340); }
.xc-sum p { margin: 0 0 10px; }
.xc-source { margin: 2px 0 0; }
.xc-source a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: #1F4A80; text-decoration: underline; text-underline-offset: 3px; }

.xc-legal { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid rgba(20, 50, 92, 0.18); color: #2B3550; }
.xc-legal__h { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #5A4A1E; }
.xc-legal__text { font-size: 14.5px; line-height: 1.6; }
.xc-legal__text p { margin: 0 0 8px; }
.xc-legal__text p:last-child { margin-bottom: 0; }
.xc-legal--short { margin: 0; padding: 10px 20px 16px; border: 0; border-radius: 0; background: transparent; font-size: 14px; line-height: 1.5; }
.xc-legal--short .xc-legal__h { display: inline; margin: 0; font-size: 13px; }
.xc-legal--short a { color: #1F4A80; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-block; min-height: 44px; line-height: 44px; }

.xc-act { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.xc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--navy, #14325C); color: #fff; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; }
.xc-btn:hover { background: #1F4A80; color: #fff; }
.xc-btn:focus-visible, .xc-card__link:focus-visible, .xc-source a:focus-visible, .xc-legal--short a:focus-visible { outline: 3px solid var(--gold, #B8862F); outline-offset: 3px; }
.xc-btn[disabled] { opacity: 0.7; cursor: progress; }
.xc-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.xc-btn--gold { background: #E9C77B; color: #14325C; }
.xc-btn--gold:hover { background: #F2D894; color: #14325C; }
.xc-act__note { margin: 0; font-size: 14px; color: #4A5672; }
.xc-act__msg { margin: 0; font-size: 14px; color: #8A2E2E; }
.xc-act__msg:empty { display: none; }

/* one item: one wide card - from-B 065: two columns, a narrow plate (or cover) in proportion beside the words, which run across the
   rest; the note and the button in one row under them. The plate keeps its shape (4:5) and stays at the top: it never stretches
   into blank space when the words are long. */
@media (min-width: 56.25rem) {
  .xc-grid--one .xc-card { display: grid; grid-template-columns: clamp(170px, 19%, 220px) minmax(0, 1fr); align-items: start; column-gap: 4px; }
  .xc-grid--one .xc-plate { aspect-ratio: 4 / 5; min-height: 0; margin: 20px 0 20px 20px; padding: 18px 18px 16px; border-radius: 12px; gap: 8px; }
  .xc-grid--one .xc-plate__fan { max-width: 88%; margin: auto auto 0; }
  .xc-grid--one .xc-plate__pub { font-size: 13.5px; padding-top: 8px; }
  .xc-grid--one .xc-art, .xc-grid--one .xc-cover { aspect-ratio: 16 / 9; margin: 20px 0 20px 20px; border-radius: 12px; overflow: hidden; }
  .xc-grid--one.xc-grid--videos .xc-card, .xc-grid--one .xc-card--video { grid-template-columns: clamp(220px, 30%, 360px) minmax(0, 1fr); }
  .xc-grid--one .xc-main { padding: 22px 26px 6px 22px; }
  html[dir="rtl"] .xc-grid--one .xc-plate, html[dir="rtl"] .xc-grid--one .xc-art, html[dir="rtl"] .xc-grid--one .xc-cover { margin: 20px 20px 20px 0; }
  html[dir="rtl"] .xc-grid--one .xc-main { padding: 22px 22px 6px 26px; }
}

/* the section on the Professional Education Center (directly under Featured Surgical Videos) - from-B 065: the compact teaser;
   one item across the width with a small plate beside it, two or three in the grid with a short plate on top */
.xc-pro { padding-top: 44px; }   /* to-B 063 (29 Nov 2026, from-B 099): the same top space as Research & Guidelines (.ec-research, 44px) at every width; was 8px */
.xc-grid--pro .xc-plate { min-height: 0; aspect-ratio: 16 / 7; }
.xc-grid--pro .xc-main { padding-bottom: 12px; }
@media (min-width: 56.25rem) {
  .xc-grid--pro.xc-grid--one .xc-card { grid-template-columns: clamp(130px, 14%, 170px) minmax(0, 1fr); }
  .xc-grid--pro.xc-grid--one .xc-plate { aspect-ratio: 4 / 5; }
  .xc-grid--pro.xc-grid--one .xc-plate__pub { display: none; }   /* the teaser's small plate: the label and the drawing; "Published in" is on the item's page */
}

/* the invitation: always on the page */
.xc-invite { padding: 48px 0 64px; }
.xc-invite__box { padding: 32px; border-radius: 16px; background: var(--navy-deep, #0E2340); color: #fff; }
.xc-invite__h { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: #fff; }
.xc-invite__p { margin: 0 0 20px; max-width: 64ch; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.92); }

/* an article's own reading page */
.xc-reading .pec-band .xc-by, .xc-reading .pec-band .xc-inst, .xc-reading .pec-band .xc-date { color: #fff; }
.xc-article { padding: 40px 0 64px; }
.xc-article__in { max-width: 760px; }
.xc-article__body { margin: 20px 0 28px; font-size: 18px; line-height: 1.7; color: var(--text, #2b2340); }
.xc-article__body p { margin: 0 0 18px; }

@media (max-width: 47.99rem) {
  .xc-sec { padding-top: 32px; }
  .xc-main { padding: 16px 16px 4px; }
  .xc-foot { margin-bottom: 14px; }
  .xc-btn { width: 100%; }
  .xc-act { align-items: stretch; }
  .xc-invite__box { padding: 24px 20px; }
}
html[dir="rtl"] .xc-btn svg { transform: scaleX(-1); }
