/* Scoped to this guide. Enqueue only for its WordPress post. */
body.postid-414 .article-inline-hero h1 {
  max-width: 850px;
  margin: 12px 0 0;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.13;
  letter-spacing: -.025em;
  text-wrap: balance;
}
body.postid-414 .article-inline-hero .hero-lead {
  max-width: 74ch !important;
  margin: 20px 0 0;
  font-size: 1.0625rem !important;
  line-height: 1.7;
  color: #52615d;
  text-wrap: pretty;
}
@media (max-width: 640px) {
  body.postid-414 .article-inline-hero .hero-lead { font-size: 1rem !important; line-height: 1.65; margin-top: 16px; }
}
/* Balanced desktop article and inquiry; stacked on smaller screens. */
body.postid-414 .article-sidebar-shell {
  width: calc(100% - 40px);
  max-width: 1240px;
  margin-inline: auto;
}
body.postid-414 .article-sidebar-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}
body.postid-414 .article-sidebar-layout > .entry-panel {
  min-width: 0;
  width: 100%;
}
body.postid-414 .article-rfq {
  position: sticky;
  top: 130px;
  align-self: start;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}
@media (max-width: 1100px) {
  body.postid-414 .article-sidebar-shell { max-width: 1040px; }
  body.postid-414 .article-sidebar-layout { grid-template-columns: minmax(0, 1fr); }
  body.postid-414 .article-rfq { position: static; }
}
@media (max-width: 640px) {
  body.postid-414 .article-sidebar-shell { width: calc(100% - 28px); }
}
.ojm-replacement-guide {
  min-width: 0;
}
.ojm-replacement-guide .quick-answer {
  margin: 24px 0 18px;
  padding: 22px 26px;
  border-left: 5px solid #0f5d58;
  border-radius: 0 16px 16px 0;
  background: #eaf2ee;
}
.ojm-replacement-guide .quick-answer h2 {
  margin: 0 0 12px !important;
  color: #17211f;
  font-size: 1.65rem;
  line-height: 1.2;
}
.ojm-replacement-guide .quick-answer p {
  margin: 0 0 10px;
  color: #344640;
  font-size: 1rem;
  line-height: 1.65;
}
.ojm-replacement-guide .quick-answer strong {
  color: #17211f;
  font-weight: 700;
}
.ojm-replacement-guide .quick-answer p:last-child { margin-bottom: 0; }
.ojm-replacement-guide figure {
  margin: 30px 0;
}
.ojm-replacement-guide figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.ojm-replacement-guide figcaption {
  margin-top: 10px;
  color: #666f6c;
  font-size: .86rem;
  line-height: 1.55;
}
.ojm-replacement-guide .ojm-lead-figure {
  display: grid;
  grid-template-columns: minmax(0,44%) minmax(0,1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(23,33,31,.15);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23,33,31,.06);
}
.ojm-replacement-guide .quick-answer + .ojm-lead-figure { margin-top: 18px; }
.ojm-replacement-guide .ojm-lead-figure__media {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #eaf1ec;
}
.ojm-replacement-guide .ojm-lead-figure__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0;
}
.ojm-replacement-guide .ojm-lead-figure figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 30px 29px;
  color: #4d5854;
  font-size: .92rem;
  line-height: 1.55;
}
.ojm-replacement-guide .ojm-lead-figure__eyebrow { color: #0f5d58; font-size: .7rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.ojm-replacement-guide .ojm-lead-figure__title { display: block; max-width: 19ch; color: #17211f; font-family: Georgia,serif; font-size: 1.65rem; font-weight: 700; line-height: 1.12; }
.ojm-replacement-guide .ojm-lead-figure__caption { display: block; color: #59645f; }
.ojm-replacement-guide .ojm-lead-figure__check { display: grid; gap: 2px; padding-top: 11px; border-top: 1px solid rgba(23,33,31,.15); }
.ojm-replacement-guide .ojm-lead-figure__check b { color: #17211f; font-size: .77rem; letter-spacing: .03em; }
.ojm-replacement-guide .ojm-lead-figure__check span { font-size: .82rem; }
.ojm-replacement-guide .mobile-scroll-hint {
  display: none;
}
.ojm-replacement-guide .warning-card {
  margin: 28px 0;
  padding: 25px 30px;
  border: 1px solid rgba(151,87,28,.27);
  border-left: 6px solid #b76b2d;
  border-radius: 16px;
  background: #fff6e9;
  box-shadow: 0 14px 30px rgba(121,70,24,.07);
}
.ojm-replacement-guide .warning-label,
.ojm-replacement-guide .fit-kicker {
  display: block;
  font-size: .71rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ojm-replacement-guide .warning-label { color: #9b571c; }
.ojm-replacement-guide .warning-card h3 {
  margin: 5px 0 13px !important;
  font-family: var(--font-sans, Arial, sans-serif);
  font-size: 1.24rem;
  line-height: 1.3;
}
.ojm-replacement-guide .warning-card ul { margin: 0; padding-left: 22px; }
.ojm-replacement-guide .ojm-fit-panel {
  margin: 26px 0 36px;
  padding: 20px;
  border: 1px solid rgba(15,93,88,.2);
  border-radius: 22px;
  background: linear-gradient(145deg,#eef6f2,#e8f1ee);
  box-shadow: 0 18px 42px rgba(15,54,49,.08);
}
.ojm-replacement-guide .fit-kicker { color: #0f5d58; }
.ojm-replacement-guide .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 13px 0 0;
  border-radius: 12px;
  background: #fff;
}
.ojm-replacement-guide .table-wrap table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}
.ojm-replacement-guide .table-wrap th,
.ojm-replacement-guide .table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(23,33,31,.15);
  text-align: left;
  vertical-align: top;
}
.ojm-replacement-guide .table-wrap th { background: #0a3e3b; color: #fff; }
.ojm-replacement-guide .table-wrap tbody tr:first-child { background: #e3f2ec; }
.ojm-replacement-guide .ojm-path-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin: 26px 0 23px;
}
.ojm-replacement-guide .ojm-path-card {
  min-width: 0;
  padding: 25px 23px 22px;
  border: 1px solid rgba(15,93,88,.18);
  border-radius: 20px;
  background: linear-gradient(155deg,#fff,#edf5f1);
  box-shadow: 0 12px 35px rgba(15,54,49,.07);
}
.ojm-replacement-guide .ojm-path-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0f5d58;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
}
.ojm-replacement-guide .ojm-path-card h3 {
  margin: 19px 0 11px !important;
  font-size: 1.45rem;
  line-height: 1.1;
}
.ojm-replacement-guide .ojm-path-card p {
  margin: 0 0 13px;
  font-size: .94rem;
  line-height: 1.55;
}
.ojm-replacement-guide .ojm-path-action {
  margin: 0 !important;
  padding-top: 13px;
  border-top: 1px solid rgba(15,93,88,.16);
  color: #0f5d58 !important;
  font-weight: 700;
}
.ojm-replacement-guide .ojm-measurement-checklist {
  margin: 30px 0;
  padding: 26px 28px;
  border: 1px solid #cfdfd8;
  border-top: 4px solid #0f5d58;
  border-radius: 14px;
  background: #fff;
  font-size: .96rem;
  line-height: 1.6;
}
.ojm-replacement-guide .ojm-measurement-checklist h3 {
  margin: 0 0 12px;
  font-family: "Avenir Next","Helvetica Neue",Arial,sans-serif;
  font-size: 1.3rem;
  line-height: 1.3;
}
.ojm-replacement-guide .ojm-measurement-checklist ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 30px;
  margin: 0 0 22px;
  padding-left: 20px;
  list-style-type: square;
}
.ojm-replacement-guide .ojm-measurement-checklist li { margin: 0; }
.ojm-replacement-guide .ojm-measurement-checklist li::marker { color: #0f5d58; }
.ojm-replacement-guide .ojm-measurement-checklist li strong { display: block; color: #17211f; }
.ojm-replacement-guide .ojm-measurement-checklist p:last-child {
  margin: 0;
  padding: 13px 16px;
  border-radius: 8px;
  background: #edf5f1;
  font-size: .88rem;
}
.ojm-replacement-guide .ojm-final-cta {
  margin: 76px 0 0;
  padding: 34px 36px;
  border-radius: 24px;
  background: linear-gradient(140deg,#0a3e3b,#116761);
  color: #e5f3ef;
  box-shadow: 0 22px 50px rgba(10,62,59,.18);
}
.ojm-replacement-guide .ojm-final-cta h2 { margin: 0 0 16px !important; color: #fff !important; font-size: clamp(1.45rem,3vw,2.2rem); line-height: 1.16; }
.ojm-replacement-guide .ojm-final-cta p { margin: 0 0 18px; color: #e5f3ef !important; }
.ojm-replacement-guide .ojm-final-cta p:nth-of-type(2) { margin: 24px 0 10px; }
.ojm-replacement-guide .ojm-final-cta p:nth-of-type(2) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  color: #0a3e3b !important;
  text-decoration: none;
  font-weight: 850;
}
.ojm-replacement-guide .ojm-final-cta p:nth-of-type(3) a {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.ojm-replacement-guide .ojm-final-cta p:last-child { margin-bottom: 0; color: #c9ded8 !important; font-size: .93rem; }
.ojm-replacement-guide .ojm-final-cta p:last-child a { color: #fff !important; }
.ojm-replacement-guide a:focus-visible { outline: 3px solid #f5c878; outline-offset: 3px; }
@media (max-width: 1100px) {
  .ojm-replacement-guide .ojm-path-cards { grid-template-columns: 1fr; }
  .ojm-replacement-guide .ojm-path-card { padding: 20px 22px; }
  .ojm-replacement-guide .ojm-path-card h3 { margin-top: 10px !important; }
}
@media (max-width: 640px) {
  .ojm-replacement-guide .ojm-measurement-checklist { padding: 22px 20px; }
  .ojm-replacement-guide .ojm-measurement-checklist ul { grid-template-columns: 1fr; gap: 12px; }
  .ojm-replacement-guide .quick-answer { padding: 20px 19px; }
  .ojm-replacement-guide .quick-answer h2 { font-size: 1.42rem; }
  .ojm-replacement-guide .ojm-lead-figure { grid-template-columns: 1fr; }
  .ojm-replacement-guide .ojm-lead-figure figcaption { padding: 23px 22px 25px; gap: 10px; }
  .ojm-replacement-guide .ojm-lead-figure__title { max-width: none; font-size: 1.4rem; }
  .ojm-replacement-guide .ojm-lead-figure__check { padding-top: 9px; }
  .ojm-replacement-guide .mobile-scroll-hint {
    display: block;
    margin: 12px 0 6px;
    color: #0f5d58;
    font-size: .8rem;
    font-weight: 800;
  }
  .ojm-replacement-guide .diagram-figure { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .ojm-replacement-guide .diagram-figure img { width: 650px; min-width: 650px; max-width: none; }
  .ojm-replacement-guide .diagram-figure img[src*="old-opening-vs-new-cabinet-fit-v3.png"] { width: 920px; min-width: 920px; }
  .ojm-replacement-guide .diagram-figure img[src*="opening-measurement-3d-v3.jpg"] { width: 920px; min-width: 920px; }
  .ojm-replacement-guide .warning-card { padding: 20px 22px; }
  .ojm-replacement-guide .ojm-fit-panel { padding: 13px; border-radius: 17px; }
  .ojm-replacement-guide .ojm-final-cta { margin-top: 60px; padding: 25px 22px; border-radius: 20px; }
  .ojm-replacement-guide .ojm-final-cta p:nth-of-type(2) a { width: 100%; text-align: center; }
}
