/* === BASE COLORS & BACKGROUND === */
body {
  background-color: #121212;
  color: #f4c4eb;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  font-size: clamp(1rem, 1.2vw, 1.5rem);
}

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
  color: #ff90d6;
  margin-bottom: 0.5rem;
}

/* === LINKS === */
a {
  color: #ff9ce4;
  text-decoration: none;
}
a:hover {
  color: #ffb3ff;
  text-decoration: underline;
}

/* === CONTAINERS === */
.container {
  max-width: min(1400px, 95vw) !important;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.portfolio {
  padding: 2rem 1rem;
}
.section-title {
  margin-top: 2rem;
  color: #f4c4eb;
}
.highlight {
  color: #ff7edb;
}

/* === TABLES === */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background-color: #1e1e1e;
  color: #f4c4eb;
  margin-bottom: 2rem;
  max-width: 960px;
}

th, td {
  border: 1px solid #444;
  padding: 1rem;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
}

/* Header styles */
table th {
  background-color: #1c1c1c;
  color: #f4c4eb;
}

/* Zebra rows */
table tr:nth-child(even) {
  background-color: #1a1a1a;
}
table tr:nth-child(odd) {
  background-color: #121212;
}
tr:hover {
  background-color: #2a003f;
}

/* === Column Layout - Full Width and Clean === */
th:nth-child(1), td:nth-child(1) { width: 14%; min-width: 120px; }
th:nth-child(2), td:nth-child(2) { width: 10%; min-width: 100px; }
th:nth-child(3), td:nth-child(3) { width: 10%; min-width: 100px; }
th:nth-child(4), td:nth-child(4) {
  width: 14%;
  min-width: 120px;
  text-align: center;
}
th:nth-child(5), td:nth-child(5) {
  width: 12%;
  min-width: 100px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
th:nth-child(6), td:nth-child(6) {
  width: 40%;
  min-width: 250px;
  max-width: 600px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  white-space: normal;
}

/* Bonus: View link horizontal fix */
td:nth-child(5) a {
  writing-mode: horizontal-tb;
  display: inline-block;
}

/* === PROOF THUMBNAILS === */
td:nth-child(4) img {
  max-width: 80px;
  height: auto;
  border-radius: 0.5rem;
  display: block;
  margin: auto;
  box-shadow: 0 0 6px #e754d2;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: zoom-in;
  z-index: 1;
}
td:nth-child(4) img:hover {
  transform: scale(4);
  z-index: 100;
  position: relative;
  box-shadow: 0 0 18px #ff66c4;
}

/* === HERO BANNER === */
.hero-banner {
  background-color: #1a1a1a;
  border: 2px solid #ff66c4;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 960px;
  box-shadow: 0 0 20px #ff66c4;
  text-align: center;
  color: #f4c4eb;
}
.hero-banner img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 0 12px #ff66c4;
  margin-bottom: 1.5rem;
}
.hero-banner h2 {
  color: #ff90d6;
  margin-bottom: 0.5rem;
}
.hero-banner p {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.hero-banner .hero-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: #ffb3ff;
}
.hero-banner .hero-icons span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* === FOOTER === */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  color: #888;
  font-size: 0.9rem;
}

/* === 4K SCALING === */
@media (min-width: 2560px) {
  body {
    font-size: 18px;
  }
  td:nth-child(4) img {
    max-width: 100px;
  }
}

/* === CERTIFICATIONS GRID === */
/* responsive cert grid with smaller min track & no width cap */
.cert-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; /* down from 220px */
  gap: 1rem; /* slightly tighter gap helps fit an extra column */
  justify-items: stretch;
  margin: 2rem auto;
  width: 100%;
  max-width: none !important; /* remove the 960px choke */
}


/* let cards fill the track width instead of capping at 300px */
.cert-card{
  background-color: #1a1a1a;
  border: 2px solid #ff66c4;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 16px #ff66c4;
  transition: transform .3s ease;
  width: 100%;
  /* max-width: 300px;  <-- remove this line */
}

.cert-card:hover {
  transform: scale(1.05);
}

.cert-img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}
/* === DARK CASE STUDY READABILITY OVERRIDES === */

