.door-cheat-page { max-width: 1040px; }
.door-cheat-intro { max-width: 860px; margin-bottom: 22px; }
.door-cheat-intro h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
.door-cheat-intro .lede { margin-bottom: 18px; }
.door-cheat-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.door-cheat-actions a { text-decoration: none; }

.door-cheat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.door-cheat-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(29, 34, 25, .045);
}
.door-cheat-card-head {
  min-height: 64px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8f9f5;
}
.door-cheat-card-head strong {
  min-width: 66px;
  color: var(--dark);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.door-cheat-card-head span {
  color: #555b52;
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.2;
}
.door-cheat-visual {
  min-height: 285px;
  padding: 10px 12px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, .65fr);
  align-items: center;
  gap: 4px;
}
.door-cheat-plan { min-width: 0; }
.door-cheat-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.door-cheat-worker {
  display: block;
  width: 100%;
  max-width: 150px;
  max-height: 210px;
  object-fit: contain;
  justify-self: center;
}

.door-svg-wall { fill: #d9dcd5; stroke: #62685f; stroke-width: 1.8; }
.door-svg-closed { stroke: #b4b9b0; stroke-width: 1.6; stroke-dasharray: 5 5; }
.door-svg-leaf { stroke: #20231f; stroke-width: 5; stroke-linecap: round; }
.door-svg-swing { fill: none; stroke: #9cab2c; stroke-width: 3; stroke-dasharray: 8 6; }
.door-svg-hinge { fill: var(--accent); stroke: #667117; stroke-width: 2; }
.door-zone-label-bg { fill: #f8f9f5; }
.door-zone-label { fill: #6a7067; font-size: 12px; font-weight: 900; text-anchor: middle; letter-spacing: .09em; }
.door-you-label { fill: #8a9086; font-size: 11px; font-weight: 900; text-anchor: middle; letter-spacing: .08em; }
.door-hinge-guide { stroke: #a7ada3; stroke-width: 2; stroke-dasharray: 4 4; }
.door-hinge-label { fill: #6f756c; font-size: 10px; font-weight: 900; text-anchor: middle; letter-spacing: .06em; }
.door-ref-tag { fill: var(--dark); }
.door-ref-tag-text { fill: var(--accent); font-size: 12px; font-weight: 900; text-anchor: middle; letter-spacing: .07em; }
.door-ref-tag-text.small { font-size: 10px; }

.door-cheat-bottom-links {
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid #dce887;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}
.door-cheat-bottom-links a {
  color: var(--text);
  font-size: .84rem;
  font-weight: 850;
  text-decoration: none;
}
.door-cheat-bottom-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.door-cheat-disclaimer { margin-top: 18px; }

@media (max-width: 650px) {
  .door-cheat-page { padding-top: 34px; }
  .door-cheat-intro { margin-bottom: 16px; }
  .door-cheat-intro h1 { margin-bottom: 9px; font-size: clamp(2.1rem, 10vw, 3rem); }
  .door-cheat-intro .lede { margin-bottom: 14px; font-size: .94rem; }
  .door-cheat-actions .primary-button,
  .door-cheat-actions .subtle-button { padding: 10px 12px; font-size: .78rem; }
  .door-cheat-grid { gap: 9px; }
  .door-cheat-card { border-radius: 14px; }
  .door-cheat-card-head { min-height: 52px; padding: 9px 10px; gap: 7px; }
  .door-cheat-card-head strong { min-width: 47px; font-size: 1.28rem; }
  .door-cheat-card-head span { font-size: .67rem; }
  .door-cheat-visual {
    min-height: 190px;
    padding: 5px 5px 7px;
    grid-template-columns: minmax(0, 1.45fr) minmax(50px, .55fr);
    gap: 0;
  }
  .door-cheat-worker { max-width: 74px; max-height: 118px; }
  .door-cheat-svg .door-zone-label,
  .door-cheat-svg .door-you-label,
  .door-cheat-svg .door-hinge-label,
  .door-cheat-svg .door-ref-tag-text { font-size: 12px; }
  .door-cheat-bottom-links { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 380px) {
  .door-cheat-card-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .door-cheat-card-head strong { min-width: 0; }
  .door-cheat-visual { min-height: 176px; }
  .door-cheat-worker { max-width: 64px; max-height: 104px; }
}

@media print {
  @page { size: letter portrait; margin: .34in; }
  html, body { background: #fff !important; }
  body { min-width: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .site-footer, .door-cheat-actions, .door-cheat-bottom-links, .door-cheat-disclaimer { display: none !important; }
  .shell { width: 100%; max-width: none; margin: 0; }
  .page.door-cheat-page { padding: 0; max-width: none; }
  .door-cheat-intro { margin: 0 0 .12in; max-width: none; }
  .door-cheat-intro .eyebrow { margin-bottom: .03in; font-size: 7.5pt; }
  .door-cheat-intro h1 { margin: 0 0 .04in; font-size: 21pt; line-height: 1; }
  .door-cheat-intro .lede { margin: 0; font-size: 8.5pt; }
  .door-cheat-grid { grid-template-columns: repeat(2, 1fr); gap: .12in; }
  .door-cheat-card { break-inside: avoid; border-radius: .1in; box-shadow: none; }
  .door-cheat-card-head { min-height: .48in; padding: .07in .11in; }
  .door-cheat-card-head strong { min-width: .55in; font-size: 15pt; }
  .door-cheat-card-head span { font-size: 8pt; }
  .door-cheat-visual {
    min-height: 3.55in;
    height: 3.55in;
    padding: .04in .06in .06in;
    grid-template-columns: minmax(0, 1.55fr) minmax(.9in, .55fr);
  }
  .door-cheat-worker { max-width: 1.18in; max-height: 2.05in; }
  .door-cheat-svg { max-height: 3.15in; }
}
