/* * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  max-width: 1520px;
  margin: 40px auto;
  font-family: Inter;
  background-color: #e8e3dd;
} */

header {
  margin: 40px 40px 43px 40px;
}

h1 {
  color: var(--Armadillo, #423b33);
  font-size: 44px;
  font-weight: 600;
  line-height: 50px; /* 113.636% */
  text-align: left;
  margin-top: 30px;
}

h3 {
  color: var(--Armadillo, #423b33);
  text-align: center;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.header-subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-bottom: 50px;
}

.header-title {
  width: 100%;
  text-align: left;
  margin-bottom: 30px;
}

.break-down {
  display: none;
}

.items-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style-type: none;
  row-gap: 10px;
  overflow: hidden;
}

.items-list > div {
  color: var(--Armadillo, #423b33);
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  align-items: baseline;
  padding-right: 40px;
  /* min-width: 180px; */
}

.launches-item {
  color: var(--Cinnabar, #e03e29) !important;
}

.launches-item-sym {
  width: 20px;
  margin-right: 7px;
}

.launch-poster {
  width: 100%;
}

/* Keep the shape styles for the header only */
.circle {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background-color: var(--Cinnabar, #e03e29);
}

.square {
  width: 14px;
  height: 14px;
  background-color: var(--Armadillo, #423b33);
}

.rhombus {
  height: 16px;
  aspect-ratio: 1;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--Armadillo, #423b33);
}

.octagon {
  width: 16px;
  aspect-ratio: 1 / cos(30deg);
  clip-path: polygon(50% -50%, 100% 50%, 50% 150%, 0 50%);
  background: var(--Armadillo, #423b33);
}

.triangle {
  width: 18px;
  aspect-ratio: 1 / cos(30deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--Armadillo, #423b33);
}

.back-triangle {
  width: 12px;
  aspect-ratio: 1;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  background: var(--Armadillo, #423b33);
}

.parent {
  display: flex;
  gap: 10px;
  width: 100%;
  word-break: break-all;
}

.left {
  width: 40%;
}

.right {
  height: 100%;
  width: calc(60% - 10px);
  position: relative;
}

.div1 {
  width: 33.33%;
  color: var(--Cinnabar, #e03e29);
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.div2 {
  width: 33.33%;
  color: var(--Armadillo, #423b33);
  font-family: Inter;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.div3 {
  width: 33.33%;
  color: var(--Armadillo, #423b33);
  font-family: Inter;
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.75px;
}

/* Canvas containers */
.circle-container {
  width: 40%;
  line-height: normal;
}

.circle-item {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background-color: var(--Cinnabar, #e03e29);
  display: inline-block;
}

.triangle-container {
  width: 20%;
  line-height: normal;
}

.triangle-item {
  width: 9px;
  height: 7px;
  aspect-ratio: 1 / cos(60deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--Armadillo, #423b33);
  display: inline-block;
}

.octagon-container {
  width: 40%;
  line-height: normal;
}

.octagon-item {
  width: 6px;
  height: 5px;
  aspect-ratio: 1 / cos(30deg);
  clip-path: polygon(50% -50%, 100% 50%, 50% 150%, 0 50%);
  background: var(--Armadillo, #423b33);
  display: inline-block;
}

.back-triangle-container {
  width: 100%;
  height: 2827px;
  display: block;
}

.squares-container {
  display: block;
  line-height: normal;
  width: 100%;
}

.square-item {
  width: 6px;
  height: 6px;
  background-color: var(--Armadillo, #423b33);
  display: inline-block;
}

.rhombus-container {
  display: block;
  margin: 15px 0;
  line-height: normal;
  margin-bottom: 15px;
  width: 100%;
}

.rhombus-item {
  height: 7px;
  aspect-ratio: 1;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--Armadillo, #423b33);
  display: inline-block;
}

/* START NEW LAYOUT STYLES */
.desktop-layout {
  display: flex;
  gap: 10px;
  width: 100%;
  word-break: break-all;
}

.mobile-layout {
  display: none;
  width: 100%;
}

/* Mobile specific layout structure */
.mobile-row-1,
.mobile-row-3 {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.mobile-row-2 {
  width: 100%;
  margin-bottom: 10px;
}
.mobile-row-2 .rhombus-container {
  margin: 0;
}

.mobile-row-3 {
  width: calc(100% - 10px);
}

.mobile-col-left {
  width: 65%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-col-right {
  width: 35%;
}

/* Ensure canvas elements within mobile take appropriate space */
/* Row 1: Circle 40%, Triangle 60% */
.mobile-row-1 .circle-container {
  width: 40%;
}
.mobile-row-1 .triangle-container {
  width: 60%;
}
.mobile-row-2 .rhombus-container {
  width: 100%;
}
/* Left Col: Octagon 100%, Back Triangle 100% (of left col) */
.mobile-col-left .octagon-container,
.mobile-col-left .back-triangle-container {
  width: 100%;
  display: block;
}
/* Right Col: Square 100% (of right col) */
.mobile-col-right .squares-container {
  width: 100%;
  display: block;
}

/* Ensure back-triangle height is not fixed in mobile */
.mobile-layout .back-triangle-container {
  height: auto !important;
}

/* Remove max-width constraints from containers in mobile, let parents dictate width */
.mobile-layout .circle-container,
.mobile-layout .triangle-container,
.mobile-layout .octagon-container {
  max-width: none;
}

/* Ensure all mobile canvases are block or correct display type */
.mobile-layout canvas {
  display: block;
  line-height: normal;
}

/* END NEW LAYOUT STYLES */

/* Media Queries */

@media (max-width: 1020px) {

  .items-list > div {
    min-width: 180px;
    padding-right: 20px;
  }
  
}

@media screen and (max-width: 768px) {
  /* Grid layout starts here */
  h1 {
    color: var(--Armadillo, #423b33);
    font-family: Inter;
    font-size: 26px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px; /* 115.385% */
    margin-top: 30px;
  }

  h3 {
    color: var(--Armadillo, #423b33);
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 125% */
    display: block;
  }

  .header-subtitle > svg {
    height: 16px;
    width: 16px;
  }

  .header-title {
    text-align: center;
  }

  .break-down {
    display: block;
  }

  /* --- Tablet & Mobile Items List Grid (for screens <= 768px) --- */
  .items-list {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    justify-content: center;
    gap: 15px 15px;

    column-width: auto;
    column-count: 1;
  }

  .launch-header-info {
    gap: 20px;
  }

  .items-list > div {
    line-height: 1.3;
    justify-content: flex-start;
    padding-right: 0;
    margin-right: 0;
    margin-bottom: 0;
    break-inside: auto;
    align-items: center;
  }

  /* Shape size reduction MOVED to 600px query */

  /* --- End Tablet & Mobile Items List Grid --- */

  /* Hide desktop layout, show mobile layout (for screens <= 768px) */
  .desktop-layout {
    display: none;
  }
  .mobile-layout {
    display: block;
  }
}

/* Specific overrides for Mobile (screens <= 600px) */
@media screen and (max-width: 600px) {
  .items-list > div {
    font-size: 14px;
  }

  .launches-item-sym {
    width: 16px;
    margin-right: 5px;
  }

  .items-list {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  /* Reduce shape sizes ONLY for mobile */
  .items-list .circle {
    width: 12px;
    height: 12px;
  }
  .items-list .square {
    width: 12px;
    height: 12px;
  }
  .items-list .rhombus {
    height: 14px;
  }
  .items-list .octagon {
    width: 14px;
  }
  .items-list .triangle {
    width: 16px;
  }
  .items-list .back-triangle {
    width: 10px;
  }
}

/* Optional: Ensure desktop is shown on larger screens */
@media screen and (min-width: 769px) {
  .desktop-layout {
    display: flex;
  }
  .mobile-layout {
    display: none;
  }
}
