/*
  Base reset + utility classes + page-level styles, ported from the legacy
  production stylesheet (backup/legacy-client/styles.a0b95ef3bf5c23d336ae.bundle.css).
  Shared by every page (light DOM) and adopted by every <lv-*> component's
  shadow root (see js/lv-element.js) so there is exactly one copy of these rules.
*/
@import url("tokens.css");

*,
body {
  margin: 0;
}
* {
  padding: 0;
}
h2,
h3,
ul {
  margin: 0;
}

body {
  font-size: 16px;
  background: var(--color-white);
  font-family: var(--font-body);
  font-weight: 400;
}
@media only screen and (min-width: 800px) {
  body {
    font-size: 1.2rem;
  }
}
@media only screen and (max-width: 799px) {
  .mobile-hide {
    display: none !important;
  }
}
@media only screen and (min-width: 800px) {
  .web-hide {
    display: none !important;
  }
}

a {
  text-decoration: none;
  color: var(--color-primary);
}
a:hover {
  color: var(--color-primary-hover);
}

button {
  border: none;
  font-family: var(--font-buttons);
  font-size: 1.3rem;
  border-radius: var(--radius-md);
  padding: 15px;
  border-radius: 15px;
  border: 1px solid var(--color-black);
  font-size: 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
}
button:hover {
  background: var(--color-primary-active);
}

ol ul,
ul,
ul li,
ul ul {
  list-style-type: none;
}
ul {
  display: block;
}

input[type="text"] {
  -webkit-appearance: none;
  border-radius: 0;
}

/* Layout / display utilities */
.relative {
  position: relative;
}
.hide {
  display: none !important;
}
.show {
  display: inline-block;
}
.ib {
  display: inline-block;
}
.center {
  text-align: center;
}
.right {
  text-align: right;
}
.left {
  text-align: left;
}
.bold {
  font-weight: 700;
}
.center-block {
  margin: 0 auto;
}
.middle {
  vertical-align: middle;
}
.top {
  vertical-align: top;
}
.hidden {
  visibility: hidden;
}
.pull-left {
  float: left;
}
.pull-right {
  float: right;
}
.row:after {
  content: " ";
  display: table;
  clear: both;
}
.pointer {
  cursor: pointer;
}
.opacity5 {
  opacity: 0.5;
}

/* Spacing utilities */
.mtop5 {
  margin-top: var(--space-1);
}
.mtop10 {
  margin-top: var(--space-2);
}
.mtop20 {
  margin-top: var(--space-3);
}
.mtop40 {
  margin-top: var(--space-5);
}
.mright5 {
  margin-right: var(--space-1);
}
.mright10 {
  margin-right: var(--space-2);
}
.mright30 {
  margin-right: var(--space-4);
}
.mbot10 {
  margin-bottom: var(--space-2);
}
.mbot20 {
  margin-bottom: var(--space-3);
}
.mbot40 {
  margin-bottom: var(--space-5);
}
.mleft20 {
  margin-left: var(--space-3);
}
.mleft25 {
  margin-left: 25px;
}
.pright30 {
  padding-right: var(--space-4);
}
.pleft150 {
  padding-left: 150px;
}
.bbottom {
  border-bottom: var(--border-default);
}
.padding20 {
  padding: var(--space-3);
}
.w50pc {
  width: 50%;
}
.w95pc {
  width: 95%;
}

/* Color utilities */
.white {
  color: var(--color-white);
}
.black {
  color: var(--color-black);
}
.blue {
  color: var(--color-primary);
}
.grey-ccc {
  color: var(--color-grey-ccc);
}
.grey-999 {
  color: var(--color-grey-999);
}

/* Font-size utilities */
.rem1 {
  font-size: 1rem;
}
.rem0-8 {
  font-size: 0.8rem;
}
.rem1-2 {
  font-size: 1.2rem;
}
.rem1-5 {
  font-size: 1.5rem;
}

