:root {
    --primary-color: #121212;
    --secondary-color: #121212;
    --accent-color: #df3c32; /* Subtle red for buttons/accents if needed */
    --bg-color: #fff;
    --text-color: #121212;
    --font-heading: 'Playfair Display', 'Adobe Caslon Pro', 'Georgia', 'Times New Roman', serif;
    --font-body: 'Adobe Caslon Pro', 'Georgia', 'Times New Roman', serif;
    --font-ui: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* HEADER / MASTHEAD */
header {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #000;
    margin-bottom: 40px;
}

.masthead {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.sub-masthead {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    color: #333;
}

/* NAVIGATION-LIKE TABS */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
}

.nav-tabs a {
    text-decoration: none;
    color: #999;
    transition: color 0.2s;
}

.nav-tabs a:hover, .nav-tabs a.active {
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
}

/* CONTENT SECTIONS */
section {
    max-width: 740px; /* Typical article width */
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
}

h2 {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 50px;
    margin-bottom: 20px;
    border-top: 1px solid #000;
    padding-top: 20px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
}

.subtitle {
    text-align: center;
    font-family: var(--font-ui);
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* HIGHLIGHT BOX / QUOTE */
.highlight-box {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    text-align: center;
    margin: 50px 0;
    color: #121212;
    padding: 20px;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

/* BUTTONS */
.button {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    background-color: #fff;
    border: 1px solid #000;
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 20px;
}

.button:hover {
    background-color: #000;
    color: #fff;
}

/* STATS VISUALIZATION */
.stat-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    font-family: var(--font-ui);
}

.stat-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 200px;
}

.stat-bar {
    width: 60px;
    background-color: #000;
    margin-bottom: 10px;
    transition: height 1s ease-out;
}

.stat-bar.short {
    background-color: #999; /* Distinguish comparisons */
}

.stat-value {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #666;
    text-align: center;
}

/* FOOTER */
footer {
    border-top: 1px solid #ddd;
    margin-top: 80px;
    padding: 40px 20px;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: #666;
}

.team-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.team-list li {
    display: inline;
}

a {
    color: #121212;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* ANIMATIONS */
.step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FOR DUMMIES BRANDING */
.dummies-logo {
    display: inline-block;
    background-color: #FFD200; /* Dummies Yellow */
    color: #000;
    padding: 0 10px;
    transform: rotate(-2deg);
    margin-left: 10px;
}

.dummies-for {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.5em;
    vertical-align: middle;
    font-style: normal;
    font-weight: bold;
}

.dummies-text {
    font-family: 'Permanent Marker', cursive;
    font-style: normal;
    font-size: 1.1em;
}
.plot-wrapper {
    max-width: 900px;      /* Fit your site's column width */
    margin: 0 auto;        /* Center it */
    overflow: hidden;      /* No side scrollbars */
}

.plot-frame {
    width: 100%;           /* Shrinks automatically to wrapper */
    height: 600px;         /* Adjust as needed */
    border: none;
}
/* Make a container that breaks out of the narrow content column */
.fullwidth-plot {
    position: relative;
    width: 100vw;                     /* full browser width */
    left: 50%;
    right: 50%;
    margin-left: -50vw;               /* pulls left edge to browser edge */
    margin-right: -50vw;              /* pulls right edge to browser edge */
    padding: 0;                       /* remove theme padding */
    background: white;                /* optional, makes it seamless */
    text-align: center;
}

/* Make iframe scale correctly */
.plot-full {
    width: 100%;
    height: 650px;                    /* change height as needed */
    border: none;
}
section .fullwidth-plot {
    padding-left: 0;
    padding-right: 0;
}
/* Caption analyzer needs a bit more vertical room */
#interactive-tool .plot-full {
    height: 700px;
}
/* Wide centered plots (fits Plotly nicely) */
.centered-plot {
    max-width: 1200px;   /* ← key change */
    margin: 40px auto;
    padding: 0 20px;
}

.centered-plot .plot-full {
    width: 100%;
    height: 650px;
}
/*trial */
.article-plot {
    width: 100%;
}

.article-plot .plot-full {
    width: 100%;
    height: 700px;
}
.plot {
    width: 100%;
    margin: 40px 0;
}

.plot iframe {
    width: 100%;
    height: 480px;     
    border: none;
}
/* Caption Analyzer – contained and balanced */
.caption-analyzer {
    max-width: 740px;   /* match article width */
    margin: 0 auto;
}

.caption-analyzer .plot-full {
    height: 560px;      /* ← THIS is the key */
}
.stabilo {
    font-weight: bold;
    background: linear-gradient(
        transparent 50%,
        rgba(255, 210, 0, 0.85) 55%,
        rgba(255, 210, 0, 0.85) 85%,
        transparent 90%
    );
    padding: 0 6px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
figure img {
  width: 100%;
  height: auto;
  display: block;
}

figure figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  margin-top: 8px;
  font-family: var(--font-ui);
}
.for-dummies-logo {
  width: 150px;
  height: auto;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.for-dummies-logo:hover {
  animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-5deg); }
  50%  { transform: rotate(5deg); }
  75%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}
.horizontal-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
}

.horizontal-gallery figure {
  flex: 0 0 auto;
  width: 60vw;            /* same visual scale as quiz image */
  max-width: 60%;
  text-align: center;
}

.horizontal-gallery img {
  width: 100%;
  height: auto;
  max-height: 400px;      /* keeps them from getting too tall */
  object-fit: contain;
  cursor: pointer;
  border-radius: 8px;
}
.horizontal-gallery img:hover {
  transform: scale(1.03);
}

.horizontal-gallery figcaption {
font-family: "Playfair Display", serif;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}

/* Optional: nicer scrollbar */
.horizontal-gallery::-webkit-scrollbar {
  height: 8px;
}

.horizontal-gallery::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.flourish-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.flourish-item {
  flex: 1;
}
