.rp-magazine-shell {
  display:grid;
  gap:24px;
}
.rp-mag-featured .rp-mag-card {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);
  min-height:420px;
}
.rp-mag-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.rp-mag-card {
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  background:#fff;
}
.rp-mag-image {
  min-height:220px;
  aspect-ratio:16/11;
  background:linear-gradient(145deg,#f8f8f8,#e8e8e8);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.rp-mag-image img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.rp-mag-placeholder {
  width:86px;
  height:86px;
  border-radius:50%;
  background:#000;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:36px;
  font-weight:900;
}
.rp-mag-body {
  padding:20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.rp-mag-card h2 {
  margin:0 0 12px;
  font-size:clamp(22px,3vw,44px);
  line-height:.96;
  letter-spacing:-.045em;
}
.rp-mag-grid .rp-mag-card h2 {
  font-size:22px;
  line-height:1.05;
}
.rp-mag-meta {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-top:12px;
}
.rp-article {
  max-width:980px;
  margin:0 auto;
}
.rp-article-head {
  text-align:center;
  margin:20px 0 28px;
}
.rp-article-head h1 {
  font-size:clamp(44px,7vw,86px);
  line-height:.9;
  letter-spacing:-.065em;
  margin:0 0 18px;
}
.rp-article-cover {
  margin:0 0 28px;
  border:1px solid var(--line);
  border-radius:28px;
  overflow:hidden;
}
.rp-article-cover img {
  width:100%;
  max-height:620px;
  object-fit:cover;
}
.rp-article-content {
  max-width:760px;
  margin:0 auto;
  font-size:17px;
  line-height:1.85;
}
.rp-article-content h1,
.rp-article-content h2,
.rp-article-content h3 {
  line-height:1;
  letter-spacing:-.04em;
  margin-top:36px;
}
.rp-article-content img {
  border-radius:22px;
  border:1px solid var(--line);
}
.rp-article-footer {
  max-width:760px;
  margin:28px auto;
}
.rp-comments {
  max-width:760px;
  margin:28px auto 0;
}
.comment-list {
  padding-left:20px;
}
.rp-comment-form textarea,
.rp-comment-form input {
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
}
.rp-page-hero {
  margin-bottom:24px;
}
.rp-page-hero h1,
.rp-legal-document h1 {
  font-size:clamp(42px,7vw,82px);
  line-height:.9;
  letter-spacing:-.06em;
  margin-bottom:18px;
}
.rp-link-grid,
.rp-contact-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:22px 0;
}
.rp-link-card {
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  padding:20px;
  min-height:120px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.rp-link-card span {
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.rp-link-card b {
  font-size:18px;
  letter-spacing:-.02em;
}
.rp-document-box {
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  background:#fff;
  margin:24px 0;
}
.rp-faq-list {
  display:grid;
  gap:14px;
}
.rp-mobile-magazine {
  display:grid;
  gap:14px;
}
.rp-mobile-mag-tabs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.rp-mobile-mag-tabs a,
.rp-mobile-mag-tabs button {
  min-height:42px;
  border:1px solid var(--line);
  border-radius:var(--radius-pill);
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.rp-mobile-mag-tabs .active {
  background:#000;
  color:#fff;
  border-color:#000;
}
.rp-mobile-mag-list {
  display:grid;
  gap:10px;
}
.rp-mobile-mag-row {
  display:grid;
  grid-template-columns:64px 1fr;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:18px;
  padding:10px;
  background:#fff;
}
.rp-mobile-mag-row span {
  width:64px;
  height:64px;
  border-radius:14px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#f8f8f8,#e8e8e8);
}
.rp-mobile-mag-row img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.rp-mobile-mag-row i {
  font-style:normal;
  font-weight:900;
  font-size:22px;
}
.rp-mobile-mag-row b {
  font-size:13px;
  line-height:1.2;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.rp-mobile-mag-row em {
  grid-column:2;
  color:var(--muted);
  font-style:normal;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

@media (max-width:767px) {
  .rp-mag-featured .rp-mag-card {
    display:block;
    min-height:0;
  }
  .rp-mag-grid {
    grid-template-columns:1fr;
    gap:12px;
  }
  .rp-mag-card {
    border-radius:22px;
  }
  .rp-mag-image {
    min-height:230px;
    aspect-ratio:4/3;
  }
  .rp-mag-card h2,
  .rp-mag-grid .rp-mag-card h2 {
    font-size:28px;
  }
  .rp-mag-body {
    padding:18px;
  }
  .rp-article-head {
    text-align:left;
  }
  .rp-article-head h1 {
    font-size:44px;
  }
  .rp-article-cover {
    margin-left:-12px;
    margin-right:-12px;
    border-left:0;
    border-right:0;
    border-radius:0 0 28px 28px;
  }
  .rp-article-content {
    font-size:16px;
    line-height:1.75;
  }
  .rp-link-grid,
  .rp-contact-grid {
    grid-template-columns:1fr;
  }
}


/* v0.7.0 magazine native */
.rp-mag-native .rp-mobile-mag-row {
  grid-template-columns:58px 1fr;
}
.rp-mag-native .rp-mobile-mag-row span {
  width:58px;
  height:58px;
}

/* v1.0 editorial touch targets */
body.rp-theme :where(.rp-mag-card a, .rp-mag-tabs a, .rp-mobile-mag-tabs a, .rp-mobile-mag-tabs button, .rp-mobile-mag-row, .rp-link-card, .rp-contact-grid a, .rp-link-grid a, .rp-article-footer a, .rp-comment-form button, .rp-comment-form input[type="submit"], .rp-faq-list a, .rp-document-box a) {
  min-width:48px;
  min-height:48px;
}
body.rp-theme :where(.rp-mag-tabs a, .rp-mobile-mag-tabs a, .rp-mobile-mag-tabs button, .rp-contact-grid a, .rp-link-grid a, .rp-article-footer a, .rp-comment-form button, .rp-comment-form input[type="submit"], .rp-faq-list a, .rp-document-box a) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
body.rp-theme :where(.rp-mobile-mag-tabs, .rp-link-grid, .rp-contact-grid, .rp-faq-list) {
  gap:8px;
}
body.rp-theme .rp-mag-card a {
  justify-content:stretch;
  text-align:inherit;
}

