/* CV Lateral, from design/cv-lateral/ (canvas page B). Every rule is scoped under .ft-d-cv-lateral (DC6); the one rule
   outside it applies only to a body whose direct child is this design. */

body:has(> .ft-d-cv-lateral) {
  margin: 0;
  background: #f4f1f2;
}

.ft-d-cv-lateral {
  color-scheme: light;
  /* The page's colours by role, which an owner may change (src/designs/palette.ts), and this design's names for them. */
  --ft-color-background: #f4f1f2;
  --ft-color-surface: #ffffff;
  --ft-color-text: #2a1b20;
  --ft-color-muted: #5f4a51;
  --ft-color-primary: #4f2130;
  --ft-color-on-primary: #ffffff;
  --ft-color-border: #e4d7db;
  --ft-ink: var(--ft-color-text);
  --ft-muted: var(--ft-color-muted);
  --ft-wine: var(--ft-color-primary);
  --ft-wine-rule: #7b4a59;
  --ft-rose: #f3d9df;
  --ft-rose-pale: #f8edf0;
  --ft-paper: var(--ft-color-background);
  --ft-rule: var(--ft-color-border);

  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ft-paper);
  color: var(--ft-ink);
  font-family: var(--ft-cv-lateral-body), system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.ft-d-cv-lateral a {
  color: var(--ft-wine);
}

.ft-d-cv-lateral a:hover {
  color: var(--ft-muted);
}

.ft-d-cv-lateral .ft-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  box-sizing: border-box;
  max-width: 72.5rem;
  margin-inline: auto;
  padding: 12px 20px;
  font-weight: 600;
}

/* A phone: the wine header, the white body, then the wine column under it. */

.ft-d-cv-lateral .ft-sheet {
  display: flex;
  flex-direction: column;
  background: var(--ft-color-surface);
}

/* The decorative touch: a soft halo of light on the wine around the portrait. It reaches transparent at the box's
   edges, so it never shows a seam against the wine below it. */
.ft-d-cv-lateral .ft-side-photo {
  display: flex;
  justify-content: center;
  padding: 32px 20px 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in srgb, var(--ft-color-on-primary) 16%, transparent) 74%, transparent 100%),
    var(--ft-wine);
}

/* Centred by its own margins too, so it stays centred inside the owner's place box (shared/site-logo.css). */
.ft-d-cv-lateral .ft-side-photo .ft-logo-hero {
  margin-inline: auto;
}

.ft-d-cv-lateral .ft-side-photo:empty {
  padding: 20px 0 0;
  background: var(--ft-wine);
}

.ft-d-cv-lateral .ft-logo-hero img {
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  border: 5px solid var(--ft-rose);
  border-radius: 50%;
  background: var(--ft-paper);
  object-fit: cover;
  object-position: center top;
}

.ft-d-cv-lateral .ft-hero {
  padding: 14px 20px 28px;
  border-radius: 0 0 28px 28px;
  background: var(--ft-wine);
  color: var(--ft-color-on-primary);
  text-align: center;
}

.ft-d-cv-lateral .ft-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ft-d-cv-lateral .ft-hero-name {
  margin: 0;
  font-size: clamp(1.75rem, 7.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.14;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.ft-d-cv-lateral .ft-hero-post {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.ft-d-cv-lateral .ft-description {
  margin: 0;
  color: var(--ft-rose);
  font-size: 0.875rem;
  white-space: pre-line;
}

.ft-d-cv-lateral .ft-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}

.ft-d-cv-lateral .ft-button {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 22px;
  background: var(--ft-color-on-primary);
  color: var(--ft-wine);
  font-weight: 600;
  text-decoration: none;
}

.ft-d-cv-lateral a.ft-button:hover {
  background: var(--ft-rose);
  color: var(--ft-wine);
}

.ft-d-cv-lateral .ft-social-bar-hero {
  margin-top: 8px;
}

.ft-d-cv-lateral .ft-hero .ft-social-bar a {
  color: var(--ft-color-on-primary);
}

/* The body */

.ft-d-cv-lateral .ft-body {
  min-width: 0;
}

.ft-d-cv-lateral .ft-body-sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 20px;
}

.ft-d-cv-lateral .ft-section,
.ft-d-cv-lateral .ft-frame-section {
  min-width: 0;
}

.ft-d-cv-lateral .ft-heading {
  margin: 0 0 6px;
  color: var(--ft-wine);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.25;
}

.ft-d-cv-lateral .ft-about-description,
.ft-d-cv-lateral .ft-resume-text {
  margin: 0;
  white-space: pre-line;
}

.ft-d-cv-lateral .ft-about-subtitle {
  margin: 0 0 4px;
  font-weight: 500;
}

.ft-d-cv-lateral .ft-section-body {
  overflow-wrap: anywhere;
}

.ft-d-cv-lateral .ft-resume-letter .ft-resume-text + .ft-resume-text {
  margin-top: 1em;
}

.ft-d-cv-lateral .ft-resume-objective {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ft-rose-pale);
}

