/* Four profession families, with independently selectable branch panels. */
.profession-section {
  position: relative;
  padding: 58px 0 60px;
  overflow: hidden;
  color: #f3eedc;
  background: radial-gradient(ellipse at 88% 25%, #467b6359, transparent 48%),
    linear-gradient(115deg, #102f2b, #1b4c40 62%, #163d35);
  border-block: 3px solid #b99559;
}
.profession-section::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #c6a66326;
  pointer-events: none;
}
.profession-section > .shell { position: relative; }
.profession-section .section-heading { margin-bottom: 37px; }
.profession-section .section-heading .eyebrow { color: #d2b36f; }
.profession-section .section-heading h2 { color: #fff0cc; }
.profession-section .section-heading h2 > span {
  color: #c2d1ba;
  border-color: #d8ba7c59;
}
.profession-count {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  padding: 9px 14px;
  color: #f3d89d;
  border: 1px solid #c8a76680;
  background: #0e2e2866;
  text-align: center;
  letter-spacing: 3px;
}
.profession-count b { font: normal 15px/1.5 var(--serif); }
.profession-count span { font-size: 10px; }
.path-layout { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 42px; }
.path-nav { padding-right: 17px; border-right: 1px solid #bcb88340; }
.path-nav-label { color: #b7cbb3; font-size: 11px; letter-spacing: 3px; margin: 0 0 15px 15px; }
.path-tabs { display: flex; flex-direction: column; gap: 6px; }
.path-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 81px;
  padding: 14px 15px;
  color: #e1e7cf;
  background: #143b3433;
  border: 1px solid #b8c7a126;
  text-align: left;
  transition: background .2s, border-color .2s;
}
.path-name { min-width: 0; }
.path-name b { display: block; font: normal 26px/1.4 var(--serif); letter-spacing: 3px; white-space: nowrap; }
.path-name small { display: block; color: #b6cfbc; font: 8px/1.5 Arial, sans-serif; letter-spacing: 1.5px; }
.path-number { margin-left: auto; color: #bfcba8; font: 10px/1.5 Georgia, serif; }
.path-tabs .icon { width: 15px; height: 15px; color: #c7b47f; }
.path-tabs button:hover { background: #396b5459; border-color: #c3a56780; }
.path-tabs button[aria-selected="true"] { background: #a54432; border-color: #d59f68; color: #fff0d5; }
.path-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: -6px;
  top: calc(50% - 6px);
  width: 11px;
  height: 11px;
  background: #a54432;
  border-top: 1px solid #d59f68;
  border-right: 1px solid #d59f68;
  transform: rotate(45deg);
}
.path-tabs button[aria-selected="true"] small,
.path-tabs button[aria-selected="true"] .path-number,
.path-tabs button[aria-selected="true"] .icon { color: #ffe1af; }
.path-nav-note { margin: 29px 15px 0; color: #afc5ad; font: 18px/1.9 var(--serif); letter-spacing: 4px; }
.path-family, .path-branches { min-width: 0; }
.path-branch-tabs { display: flex; gap: 10px; padding-bottom: 19px; border-bottom: 1px solid #cbb47a59; }
.path-branch-tabs button {
  flex: 1;
  min-width: 0;
  padding: 12px 10px;
  color: #e1e6cf;
  background: #12382f;
  border: 1px solid #8fae8c80;
  font: 17px/1.5 var(--serif);
  letter-spacing: 2px;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.path-branch-tabs button:hover { border-color: #e4c987; background: #2b5a47; }
.path-branch-tabs button[aria-selected="true"] { background: #d0af70; color: #153c32; border-color: #f4d392; box-shadow: inset 0 0 0 3px #b0874e; }
.path-panel { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 38px; padding-top: 30px; min-height: 475px; animation: enter .3s ease; }
.path-info { min-width: 0; padding-top: 6px; }
.path-eyebrow { display: flex; align-items: center; gap: 15px; font-size: 11px; letter-spacing: 2px; color: #bccdb0; }
.path-eyebrow b { font-weight: 400; color: #f2d390; padding-left: 15px; border-left: 1px solid #c4ad7480; }
.path-info h3 { font: normal 48px/1.25 var(--serif); letter-spacing: 4px; color: #fff0c9; margin-top: 16px; }
.path-quote { font: 18px/1.8 var(--serif); color: #d6dfc2; letter-spacing: 2px; margin-top: 10px; }
.path-traits { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.path-traits span { color: #f0dfb6; background: #a58c4826; border: 1px solid #b5ae6e80; padding: 3px 10px; font-size: 11px; letter-spacing: 1px; }
.path-intro { margin-top: 20px; font-size: 13px; line-height: 2.05; color: #e0e7d4; }
.path-facts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 15px; margin: 20px 0 0; padding-block: 15px; border-block: 1px solid #c7bd852e; }
.path-facts dt { font-size: 10px; color: #b8ceb6; letter-spacing: 2px; }
.path-facts dd { margin: 5px 0 0; color: #f7dfad; font: 14px/1.7 var(--serif); }
.path-lore { margin-top: 14px; font-size: 12px; }
.path-lore summary { display: flex; align-items: center; gap: 14px; width: fit-content; cursor: pointer; color: #f0d399; letter-spacing: 2px; list-style: none; }
.path-lore summary::-webkit-details-marker { display: none; }
.path-lore summary span { font-size: 19px; line-height: 1.5; transition: transform .2s; }
.path-lore[open] summary span { transform: rotate(45deg); }
.path-lore p { margin-top: 9px; color: #d9e4d0; line-height: 2; }
.profession-section .text-link { color: #e9cc8b; border-color: #bca36399; margin-top: 18px; font-size: 12px; }
.profession-section .text-link:hover { color: #fff0c9; }
.path-art {
  position: relative;
  align-self: start;
  margin: 0;
  width: 100%;
  aspect-ratio: 490 / 594;
  background: #253963;
  border: 2px solid #bca165;
  border-radius: 47% 47% 2px 2px;
  overflow: hidden;
  box-shadow: 0 12px 30px #071f2259;
}
.path-art::after { content: ""; position: absolute; inset: 6px; border: 1px solid #f4dfad59; border-radius: inherit; pointer-events: none; }
.path-art img { width: 100%; height: 100%; object-fit: cover; }
.path-art figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: baseline; justify-content: space-between; padding: 48px 24px 18px; color: #fff0cc; background: linear-gradient(0deg, #142d31f2, transparent); }
.path-art figcaption small { font-size: 11px; letter-spacing: 5px; }
.path-art figcaption span { font: 31px/1.5 var(--serif); letter-spacing: 6px; }
.profession-section :is(button, summary):focus-visible { outline: 3px solid #ffe2a0; outline-offset: 4px; }

@media (max-width: 1199px) {
  .path-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 28px; }
  .path-nav { padding-right: 13px; }
  .path-tabs button { padding-inline: 12px; gap: 8px; }
  .path-name b { font-size: 24px; letter-spacing: 2px; }
  .path-tabs .icon { display: none; }
  .path-panel { grid-template-columns: minmax(0, 1fr) 290px; gap: 25px; }
  .path-info h3 { font-size: 42px; letter-spacing: 2px; }
  .path-quote { font-size: 16px; letter-spacing: 1px; }
  .path-branch-tabs button { font-size: 15px; letter-spacing: 1px; padding-inline: 5px; }
  .path-facts { gap: 10px; }
}
@media (min-width: 768px) and (max-width: 959px) {
  .path-layout { grid-template-columns: 130px minmax(0, 1fr); gap: 22px; }
  .path-tabs button { padding-inline: 10px; }
  .path-name b { font-size: 23px; }
  .path-number { display: none; }
  .path-panel { grid-template-columns: minmax(0, 1fr) 205px; gap: 20px; }
  .path-art { margin-top: 35px; }
  .path-info h3 { font-size: 34px; }
  .path-quote { font-size: 14px; letter-spacing: 0; }
  .path-eyebrow { gap: 8px; font-size: 10px; letter-spacing: 1px; }
  .path-eyebrow b { padding-left: 8px; }
  .path-traits { gap: 5px; }
  .path-traits span { padding: 3px 6px; font-size: 10px; letter-spacing: 0; }
  .path-intro { font-size: 12px; }
  .path-facts { grid-template-columns: 1fr; gap: 10px; }
  .path-branch-tabs { gap: 5px; }
  .path-branch-tabs button { font-size: 13px; padding-inline: 3px; }
  .path-art figcaption { padding-inline: 16px; }
  .path-art figcaption small { letter-spacing: 2px; }
  .path-art figcaption span { font-size: 26px; letter-spacing: 3px; }
}
@media (max-width: 767px) {
  .profession-section { padding: 34px 0 37px; }
  .profession-section::before { inset: 8px; }
  .profession-section .section-heading { margin-bottom: 24px; align-items: center; }
  .profession-section .section-heading h2 { font-size: 31px; }
  .profession-count { padding: 7px 8px; gap: 2px; letter-spacing: 1px; }
  .profession-count b { font-size: 12px; }
  .profession-count span { font-size: 9px; }
  .path-layout { display: block; }
  .path-nav { border: 0; padding: 0; }
  .path-nav-label, .path-nav-note { display: none; }
  .path-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 22px; }
  .path-tabs button { padding: 10px 2px; min-height: 71px; justify-content: center; text-align: center; }
  .path-tabs button[aria-selected="true"]::after { top: auto; bottom: -6px; right: calc(50% - 6px); transform: rotate(135deg); }
  .path-name b { font-size: 22px; letter-spacing: 1px; }
  .path-name small { font-size: 7px; letter-spacing: .7px; }
  .path-number, .path-tabs .icon { display: none; }
  .path-branch-tabs { gap: 5px; padding-bottom: 16px; }
  .path-branch-tabs button { font-size: 13px; letter-spacing: 0; padding: 11px 3px; }
  .path-panel { display: flex; flex-direction: column; gap: 25px; padding-top: 23px; min-height: 0; }
  .path-info { padding: 0 6px; }
  .path-info h3 { font-size: 40px; letter-spacing: 2px; margin-top: 14px; }
  .path-quote { font-size: 17px; letter-spacing: 1px; margin-top: 7px; }
  .path-traits { margin-top: 16px; }
  .path-intro { font-size: 13px; margin-top: 17px; line-height: 2; }
  .path-facts { grid-template-columns: 1fr 1.3fr; margin-top: 17px; gap: 13px; }
  .path-facts dd { font-size: 13px; }
  .path-art { align-self: center; width: min(100%, 310px); aspect-ratio: 1 / 1; }
  .path-art img { object-position: center 18%; }
  .path-art figcaption { padding: 45px 25px 16px; }
}
@media (max-width: 359px) {
  .path-branch-tabs { gap: 3px; }
  .path-branch-tabs button { font-size: 12px; padding-inline: 1px; }
  .path-name b { font-size: 20px; }
  .path-name small { font-size: 6px; }
  .path-info h3 { font-size: 36px; }
  .path-facts { gap: 9px; }
}
