@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* ── Page ── */
.tut-page {
    background: #f4f1eb;
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    color: #2d2d2d;
}

/* ── Hero ── */
.tut-hero {
    background: #2a7c6f;
    padding: 56px 24px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tut-hero h1 {
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.tut-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.tut-hero-links {
    display: inline-flex;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: center;
}

.tut-hero-links a {
    background: rgba(255,255,255,0.15);
    color: #f0e8d0;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    padding: 7px 18px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    transition: background 0.2s;
}

.tut-hero-links a:hover {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

/* ── Content wrapper ── */
.tut-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 44px 20px 80px;
}

/* ── Section headers ── */
.tut-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tut-section-bar {
    width: 6px;
    border-radius: 3px;
    flex-shrink: 0;
    height: 44px;
}

.tut-section-head h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #2a7c6f;
    font-family: 'Nunito', sans-serif;
}

.tut-section-head p {
    margin: 3px 0 0;
    color: #7a6e62;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ── Info box ── */
.tut-infobox {
    background: #e8e2d6;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 18px 0 28px;
    border-left: 4px solid #2a7c6f;
    font-size: 0.9rem;
    color: #2d2d2d;
    line-height: 1.7;
    font-family: 'Nunito', sans-serif;
}

.tut-infobox.purple {
    border-left-color: #8b3a4a;
    background: #f5eded;
}

/* ── Nucleotide cards ── */
.tut-nucleotide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.tut-nuc-card {
    background: #ede8df;
    border-radius: 18px;
    padding: 22px 18px;
    text-align: center;
    border: 2px solid #d4c9b8;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Nunito', sans-serif;
}

.tut-nuc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ── DNA parts list ── */
.tut-dna-part {
    background: #ede8df;
    border-radius: 14px;
    padding: 15px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1.5px solid #d4c9b8;
    margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
}

.tut-dna-part-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    background: #e8e2d6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* ── Mapping table ── */
.tut-table-wrap {
    background: #ede8df;
    border-radius: 16px;
    border: 2px solid #d4c9b8;
    overflow: hidden;
}

.tut-table-head {
    background: #2a7c6f;
    padding: 14px 20px;
}

.tut-table-head h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
}

.tut-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    font-family: 'Nunito', sans-serif;
}

.tut-table-wrap thead tr {
    background: #e8e2d6;
}

.tut-table-wrap th {
    padding: 10px 18px;
    text-align: left;
    font-weight: 800;
    color: #2a7c6f;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.tut-table-wrap tbody tr {
    border-top: 1px solid #d4c9b8;
}

.tut-table-wrap td {
    padding: 13px 18px;
}

/* ── Phylo tree card ── */
.tut-tree-card {
    background: #ede8df;
    border-radius: 20px;
    padding: 32px 20px;
    margin-bottom: 24px;
    border: 2px solid #d4c9b8;
    text-align: center;
}

/* ── Phylo concept cards ── */
.tut-concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.tut-concept-card {
    background: #ede8df;
    border-radius: 16px;
    padding: 22px;
    border: 2px solid #d4c9b8;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tut-concept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.tut-concept-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: #e8e2d6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tut-concept-card h4 {
    margin: 0 0 8px;
    color: #2a7c6f;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
}

.tut-concept-card p {
    margin: 0;
    font-size: 13px;
    color: #7a6e62;
    line-height: 1.65;
}

/* ── Scale legend ── */
.tut-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.tut-legend-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #ede8df;
    border-radius: 100px;
    padding: 6px 16px;
    border: 1.5px solid #d4c9b8;
    font-size: 12px;
    font-weight: 700;
    color: #2d2d2d;
    font-family: 'Nunito', sans-serif;
}

.tut-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Scale cards ── */
.tut-scale-card {
    background: #ede8df;
    border-radius: 20px;
    padding: 26px 28px;
    margin-bottom: 18px;
    border: 2px solid #d4c9b8;
    position: relative;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tut-scale-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.tut-scale-card select {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 30px 7px 13px;
    border-radius: 10px;
    border: 2px solid #d4c9b8;
    background: #f4f1eb;
    color: #2d2d2d;
    cursor: pointer;
    outline: none;
}

.tut-scale-card button {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    border-radius: 50px !important;
    padding: 9px 24px;
}

/* ── Developer cards ── */
.tut-dev-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.tut-dev-card {
    background: #ede8df;
    border-radius: 20px;
    padding: 16px 14px 14px;
    border: 2px solid #d4c9b8;
    width: 110px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    font-family: 'Nunito', sans-serif;
}

.tut-dev-card:hover {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 12px 32px rgba(42,124,111,0.2);
    border-color: #2a7c6f;
}

.tut-dev-card .dev-name {
    font-size: 13px;
    font-weight: 800;
    color: #2d2d2d;
}

/* ── Note pill ── */
.tut-note-pill {
    background: #e8e2d6;
    border: 1.5px solid #d4c9b8;
    color: #2a7c6f;
    font-weight: 800;
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 100px;
    display: inline-block;
    font-family: 'Nunito', sans-serif;
}

/* ── Footer ── */
.tut-footer {
    margin-top: 60px;
    text-align: center;
    padding: 22px 0;
    border-top: 2px solid #d4c9b8;
    font-family: 'Nunito', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #7a6e62;
    letter-spacing: 0.5px;
}

/* ── Dark mode ── */
.dark-mode .tut-page        { background: #1a1e18; color: #e8ede8; }
.dark-mode .tut-hero        { background: #1e2a1e; }
.dark-mode .tut-infobox     { background: #1e2a1e; border-left-color: #5fcfa0; color: #c8d4c8; }
.dark-mode .tut-infobox.purple { background: #2a1e1e; }
.dark-mode .tut-nuc-card    { background: #1e2a1e; border-color: #2a3a2a; }
.dark-mode .tut-dna-part    { background: #1e2a1e; border-color: #2a3a2a; }
.dark-mode .tut-dna-part-icon { background: #162216; }
.dark-mode .tut-table-wrap  { background: #1e2a1e; border-color: #2a3a2a; }
.dark-mode .tut-table-wrap thead tr { background: #162216; }
.dark-mode .tut-table-wrap tbody tr { border-color: #2a3a2a; }
.dark-mode .tut-tree-card   { background: #1e2a1e; border-color: #2a3a2a; }
.dark-mode .tut-concept-card { background: #1e2a1e; border-color: #2a3a2a; }
.dark-mode .tut-concept-icon { background: #162216; }
.dark-mode .tut-scale-card  { background: #1e2a1e; border-color: #2a3a2a; }
.dark-mode .tut-scale-card select { background: #1a1e18; border-color: #2a3a2a; color: #c8d4c8; }
.dark-mode .tut-dev-card    { background: #1e2a1e; border-color: #2a3a2a; }
.dark-mode .tut-dev-card .dev-name { color: #c8d4c8; }
.dark-mode .tut-legend-pill { background: #1e2a1e; border-color: #2a3a2a; color: #c8d4c8; }
.dark-mode .tut-note-pill   { background: #162216; border-color: #2a3a2a; }
.dark-mode .tut-footer      { border-color: #2a3a2a; color: #4a5a4a; }
.dark-mode .tut-section-head h2 { color: #5fcfa0; }
.dark-mode .tut-concept-card h4 { color: #5fcfa0; }
.dark-mode .tut-table-head  { background: #236b5f; }
