
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: 700px;
  margin: 0 auto;
  padding: 1rem 2rem 2rem 2rem;
  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.4em;
  margin-bottom: 1em;
}

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: #1772d0;
  text-decoration: underline;
  text-decoration-color: #1772d0;
  transition: all 0.2s ease;
}

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

a[style*="color: #1772d0"]:hover {
  color: #1772d0 !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;
}
.collapsible {
  background-color: #f8f8f8;
  cursor: pointer;
  padding: 1.2rem 2.5rem 1.2rem 0.8rem;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1rem;
  font-family: 'Iowan Old Style', Georgia, serif;
  transition: 0.4s;
  border-radius: 0; border-bottom: 1px solid #e5e5e5;
  margin-bottom: 0;
  color: #333;
  position: relative;
}

.collapsible:after {
  content: '+';
  position: absolute;
  right: 0.8rem;
  color: #777;
  font-size: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

.active-collapse, .collapsible:hover {
  background-color: #eee;
}

.active-collapse:after {
  content: '−';
}

.active-collapse + .collapse-content {
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.8rem;
}

.collapse-content {
  padding: 0 0.8rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f8f8f8;
  font-family: 'Iowan Old Style', Georgia, serif;
  margin-bottom: 0;
}

.collapse-content p:last-child,
.collapse-content ul:last-child {
  margin-bottom: 0.5rem;
}
.topnav {
  list-style-type: none;
  margin: 0 0 1.2rem 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: #1772d0;
  border-bottom: 2px solid #1772d0;
}

.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;
  }
  
  /* Hide curly back arrow on mobile to prevent emoji display */
  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;
  }
  
  /* Fix blockquotes on mobile */
  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;
  }
  
  /* Fix centered blockquotes (like Arabic text) */
  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;
  }
  
  /* Override inline font sizes on blockquotes */
  blockquote[style*="font-size"] {
    font-size: 1rem !important;
  }
  
  /* Make tables responsive and smaller on mobile */
  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;
  }
  
  /* Specific column width adjustments for ROI tables */
  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;
  }
  
  /* Mobile formatting for comparison tables in liquidation-event.html */
  table tbody td[style*="vertical-align: top"] {
    font-size: 0.58rem !important;
    line-height: 1.4 !important;
  }
  
  /* Mobile formatting for compound growth calculator in decades-not-days.html */
  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.2rem;
  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: #1772d0 !important;
  text-decoration: underline !important;
  text-decoration-color: #1772d0 !important;
}

.encyclopedia-link:hover {
  color: #1772d0 !important;
  text-decoration: underline !important;
  text-decoration-color: #1772d0 !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;
}
@media (max-width: 768px) {
  .encyclopedia-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
  }
  
  .encyclopedia-section {
    padding: 1rem;
  }
  
  .collapsible { 
    position: relative; 
    padding-right: 3rem !important; 
    padding-left: 0.5rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .collapsible:after { 
    content: '+'; 
    position: absolute; 
    right: 0.5rem; 
    color: #777; 
    font-size: 1.2rem; 
    top: 50%; 
    transform: translateY(-50%);
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
  }
  
  .active-collapse:after { content: '−'; }
  
  .active-collapse + .collapse-content { 
    padding: 1rem 0.8rem 1.5rem; 
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    background: #fafafa;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
}
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; }
.active-collapse { color: #222; }
.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;
}

.callout p:last-child, .info-box p:last-child, .highlight p:last-child, .takeaway p:last-child, .warning p: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 {
  background: #f8f8f8;
  color: #333;
  padding: 1rem;
  margin: 0.2rem 0 0.8rem 0;
  border-radius: 4px;
  border-left: 4px solid #6c757d;
}

.info-box::before {
  content: "";
}
.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;
}

/* Related section links - make them normal size */
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: 0.1rem 0 0.6rem 0;
    padding: 0.6rem !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;
  }
  
  .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;
  }
  
  /* Fix poem layout on mobile */
  .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;
  }
  
  /* Make tables scrollable on mobile */
  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;
  }
  
  /* Prevent long words from breaking layout */
  p, li, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Fix resource boxes on mobile */
  .resources-boxes {
    padding: 0.8rem;
  }
  
  .resource-box {
    max-width: 100%;
    min-width: auto;
  }
  
  /* Ensure images scale properly on mobile */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Override small image widths on mobile */
  img[style*="max-width: 50%"],
  img[style*="max-width:50%"] {
    max-width: 90% !important;
  }
  
  /* Fix Twitter handles on mobile */
  .twitter-handle {
    word-break: break-all;
  }
  
  /* Fix code blocks on mobile */
  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: #1772d0;
  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: 800px; margin: 0 auto; padding: 2rem; }
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 styling */
.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: #1772d0;
  text-decoration: underline;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

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

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

/* Prevent wrapping within parentheses for photo links */
.resource-box span:has(a[href*="time.com"]) {
  white-space: nowrap;
}

/* Make all subtitle sizes consistent in Why? section - same as body text */
.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;
  }
}