/* Typography & spacing */
p, li { line-height: 1.7; }
hr { border: 0; border-top: 1px solid #333; margin: 1.25rem 0; }

/* Blockquotes */
blockquote {
  background: #1a1a1a;
  border-left: 4px solid #ff66c4;
  color: #f4c4eb;
  padding: .75rem 1rem;
  margin: 1rem 0;
}

/* Inline code & kbd */
code, kbd, samp {
  background: #1e1e1e;
  color: #fbe7ff;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0 .25rem;
}

/* Code blocks (Rouge/Minima) */
pre, .highlight, .highlighter-rouge {
  background: #151515 !important;
  color: #f8e9ff !important;
  border: 1px solid #333;
  border-radius: 8px;
  padding: .85rem 1rem;
  overflow: auto;
}
pre code { background: transparent; border: 0; padding: 0; }

/* Rouge token colors (dark theme) */
.highlight .c    { color:#b08fb9; font-style: italic; } /* comments */
.highlight .k    { color:#ff66c4; }                    /* keywords */
.highlight .o    { color:#ff9ce4; }                    /* operators */
.highlight .s,
.highlight .s1,
.highlight .s2   { color:#ffd479; }                    /* strings */
.highlight .m    { color:#9ecbff; }                    /* numbers */
.highlight .na,
.highlight .nb,
.highlight .bp   { color:#c0e6ff; }                    /* names/builtins */
.highlight .nf,
.highlight .nt   { color:#9effa1; }                    /* functions/tags */
.highlight .err  { color:#ff7b72; background:#2a000e; }/* errors */

/* Tables in reports */
.markdown-body table,
article table {
  border-collapse: collapse;
  width: 100%;
  background: #1a1a1a;
  color: #f4c4eb;
}
article th, article td,
.markdown-body th, .markdown-body td {
  border: 1px solid #333;
  padding: .6rem .75rem;
}

/* Optional: widen Minima content wrapper on case-study pages */
main .wrapper { max-width: 1100px; }

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #1a1a1a;
  color: #ff99ff;
  border: 1px solid #ff66c4;
}
/* Pink glow for any finished state */
.status-pill.status-completed,
.status.completed,
.status.done,
.status-pill.status-done {
  box-shadow: 0 0 6px rgba(255, 102, 196, 0.9);
}
/* === Seasonal expandable (SOC-mas details) === */
.seasonal-expand{
  max-width: 960px;
  width: 100%;
  margin: 0 auto 2rem; /* tucks it closer to the table */
  padding-left: 0;
  padding-right: 0;
}

.seasonal-details{
  background: #1a1a1a;
  border: 1px solid #ff66c4;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255,102,196,.35);
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

.seasonal-summary{
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #f4c4eb;
}

.seasonal-summary::-webkit-details-marker{ display:none; }

.seasonal-summary-title{
  font-weight: 700;
  color: #ff90d6;
}

.seasonal-summary-hint{
  font-size: 0.9rem;
  color: #ffb3ff;
  border: 1px solid #ff66c4;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  box-shadow: 0 0 6px rgba(255,102,196,.35);
}

.seasonal-details[open] .seasonal-summary-hint{
  opacity: 0.9;
}

.seasonal-details-body{
  padding: 0 1rem 1rem;
  color: #f4c4eb;
}

.seasonal-details-body p{
  margin: 0.75rem 0;
}

.seasonal-details-body ul{
  margin: 0.5rem 0 0.75rem 1.1rem;
}

.seasonal-mini-note{
  font-size: 0.95rem;
  color: #ffb3ff;
  margin-top: 0.75rem;
}

.seasonal-proof-row{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.seasonal-proof-link{
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #ff66c4;
  background: #121212;
  color: #ff9ce4;
  box-shadow: 0 0 8px rgba(255,102,196,.35);
}

.seasonal-proof-link:hover{
  color: #ffb3ff;
  text-decoration: none;
}

.seasonal-proof-thumb{
  max-height: 60px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255,102,196,.35);
}
.seasonal-summary-sub{
  font-weight: 400;
  opacity: 0.85;
  color: #ffb3ff;
  margin-left: 6px;
  font-size: 0.95em;
}