.ft-d-cv-lateral .ft-resume-objective .ft-heading {
  font-size: 1.125rem;
}

.ft-d-cv-lateral .ft-resume-letter {
  padding-top: 18px;
  border-top: 1px solid var(--ft-rule);
}

.ft-d-cv-lateral .ft-resume-jobs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ft-d-cv-lateral .ft-resume-studies {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-d-cv-lateral .ft-resume-role {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ft-d-cv-lateral .ft-resume-where {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0 0 4px;
  color: var(--ft-muted);
  font-size: 0.875rem;
}

.ft-d-cv-lateral .ft-resume-points {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding-left: 18px;
}

/* The column */

.ft-d-cv-lateral .ft-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 20px;
  border-radius: 28px 28px 0 0;
  background: var(--ft-wine);
  color: var(--ft-color-on-primary);
}

.ft-d-cv-lateral .ft-side .ft-heading {
  margin-bottom: 8px;
  color: var(--ft-rose);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ft-d-cv-lateral .ft-side a {
  color: var(--ft-color-on-primary);
}

.ft-d-cv-lateral .ft-side a:hover {
  color: var(--ft-rose);
}

.ft-d-cv-lateral .ft-resume-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ft-d-cv-lateral .ft-resume-group .ft-resume-role {
  margin-bottom: 4px;
}

.ft-d-cv-lateral .ft-resume-items {
  margin: 0;
  padding-left: 18px;
}

.ft-d-cv-lateral .ft-resume-languages .ft-resume-items {
  padding-left: 0;
  list-style: none;
}

.ft-d-cv-lateral .ft-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-d-cv-lateral .ft-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
}

.ft-d-cv-lateral .ft-contact .glyph {
  flex: none;
  width: 18px;
  height: 18px;
}

.ft-d-cv-lateral .ft-contact-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ft-d-cv-lateral .ft-contact-value {
  overflow-wrap: anywhere;
}

.ft-d-cv-lateral .ft-social ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-d-cv-lateral .ft-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

/* The page's other parts */

.ft-d-cv-lateral .ft-closing-section,
.ft-d-cv-lateral .ft-frame-section {
  box-sizing: border-box;
  max-width: 72.5rem;
  margin-inline: auto;
  padding: 24px 20px;
}

.ft-d-cv-lateral .ft-services {
  max-width: none;
}

.ft-d-cv-lateral .ft-services-price {
  color: var(--ft-wine);
  font-weight: 600;
}

.ft-d-cv-lateral .ft-empty {
  margin: 0;
}

.ft-d-cv-lateral .ft-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-d-cv-lateral .ft-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.ft-d-cv-lateral .ft-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ft-rose-pale);
}

.ft-d-cv-lateral .ft-card-media img,
.ft-d-cv-lateral .ft-card-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ft-d-cv-lateral .ft-card-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--ft-wine);
  color: var(--ft-color-on-primary);
  font-size: 0.875rem;
}

