/* ==========================================================================
   ClassKit Global - Classroom Graphic Organizers Stylesheet
   ========================================================================== */

.organizer-sheet {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 16mm 16mm 14mm;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  position: relative;
  page-break-after: always;
  break-after: page;
}

.organizer-directive-banner {
  background: #F8FAFC;
  border-left: 4px solid #059669;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: #334155;
  margin-bottom: 14px;
  line-height: 1.4;
}

.organizer-content {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

/* 1. 2-Circle Venn Diagram */
.venn2-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venn2-svg {
  width: 100%;
  height: 100%;
}

.venn-circle {
  fill: rgba(248, 250, 252, 0.45);
  stroke: #0F172A;
  stroke-width: 2;
}

.venn-overlap {
  fill: rgba(236, 253, 245, 0.4);
}

.venn-label-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  fill: #0F172A;
  text-anchor: middle;
}

.venn-guide-line {
  stroke: #CBD5E1;
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

/* 2. Frayer Model */
.frayer-container {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  position: relative;
}

.frayer-quadrant {
  border: 2px solid #0F172A;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.frayer-quadrant-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 10px;
  border-bottom: 1.5px solid #E2E8F0;
  padding-bottom: 4px;
}

.frayer-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.frayer-line {
  width: 100%;
  border-bottom: 1px dashed #CBD5E1;
  height: 22px;
}

.frayer-center-diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 120px;
  background: #FFFFFF;
  border: 2.5px solid #059669;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  z-index: 10;
}

.frayer-center-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.frayer-center-text {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 4px;
}

/* 3. K-W-L Chart */
.kwl-container {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 2px solid #0F172A;
  border-radius: 8px;
  overflow: hidden;
}

.kwl-column {
  border-right: 2px solid #0F172A;
  display: flex;
  flex-direction: column;
}

.kwl-column:last-child {
  border-right: none;
}

.kwl-col-header {
  background-color: #0F172A;
  color: #FFFFFF;
  padding: 12px 14px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.kwl-col-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.kwl-line {
  width: 100%;
  border-bottom: 1px dashed #CBD5E1;
  height: 26px;
}

/* 4. Story Map */
.story-map-container {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.story-box {
  border: 2px solid #0F172A;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.story-box-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  border-bottom: 1.5px solid #E2E8F0;
  padding-bottom: 4px;
}

.story-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.story-line {
  border-bottom: 1px dashed #CBD5E1;
  height: 22px;
}

/* Print Overrides */
@media print {
  .organizer-sheet {
    padding: 12mm 12mm 10mm !important;
  }

  .venn-circle,
  .frayer-quadrant,
  .kwl-container,
  .story-box {
    border-color: #0F172A !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .kwl-col-header {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
  }

  .frayer-center-diamond {
    border-color: #059669 !important;
    box-shadow: none !important;
  }
}
