/* ==========================================================
   lupine_merged.css
   Replaces lupine_k1.css, lupine_k2.css and lesson_policies.css.
   Part 1: lupine k1 + k2 (site-wide). Pages using the old class
           "header" (k1) and the new class "k2-header" (k2) both work.
   Part 2: lesson_policies.css (scoped under .wrap so it does
           not leak into the lupine header/nav/footer)
   ========================================================== */


/* ==========================================================
   PART 1: LUPINE K2 (site-wide)
   ========================================================== */

/* Logo background color rgb(50, 16, 88) */
body {
   margin: 0px;
   padding: 0px;
}

.header,
.k2-header {
   background-color: rgb(50, 16, 88);
   width: 100%;
   height: 360px; /* 300 changed 20261019 */
   text-align: center;
   position: relative;
}

.fontsize {
   text-align: center;
   font-family: 'Cambria', 'Cochin', Georgia, Times, 'Times New Roman', serif;
   font-size: 52px;
   color: black;
}

.fontsize_s {
   text-align: center;
   font-family: 'Cambria', 'Cochin', Georgia, Times, 'Times New Roman', serif;
   font-size: 46px;
   color: black;
}

.fontsize_s2 {
   text-align: center;
   font-family: 'Cambria', 'Cochin', Georgia, Times, 'Times New Roman', serif;
   font-size: 38px;
   color: black;
}

.fontsize_s3 {
   text-align: center;
   font-family: 'Cambria', 'Cochin', Georgia, Times, 'Times New Roman', serif;
   font-size: 30px;
   color: black;
}

.fontsize_ss {
   text-align: left;
   font-family: 'Cambria', 'Cochin', Georgia, Times, 'Times New Roman', serif;
   font-size: 24px;
   color: black;
}

.fontpos {
   text-align: center;
}

/*hmargin*/
#logo {
   margin-top: 35px;
   margin-bottom: 0px;
   width: 250px;
   height: 185px;  /* 185 --> 190 */
   padding-top: 2px;
   padding-bottom: 2px; /* duplicate padding-bottom (0px) removed; this one was already winning */
}

.k2-header #hh1 {
   font-family: 'Cambria', 'Calisto MT', 'Garamond';
   font-size: 40px;
   /* font-size: 3vw; */
   color: white;
   margin: 0px; /* k2 value was 2*/
}


#nav {
   background-color: transparent;
   text-align: center;
   padding: 0; /* k1 had "0px auto" and k2 had "10px auto". Both are invalid (auto is not
                  allowed in padding) so browsers ignored them and the real padding was 0.
                  Change to 10px 0 if you want the 10px the k2 comment suggests. */
   /* width: 1000px; 500 */
   width: 100%; /* changed 20261019 */
   position: absolute;
   top: 0px;  /* 0 --> 5 */
   right: 30px;
}


/* Pages using class="header" (k1) never reset the menu list, so they show the
   browser's default ul margin (1em top/bottom) and 40px left padding. Restored
   here so the lesson page header matches those pages. k2-header pages keep the reset above. */
.k2-header #nav ul {
   margin: 1em 0;
   padding: 0 0 0 40px;
}

#nav li {
   display: inline;
   padding: 5px; /* 5 --> 10 */
   margin: 3px;
   text-align: center;
}

#nav li a {
   color: white;
   font-family: Arial, Helvetica, sans-serif;
   font-size: 16px; /* chg from 14px 20210422 */
   text-decoration: none;
}

#nav li a:hover {
   color: #ff5733;
}


#home_desc {
   padding: 5px;
   width: 50%;
   margin-left: auto;
   margin-right: auto;
   text-align: justify;
   /*font-family: 'Lucida Calligraphy', 'Lucida Sans';
   font-family: 'consalos', sans-serif, Helvetica, 'Arial'; */
   font-family: 'calibri', 'Aria unicode MS', 'consalos';
   font-size: 28px;
   color: darkblue;
   /*color: rgb(46, 45, 45);*/
}

