/* RightWords Editorial Studio v1.4.1 — classic heading alignment.
 * Restore the v1.0 editorial type hierarchy across ALL public templates.
 * Visual colors, backgrounds, content, SEO, and stored settings are unchanged.
 * Keep this stylesheet last; legacy and postcard sheets are kept for compatibility.
 */
.rw-shell {
  --rw-heading-serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
.rw-shell .rw-main :is(h1,h2,h3,h4,h5,h6) {
  color: var(--rw-ink);
  text-wrap: pretty;
}
.rw-shell .rw-main :is(.rw-hero h1,.rw-article-top h1,.rw-archive-hero h1,.rw-static-header h1,.rw-notfound h1) {
  font-family: var(--rw-heading-serif);
  font-weight: 400;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.rw-shell .rw-hero h1 {
  font-size: clamp(54px,5.2vw,80px);
  line-height:1.065;
  letter-spacing:-.064em;
}
.rw-shell .rw-hero h1 em {
  color:var(--rw-accent);
  font-style:italic;
  font-weight:400;
  text-decoration:none;
}
.rw-shell .rw-section-head h2,
.rw-shell .rw-featured-left h2,
.rw-shell .rw-subcategory-group h2,
.rw-shell .rw-archive-list-head h2,
.rw-shell .rw-method-inner h2,
.rw-shell .rw-static-content h2,
.rw-shell .rw-guide-library h2 {
  font-family:var(--rw-heading-serif);
  font-weight:400;
  line-height:1.15;
  letter-spacing:-.046em;
}
.rw-shell .rw-section-head h2 {font-size:clamp(36px,3.8vw,51px)}
.rw-shell .rw-topic-heading,
.rw-shell .rw-card h3,
.rw-shell .rw-featured-card h3,
.rw-shell .rw-no-results h3 {
  font-family:var(--rw-heading-serif);
  font-weight:400;
  letter-spacing:-.032em;
  line-height:1.22;
}
.rw-shell .rw-topic-heading {font-size:23px}
.rw-shell .rw-card h3 {font-size:23px}
.rw-shell .rw-featured-card h3 {font-size:35px;line-height:1.18}
.rw-shell .rw-method-inner h2,
.rw-shell .rw-method-inner h2 :is(em,strong) {color:#fff}
.rw-shell .rw-method-inner h2 em {color:#a4c5b0}
.rw-shell .rw-archive-hero h1 {font-size:clamp(45px,5vw,66px);line-height:1.1;letter-spacing:-.055em}
.rw-shell .rw-static-header h1 {font-size:clamp(42px,4.7vw,64px);line-height:1.13}
.rw-shell .rw-notfound h1 {font-weight:400;line-height:1.13}
/* Restore classic v1.0 type styling to all post titles and headings.
 * Explicitly remove the oversized top borders inherited from the redesign.
 */
body.rwes-active .rw-shell .rw-single-main .rw-article-top h1 {
  font-family:var(--rw-heading-serif);
  font-size:clamp(43px,4.9vw,70px);
  font-weight:400;
  line-height:1.12;
  letter-spacing:-.053em;
  margin-bottom:26px;
}
body.rwes-active .rw-shell .rw-single-main .rw-entry-content :is(h2,.wp-block-heading:is(h2)) {
  font-family:var(--rw-heading-serif);
  font-size:clamp(28px,3vw,34px);
  font-weight:400;
  line-height:1.24;
  letter-spacing:-.04em;
  color:var(--rw-ink);
  margin:49px 0 19px;
  padding:0;
  border-top:0;
  border-left:0;
  border-right:0;
  scroll-margin-top:35px;
}
body.rwes-active .rw-shell .rw-single-main .rw-entry-content :is(h3,.wp-block-heading:is(h3)) {
  font-family:var(--rw-sans);
  font-size:17px;
  font-weight:740;
  line-height:1.4;
  letter-spacing:0;
  margin:30px 0 14px;
  color:var(--rw-ink);
}
body.rwes-active .rw-shell .rw-single-main .rw-entry-content :is(h4,h5,h6) {
  font-family:var(--rw-sans);
  font-weight:750;
  letter-spacing:0;
  line-height:1.42;
  color:var(--rw-ink);
  margin:27px 0 12px;
}
.rw-shell .rw-static-content :is(h3,h4),
.rw-shell .rw-guide-library :is(h3,h4) {
  font-family:var(--rw-sans);
  font-weight:740;
  line-height:1.4;
  letter-spacing:0;
}
/* Reading section labels and guide-library headings use the same hierarchy. */
.rw-shell .rw-guide-library :is(h2,h3,h4) {color:var(--rw-ink)}
.rw-shell .rw-guide-library h2 {font-size:clamp(30px,3.1vw,41px)}
.rw-shell .rw-guide-library h3 {font-size:20px}
@media(max-width:900px) {
 .rw-shell .rw-hero h1 {font-size:clamp(43px,7vw,59px)}
 .rw-shell .rw-featured-card h3 {font-size:30px}
 body.rwes-active .rw-shell .rw-single-main .rw-article-top h1 {font-size:clamp(40px,7vw,59px)}
}
@media(max-width:600px) {
 .rw-shell .rw-hero h1 {font-size:clamp(43px,11vw,59px);line-height:1.075}
 .rw-shell .rw-section-head h2 {font-size:36px}
 .rw-shell .rw-topic-heading,.rw-shell .rw-card h3 {font-size:23px}
 .rw-shell .rw-featured-card h3 {font-size:29px}
 .rw-shell .rw-archive-hero h1 {font-size:clamp(40px,9vw,50px)}
 .rw-shell .rw-static-header h1 {font-size:40px}
 body.rwes-active .rw-shell .rw-single-main .rw-article-top h1 {
   font-size:clamp(37px,9.3vw,47px);
   line-height:1.13;
   letter-spacing:-.048em;
   margin-bottom:24px;
 }
 body.rwes-active .rw-shell .rw-single-main .rw-entry-content :is(h2,.wp-block-heading:is(h2)) {
   font-size:27px;
   margin:35px 0 18px;
   padding:0;
   border:0;
 }
 body.rwes-active .rw-shell .rw-single-main .rw-entry-content :is(h3,.wp-block-heading:is(h3)) {font-size:16px}
 .rw-shell .rw-guide-library h2 {font-size:30px}
 .rw-shell .rw-guide-library h3 {font-size:18px}
}
