.petit-prince-coin {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  width: 100%;
  max-width: var(--site-panel-max-width, 1480px);
  margin-inline: auto;
}

.petit-prince-coin :is(figure, section, header) { min-width: 0; }
.petit-prince-coin p { color: var(--text-secondary); line-height: 1.65; }
.petit-prince-coin strong { color: var(--text-primary); }
.petit-prince-coin a:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 4px; }

.pp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--accent-cyan);
  font-weight: 650;
  text-underline-offset: .22em;
}

.pp-hero, .pp-panel { padding: clamp(16px, 3.2vw, 42px); }
.pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  background: radial-gradient(ellipse at 86% 20%, #213750, #101726 68%);
}

.pp-hero h1 { font-size: clamp(2.12rem, 5vw, 4.2rem); line-height: 1.06; text-wrap: balance; }
.pp-intro p { margin-top: 12px; max-width: 49ch; }
.pp-intro .primary-btn { margin-top: 18px; }
.pp-specs { display: flex; flex-wrap: wrap; gap: 9px 23px; margin: 18px 0 0; }
.pp-specs dt { color: var(--text-secondary); font-size: .79rem; }
.pp-specs dd { margin: 1px 0 0; font-size: clamp(1.02rem, 2vw, 1.28rem); font-weight: 750; }

.pp-faces, .pp-table-grid, .pp-proof-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px);
}

.pp-faces figure { margin: 0; }
.pp-faces a, .pp-proof a {
  display: grid;
  place-items: center;
  padding: clamp(7px, 1.4vw, 17px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #dde2eb, #a9b5c7);
}

.pp-faces img, .pp-proof img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 6px 16px #0e1a2f38;
}

.pp-faces figcaption { margin-top: 8px; font-size: clamp(.8rem, 1.45vw, .95rem); font-weight: 700; }
.pp-panel { scroll-margin-top: 86px; }
.pp-panel h2 { font-size: clamp(1.48rem, 3vw, 2.35rem); line-height: 1.16; text-wrap: balance; }
.pp-panel h3 { font-size: clamp(1.03rem, 2vw, 1.3rem); line-height: 1.22; }
.pp-panel h2 + p { max-width: 82ch; margin-top: 9px; }

.pp-table-grid { align-items: start; margin-top: 19px; }
.pp-table {
  width: 100%;
  border: 1px solid var(--card-border);
  border-spacing: 0;
  border-radius: 13px;
  overflow: hidden;
  background: #0c1525;
  font-size: clamp(.83rem, 1.2vw, .95rem);
}

.pp-table caption { margin-bottom: 8px; text-align: left; font-size: 1.06rem; font-weight: 760; }
.pp-table :is(th, td) { padding: 10px clamp(7px, 1.2vw, 14px); text-align: left; vertical-align: middle; text-transform: none; }
.pp-table thead th { background: #16263a; color: #c4d6e6; font-size: .79rem; }
.pp-table tbody :is(th, td) { border-top: 1px solid var(--card-border); }
.pp-table td { white-space: nowrap; color: #84f3ef; font-variant-numeric: tabular-nums; font-weight: 780; }
.pp-table tr > :last-child { text-align: right; }
.pp-table small { display: block; margin-top: 2px; color: var(--text-secondary); font-size: .76rem; font-weight: 400; white-space: normal; }
.pp-note { margin: 9px 0 0; font-size: .88rem; }

.pp-card-gallery, .pp-identification {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.55vw, 18px);
  margin: 19px 0 0;
}

.pp-proof-gallery { margin-top: 19px; }
.pp-card { margin: 0; border: 1px solid var(--card-border); border-radius: 14px; background: #101b2c; }
.pp-card a:focus-visible { outline-offset: -3px; }
.pp-card > a { display: block; border-radius: 13px 13px 0 0; }
.pp-card > a > img { display: block; width: 100%; height: auto; }
.pp-card:not(.pp-proof) img { aspect-ratio: 620 / 400; border-radius: 13px 13px 0 0; }
.pp-card figcaption { padding: clamp(12px, 2vw, 20px); text-align: left; }
.pp-card p { margin: 5px 0 0; }
.pp-proof a { border: 0; }
.pp-proof img { max-width: 340px; margin-inline: auto; }
.pp-identification { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-identification div { padding: 12px 14px; border-inline-start: 2px solid #65c5e0; background: #132234; }
.pp-identification dt { font-weight: 750; }
.pp-identification dd { margin: 4px 0 0; color: var(--text-secondary); }
.pp-identification ~ .pp-text-link { margin: 8px 18px 0 0; }
.pp-credits { padding-inline: 4px; font-size: .84rem; }
.pp-credits p { margin: 0 0 5px; }

.petit-prince-coin a[aria-haspopup="dialog"] { cursor: zoom-in; }
html:has(.pp-photo-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }

.pp-photo-dialog {
  width: min(810px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: #101b2c;
  color: var(--text-primary);
  overscroll-behavior: contain;
}

.pp-photo-dialog::backdrop { background: rgb(5 10 20 / .86); }
.pp-photo-dialog-content { padding: clamp(10px, 2vw, 18px); }
.pp-photo-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pp-photo-dialog-header h2 { font-size: clamp(1rem, 3vw, 1.28rem); line-height: 1.2; }
.pp-photo-dialog-header form { margin: 0; flex: none; }
.pp-photo-dialog-header button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--card-border);
  border-radius: 9px;
  background: #16263a;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}

.pp-photo-dialog-header button span { padding-inline-start: 4px; }
.pp-photo-dialog-header button:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
.pp-photo-dialog-preview img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 118px);
  max-height: calc(100dvh - 118px);
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 870px) {
  .pp-hero, .pp-table-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-faces { width: min(100%, 550px); }
  .pp-card-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .pp-proof-gallery, .pp-identification { grid-template-columns: minmax(0, 1fr); }
  .pp-proof img { max-width: min(100%, 260px); }
}
