/*
Theme Name: rnjnsn-theme
Theme URI: rnjnsn.com
Description: A theme for my personal website
Version: 1.0
Author: rnjnsn
Author URI: rnjnsn.com
*/

/* Heading hierarchy following best practices */

/* ===========================
   Job Ad Container Styling
   =========================== */

/* ===========================
   Job Application Box Styling
   =========================== */

.job-app {
  font-family: 'Calibre', sans-serif;
  background-color: #fafafa; /* soft off-white */
  border: 1px solid #e8e8e8; /* subtle border */
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 45.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* light shadow for depth */
}

.job-app * {
  color: #000 !important;
}

.job-app h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #000;
  margin-block-start: 0;
  margin-block-end: 1rem;
  line-height: 1.2;
}

.job-app h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #000;
  margin-block-start: 1.5rem;
  margin-block-end: 0.75rem;
  line-height: 1.3;
}

.job-app h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-block-start: 1.25rem;
  margin-block-end: 0.5rem;
}

.job-app p {
  color: #000;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.job-app ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.job-app li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #000;
}

.job-app strong {
  font-weight: 600;
  color: #000;
}

.job-app em,
.job-app i {
  font-style: italic;
  color: #555;
}

h1 {
  font-family: 'Calibre';
  font-size: 3.2rem;
  line-height: 1.11;
  font-weight: 600;
  color: var(--title-text-color);
  margin-block-start: 0;
  margin-block-end: 1rem;
}

h2 {
  font-family: 'Calibre';
  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--title-text-color);
  margin-block-start: 0;
  margin-block-end: 0.5rem;
}

h3 {
  font-family: 'Calibre';
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--title-text-color);
  margin-block-start: 0;
  margin-block-end: 0.5rem;
}

h4 {
  font-family: 'Calibre';
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--title-text-color);
  margin-block-start: 0;
  margin-block-end: 0.5rem;
}

h5 {
  font-family: 'Calibre';
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--title-text-color);
  margin-block-start: 0;
  margin-block-end: 0.5rem;
}

h6 {
  font-family: 'Calibre';
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--title-text-color);
  margin-block-start: 0;
  margin-block-end: 0.5rem;
}

/* Yellow checklist styling for desiderata */
#desiderata {
  list-style: none;
  padding: 1.5rem;
  background-color: #3d3416;
  border: 2px solid #4a4018;
  border-radius: 8px;
}

#desiderata li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  color: #f5f5f5;
}

#desiderata li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #5a4f1e;
  color: #ffd700;
  border: 2px solid #6b5e28;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

#desiderata li:last-child {
  margin-bottom: 0;
}

/* Nested lists styling - inherit color only, no checkbox */
#desiderata ul {
  list-style: disc;
  padding-left: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

#desiderata ul li {
  position: static;
  padding-left: 0;
  margin-bottom: 0.5rem;
  color: #f5f5f5;
}

#desiderata ul li::before {
  content: none;
}
/* ===========================
   Shared Section Style
   (CV and Job Ad look identical)
   =========================== */

/* Only apply these overrides to direct case-navigator elements, not nested blocks */
.case-navigator > p,
.case-navigator > ul > li {
  color: #000!important;
}

.case-navigator > ul > li {
  margin: 0px!important;
  padding: 0px!important;
}

.output-sections .output-section:first-child {
  margin-top: 8px; /* or whatever you need */
}

