/* Divi bridge - polished legacy pages. Temporary: loaded only on pages that still contain legacy Divi markup. */

/* The old pages carry their own headings, so the automatic title/date/category are kept for screen readers only. */
.shbw-legacy .wp-block-post-title,
.shbw-legacy .wp-block-post-date,
.shbw-legacy .taxonomy-category {
  position: absolute !important; width: 1px; height: 1px; margin: -1px !important; padding: 0 !important; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.shbw-legacy main.wp-block-group { padding-top: 1.5rem !important; padding-bottom: 3rem !important; }

/* page structure */
.entry-content > .et-s { max-width: 60rem; margin-inline: auto; padding: .25rem 0; }
.et-s:empty { display: none; }
.et-r { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-block: .5rem; align-items: flex-start; }
.et-c { min-width: 0; flex: 1 1 100%; }
@media (min-width: 48rem) {
  .et-c--4_4 { flex-basis: 100%; }
  .et-c--3_4 { flex-basis: calc(75% - 1.5rem); }
  .et-c--1_4 { flex-basis: calc(25% - 1.5rem); }
  .et-c--2_3 { flex-basis: calc(66.666% - 1.35rem); }
  .et-c--1_3 { flex-basis: calc(33.333% - 1.35rem); }
  .et-c--1_2 { flex-basis: calc(50% - 1rem); }
  .et-c--3_5 { flex-basis: calc(60% - 1.2rem); }
  .et-c--2_5 { flex-basis: calc(40% - 1.2rem); }
  .et-c--1_5 { flex-basis: calc(20% - 1.6rem); }
}

/* text: one clear type system */
.et-t { font-size: 1.0625rem; line-height: 1.75; color: #2A2F2C; }
.et-t > * + * { margin-block-start: 0; }
.et-t p { margin: 0 0 1rem; }
.et-t h2, .et-t h3, .et-t h4 { font-family: var(--wp--preset--font-family--heading); font-weight: 600; text-wrap: balance; }
.et-t h2 { font-size: clamp(1.65rem, 1.3rem + 1.5vw, 2.25rem); line-height: 1.2; color: #143F29; margin: 2rem 0 .9rem; }
.et-t h3 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.6rem); line-height: 1.25; color: #1E5B3A; margin: 1.75rem 0 .6rem; }
.et-t h4 { font-family: var(--wp--preset--font-family--body); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: #3d6d1f; margin: 1.5rem 0 .5rem; }
.et-t > :first-child { margin-top: 0 !important; }
.et-t ul, .et-t ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.et-t li { margin: .3rem 0; padding-left: .15rem; }
.et-t ul > li::marker { color: #1B5FA8; font-size: 1.15em; }
.et-t ol > li::marker { color: #000; font-weight: 800; }
.et-t a { color: #1E5B3A; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.et-t a:hover { color: #143F29; }
.et-t strong, .et-t b { font-weight: 700; }
.et-t blockquote { margin: 1.25rem 0; padding: .25rem 1.1rem; border-left: 4px solid #86B77A; background: #EAF2E6; border-radius: 0 10px 10px 0; }
.et-t table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .98rem; }
.et-t th { background: #EAF2E6; color: #143F29; text-align: left; font-weight: 700; }
.et-t th, .et-t td { border: 1px solid #d9e0d6; padding: .55rem .75rem; vertical-align: top; }
.et-t tbody tr:nth-child(even) td { background: #fbfcfa; }

/* images and book covers: modest size, soft corners */
.et-t img, .et-img img { max-width: min(100%, 22rem); height: auto; border-radius: 10px; background: #fff; }
.et-t p > img:only-child { display: block; margin: .5rem auto; }
.et-img { margin-block: .5rem; }
.et-img, .et-img--center, .et-img--left, .et-img--right { text-align: center; }

/* buttons: one consistent style (the repeated global promo buttons are removed by the bridge) */
.et-btn { margin: .35rem 0; }
.et-btn--center { text-align: center; }
.et-btn--right { text-align: right; }
.et-btn .wp-element-button { display: inline-block; background: #1E5B3A; color: #fff; padding: .65rem 1.25rem; border-radius: 10px; font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; border: 2px solid #1E5B3A; transition: background .15s ease, color .15s ease; }
.et-btn .wp-element-button:hover { background: #fff; color: #1E5B3A; }

/* rules, spacing, audio, toggles, socials, code */
.et-hr { border: 0; border-top: 1px solid #d9e0d6; margin: 1.5rem 0; }
.et-space { height: .35rem; }
.et-audio { margin: .55rem 0; padding: .7rem .9rem; background: #fff; border: 1px solid #e0e6dc; border-radius: 12px; }
.et-audio-title { margin: 0 0 .4rem; font-weight: 600; color: #143F29; }
.et-audio audio { width: 100%; display: block; }
.et-audio-inline { width: 100%; max-width: 22rem; display: block; }
.et-toggle { border: 1px solid #d9e0d6; border-radius: 12px; margin: .6rem 0; background: #fff; }
.et-toggle > summary { cursor: pointer; padding: .85rem 1.1rem; font-weight: 600; color: #1E5B3A; list-style-position: inside; }
.et-toggle[open] > summary { border-bottom: 1px solid #e6ebe3; }
.et-toggle > div { padding: .9rem 1.1rem 1rem; }
.et-socials { display: flex; gap: .9rem; flex-wrap: wrap; }
.et-code { overflow-x: auto; }
/* visible page title taken from the first short bold line of an old page */
.et-pagehead { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem) !important; line-height: 1.15 !important; color: #143F29 !important; text-align: center; font-weight: 600; margin: .5rem 0 1.25rem !important; text-wrap: balance; }
.et-pagehead::after { content: ""; display: block; width: 4rem; height: 4px; margin: .8rem auto 0; background: #86B77A; border-radius: 3px; }

/* table of contents: a designed component built from the old numbered lists */
.et-t--toc { max-width: 46rem; margin-inline: auto; }
.shbw-toc { background: #fff; border: 1px solid #e0e6dc; border-radius: 18px; padding: clamp(1.25rem, 1rem + 1.6vw, 2.5rem); box-shadow: 0 1px 2px rgba(20,40,30,.06), 0 12px 32px rgba(20,40,30,.08); }
.et-t .shbw-toc__title { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem); text-align: center; color: #143F29; margin: 0 0 1.5rem !important; }
.shbw-toc__title::after { content: ""; display: block; width: 3.5rem; height: 3px; margin: .75rem auto 0; background: #86B77A; border-radius: 2px; }
.et-t .shbw-toc__list { list-style: none; margin: 0; padding: 0; display: grid; }
.shbw-toc__part { display: flex; align-items: center; gap: .8rem; margin: 1.5rem 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #3d6d1f; }
.shbw-toc__part::after { content: ""; flex: 1; height: 1px; background: #d9e4d3; }
.et-t .shbw-toc__chapter { margin: 0; padding: .85rem 0; border-bottom: 1px dashed #e0e6dc; }
.et-t .shbw-toc__chapter:last-child { border-bottom: 0; }
.shbw-toc__head { display: flex; align-items: center; gap: 1rem; }
.shbw-toc__num { flex: none; display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding: 0 .35rem; border-radius: 999px; background: #1E5B3A; color: #fff; font-weight: 700; font-size: .95rem; line-height: 1; }
.shbw-toc__name { font-family: var(--wp--preset--font-family--heading); font-size: 1.22rem; font-weight: 600; line-height: 1.3; color: #143F29; }
.et-t .shbw-toc__sub { list-style: none; margin: .6rem 0 0 3.1rem; padding: 0; display: grid; gap: .3rem; color: #3b463f; }
.et-t .shbw-toc__sub li { position: relative; margin: 0; padding-left: 1.1rem; }
.shbw-toc__sub li::before { content: ""; position: absolute; left: 0; top: .72em; width: .42rem; height: .42rem; border-radius: 50%; background: #86B77A; }
.et-t .shbw-toc__tasks { list-style: none; margin: .7rem 0 0 3.1rem; padding: 0; display: grid; gap: .5rem; }
.et-t .shbw-toc__tasks li { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; }
.shbw-toc__task { min-width: 4.6rem; font-weight: 700; color: #1E5B3A; }
.shbw-toc__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.shbw-toc__chips span { background: #EAF2E6; color: #143F29; border: 1px solid #cfe0c8; border-radius: 999px; padding: .12rem .75rem; font-size: .88rem; font-weight: 600; }
@media (max-width: 36rem) { .et-t .shbw-toc__sub, .et-t .shbw-toc__tasks { margin-left: 0; } .shbw-toc__name { font-size: 1.1rem; } }
/* a column with several buttons becomes a grid of link cards (premium menu pages) */
.et-r:has(.et-btn ~ .et-btn ~ .et-btn) > .et-c { flex-basis: 100%; }
.et-r:has(.et-btn ~ .et-btn ~ .et-btn) > .et-c:not(:has(.et-t, .et-btn)) { display: none; }
.et-c:has(.et-btn ~ .et-btn ~ .et-btn) { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; max-width: 50rem; margin-inline: auto; align-content: start; }
.et-c:has(.et-btn ~ .et-btn ~ .et-btn) > :not(.et-btn) { grid-column: 1 / -1; }
.et-c:has(.et-btn ~ .et-btn ~ .et-btn) > .et-t { text-align: center; max-width: 40rem; margin-inline: auto; }
.et-c:has(.et-btn ~ .et-btn ~ .et-btn) > .et-t p { font-size: 1.1rem; color: #3b463f; margin: 0 0 .6rem; }
.et-c:has(.et-btn ~ .et-btn ~ .et-btn) > .et-space { display: none; }
.et-c:has(.et-btn ~ .et-btn ~ .et-btn) > .et-btn { margin: 0; text-align: left; }
.et-c:has(.et-btn ~ .et-btn ~ .et-btn) .et-btn .wp-element-button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; box-sizing: border-box; min-height: 4.5rem; background: #fff; color: #143F29; border: 1px solid #d9e3d6; border-left: 6px solid #86B77A; border-radius: 14px; padding: 1rem 1.25rem; font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; font-weight: 600; line-height: 1.25; box-shadow: 0 1px 2px rgba(20,63,41,.06), 0 6px 16px rgba(20,63,41,.06); transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
.et-c:has(.et-btn ~ .et-btn ~ .et-btn) .et-btn .wp-element-button::after { content: "\2192"; font-family: system-ui, sans-serif; color: #2E7D4F; font-size: 1.3rem; flex: none; }
.et-c:has(.et-btn ~ .et-btn ~ .et-btn) .et-btn .wp-element-button:hover, .et-c:has(.et-btn ~ .et-btn ~ .et-btn) .et-btn .wp-element-button:focus-visible { background: #1E5B3A; color: #fff; border-color: #1E5B3A; border-left-color: #86B77A; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,63,41,.18); }
.et-c:has(.et-btn ~ .et-btn ~ .et-btn) .et-btn .wp-element-button:hover::after { color: #fff; }
/* ===== DELE exercise pages: every title, task, question and answer panel is easy to spot ===== */
.dele-tagline { text-align: center; font-family: var(--wp--preset--font-family--heading); font-style: italic; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem) !important; color: #2E7D4F; margin: 0 0 2rem !important; }
.et-t .dele-level { margin: 4rem 0 1.25rem !important; padding: 1.1rem 1.5rem; text-align: center; font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem) !important; font-weight: 700; line-height: 1.2 !important; letter-spacing: .01em; color: #fff !important; background: linear-gradient(135deg, #143F29, #2E7D4F); border-radius: 16px; box-shadow: 0 10px 26px rgba(20,63,41,.25); }
.et-t .dele-prueba { margin: 0 0 .5rem !important; text-align: center; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #B5472B !important; }
.et-t .dele-tarea { margin: 1rem auto 1.5rem !important; width: fit-content; max-width: 100%; text-align: center; font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem) !important; font-weight: 700; color: #1B5FA8 !important; padding: .35rem 1.4rem; background: #EAF2FB; border: 2px solid #1B5FA8; border-radius: 999px; }
.et-t .dele-label { margin: 2rem 0 .4rem !important; padding-left: .7rem; border-left: 5px solid #E0A100; font-family: system-ui, sans-serif; font-size: .85rem !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8A5F00 !important; }
.et-t .dele-pregunta { display: inline-block; margin: 2.2rem 0 .6rem !important; padding: .3rem 1rem; background: #143F29; color: #fff !important; border-radius: 8px; font-family: system-ui, sans-serif; font-size: .9rem !important; font-weight: 800; letter-spacing: .1em; box-shadow: 0 3px 8px rgba(20,63,41,.25); }
.dele-question { background: #EEF6FC; border: 1px solid #c3dbef; border-left: 6px solid #2B7BB9; border-radius: 12px; padding: 1rem 1.3rem; box-shadow: 0 4px 14px rgba(43,123,185,.12); }
.dele-question p { margin: .45rem 0; }
.dele-question p:first-child { font-size: 1.15rem; color: #0E3A5F; margin-top: 0; }
.dele-question p:first-child strong { font-weight: 700; }
.dele-question p:not(:first-child) { padding-left: .6rem; }
.dele-email { background: #FFFDF6; border: 1px solid #e6dcb8; border-top: 6px solid #E0A100; border-radius: 6px; padding: 1.2rem 1.6rem; font-family: Georgia, "Times New Roman", serif; box-shadow: 0 8px 22px rgba(120,90,0,.14); margin: 1rem 0; }
.dele-email p { margin: .5rem 0; }
.dele-email p:nth-child(-n+3) { font-family: system-ui, sans-serif; font-size: .95rem; color: #5b4a12; }
.et-toggle { overflow: hidden; border: 0; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.et-toggle > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.3rem; font-size: 1.05rem; font-weight: 700; color: #fff; background: #1E5B3A; }
.et-toggle > summary::-webkit-details-marker { display: none; }
.et-toggle > summary::after { content: "+"; flex: none; width: 1.7rem; height: 1.7rem; line-height: 1.55rem; text-align: center; font-size: 1.3rem; border-radius: 50%; background: rgba(255,255,255,.22); }
.et-toggle[open] > summary::after { content: "\2212"; }
.et-toggle--answers > summary { background: linear-gradient(135deg, #1E7A46, #2E9B5F); }
.et-toggle--translation > summary { background: linear-gradient(135deg, #5B3A94, #7A55B8); }
.et-toggle--transcript > summary { background: linear-gradient(135deg, #1B5FA8, #2E7FCB); }
.et-toggle--answers[open] > div { background: #EDF7F0; }
.et-toggle--translation[open] > div { background: #F4EFFA; }
.et-toggle--transcript[open] > div { background: #EAF2FB; }
.et-toggle > div pre { margin: 0; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; line-height: 1.9; color: #143F29; background: transparent; border: 0; padding: 0; }
.et-toggle--translation[open] > div, .et-toggle--transcript[open] > div { border-top: 3px solid rgba(0,0,0,.08); }.et-t .dele-item { display: inline-block; margin: 1.4rem 0 .4rem !important; padding: .2rem .8rem; background: #FFF3D6; color: #7A4F00 !important; border: 1px solid #E0A100; border-radius: 6px; font-family: system-ui, sans-serif; font-size: .85rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
/* pictures that sit side by side (exercise choices) all get the same frame */
.et-r:has(> .et-c ~ .et-c .et-img) .et-img { aspect-ratio: 4 / 3; margin: .5rem 0 1.5rem; background: #fff; border: 1px solid #e1e7de; border-radius: 12px; box-shadow: 0 4px 14px rgba(20,63,41,.1); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.et-r:has(> .et-c ~ .et-c .et-img) .et-img a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.et-r:has(> .et-c ~ .et-c .et-img) .et-img img { width: 100%; height: 100%; max-width: none; object-fit: contain; border-radius: 0; padding: .5rem; box-sizing: border-box; }
/* Learn Spanish menu lines -> numbered cards (re-uses the link-card grid above) */
.et-btn .wp-element-button .et-num { flex: none; display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-right: .8rem; border-radius: 50%; background: #1E5B3A; color: #fff; font-family: system-ui, sans-serif; font-size: .95rem; font-weight: 800; }
.et-btn .wp-element-button:hover .et-num { background: #86B77A; color: #143F29; }
.et-btn .wp-element-button .et-lbl { flex: 1; }
/* numbered practice sentences */
.shbw-sentences { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .8rem; }
.shbw-sentences li { position: relative; padding: .9rem 1.1rem .9rem 4rem; background: #fff; border: 1px solid #dbe5d8; border-radius: 12px; box-shadow: 0 3px 10px rgba(20,63,41,.07); }
.shbw-sentences li::before { content: attr(value); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #1E5B3A; color: #fff; font-family: system-ui, sans-serif; font-weight: 800; font-size: .95rem; }
.shbw-sentences .s-es { display: block; font-size: 1.15rem; color: #143F29; }
.shbw-sentences .s-es strong, .shbw-sentences .s-es b { color: #B5472B; text-decoration: underline; text-decoration-color: #E0A100; text-underline-offset: 3px; }
.shbw-sentences .s-en { display: block; margin-top: .25rem; font-style: italic; color: #5b665f; }
/* post list (Spanish verb tenses / grammar) */
.shbw-postgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.shbw-postcard { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid #dbe5d8; border-top: 5px solid #86B77A; border-radius: 14px; box-shadow: 0 3px 10px rgba(20,63,41,.08); text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.shbw-postcard strong { font-family: var(--wp--preset--font-family--heading); font-size: 1.2rem; line-height: 1.25; color: #143F29; }
.shbw-postcard span { font-size: .95rem; color: #4a554e; flex: 1; }
.shbw-postcard em { font-style: normal; font-weight: 700; font-size: .9rem; color: #1B5FA8; }
.shbw-postcard:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,63,41,.16); }
/* lesson posts (verb tenses, grammar): visible title, readable text, styled tables and sub-headings */
.shbw-legacy main:not(:has(.et-pagehead)) .wp-block-post-title { position: static !important; width: 100%; max-width: 56rem !important; margin-inline: auto !important; text-wrap: balance; height: auto; margin: 0 auto 1.5rem !important; clip: auto; clip-path: none; white-space: normal; overflow: visible; text-align: center; font-family: var(--wp--preset--font-family--heading); font-weight: 600; line-height: 1.15; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); color: #143F29; }
.shbw-legacy main:not(:has(.et-pagehead)) .wp-block-post-title::after { content: ""; display: block; width: 4rem; height: 4px; margin: .8rem auto 0; background: #86B77A; border-radius: 3px; }
.single-post.shbw-legacy .et-t { font-size: 1.1rem; line-height: 1.7; }
.et-t p:has(> strong > u:only-child), .et-t p:has(> u > strong:only-child) { margin: 2rem 0 .6rem; padding: .35rem .9rem; display: block; width: fit-content; background: #EAF2FB; border-left: 5px solid #1B5FA8; border-radius: 4px; font-family: var(--wp--preset--font-family--heading); font-size: 1.2rem; color: #0E3A5F; }
.et-t p:has(> strong > u:only-child) u, .et-t p:has(> u > strong:only-child) u { text-decoration: none; }
.et-t table { border-collapse: separate; border-spacing: 0; margin: 1.2rem 0; width: auto !important; max-width: 100%; overflow: hidden; border: 1px solid #cfdccb; border-radius: 12px; box-shadow: 0 4px 14px rgba(20,63,41,.08); background: #fff; }
.et-t table td, .et-t table th { padding: .55rem 1rem; border-bottom: 1px solid #e3ebe0; width: auto !important; }
.et-t table p { margin: 0; }
.et-t table tr:first-child td, .et-t table tr:first-child th { background: #1E5B3A; color: #fff; font-weight: 700; }
.et-t table tr:first-child td p, .et-t table tr:first-child td strong { color: #fff; }
.et-t table tr:nth-child(even) td { background: #F3F8F1; }
.et-t table tr:last-child td { border-bottom: 0; }
.et-t table td:first-child { font-weight: 600; color: #143F29; }
.et-t table tr:first-child td:first-child { color: #fff; }
/* images are left-aligned (the picture grids keep their equal frames) */
.et-img, .et-img--center, .et-img--right { text-align: left; }
.et-t img.aligncenter, .et-t img.alignright, .et-t img.alignnone, .et-t img { display: block; margin-left: 0 !important; margin-right: auto !important; float: none; }
.et-t p > a > img, .et-t p > img { margin-block: .6rem; }
.et-r:has(> .et-c ~ .et-c .et-img) .et-img { text-align: center; }
/* membership plans */
.shbw-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.5rem; align-items: stretch; margin: 2rem 0; max-width: 72rem; margin-inline: auto; }
.shbw-plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.6rem 1.6rem; background: #fff; border: 1px solid #d9e3d6; border-top: 8px solid #86B77A; border-radius: 18px; box-shadow: 0 6px 20px rgba(20,63,41,.1); }
.shbw-plan--featured { border-top-color: #E0A100; box-shadow: 0 14px 38px rgba(20,63,41,.22); }
.shbw-plan__ribbon { position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); padding: .3rem 1.1rem; background: #E0A100; color: #2b2100; border-radius: 999px; font-family: system-ui, sans-serif; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.shbw-plan__name { margin: 0; text-align: center; font-family: var(--wp--preset--font-family--heading); font-size: 2rem; color: #143F29; }
.shbw-plan__sub { margin: .1rem 0 0; text-align: center; font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b766f; }
.shbw-plan__price { margin: 1rem 0 1.2rem; padding-bottom: 1.2rem; text-align: center; border-bottom: 1px solid #e3ebe0; }
.shbw-plan__price .amt { font-family: var(--wp--preset--font-family--heading); font-size: 2.9rem; font-weight: 700; color: #1E5B3A; line-height: 1; }
.shbw-plan__price .cur { font-size: 1rem; font-weight: 700; color: #B5472B; vertical-align: top; margin-right: .15rem; }
.shbw-plan__price .per { white-space: nowrap; font-size: .9rem; font-weight: 700; color: #6b766f; margin-left: .3rem; }
.shbw-plan__list { list-style: none; margin: 0 0 1.5rem; padding: 0; flex: 1; display: grid; gap: .65rem; }
.shbw-plan__list li { position: relative; padding-left: 1.7rem; font-size: .98rem; line-height: 1.5; color: #2b3a30; }
.shbw-plan__list li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 1.2rem; height: 1.2rem; line-height: 1.2rem; text-align: center; border-radius: 50%; background: #1E5B3A; color: #fff; font-size: .75rem; font-weight: 800; }
.shbw-plan__list a { color: #1B5FA8; }
.shbw-plan__cta { margin: 0; text-align: center; }
.shbw-plan__cta .wp-element-button { display: block; padding: .85rem 1rem; background: #1E5B3A; color: #fff; border: 2px solid #1E5B3A; border-radius: 12px; font-size: 1.1rem; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.shbw-plan__cta .wp-element-button:hover { background: #fff; color: #1E5B3A; }
.shbw-plan--featured .shbw-plan__cta .wp-element-button { background: #E0A100; border-color: #E0A100; color: #2b2100; }
.shbw-plan--featured .shbw-plan__cta .wp-element-button:hover { background: #fff; color: #7A5600; }
.et-t .plans-title { text-align: center; margin: 0 0 .5rem !important; font-family: system-ui, sans-serif; font-size: 1rem !important; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #B5472B !important; }
/* videos */
.et-video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 56rem; margin: 1.5rem 0; border-radius: 14px; overflow: hidden; background: #0b1a12; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.et-video iframe, .et-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* reader comments (read-only) */
.shbw-comments { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid #dbe5d8; }
.shbw-comments__title { font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem !important; color: #143F29; margin: 0 0 1rem !important; }
.shbw-comments__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.shbw-comment { padding: 1rem 1.2rem; background: #fff; border: 1px solid #dbe5d8; border-left: 5px solid #86B77A; border-radius: 12px; }
.shbw-comment__meta { margin: 0 0 .4rem; font-size: .9rem; color: #5b665f; }
.shbw-comment__meta strong { color: #143F29; margin-right: .5rem; }
.shbw-comment__text p { margin: .3rem 0; }
/* audio tables (verbs, cognates, vocabulary): clean grid, two-colour column pairs like the original */
.audio-table, .audio-table1 { margin: 1rem 0 1.5rem; border: 1px solid #cfdccb; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 3px 12px rgba(20,63,41,.07); }
.audio-table-line, .audio-table-line1 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 1px solid #e1e9de; }
.audio-table-line:last-child, .audio-table-line1:last-child { border-bottom: 0; }
.audio-table-cell, .audio-table-cell_1 { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .7rem; text-align: center; border-right: 1px solid #e1e9de; font-size: 1rem; line-height: 1.4; color: #1d2b22; min-width: 0; overflow-wrap: anywhere; }
.audio-table-cell:last-child, .audio-table-cell_1:last-child { border-right: 0; }
.audio-table-line > .audio-table-cell:nth-child(4n+1), .audio-table-line > .audio-table-cell:nth-child(4n+2) { background: #EDF7EC; }
.audio-table-line > .audio-table-cell:nth-child(4n+3), .audio-table-line > .audio-table-cell:nth-child(4n+4) { background: #EAF4FB; }
.audio-table-line:first-child > .audio-table-cell, .audio-table-line1:first-child > .audio-table-cell_1 { background: #1E5B3A; color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .02em; }
.audio-table-line:first-child > .audio-table-cell *, .audio-table-line1:first-child > .audio-table-cell_1 * { color: #fff; }
.audio-table-line1:nth-child(odd):not(:first-child) > .audio-table-cell_1 { background: #F3F8F1; }
.audio-table-cell p, .audio-table-cell_1 p { margin: 0; }
.audio-table-cell br, .audio-table-cell_1 br { display: none; }
@media (max-width: 640px) {
	.audio-table-cell, .audio-table-cell_1 { font-size: .9rem; padding: .45rem .4rem; }
}
/* play button that replaces the old Flash-era player */
.shbw-play { flex: none; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: #1E5B3A; color: #fff; cursor: pointer; display: inline-grid; place-items: center; box-shadow: 0 2px 6px rgba(20,63,41,.3); transition: transform .12s ease, background .12s ease; }
.shbw-play::before { content: ""; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.shbw-play:hover { transform: scale(1.08); background: #2E7D4F; }
.shbw-play:focus-visible { outline: 3px solid #E0A100; outline-offset: 2px; }
.shbw-play.is-playing { background: #B5472B; }
.shbw-play.is-playing::before { margin-left: 0; width: 11px; height: 11px; border: 0; background: #fff; border-radius: 2px; }.audio-table > p, .audio-table1 > p { display: none; }
/* short bold lines become sub-headings */
.et-t .et-subhead { margin: 2rem 0 .75rem !important; font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem) !important; font-weight: 700; color: #143F29 !important; line-height: 1.25 !important; }
.et-t .et-subhead::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: .4rem; background: #86B77A; border-radius: 2px; }
.et-t .et-subhead.is-center { text-align: center; }
.et-t .et-subhead.is-center::after { margin-left: auto; margin-right: auto; }

/* book pages: the cover is centred */
.shbw-bookpage .et-img, .shbw-bookpage .et-img--left, .shbw-bookpage .et-img--center { text-align: center; }
.shbw-bookpage .et-img img, .shbw-bookpage .et-t img { display: block; margin-left: auto !important; margin-right: auto !important; }
.shbw-bookpage .et-img a { display: block; }
/* covers: the white around the book picture disappears into the page colour */
.shbw-bookpage .et-img img, .shbw-bookpage .et-t img, .shbw-books img, .et-t img[src*="/uploads/"][alt=""] { background: transparent !important; }
.shbw-bookpage .et-img img, .shbw-bookpage .et-t img, .shbw-books img { mix-blend-mode: multiply; box-shadow: none !important; border-radius: 0 !important; }
.shbw-books img { object-fit: contain; aspect-ratio: auto; }
/* tense titles above the quiz buttons */
.et-t .tense-title { margin: 2.2rem 0 .6rem !important; text-align: left; font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem) !important; font-weight: 700; line-height: 1.2 !important; color: #1B5FA8 !important; letter-spacing: .01em; }
.et-t .tense-title::after { content: ""; display: block; width: 3rem; height: 3px; margin: .45rem 0 0; background: #E0A100; border-radius: 2px; }