body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #0033aa;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #002fff;
}

h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, serif;
  margin-top: 0;
}

h1 {
  font-size: 1.5rem;
  color: #235;
}

h2 {
  font-size: 1.25rem;
  color: #444;
}

h3 {
  font-size: 1.1rem;
  color: #47c;
}

.page-label {
  margin-right: 0.5rem;
}

ul, ol {
  margin-bottom: 1rem;
}
ul li, ol li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  padding-left: 1rem;
}

header {
  background: #ffffff;
  border: 1px solid #e6e4e3;
  font-size: 0.9rem;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header a {
  text-decoration: none;
}
header .logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
header .logo-title img {
  width: 3rem;
}
header .logo-title img:hover {
  filter: invert(19%) sepia(61%) saturate(3583%) hue-rotate(217deg) brightness(79%) contrast(114%);
}
header .logo-title h1 {
  color: black;
  font-size: 1.25em;
  margin: 0;
}
header .logo-title h1:hover {
  color: #0033aa;
}
header .header-tools {
  display: flex;
  gap: 1rem;
  align-items: center;
}
header .header-tools .search-box {
  background: #f1f5f9;
  padding: 0.5rem;
  border-radius: 4px;
  border: none;
}
header .header-tools .dropdown {
  position: relative;
  display: inline-block;
}
header .header-tools .dropdown .dropbtn {
  background-color: #556677;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
@media (max-width: 768px) {
  header .header-tools .dropdown .dropbtn {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }
}
header .header-tools .dropdown .dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  right: 0;
}
header .header-tools .dropdown .dropdown-content a {
  color: #003366;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}
header .header-tools .dropdown .dropdown-content a:hover {
  background-color: #dadef3;
}
header .header-tools .dropdown:hover .dropdown-content {
  display: block;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  gap: 2rem;
}
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

.main-layout {
  display: flex;
  flex: 1;
}
.main-layout .sidebar {
  width: 250px;
  background: #ffffff;
  padding: 2rem 1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}
@media (max-width: 768px) {
  .main-layout .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    width: 250px;
    background-color: #ffffff;
  }
}
.main-layout .sidebar.active {
  transform: translateX(0);
}
.main-layout .sidebar h2 {
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
}
.main-layout .sidebar ul {
  list-style: none;
  padding-left: 0;
}
.main-layout .sidebar .topic-toggle {
  cursor: pointer;
  font-weight: bold;
  padding-left: 0.3rem;
  position: relative;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}
.main-layout .sidebar .topic-toggle:hover {
  background-color: #dadef3;
}
.main-layout .sidebar li {
  margin: 0;
  padding: 0;
}
.main-layout .sidebar div.active, .main-layout .sidebar li.active {
  background-color: #eaeef3;
}
.main-layout .sidebar .topic-arrow {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 2rem;
  color: #333;
  transition: transform 0.2s ease;
  transform-origin: center;
  cursor: pointer;
  user-select: none;
}
.main-layout .sidebar .topic-toggle.open .topic-arrow {
  transform: rotate(90deg);
}
.main-layout .sidebar .subtopic-menu {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #e6e4e3;
}
.main-layout .sidebar .subtopic-menu li {
  margin: 0.5rem 0;
  padding: 0.2rem 0.4rem;
  transition: background-color 0.3s;
}
.main-layout .sidebar .subtopic-menu li:hover {
  background-color: #dadef3;
}
.main-layout .sidebar .res-menu {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #e6e4e3;
}
.main-layout .sidebar .res-menu li {
  font-weight: bold;
  margin: 0.5rem 0;
  padding: 0.2rem 0.4rem;
  transition: background-color 0.3s;
}
.main-layout .sidebar .res-menu li:hover {
  background-color: #dadef3;
}
.main-layout .sidebar .in-progress {
  opacity: 0.4;
}
.main-layout .sidebar .in-progress a {
  color: red;
}
.main-layout .sidebar a {
  text-decoration: none;
  color: #222;
}
.main-layout .main {
  flex: 1;
  padding: 2rem;
  background-color: white;
}
.main-layout .main footer {
  margin-top: 2rem;
  padding-top: 0.5rem;
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid #e6e4e3;
  text-align: center;
  clear: both;
}

.in1 {
  margin-left: 4rem;
}

.deck {
  padding: 1.5rem;
  background: #eff6ff;
  border: 1px solid #dfe8f0;
  border-radius: 12px;
}

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

.clear {
  clear: both;
}

table.layout {
  margin-bottom: 1em;
  border-collapse: collapse;
}
table.layout th, table.layout td {
  vertical-align: top;
  padding: 0.25em;
}
table.layout th {
  white-space: nowrap;
  text-align: left;
}

.icon {
  color: #3c83f6;
  margin-right: 0.5rem;
}

.card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fff;
  padding: 1rem;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease;
}
.card:hover {
  border-color: #0074cc;
}
.card .icon {
  background: #dbeafe;
  padding: 0.5rem;
  border-radius: 0.5rem;
  min-width: 1rem;
}

