body {
  margin: 0;
  font-family: 'Manrope', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #111;
}

.frame {
  margin: 8px auto;
  max-width: 700px;
  min-height: 100vh;
  background: #fff;
  padding: 0 0 24px 0;
  box-sizing: border-box;
  position: relative;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 48px 0 48px;
  font-size: 18px;
  font-weight: 400;
}

.logo {
  font-weight: 400;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  line-height: 1;
  color: #1e40af;
}

.github-link svg {
  height: 1.1em;
  width: 1.7em;
  vertical-align: middle;
  display: inline-block;
}

.github-link svg path {
  fill: #1e40af;
}

main { 
  padding: 0 48px; 
}

.intro { 
  margin-top: 54px; 
  margin-bottom: 45px; 
}

.intro h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.07;
  margin-bottom: 16px;
  color: #111;
}

.subtitle {
  font-size: 18px;
  margin: 0;
  color: #222;
  opacity: 0.8;
  line-height: 1.4;
  font-weight: 300;
}

.divider { 
  border: none; 
  border-top: 1px solid #dedede; 
  margin: 48px 0; 
}

.project { 
  margin-bottom: 48px; 
}

.project-index {
  color: #868686;
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 1px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}

.project-title { 
  font-size: 23px; 
  font-weight: 400; 
  margin-bottom: 0;
  color: #111;
}

/* Learn More Button CSS */
.button-11 {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 6px 14px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  border-radius: 6px;
  color: #3D3D3D;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0px 0.5px 1px rgba(0, 0, 0, 0.1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
  text-decoration: none;
}

.button-11:hover {
  background: #f8f9fa;
  border-color: #1e40af;
  color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0px 2px 8px rgba(30, 64, 175, 0.15);
}

.button-11:focus {
  box-shadow: 0px 0.5px 1px rgba(0, 0, 0, 0.1), 0px 0px 0px 3.5px rgba(30, 64, 175, 0.2);
  outline: 0;
}

.button-11 svg {
  display: inline-block;
  vertical-align: middle;
  height: 1em;
  width: 1em;
  margin-left: 5px;
}

.project-img-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  width: 100%;
  height: 110px;
  border-radius: 6px;
  margin: 12px 0 16px 0;
  position: relative;
  overflow: hidden;
}

.project-img-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23cbd5e1" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.3;
}

.tags.small-tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 7px;
  margin-top: 3px;
}

.tag {
  font-size: 15px;
  color: #1e40af;
  font-family: 'Manrope', Arial, Helvetica, sans-serif;
  background: rgba(30, 64, 175, 0.05);
  border: 1px solid #1e40af;
  border-radius: 18px;
  padding: 2px 14px 3px 14px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  display: inline-block;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(30, 64, 175, 0.1);
  transform: translateY(-1px);
}

.desc {
  font-size: 16px;
  opacity: 0.91;
  margin-bottom: 0;
  margin-top: 8px;
  font-weight: 300;
  line-height: 1.33;
  color: #374151;
}

.justified { 
  text-align: justify; 
}

/* Policy Database Specific Styles */
.policy-sections {
  margin-top: 20px;
}

.policy-preview {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
  border: 1px solid #e2e8f0;
}

.policy-item {
  margin-bottom: 16px;
}

.policy-item:last-child {
  margin-bottom: 0;
}

.policy-item h4 {
  font-size: 16px;
  font-weight: 500;
  color: #1e40af;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.policy-item p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  font-weight: 300;
}

/* Footer Styles */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.copyright {
  font-size: 6px;
  color: #222;
  opacity: 0.9;
}

/* Responsive Design */
@media screen and (max-width: 780px) {
  .frame { 
    margin: 0; 
    max-width: none; 
    border: none; 
  }
  
  header, main { 
    padding-left: 5vw; 
    padding-right: 5vw; 
  }
  
  .intro h1 {
    font-size: 32px;
  }
  
  .subtitle {
    font-size: 16px;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .button-11 {
    align-self: flex-start;
  }
  
  .tags.small-tags {
    gap: 6px;
  }
  
  .tag {
    font-size: 13px;
    padding: 1px 10px 2px 10px;
  }
  
  .policy-preview {
    padding: 16px;
  }
}

@media screen and (max-width: 480px) {
  .intro h1 {
    font-size: 28px;
    line-height: 1.1;
  }
  
  .project-title {
    font-size: 20px;
  }
  
  .project-index {
    font-size: 16px;
  }
  
  .tags.small-tags {
    flex-direction: column;
    align-items: flex-start;
  }
}
