
body {
  font-family: 'Iowan Old Style', Georgia, serif;
  line-height: 1.6;
  color: #333;
  background: white;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
::selection {
  background: rgba(0, 123, 255, 0.2);
  color: #222;
}

main {
  max-width: 45rem;
  margin: 0 auto;
  padding: 0;
  background: white;
  position: relative;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Iowan Old Style', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  color: #222;
  margin-top: 1em;
  margin-bottom: 1em;
  scroll-margin-top: 2rem;
}

h1 {
  font-size: 2.1rem;
  margin-top: 0;
  margin-bottom: 1.4rem;
}

h2 {
  font-size: 1.85rem;
}
.article-container h1 {
  font-size: 1.8rem;
  margin: 0.2rem 0;
  padding: 0;
  border-bottom: 2px solid #f0f0f0;
}

.article-container h2 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #f5f5f5;
}

.article-container h2:first-of-type {
  margin-top: 1.5rem;
}

.article-container h3 {
  font-size: 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}
.article-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 0.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  font-style: italic;
}

.article-intro p {
  margin-bottom: 1rem;
}

.article-intro p:last-child {
  margin-bottom: 0;
}

.article-body {
  line-height: 1.65;
}

.article-body p {
  margin-bottom: 1.5rem;
  text-align: left;
}

.article-body p:last-child {
  margin-bottom: 2rem;
}
.article-body p strong {
  font-weight: 500;
  color: #333;
}

