/* ✨ Collapsible Summary Styling */
.styled-details summary {
  font-weight: bold;
  cursor: pointer;
  padding: 8px;
  background-color: #f1f5f9;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease-in-out;
}

.styled-details summary:hover {
  background-color: #e2e8f0;
}

.styled-details {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 20px;
  background-color: #ffffff;
}

.zoomable {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.zoomable:active {
  transform: scale(2);
  z-index: 999;
}

/* Style categories only in blog listing (cards) */
.quarto-post .listing-categories .listing-category {
  background-color: #34495e;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.85em;
  font-weight: 600;
  display: inline-block;
  margin-right: 5px;
}

table {
  border-collapse: collapse;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* optional shadow */
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

th {
  background-color: #007b5f;
  color: white;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Hover effect */
tr:hover {
  background-color: #e0f7f3;
  transition: background-color 0.3s ease;
}

/* Style TOC like the reference */

nav.toc ol {
  line-height: 1.8;         /* Increase space between TOC items */
  margin-left: 0.5rem;      /* Slight indent */
  font-size: 0.95rem;       /* Adjust text size */
}

nav.toc ul {
  padding-left: 0.5rem;     /* Optional: indent unordered list */
}

nav.toc ul li {
  margin-bottom: 0.75rem;   /* Controls spacing between list items */
}

nav.toc a {
  display: block;           /* Each item on its own line */
  line-height: 1.6;         /* Space within each item */
  padding: 0.25rem 0;       /* Extra spacing for clickable area */
}

/* Custom blockquote style */
blockquote {
  border-left: 3px solid #0d5d9b; /* Blue vertical bar */
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-weight: bold;
  color: #0d5d9b;
  background: transparent;
}

.cite-toggle {
  float: right;
  background: white;
  border: 2px solid #005493;
  color: #005493;
  padding: 0.5em 1em;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.cite-toggle:hover {
  background-color: #005493;
  color: white;
}

.cite-box {
  float: right;
  background: #f5f5f5;
  border-left: 4px solid #007b5f;
  padding: 1rem;
  max-width: 300px;
  font-size: 0.9rem;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-top: 1rem;
  clear: right;
}


.did-you-know-box {
  background-color: #a8e4f2; /* Light sky blue */
  color: #000;
  padding: 1.5rem;
  border-radius: 15px;
  max-width: 500px;
  margin: 2rem auto;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.did-you-know-box p {
  margin: 0;
}
.info-box {
  background-color: #e8f7fb; /* light sky blue */
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #111;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.info-box p {
  margin: 0;
}
.dark-tan-warning {
  background-color: #b2ebf2; /* darker shade of sky blue / teal */
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #000;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dark-tan-warning p {
  margin: 0;
}

.box-heading {
  font-weight: 700;
  font-size: 1.2rem;
  color: #007c91; /* darker teal for the heading */
  display: block;
  margin-bottom: 0.5rem;
}

.abcde-box {
  font-family: 'Poppins', sans-serif;
  max-width: 900px;
  margin: 2rem auto;
}

.abcde-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
}

.abcde-row.light {
  background-color: #f0f9f8;
}

.abcde-text {
  flex: 1;
  font-size: 1.05rem;
  color: #111;
  line-height: 1.6;
}

.abcde-letter {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0a988b;
  display: inline-block;
  width: 2rem;
}

.abcde-row img {
  width: auto;
  height: 100%;
  max-width: 150px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  align-self: stretch;
}

.did-you-know-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.did-you-know-box {
  background-color: #a5e3f0;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #111;
  max-width: 320px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.mole-image {
  width: 380px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.zoomable:active {
  transform: scale(2);
  z-index: 9999;
  position: relative;
}

.note-highlight {
  font-weight: bold;
  color: red;
}
.dropdown-menu {
  background-color: #ffffff; /* ← replace with any color you prefer */
}
.dropdown-menu a.dropdown-item {
  color: #333; /* text color */
}

.dropdown-menu a.dropdown-item:hover {
  background-color: #dce6f1; /* hover color */
  color: #000; /* hover text color */
}

table th {
  background-color: #87CEEB; /* Sky blue */
  color: black;
}
/* Box styling */
.risk-box {
  border: 1px solid #bcd;       /* soft border */
  border-radius: 6px;           /* rounded corners */
  padding: 1rem 1.2rem;
  background: #EDA8A8;          /* light blue background */
  font-size: 0.95rem;
  margin: 1rem 0;
}

/* Title styling */
.risk-box .risk-title {
  font-weight: 700 !important;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  color: orangered !important;
}

/* List spacing */
.risk-box ul {
  padding-left: 1.2rem;
  margin: 0;
}

.risk-box ul li {
  margin-bottom: 0.6rem;   /* space between bullet points */
  line-height: 1.4;        /* improve readability */
}

.risk-box ul li:last-child {
  margin-bottom: 0;        /* no extra gap at the end */
}

/* Improve readability with larger line spacing */
p, li {
  line-height: 1.7;   /* NIH-like spacing (default is ~1.4) */
  margin-bottom: 1em; /* extra space between paragraphs */
}

/* Optional: slightly wider spacing for headings */
h1, h2, h3, h4 {
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

/* ==== Category badges — Light Blue ==== */

/* In the article title block */
.quarto-title-block .quarto-categories .quarto-category,
.quarto-title .quarto-categories .quarto-category,
.quarto-listing .quarto-category,
.listing .quarto-category {
  background: #E6F0FF; */     /* light blue */
  color: #363636;            /* blue text */
  border: 1px solid #C7D6FF; /* soft blue border */
  font-weight: 600;
}

/* Hover / focus */
.quarto-title-block .quarto-categories .quarto-category:hover,
.quarto-title-block .quarto-categories .quarto-category:focus,
.quarto-listing .quarto-category:hover,
.listing .quarto-category:hover {
  background: #D6E4FF;
  color: #363636;
  border-color: #B7C9FF;
  text-decoration: none;
}
/* Page main headings (title block H1) */
.quarto-title-block .quarto-title .title,
.quarto-title-block .quarto-title h1,
.quarto-title .title {
  color: #34495e !important;
}

/* Make ALL page banners taller */
#title-block-header .quarto-title-banner {
  padding-top: 8rem !important;    /* increase these to make taller */
  padding-bottom: 8rem !important; /* try 6–10rem */
  background-size: cover !important;
  background-position: center center !important; /* or top center / bottom center */
  background-repeat: no-repeat !important;
}

/* If you only want it on the Blog page, use the page URL path selector instead: */
/* body[data-page="blog.html"] #title-block-header .quarto-title-banner { ... } */

/* One responsive grid, no horizontal scroll */

/* Grid wrapper */
.shelf{
  display: grid;
  gap: 1rem;
  align-items: start;
  overflow-x: hidden;                                   /* no horizontal scroll */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Optional tweaks per breakpoint */
@media (min-width: 480px)  { .shelf{ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
@media (min-width: 768px)  { .shelf{ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
@media (min-width: 1200px) { .shelf{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

/* Make each link act like a card */
.shelf a { display:block; text-align:center; text-decoration:none; }

/* Image look */
.book-cover{
  height:220px; width:auto; max-width:100%;
  display:block; margin:0 auto;
  border-radius:6px; box-shadow:0 2px 8px rgba(0,0,0,.08);
  transition:transform .08s ease-in-out;
}
.book-cover:hover{ transform: translateY(-2px); }


/* Never let Quarto grid panels create a horizontal scrollbar */
.grid {
  overflow-x: clip;                 /* hide any tiny overflow from rounding */
}

/* Make images fit inside their grid column */
.grid img {
  display: block;
  max-width: 100%;                  /* <= key: image can't exceed column width */
  height: auto;                     /* keep aspect ratio (option A) */
  margin: 0 auto;
}

/* If you *want* fixed height cards, use this instead of height:auto:  */
.grid .book-cover {
  height: 220px;                    /* fixed height card */
  width: 100%;                      /* fill column width without overflow */
  object-fit: contain;              /* letterbox to keep aspect */
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .08s ease-in-out;
}
.grid .book-cover:hover { transform: translateY(-2px); }

/* Turn Quarto's .grid into a wrapped bookshelf with capped card width */
.grid.books{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* auto wraps */
  gap: 16px 20px;
  justify-items: center;     /* center the card within a wide track */
  align-items: start;
  overflow-x: visible;
}

/* Cap the card width so tracks can't make thumbnails huge */
.grid.books > a,
.grid.books > div{
  display: block;
  width: 100%;
  max-width: 180px;          /* <— control thumbnail size here (160–220px works well) */
  text-align: center;
}

/* Tidy, consistent covers */
.grid.books img{
  width: 100%;
  aspect-ratio: 2 / 3;       /* consistent book shape */
  object-fit: cover;         /* or 'contain' if you prefer no cropping */
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .08s ease-in-out;
}
.grid.books img:hover{ transform: translateY(-2px); }




/* Floating SHARE box (desktop) */
.share-fab{
  position:fixed; left:16px; top:30vh;
  width:92px; padding:12px 10px 14px;
  background:#fff; border:1px solid #e5e7eb; border-radius:10px;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  z-index:1000;
}
.share-fab h4{ margin:0 0 4px; font-size:.95rem; letter-spacing:.08em; font-weight:800; }
.share-btn{
  width:42px; height:42px; display:grid; place-items:center;
  border-radius:8px; background:#f3f4f6; border:1px solid #d1d5db;
  color:#111; text-decoration:none;
  transition:transform .15s, background .15s, box-shadow .15s;
}
.share-btn:hover{ transform:translateY(-2px); background:#eef2ff; box-shadow:0 6px 12px rgba(55,48,163,.15); }
.share-btn svg{ width:22px; height:22px; fill:currentColor; }

/* Hide on small screens (we can add a mobile bar later) */
@media (max-width:992px){ .share-fab{ display:none; } }

/* Hide in print */
@media print{ .share-fab{ display:none !important; } }

/* === Slide-out behavior for the SHARE box === */
.share-fab { left: 0; }                 /* override previous left:16px */

.share-fab.share-slide{
  transform: translateX(-76px);         /* park most of the box off-screen */
  transition: transform .25s ease;
}

/* open on hover OR when toggled open via button */
.share-fab.share-slide:hover,
.share-fab.share-slide.open{
  transform: translateX(0);
}

/* The thin vertical tab that stays visible */
.share-toggle{
  position:absolute; right:-28px; top:10px;
  width:28px; height:88px; cursor:pointer;
  border:1px solid #e5e7eb; border-left:none; border-radius:0 8px 8px 0;
  background:#325d88; box-shadow:0 6px 20px rgba(0,0,0,.06);
  display:flex; align-items:center; justify-content:center;
  font-size:.72rem; font-weight:800; letter-spacing:.08em;
  writing-mode: vertical-rl; text-orientation: mixed; /* vertical “SHARE” text */
  color:#fff;
}
.share-toggle:hover{ background:#eef2ff; }

/* keyboard focus */
.share-toggle:focus-visible{
  outline:3px solid #818cf8; outline-offset:2px;
}

/* keep your existing mobile rule; the box is still hidden on small screens.
   If you want it visible on phones too, tell me and I’ll give a bottom bar. */

 /* === MOBILE VIEW (≤ 768px): show as a bottom bar === */
@media (max-width: 768px){

  /* make sure it shows (override any earlier display:none) */
  .share-fab{
    display: flex !important;
    position: fixed;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 12px;

    transform: translateX(-50%);      /* center horizontally */
    z-index: 1000;

    /* bar layout */
    width: auto;
    padding: 8px 12px;
    border-radius: 14px;
    gap: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    /* optional: subtle backdrop for readability */
    backdrop-filter: saturate(140%) blur(2px);
  }

  /* remove the slide-out behavior on mobile */
  .share-fab.share-slide{ transform: translateX(-50%); }
  .share-fab.share-slide.open{ transform: translateX(-50%); }

  /* hide the vertical “SHARE” tab and the H4 label on phones */
  .share-toggle{ display: none !important; }
  .share-fab h4{ display: none !important; }

  /* size the buttons a bit larger for thumbs */
  .share-btn{ width: 48px; height: 48px; border-radius: 12px; }
  .share-btn svg{ width: 22px; height: 22px; }
}

.muted {
  font-size: 0.9rem;       /* slightly smaller than body text */
  color: #6b7280;          /* light gray (Tailwind gray-500 tone) */
  font-style: italic;      /* italicize entire note */
  margin-top: 0.6em;       /* small spacing above */
  line-height: 1.4;
}


/* Optional: load Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');

/* Inline Fancy Quote */
.fancy-quote {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #325d88;
  text-align: center;
  border: none;
  margin: 2rem auto;
  padding: 1rem 2rem;
  max-width: 800px;
  line-height: 1.5;
  position: relative;
}

/* Inline quotation marks — perfectly aligned */
.fancy-quote::before,
.fancy-quote::after {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  color: #325d88;
  position: relative;
  top: 0.15em;
}

.fancy-quote::before {
  content: "“";
  margin-right: 0.15em; /* small space between opening quote and first letter */
}

.fancy-quote::after {
  content: "”";
  margin-left: 0.15em;  /* small space before closing quote */
}

/* Mini Quote — for smaller inline or subtle highlights */
.mini-quote {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-style: italic;
  color: #4b5563;         /* soft gray */
  text-align: center;
  padding: 0.6em 1em;
  margin: 1.5em auto;
  max-width: 700px;
  background: transparent;
  border: none;
  line-height: 1.6;
}

/* Inline quotes same line like fancy-quote */
.mini-quote::before,
.mini-quote::after {
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  color: #94a3b8;
  position: relative;
  top: 0.15em;
}

.mini-quote::before {
  content: "“";
  margin-right: 0.1em;
}

.mini-quote::after {
  content: "”";
  margin-left: 0.1em;
}


