/* v1.13.0 — one-column sections, social rail, gallery arrows, and CV experience */

/* About My Practice: one clear reading column */
.summary-grid.summary-single {
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 920px;
  margin-left: 0;
}
.summary-single h2 {
  max-width: 820px;
}
.summary-single .summary-copy {
  max-width: 820px;
}
.summary-single .summary-copy p {
  color: #425067;
}
.summary-single .summary-links {
  margin-top: 20px;
}

/* Personal visitor counter on the left */
.visitor-float.visitor-float-left {
  left: 18px;
  right: auto;
}

/* External profile links on the right */
.social-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 46;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(204, 213, 226, .94);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #1e4fd9;
  box-shadow: 0 12px 28px rgba(20, 38, 75, .13);
  backdrop-filter: blur(12px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 255, .5);
  box-shadow: 0 16px 34px rgba(20, 38, 75, .18);
  outline: none;
}
.social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.facebook-link {
  color: #1877f2;
}
.designlab-link {
  padding: 5px;
}
.designlab-link img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Keep all modal layouts genuinely single-column */
.skill-dialog {
  width: min(720px, 100%);
}
.modal-overview {
  display: block;
}
.modal-overview > p {
  color: #334158;
}
.modal-tools {
  max-width: none;
  justify-content: flex-start;
  margin-top: 16px;
}
.sample-project {
  grid-template-columns: 1fr;
}
.sample-thumb {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.sample-copy {
  padding: 20px;
}
.project-preview-dialog {
  display: block;
  width: min(760px, 100%);
}
.project-preview-media {
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.project-preview-copy {
  width: 100%;
  padding: 28px;
}
.cv-detail-dialog {
  display: block;
  width: min(700px, 100%);
}
.cv-detail-dialog .project-preview-copy {
  display: block;
  width: 100%;
}
.cv-detail-sections {
  grid-template-columns: 1fr;
}
.cv-detail-sections section {
  min-width: 0;
}

/* Gallery navigation arrows */
.project-preview-shell {
  position: relative;
}
.project-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(12, 23, 48, .68);
  color: #fff;
  box-shadow: 0 12px 30px rgba(12, 23, 48, .2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 22px;
  transition: transform .2s ease, background .2s ease;
}
.project-gallery-arrow:hover,
.project-gallery-arrow:focus-visible {
  transform: translateY(-50%) scale(1.06);
  background: rgba(36, 87, 255, .9);
  outline: none;
}
.project-gallery-arrow:disabled,
.project-gallery-arrow[hidden] {
  display: none;
}
.project-gallery-arrow-prev {
  left: 18px;
}
.project-gallery-arrow-next {
  right: 18px;
}
.project-gallery-thumbs {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 5px;
}
.project-thumb-button {
  flex: 0 0 min(210px, 22vw);
  scroll-snap-align: center;
}

/* CV: professional experience first and visible, not hidden in a modal */
.cv-professional-experience {
  padding-top: 42px;
}
.cv-heading.cv-heading-single {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
}
.cv-role-list {
  display: grid;
  gap: 22px;
}
.cv-role-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.cv-role-header {
  padding: 24px 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
}
.cv-role-period {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.cv-role-header h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.cv-role-header p {
  margin: 7px 0 0;
  color: #526078;
  font-size: 12px;
  line-height: 1.55;
}
.cv-role-location {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}
.cv-task-sentences {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cvtask;
}
.cv-task-sentences li {
  counter-increment: cvtask;
  position: relative;
  padding: 19px 26px 19px 72px;
  border-bottom: 1px solid var(--line);
  color: #3f4d63;
  font-size: 12px;
  line-height: 1.75;
}
.cv-task-sentences li:last-child {
  border-bottom: 0;
}
.cv-task-sentences li::before {
  content: counter(cvtask, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 26px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}
.cv-task-sentences strong {
  color: var(--text);
}

/* No output stats remain on the CV */
.cv-metrics {
  display: none !important;
}

@media (max-width: 760px) {
  .visitor-float.visitor-float-left {
    left: 12px;
    right: auto;
  }
  .social-float {
    right: 12px;
    bottom: 12px;
    gap: 7px;
  }
  .social-link {
    width: 38px;
    height: 38px;
  }
  .social-link svg {
    width: 19px;
    height: 19px;
  }
  .summary-grid.summary-single {
    gap: 14px;
  }
  .project-gallery-arrow {
    width: 42px;
    height: 42px;
  }
  .project-gallery-arrow-prev {
    left: 10px;
  }
  .project-gallery-arrow-next {
    right: 10px;
  }
  .project-thumb-button {
    flex-basis: 150px;
  }
  .cv-heading.cv-heading-single {
    grid-template-columns: 1fr;
  }
  .cv-role-header {
    flex-direction: column;
    gap: 12px;
  }
  .cv-role-location {
    text-align: left;
  }
  .cv-task-sentences li {
    padding: 17px 18px 17px 56px;
  }
  .cv-task-sentences li::before {
    left: 18px;
    top: 18px;
  }
}

@media (max-width: 430px) {
  .visitor-float-label {
    display: none;
  }
  .social-float {
    flex-direction: row;
    bottom: 12px;
  }
}
