/* Leave One Light On — V4.1 resource-system prototype */

.resource-document {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  color: #172538;
  font-family: Lato, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.62;
}

.resource-document h1,
.resource-document h2,
.resource-document h3 {
  font-family: Lato, Arial, sans-serif;
  line-height: 1.22;
  text-wrap: balance;
}

.resource-document p,
.resource-document li,
.resource-document label,
.resource-document td,
.resource-document th,
.resource-document .resource-card {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
}

.resource-kicker,
.resource-version,
.page-tag {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-tag {
  color: #566274;
}

.resource-intro,
.resource-note,
.resource-callout {
  border-left: 4px solid #d4a52c;
  padding: .7rem .9rem;
  background: #fbf8ef;
}

.resource-callout strong {
  display: block;
  margin-bottom: .25rem;
}

.resource-section {
  margin: 2rem 0;
}

.guide-page {
  margin: 2.5rem 0;
}

.resource-grid,
.invitation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.resource-card,
.invitation-card,
.worksheet-block,
.worksheet-prompt {
  border: 1px solid rgba(36, 54, 77, .22);
  border-radius: .7rem;
  background: #fff;
  padding: 1rem 1.1rem;
  box-sizing: border-box;
}

.resource-card h3,
.invitation-card h3,
.worksheet-block h3,
.worksheet-prompt h3 {
  margin-top: 0;
}

/* Welcome Shelf cards: one reusable content + action template. */
.wide > .resource-section > .resource-grid {
  align-items: stretch;
}

.wide > .resource-section > .resource-grid > .resource-card {
  display: flex;
  flex-direction: column;
}

.resource-card-actions {
  display: grid;
  grid-template-rows: minmax(3rem, auto) 1.35rem;
  align-content: end;
  justify-items: start;
  gap: .45rem;
  min-height: 5.2rem;
  margin-top: auto;
  padding-top: .55rem;
}

.resource-card-actions > .button {
  min-width: 11rem;
  justify-content: center;
  text-align: center;
}

.resource-card-secondary {
  align-self: end;
  font-weight: 700;
  line-height: 1.2;
  text-underline-offset: .18em;
}

.invitation-card p {
  margin: .25rem 0 .65rem;
}

.invitation-card p:last-child {
  margin-bottom: 0;
}

.write-lines {
  min-height: 7rem;
  margin-top: .75rem;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 1.75rem, rgba(36, 54, 77, .22) 1.78rem);
}

.write-lines.short {
  min-height: 3.75rem;
}

.write-lines.compact {
  min-height: 2.6rem;
}

.write-lines.medium {
  min-height: 5rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin: .55rem 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25rem;
  width: .95rem;
  height: .95rem;
  border: 2px solid #172538;
  border-radius: .08rem;
  box-sizing: border-box;
}

.prototype-warning {
  border: 2px dashed #8b6a16;
  padding: .9rem 1rem;
  margin: 1rem 0 2rem;
  background: #fffaf0;
}

.resource-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: .75rem;
  margin: 1.5rem 0;
}

/* Equal action widths create a predictable visual rhythm and faster scanning. */
.resource-actions > .button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 3rem;
  text-align: center;
  white-space: normal;
}

.resource-field-label,
.field-label {
  font-weight: 700;
  margin-bottom: .25rem;
}

.conversation-plan {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 1rem 0 1.5rem;
}

.conversation-plan th,
.conversation-plan td {
  border: 1px solid rgba(36, 54, 77, .25);
  padding: .65rem .75rem;
  vertical-align: top;
}

.conversation-plan th {
  background: #172538;
  color: #fff;
  text-align: left;
}

.conversation-plan th:nth-child(1),
.conversation-plan td:nth-child(1) {
  width: 16%;
}

.conversation-plan th:nth-child(2),
.conversation-plan td:nth-child(2) {
  width: 22%;
}

.resource-question-list {
  padding-left: 1.25rem;
}

.resource-question-list li {
  margin: .65rem 0;
}

.qa-test-string {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.qa-wide-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.qa-wide-table th,
.qa-wide-table td {
  border: 1px solid rgba(36, 54, 77, .25);
  padding: .55rem;
  vertical-align: top;
}

@media (max-width: 640px) {
  .resource-document {
    width: min(100% - 1.25rem, 860px);
  }

  .resource-grid,
  .invitation-grid {
    grid-template-columns: 1fr;
  }

  .resource-actions {
    flex-wrap: wrap;
  }

  .resource-actions > .button {
    flex-basis: 100%;
  }

  .resource-card-actions {
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .resource-card-actions > .button {
    width: 100%;
    min-width: 0;
  }
}
