/* Task 031 - "Мулкдорларга" local preview. Reuses the site's existing
   brand tokens (--green/--rich-green/--white/--space-*/--radius-*/
   --shadow-*, all defined in style.css's :root) - no new colors, no new
   fonts, no UI library. */

.owners-guide-page,
.owners-guide-print-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

/* Task 035 round 2 (owner review): plain text back-link, replacing the
   earlier <details> "other pages in this section" accordion. */
.owners-guide-back-link {
  display: inline-block;
  color: var(--rich-green);
  text-decoration: none;
  margin: 0 0 16px;
}

.owners-guide-back-link:hover {
  text-decoration: underline;
}

.owners-guide-draft-banner {
  background-color: var(--surface-tint-2, #E7F6EF);
  color: var(--rich-green);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm, 8px);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  margin-bottom: 24px;
}

/* ===== Intro (heading + lead), immediately followed by the primary
   scenario's own content - Task 035 round 2 (owner review): tightened
   to near-zero bottom padding so the two read as one continuous block,
   not two sections separated by a large empty gap. ===== */
.owners-guide-intro {
  text-align: center;
  padding: 32px 0 8px;
}

.owners-guide-intro h1 {
  font-size: 32px;
  line-height: 1.3;
  color: var(--rich-green);
  margin-bottom: 16px;
}

.owners-guide-hero-lead {
  font-size: 17px;
  color: #444;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.owners-guide-plans h2,
.owners-guide-print-materials h2,
.owners-guide-help h2,
.owners-guide-faq h2,
.owners-guide-legal h2,
.owners-guide-contacts h2 {
  font-size: 24px;
  color: var(--rich-green);
  margin-bottom: 20px;
  text-align: center;
}

/* ===== "Бошқа ҳолатлар" - the two non-default scenarios, moved below
   the primary scenario's content and given a visually lighter weight
   (smaller heading, no top section padding to speak of) than the main
   content above it. ===== */
.owners-guide-other-scenarios {
  padding: 8px 0 32px;
}

.owners-guide-other-scenarios h2 {
  font-size: 18px;
  color: var(--rich-green);
  margin-bottom: 16px;
  text-align: center;
}

.owners-guide-scenario-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .owners-guide-scenario-list {
    grid-template-columns: 1fr;
  }
}

.owners-guide-scenario-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background-color: var(--white);
  border: 2px solid #e5e5e5;
  border-radius: var(--radius-md, 12px);
  padding: 24px 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.owners-guide-scenario-btn:hover {
  border-color: var(--green);
}

.owners-guide-scenario-btn.is-active {
  border-color: var(--green);
  background-color: var(--surface-tint-1, #F2FAF7);
}

.owners-guide-scenario-icon {
  width: 40px;
  height: 40px;
  color: var(--rich-green);
}

.owners-guide-scenario-icon svg {
  width: 100%;
  height: 100%;
}

.owners-guide-scenario-label {
  font-weight: 600;
  color: var(--rich-green);
  font-size: 15px;
  line-height: 1.4;
}

/* ===== Plans + checklist ===== */
.owners-guide-plans {
  padding: 8px 0 32px;
}

.owners-guide-plan {
  max-width: 800px;
  margin: 0 auto 40px;
}

.owners-guide-plan h2 {
  text-align: left;
}

.owners-guide-plan-intro {
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Task 035 round 2 (owner review): plain numbered steps, no interactive
   checkboxes/counter - a printed or read-once list, not a tracked task
   list. */
.owners-guide-checklist-list {
  margin: 0 0 20px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.owners-guide-checklist-item {
  background-color: var(--white);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-sm, 8px);
  padding: 16px;
}

.owners-guide-checklist-action {
  font-weight: 600;
  color: var(--rich-green);
  margin: 0;
}

.owners-guide-checklist-detail {
  margin: 8px 0 0;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* ===== Print materials grid ===== */
.owners-guide-print-materials,
.owners-guide-help,
.owners-guide-faq,
.owners-guide-legal,
.owners-guide-contacts {
  padding: 32px 0;
}

.owners-guide-print-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.owners-guide-print-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--rich-green);
  font-weight: 600;
}

.owners-guide-print-card:hover {
  border-color: var(--green);
}

.owners-guide-print-icon {
  width: 32px;
  height: 32px;
  color: var(--rich-green);
}

.owners-guide-print-icon svg {
  width: 100%;
  height: 100%;
}

/* ===== Help cards ===== */
.owners-guide-help-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .owners-guide-help-cards {
    grid-template-columns: 1fr;
  }
}

.owners-guide-help-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== FAQ ===== */
.owners-guide-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.owners-guide-faq-item {
  margin-bottom: 20px;
}

.owners-guide-faq-item dt {
  font-weight: 600;
  color: var(--rich-green);
  margin-bottom: 6px;
}

.owners-guide-faq-item dd {
  color: #444;
  line-height: 1.6;
  margin: 0;
}

/* ===== Contacts ===== */
.owners-guide-contacts {
  text-align: center;
}

.owners-guide-contacts a {
  color: var(--rich-green);
}

/* ===== Print sub-pages ===== */
.owners-guide-print-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  /* Task 035 round 2 (owner review): the actions bar sits above the
     centered sheet below, so it shares the same reading width instead
     of stretching the full 1200px page container. */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.owners-guide-print-sheet {
  background-color: var(--white);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md, 12px);
  padding: 32px;
  /* Task 035 round 2 (owner review): centered with a sensible reading
     width - a printable worksheet shouldn't stretch its lines/table
     across a wide desktop viewport. */
  max-width: 700px;
  margin: 0 auto;
}

.owners-guide-print-marker {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 8px;
}

.owners-guide-print-instruction {
  color: #444;
  margin-bottom: 24px;
  line-height: 1.6;
}

.owners-guide-print-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.owners-guide-print-field-label {
  display: block;
  font-weight: 600;
  color: var(--rich-green);
  margin-bottom: 6px;
}

.owners-guide-print-field-blank {
  border-bottom: 1px solid #999;
  height: 28px;
}

.owners-guide-print-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.owners-guide-print-table th,
.owners-guide-print-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.owners-guide-print-blank-cell {
  height: 40px;
}

.owners-guide-print-footer {
  border-top: 1px solid #e5e5e5;
  margin-top: 32px;
  padding-top: 16px;
  font-size: 13px;
  color: #666;
}

/* Long translated criteria must fit on narrow screens; paper layout stays unchanged. */
@media screen and (max-width: 400px) {
  .owners-guide-print-table th,
  .owners-guide-print-table td {
    overflow-wrap: anywhere;
    padding: 6px;
  }
}

/* ===== Print media - remove chrome, keep content, no blank pages ===== */
@media print {
  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }

  .owners-guide-print-page {
    max-width: 100%;
    padding: 0;
  }

  .owners-guide-print-sheet {
    border: none;
    padding: 0;
  }

  a[href]::after {
    content: none !important;
  }
}
