/* ══════════════════════════════════════
   cernhome.css
   ITE170 · c0derLab Module 02
   CERN Refresher Site
   ══════════════════════════════════════ */

/* ── Variables ── */
:root {
    --nvcc-green: #1E5631;
    --nvcc-green-mid: #2D7A4B;
    --nvcc-green-light: #E8F5ED;
    --nvcc-gold: #C9A227;
    --nvcc-gold-pale: #FDF6E0;
    --charcoal: #2C2C2C;
    --slate: #494F55;
    --grey-mid: #6B7280;
    --grey-light: #D1D5DB;
    --off-white: #FAFAFA;
    --accent-purple: #5b0b8a;
    --accent-garnet: #ad2831;
    --accent-darkred: #6b1520;
    --accent-navy: #01497c;
    --accent-teal: #1a5276;
    --accent-olive: #688429;
    --nova-green-dark: #14662f;
    --font-heading: 'Bitter', Georgia, serif;
    --font-body: 'Raleway', sans-serif;
    --font-code: 'Fira Code', monospace;
}

/* ── Pico CSS Resets ── */
.nav-links, .nav-links li,
.sitemap-links, .sitemap-links li,
.res-group ul, .res-group ul li,
.chapter-list, .chapter-list li {
    list-style: none;
    padding: 0;
    margin: 0;
}
nav ul, nav li { padding: 0; margin: 0; }

/* ── Base ── */
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--off-white);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
a { color: var(--nvcc-green-mid); }
a:hover { color: var(--nvcc-green); }

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--nvcc-gold);
    color: var(--charcoal);
    padding: 0.5em 1em;
    font-weight: 600;
    z-index: 999;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* ── Top Stripe ── */
.top-stripe {
    height: 6px;
    background: linear-gradient(90deg, var(--nvcc-green) 40%, var(--nvcc-gold) 40%);
}

/* ── Header ── */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--nvcc-gold);
    padding: 0.75rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.site-header .header-logo img { max-height: 52px; width: auto; }

/* Course Tag */
.course-tag {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--slate);
    margin-right: 1.5rem;
}
.course-tag .course-code { font-weight: 700; color: var(--charcoal); }
.course-tag .divider { color: #ccc; margin: 0 0.35em; }

/* ── Nav ── */
.site-nav {
    background: var(--nvcc-green);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
}
.nav-links li a {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    /*padding: 0.75rem 1rem;*/
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.nav-links li a:hover,
.nav-links li a:focus {
    color: #fff;
    /*background: rgba(255,255,255,0.1);*/
    border-bottom-color: var(--nvcc-gold);
}
.nav-links li a.active {
    color: #fff;
    border-bottom-color: var(--nvcc-gold);
    background: rgba(0,0,0,0.15);
}

/***
PICO Hover fix 
Match theme
***/
/* Streamlined Nav Hover */
.nav-links li a {
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.nav-links li a:hover,
.nav-links li a:focus {
    background-color: rgba(255, 255, 255, 0.15); /* Subtler than default Pico */
    /*color: #fff;*/
   /* border-radius: 4px;  Optional: rounds the hover highlight */
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5em 1em;
    cursor: pointer;
    margin: 0.5rem 0;
    border-radius: 3px;
}

#site-nav-two{
  background: linear-gradient(90deg,
    #E0E1DD 59%,
    /*#a8c5b5 15%,*/
    /*#2d7a5a 70%,*/
    /*#1a4731 75%,*/
    /*#0f2d1e 100%*/
   var(--nvcc-gold-pale) 63%,
    var(--nvcc-gold) 100%
  );
}   

#nav-menu-two li {
/*background-color: #e9edc9;*/
background: transparent;
padding-left:1.25rem;
}

#nav-menu-one li a{
    padding-left: 1.5rem;
     padding-right: 1.5rem;
}
#nav-menu-two li a {
color: #2c2c2c;
}

#nav-main-ref--txt{
    
}
/* ══════════════════════════════════════
   CONTENT GRID
   ══════════════════════════════════════ */
/*.content-grid {
    display: flexbox;*/
    /*grid-template-columns: 1fr 1fr 1fr 1fr;*/
    /*grid-template-columns: 2fr 1fr;
    grid-row: 2 / span 2;
     gap: 2rem;
    margin-top: 1.75rem;
    align-items: start;
}*/

.content-grid {
/*display: grid;*/
display: flexbox;
    grid-template-columns: 1fr 1fr; /* Default mobile-first stack */
    gap: 2rem;
      grid-row: 2 / span 2;
    margin-top: 1.75rem;
    align-items: start;
}


/* --- CONTENT GRID FIX --- */

/* ── Cell Labels ── */
/*.cell-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nvcc-green);
    margin-bottom: 0.6rem;
    padding-bottom: 0.35rem;
    border-bottom: 2.05px solid #595959;
}*/

