
/*
  Type scale: Perfect Fifth
  11.391
  7.594
  5.063
   - 4.2
    -3.8
  3.375
  2.25
  1.5
  1
  0.667
*/


@font-face {
  font-family: "IBM-Plex";
  src: url("/_common-content/styles/fonts/ibm-plex-sans-regular.woff2")
    format("woff2");
  font-weight: normal;
  font-display: swap;
}

@font-face {font-family: "IBM-Plex";src: url("/_common-content/styles/fonts/ibm-plex-sans-bold.woff2")format("woff2");font-weight: 700;font-display: swap}

@font-face {
  font-family: "IBM-Plex";
  src: url("./fonts/ibm-plex-sans-italic.woff2")
    format("woff2");
  font-style: italic;
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM-Plex-Condensed-Light";
  src: url("./fonts/ibm-plex-condensed-light.woff2")
    format("woff2");
  font-weight: 300;
  font-display: swap;
}


/* @font-face {
  font-family: "SBM-Plex";
  src: url("/_common-content/styles/fonts/SBMPlexSans-Regular.woff2")
    format("woff2");
  font-weight: normal;
  font-display: swap;
} */

@keyframes rotating {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

:disabled, [readonly] {
  background: #666;
  color: #333;
  cursor: not-allowed;
}

/* 
  x-small < 576px 36rem
  small >= 576px
  medium >= 768px
  large >= 992px
  x-large >= 1200px
  xxl => 1400px
*/
:root {
  --audio-one-volume: 100%;
  --body-padding-x: 1rem;
  --bg-img-url: url('');
	--box-shadow-color: #a9a9ad;
  --color-blue-dark: #23297A;
  /* Order of St. Patrick's Blue */
  --color-blue-light: #adD9ff;
  --color-cream-light: #fefcf5;
  --color-cream-dark: #B4AD96;
  --color-yellow-medium: #ffe100;
  --color-green-medium: #22706d;
  --color-orange-dark: #9B4F00;
  --color-orange-light: #FFB364;
  --color-orange-lightest: #FFDAB3;
	--color-orange-medium: #FF8200;
  --color-red-medium:  #DA291C;
	--color-ui-grey-md: #666;
  --color-ui-grey-md-light: #999;
  --color-ui-grey-lightest: #e9e9ed;
	--color-ui-grey-light: #a9a9ad;
  --color-ui-grey-lightest-bluey: #f1f3f4;
  --color-ui-grey-lighter: #c9c9cd;
  --color-green-light: #d8f3f2;
	--font-size-nine: 9.5rem;
  --font-size-three: 2.25rem;
  --font-size-one-half: 1.25rem;
  --font-size-one: 1rem;
  --font-size-minus-one: 0.667rem;
  --padding-pronunciation: 4rem;
  --shadow-one: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.12), 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.24);
  --shadow-two: 0 0.875rem 1.75rem rgba(0, 0, 0, 0.25), 0 0.625rem 0.625rem rgba(0, 0, 0, 0.22);
  --text-body-color: #666;
  --ui-bar-radius: 5rem;
  --ui-btn-size: 3.375rem;
  --ui-change-time:  300ms;
  --ui-change-format: ease-in-out;
  --ui-input-radius: 1rem;
  /* can't use in media queries */
  /* --screen-medium: 48rem; */
}

@keyframes opacity-frame-1-2 {
  0% {
    opacity: 100%;
  }
  49% {
    opacity: 100%;
  }
  50%{
    opacity: 0%;
  }
  100% {
    opacity: 0%;
  }
}

@keyframes opacity-frame-2-2 {
  0% {
    opacity: 0%;
  }
  49% {
    opacity: 0%;
  }
  50%{
    opacity: 100%;
  }
  100% {
    opacity: 100%;
  }
}

[hidden] {display: none !important;}

html {height: 100%;scroll-behavior: smooth;scroll-padding-top: 2rem;}
body {background-color: var(--color-bg-cream);color: #444;display: flex;flex-direction: column;font-family: 'IBM-Plex', sans-serif;
		font-size: var(--font-size-one-half);font-weight: normal;justify-content: space-between;line-height: 2rem;margin: 0;min-height: 100%;
		}
	
a,button {cursor: pointer}