/* add on 20230430 */
#g_desc_b {
   padding: 5px;
   width: 50%;
   margin-left: auto;
   margin-right: auto;
   text-align: center;
   /*font-family: 'Lucida Calligraphy', 'Lucida Sans';
   font-family: 'consalos', sans-serif, Helvetica, 'Arial'; */
   font-family: 'calibri', 'Aria unicode MS', 'consalos';
   font-size: 28px;
   font-weight: bold;
   color: darkblue;
   /*color: rgb(46, 45, 45);*/
   /*border: 1px solid red;*/
}


#g_desc_b1 {
   padding: 5px;
   width: 600px;  /* chg from 300px 20210422; 450px 2021 20220102*/
   margin-left: auto;
   margin-right: auto;
   text-align: center;
   font-family: 'calibri', 'Arial', 'Comic Sans MS', Helvetica, sans-serif;
   font-size: 28px;
   font-weight: bold;
   color: darkblue;
}


/* add on 20230430 */
h3.title {
   margin: 0;
   padding: 3px 0 3px 25px;
}


#home_div_v {
   text-align: center;
   /*width: 600px;*/
   /* height: 450px; */
   margin-right: auto;
   margin-left: auto;
   /* border: 1px solid yellowgreen; */
}

#home_div_v p {
   text-align: center;
   font-family: 'calistro MT', 'calibri', 'Cambria';
   font-size: 28px;
   color: rgb(153, 23, 8);
}

.container {
   /* max-width: 1205px; */
   /* max-width: 1080px; */
   width: 60%;
   margin-right: auto;
   margin-left: auto;
   background-color: white;
   overflow: auto;
}

.gallery {
   margin: 3px 5px;
   float: left;
   /* width: 350px; */
   width: 29%;
}

.gallery img {
   /* width: 350px;
   height: 238px; */
   width: 330px;
   height: 225px;
}

.containerH {
   max-width: 1080px;
   margin: auto;
   background-color: white;
   overflow: auto;
   /* border: 1px solid yellowgreen */
}

.galleryH {
   margin: 2px 5px;
   float: left;
   /* width: 280px; */
   width: 20%;
}

.galleryH img {
   width: 260px;
   height: 340px;
}

.desc {
   font-family: 'Cambria', 'Cochin', Georgia, Times, 'Times New Roman', 'serif';
   font-size: 28px;
   font-weight: bold;
   color: black;
   padding: 15px;
   text-align: center;
}

.space_50 {
   height: 50px;
}

.space {
   height: 100px;
}

.quotes {
   width: 50%;
   margin-right: auto;
   margin-left: auto;
   text-align: start;
   font-family: 'Lucida Calligraphy', 'Lucida Sans';
   font-size: 26px;
   color: sienna;
}

.right {
   text-align: right;
   font-family: inherit;
   font-size: inherit;
   color: inherit;
}

/*space_col*/
.lessons_space {
   position: relative;
   width: 980px;
   height: 1100px;
   margin-right: auto;
   margin-left: auto;
   background-color: white;
}

.lessons_img {
   width: 450px;
   height: 300px;
   border: 2px solid #fff;
   box-shadow: 10px 10px 5px #ccc;
   -moz-box-shadow: 10px 10px 5px #ccc;
   -webkit-box-shadow: 10px 10px 5px #ccc;
   -khtml-box-shadow: 10px 10px 5px #ccc;
}

.lessons_h2 {
   margin: 0px;
}

.lessons_col1 {
   position: absolute;
   top: 30px;
   left: 30px;
   width: 420px;
   height: 220px;
   text-shadow: 1px 1px 3px #666666;
}

.lessons_col2 {
   position: absolute;
   top: 20px;
   right: 10px;
   width: 400px;
   height: 300px;
   text-align: justify;
   color: black;
   padding: 10px 30px 10px 5px;
   font-family: 'Comic Sans MS', Helvetica, sans-serif;
   font-size: 18px;
}

.lessons_col3 {
   position: absolute;
   top: 390px;
   left: 30px;
   width: 420px;
   height: 220px;
   text-shadow: 1px 1px 3px #666666;
}

.lessons_col4 {
   position: absolute;
   top: 390px;
   right: 10px;
   width: 400px;
   height: 300px;
   text-align: justify;
   color: black;
   padding: 10px 30px 10px 5px;
   font-family: 'Comic Sans MS', Helvetica, sans-serif;
   font-size: 18px;
}