.box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  clear: both;
}
.box :last-child {
  margin-bottom: 0;
  flex: 1;
}
.box::after {
  content: "";
  display: block;
  clear: both;
}
.box table {
  border: 2px solid #ccc;
  border-collapse: collapse;
  margin: 1rem 0;
}
.box table th, .box table td {
  padding: 0.4rem;
  border: 1px solid #ddd;
  text-align: left;
}
.box table th {
  background: rgba(128, 128, 128, 0.15);
  font-weight: 600;
}
.box table td {
  background: rgba(255, 255, 255, 0.9);
}

ul.practice li::after {
  content: "";
  display: block;
  clear: both;
}

.clear::after {
  content: "";
  display: block;
  clear: both;
}

.goal {
  background: #effff6;
  border-color: #dff0e8;
}
.goal h3, .goal .icon {
  color: #228855;
}

.tip {
  background: #fff4e8;
  border-color: #eeeecc;
}
.tip h3, .tip .icon {
  color: #d17a00;
}

.warning {
  background: #fff7f6;
  border-color: #ffbcb3;
}
.warning h3, .warning .icon {
  color: #d94d3b;
}

.download {
  background: #e8f4ff;
  border-color: #cce0ee;
}
.download h3, .download .icon {
  color: #0074a8;
}

.think {
  background: #f3f0ff;
  border-color: #ddd6f0;
}
.think h3, .think .icon {
  color: #5c48a8;
}

.saying {
  background: #effff6;
  border-color: #dff0e8;
}
.saying h3, .saying .icon {
  color: #228855;
}

.exercise {
  background: #e8fdf6;
  border-color: #c2f0de;
}
.exercise h3, .exercise .icon {
  color: #1d8a6d;
}

code {
  color: #228855;
  font-size: 1em;
  font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
  border-radius: 4px;
}

code.block {
  position: relative;
  display: block;
  background-color: white;
  border: 1px solid #ddd;
  padding: 0.5rem;
  line-height: 150%;
}

.code-wrapper {
  position: relative;
  display: block;
  z-index: 1;
}
.code-wrapper button.copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  margin: 0;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  background: #228855;
  transition: opacity 0.2s;
  opacity: 0.7;
}
.code-wrapper button.copy:hover {
  background: #18af63;
  opacity: 1;
}

div.example h3 {
  font-style: italic;
  color: #3c83f6;
  margin-top: 0;
  margin-bottom: 0.3rem;
}
div.example img {
  margin-left: 3rem;
}
div.example code {
  background: white;
  margin: 0.5rem 0;
}
div.example::after {
  content: "";
  display: block;
  clear: both;
}

span.example {
  display: inline-block;
  font-style: italic;
  margin-left: 3rem;
  color: #0b559b;
  padding-top: 0.5rem;
}

p.example, div.example {
  margin: 1.5rem 0;
  padding: 0.5rem 1.5rem;
  border: 1px solid #e6e4e3;
  border-left: 4px solid #3c83f6;
  color: #444;
  background: #f9f9ff;
}

