/* The /standards/ pages in the purple theme (pages/purple/standards.php), on top of
   css/purple-hub.css: the state finder, the set cards, a set's list of standards
   and a standard's statement card. */

/* Directory: find your state */
.std-lede { margin: -4px 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--pv-muted); }
.std-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.std-or { font-size: 13px; font-weight: 700; color: var(--pv-muted); }
.std-select {
  min-width: 220px; max-width: 100%; font: 700 14.5px 'DM Sans', sans-serif; color: var(--pv-plum);
  background: var(--pv-cream); border: 2px solid transparent; border-radius: 999px; padding: 9px 38px 9px 16px;
  cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23634bf5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.std-select:hover { border-color: var(--pv-lav); }
.std-select:focus-visible { outline: none; border-color: var(--pv-violet); }
.std-note { margin-top: 14px; padding: 14px 16px; background: #f6f3ff; border-radius: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.std-note[hidden], .std-yours[hidden] { display: none; }
.std-note p { margin: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.5; color: var(--pv-plum); }
.std-btn {
  font: 700 13.5px 'DM Sans', sans-serif; color: #fff; background: var(--pv-violet); border: 0; border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: background .15s;
}
.std-btn:hover { background: var(--pv-violet-d); }
.std-btn.wide { display: block; width: 100%; margin-top: 10px; }
.std-btn.on, .std-btn:disabled { background: #e3f5ec; color: #1f7a52; cursor: default; }
.std-yours { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--pv-muted); }
.std-yours a { color: var(--pv-violet); font-weight: 700; text-decoration: none; }
.std-yours a:hover { text-decoration: underline; }

/* Directory: the sets */
.std-sets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.std-set {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; background: var(--pv-cream);
  border: 2px solid transparent; border-radius: 20px; text-decoration: none; transition: border-color .15s, background .15s;
}
.std-set:hover { border-color: var(--pv-lav); background: #fff; }
.std-set b { font: 600 19px/1.2 'Fredoka', sans-serif; color: var(--pv-plum); }
.std-set .m { font-size: 12.5px; line-height: 1.4; color: var(--pv-muted); flex: 1; }
@media (max-width: 1100px) { .std-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .std-sets { grid-template-columns: 1fr; } .std-select { width: 100%; } }

/* A set's page: grade sections, domain headings, one row per standard */
.std-grade { scroll-margin-top: 90px; }
.std-grade[hidden] { display: none; }
.std-dom { margin: 18px 0 6px; font: 800 11.5px 'DM Sans', sans-serif !important; letter-spacing: 1.1px; text-transform: uppercase; color: var(--pv-violet) !important; }
.std-dom:first-of-type { margin-top: 4px; }
.std-list { list-style: none; margin: 0; padding: 0; }
.std-list li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 4px; border-top: 1px solid #f1ecf8; }
.std-list li:first-child { border-top: 0; }
.std-list .std-cluster { padding: 12px 4px 4px; border-top: 0; font-size: 12.5px; font-weight: 700; color: var(--pv-muted); }
.std-list .std-parent { background: #faf8fe; border-radius: 12px; border-top: 0; margin-top: 4px; }
.std-list .part { padding-left: 22px; }
/* A standard's row is one link */
.std-list li.std-link { padding: 0; }
.std-row { flex: 1; display: flex; align-items: flex-start; gap: 12px; padding: 8px 4px; border-radius: 10px; text-decoration: none; color: inherit; }
.std-list .part .std-row { padding-left: 22px; }
.std-row:hover { background: #f6f3fd; }
.std-row:hover .std-code { background: #ddd6ff; }
.std-row:hover .std-n:not(.none) { background: var(--pv-violet-d); }
.std-code {
  flex: none; min-width: 74px; font: 700 12.5px/1.6 'DM Sans', sans-serif; color: var(--pv-violet-d); background: #ece8ff;
  border-radius: 999px; padding: 1px 10px; text-align: center; text-decoration: none; white-space: nowrap;
}
a.std-code:hover { background: #ddd6ff; }
.std-text { flex: 1; font-size: 14px; line-height: 1.55; color: #4b3f6b; }
.std-n {
  flex: none; min-width: 30px; font: 700 12.5px/1.6 'DM Sans', sans-serif; color: #fff; background: var(--k-printable);
  border-radius: 999px; padding: 1px 8px; text-align: center; text-decoration: none;
}
a.std-n:hover { background: var(--pv-violet-d); }
.std-n.none { background: none; color: #c9c0dd; }
.std-about { margin: 0 4px 8px; font-size: 13px; line-height: 1.5; color: var(--pv-muted); }
.std-about b { color: var(--pv-plum); }
.std-src { display: inline-block; margin: 0 4px; font-size: 13px; font-weight: 700; color: var(--pv-violet); text-decoration: none; }
.std-src:hover { text-decoration: underline; }
.rail .std-btn.wide { margin-top: 12px; }
@media (max-width: 640px) {
  .std-list li, .std-row { flex-wrap: wrap; gap: 6px 10px; }
  .std-text { flex-basis: 100%; order: 3; }
  .std-list .part, .std-list .part .std-row { padding-left: 4px; }
  .std-list .part.std-link { padding-left: 0; }
}

/* A standard's page: the statement card */
.std-statement .ey { font: 800 11.5px 'DM Sans', sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pv-violet); }
.std-big { margin: 8px 0 12px; font: 500 21px/1.4 'Fredoka', sans-serif; color: var(--pv-plum); }
.std-parts { margin: 0 0 12px; }
.std-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: 13px; }
.std-facts div { display: flex; gap: 6px; }
.std-facts dt { color: var(--pv-muted); font-weight: 600; }
.std-facts dd { margin: 0; color: var(--pv-plum); font-weight: 700; }
.std-facts a { color: var(--pv-violet); text-decoration: none; }
.std-statement + .kband, .std-statement + .krow { margin-top: 16px; }

/* Under the list: our-words note and the copyright line a set requires */
.std-foot { margin: 16px 6px 0; }
.std-own, .std-legal { margin: 0 0 6px; font-size: 12.5px; line-height: 1.5; color: var(--pv-muted); }
.std-own a { color: var(--pv-violet); font-weight: 700; text-decoration: none; }
.std-own a:hover { text-decoration: underline; }
