/* ==========================================================================
   wikiHow skin for the standalone rich guides.
   Loaded after each page's inline stylesheet, so it can retheme the existing
   markup without rebuilding the articles. Content stays exactly as written.
   ========================================================================== */

:root {
  --g: #8fb86d;
  --g-dark: #628b45;
  --g-deeper: #3f5e2c;
  --g-link: #3d6b22;
  --g-soft: #eaf3e0;
  --g-soft-2: #f2f7ea;
  --g-line: #d8e5c8;
  --amber: #f6c445;
  --red: #bf3b2b;
  --ink: #222222;
  --body: #333333;
  --muted: #6b6b66;
  --line: #dcdcd6;
  --line-soft: #ecece7;
  --bg: #f4f4f1;
  --radius: 3px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;

  /* Retheme the rich page's own variables in place. */
  --green: #8fb86d;
  --green-dark: #476b2d;
  --green-soft: #eaf3e0;
  --ink: #222222;
  --ink-2: #333333;
  --muted: #6b6b66;
  --line: #dcdcd6;
  --cream: #f4f4f1;
  --paper: #ffffff;
  --terracotta: #476b2d;
  --olive: #628b45;
  --serif: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --wrap: 1240px;
}

html { scroll-padding-top: 20px; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.3px;
}

a { color: var(--g-link); }
a:hover { color: var(--g-dark); }

img { border-radius: 0; }

#progress { background: var(--g-dark); height: 2px; }

.wrap { padding: 0 22px; }
@media (min-width: 1290px) { .wrap { padding: 0 24px; } }