.lessons_col5 {
   position: absolute;
   top: 750px;
   left: 30px;
   width: 420px;
   height: 220px;
   text-shadow: 1px 1px 3px #666666;
}

.lessons_col6 {
   position: absolute;
   top: 750px;
   right: 10px;
   width: 400px;
   height: 300px;
   text-align: justify;
   color: black;
   padding: 10px 30px 10px 5px;
   font-family: 'Comic Sans MS', Helvetica, sans-serif;
   font-size: 18px;
}

#events_desc {
   padding: 5px;
   width: 600px;  /* chg from 300px 20210422; 450px 2021 20220102*/
   margin-left: auto;
   margin-right: auto;
   text-align: center;
   font-family: 'Arial', 'Comic Sans MS', Helvetica, sans-serif;
   font-size: 26px;
}

#aboutus_desc {
   padding: 5px;
   width: 60%;
   margin-left: auto;
   margin-right: auto;
   text-align: justify;
   font-family: 'Arial', 'Comic Sans MS', Helvetica, sans-serif;
   font-size: 22px;
}

#aboutus_pic {
   display: block;
   margin-left: auto;
   margin-right: auto;
   width: 60%;
}

#contact_desc {
   width: 35%;
   color: darkblue;
   font-size: 18px;
   font-family: 'calibri', 'Aria unicode MS', 'consalos';
   /*font-family: Arial, Helvetica, sans-serif;*/
   margin-right: auto;
   margin-left: auto;
}

#form_fill {
   width: 50%;
   font-size: 22px;
   font-family: 'calibri', 'Aria unicode MS', 'consalos';
   /*font-family:Arial, Helvetica, sans-serif;*/
   margin-right: auto;
   margin-left: auto;
   background-color: white;
   /*border: 3px solid yellowgreen;*/
}

#field_border {
   /* border: 1px solid #ccc; */
   border: none;
   border-radius: 5px;
   font-size: 28px;
}

#form_words {
   width: 100%;
   padding: 5px;
   border: 1px solid #ccc;
   border-radius: 5px;
   box-sizing: border-box;
   margin-top: 6px;
   margin-bottom: 16px;
   height: 3em;
}

.form_font {
   font-size: 28px;
   /* font-weight: bold; */
   padding: 0;
   margin: 0;
}

#form_message {
   width: 100%;
   margin-right: auto;
   margin-left: auto;
   font-size: 22px;
   /*width: 100%;*/
   padding: 12px;
   border: 1px solid #ccc;
   border-radius: 5px;
   box-sizing: border-box;
   margin-top: 6px;
   margin-bottom: 16px;
   resize: vertical;
}

#input_pos {
   width: 200px;
   height: 40px;
   margin-right: auto;
   margin-left: auto;
}

#footer {
   box-sizing: border-box;
   background-color: rgb(50, 16, 88);
   text-align: center;
   color: white;
   margin-bottom: 0px;
   padding-bottom: 0px;
   position: relative;
   height: 180px; /* chg from 140px 20210422 */
   left: auto;
   right: auto;
   width: 100%;
   bottom: 0px;
}

#footer p {
   padding: 30px;
}

/* The max-width: 1200px block for #aboutus_desc was removed: it repeated
   the base rule exactly, so it changed nothing. */
@media screen and (max-width: 600px) {
   #aboutus_desc {
      width: 50%; /* only the changed value; the rest is inherited from the base rule */
   }
}






/* ==========================================================
   PART 2: LESSON POLICIES (scoped under .wrap)
   Every selector below starts with .wrap so these generic rules
   (h1, h2, p, section...) cannot affect the lupine header,
   nav, footer or other pages.
   ========================================================== */

/* Theme colors and fonts (variables are harmless site-wide) */
:root {
   --paper: #fbf9fd;
   --panel: #ffffff;
   --tint: #efe9f8;
   --ink: #2a2140;
   --ink-soft: #5b5272;
   --line: #ddd5ea;
   --violet: #5f3fa3;
   --violet-deep: #3f2a75;
   --notice-bg: #f3ecfd;
   --serif: "Fraunces", Georgia, "Times New Roman", serif;
   --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
   :root:not([data-theme="light"]) {
      --paper: #16111f;
      --panel: #1f1830;
      --tint: #2a2040;
      --ink: #f0ebfa;
      --ink-soft: #b5abcc;
      --line: #3a2f55;
      --violet: #b79cf2;
      --violet-deep: #d7c8fa;
      --notice-bg: #2c2147;
   }
}

