/*
 * Screens 08 and 09 "Ljudsko telo" and their entry page (template-parts/sd/body/*.php, design/Corp.dc.html).
 * Every selector starts with .sd-body. This design uses the 6px radius for its buttons, chips and cards.
 */
.sd-body { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; padding-bottom: 56px; }
.sd-body .sd-btn, .sd-body .sd-tag, .sd-body .sd-card { border-radius: var(--sd-radius); }
.sd-body a:focus-visible, .sd-body button:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }

.sd-body__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.sd-body__title { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.15; }
.sd-body__lead { margin: 0; max-width: 680px; font-size: 15px; line-height: 1.5; }
.sd-body__lead--wide { max-width: 860px; }

/* Woman / man switch */
.sd-body-seg { display: inline-flex; border: 1.5px solid var(--sd-orange); border-radius: var(--sd-radius); overflow: hidden; }
.sd-body-seg a { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; background: #fff; color: var(--sd-orange-text); font-weight: 700; text-decoration: none; }
.sd-body-seg a:hover { background: var(--sd-orange-soft); color: var(--sd-orange-text); }
.sd-body-seg a.is-current { background: var(--sd-orange); color: var(--sd-on-orange); }
.sd-body-seg a:focus-visible { outline-offset: -3px; }

/* Silhouette and organs */
.sd-body__cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.sd-body__figure-col { flex: 0 1 360px; display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto; }
.sd-body-figure { width: 100%; max-width: 360px; }
.sd-body-figure svg { display: block; width: 100%; height: auto; }
.sd-body-figure .body_svg_identificator { pointer-events: none; }
.sd-body-figure .body_svg_identificator.sd-body-hit { pointer-events: auto; cursor: pointer; }
.sd-body-figure g.sd-body-hit.is-on path, .sd-body-figure path.sd-body-hit.is-on { stroke: var(--sd-orange); stroke-width: 3px; }
.sd-body__back { align-self: flex-start; font-size: 14px; color: var(--sd-muted); text-decoration: underline; }

.sd-body-orgs { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.sd-body-org { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 76px; margin: 0; padding: 6px 8px; border: 0; border-bottom: 1.5px solid #f3a24a; border-radius: 0; background: #fff; color: var(--sd-ink); font: 500 15px/1.3 'Raleway', sans-serif; text-align: left; cursor: pointer; }
.sd-body-org:hover { color: var(--sd-orange-text); }
.sd-body-org[aria-expanded="true"] { color: var(--sd-orange-text); font-weight: 700; }
.sd-body-org:focus-visible { outline-offset: -3px; }
.sd-body-org .sd-icon { margin-left: auto; color: #666; transition: transform .15s; }
.sd-body-org[aria-expanded="true"] .sd-icon { transform: rotate(180deg); }
.sd-body-org__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; }
.sd-body-org__icon img { width: 46px; height: 46px; object-fit: contain; }
.sd-body-org__name { min-width: 0; }

/* Panel of the open organ */
.sd-body-panel { display: flex; flex-direction: column; gap: 14px; border-color: var(--sd-orange); scroll-margin-top: 16px; }
.sd-body-panel[hidden] { display: none; }
.sd-body-panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sd-body-panel__title { margin: 0 auto 0 0; font-size: 20px; font-weight: 700; line-height: 1.15; }
.sd-body-panel__title:focus { outline: 0; }
.sd-body-panel__count { font-size: 13px; }
.sd-body-panel__close { height: 28px; margin: 0; padding: 0 10px; border: 1px solid var(--sd-line); border-radius: var(--sd-radius); background: #fff; color: var(--sd-ink); font: 600 13px/1 'Raleway', sans-serif; cursor: pointer; }
.sd-body-panel__close:hover { background: var(--sd-soft); }
.sd-body-panel__note { margin: 0; font-size: 14px; line-height: 1.5; }
.sd-body-conds { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-body .sd-body-cond { height: auto; min-height: 28px; margin: 0; padding: 4px 10px; border: 0; font-family: 'Raleway', sans-serif; line-height: 1.3; text-align: left; cursor: pointer; }
.sd-body-cond:hover { background: var(--sd-orange-soft); color: var(--sd-orange-text); }
.sd-body-list__title { margin: 0 0 4px; font-size: 14px; font-weight: 400; line-height: 1.5; }
.sd-body-list__title strong { font-weight: 700; color: var(--sd-ink); }
.sd-body-list__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
/* The shared product card as a row of the list */
.sd-body-panel .sd-pcard { flex-direction: row; align-items: center; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid #eee; border-radius: 0; background: none; }
.sd-body-panel .sd-pcard__name { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.3; }
.sd-body-panel .sd-pcard > span { flex: none; margin-left: auto; white-space: nowrap; }
.sd-body-panel .sd-pcard .sd-btn { flex: none; align-self: center; margin-top: 0; }
.sd-body-panel .sd-price { font-size: 15px; font-weight: 600; }

/* Entry page: choose a silhouette */
.sd-body-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 24px; }
.sd-body-choice { display: flex; flex-direction: column; align-items: center; gap: 16px; text-decoration: none; transition: border-color .15s; }
.sd-body-choice:hover { border-color: var(--sd-orange); }
.sd-body-choice img { display: block; width: 100%; height: 360px; object-fit: contain; }
.sd-body-choice .sd-btn { width: 100%; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; white-space: normal; text-align: center; }
.sd-body-choice:hover .sd-btn { background: var(--sd-orange-dark); }
.sd-body__note { max-width: 860px; margin: 0 auto; font-size: 14px; line-height: 1.5; }
.sd-body__note p { margin: 0 0 8px; font-size: inherit; }

@media (max-width: 900px) {
  .sd-body-list__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sd-body__title { font-size: 28px; }
  .sd-body__cols { gap: 24px; }
  .sd-body-figure { max-width: 240px; }
  .sd-body-orgs { grid-template-columns: minmax(0, 1fr); }
  .sd-body-org { min-height: 64px; }
  .sd-body-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sd-body-choice { padding: 12px; }
  .sd-body-choice .sd-btn { padding-left: 12px; padding-right: 12px; font-size: 14px; }
  .sd-body-choice img { height: 240px; }
  .sd-body-panel .sd-pcard { flex-wrap: wrap; }
  .sd-body-panel .sd-pcard__name { flex-basis: 100%; }
}
/* On a phone and on any touch screen the condition chips and "Zatvori" are the panel's controls: 40 px high for a finger
   (they were 28). */
@media (max-width: 640px), (pointer: coarse) {
  .sd-body .sd-body-cond { min-height: 40px; padding: 8px 12px; }
  .sd-body-panel__close { height: 40px; padding: 0 14px; }
}