.resume-section,
.job-ad-text {
  background: #ffffff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Headings inside both */
.resume-section h2,
.resume-section h3,
.job-ad h2,
.job-ad h3 {
  color: #000;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Paragraph text */
.resume-section p,
.job-ad p {
  color: #000!important;
  margin-bottom: 0.75rem;
}

/* Lists */
.resume-section ul,
.job-ad ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.resume-section li,
.job-ad li {
  margin-bottom: 0.4rem;
}

.professional-summary {
  padding: 0px!important;
}

/* ===========================
   CV-specific (still used)
   =========================== */
.section-title {
  font-size: 2.25rem;
  color: #000;
  margin-bottom: 0.75rem;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
}

.section-text {
  margin-bottom: 0.75rem;
}

.experience-item .job-title {
  font-weight: 600;
}

/* ===========================
   Job Ad specific
   (inherits all from resume-section, just small tweaks)
   =========================== */
.job-ad .job-meta {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

.hidden-resp {
  display: none;
}

.hidden-resp.show {
  display: list-item;
}

/* ===== Toggle Read More / Less ===== */
.toggle-resp-btn,
.job-ad-toggle {
  display: inline-block;
  margin-top: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  padding: 0;
  color: #0066cc;
}

.toggle-resp-btn:hover,
.job-ad-toggle:hover {
  color: #0d2f55;
  text-decoration: none;
}

/* # LINKS */
a {
  font-family: 'Calibre';
  font-weight: 600;
  color: var(--link-text-color);
  text-decoration-color: #696969;
}

.node-name {
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--entry-background);
  color: var(--main-text-color);
  font-family: 'Calibre', monospace;
  font-weight: 500;
}

.page {
  padding: 0;
  height: 100%;
  margin-left: 76.2px;
  width: calc(100% - 76.2px);
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 45.5rem;
  margin: 3.5rem auto auto auto;
}

.content-intro {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 45.5rem;
  margin: 0 auto;
}

.title {
  text-align: left;
  color: var(--title-text-color);
  font-family: 'Calibre';
  font-size: 3.2rem;
  line-height: 1.11;
  font-weight: 600;
}

.subtitle {
  font-family: 'Calibre';
  font-size: 2rem;
  font-weight: 600;
  color: var(--subtitle-text-color);
}

.list-resources {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.list-resources p {
  margin: 0 auto;
  width: 45.5rem;
  font-family: 'Calibre';
  text-align: left;
  font-size: 2.0rem;
  font-weight: 600;
  letter-spacing: 0.03rem;
  margin-bottom: 0px;
  color: rgba(256,256,256);
}

.section-heading {
  margin: 0 auto;
  width: 45.5rem;
  font-family: 'Calibre';
  text-align: left;
  font-size: 2.0rem;
  font-weight: 600;
  letter-spacing: 0.03rem;
  margin-bottom: 0px;
  color: var(--title-text-color);
}

.main-content p {
  color: var(--main-text-color);
  font-family: 'Calibre';
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.7rem;
  margin-top: 0rem;
  margin-bottom: 0rem;
}

.bio-intro {
  display: flex;
  flex-direction: column;
}

.attachment-post-thumbnail {
  margin: 1rem auto;
  max-width: 1024px;
  height: auto;
  border-radius: 2%;
  aspect-ratio: 1.5;
  width: 92%;
  z-index: 99;
}

/* # NOTES */

.note-wrapper {
  display: table;
  margin: 0 auto;
  width: 45.5rem;
  background: var(--table-body);
  border: 4px solid var(--table-head);
  border-radius: 24px;
}

.note {
  margin: 0 auto;
  width: 100%;
  border-spacing: 0px;
  background: var(--table-body);
}

.note p {
  width: 92%;
  padding-top: 2.5rem;
}

.note h2 {
  font-weight: 600;
  color: var(--table-head-title-color);
}

.note-heading-sec {
  padding: 8px 24px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  background: var(--table-head);
  color: var(--table-head-title-color);
}

/* ===========================
   JOB AD BLOCK STYLING
   =========================== */

#jobAdBlock {
  font-family: 'Calibre', sans-serif;
  font-size: 11pt;
  line-height: 1.4;
  color: black;
  background: white;
  white-space: normal;
  word-break: break-word;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 1.5rem;
}

#jobAdBlock * {
  color: black !important;
}

#jobAdBlock h2 {
  font-family: 'Calibre', sans-serif;
  font-weight: 700;
  font-size: 13pt;
  margin: 6mm 0 4mm 0;
  padding-bottom: 1.5mm;
  border-bottom: 0.5pt solid #ddd;
}

#jobAdBlock h3 {
  font-family: 'Calibre', sans-serif;
  font-weight: 700;
  font-size: 11.5pt;
  margin: 5mm 0 1.5mm 0;
}

#jobAdBlock h3:first-child {
  margin-top: 0;
}

#jobAdBlock h4 {
  font-family: 'Calibre', sans-serif;
  font-weight: 600;
  font-size: 10.5pt;
  margin: 0 0 1mm 0;
  color: #333;
}

#jobAdBlock p {
  margin: 4mm 0;
  text-align: justify;
  line-height: 1.4;
}

#jobAdBlock ul {
  margin: 4mm 0;
  padding-left: 6mm;
}

