/* ------------------------------
   Base styling
--------------------------------*/

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 13px;
  line-height: 1.48;
  color: #222;
  margin: 0 auto;
  max-width: 720px;
  padding: 0 24px 60px 24px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0a84ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

hr.thin {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 32px 0;
  background: none;
  height: 0;
}

/* ------------------------------
   Header
--------------------------------*/

#headerbox {
  margin-top: 52px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* FORCE correct icon size on the website index */
#headerbox #iconbox img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.header-appstore {
  margin-left: auto;
  display: block;
}

/* FIXED: explicit icon sizing so it never displays at native resolution */
#iconbox img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Typography for page title */
#pagetitle h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

/* Larger title + icon on wide screens */
@media (min-width: 980px) {
  #iconbox img {
    width: 64px;
    height: 64px;
  }

  #pagetitle h1 {
    font-size: 22px;
  }
}

/* ------------------------------
   Headings
--------------------------------*/

h2 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}

h3 {
  font-size: 15px;
  margin-top: 26px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* New h4 style */
h4 {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-top: 18px;
  margin-bottom: 6px;
}

/* ------------------------------
   Notebox
--------------------------------*/

#notebox {
  border: 1px solid #d2d2d7;
  background: #fafafb;
  padding: 12px 18px 14px 18px; /* balanced interior */
  border-radius: 8px;
  margin: 18px 0; /* balanced exterior */
}

/* ------------------------------
   Screenshot layout
--------------------------------*/

#screenshotbox {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
}

#screenshotbox img,
#screenshotimg {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

#screenshotbox img {
  max-height: 520px;
}

@media (min-width: 700px) {
  #screenshotbox {
    justify-content: flex-start;
  }

  #screenshotbox img {
    flex: 0 0 auto;
    max-height: 520px;
  }
}

/* ------------------------------
   Toolbar box (from earlier step)
--------------------------------*/

.toolbar-box {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 12px 0 18px;
  background-color: #fafafa;
}

.toolbar-item {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.toolbar-item img {
  width: 16px;
  height: auto;
  margin-right: 10px;
  display: block;
}
