/* Expansion v31: Styles for new interactive tools, feasts, fasting calendar, and pilgrimage */

/* Church Notes Generator */
.z-preview-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.z-slip {
  background: #fff;
  border: 2px solid #334234;
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  color: #1f231e;
  font-family: inherit;
  position: relative;
}
.z-slip--repose {
  border-color: #1a1a1a;
}
.z-slip-header {
  text-align: center;
  border-bottom: 2px solid #eee5d4;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.z-cross {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}
.z-slip--health .z-cross {
  color: #a82020;
}
.z-slip--repose .z-cross {
  color: #1a1a1a;
}
.z-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.z-subtitle {
  font-size: 13px;
  color: #706856;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.z-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}
.z-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px dashed #d9cfbe;
  font-size: 16px;
  min-height: 38px;
}
.z-line:last-child {
  border-bottom: none;
}
.z-line-num {
  font-size: 12px;
  color: #9c8e76;
  width: 20px;
}
.z-line-name {
  font-weight: 600;
  flex: 1;
  padding: 0 8px;
}
.z-line-del {
  background: none;
  border: none;
  color: #a84232;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}
.z-name-inputs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.z-name-inputs input {
  flex: 1;
}

/* Wedding Calendar */
.vk-shell {
  background: #faf7f0;
  border: 1px solid #e4d9c7;
  border-radius: 20px;
  padding: clamp(18px, 3vw, 32px);
  margin: 28px 0;
}
.vk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.vk-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.vk-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}
.vk-weekday {
  font-weight: 600;
  color: #8c7135;
  padding: 8px 4px;
  font-size: 14px;
  text-transform: uppercase;
}
.vk-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5ded2;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  min-height: 48px;
}
.vk-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.vk-day--empty {
  background: transparent;
  border: none;
  cursor: default;
}
.vk-day--allowed {
  background: #eaf5eb;
  border-color: #9ecb9f;
  color: #1e5922;
}
.vk-day--allowed::after {
  content: "✓";
  font-size: 10px;
  position: absolute;
  bottom: 2px;
}
.vk-day--forbidden {
  background: #fdf2f0;
  border-color: #eed0cb;
  color: #a84232;
}
.vk-day--selected {
  outline: 3px solid #334234;
  outline-offset: 1px;
}
.vk-legend {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
  font-size: 14px;
}
.vk-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vk-legend-badge {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
}
.vk-result-card {
  background: #fff;
  border: 1px solid #dfd6c5;
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 24px;
}
.vk-status-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}
.vk-status-pill--yes {
  background: #e3f2e4;
  color: #1b5e20;
}
.vk-status-pill--no {
  background: #fbe9e7;
  color: #b71c1c;
}

/* Print Styles for Slips */
@media print {
  body > *:not(main) { display: none !important; }
  .topbar, .mobilebar, .crumbs, .u-mini-nav, .u-actions, .msgband, .footer, .z-controls, .e-sources, .e-products {
    display: none !important;
  }
  main, .u-page, .u-shell {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }
  .z-preview-area {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15mm !important;
    margin: 0 !important;
    padding: 10mm !important;
  }
  .z-slip {
    box-shadow: none !important;
    border: 2px solid #000 !important;
    page-break-inside: avoid !important;
  }
  .z-line-del {
    display: none !important;
  }
}

/* Hub Grid Styles */
.hub-category-title {
  font-size: 24px;
  margin: 36px 0 16px;
  border-bottom: 2px solid #e7ddcd;
  padding-bottom: 8px;
  color: #2b3528;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.hub-card {
  background: #fff;
  border: 1px solid #e2d8c6;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.hub-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  color: #2a3427;
}
.hub-card p {
  font-size: 14px;
  color: #555143;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.hub-card-meta {
  font-size: 13px;
  font-weight: 600;
  color: #8c7135;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f1e9dc;
  padding-top: 10px;
}
.fasting-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.fasting-table th, .fasting-table td {
  border: 1px solid #ded5c4;
  padding: 12px 14px;
  text-align: left;
}
.fasting-table th {
  background: #f7f2e8;
  font-weight: 700;
}
.fasting-table tr:nth-child(even) {
  background: #fdfbf7;
}
