/* Shared by the 12 language index pages ({lang}/index.html) only — NOT the tool
   pages and NOT the root index.html (both have their own layouts). Linked as
   ../css/index.css. Everything here was byte-identical across all 12 index pages
   except body's font-family, which stays inline per-page (Noto Sans for the 10
   Latin/Cyrillic languages, Noto Sans KR for ko, Noto Sans JP for ja) — the same
   "shared CSS minus font-family" split the tool pages already use. Note: .card /
   .card-title here mean the icon tool-link card, a DIFFERENT thing than the tool
   pages' .card, which is why this can't live in css/style.css. */

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

html { height: 100%; }

body {
  min-height: 100%;
  background: #f0f2f5;
  color: #333;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  margin-bottom: 18px;
}
header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}
header h1 span { color: #0078d4; }
header p {
  margin-top: 4px;
  font-size: 12.5px;
  color: #666;
}

.sections {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
}

.section-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid #0078d4;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #e8e8e8;
  transition: transform 0.15s, box-shadow 0.15s;
  min-width: 0;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  border-color: #0078d4;
}
.card:focus-visible {
  outline: 2px solid #0078d4;
  outline-offset: 2px;
}

.card-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.card-body {
  min-width: 0;
}
.card-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-desc {
  font-size: 11px;
  color: #666;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover,
  .card:focus-visible { transform: none; }
}
