/*! craft-atelier-polish-v1 · C21F2
 * Full-bleed sourced materials + Write to Clarity · professional niyyah footer
 * Educational only — not a fatwa · for His sake alone
 */

/* —— Full viewport band (aligned with room, not cramped card) —— */
.craft-fullbleed {
  width: 100%;
  box-sizing: border-box;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  margin: 0;
}
.craft-fullbleed-inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

/* —— Sourced materials · enriched · balanced —— */
section.craft-sources.craft-sources--wide {
  max-width: none !important;
  width: 100%;
  margin: 1.75rem 0 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.craft-sources--wide .csrc-shell {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(201, 162, 39, 0.32);
  background:
    linear-gradient(145deg, rgba(18, 48, 38, 0.55), rgba(8, 22, 16, 0.92));
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.28);
  padding: 1.35rem clamp(1rem, 3vw, 1.75rem) 1.5rem;
  box-sizing: border-box;
}
.craft-sources--wide .csrc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.craft-sources--wide .csrc-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #e8c76b;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.craft-sources--wide .csrc-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(15, 76, 58, 0.35);
  color: #e8efe9;
}
.craft-sources--wide .csrc-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.95;
  max-width: 52rem;
}
.craft-sources--wide .csrc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 720px) {
  .craft-sources--wide .csrc-grid { grid-template-columns: 1fr; }
}
.craft-sources--wide .csrc-item {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.82rem;
  line-height: 1.55;
}
.craft-sources--wide .csrc-item strong {
  display: block;
  color: #e8c76b;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.craft-sources--wide .csrc-dua {
  margin: 1.1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  font-size: 0.84rem;
  line-height: 1.6;
  opacity: 0.92;
  text-align: center;
}
.craft-sources--wide .csrc-dua .ar {
  display: block;
  font-family: Amiri, "Times New Roman", serif;
  font-size: 1.05rem;
  color: #e8c76b;
  margin-bottom: 0.35rem;
  direction: rtl;
}

/* —— Write to Clarity · full width shell —— */
.craft-write-clarity {
  max-width: none !important;
  width: 100%;
  margin: 1.25rem 0 0 !important;
  padding: 0 clamp(1rem, 4vw, 2.5rem) !important;
  box-sizing: border-box;
}
.craft-write-clarity .cwc-card {
  max-width: 72rem;
  margin: 0 auto;
  border-radius: 18px !important;
  border: 1px solid rgba(201, 162, 39, 0.34) !important;
  background:
    linear-gradient(145deg, rgba(18, 48, 38, 0.5), rgba(8, 22, 16, 0.94)) !important;
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.06),
    0 12px 36px rgba(0, 0, 0, 0.25) !important;
  padding: 1.15rem clamp(1rem, 3vw, 1.6rem) !important;
}
.craft-write-clarity .cwc-title {
  font-size: 1.12rem !important;
}
.craft-write-clarity .cwc-input {
  min-height: 6rem !important;
}

/* —— Professional niyyah footer —— */
footer.craft-footer.clarity-app-footer,
footer.clarity-app-footer--niyyah {
  width: 100%;
  margin: 2rem 0 0;
  padding: 0;
  border-top: none;
  background: transparent;
  text-align: center;
}
.clarity-app-footer--niyyah .caf-band {
  width: 100%;
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(30, 125, 94, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(6, 18, 14, 0.5), rgba(4, 12, 10, 0.97));
  padding: 1.75rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  box-sizing: border-box;
}
.clarity-app-footer--niyyah .caf-inner {
  max-width: 40rem;
  margin: 0 auto;
}
.clarity-app-footer--niyyah .caf-niyyah {
  margin: 0 0 0.85rem;
  font-family: Amiri, "Times New Roman", serif;
  font-size: 1.15rem;
  color: #e8c76b;
  direction: rtl;
  line-height: 1.7;
}
.clarity-app-footer--niyyah .caf-mission {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.92;
  color: #d5e0d8;
}
.clarity-app-footer--niyyah .caf-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0 0 1rem;
}
.clarity-app-footer--niyyah .caf-rooms a {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e8efe9;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(15, 76, 58, 0.25);
}
.clarity-app-footer--niyyah .caf-rooms a[aria-current="page"],
.clarity-app-footer--niyyah .caf-rooms a:hover {
  background: #1e7d5e;
  border-color: transparent;
  color: #fff;
}
.clarity-app-footer--niyyah .caf-sources {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  opacity: 0.88;
}
.clarity-app-footer--niyyah .caf-sources a {
  color: #e8c76b;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 199, 107, 0.28);
}
.clarity-app-footer--niyyah .caf-stamp {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1.5;
}
.clarity-app-footer--niyyah .caf-build {
  margin: 0.75rem 0 0;
  font-size: 0.68rem;
  opacity: 0.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
