/* C-20261107-04: scene examples, jump index, diagrams, and mobile tables for the writing guide. */
.sk-page {
  --pd-accent: #913956;
  --pd-accent-dark: #64253b;
  --pd-green: #20564b;
}
.sk-page .pd-hero {
  background:
    radial-gradient(circle at 91% 8%, rgba(145, 57, 86, .12), transparent 25rem),
    linear-gradient(145deg, #fff 0%, #fff 56%, #f7eff2 100%);
}
.sk-page .pd-hero h1 {
  max-width: 940px;
  word-break: auto-phrase;
  overflow-wrap: normal;
}
.sk-title-phrase { white-space: nowrap; }
.sk-page .pd-heading,
.sk-page .hr-subheading,
.sk-page .sk-scene__head h3 { word-break: auto-phrase; overflow-wrap: normal; }
.sk-page .pd-reading > p:not([class]) { margin: 18px 0; font-size: 16px; line-height: 1.9; }
.sk-page .pd-hero-photo img { aspect-ratio: 900 / 260; object-fit: cover; }
.sk-page .hr-answer-grid article { border-top: 4px solid #d7b8c3; }
.sk-page .hr-answer-grid article:nth-child(2) { border-top-color: #c9b36e; }
.sk-page .hr-answer-grid article:nth-child(3) { border-top-color: #7da39b; }
.sk-page .hr-answer-grid article:nth-child(4) { border-top-color: #8b94aa; }

.sk-page section[id],
.sk-page .sk-scene[id] { scroll-margin-top: 92px; }
.sk-index { border-block: 1px solid #e6ddd7; background: #fff; }
.sk-index__inner { display: grid; gap: 18px; padding-block: 22px; }
.sk-index__group { min-width: 0; }
.sk-index__label {
  margin: 0 0 10px;
  color: var(--pd-accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
}
.sk-index__scenes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.sk-index__scenes a,
.sk-index__toc a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #dac8cf;
  border-radius: 11px;
  background: #fbf7f8;
  color: #4f2032;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.sk-index__scenes a:hover,
.sk-index__scenes a:focus-visible,
.sk-index__toc a:hover,
.sk-index__toc a:focus-visible { border-color: var(--pd-accent); background: #f5e9ed; outline: none; }
.sk-index__group--toc { padding-top: 16px; border-top: 1px solid #eee6e1; }
.sk-index__toc { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-index__toc a { min-height: 36px; padding-inline: 14px; border-color: #d8ddd9; background: #f6f9f8; color: #20564b; font-size: 13px; }

.sk-diagram { width: min(100%, 840px); }
.sk-diagram img { display: block; width: 100%; height: auto; }
.sk-inline-figure { width: min(100%, 760px); margin-block: 4px; }
.sk-copy-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--pd-green);
  border-radius: 0 10px 10px 0;
  background: #eef6f3;
  color: #294c45;
  font-size: 13px;
  line-height: 1.7;
}

.sk-formula {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}
.sk-formula li {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--pd-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .05);
}
.sk-formula span { display: block; color: var(--pd-accent-dark); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.sk-formula strong { display: block; margin-top: 6px; color: var(--pd-ink); font-size: 17px; line-height: 1.45; }
.sk-formula p { margin: 6px 0 0; color: var(--pd-muted); font-size: 14px; line-height: 1.7; }

.sk-scene-grid { display: grid; gap: 18px; margin-top: 26px; }
.sk-scene {
  overflow: hidden;
  border: 1px solid var(--pd-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .06);
}
.sk-scene__head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px 17px;
  background: #f8f5ee;
}
.sk-scene__number {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #222d42;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.sk-scene__head h3 { margin: 0; color: var(--pd-ink); font-size: 20px; line-height: 1.4; }
.sk-scene__head p { margin: 3px 0 0; color: var(--pd-muted); font-size: 13px; line-height: 1.6; }
.sk-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px; }
.sk-example { min-width: 0; padding: 15px; border: 1px solid #e7dde1; border-radius: 13px; background: #fffafb; }
.sk-example__title { margin: 0 0 9px; color: var(--pd-accent-dark); font-size: 16px; line-height: 1.5; }
.sk-example blockquote {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #eadde2;
  border-left: 4px solid var(--pd-accent);
  border-radius: 10px;
  background: #fff;
  color: var(--pd-ink);
  font-size: 15px;
  line-height: 1.85;
  user-select: text;
  -webkit-user-select: text;
}
.sk-example__edit { margin: 11px 0 0; padding-top: 10px; border-top: 1px dashed #d9c5cd; color: var(--pd-muted); font-size: 12px; line-height: 1.7; }

.sk-ng-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.sk-ng-grid article { padding: 15px; border: 1px solid var(--pd-line); border-radius: 13px; background: #fff; }
.sk-ng-grid h3 { margin: 0 0 5px; color: var(--pd-ink); font-size: 17px; line-height: 1.45; }
.sk-ng-grid p { margin: 0; color: var(--pd-muted); font-size: 14px; line-height: 1.75; }
.sk-ng-grid article:last-child { grid-column: 1 / -1; }
.sk-portrait { width: min(100%, 600px); }
.sk-portrait img { max-height: 500px; object-fit: cover; object-position: center top; }
.sk-screen { width: min(100%, 430px); }
.sk-screen img { max-height: 500px; object-fit: cover; object-position: center top; }
.sk-source-note { overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .sk-page .pd-hero h1 { font-size: 27px; line-height: 1.2; }
  .sk-page .pd-hero-photo { margin-block: 9px; }
  .sk-page .pd-hero-photo figcaption { padding-block: 6px 7px; font-size: 10px; }
  .sk-page .pd-hero__answer { margin-top: 8px; font-size: 15px; line-height: 1.55; }
  .sk-page .pd-updated { font-size: 10px; line-height: 1.5; }
  .sk-index__inner { gap: 15px; padding-block: 18px; }
  .sk-index__scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .sk-index__scenes a { min-height: 40px; padding: 7px 6px; font-size: 13px; }
  .sk-index__toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-index__toc a { padding-inline: 7px; }
  .sk-formula { grid-template-columns: 1fr; }
  .sk-examples { grid-template-columns: 1fr; padding: 12px; }
  .sk-scene__head { grid-template-columns: 46px minmax(0, 1fr); padding: 13px; }
  .sk-scene__number { width: 44px; height: 44px; }
  .sk-scene__head h3 { font-size: 18px; }
  .sk-ng-grid { grid-template-columns: 1fr; }
  .sk-ng-grid article:last-child { grid-column: auto; }
  .sk-page .pd-cta.hr-dual-cta { gap: 10px; }
  .sk-page .pd-cta.hr-dual-cta .hr-dual-cta__copy,
  .sk-page .pd-cta.hr-dual-cta .hr-dual-cta__actions,
  .sk-page .pd-cta.hr-dual-cta .hr-cta-note {
    flex: 0 0 auto;
    width: 100%;
  }
  .sk-page .pd-mini-table-wrap { overflow: visible; border: 0; background: transparent; }
  .sk-page .pd-mini-table,
  .sk-page .sk-table {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 14px;
  }
  .sk-page .pd-mini-table caption { display: block; width: 100%; border-radius: 13px; }
  .sk-page .pd-mini-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    transform: scale(0);
    transform-origin: left top;
  }
  .sk-page .pd-mini-table tbody { display: grid; gap: 10px; padding-top: 10px; }
  .sk-page .pd-mini-table tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: 13px;
    background: #fff;
  }
  .sk-page .pd-mini-table tbody th {
    display: block;
    min-width: 0;
    padding: 9px 12px;
    border: 0;
    background: #eee9df;
    font-size: 14px;
    line-height: 1.55;
  }
  .sk-page .pd-mini-table tbody td {
    display: grid;
    grid-template-columns: minmax(86px, .38fr) minmax(0, 1fr);
    gap: 10px;
    padding: 9px 12px;
    border: 0;
    border-top: 1px solid var(--pd-line);
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.65;
  }
  .sk-page .pd-mini-table tbody td::before {
    content: attr(data-label);
    align-self: start;
    color: var(--pd-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.5;
  }
  .sk-diagram, .sk-inline-figure { width: 100%; }
}

@media (max-width: 420px) {
  .sk-page .pd-hero h1 { font-size: 25px; }
  .sk-page .pd-kicker { font-size: 11px; }
}
