/*
 * this is me — profile page stylesheet (P01 D2, TIM-4/TIM-26).
 * The approved mock links this file; P02's renderer ships it as the versioned profile asset, so what is
 * approved is what is published. Tokens are Lars's mockup (css/style.css :root) plus two accessible shades
 * for buttons (white text needs 4.5:1; Lars's gradient measures 1.5–3.1:1).
 * No web fonts, no third-party requests, no script needed for anything on this page.
 */
:root {
  --ink: #14171c;
  --ink-soft: #4b5361;
  --paper: #fbfaf7;
  --paper-alt: #f1efe9;
  --line: #e5e2da;
  --accent: #ff5a3c;
  --accent-ink: #7a1f0f;
  --accent-soft: #ffe6de;
  --teal: #0f5c56;
  --teal-soft: #dcf1ee;
  --grad: linear-gradient(135deg, #ff5a3c 0%, #ff8a5c 45%, #ffc86b 100%);
  /* Button gradient: same hue, dark enough for white text (4.6:1 and 5.2:1). */
  --btn-grad: linear-gradient(135deg, #d9381e 0%, #c2410c 100%);
  --brand-orange: #ff8500;
  --brand-navy: #0e213b;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 23, 28, 0.08);
  --max: 980px;
  --font:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  /* The person's cover: accent colour or uploaded image; set per profile on <body>. */
  --cover: var(--grad);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Slim header: the person is the hero, not our menu ---------- */
.tm-header {
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
}
.tm-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
}
.tm-logo img {
  height: 22px;
  width: auto;
}
.tm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: flex;
  gap: 2px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: 0.76rem;
  font-weight: 800;
}
.lang a {
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
}
.lang a[aria-current='true'] {
  background: var(--ink);
  color: #fff;
}
.tm-cta {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--btn-grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 56, 30, 0.25);
}
.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--ink);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}