.cell-label {
font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nvcc-green);
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--slate);
}
.cell-label i { margin-right: 0.3rem; opacity: 0.8; }
.cell-label--no-border {
    border-bottom: none;
    padding-bottom: 0;
    color: var(--charcoal);
}

/* ── Video — col 1-2, rows 1-3 ── */
.cell-video {
    grid-column: 1 /  2 ;
    /*grid-row: 1 / 4;*/
      grid-row: 2 / auto;
    display: flex;
    flex-direction: column;
}
.video-wrapper {
    position: relative;
    flex: 1;
    min-height: 300px;
    overflow: hidden;
    background: var(--charcoal);
    border: 2px solid var(--grey-light);
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.video-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--grey-mid);
    font-family: var(--font-code);
}
.video-placeholder i { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--nvcc-gold); }
.video-desc {
    font-size: 0.75rem;
    margin-top: 0.35rem;
    text-align: center;
    padding: 0 1.5rem;
    line-height: 1.5;
}

/* ── Reference Website — col 3-4, row 1 ── */
.cell-reference { grid-column: 3 / 5; grid-row: 1 / 2; }
.cell-reference .ref-box {
    border: 1px solid var(--grey-light);
    border-left: none;
    border-bottom: 2.05px solid rgba(91, 11, 138, 0.7);
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cell-reference .ref-box a.ref-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-decoration: none;
}
.cell-reference .ref-box a.ref-title:hover { text-decoration: underline; }
.ref-context {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.65;
}

.cell-reference  a.ref-title:hover { text-decoration: underline; }
.ref-context {
    margin-top: 0.5rem;
}

.ref-box {
  margin-top: 3rem;
    /*margin-bottom: 3rem;*/
}

/* ── Downloads — col 3-4, row 2 ── */
.cell-downloads {
display: grid;
grid-template-columns: fit-content(auto);
grid-template-rows: fit-content(auto);
    }
/*.cell-downloads { 
    grid-column: 1 / span 2; 
     grid-row: 2 / span 3;
    }*/

.cell-downloads { 
   margin-top: 1rem;

    }

.dl-cards { display: flex; gap: 0.5rem; }

#card-student-files article{
    background-color: rgb(251, 251.5, 252.25);
    min-width:fit-content;
}
.dl-card {
    flex: 1;
    display: block;
    /*background: #fff;*/
    border: 1px solid var(--grey-light);
    border-left: 5px solid var(--accent-garnet);
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.6rem;
    text-decoration: none;
    color: var(--charcoal);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dl-card:hover {
    border-color: var(--accent-garnet);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--charcoal);
}
.dl-card strong { display: block; font-size: 0.95rem; color: var(--accent-navy); font-weight: 700; }
.dl-card span { font-size: 0.8rem; color: var(--slate); }


/*style="flex: 1 1 100%; border-left: 5px solid var(--accent-purple);*/
#card-webpage-readme--txt,
#card-student-cernsite--txt,
#card-student-files--txt{
    font-weight: bolder;
}


#archive-student-cernsite,
#archive-webpages{
    font-family: 'Nixie One', serif;
    font-weight: 600;
  
}

#readme-card-heading{
    margin-top: 1.5rem; 
    /*border-bottom: 2.05px solid #595959; */
    padding-bottom: 0.35rem
}
#webpage-readme--txt{
    font-family: 'Nixie One', serif;
    font-weight: 500;
    font-size: large;
   
}

/* ── Project Directory — col 3-4, row 3 ── */
/*.cell-projdir { grid-column: 3 / 5; grid-row: 3 / 4; }*/
.cell-projdir { grid-column: 3 / 5; grid-row: 2 / 3; }

/* Callout box */
.callout-box {
    background: var(--off-white);
    border-left: 5px solid #636c77;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
}

