/* C-20261108-03: self-introduction guide additions.
   Shared mobile table/CTA behavior stays in blog-mobile.css and blog-mobile.js. */
.js-page {
  --pd-accent: #96506a;
  --pd-accent-dark: #683449;
  --pd-green: #235c51;
}
.js-page .pd-hero {
  background:
    radial-gradient(circle at 92% 8%, rgba(198, 157, 104, .17), transparent 25rem),
    linear-gradient(145deg, #fff 0%, #fff 54%, #f7eef2 100%);
}
.js-page .pd-hero h1 { max-width: 940px; }
.js-title-phrase { white-space: nowrap; }
.js-hero-photo img { object-position: center 54%; }
.js-page .or-formula { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.js-page .or-formula li { padding: 14px; }
.js-page .or-formula strong { font-size: 15px; }
.js-page .or-formula small { font-size: 11px; }
.js-page section[id] { scroll-margin-top: 84px; }

.js-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.js-selector article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--pd-line);
  border-top: 5px solid var(--pd-accent);
  border-radius: 15px;
  background: #fff;
}
.js-selector article:last-child { border-top-color: var(--pd-green); }
.js-selector span {
  display: block;
  margin-bottom: 5px;
  color: var(--pd-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.js-selector strong { display: block; color: var(--pd-ink); font-size: 19px; line-height: 1.45; }
.js-selector p { margin: 7px 0 0; color: var(--pd-muted); font-size: 14px; line-height: 1.75; }

.js-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  margin: 24px 0;
}
.js-photo-pair .pd-story-visual { width: 100%; margin: 0; }
.js-photo-pair img {
  width: 100%;
  height: min(48vw, 390px);
  object-fit: cover;
}
.js-photo-pair .is-top img { object-position: center top; }
.js-photo-pair .is-center img { object-position: center center; }
.js-photo-wide img { aspect-ratio: 3 / 2; object-fit: cover; }
.js-photo-portrait { width: min(100%, 390px); }
.js-photo-portrait img { width: 100%; height: min(132vw, 500px); object-fit: cover; object-position: center top; }

.js-type-heading {
  margin: 34px 0 8px;
  color: var(--pd-ink);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.45;
}
.js-type-heading:first-of-type { margin-top: 20px; }
.js-template {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #c8d8d1;
  border-radius: 15px;
  background: #f1f8f5;
  color: var(--pd-ink);
  font-size: 16px;
  line-height: 1.9;
}
.js-template mark {
  padding: 1px 4px;
  border-radius: 4px;
  background: #ffe8a8;
  color: inherit;
}
.js-page .pd-mini-table tbody th { min-width: 8em; }

@media (max-width: 700px) {
  .js-page .pd-hero h1 { font-size: 25px; line-height: 1.2; }
  .js-page .or-formula { grid-template-columns: 1fr; }
  .js-page .or-formula li {
    display: grid;
    grid-template-columns: 30px 82px 1fr;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
  }
  .js-page .or-formula span { margin: 0; }
  .js-page .or-formula small { margin: 0; }
  .js-selector { grid-template-columns: 1fr; }
  .js-photo-pair img { height: 250px; }
  .js-page .pd-mini-table-wrap { overflow: visible; }
}

@media (max-width: 420px) {
  .js-page .pd-hero h1 { font-size: 24px; }
}