#jobAdBlock li {
  margin: 1.5mm 0;
  padding-left: 1em;
  text-align: justify;
}

#jobAdBlock strong {
  font-weight: 600;
}

#jobAdBlock i,
#jobAdBlock em {
  font-style: italic;
}

#jobAdBlock a {
  color: black;
  text-decoration: none;
}

#jobAdBlock a:hover {
  text-decoration: underline;
}

/* ===========================
   CV BLOCK STYLING
   =========================== */

#cvBlock {
  font-family: 'Calibre', sans-serif;
  font-size: 11pt;
  line-height: 1.4;
  color: black;
  background: white;
  white-space: normal;
  word-break: break-word;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 1.5rem;
}

#cvBlock * {
  color: black !important;
}

#cvBlock h2 {
  font-family: 'Calibre', sans-serif;
  font-weight: 700;
  font-size: 13pt;
  margin: 6mm 0 4mm 0;
  padding-bottom: 1.5mm;
  border-bottom: 0.5pt solid #ddd;
}

#cvBlock h3 {
  font-family: 'Calibre', sans-serif;
  font-weight: 700;
  font-size: 11.5pt;
  margin: 5mm 0 1.5mm 0;
}

#cvBlock h3:first-child {
  margin-top: 0;
}

#cvBlock h4 {
  font-family: 'Calibre', sans-serif;
  font-weight: 600;
  font-size: 10.5pt;
  margin: 0 0 1mm 0;
  color: #333;
}

#cvBlock p {
  margin: 4mm 0;
  text-align: justify;
  line-height: 1.4;
}

#cvBlock ul {
  margin: 4mm 0;
  padding-left: 6mm;
}

#cvBlock li {
  margin: 1.5mm 0;
  padding-left: 1em;
  text-align: justify;
}

#cvBlock strong {
  font-weight: 600;
}

#cvBlock i,
#cvBlock em {
  font-style: italic;
}

#cvBlock a {
  color: black;
  text-decoration: none;
}

#cvBlock a:hover {
  text-decoration: underline;
}

#cvBlock section {
  padding: 0;
  margin: 0;
}

/* Three-column layout for skills lists in CV */
ul.skills-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem 1rem;
  padding-left: 0;
  list-style-position: inside;
}

ul.skills-list li {
  margin-bottom: 0.25rem;
  padding-left: 0;
}

/* ===========================
   APPLICATION BLOCK STYLING
   =========================== */

#applicationBlock {
  font-family: 'Calibre', sans-serif;
  font-size: 11pt;
  line-height: 1.3;
  color: black;
  background: white;
  white-space: normal;
  word-break: break-word;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 1.5rem;
}

#applicationBlock * {
  color: black !important;
}

#applicationBlock h2 {
  font-family: 'Calibre', sans-serif;
  font-weight: 700;
  font-size: 13pt;
  margin: 6mm 0 4mm 0;
  padding-bottom: 1.5mm;
  border-bottom: 0.5pt solid #ddd;
}

#applicationBlock h3 {
  font-family: 'Calibre', sans-serif;
  font-weight: 700;
  font-size: 11.5pt;
  margin: 5mm 0 1.5mm 0;
}

#applicationBlock h3:first-child {
  margin-top: 0;
}

#applicationBlock h4 {
  font-family: 'Calibre', sans-serif;
  font-weight: 600;
  font-size: 10.5pt;
  margin: 0 0 1mm 0;
  color: #333;
}

#applicationBlock p {
  margin: 4mm 0;
  text-align: justify;
  line-height: 1.3;
}

#applicationBlock ul {
  margin: 4mm 0;
  padding-left: 8mm;
}

#applicationBlock li {
  margin: 1.2mm 0;
  padding-left: 1em;
  text-indent: -1em;
  text-align: justify;
}

#applicationBlock strong {
  font-weight: 600;
}

#applicationBlock i,
#applicationBlock em {
  font-family: 'Calibre', sans-serif;
  font-style: italic;
  color: #555;
  font-size: 10pt;
}

#applicationBlock a {
  color: black;
  text-decoration: none;
}

#applicationBlock a:hover {
  text-decoration: underline;
}

#applicationBlock section {
  padding: 0;
  margin: 0;
}

@media only screen and (max-width: 64rem) {
  .attachment-post-thumbnail {
    width: 92%;
  }
}