.ft-d-cv-lateral .ft-card-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ft-d-cv-lateral .ft-card-description {
  color: var(--ft-muted);
  font-size: 0.875rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Footer */

.ft-d-cv-lateral .ft-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  box-sizing: border-box;
  max-width: 72.5rem;
  margin-inline: auto;
  padding: 12px 20px;
  color: var(--ft-muted);
  font-size: 0.8125rem;
}

.ft-d-cv-lateral .ft-footer p {
  margin: 0;
}

.ft-d-cv-lateral .ft-locale-switch ul {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-d-cv-lateral .ft-locale-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.ft-d-cv-lateral .ft-locale-switch [aria-current] {
  font-weight: 600;
  text-decoration: none;
}

/* The card dialog */

.ft-d-cv-lateral .ft-card-dialog {
  width: min(44rem, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--ft-color-surface);
  color: var(--ft-ink);
}

.ft-d-cv-lateral .ft-card-dialog::backdrop {
  background: color-mix(in srgb, var(--ft-color-text, #2a1b20) 80%, transparent);
}

.ft-d-cv-lateral .ft-card-dialog-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 24px;
}

.ft-d-cv-lateral .ft-card-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--ft-color-surface);
  color: var(--ft-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ft-d-cv-lateral .ft-card-dialog-media {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: var(--ft-ink);
}

.ft-d-cv-lateral .ft-card-dialog-title,
.ft-d-cv-lateral .ft-card-dialog-description,
.ft-d-cv-lateral .ft-card-share {
  margin: 0;
  padding: 0 22px;
}

.ft-d-cv-lateral .ft-card-dialog-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ft-d-cv-lateral .ft-card-dialog-description {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.ft-d-cv-lateral .ft-card-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ft-d-cv-lateral .ft-card-share-button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 22px;
  background: var(--ft-wine);
  color: var(--ft-color-on-primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ft-d-cv-lateral .ft-card-share-status {
  font-size: 0.875rem;
}

/* A tablet: the column stands beside the body, with the photo at its top. */

@media (min-width: 48rem) {
  .ft-d-cv-lateral .ft-sheet {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  /* Small enough that an ordinary email address stays on one line in the column. */
  .ft-d-cv-lateral .ft-side .ft-contact-value {
    font-size: 0.8125rem;
  }

  .ft-d-cv-lateral .ft-side-photo {
    grid-column: 1;
    grid-row: 1;
    padding: 32px 22px 24px;
  }

  .ft-d-cv-lateral .ft-side {
    grid-column: 1;
    grid-row: 2;
    padding: 0 22px 32px;
    border-radius: 0;
    font-size: 0.875rem;
  }

  .ft-d-cv-lateral .ft-body {
    grid-column: 2;
    grid-row: 1 / -1;
  }

  .ft-d-cv-lateral .ft-hero {
    margin: 32px 32px 0;
    padding: 0 0 16px;
    border-bottom: 3px solid var(--ft-wine);
    border-radius: 0;
    background: none;
    color: var(--ft-ink);
    text-align: left;
  }

  .ft-d-cv-lateral .ft-hero-text {
    align-items: flex-start;
  }

  .ft-d-cv-lateral .ft-hero-name {
    color: var(--ft-wine);
    font-size: 2.125rem;
  }

  .ft-d-cv-lateral .ft-hero-post {
    font-size: 1.0625rem;
  }

  .ft-d-cv-lateral .ft-description {
    color: var(--ft-muted);
    font-size: inherit;
  }

  .ft-d-cv-lateral .ft-actions {
    justify-content: flex-start;
  }

  .ft-d-cv-lateral .ft-button {
    flex: 0 1 auto;
    background: var(--ft-wine);
    color: var(--ft-color-on-primary);
  }

  .ft-d-cv-lateral a.ft-button:hover {
    background: var(--ft-muted);
    color: var(--ft-color-on-primary);
  }

  .ft-d-cv-lateral .ft-button-call,
  .ft-d-cv-lateral .ft-button-mail {
    display: none;
  }

  /* A row holding only what this width hides leaves no gap. */
  .ft-d-cv-lateral .ft-actions:not(:has(> :not(.ft-button-call):not(.ft-button-mail))) {
    display: none;
  }

  .ft-d-cv-lateral .ft-hero .ft-social-bar a {
    color: var(--ft-wine);
  }

  .ft-d-cv-lateral .ft-body-sections {
    gap: 24px;
    padding: 24px 32px 32px;
  }
}

/* The tablet's narrow column gives the address the width of its icon. */

@media (min-width: 48rem) and (max-width: 69.99rem) {
  .ft-d-cv-lateral .ft-side .ft-contact .glyph {
    display: none;
  }
}

/* A desktop: a rounded sheet on the paper, with a wider column. */

@media (min-width: 70rem) {
  .ft-d-cv-lateral .ft-page {
    box-sizing: border-box;
    max-width: 72.5rem;
    margin-inline: auto;
    padding: 32px 32px 0;
  }

  .ft-d-cv-lateral .ft-sheet {
    grid-template-columns: 21.25rem minmax(0, 1fr);
    overflow: hidden;
    border-radius: 24px;
  }

  .ft-d-cv-lateral .ft-side-photo {
    padding: 40px 32px 28px;
  }

  .ft-d-cv-lateral .ft-side {
    gap: 28px;
    padding: 0 32px 40px;
    font-size: inherit;
  }

  .ft-d-cv-lateral .ft-side .ft-heading {
    font-size: 1.0625rem;
  }

  .ft-d-cv-lateral .ft-hero {
    margin: 44px 48px 0;
    padding-bottom: 20px;
  }

  .ft-d-cv-lateral .ft-hero-name {
    font-size: 2.875rem;
    line-height: 1.1;
  }

  .ft-d-cv-lateral .ft-hero-post {
    font-size: 1.25rem;
  }

  .ft-d-cv-lateral .ft-heading {
    font-size: 1.5rem;
  }

  .ft-d-cv-lateral .ft-resume-objective {
    padding: 18px 22px;
    border-radius: 16px;
  }

  .ft-d-cv-lateral .ft-resume-objective .ft-heading {
    font-size: 1.25rem;
  }

  .ft-d-cv-lateral .ft-resume-role {
    font-size: 1rem;
  }

  .ft-d-cv-lateral .ft-resume-studies {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .ft-d-cv-lateral .ft-body-sections {
    gap: 28px;
    padding: 28px 48px 44px;
  }
}

/* A printed page: the column keeps its colour, and the page's own controls go. */

@media print {
  .ft-d-cv-lateral {
    min-height: 0;
    background: #ffffff;
    font-size: 10pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .ft-d-cv-lateral .ft-actions,
  .ft-d-cv-lateral .ft-social-bar,
  .ft-d-cv-lateral .ft-footer {
    display: none;
  }

  .ft-d-cv-lateral .ft-page {
    max-width: none;
    padding: 0;
  }

  .ft-d-cv-lateral .ft-sheet {
    display: grid;
    grid-template-columns: 30% minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    border-radius: 0;
  }

  .ft-d-cv-lateral .ft-side-photo {
    grid-column: 1;
    grid-row: 1;
  }

  .ft-d-cv-lateral .ft-side {
    grid-column: 1;
    grid-row: 2;
    border-radius: 0;
  }

  .ft-d-cv-lateral .ft-body {
    grid-column: 2;
    grid-row: 1 / -1;
  }

  .ft-d-cv-lateral .ft-hero {
    margin: 16px 20px 0;
    padding: 0 0 10px;
    border-bottom: 2px solid var(--ft-wine);
    border-radius: 0;
    background: none;
    color: var(--ft-ink);
    text-align: left;
  }

  .ft-d-cv-lateral .ft-hero-text {
    align-items: flex-start;
  }

  .ft-d-cv-lateral .ft-hero-name {
    color: var(--ft-wine);
  }

  .ft-d-cv-lateral .ft-description {
    color: var(--ft-muted);
  }

  .ft-d-cv-lateral .ft-body-sections {
    padding: 14px 20px;
  }

  .ft-d-cv-lateral .ft-resume-job {
    break-inside: avoid;
  }
}