/* ---------- Cover and hero ---------- */
.cover {
  height: 150px;
  background: var(--cover);
}
.hero {
  display: flex;
  gap: 44px;
  align-items: flex-start;
}
.photo {
  flex: 0 0 210px;
  width: 210px;
  aspect-ratio: 1;
  margin-top: -90px;
  border-radius: var(--radius);
  border: 5px solid #fff;
  box-shadow: var(--shadow);
  background: var(--paper-alt);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Initials avatar: bare profiles (never a photo, TIM-9) and profiles without a photo. */
.initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--brand-navy);
  color: #fff;
  font-weight: 800;
  font-size: 3.4rem;
  letter-spacing: -0.03em;
}
.hero-info {
  flex: 1;
  min-width: 0;
  padding-top: 22px;
}
.name {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.verified {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  align-items: center;
  justify-content: center;
  vertical-align: 4px;
  margin-left: 6px;
}
.verified svg {
  width: 14px;
  height: 14px;
}
.tagline {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0 0 4px;
}
.location {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bio {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 62ch;
}
.bio p {
  margin: 0 0 10px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Sections ---------- */
.section {
  padding: 34px 0 0;
}
.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.link-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  text-decoration: none;
}
.link-card:hover {
  border-color: var(--ink);
}
.fav {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--paper-alt);
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.fav img {
  width: 20px;
  height: 20px;
}
.link-card strong {
  display: block;
  font-size: 0.98rem;
}
.link-card span.desc {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Roles (companies) */
.roles {
  display: grid;
  gap: 12px;
}
.role {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
}
.role-main strong {
  display: block;
  overflow-wrap: anywhere;
}
.role-kind {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.role-seat {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.role-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.chip-link {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  text-decoration: none;
  background: var(--paper);
}
.chip-link:hover {
  border-color: var(--ink);
}

/* Socials */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.social:hover {
  border-color: var(--ink);
}
.social svg {
  width: 21px;
  height: 21px;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 2px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--accent-ink);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '–';
}
.faq .a {
  padding: 0 2px 16px;
  color: var(--ink-soft);
}

/* Meta line, Impressum, source */
.meta {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 26px 0 0;
}
.meta a {
  color: var(--ink);
}
.impressum {
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  white-space: pre-line;
}

/* Claim call-to-action (bare profiles) */
.claim {
  margin-top: 30px;
  background: var(--accent-soft);
  border: 1px solid #ffcdb8;
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.claim p {
  margin: 0;
  color: var(--accent-ink);
}
.claim strong {
  display: block;
  font-size: 1.08rem;
  color: var(--ink);
}
.source {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding: 2px 0 2px 12px;
}

/* "Made with this is me" (free plan) */
.made-with {
  margin: 40px 0 0;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.made-with p {
  margin: 0;
  color: #d6d9df;
  font-size: 0.92rem;
}
.made-with strong {
  color: #fff;
}
.made-with .btn {
  background: #fff;
  color: var(--ink);
}

/* Footer */
.tm-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 22px 0 28px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.tm-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
}
.tm-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.tm-footer a {
  color: var(--ink);
}
.art14 {
  flex-basis: 100%;
  font-size: 0.8rem;
}

/* ---------- Dialogs (CSS :target, no script) ---------- */
.dialog {
  position: fixed;
  inset: 0;
  background: rgba(20, 23, 28, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 16px;
  overflow-y: auto;
  z-index: 50;
}
.dialog:target {
  display: flex;
}
.dialog-box {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 460px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(20, 23, 28, 0.25);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.dialog-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  border: 1.5px solid var(--line);
  font-size: 1.1rem;
}
.field {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}
.field label {
  font-weight: 700;
  font-size: 0.88rem;
}
.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  width: 100%;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.qr {
  width: 180px;
  height: 180px;
  margin: 6px auto 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row input {
  flex: 1;
  min-width: 0;
}
.hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .cover {
    height: 104px;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .photo {
    flex-basis: auto;
    width: 124px;
    margin-top: -62px;
    border-width: 4px;
  }
  .initials {
    font-size: 2.2rem;
  }
  .hero-info {
    padding-top: 0;
  }
  .location {
    justify-content: center;
  }
  .bio {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  .actions {
    justify-content: center;
    flex-wrap: nowrap;
  }
  .actions .btn-outline {
    width: 46px;
    height: 46px;
    padding: 0;
  }
  .actions .btn-outline .lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .link-grid {
    grid-template-columns: 1fr;
  }
  .tm-cta {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}

/* Bio: first paragraph always, the rest on request (no script) */
.more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-ink);
  font-size: 0.92rem;
  margin: 0 0 10px;
  width: fit-content;
}
.more[open] summary {
  display: none;
}
@media (max-width: 760px) {
  .bio {
    text-align: left;
  }
  .more summary {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 760px) {
  .cover {
    height: 96px;
  }
  .photo {
    width: 112px;
    margin-top: -56px;
  }
  .actions .btn-primary {
    white-space: nowrap;
  }
  .hero {
    gap: 12px;
  }
}

/* ---------- Form controls (P01 feedback, TIM-30): one look for selects, checkboxes, radios, switches ---------- */
select,
.field select,
.toolbar select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5361' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 42px !important;
  cursor: pointer;
}
input[type='checkbox'],
input[type='radio'] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px !important;
  height: 20px;
  margin: 1px 0 0;
  padding: 0 !important;
  flex-shrink: 0;
  border: 1.5px solid #c9c5bb;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  vertical-align: -4px;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
input[type='checkbox'] {
  border-radius: 6px;
}
input[type='radio'] {
  border-radius: 50%;
}
input[type='checkbox']:checked {
  background: #0f5c56
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
  border-color: #0f5c56;
}
input[type='radio']:checked {
  border-color: #0f5c56;
  background: radial-gradient(circle, #0f5c56 0 5px, #fff 5.5px);
}
input[type='checkbox']:disabled,
input[type='radio']:disabled {
  background-color: #f1efe9;
  cursor: not-allowed;
}
input[type='checkbox']:focus-visible,
input[type='radio']:focus-visible {
  outline: 3px solid rgba(15, 92, 86, 0.35);
  outline-offset: 2px;
}
/* On/off switch: <input type="checkbox" class="switch"> */
input[type='checkbox'].switch {
  width: 44px !important;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: #d6d2c8
    radial-gradient(circle at 12px 50%, #fff 0 9px, transparent 9.5px);
}
input[type='checkbox'].switch:checked {
  background: #0f5c56
    radial-gradient(
      circle at calc(100% - 12px) 50%,
      #fff 0 9px,
      transparent 9.5px
    );
}
button,
.btn {
  white-space: nowrap;
}

/* The photo overlaps the cover band only when a cover is directly above it */
.photo {
  margin-top: 0;
}
.cover + main .hero .photo,
.cover + .hero .photo {
  margin-top: -90px;
}
@media (max-width: 760px) {
  .cover + main .hero .photo,
  .cover + .hero .photo {
    margin-top: -56px;
  }
}

/* Report dialog: reasons as a radio list (no dropdown on public pages) */
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  min-width: 0;
}
fieldset.field legend {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  padding: 0;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 0.92rem;
}
.choice:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-soft);
}
