/* ==========================================================
   Thickness Calculator – dedicated styles
   path: /dipcoating/thickness-calculator/style-thickness.css
   ========================================================== */
.page-head p{
  margin:1.5em;
  max-width: 760px;
  margin:0 auto;
  line-height:1.5;
  padding-bottom:0.5em;
}

.thick-container {
  max-width: 760px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px 20px;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: #333;
  line-height: 1.6;
  margin:0 auto;
}

.thick-container div{
  white-space:nowrap;
}

.thick-container h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #006b38; /* SDI green */
}

/* Input area guide text */
.thick-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 8px;
}

.thick-note-square {
  display: inline-block;
  width: 45px;
  height: 20px;
  background-color: #e8f5e9;      /* same color as input/select */
  border: 1px solid #b2dfbd;      /* slightly darker border to stand out */
  border-radius: 3px;
}

.thick-grid {
  display: grid;
  grid-template-columns: 1fr 130px 80px;
  gap: 8px 12px;
  align-items: center;
}

.thick-grid .unit{
  padding-left:0.5em;
}

.thick-grid input,
.thick-grid select {
  width: 100%;
  padding: 4px 6px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #e8f5e9;
}

.thick-grid output {
  display: block;
  min-width: 70px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.thick-grid hr {
  grid-column: 1 / -1;
  margin: 16px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.notes {
  margin:0 auto;
  margin-top: 24px;
  max-width: 760px;
}

.thick-desc {
  margin:0 auto;
  margin-top: 24px;
  max-width: 760px;
}

.thick-desc h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #006b38;
  border-left: 4px solid #00994d;
  padding-left: 8px;
}

.thick-desc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.thick-desc th {
  background: #e8f5e9;
  border-bottom: 2px solid #00994d;
  color: #006b38;
  text-align: left;
  padding: 6px 8px;
  white-space:nowrap;
}

.thick-desc td {
  border-bottom: 1px solid #ddd;
  padding: 6px 8px;
  vertical-align: top;
}

.thick-desc tr:hover td {
  background: #f8fdf9;
}

/* Mobile layout */
@media (max-width: 600px) {
  .thick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .thick-grid div:nth-child(3n) {
    display: none; /* hide unit column for compact view */
  }
}

/* Result area only */
.thick-results {
  width:100%;
  display: grid;
  grid-template-columns: 1fr auto auto;  /* label / value / unit */
  column-gap: 12px;
  row-gap: 8px;
  margin-top: 12px;
  text-align: right;
}

/* Right-aligned numeric output with tabular look */
.thick-results output {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Unit column */
.thick-results > div:nth-child(3n) {
  white-space: nowrap;
}

/* Mobile layout for result area */
@media (max-width: 640px) {
  .thick-results {
    grid-template-columns: 1fr auto auto; 
  }

  .thick-results > div:nth-child(3n) {
    justify-self: end;
    font-size: 0.85rem;
    margin-top: -2px;
  }
}