.page-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
  flex-wrap: wrap;
  clear: both;
}
.page-selector .prev-wrapper,
.page-selector .next-wrapper {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-selector .prev-wrapper {
  text-align: right;
}
.page-selector .next-wrapper {
  text-align: left;
}
.page-selector .prev-topic, .page-selector .next-topic {
  text-decoration: none;
  font-style: italic;
  font-size: 90%;
  color: #888;
  white-space: nowrap;
}
.page-selector .page-controls {
  flex: 0 0 auto;
  text-align: center;
  white-space: nowrap;
}
.page-selector .page-controls strong {
  margin-right: 0.5rem;
}
.page-selector .page-controls a {
  margin: 0 0.3rem;
  text-decoration: none;
  color: #0074cc;
}
.page-selector .page-controls a.arrow {
  font-weight: bold;
  color: #004b99;
}
.page-selector .page-controls a:hover {
  text-decoration: underline;
}
.page-selector .page-controls .current-page {
  margin: 0 0.3rem;
  font-weight: bold;
  color: #222;
}

.row {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2em;
}
.row > div {
  flex: 1;
}
.row img {
  width: 35%;
}

.float-l {
  float: left;
  margin: 0 1em 1em 0;
}

.float-r {
  float: right;
  margin: 0 0 1em 1em;
}

img.med {
  width: 35%;
  height: auto;
}

img.big {
  width: 50%;
  height: auto;
}

img.small {
  width: 25%;
  height: auto;
}

a.link-button {
  display: inline-block;
  padding: 0.3em 0.6em;
  color: #000;
  background: #88ccff;
  text-decoration: none;
  border-radius: 4px;
}
a.link-button:hover {
  color: #fff;
  background: #0066cc;
}

.no-italic {
  font-style: normal !important;
}

button {
  background-color: #0074cc;
  color: #ffffff;
  font-size: 1rem;
  padding: 0.5em 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover {
  background-color: #0094ff;
}
button:active {
  background-color: #004c82;
}
button .fas {
  margin-right: 0.5em;
}

.button-group {
  margin-bottom: 1rem;
}

.blank {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  margin-bottom: -4px;
  border: 1px solid #444;
}

.diagram {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-height: 200px;
  max-width: 100%;
  width: auto;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

table.w100 {
  width: 100%;
}

table.translate {
  border: 2px solid #ccc;
  border-collapse: collapse;
  margin: 1rem 0;
  min-width: 30rem;
  table-layout: fixed;
}
table.translate th, table.translate td {
  padding: 0.4rem;
  border: 1px solid #ddd;
  text-align: left;
}
table.translate th {
  background-color: #f0f4f8;
  font-weight: 600;
}
table.translate td {
  background-color: #fff;
}

tr.sub {
  background-color: #f0f4f8;
}
tr.sub th {
  font-style: italic;
}

.place-value-table {
  width: 100%;
  min-width: 500px;
  max-width: 500px;
  margin: 1rem 0;
  border-collapse: collapse;
  text-align: center;
  border: 2px solid #ccc;
}
.place-value-table th, .place-value-table td {
  width: 25%;
  padding: 0.4rem;
  border: 1px solid #ddd;
}
.place-value-table th {
  background-color: #f0f4f8;
  font-weight: 600;
  font-family: "Merriweather", serif;
}
.place-value-table td {
  background-color: #fff;
  font-weight: bold;
}
.place-value-table .decimal-point {
  width: 0.5rem;
  padding: 0.25rem;
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
  vertical-align: middle;
  border: none;
}

.question-answer-table {
  width: 100%;
  max-width: 500px;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.question-answer-table th, .question-answer-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.question-answer-table th {
  background-color: #f0f4f8;
  font-weight: bold;
  font-family: "Merriweather", Georgia, serif;
}

.reveal {
  display: inline-block;
  color: rgba(0, 0, 0, 0);
  background: white;
  border: 1px solid #e6e4e3;
  padding: 0.3rem 0.6rem;
  margin: 0 0.25rem;
  min-width: 2.5rem;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}
.reveal::before {
  content: "?";
  color: #666;
}
.reveal.shown {
  color: #222;
  background: #ffff99;
}
.reveal.shown::before {
  content: none;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #556677;
}

.res-ref {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: #fcfcfc;
  border: 1px solid #f0f0f0;
  padding: 1rem;
}
.res-ref img {
  width: 120px;
  height: auto;
  align-self: flex-start;
}

.group1 {
  font-weight: bold;
  color: #2b7a78;
}

.group2 {
  font-weight: bold;
  color: #f76c6c;
}

.median {
  font-weight: bold;
  color: #555555;
}

.variable {
  font-weight: bold;
  color: #aa34aa;
}

.comparison {
  font-weight: bold;
  color: #ff9900;
}

.population {
  font-weight: bold;
  color: #5555ff;
}

iframe.sample-site {
  width: 100%;
  height: 40vh;
  border: 1px solid silver;
  outline: none;
  margin-bottom: 1em;
}

.search-result .search-crumb {
  color: #888888;
  font-size: 90%;
  font-style: italic;
  margin-bottom: 0;
}
.search-result p {
  margin-top: 0.25rem;
}

.tbc h2 {
  color: #990000;
}
.tbc p {
  color: #0b5991;
}

.resource-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.resource-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1em;
}
.resource-list .resource-icon {
  width: auto;
  max-width: 60px;
  max-height: 60px;
  margin-right: 0.75em;
  flex-shrink: 0;
}

/* Container created by JS; not in DOM initially */
#kupu-popover {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  padding: 8px 10px;
  max-width: 280px;
  font-size: 0.9rem;
  line-height: 1.3;
  display: none;
}

#kupu-popover a {
  text-decoration: none;
}

#kupu-popover small {
  color: #555;
  display: block;
  margin-bottom: 6px;
}

.kupu {
  position: relative;
  cursor: help;
  background-color: rgba(0, 85, 165, 0.08);
  border-radius: 3px;
  padding: 0 2px;
  transition: background-color 0.15s ease-in-out;
}
.kupu:hover, .kupu:focus {
  background-color: rgba(0, 85, 165, 0.2);
  outline: none;
}
.kupu :focus {
  outline: 2px solid #99c2e6;
  outline-offset: 2px;
}

.muted {
  color: var(--muted-color, #6b7280);
  font-size: 0.95em;
}

.tight {
  margin: 0;
}
.tight li {
  margin: 0.15em 0;
}

@media print {
  .muted {
    color: #000;
    font-style: italic;
  }
}
.underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }

  header {
    padding: 0 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .sidebar {
    width: 100%;
    padding: 1rem;
  }

  .main {
    padding: 1rem;
  }

  .logo-title img, .logo-title .briden {
    display: none;
  }
}
@media print {
  body * {
    visibility: hidden !important;
  }

  .main, .main * {
    visibility: visible !important;
  }

  .main {
    position: absolute;
    inset: 0;
  }

  .main nav, .main nav *,
.main footer, .main footer * {
    visibility: hidden !important;
  }
}

/*# sourceMappingURL=temp-style.css.map */
