/* Harvest */
.portfolio-demo--harvest {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  background: #d9dd9b;
}

.harvest-land {
  position: relative;
  display: grid;
  min-height: 414px;
  align-content: end;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #8ca35b;
}

.harvest-sun {
  position: absolute;
  top: 25px;
  right: 28px;
  width: 74px;
  height: 74px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #f2c94c;
}

.harvest-lines {
  position: absolute;
  right: -40px;
  bottom: 70px;
  left: -40px;
  height: 150px;
  background: repeating-linear-gradient(100deg, transparent 0 14px, rgba(22, 23, 29, 0.7) 15px 17px);
  transform: skewY(-7deg);
}

.harvest-land > span,
.harvest-land > strong,
.harvest-land > small {
  position: relative;
  z-index: 1;
}

.harvest-land > span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.harvest-land > strong {
  font-size: 38px;
  letter-spacing: -0.05em;
}

.harvest-land > small {
  font-size: 8px;
}

.harvest-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--ink);
  background: #fffdf7;
}

.harvest-equation {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--ink);
}

.harvest-equation small {
  grid-column: 1 / -1;
  font-size: 7px;
  font-weight: 900;
}

.harvest-equation strong {
  font-size: 32px;
}

.harvest-equation i {
  font-style: normal;
}

.harvest-result {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--lime);
}

.harvest-result span,
.harvest-result small {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.harvest-result strong {
  font-size: 31px;
}

/* Livestock */
.portfolio-demo--livestock {
  background: #e9c69d;
}

.livestock-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.livestock-workflow {
  display: grid;
  min-height: 338px;
  grid-template-columns: 0.9fr 1fr 0.9fr;
  gap: 10px;
}

.livestock-count,
.livestock-checks,
.livestock-result {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: #fff;
}

.livestock-count small,
.livestock-result span {
  color: var(--blue);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.livestock-count > strong {
  font-size: 42px;
}

.livestock-count > strong i {
  font-size: 11px;
  font-style: normal;
}

.livestock-count > span,
.livestock-result small {
  color: var(--muted);
  font-size: 8px;
}

.threshold-track {
  position: relative;
  height: 7px;
  background: #ddd6c8;
}

.threshold-track b {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--blue);
}

.livestock-checks span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 900;
}

.livestock-checks i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--lime);
  font-style: normal;
}

.livestock-result {
  background: var(--ink);
  color: #fff;
}

.livestock-result strong {
  color: var(--lime);
  font-size: 24px;
  letter-spacing: -0.04em;
}

/* Fitrah */
.portfolio-demo--fitrah {
  background: #d8e7b4;
}

.fitrah-title {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.fitrah-layout {
  display: grid;
  min-height: 350px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fitrah-family,
.fitrah-standard,
.fitrah-total {
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: #fff;
}

.fitrah-family small,
.fitrah-standard small,
.fitrah-total small {
  color: var(--blue);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.people-figures {
  display: flex;
  min-height: 85px;
  flex-wrap: wrap;
  gap: 6px;
  align-content: center;
}

.people-figures i {
  display: block;
  width: 23px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 12px 12px 3px 3px;
  background: hsl(calc(63deg + var(--person) * 18deg) 72% 70%);
}

.people-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
}

.people-control button {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
}

.fitrah-standard > strong,
.fitrah-total > strong {
  font-size: 32px;
}

.fitrah-standard span,
.fitrah-total span {
  color: var(--muted);
  font-size: 8px;
}

.fitrah-standard b,
.fitrah-total b {
  font-size: 10px;
}

.fitrah-total {
  background: var(--lime);
}

.fitrah-total i {
  width: max-content;
  padding: 5px 8px;
  background: var(--ink);
  color: #fff;
  font-size: 7px;
  font-style: normal;
}

/* Fidyah */
.portfolio-demo--fidyah {
  background: #f2dfbb;
}

.fidyah-header > small {
  padding: 7px 9px;
  background: var(--pink);
  font-size: 8px;
  font-weight: 900;
}

.fidyah-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.fidyah-reasons span {
  padding: 9px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  font-weight: 900;
  text-align: center;
}

.fidyah-reasons span.is-active {
  background: var(--ink);
  color: #fff;
}

.fidyah-payment {
  margin-bottom: 12px;
}

.fidyah-board {
  display: grid;
  min-height: 290px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fidyah-board > div {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: #fff;
}

.fidyah-board small {
  color: var(--blue);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.fidyah-board strong {
  font-size: 30px;
}

.fidyah-board span {
  color: var(--muted);
  font-size: 8px;
}

.fidyah-board .fidyah-result {
  background: var(--pink);
}

/* Content assistant */
.portfolio-demo--content {
  background: #f4d5dc;
}

.content-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 12px;
}

.content-panel {
  min-height: 338px;
  padding: 14px;
  border: 1px solid var(--ink);
  background: #fff;
}

.content-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.content-stats > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--ink);
}

.content-stats small {
  font-size: 7px;
  font-weight: 900;
}

.content-stats strong {
  font-size: 23px;
}

.content-stats span {
  height: 6px;
  background: #ded8cb;
}

.content-stats span i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.content-calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.content-calendar > span {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid #c9c2b5;
}

.content-calendar > span.is-done {
  background: var(--lime);
}

.content-calendar b,
.content-calendar small {
  font-size: 8px;
}

.content-entry {
  display: grid;
  grid-template-columns: 0.72fr 1fr 1fr;
  gap: 10px;
}

.content-entry > div {
  display: grid;
  grid-row: span 2;
  align-content: center;
  gap: 6px;
  padding: 14px;
  background: var(--lime);
}

.content-entry small,
.content-entry span {
  font-size: 8px;
}

.content-entry > div strong {
  font-size: 22px;
}

.content-entry > button {
  grid-column: 2 / -1;
  min-height: 42px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.content-caption {
  display: grid;
  gap: 12px;
}

.content-caption > div:first-child {
  display: grid;
  gap: 4px;
}

.content-caption > div:first-child span {
  color: var(--blue);
  font-size: 7px;
  font-weight: 900;
}

.content-caption > p {
  min-height: 176px;
  padding: 17px;
  border: 1px solid var(--ink);
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.6;
}

.content-caption > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-caption button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  background: #fff;
  font-size: 8px;
  font-weight: 900;
}

.content-caption button:first-child {
  background: var(--ink);
  color: #fff;
}

.content-report {
  display: grid;
  min-height: 300px;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  align-items: center;
}

.content-report > div:first-child {
  display: grid;
  gap: 7px;
}

.content-report small,
.content-report span {
  font-size: 8px;
}

.content-report strong {
  font-size: 24px;
}

.report-files {
  display: grid;
  gap: 8px;
}

.report-files span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--ink);
  font-weight: 900;
}

.report-files b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--pink);
}