.callout-box {
    margin-top: auto; /* Pushes Reminder and Tip to the bottom */
    /*padding-top: 2rem;  Adds breathing room */
}
.callout-reminder { margin: 0 0 0.5rem; }
.callout-tip {
    margin: 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 0.5rem;
}
.callout-reminder-label { color: #9e2b6e; }
.callout-tip-label { color: #1a5276; }
.callout-tip-text { color: #1a5276; }
.callout-body { color: #1e1e2e; }
.callout-icon { vertical-align: -2px; margin-right: 0.3rem; }

/* Project Directory heading */
.projdir-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    /*margin: 0 0 0.4rem;*/
    margin-top: -6.5rem;

}

/* Directory tree */
.projdir-graphic {
    background: var(--charcoal);
    color: #E5E7EB;
    font-family: var(--font-code);
    font-size: 11px;
    line-height: 1.8;
    padding: 0.75rem;
    border-left: 5px solid var(--nova-green-dark);
    white-space: pre;
    overflow-x:hidden;
    /*overflow-x: auto;*/
}

/* Directory tree color classes */
.dir-gold  { color: #c9a227; }
.dir-yellow { color: #fcf6bd; }
.dir-blue  { color: #64b5f6; }
.dir-lightblue { color: #a6e1fa; }
.dir-cyan  { color: #66d9ef; }
.dir-purple { color: #b8b8ff; }
.dir-green { color: #80ed99; }
.dir-lime  { color: #e9ff70; }
.dir-kbd {
    color: #fff;
    background: rgba(255,255,255,0.15);
    padding: 0.1em 0.3em;
    border-radius: 2px;
}

/* ══════════════════════════════════════
   READING SECTION
   ══════════════════════════════════════ */
.reading-section { 
    margin-top: 1rem; 
    padding-top: 1.75rem;
}

.reading-section{
    display: inline-block;
    border-top: 2px solid var(--grey-light);
}

.reading-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.res-group { margin-bottom: 0.75rem; }

.res-group-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nvcc-green);
    border-bottom: 2.05px solid #595959;
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
}
.res-group ul li { padding: 0.3rem 0; font-size: 0.95rem; line-height: 1.4; }
.fcc-brand { color: #aaaaaa; }
.res-group li a { text-decoration: none; color: #01497c; font-weight: 600; }
.res-group li a:hover { text-decoration: underline; color: var(--nvcc-green); }
.res-note { display: block; font-size: 0.85rem; color: #333533; line-height: 1.4; margin-top: 0.1rem; }

/* Chapter list (nested under O'Reilly link) */
/*.chapter-list { list-style: disc !important; margin: 0.3rem 0 0 1.25rem !important; }*/
.chapter-list { list-style: none; }
.chapter-list li { font-size: 0.85rem; color: #333533; padding: 0.15rem 0; }

/* ── Accent Stripe ── */
.accent-stripe {
    height: 3px;
    background: linear-gradient(90deg, var(--nvcc-gold) 60%, var(--nvcc-green-mid) 60%);
    margin-top: 2rem;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: 1.5rem 0 1rem;
}
.footer-sitemap-wrap {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem 1.75rem;
    /*padding: 1.5rem 0;*/
    margin-bottom: 1.25rem;
}
.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.sitemap-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--nvcc-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.sitemap-links { list-style: none !important; }
.sitemap-links li { margin-bottom: 0.4rem; list-style: none !important; }
.sitemap-links a { color: #fefee3; text-decoration: none; font-size: 0.95rem; }
.sitemap-links a:hover { color: var(--nvcc-gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 1.25rem;
    padding-top: 0.6rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: var(--nvcc-gold); }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* ── Large Desktop (Side-by-Side) ── */
@media (min-width: 1081px) {
    .content-grid {
        grid-template-columns: 1.25fr 1fr; /* Video and Ref side-by-side */
    }

    /* Video spans the left, Reference the right */
    .cell-video { grid-column: 1 / 2; }
    .cell-reference { grid-column: 2 / 3; }

    /* Project Setup Margin Adjustment */
    #project-setup {
        margin-top: 7rem; /* Explicit 7rem margin for the visual tree */
    }
}

/* ── Tablet / Small Desktop ── */
@media (max-width: 1080px) {
    .content-grid {
        grid-template-columns: 1fr; /* Stack everything */
    }
    
    .cell-downloads {
        margin-top: 1.5rem;
    }
}


@media (min-width: 768px) and (max-width: 1080px) {
    .content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

}

@media(min-width: 1081px) {
    .cell-projdir{
     margin-top: 7.5rem;
    }
}
@media (max-width: 1080px) {

    .cell-video,
    .cell-reference,
    .cell-downloads,
    .cell-projdir {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .reading-columns { grid-template-columns: 1fr 1fr; }
    .footer-sitemap { grid-template-columns: repeat(2, 1fr); }

    .cell-downloads{ 
     /*margin-top: -1.25rem;*/
    }

    .cell-projdir{
     margin-top: 9rem;
    }

}


@media (max-width: 1024px) {
  .reading-columns { grid: auto-flow / 100%; }
}

@media (max-width: 600px) {
    /*.content-grid { grid-template-columns: 1fr; }*/
    .cell-video,
    .cell-reference,
    .cell-downloads,
    .cell-projdir { grid-column: 1 / -1; grid-row: auto; }
    .reading-columns { grid-template-columns: 1fr; }
    .dl-cards { flex-direction: column; }
    .footer-sitemap { grid-template-columns: repeat(2, 1fr); }
    .nav-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; }
    .nav-links.open { display: flex; }
}

@media (max-width: 400px) {
    .footer-sitemap { grid-template-columns: 1fr; }
}
/***FIXES MOBILE 02/24/2026 **/
@media (max-width: 1080px) {
.ref-box {
  margin-top: .25rem;
}
}

/* ── Focus ── */
:focus-visible { outline: 3px solid var(--nvcc-gold); outline-offset: 2px; }


/* ── OVERRIDE ── */
article>header{
    border-bottom: none !important
}
article>footer{
    border-top: none !important;
}