a, button, input, select, textarea {
  font-family: "IBM-Plex";
  outline: solid 0.25rem transparent;
  outline-offset: 0.25rem;
}

.a-frame-1-2 {
  animation: opacity-frame-1-2 2s linear infinite forwards;
}
.a-frame-2-2 {
  animation: opacity-frame-2-2 2s linear infinite forwards;
}

.a-tween {
  height: auto;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%
}

.ab-grid {
  display: flex;
  column-gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: space-evenly;
  row-gap: 1rem;
}

.ab-grid > li {
  aspect-ratio: 1/1;
  display: flex;
  flex: 0 1 25%;
  max-width: 20rem;
}

.ab-card {
  align-items: center;
  background: var(--color-green-light);
  border: solid 0.125rem var(--box-shadow-color);
  border-top-left-radius: 0.125rem;
  border-top-right-radius: 0.125rem;
  box-sizing: border-box;
  color: var(--color-green-dark);
  display: flex;
  font-family: "IBM-Plex-Serif", serif;
  font-size: clamp(var(--font-size-three), calc(3rem + 5vw),var(--font-size-five));
  height: 100%;
  justify-content: center;
  line-height: 1;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.ab-card:hover, .ab-card:focus {
  background: var(--color-green-dark);
  color: #FFF;
}

.ab-card > div {
  padding-bottom: 0.5rem;
}

@supports ( text-box-trim: trim-both) {
  .ab-card > div {
    padding-bottom: 0;
    /* not in FireFox */
    text-box-edge: cap alphabetic;
    text-box-trim: trim-both;
  }
}

 .alert-box {
    background-color: var(--color-green-light);
    border: solid 0.125rem var(--color-green-dark);
    border-width: 0.125rem 0;
    box-sizing: border-box;
    padding: var(--body-padding-x);
    margin-bottom: var(--font-size-three);
    word-break: break-word;
}

.alert-box>h2, .alert-box>h3, .alert-box>h4 {
    align-items: center;
    color: var(--color-green-dark);
    display: flex;
    flex-wrap: wrap;
    font-family: 'IBM-Plex', sans-serif;
    justify-content: center;
    line-height: 1;
    text-transform: initial;
}

.alert-box.error {
    background-color: var(--color-orange-lightest);
    border-color: var(--color-orange-dark);
}

.alert-box.error>h2, .alert-box.error>h3, .alert-box.error>h4 {
    color: var(--color-orange-dark);
}


 .audio-button {
    align-content: center;
    background: var(--color-ui-grey-lightest);
    border-radius: 50%;
    display: flex;
    /* aspect ratio not respected otherwise */
    min-height: var(--ui-btn-size);
    justify-content: center;
    min-width: var(--ui-btn-size);
}

.audio-button.playing {
    background-color: var(--color-yellow-medium);
}

.audio-button>img {
    max-width: 1.5rem;
}

.audio-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

audio-word-card {
  flex: 1 0 auto;
}

.audio-word-ipa {
  border-bottom: solid 0.125rem var(--color-ui-grey-md-light);font-family: 'IBM-Plex', sans-serif;
  margin: 0 0 var(--font-size-one);padding-bottom: 0.5rem
}

.audio-word-ipa > [lang="und-fonipa"] {
   opacity: 0.8;
}

.audio-word-letter {font-size: var(--font-size-four); line-height: 1; margin: 0;}

.audio-word-sync {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
  margin: var(--font-size-two) auto 0;
  padding: 1rem;
}
.audio-word-sync-item {
  background-color: #FFF;
  border: solid 0.125rem var(--box-shadow-color);
  border-radius: 0.125rem;
  box-sizing: border-box;
  /* box-shadow: 0 0.25rem 0 0 var(--box-shadow-color); */
  flex: 1 0 13.5rem;
  margin: 1rem;
  max-height: 15.875rem;
  overflow-y: auto;
  padding: 1rem;
  text-align: center;
}
.audio-word-sync-item.error {text-align: left}
.audio-word-sync-item.highlighted, 
.audio-word-sync-item.highlighted > p {
  --box-shadow-color: var(--color-yellow-medium);
  background-color: var(--color-yellow-medium);
  color: var(--color-green-dark);
}

.audio-word-sync-item > hr {margin-bottom: var(--font-size-one)}

.b4-list {
  margin-bottom: var(--font-size-minus-one);
}

.b4-section-break {
  margin-bottom: var(--font-size-four);
}

.bg-cream {
  background: var(--color-bg-cream);
}

.bg-dark {background-color: var(--color-green-dark);}

.bg-dark > h1, .bg-dark > p {
  color: #FFF;
}

.bg-img::before {
  background-image: var(--bg-img-url);
}


.bg-green-light {background-color: var(--color-green-light)}

.bg-img.bg-img-ear::before {
  background-image: url("/_common-content/img/bg-abstract-ear-spiral.svg");
  opacity: 0.1;top: 0;left: calc(50% - 15rem);
  transform: rotate(10deg);
  /* 'center' cause bg-img to overflow above, resulting in loss of padding on Heading when using #Listen */
  transform-origin: bottom;
}

.bg-white {background-color: #FFF}

.breadcrumb{margin:0 auto;max-width:32.5rem;padding-left:1rem;padding-top:calc(1.5rem * var(--base-line-rhythm));width:100%}
.breadcrumb_list{display:inline-flex;list-style-type:none;padding-left:.125rem}
.breadcrumb_break::before{content:"\00a0/\00a0"}

button {
  appearance: none;
  background: none;
  background-color: var(--color-ui-grey-lightest);
  border: none;
}

button, input, select, textarea {
  box-sizing: border-box;
  color: var(--text-body-color);
  font-size: var(--font-size-one-half);
  padding: 0.667rem;
  transition: background-color var(--ui-change-time) var(--ui-change-format), outline-color var(--ui-change-time) var(--ui-change-format) ;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline-color: var(--color-yellow-medium);
}

b,.strong{font-weight:700}

.bg-img::before{
  /* can be rendered later by browser */
  content-visibility: auto;
  /* black to #B4AD96 */
  filter: invert(77%) sepia(7%) saturate(717%) hue-rotate(9deg) brightness(91%) contrast(82%);left: 0;opacity: 0.3;
}

button:hover {
  background-color: var(--color-ui-grey-light);
}

button:active {
  background-color: var(--color-yellow-medium);
}

dfn{font-style: normal;}

dialog {
  position: fixed;
  top: 50%;
  transform: translateY(-25%);
}

dialog::backdrop {
  background: rgba(0,0,0,0.25);
  height: 100%;
  width: 100%;
}

.dialog-inner {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  top: 50%;
  transform: translateY(-25%);
  width: 24rem;
}

em, i {font-style: italic}

.error-img {
  /* https://angel-rs.github.io/css-color-filter-generator/ to get #9B4F00 from #000 */
  filter: brightness(0) saturate(100%) invert(21%) sepia(92%) saturate(3077%) hue-rotate(39deg) brightness(96%) contrast(101%);
  margin-right: var(--font-size-one);
}

footer {margin: 0}
  .form-signup {display: flex;justify-content: center;}

  .form-signup-field {border-radius: 1.5rem 0 0 1.5rem;/* for stacking purposes, over signup button */position: relative;text-align: center;z-index: 1}

.form-signup-submit {align-items: center;background-color: var(--color-yellow-medium);border-radius: 0 1.5rem 1.5rem 0;color: #000;display: flex;justify-content: space-around;width: fit-content}
.form-signup-submit.submitting {background-color: var(--color-yellow-medium)}

.form-signup-submit > .submitting, .form-signup-submit.submitting > .initial {display: none}

.form-signup-submit.submitting > .submitting {display: inline-block}

.form-signup-text {margin-right: 0.5rem}

.form-ui-icon {aspect-ratio: 1/1 ;width: 1.5rem}

h2 {
  border-bottom: solid 0.125rem var(--color-ui-grey-md-light);color: var(--color-green-dark);font-family: "IBM-Plex-Condensed-Light";
  font-size: var(--font-size-four);font-weight: 300;margin-bottom: var(--font-size-four);padding-bottom: var(--font-size-one-half);
}

h3, h4 {color: var(--color-green-dark);font-family: "IBM-Plex-Serif", serif;font-weight: bold;line-height: 1.875;margin: 0 0 1.5rem 0;}

h3 {font-size: var(--font-size-two-half); line-height: 1.25;}
h4 {font-size: var(--font-size-two); line-height: 1.25;}


img {display: block; font-size: var(--font-size-minus-one);height: auto;max-width: 100%}

input {
  appearance: none;
  display: inline-block;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  max-width: 15rem;
  min-height: 2rem;
  padding: 0 0.667rem;
  width: 100%;
}

input[type=range] {
  /* for styling in Chrome */
  -webkit-appearance: none;
  background: transparent;
  height: 1rem;
  margin: 1rem 0;
  min-height: 0;
  padding: 0;
  width: 100%;
}

/*  Must be separate, as browsers will ignore entire rules
    they don't understand.
*/

input[type=range]::-moz-range-track {
  height: 0.667rem;
  cursor: pointer;
  background: var(--color-ui-grey-lighter);
  border-radius: var(--ui-bar-radius);
  width: 100%;
}

input[type=range]::-webkit-slider-runnable-track {
  /* selectivty of default Chrome styles overrides earlier dec. */
  appearance: none;
  height: 0.667rem;
  cursor: pointer;
  background: var(--color-ui-grey-lighter);
  /* updated in JS; hard stops created */
  background: linear-gradient(90deg, var(--color-ui-grey-md-light) var(--audio-one-volume), var(--color-ui-grey-lighter) var(--audio-one-volume));
  border-radius: var(--ui-bar-radius);
  width: 100%;
}


input[type=range]::-moz-range-progress {
  background-color: var(--color-ui-grey-md-light);
  border-radius: var(--ui-bar-radius);
  height: 0.667rem;
}

input[type=range]::-moz-range-thumb {
  background-color: var(--color-green-medium);border: none;border-radius: 1rem;cursor: pointer;height: 1rem;width: 1rem;
}

input[type=range]::-webkit-slider-thumb {
  /* selectivty of default Chrome styles overrides earlier dec. */
  appearance: none;
  background-color: var(--color-green-medium);
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  height: 1rem;
  position: relative;
  /* border on track affects webkit thumb position, knocking down etc. */
  top: -0.125rem;
  width: 1rem;
}
/* for script 'a' */
.ipa-lt-alt {
  font-family: 'IBM-Plex';
  font-feature-settings: "ss01" 1;
}

.labelled {position: relative}
.labelled.pronunciation {padding: 0 var(--padding-pronunciation); width: 15rem}
.label {
  background-color: inherit;left: 0;line-height: 1;
  position: absolute; top: calc(50% - 1rem)}
.label.right{left: auto; right: 0}

li {margin-bottom: var(--font-size-one);}

.mainNav_hidden:not(:focus-within){transform:translate(0,-100%)}
.mainNav>div{display:flex;align-items:center;justify-content:space-between}
.mainNav_links{width:100%;max-width:20rem;display:flex;justify-content:flex-end}
.mainNav_links > a {
  border-top:solid 0.125rem transparent;
  box-sizing:border-box;
  color:#FFF;
  letter-spacing:.0625rem;
  min-width:6rem;margin-left:1rem;
  padding:.667rem 1rem;text-decoration:none;
  text-align:center;
}
.mainNav_links>ul>li{list-style-type:none}
.mainNav_links>ul>li::marker{display:none}
.mainNav_links>details{position:relative}
.mainNav_links>ul>li{box-sizing:border-box;padding:calc(1.25rem * var(--base-line-rhythm)) 0;list-style-type:none}
.mainNav_logo{display:flex;align-items:center;height:2.25rem}
.mainNav_logo>img{background:0 0}
.mainNav_logo::before{opacity:0}
.mainNav_logo{min-height: 2.25rem}
nav>ul{list-style:none;padding-left:0}


noscript {
  background-color: #999;
  border-bottom: solid 0.125rem var(--color-orange-medium);
  box-sizing: border-box;
  /* need this or no styles will apply (Opera) */
  display: block;
  padding: 1rem;
}

p + section {margin-top: var(--font-size-four); padding: var(--font-size-four) 0}

.page-header-cta {
  align-items: center;
  background: var(--color-bg-cream);
  border-bottom: solid 0.375rem var(--color-blue-light);
  bottom: 0; box-sizing: border-box;
  color: #000;
  box-sizing: border-box;
  display: flex;
  height: var(--ui-btn-size);
  justify-content: center;
  margin: 0 auto var(--font-size-five);
  padding: 1rem;
  text-decoration: none;
  width: 8rem;
}

.page-header-cta.dark {
  background: var(--color-green-dark); color: #FFF;
}

.page-header-cta > .ui {
  margin-left: 0.125rem;
  max-width: 1rem;
}
.page-header-cta.dark > .link-cta-icon {filter: invert(100%)}


.page-header-subtitle > .txt-subtle {color: var(--color-ui-grey-light); font-size: 1.5rem;}

.panel {
  border: solid 0.125rem var(--box-shadow-color);
  border-radius: 1rem;
  box-sizing: border-box;
  box-shadow: 0 0.25rem 0 0 var(--box-shadow-color);
  padding: 1.5rem;
}


.pronunciation {
  border: solid 0.125rem var(--box-shadow-color);
  border-radius: 0.125rem;
  background-color: var(--color-ui-grey-lightest-bluey);
  box-shadow: 0 0.25rem 0 0 var(--box-shadow-color);
  box-sizing: border-box;
  margin: 1rem auto 2.25rem;
  max-width: 100%;
  overflow: auto;
  padding:0;
  padding-right: var(--padding-pronunciation);
  position: relative;
  width: 10rem;
}

.pronunciation.full-face {
  --padding-pronunciation: 2rem;
}

.pronunciation > .a-tween {
  /* must match padding-right of pronunciation */
  max-width: calc(100% - var(--padding-pronunciation));
}

section > p:last-child {margin-bottom: 0}

.section-break {
  background: none;
  color: var(--color-ui-grey-md);
  font-size: 1.5rem;
  height: auto;
  margin: var(--font-size-four) auto;
  text-align: center;
}

.section-break::before {
  content: "\2042";
  display: block;
}

section {border-top: solid 0.25rem var(--color-ui-grey-md);padding: var(--font-size-five) 0}

.txt-blue-light {color: var(--color-blue-light)}
.txt-center{text-align: center}
.txt-green-dark {color: var(--color-green-dark);}
.txt-x-red {
  /* character needs &#xFE0E; IMMEDIATELY after, since Safari doesn't support this */
  font-variant-emoji: emoji;font-weight: bold;color: var(--color-red-medium);}

.ui {aspect-ratio: 1 / 1;width: 2.25rem;}

.ui-play {
  position: relative;
  left: 0.125rem;
}

.ui-rotating {
  animation: rotating 2s linear infinite;
  transform-origin: center;
}

.ui-wrapper {
  display: flex;
}

.v-hide {
  visibility: hidden;
}

.wrap-icon-text {
  display: flex;
  align-items: center;
}

/*
  UTILITY CLASSES
  */
  [disabled] {pointer-events: none}
  [disabled]:focus{outline: none}
  .disabled{cursor: not-allowed;opacity: 0.25}
  .d-lg,.d-md,.d-s,.d-xs-none, .d-b.d-xs-none, .d-none{display: none;}
  .f-bold {font-weight: 700;}
  .f-sans {font-family: 'IBM-Plex', sans-serif;}
  .f-cond-l {font-family: 'IBM-Plex-Condensed-Light', sans-serif;}
  .f-normal{font-weight: normal}
  .f-size-3{font-size: var(--font-size-four);}
  .f-size-11{font-size:var(--font-size-eleven)}
  /*todo: conver these to rem value hints , e.g. mb-1-5 is 1.5rem etc.*/
  
  .mb-0{margin-bottom:0}
  .mb-3 {margin-bottom: var(--font-size-four)}
  .mb-5{margin-bottom: var(--font-size-five);}

  @media screen and (min-width: 36rem) {
    .pronunciation{width: 15rem}
    .d-xs{display:none}
    .d-b.d-xs-none {display: block;}
    .d-s,.d-xs-none{display:inherit}
  }
  /*  medium >= 768px */
  @media screen and (min-width: 48rem) {
    .d-md-none, .d-s{display:none}
    .d-md,.d-s-none{display: inherit} 
  }
  /* large >= 992px (62rem) */
  @media screen and (min-width:75rem){
    /* include this style */
    .breadcrumb {padding-left: 0}.d-lg-none {display: none}.mainNav>div{margin:0 auto;max-width:64rem}
  }