@media only screen and (max-width: 53.5em) {
  .content-intro {
    width: 100%;
  }

  .section-heading {
    width: 100%;
  }

  .airtable-embed {
    margin: 0 auto;
    width: 100%;
  }

  .list-resources p {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  /* Mobile heading adjustments */
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  h3 {
    font-size: 1.6rem;
  }
  
  h4 {
    font-size: 1.4rem;
  }
  
  h5 {
    font-size: 1.2rem;
  }
  
  h6 {
    font-size: 1.1rem;
  }

  .sidenav-menu {
    margin-top: 0rem;
  }

  .theme-switch-wrapper {
    display: none;
  }

  .table-wrapper {
    width: 100%;
  }

  .page {
    margin-left: 0;
    width: 100%;
  }

  .post-title {
    text-align: left;
    color: #fff;
    font-family: 'Calibre';
    font-size: 2.3rem;
    line-height: 1.11;
    font-weight: 600;
  }

  .sidenav {
    padding: 0.35rem;
    width: 92%;
    position: relative;
    margin: 2em auto 0;
    border-radius: 16px;
    border-right: none !important;
  }

  .sidenav ul {
    display: flex;
    justify-content: center;
    gap: 5.5rem;
  }

  .sidenav ul li {
    padding-bottom: 0px;
    display: inline-block;
  }

  #logo-container {
    display: none;
  }

  .post-header {
    width: 92%;
    margin-top: 20px;
  }

  .main-content {
    width: 92%;
    min-width: 0px;
  }

  .note {
    width: 100%;
  }

  .note p {
    width: 92%;
  }

  .attachment-post-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 0px;
  }

  .footer {
    width: 92%;
    min-width: 0%;
    margin: 0 auto;
  }

  #logo-footer {
    text-align: center;
  }
}

.achievement {
  font-family: 'Calibre';
  padding: 1.5rem;
  background-color: var(--entry-background);
  border: 1px solid var(--entry-border-color);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.achievement-header {
  margin-bottom: 1rem;
}

.achievement-title {
  font-family: 'Calibre';
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--title-text-color);
  margin: 0 0 0.5rem 0;
}

.achievement-context {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.metric {
  padding: 1rem;
  background-color: var(--table-body);
  border-radius: 6px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--title-text-color);
  margin: 0;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--subtitle-text-color);
  margin: 0.25rem 0 0 0;
}

.description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--main-text-color);
  margin: 0;
}

/* # CASE NAVIGATOR */

.case-navigator {
  font-family: 'Calibre';
  padding: 1.5rem;
  background-color: var(--entry-background);
  border: 1px solid var(--entry-border-color);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.case-counter {
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 4px;
  background-color: var(--table-body);
  color: var(--title-text-color);
  font-family: 'Calibre';
  font-weight: 500;
  font-size: 1.1rem;
}

.nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  background-color: var(--table-body);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Calibre';
  font-weight: 500;
  color: var(--main-text-color);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn:hover {
  background-color: var(--table-head);
  color: var(--title-text-color);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-btn:disabled:hover {
  background-color: var(--table-body);
  color: var(--main-text-color);
}

.case-content {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.case-title {
  font-family: 'Calibre';
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--title-text-color);
  margin-block-start: 0;
  margin-block-end: 0.5rem;
}

.case-description {
  color: var(--main-text-color);
  font-family: 'Calibre';
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.7rem;
  margin-bottom: 2rem;
  background-color: var(--table-body);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--link-text-color);
}

.output-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.output-section {
  background-color: transparent;
  border: none;
  border-radius: 8px;
  overflow: visible;
}

.section-header {
  padding: 8px 24px;
  background: var(--table-head);
  color: var(--table-head-title-color);
  font-family: 'Calibre';
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

.section-content {
  padding: 1.5rem;
  background-color: transparent;
}

.cv-preview, 
.application-preview {
  background-color: var(--table-body);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 4px;
  min-height: 120px;
  color: var(--main-text-color);
  font-family: 'Calibre';
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.7rem;
}

.document-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  color: var(--subtitle-text-color);
  font-style: italic;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.05) 10px,
    rgba(255,255,255,0.05) 20px
  );
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-top: 1rem;
  font-family: 'Calibre';
}

/* Case navigator mobile responsiveness */
@media screen and (max-width: 600px) {
  .nav-controls {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .case-title {
    font-size: 1.6rem;
  }
}