/* ------------------------------------------------------------------ header */
.wk-header {
  background: var(--g);
  position: relative;
  z-index: 80;
}
.wk-head-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.wk-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}
.wk-brand:hover { text-decoration: none; }
.wk-brand-word {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #2f4a20;
  line-height: 1;
}
.wk-brand-word b { color: #476b2d; font-weight: 800; }
.wk-brand-tag {
  font-size: 14px;
  font-style: italic;
  color: #3e5a2c;
  border-bottom: 1px solid rgba(62, 90, 44, .55);
  padding-bottom: 2px;
  white-space: nowrap;
}
.wk-search {
  flex: 1 1 460px;
  max-width: 500px;
  height: 40px;
  margin-left: 18px;
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #729a51;
  border-radius: 2px;
  overflow: hidden;
}
.wk-search-icon {
  display: flex;
  align-items: center;
  padding: 0 8px 0 12px;
  color: #8a8a80;
}
.wk-search-icon svg { width: 19px; height: 19px; }
.wk-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 4px;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  outline: none;
}
.wk-search button {
  border: 0;
  background: #6f9b4e;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 0 22px;
  cursor: pointer;
}
.wk-search button:hover { background: #5d873f; }
.wk-pill {
  margin-left: auto;
  flex: 0 0 auto;
  background: var(--amber);
  color: #2c2c2c;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
  text-decoration: none;
}
.wk-pill:hover { background: #ffd45c; text-decoration: none; }
.wk-head-bar {
  background: #85ad63;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.wk-iconnav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}
.wk-iconnav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.wk-iconnav-link:last-child { border-right: 1px solid rgba(255, 255, 255, .2); }
.wk-iconnav-link svg { width: 18px; height: 18px; opacity: .95; }
.wk-iconnav-link:hover { background: rgba(255, 255, 255, .12); text-decoration: none; color: #fff; }

.wk-msearch {
  display: none;
  background: #85ad63;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 9px 14px 10px;
}
.wk-msearch form {
  display: flex;
  height: 38px;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
}
.wk-msearch input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 11px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.wk-msearch button {
  border: 0;
  background: #6f9b4e;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 0 15px;
}

.wk-trustbar {
  background: var(--g-soft);
  border-bottom: 1px solid var(--g-line);
  padding: 8px 22px;
  font-size: 12.5px;
  color: #414d38;
  text-align: center;
}
.wk-trustbar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.wk-trustbar svg { width: 15px; height: 15px; color: #5d8b3d; }
.wk-trustbar a { font-weight: 700; text-decoration: underline; color: var(--g-link); }
.wk-trustbar .wk-trust-short { display: none; }

/* ------------------------------------------------------------------ article shell */
main#main {
  max-width: 1050px;
  margin: 0 auto;
  padding: 22px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 728px) 300px;
  gap: 0 22px;
  align-items: start;
}
main#main > .article-head { grid-column: 1; padding: 0; min-width: 0; }
.article-layout { display: contents; }
.article { grid-column: 1; min-width: 0; counter-reset: phase; }
.sidebar {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-self: start;
}

/* white title card */
.wk-art-card {
  background: #fff;
  border-radius: 4px;
  padding: 18px 26px 24px;
  overflow: hidden;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #7d8774;
  margin: 0 0 9px;
}
.crumbs a { color: #307530; }
.crumbs a:hover { color: #22551f; }
.crumbs span { color: #a7b09e; }
.crumbs em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 11.5px;
  color: #7c7c74;
}
.eyebrow { display: none; }
h1.title {
  font-size: 35px;
  line-height: 1.18;
  letter-spacing: -.5px;
  font-weight: 700;
  color: #222;
  max-width: none;
  margin: 2px 0 8px;
}
.lead {
  font-style: normal;
  font-size: 18.5px;
  line-height: 1.55;
  color: #545454;
  max-width: none;
  margin: 0 0 12px;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  color: #545454;
  border: 0;
  padding: 0 0 4px;
}
.byline strong { color: #307530; }
.byline .dot { color: #c3c3bb; }
.byline .verified { color: #307530; font-weight: 700; }
.byline .verified svg { width: 14px; height: 14px; }
.wk-dl {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f1f1f1;
  color: #222;
  border: 0;
  border-radius: 4px;
  padding: 7px 12px;
  font: 700 13px var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.wk-dl:hover { background: #e6e6e2; }
.wk-dl svg { width: 18px; height: 18px; color: #c0392b; }

.hero {
  margin: 14px -26px -24px;
  border: 0;
  border-radius: 0;
  background: #f1f1ef;
  box-shadow: none;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero figcaption {
  font-size: 12px;
  color: #6b6b66;
  padding: 8px 26px 0;
  background: #fff;
  border-top: 0;
}

/* summary + facts cards */
.quick {
  margin: 22px 0 0;
  background: #eef4e8;
  border: 0;
  border-left: 0;
  border-radius: 4px;
  padding: 17px 22px 15px;
}
.quick h2 {
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  color: #2f4a20;
  margin-bottom: 8px;
}
.quick p { font-size: 15px; line-height: 1.62; color: #333; }

.facts {
  margin: 22px 0 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  grid-template-columns: repeat(3, 1fr);
}
.fact { background: #fff; padding: 13px 16px; border-color: #ecebe8; }
.fact b { font-size: 10px; letter-spacing: .9px; color: #7a7a72; }
.fact span { font-size: 14px; color: #333; }

/* intro card */
.intro {
  background: #fff;
  border-radius: 4px;
  padding: 18px 26px 20px;
  margin-top: 22px;
}
.intro p { font-size: 16px; line-height: 1.7; }

/* ------------------------------------------------------------------ phases + steps */
.phase {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 26px 0 0;
  counter-increment: phase;
  scroll-margin-top: 16px;
}
.phase-head {
  position: relative;
  background: #fff;
  border: 0;
  border-radius: 4px 4px 0 0;
  min-height: 60px;
  padding: 11px 22px 11px 76px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.phase-head::before {
  content: "Phase";
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  box-sizing: border-box;
  background: #93b874;
  color: #fff;
  border-radius: 4px 0 0 0;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
}
.phase-head::after {
  content: counter(phase);
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  box-sizing: border-box;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 11px;
}
.phase-kicker { display: none; }
.phase-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.1px; margin: 0; color: #222; }
.phase-head p { font-size: 13.5px; line-height: 1.55; color: #666; max-width: none; margin: 2px 0 0; }

.step {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0;
  margin: 22px 0 0;
  overflow: hidden;
  scroll-margin-top: 16px;
}
.phase .step:first-of-type { margin-top: 0; border-radius: 0 0 4px 4px; }
.step-figure {
  order: -1;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #f1f1ef;
}
.step-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
}
.step-figure figcaption {
  font-size: 12px;
  color: #6b6b66;
  padding: 8px 22px;
  background: #fff;
  border-top: 0;
}
.step-head {
  order: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 22px 0;
  margin: 0;
}
.step-num {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-width: 46px;
  background: transparent;
  color: #4d4d47;
  font-family: var(--font);
  font-size: 42px;
  line-height: .98;
  font-weight: 700;
  border-radius: 0;
}
.step-head h3 {
  font-size: 20px;
  line-height: 1.35;
  padding: 4px 0 0;
  margin: 0;
  letter-spacing: -.15px;
  color: #222;
}
.step-body { order: 1; padding: 8px 22px 22px 80px; }
.step-body p { font-size: 16px; line-height: 1.65; color: #333; }
.do-this {
  background: #eef4e8;
  border-left: 3px solid var(--g);
  border-radius: 0 2px 2px 0;
  padding: 11px 14px;
  margin-top: 15px;
}
.do-label { font-size: 10px; letter-spacing: .8px; color: #4f7a32; }
.do-this p { font-size: 14.5px; line-height: 1.55; color: #333; }

/* ------------------------------------------------------------------ sidebar */
.sidebar { top: 16px; gap: 15px; }
.toc {
  background: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0 0 12px;
  max-height: calc(100vh - 32px);
}
.toc h2 {
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: #222;
  font-weight: 700;
  margin: 0;
  padding: 13px 15px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.toc ol { font-size: 12px; padding: 8px 10px 0; }
.toc > ol > li { margin: 8px 0 0; }
.toc > ol > li > a { color: #3f4a37; font-size: 12.5px; font-weight: 700; padding: 2px 4px; }
.toc ol ol { border-left: 0; padding-left: 6px; margin-top: 2px; }
.toc ol ol a { padding: 3px 6px; color: #5b5b53; }
.toc a.active { background: #eef4e8; color: var(--g-link); font-weight: 700; }
.side-note {
  background: #eef4e8;
  border: 0;
  border-radius: 4px;
  color: #3f4a37;
  padding: 14px 16px;
  font-size: 12px;
}
.side-note b { color: #2f4a20; font-size: 13px; }
.side-note a { color: var(--g-link); }

.mobile-toc { border-radius: 4px; background: #fff; border: 0; margin-top: 22px; }
.mobile-toc summary { color: var(--g-link); }

/* ------------------------------------------------------------------ end sections */
.end-section {
  background: #fff;
  border: 0;
  border-radius: 4px;
  margin: 22px 0 0;
  padding: 20px 26px;
  scroll-margin-top: 16px;
}
.end-section h2 { font-size: 22px; letter-spacing: -.3px; margin-bottom: 14px; }
.end-section h2 .sub { color: #5d7f44; font-size: 11px; letter-spacing: 1px; }
.faq-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ecece7;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { font-size: 15px; padding: 13px 32px 13px 0; color: #222; }
.faq-item summary::after { color: #628b45; }
.faq-a { font-size: 14.5px; color: #444; padding: 0 0 14px; }
.faq-a p { margin: 0; }
.next-grid { gap: 12px; }
.next-card {
  border-radius: 4px;
  border: 1px solid #dcdcd6;
  background: #fff;
  padding: 14px;
}
.next-card strong { font-family: var(--font); font-size: 15px; letter-spacing: -.2px; }
.next-card span { font-size: 12px; }
.sources li { font-size: 13.5px; border-bottom-color: #ecece7; }
.sources li::before { background: #eef4e8; color: var(--g-link); }
.method {
  background: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
}
.author-box {
  background: #fff;
  border: 0;
  border-radius: 4px;
  margin-top: 22px;
  padding: 20px 26px;
}
.author-mark { background: var(--g); font-family: var(--font); }

.table-wrap { border-radius: 4px; background: #fff; }
caption { color: #7a7a72; }
tbody th { background: #f2f7ea; }
.week-table td:first-child { color: var(--g-link); }
.tbl-note { color: var(--muted); }
.intro p:first-child::first-letter {
  font-family: var(--font);
  font-size: 1em;
  float: none;
  color: inherit;
  padding: 0;
}

/* ------------------------------------------------------------------ footer */
.wk-footer {
  background: #f2f7ec;
  border-top: 3px solid var(--g);
  margin-top: 30px;
  padding-top: 30px;
  color: #4b5344;
}
.wk-footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 26px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.wk-footer-brand .wk-brand { align-items: center; gap: 7px; }
.wk-footer-mark { width: 26px; height: 26px; color: #5d8b3d; }
.wk-footer-brand .wk-brand-word { font-size: 22px; letter-spacing: -.8px; color: #2f4a20; }
.wk-footer-brand p { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: #5d6556; max-width: 360px; }
.wk-footer-col h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #65785a;
  margin: 0 0 8px;
}
.wk-footer-col a {
  display: block;
  padding: 3.5px 0;
  font-size: 13px;
  color: #45523c;
}
.wk-footer-col a:hover { color: var(--g-link); text-decoration: underline; }
.wk-footer-col p { margin: 0; font-size: 12.5px; line-height: 1.6; color: #5d6556; }
.wk-footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 13px 22px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #dde7d2;
  font-size: 11.5px;
  color: #747d6c;
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1120px) {
  main#main { grid-template-columns: minmax(0, 1fr) 270px; gap: 0 20px; }
}
@media (max-width: 1080px) {
  main#main {
    display: block;
    max-width: 760px;
    padding: 22px 0 40px;
    margin: 0 auto;
  }
  .sidebar { display: none; }
  .mobile-toc { display: block; }
}
@media (max-width: 900px) {
  .wk-search { display: none; }
  .wk-brand-tag { display: none; }
  .wk-msearch { display: block; }
}
@media (max-width: 860px) {
  .wk-trustbar .wk-trust-full { display: none; }
  .wk-trustbar .wk-trust-short { display: inline-flex; }
}
@media (max-width: 700px) {
  main#main { max-width: none; padding: 0 0 10px; }
  .wk-art-card { border-radius: 0; padding: 14px 16px 20px; }
  .crumbs { font-size: 9.5px; margin-bottom: 8px; }
  h1.title { font-size: 27px; letter-spacing: -.3px; margin-top: 0; }
  .lead { font-size: 17px; margin-bottom: 10px; }
  .byline { font-size: 12.5px; padding-bottom: 6px; }
  .wk-dl { margin: 8px 0 0; }
  .hero { margin: 12px -16px -20px; }
  .hero figcaption { padding: 8px 16px 0; }
  .quick { border-radius: 0; margin-top: 10px; padding: 15px 16px; }
  .facts { border-radius: 0; margin-top: 10px; grid-template-columns: 1fr 1fr; }
  .intro { border-radius: 0; margin-top: 10px; padding: 15px 16px; }
  .mobile-toc { border-radius: 0; margin-top: 10px; }
  .phase { margin-top: 10px; }
  .phase-head { background: #eef4e8; border-radius: 0; min-height: 56px; padding: 8px 14px 8px 68px; }
  .phase-head::before { width: 56px; height: 56px; border-radius: 0; padding-top: 12px; }
  .phase-head::after { width: 56px; height: 56px; padding-top: 9px; font-size: 21px; }
  .phase-head h2 { font-size: 18px; }
  .phase-head p { font-size: 13px; }
  .phase .step:first-of-type { border-radius: 0; }
  .step { border-radius: 0; margin-top: 10px; }
  .step-head { padding: 12px 16px 0; gap: 8px; }
  .step-num { font-size: 30px; min-width: 34px; }
  .step-head h3 { font-size: 17px; padding-top: 3px; }
  .step-body { padding: 6px 16px 18px; }
  .step-body p { font-size: 15.5px; }
  .step-figure figcaption { padding: 8px 16px; }
  table { min-width: 0; font-size: 14px; }
  th, td { padding: 9px 10px; }
  tbody th { white-space: normal; width: 36%; }
  caption { padding: 10px 10px 0; font-size: 10.5px; letter-spacing: .5px; }
  .table-wrap { border-radius: 0; }
  .end-section { border-radius: 0; margin-top: 10px; padding: 18px 16px; }
  .author-box { border-radius: 0; margin-top: 10px; padding: 16px; }
  .next-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wk-head-top { height: 58px; gap: 10px; padding: 0 14px; }
  .wk-brand-word { font-size: 23px; letter-spacing: -.9px; }
  .wk-pill { display: none; }
  .wk-iconnav { justify-content: flex-start; overflow-x: auto; padding: 0 4px; }
  .wk-iconnav-link { height: 40px; padding: 0 5px; font-size: 9px; letter-spacing: 0; gap: 4px; flex: 0 0 auto; }
  .wk-iconnav-link svg { width: 15px; height: 15px; }
  .wrap { padding: 0 14px; }
  .wk-footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 0 16px 22px; }
  .wk-footer-bottom { padding: 12px 16px 15px; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .step-head h3 { font-size: 15.5px; }
}

@media print {
  .wk-header, .wk-trustbar, .wk-footer, .sidebar, .mobile-toc, #progress, .wk-dl { display: none !important; }
  body { background: #fff; }
  .phase { border-left-width: 0; }
  .step { break-inside: avoid; }
}
