@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/cefr-vocabulary-checker/fonts/montserrat-latin.woff2") format("woff2");
}

/* Compact launch viewport: keep the research context while bringing the checker above the fold. */
.standalone-tool-shell {
  padding-top: clamp(.6rem, 1.5vw, 1.25rem);
}

.site-context[data-astro-cid-lezihud2] {
  gap: 1rem;
  padding: .45rem 0 .7rem;
}

.site-context[data-astro-cid-lezihud2] nav[data-astro-cid-lezihud2] {
  gap: .7rem 1rem;
  font-size: .76rem;
}

.cefr-page-intro[data-astro-cid-lezihud2] {
  max-width: 1040px;
  padding: clamp(1rem, 2.4vw, 1.75rem) 1rem clamp(.85rem, 2vw, 1.4rem);
}

.cefr-page-eyebrow[data-astro-cid-lezihud2] {
  margin-bottom: .4rem;
  font-size: .7rem;
}

.cefr-page-intro[data-astro-cid-lezihud2] h1[data-astro-cid-lezihud2] {
  max-width: none;
  margin-bottom: .55rem;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.08;
}

.cefr-page-intro[data-astro-cid-lezihud2] .lede[data-astro-cid-lezihud2] {
  max-width: 82ch;
  font-size: clamp(.94rem, 1.4vw, 1.05rem);
  line-height: 1.5;
}

.cefr-privacy-note[data-astro-cid-lezihud2] {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  margin-top: .55rem;
  font-size: .72rem;
}

.cefr-feedback-trigger {
  padding: 0;
  color: #653178;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cefr-feedback-trigger:hover,
.cefr-feedback-trigger:focus-visible {
  color: #4d245d;
  background: none;
  border-bottom-style: dotted;
}

.cefr-feedback-trigger:focus-visible {
  outline: 2px solid #b993c7;
  outline-offset: 3px;
}

.cefr-feedback-dialog {
  width: min(92vw, 560px);
  padding: 0;
  color: #332f35;
  background: linear-gradient(145deg, #fff 0%, #fcf8fd 100%);
  border: 0;
  border-top: 5px solid #653178;
  border-radius: 14px;
  box-shadow: 0 20px 70px rgba(42, 25, 49, .3);
}

.cefr-feedback-dialog::backdrop {
  background: rgba(31, 22, 34, .58);
  backdrop-filter: blur(2px);
}

.cefr-feedback-dialog-inner {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.25rem);
}

.cefr-feedback-dialog h2 {
  margin: .2rem 2rem .7rem 0;
  color: #4d245d;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.cefr-feedback-dialog p {
  margin: 0 0 .9rem;
  line-height: 1.6;
}

.cefr-feedback-invitation {
  padding: .85rem 1rem;
  background: #f5eef7;
  border-left: 3px solid #b993c7;
  border-radius: 0 8px 8px 0;
}

.cefr-feedback-signoff {
  color: #653178;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 1.05rem;
  font-style: italic;
}

.cefr-feedback-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  color: #653178;
  background: #f5eef7;
  border: 0;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
}

.cefr-feedback-email {
  display: inline-block;
  margin-top: .25rem;
  padding: .7rem 1rem;
  color: #fff;
  background: #653178;
  border-radius: 6px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.cefr-feedback-address {
  margin-top: .65rem !important;
  color: #6f6872;
  font-size: .78rem;
}

.cefr-independent-note {
  display: inline;
  color: #817982;
  font-size: .72rem;
}

.cefr-feedback-email:hover,
.cefr-feedback-email:focus-visible {
  background: #4d245d;
  text-decoration: underline;
}

[data-cefr-checker] { margin-top: 0; }
.cefr-tool-header { padding: clamp(1rem, 2vw, 1.4rem); }
.cefr-tool-header h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); }
.cefr-notice {
  margin: .8rem clamp(1rem, 2vw, 1.4rem) 0;
  padding: .65rem .8rem;
  font-size: .86rem;
}
.cefr-controls { padding: clamp(1rem, 2vw, 1.4rem); }

.cefr-pos-control {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .45rem;
  color: #6f6872;
  font-family: Montserrat, Arial, sans-serif;
  font-size: .76rem;
  font-weight: 700;
}

.cefr-pos-control select {
  padding: .3rem 1.7rem .3rem .5rem;
  color: #332f35;
  background: #fff;
  border: 1px solid #d8c9dd;
  border-radius: 5px;
  font-size: .78rem;
}

.cefr-result-unlisted {
  border-left-color: #8a6b34;
}

.cefr-highlight.cefr-unlisted {
  color: #5d481f;
  background: #fff4d9;
  border-bottom-color: #9a742e;
}

.cefr-hypernym-note {
  margin: .85rem 0 .7rem;
  padding: .7rem .8rem;
  color: #654f22;
  background: #fff8e7;
  border: 1px solid #e3cf9d;
  border-radius: 7px;
  font-size: .84rem;
  line-height: 1.5;
}

.cefr-hypernym-title {
  margin: .7rem 0 .45rem;
  color: #59451c;
  font-family: Montserrat, Arial, sans-serif;
  font-size: .78rem;
  font-weight: 700;
}

.cefr-hypernym {
  color: #59451c;
  background: #fffdf7;
  border-color: #cfb978;
}

.cefr-hypernym:hover,
.cefr-hypernym:focus-visible {
  color: #fff;
  background: #765c22;
  border-color: #765c22;
}

@media (max-width: 650px) {
  .standalone-tool-shell { padding-top: .35rem; }
  .site-context[data-astro-cid-lezihud2] {
    align-items: center;
    flex-direction: row;
    padding: .35rem 0 .5rem;
  }
  .site-identity[data-astro-cid-lezihud2] span[data-astro-cid-lezihud2] { display: none; }
  .site-context[data-astro-cid-lezihud2] nav[data-astro-cid-lezihud2] {
    gap: .7rem;
    font-size: .7rem;
  }
  .site-context[data-astro-cid-lezihud2] nav[data-astro-cid-lezihud2] a[data-astro-cid-lezihud2]:not(:first-child) { display: none; }
  .cefr-page-intro[data-astro-cid-lezihud2] { padding: .85rem .35rem .75rem; }
  .cefr-page-intro[data-astro-cid-lezihud2] h1[data-astro-cid-lezihud2] { font-size: clamp(1.65rem, 8vw, 2.1rem); }
  .cefr-page-intro[data-astro-cid-lezihud2] .lede[data-astro-cid-lezihud2] {
    font-size: .91rem;
    line-height: 1.42;
  }
  .cefr-privacy-note[data-astro-cid-lezihud2] { font-size: .68rem; }
  .cefr-tool-header p:not(.cefr-kicker) { font-size: .9rem; }
  .cefr-mock-badge { display: none; }
}