.article-body p strong:first-child {
  font-weight: bold;
  font-style: normal;
  color: #555;
}
.article-body ul, .article-body ol {
  margin-left: 0;
  padding-left: 1.2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

p {
  margin-bottom: 1.5em;
  font-size: 1rem;
}
a {
  color: #337ab7;
  text-decoration: underline;
  text-decoration-color: #337ab7;
  transition: all 0.2s ease;
}

a:hover, a:focus {
  color: #337ab7 !important;
  text-decoration: underline !important;
}

a[style*="color: #337ab7"]:hover {
  color: #337ab7 !important;
  text-decoration: underline !important;
}
.math {
  font-family: 'CMU Serif', serif;
  font-style: italic;
}

.math-block {
  display: block;
  text-align: center;
  margin: 1rem 0;
  font-size: 1.1rem;
}
.toggle {
  margin-bottom: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75em 1em;
  background-color: #f9f9f9;
  cursor: pointer;
  user-select: none;
}

.toggle-header:hover {
  background-color: #f5f5f5;
}

.toggle-title {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
  flex: 1;
  margin-right: 2rem;
}

.toggle-date {
  font-size: 0.9em;
  color: #666;
  margin-left: auto;
  margin-right: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.toggle-indicator {
  margin-left: 0.5em;
  color: #333;
  transition: transform 0.2s ease;
  display: inline-block;
  font-size: 1.2em;
  flex-shrink: 0;
}

.toggle-indicator.open {
  transform: rotate(180deg);
}

.toggle-content {
  padding: 1em;
  display: none;
  background-color: #fff;
}

.toggle-content.open {
  display: block;
}

.toggle-content > *:first-child {
  margin-top: 0;
}

.toggle-content > *:last-child {
  margin-bottom: 0;
}

.thought-metadata {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1em;
}

.collapse-content p:last-child,
.collapse-content ul:last-child {
  margin-bottom: 0.5rem;
}
.topnav {
  list-style-type: none;
  margin: 0 0 0.25rem 0;
  padding: 0;
  
  
  display: flex;
  flex-wrap: wrap;
}

.topnav li {
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.topnav li a {
  display: inline-block;
  padding: 0.5rem 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: #333;
  border-bottom: 2px solid transparent;
}

.topnav li a:hover, .topnav li a:focus {
  color: #333 !important;
  border-bottom: 2px solid transparent;
  text-decoration: none !important;
}

.topnav li a.active {
  color: #333;
  border-bottom: 2px solid transparent;
}

.reading-time {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  font-style: italic;
}

footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2.25px solid #eee;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

footer a {
  margin: 0 0.5rem;
}
.subject-links {
  line-height: 1.8;
  word-wrap: break-word;
}

.subject-links a {
  display: inline;
  margin-right: 0.3rem;
}
@media (max-width: 768px) {
  body {
    padding: 0;
  }
  
  main {
    padding: 1.5rem;
    border-radius: 0;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 4rem;
  }
  
  .topnav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  
  .topnav li {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    width: auto;
  }
  
  
  .subject-links {
    line-height: 2;
  }
  
  .subject-links a {
    margin-right: 0.2rem;
  }
  
  a[href$="encyclopedia.html"],
  a[href$="religion.html"], 
  a[href$="languages.html"],
  a[href$="media.html"],
  a[href$="miscellaneous.html"],
  a[href$="finance.html"] {
    font-size: 0 !important;
  }
  
  a[href$="encyclopedia.html"]:after {
    content: "← Back to Encyclopedia";
    font-size: 1rem;
  }
  
  a[href$="religion.html"]:after {
    content: "← Back to Religion";
    font-size: 1rem;
  }
  
  a[href$="languages.html"]:after {
    content: "← Back to Languages";
    font-size: 1rem;
  }
  
  a[href$="media.html"]:after {
    content: "← Back to Media";
    font-size: 1rem;
  }
  
  a[href$="miscellaneous.html"]:after {
    content: "← Back to Miscellaneous";
    font-size: 1rem;
  }
  
  a[href$="finance.html"]:after {
    content: "← Back to Finance";
    font-size: 1rem;
  }
  
  blockquote {
    padding: 1rem 1.2rem 1rem 1rem !important;
    margin: 1.5rem 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  
  blockquote p {
    margin: 0.5rem 0 !important;
    font-size: 0.85rem !important;
    padding-right: 0.3rem !important;
  }
  
  blockquote[style*="text-align: center"] {
    font-size: 1.05rem !important;
    padding: 1rem 0.5rem !important;
    line-height: 1.5 !important;
  }
  
  blockquote[style*="text-align: center"] br {
    margin-bottom: 0.3rem;
  }
  
  blockquote em {
    font-size: 0.85rem !important;
    display: block;
    margin-top: 0.5rem;
  }
  
  blockquote[style*="font-size"] {
    font-size: 1rem !important;
  }
  
  table {
    font-size: 0.65rem !important;
    display: table !important;
    width: 100% !important;
    margin: 1rem 0 !important;
    table-layout: auto !important;
  }
  
  table th,
  table td {
    padding: 0.3rem 0.2rem !important;
    font-size: 0.65rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  table thead th {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.2rem !important;
  }
  
  table th:nth-child(2),
  table td:nth-child(2) {
    width: 12% !important;
    white-space: nowrap !important;
  }
  
  table th:nth-child(3),
  table td:nth-child(3) {
    width: 28% !important;
    font-size: 0.6rem !important;
  }
  
  table th:nth-child(4),
  table td:nth-child(4) {
    width: 28% !important;
    font-size: 0.65rem !important;
  }
  
  table th:first-child,
  table td:first-child {
    width: 32% !important;
    font-size: 0.58rem !important;
    line-height: 1.3 !important;
  }
  
  table strong {
    font-size: 0.58rem !important;
  }
  
  table tbody td[style*="vertical-align: top"] {
    font-size: 0.58rem !important;
    line-height: 1.4 !important;
  }
  
  div[style*="background: #f8f8f8"] input,
  div[style*="background: #f8f8f8"] button {
    font-size: 0.9rem !important;
    padding: 0.6rem !important;
  }
  
  div[style*="background: #f8f8f8"] label {
    font-size: 0.85rem !important;
  }
  
  div[style*="background: #f8f8f8"] h4 {
    font-size: 1rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  #finalAmount {
    font-size: 1.5rem !important;
  }
  
  div[id="result"] {
    font-size: 0.85rem !important;
  }
}
blockquote {
  border-left: 3px solid #ddd;
  margin: 1rem 0;
  padding: 0.8rem 0 0.8rem 1.8rem;
  color: #444;
  font-style: italic;
  line-height: 1.6;
}

body:has(h1:contains("Poems")) blockquote,
.poems-page blockquote {
  border-left: none;
}

.poem {
  margin-bottom: 3rem;
  padding: 2.5rem 2rem;
  background: #fafafa;
  border-radius: 8px;
  border-left: 3px solid #ddd;
  position: relative;
}

.poem:last-child {
  margin-bottom: 2rem;
}

.poem blockquote {
  margin-bottom: 1.5rem;
  margin-right: 0;
  margin-left: 0;
  padding-left: 0;
  text-align: center;
  font-style: italic;
  color: #333;
  line-height: 1.8;
  font-size: 1rem;
  border-left: none !important;
}

.poem footer {
  position: static;
  margin: 0;
  padding: 0;
  border-top: none;
  font-size: 0.85rem;
  color: #888;
  font-style: normal;
  text-align: center;
  line-height: 1.2;
  transform: none;
}

blockquote footer {
  margin-top: 0.8rem;
  padding-top: 0;
  border-top: none;
  text-align: right;
  font-size: 0.9rem;
  color: #666;
  font-style: normal;
}
code {
  background: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}
.publication, .project {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  
}

.publication h3, .project h3 {
  margin-bottom: 0.3rem;
}

.publication .authors, .project .timeframe {
  font-style: italic;
  color: #666;
  margin-bottom: 0.5rem;
}

.publication .venue, .project .tools {
  font-weight: 500;
}
.date {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
article {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

article:last-child,
article:last-of-type {
  border-bottom: none !important;
}

article h2 {
  margin-bottom: 0.3rem;
  font-size: 1.4rem;
}

article p {
  color: #555;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.blog-title {
  color: #222 !important;
  text-decoration: none !important;
}

.blog-title:hover {
  color: #222 !important;
  text-decoration: none !important;
}
.encyclopedia-link {
  color: #337ab7 !important;
  text-decoration: underline !important;
  text-decoration-color: #337ab7 !important;
}

.encyclopedia-link:hover {
  color: #337ab7 !important;
  text-decoration: underline !important;
  text-decoration-color: #337ab7 !important;
}
.encyclopedia-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.encyclopedia-list li {
  margin-bottom: 0.8rem;
  line-height: 1.4;
  font-size: 0.95rem;
}
.encyclopedia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.encyclopedia-section {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.2s ease;
}

.encyclopedia-section:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.encyclopedia-section .encyclopedia-link {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
}
.collapsible { 
  margin-bottom: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background-color: #f9f9f9;
  cursor: pointer;
  user-select: none;
}

.collapsible-header:hover {
  background-color: #f5f5f5;
}

.collapsible-title {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
  margin-right: 3rem;
  flex: 0 1 auto;
  max-width: 70%;
}

.thought-metadata {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}

.collapsible-indicator {
  margin-left: 1em;
  color: #333 !important;
  transition: all .2s ease;
  display: inline-block;
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1;
  font-family: iowan old style, apple garamond, palatino linotype, urw palladio l, P052, Baskerville, serif;
  width: 1.5rem;
  text-align: center;
}

.collapse-content { 
  padding: 0;
  display: none;
  background: #fff;
}

.collapse-content.open { 
  display: block;
  padding: 1rem 0.8rem 0.8rem; 
  border-top: 1px solid #ddd;
}

.collapse-content > *:first-child {
  margin-top: 0;
}

.collapse-content p {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .encyclopedia-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
  }
  
  .encyclopedia-section {
    padding: 1rem;
  }
}
body.why-page h2 { margin-top: 1.5em; margin-bottom: 1.5em; color: #444; font-size: 1.6rem; }
body.why-page h2:first-of-type { margin-top: 1.5em; }
.article-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.pull-quote {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  font-style: italic;
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  border-top: 2px solid #6c757d;
  border-bottom: 2px solid #6c757d;
  background: #f8f8f8;
  position: relative;
}

.pull-quote::before {
  content: '';
}
.callout {
  background: #f8f8f8;
  color: #333;
  padding: 1rem;
  margin: 0.2rem 0 0.8rem 0;
  border-left: 4px solid #6c757d;
  border-radius: 4px;
}

.callout h3 {
  margin-top: 0;
  color: #333;
  font-size: 2.1rem;
  font-weight: 600;
}

.callout p, .info-box p, .highlight p, .takeaway p, .warning p {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: inherit;
}

.callout p:last-child, .info-box p:last-child, .highlight p:last-child, .takeaway p:last-child, .warning p:last-child {
  margin-bottom: 0;
}
.info-box table:last-child {
  margin-bottom: 0;
}
.info-box > *:last-child {
  margin-bottom: 0;
}
.warning {
  background: #f8f8f8;
  color: #333;
  padding: 1rem;
  margin: 0.2rem 0 0.8rem 0;
  border-radius: 4px;
  border-left: 4px solid #e74c3c;
}

.warning::before {
  content: "⚠️";
  font-size: 1rem;
  margin-right: 0.5rem;
}
.info-box {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.info-box h3 {
  margin-top: 0;
}

.info-box::before {
  content: "";
}

.info-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
}

.info-box table td {
  padding: 0.6rem;
  border: 1px solid #ddd;
  vertical-align: top;
}

.info-box table td:first-child {
  width: 140px;
  min-width: 140px;
  white-space: nowrap;
  font-weight: 500;
}

.sidebar {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  margin: 0.2rem 0 0.8rem 0;
}

.sidebar h4 {
  margin-top: 0;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 2px solid #6c757d;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar ul, .callout ul, .info-box ul, .highlight ul, .takeaway ul, .warning ul {
  margin: 0 0 0.5rem 0;
  padding-left: 1.2rem;
}

.sidebar ul:last-child, .callout ul:last-child, .info-box ul:last-child, .highlight ul:last-child, .takeaway ul:last-child, .warning ul:last-child {
  margin-bottom: 0;
}

.sidebar li, .callout li, .info-box li, .highlight li, .takeaway li, .warning li {
  margin-bottom: 0.3rem;
  color: #333;
  font-size: 1rem;
}

.sidebar li:last-child, .callout li:last-child, .info-box li:last-child, .highlight li:last-child, .takeaway li:last-child, .warning li:last-child {
  margin-bottom: 0;
}
.highlight {
  background: #f8f8f8;
  padding: 1rem;
  margin: 0.2rem 0 0.8rem 0;
  border-radius: 4px;
  border-left: 4px solid #6c757d;
  font-size: 1rem;
}
.article-body {
  font-size: 0.95rem !important;
  line-height: 1.6;
}

.article-body p, .article-body li, .article-body div {
  font-size: 0.95rem !important;
}

h3:has(+ ul) + ul li,
h3 + ul li {
  font-size: 1rem !important;
}

.article-body p:first-of-type {
  font-size: 0.95rem !important;
  color: #333;
}
.takeaway {
  background: #f8f8f8;
  color: #333;
  padding: 1rem;
  margin: 0.2rem 0 0.8rem 0;
  border-radius: 4px;
  border-left: 4px solid #6c757d;
}

.takeaway::before {
  content: "";
}

.takeaway h4 {
  margin-top: 0;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}
.stat-highlight {
  display: inline-block;
  background: #6c757d;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0.2rem;
}

a[style*="color: #007bff"] {
  text-decoration: none !important;
}

a[style*="color: #007bff"]:hover {
  text-decoration: none !important;
  color: #007bff !important;
}

@media (max-width: 768px) {
  .pull-quote {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #444 !important;
    font-style: normal !important;
    text-align: left !important;
    margin: 1rem 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    line-height: 1.5 !important;
  }
  
  .pull-quote::before {
    display: none !important;
  }
  
  .callout, .warning, .info-box, .sidebar, .highlight, .takeaway {
    margin: 1.5rem 0;
    padding: 1rem !important;
  }
  
  
  .callout p, .info-box p, .highlight p, .takeaway p, .warning p, .sidebar p {
    margin: 0 0 0.2rem 0 !important;
    font-size: 0.95rem !important;
  }
  
  .callout p:last-child, .info-box p:last-child, .highlight p:last-child, .takeaway p:last-child, .warning p:last-child, .sidebar p:last-child {
    margin-bottom: 0 !important;
  }
  
  
  .callout ul, .info-box ul, .highlight ul, .takeaway ul, .warning ul, .sidebar ul {
    margin: 0 0 0.2rem 0 !important;
  }
  
  .callout ul:last-child, .info-box ul:last-child, .highlight ul:last-child, .takeaway ul:last-child, .warning ul:last-child, .sidebar ul:last-child {
    margin-bottom: 0 !important;
  }
  
  .info-box table {
    font-size: 0.95rem !important;
  }
  
  .info-box table td {
    padding: 0.5rem !important;
  }
  
  .info-box table td:first-child {
    width: 120px !important;
    min-width: 120px !important;
  }
  
  .article-intro {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    padding-bottom: 0.3rem;
  }
  
  
  blockquote {
    margin: 0.8rem 0 !important;
    padding: 0.5rem 0 0.5rem 1rem !important;
    line-height: 1.5 !important;
  }
  
  blockquote p {
    margin: 0 0 0.3rem 0 !important;
  }
  
  blockquote p:last-child {
    margin-bottom: 0 !important;
  }
  
  .article-body {
    font-size: 0.95rem !important;
  }
  
  
  .article-body p {
    margin-bottom: 1rem;
  }
  
  .article-body p:last-child {
    margin-bottom: 1.2rem;
  }
  
  
  .article-container h1 {
    font-size: 1.6rem;
    margin: 0.15rem 0;
  }
  
  .article-container h2 {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  .article-container h3 {
    font-size: 1.1rem;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .poem {
    padding: 1.5rem 1rem !important;
  }

  .poem blockquote {
    margin-right: 0 !important;
    font-size: 0.95rem !important;
  }
  
  .poem footer {
    position: static !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 1rem !important;
    transform: none !important;
  }
  
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem !important;
  }
  
  table th,
  table td {
    font-size: 0.85rem !important;
    padding: 0.5rem !important;
    white-space: nowrap;
  }
  
  p, li, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .resources-boxes {
    padding: 0.8rem;
  }
  
  .resource-box {
    max-width: 100%;
    min-width: auto;
  }
  
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  img[style*="max-width: 50%"],
  img[style*="max-width:50%"] {
    max-width: 90% !important;
  }
  
  .twitter-handle {
    word-break: break-all;
  }
  
  code {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
sup {
  font-size: 0.6em;
  vertical-align: super;
}
.twitter-handle {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: #f5f5f5;
  color: #333 !important;
  text-decoration: none !important;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9em;
  border: 1px solid #ddd;
}

.twitter-handle:hover, .twitter-handle:focus {
  background: #e8e8e8;
  color: #337ab7;
  text-decoration: none;
}
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; width: 100%; max-width: 45rem; margin: 0 auto; padding: 0; }
footer { flex-shrink: 0; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
.info-box, .sidebar, .callout, .highlight, .takeaway, .warning { width: 100%; overflow-wrap: anywhere; }
.info-box { position: relative; }
.stars {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 18px;
  color: black !important;
}

.resources-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.resource-box {
  border: 1px solid #ccc;
  padding: 0.8rem;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s ease;
  flex: 0 0 auto;
  min-width: fit-content;
  max-width: 300px;
  word-wrap: break-word;
}

.resource-box:hover {
  border-color: #bbb;
}

.resource-box a {
  display: block;
  font-weight: 500;
  color: #337ab7;
  text-decoration: underline;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.resource-box a:hover {
  color: #337ab7 !important;
  text-decoration: underline !important;
}

.resource-box span {
  color: #666;
  font-size: 0.85rem;
}

.resource-box span:has(a[href*="time.com"]) {
  white-space: nowrap;
}

.collapse-content h3 {
  font-size: 1rem;
}

.collapse-content strong {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .collapse-content h3 {
    font-size: 1rem;
  }
  
  .collapse-content strong {
    font-size: 1rem;
  }
}
