.architecture-detail {
  max-width: 70%;
  margin-left: 4rem;
  padding: 2rem 1rem 4rem;
  color: #333;
}

.arch-header {
  margin-bottom: 2rem;
}

.arch-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #222;
}

.arch-header h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #222;
  margin-top: 1rem;
}

.arch-summary {
  line-height: 1.6;
  color: #555;
  margin-top: 0.5rem;
}

.arch-last-modified {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.arch-image-section {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.image-wrapper {
  display: flex;
  flex-direction: column;
}

.image-wrapper img {
  max-width: 70%;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==========================
   Download Dropdown (above image)
   ========================== */
.download-dropdown {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.download-button {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: system-ui;
  padding: 8px 16px;
  background-color: #ffffff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.download-button:hover {
  background-color: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-color: #bbb;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: gray;
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

/* ==========================
   Sections
   ========================== */
.arch-section {
  margin-top: 2rem;
}

.arch-section h2 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 1rem;
}

.arch-section ol,
.arch-section ul {
  margin-left: 1.5rem;
  line-height: 2;
}

/* ==========================
   Responsive Styles
   ========================== */
@media (max-width: 1024px) {
  .architecture-detail {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1rem 3rem;
  }

  .arch-header h1 {
    font-size: 1.8rem;
  }

  .arch-header h3 {
    font-size: 1.1rem;
  }

  .image-wrapper img {
    max-width: 85%;
  }
}

@media (max-width: 768px) {
  .architecture-detail {
    max-width: 95%;
    margin: auto;
    padding: 1rem;
  }

  .arch-header h1 {
    font-size: 1.6rem;
  }

  .arch-summary {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .arch-section h2 {
    font-size: 1.3rem;
  }

  .image-wrapper img {
    max-width: 100%;
  }

  .download-button {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .arch-header h1 {
    font-size: 1.4rem;
  }

  .arch-summary {
    font-size: 0.9rem;
  }

  .arch-section h2 {
    font-size: 1.1rem;
  }

  .arch-section ol,
  .arch-section ul {
    margin-left: 1rem;
    font-size: 0.9rem;
  }

  .download-button {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  .dropdown-content {
    min-width: 100%;
  }
}