@keyframes fadein {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Forms */
.rounded-box {
  display: inline-block;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.rounded-box,
input,
select,
textarea {
  font-size: 1.3rem;
  margin-bottom: var(--space-3);
}
input,
select,
textarea {
  min-height: 2rem;
}
input {
  margin-bottom: var(--space-2);
  height: 22px;
}
button,
input {
  font-size: 1rem;
}
.field-valid {
  border-left: 5px solid var(--color-success);
}
.field-invalid {
  border-left: 5px solid var(--color-error);
}
.form-group {
  margin-bottom: var(--space-3);
  font-size: 1.2rem;
}
.alert {
  font-size: 1rem;
  color: var(--color-error-text);
  margin-left: 135px;
}
label {
  width: 130px;
  display: inline-block;
  vertical-align: top;
}

/* Page layout */
main {
  padding: 1em 0;
  max-width: var(--content-max-width);
  margin: 0 auto;
}
h1 {
  font-size: 3rem;
  line-height: 3.5rem;
  margin: 0 0 var(--space-3) 0;
}
.content-container {
  position: relative;
  margin: 0 var(--space-3);
  min-height: 600px;
}
/* Course title is set in the target language's own script (Español,
   Français, ...) in a handwritten accent face, same as the live site. h1
   and .level-num are inline-block (sized to their short text) inside the
   block-level .h1-area, which is what carries the right-side reservation
   below - so the reservation holds regardless of title length. */
.course-page h1 {
  font-family: var(--font-accent);
  font-size: 4rem;
  font-weight: 700;
  line-height: normal;
  margin: 0 var(--space-2) 0 0;
  display: inline-block;
  vertical-align: middle;
  transform: skew(10deg, 0deg);
}
.level-num {
  font-weight: 400;
  padding: 0 var(--space-2);
  color: var(--color-grey-999);
  font-size: 1.6rem;
  display: inline-block;
  vertical-align: middle;
}
/* At >=800px the progress circle (<lv-course-app>'s .circle-big-area) sits
   pinned top-right of this same .content-container, sharing the title's row -
   reserve room so the title doesn't run under it. Below 800px the circle
   drops to its own centered row instead (see lv-course-app.js), so no
   reservation is needed there. */
@media only screen and (min-width: 800px) {
  .h1-area {
    padding-right: 220px;
    box-sizing: border-box;
  }
}

/* Article */
.article .content-container {
  width: var(--article-width);
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}
.article p {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: #444;
  margin: 1rem 0;
}
.article h2,
.article h3 {
  color: var(--color-accent-blue-dark);
  margin: 2rem 0;
}
.article i {
  color: var(--color-accent-teal);
  font-style: italic;
}
.article table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.article table tr:first-child th:first-child {
  border-top-left-radius: var(--radius-lg);
}
.article table tr:first-child th:last-child {
  border-top-right-radius: var(--radius-lg);
}
.article table tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-lg);
}
.article table tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-lg);
}
.article th {
  background: var(--color-accent-teal-dark);
  color: var(--color-white);
}
.article td,
.article th {
  padding: 10px 5px;
  border: 1px solid var(--color-grey-777);
  text-align: center;
  font-weight: 400;
  width: 33%;
}
.credit {
  font-size: 0.9rem;
  color: var(--color-grey-777);
}
ul.articles li {
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

/* Courses index ("Free Beginner Language Courses") - a plain 3-per-row
   table of course links, confirmed against the live site's actual computed
   styles rather than the .article table rules above (this page isn't
   wrapped in .article - it's wider, matching the default .content-container). */
.courses-table {
  border-collapse: collapse;
  background: var(--color-white);
  width: 80%;
  margin: 40px auto 20px;
}
.courses-table td {
  padding: 20px 30px;
  border: 1px solid var(--color-grey-ccc);
  text-align: center;
  font-weight: 400;
  width: 33%;
}
.courses-table a {
  color: var(--color-primary);
  font-size: 2rem;
}

/* Home page */
.home .splash-area {
  position: absolute;
  top: 43px;
  left: 0;
  width: 100%;
  height: 200px;
  background: url(/img/home-blue-bg.png) repeat-x;
  color: var(--color-white);
}
.home .splash-area .left-image {
  float: left;
  width: 150px;
  height: 200px;
  background: url(/img/pedro-jenni-pj-small.png) no-repeat;
  background-size: 150px 200px;
  margin: 22px 10px 0 0;
}
.home h1 {
  font-size: 2rem;
  color: var(--color-white);
  font-family: var(--font-accent);
  padding: 10% 20px 0 0;
  margin-left: 20px;
  line-height: 2rem;
}
@media only screen and (min-width: 600px) {
  .home .splash-area {
    height: 400px;
  }
  .home .splash-area .left-image {
    width: 299px;
    height: 400px;
    background: url(/img/pedro-jenni-pj-small.png) no-repeat;
    background-size: 299px 400px;
  }
  .home h1 {
    font-size: 3.7rem;
    line-height: 4rem;
  }
}
@media only screen and (min-width: 800px) {
  .home .splash-area {
    height: 600px;
  }
  .home .splash-area .left-image {
    width: 448px;
    height: 600px;
    background: url(/img/pedro-jenni-pj.png) no-repeat;
    background-size: 100%;
    margin: 0 20px 0 0;
  }
  .home h1 {
    font-size: 4.6rem;
    line-height: 5rem;
  }
}
.home h2 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.home h3,
.home h4 {
  font-size: 1.3rem;
}
.home .benefits h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.home .key-points {
  position: relative;
  margin: 200px auto var(--space-5) auto;
  width: 90%;
}
@media only screen and (min-width: 600px) {
  .home .key-points {
    margin: 400px auto 60px auto;
  }
}
@media only screen and (min-width: 800px) {
  .home .key-points {
    margin: 580px auto 80px auto;
  }
}
.home .key-points .col1,
.home .key-points .col2,
.home .key-points .col3 {
  margin-bottom: var(--space-3);
}
@media only screen and (min-width: 801px) {
  .home .key-points .col1,
  .home .key-points .col2,
  .home .key-points .col3 {
    display: inline-block;
    width: 30%;
    margin-right: 4%;
    vertical-align: top;
  }
  .home .key-points .col3 {
    margin-right: 0;
  }
}
.home .grey-bg {
  padding: 30px 0;
  background: var(--color-grey-ddd);
  text-align: center;
}
.home .benefits {
  width: 90%;
  margin: var(--space-5) auto;
  position: relative;
}
.home .benefits ul li {
  font-size: 1.2rem;
  padding-left: var(--space-3);
  margin-bottom: var(--space-2);
  background: url(/img/checkmark-success.png) no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  list-style: none;
}
.home .travel-character {
  display: none;
}
@media only screen and (min-width: 800px) {
  .home .travel-character {
    display: block;
    width: auto;
    padding: 20px 300px 20px 0;
    background: url(/img/juliana.png) no-repeat 100% 0;
    min-height: 300px;
    background-size: 250px;
    position: absolute;
    top: 0;
    right: 0;
  }
}
.home td,
.home th {
  padding: 10px 5px;
  border: 1px solid var(--color-grey-777);
  text-align: center;
  font-weight: 400;
  width: 33%;
}
.home th a {
  text-decoration: underline;
}
.home .status-ok {
  background: var(--color-status-ok-bg);
}
.home .status-in-progress {
  background: var(--color-status-progress-bg);
  color: var(--color-grey-999);
  font-size: 0.8rem;
}
.home .program {
  display: inline-block;
  margin: 0 40px 40px;
  vertical-align: top;
  width: 200px;
}

table {
  border-collapse: collapse;
  background: var(--color-white);
  margin: 0 auto var(--space-3) auto;
  width: 80%;
}
.legend-item {
  display: inline-block;
  margin-right: var(--space-5);
  font-size: 0.8rem;
}
.legend-item-color {
  display: inline-block;
  width: var(--space-3);
  height: var(--space-3);
  border: 1px solid var(--color-grey-777);
  margin-right: var(--space-1);
}

/* Buttons */
a.btn1 {
  font-size: 1.7rem;
  color: var(--color-white);
  background: var(--color-primary);
  display: inline-block;
  vertical-align: middle;
  border: 1px solid var(--color-primary);
  padding: 15px;
  border-radius: 7px;
  margin-top: 2px;
}
a.btn1:hover {
  background: var(--color-primary-hover-alt);
}

/* Callout boxes */
.save-progress-box,
.instruction-box {
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 1.5rem;
  background: var(--color-primary-soft-bg);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  text-align: center;
}
.feedback-box {
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 1.5rem;
  background: #efefef;
  border: 1px solid var(--color-primary-soft-border);
  border-radius: var(--radius-md);
  text-align: center;
}
@media (min-width: 750px) {
  .save-progress-box {
    text-align: left;
  }
  .save-progress-box p {
    display: inline-block;
  }
}
@media only screen and (min-width: 450px) {
  .sign-in-arrow {
    position: absolute;
    top: -50px;
    right: 170px;
    height: 77px;
    background: url(/img/sign-in-arrow.png) no-repeat 100% 0;
    padding: 75px 80px 0 0;
    color: var(--color-grey-999);
  }
}
.highlight {
  color: var(--color-highlight);
}

/* Category icons (used on course/lesson pages) */
i.collapse,
i.courtesy,
i.expand,
i.grammar,
i.reading,
i.sentences,
i.talking,
i.verbs,
i.vocabulary,
i.writing {
  background: url(/img/expand-icon.png) no-repeat 50%;
  width: 50px;
  height: 50px;
  display: inline-block;
  vertical-align: middle;
  margin: 2px 0 3px 0;
  cursor: pointer;
}
i.collapse {
  background: url(/img/collapse-icon.png) no-repeat 50%;
}
i.courtesy {
  background: url(/img/vocabulary/courtesy-icon.png) no-repeat 50%;
  background-size: 100%;
}
i.grammar {
  background: url(/img/vocabulary/grammar-icon.png) no-repeat 50%;
  background-size: 100%;
}
i.vocabulary {
  background: url(/img/vocabulary/vocabulary-icon.png) no-repeat 50%;
  background-size: 100%;
}
i.verbs {
  background: url(/img/vocabulary/verbs-icon.png) no-repeat 50%;
  background-size: 100%;
}
i.sentences {
  background: url(/img/vocabulary/sentences-icon.png) no-repeat 50%;
  background-size: 100%;
}
i.reading {
  background: url(/img/vocabulary/reading-icon.png) no-repeat 50%;
  background-size: 100%;
}
i.writing {
  background: url(/img/vocabulary/writing-icon.png) no-repeat 50%;
  background-size: 100%;
}
i.talking {
  background: url(/img/vocabulary/talking-icon.png) no-repeat 50%;
  background-size: 100%;
}

/* Pronunciation audio icon */
i.audio {
  display: inline-block;
  background: url(/img/audio-icon.png);
  background-size: 100%;
}
i.audio,
i.audio:hover {
  width: 34px;
  height: 28px;
}
i.audio:hover {
  cursor: pointer;
  background: url(/img/audio-icon-hover.png);
  background-size: 100%;
}

/* Social share buttons (footer) */
.resp-sharing-button__icon,
.resp-sharing-button__link {
  display: inline-block;
}
.resp-sharing-button__link {
  text-decoration: none;
  color: var(--color-white);
  margin: 0.5em 0 0 5px;
}
.resp-sharing-button {
  border-radius: var(--radius-md);
  transition: 25ms ease-out;
  padding: 0.5em 0.75em;
  font-family: var(--font-share-icons);
}
.resp-sharing-button__icon svg {
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: top;
}
.resp-sharing-button--small svg {
  margin: 0;
  vertical-align: middle;
}
.resp-sharing-button__icon {
  stroke: var(--color-white);
  fill: none;
}
.resp-sharing-button__icon--solid {
  fill: var(--color-white);
  stroke: none;
}
.resp-sharing-button--facebook {
  background-color: #3b5998;
  border-color: #3b5998;
}
.resp-sharing-button--facebook:hover {
  background-color: #2d4373;
  border-color: #2d4373;
}
.resp-sharing-button--x {
  background-color: #000;
  border-color: #000;
}
.resp-sharing-button--x:hover {
  background-color: #333;
  border-color: #333;
}
.resp-sharing-button--linkedin {
  background-color: #0077b5;
}
.resp-sharing-button--linkedin:hover {
  background-color: #046293;
}
.resp-sharing-button--pinterest {
  background-color: #bd081c;
}
.resp-sharing-button--pinterest:hover {
  background-color: #8c0615;
}
.resp-sharing-button--email {
  background-color: var(--color-grey-777);
  border-color: var(--color-grey-777);
}
.resp-sharing-button--email:hover {
  background-color: #5e5e5e;
  border-color: #5e5e5e;
}