html {
   scroll-behavior: smooth;
}

/* Paints the whole page with the lesson theme, but only on pages containing .wrap */
body:has(.wrap) {
   background: var(--paper);
   color: var(--ink);
}

/* Was "* { box-sizing: border-box; }" and body styles. Scoped to .wrap so the
   absolute-position lupine layouts (.lessons_col*) keep their original sizing.
   The paper/ink colors now live on .wrap itself, so text stays readable in
   dark mode even though the page body is not recolored. */
.wrap,
.wrap * {
   box-sizing: border-box;
}

.wrap {
   max-width: 46rem;
   margin: 0 auto;
   padding: 3.5rem 1.25rem 4rem;
   background: var(--paper);
   color: var(--ink);
   font-family: var(--sans);
   font-size: 1.0625rem;
   line-height: 1.65;
}

.wrap .lp-header {
   margin-bottom: 2.5rem;
   padding-bottom: 1.75rem;
   border-bottom: 2px solid var(--violet);
}

/*
header { margin-bottom: 2.5rem; padding-bottom: 1.75rem; border-bottom: 2px solid var(--violet); }
*/

/* .school { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; } */


.lp-header h1 {
   margin: 0;
   font-family: var(--serif);
   font-weight: 600;
   font-size: 1.8rem;
   line-height: 1.12;
   color: var(--violet-deep);
}

/*
.wrap h1 {
   margin: 0;
   font-family: var(--serif);
   font-weight: 600;
   font-size: clamp(2rem, 6vw, 2.9rem);
   line-height: 1.12;
   color: var(--violet-deep);
}
*/

.wrap section {
   background: var(--panel);
   border: 1px solid var(--line);
   border-radius: 14px;
   padding: 1.6rem 1.75rem;
   margin-bottom: 1.5rem;
}

.wrap h2 {
   margin: 0 0 1rem;
   font-family: var(--serif);
   font-weight: 600;
   font-size: 1.4rem;
   color: var(--violet-deep);
}

.wrap p {
   margin: 0 0 1rem;
}

.wrap p:last-child {
   margin-bottom: 0;
}

/* List styling. In lesson_policies.css this block was commented out, most likely
   because bare ul/li rules also hit the nav menu. Scoped to .wrap it no longer can.
   lessonpolicies.html uses <li class="key">, which depends on these rules. */
.wrap ul {
   margin: 0;
   padding: 0;
   list-style: none;
}

.wrap li {
   position: relative;
   padding: 0.75rem 0 0.75rem 1.5rem;
   border-top: 1px solid var(--line);
}

.wrap li:first-child {
   border-top: 0;
   padding-top: 0;
}

.wrap li:last-child {
   padding-bottom: 0;
}

.wrap li::before {
   content: "";
   position: absolute;
   left: 0;
   top: 1.35rem;
   width: 0.55rem;
   height: 0.55rem;
   border-radius: 50%;
   background: var(--violet);
}

.wrap li:first-child::before {
   top: 0.6rem;
}

.wrap .key {
   background: var(--notice-bg);
   border-radius: 10px;
   padding: 0.9rem 1rem 0.9rem 2.2rem !important;
   border-top: 0;
   margin: 0.75rem 0;
}

.wrap .key::before {
   left: 0.9rem;
   top: 1.65rem !important;
}

.wrap .key + li {
   border-top: 0;
}

.wrap .key strong {
   color: var(--violet-deep);
}

.wrap .closing {
   background: var(--tint);
   border-color: transparent;
   font-family: var(--serif);
   font-size: 1.1rem;
   line-height: 1.6;
}

@media (max-width: 520px) {
   .wrap section {
      padding: 1.25rem 1.1rem;
   }
   .wrap {
      padding-top: 2.25rem;
   }
}

