/* "About This Worksheet" card used on printable worksheet pages.
   Contrast (WCAG 2.1 AA needs 4.5:1 for text, 3:1 for focus rings):
   #1f2d3d on #ffffff 14.0:1; #045472 on #ffffff 8.4:1; #045472 on #eef7f2 7.6:1;
   #3d4b59 on #eef7f2 8.2:1; hover #1931a9 9.4:1+; focus ring #045472 vs white 8.4:1. */

/* ".main section.sheet-about" outranks the site's ".main section { padding: 0 10px 6px }" */
.sheet-about,
.main section.sheet-about {
  box-sizing: border-box;
  max-width: 640px;
  margin: 0 auto 1.5em auto;
  padding: 1.5em 1.75em;
  background: #ffffff;
  border: 1px solid #d5e1e8;
  border-top: 5px solid #045472;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(4, 84, 114, 0.10);
  color: #1f2d3d;
  text-align: left;
  font-family: arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.sheet-about .sheet-about__title {
  margin: 0 0 0.6em 0;
  padding: 0;
  color: #045472;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: bold;
  letter-spacing: 0.01em;
}

.sheet-about p {
  margin: 0 0 1em 0;
  color: #1f2d3d;
  font-size: 1rem;
}

.sheet-about .sheet-about__more {
  margin: 1.25em 0 0 0;
  padding: 1em 1.25em;
  background: #eef7f2;
  border-left: 4px solid #6dcf25;
  border-radius: 8px;
}

.sheet-about .sheet-about__more p {
  margin: 0 0 0.5em 0;
  color: #3d4b59;
}

.sheet-about .sheet-about__more p:last-child {
  margin-bottom: 0;
}

/* Links stay underlined so they are not identified by color alone */
.sheet-about a,
.sheet-about a:link,
.sheet-about a:visited {
  color: #045472;
  font-size: inherit;           /* the site shrinks links to 70% on phones */
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.sheet-about a:hover {
  color: #1931a9;
  text-decoration-thickness: 2px;
}

/* Clear keyboard focus ring (the site default green dashed ring is too faint on white) */
.sheet-about a:focus {
  outline: 3px solid #045472;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Text for screen readers only */
.sheet-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media only screen and (max-width: 767px) {
  .sheet-about,
  .main section.sheet-about {
    margin-left: 4%;
    margin-right: 4%;
    padding: 1.1em 1.1em;
  }
  .sheet-about .sheet-about__title { font-size: 1.15rem; }
}

/* Wide variant (listing pages): 95% of the parent, centered, at every screen size */
.main section.sheet-about.sheet-about--wide,
.sheet-about.sheet-about--wide {
  width: 95%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* Windows High Contrast / forced colors: keep the card edges visible */
@media (forced-colors: active) {
  .sheet-about, .sheet-about .sheet-about__more { border: 1px solid CanvasText; }
}
