/* Theme colors:
   Main:          #0099e5
   Sidebar bg:    #333333
   Title:         #333333  (using light text on dark instead)
   Subtitle:      #888888
   Links:         #0099cc
   Links hover:   #006699
*/

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #d5d5d5;
  background-color: #222222; /* rgba(34,34,34,1) */
}

.page {
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Header row with title + return link */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.toolbox-title {
  position: relative;
  padding-bottom: 0.25rem; /* space for the line */
}

/* Underline effect for title */
.toolbox-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.15rem;
  background-color: #0099e5;
}

h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 500;
  color: #d5d5d5; /* regular text color, not blue */
}

a {
  color: #0099cc;
  text-decoration: none;
}

a:hover:not(.tool-card) {
  color: #006699;
  text-decoration: underline;
}

.header-return {
  font-size: 0.9rem;
  white-space: nowrap;
}

.tagline {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  color: #dddddd;
}

.intro {
  margin: 0 0 1.8rem;
  font-size: 0.95rem;
  color: #c0c0c0;
}

/* Tool cards */
.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 720px) {
  .tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-return {
    white-space: normal;
  }
}

.tool-card {
  display: block; /* make the anchor behave like a block/card */
  background-color: #333333; /* blog sidebar background color */
  border-radius: 4px;
  border: 1px solid #444444;
  padding: 0.9rem 1rem;
  text-decoration: none; /* no underline on the card */
  color: inherit; /* use normal text color */
  cursor: pointer;
  transition:
    background-color 0.15s ease-out,
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    transform 0.1s ease-out;
}

.tool-card:hover {
  background-color: #3a3a3a;
  border-color: #0099e5;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.tool-card:focus-visible {
  outline: 1px solid #0099e5;
  outline-offset: 2px;
  background-color: #3a3a3a;
  border-color: #0099e5;
}

.tool-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
}

.tool-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #c0c0c0;
}
