/* Idioms and Phrases directory and lessons, using the shared WordDecode design tokens. */
.wd-idiom-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--wd-muted); font-size: .875rem; margin-bottom: 24px; overflow-wrap: anywhere; }
.wd-idiom-breadcrumb a { color: var(--wd-muted); }
.wd-idiom-eyebrow, .wd-idiom-label { color: var(--wd-indigo); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wd-idiom-directory-header h1 { margin: 8px 0 16px; }
.wd-idiom-eyebrow { margin-bottom: 12px; }
.wd-idiom-directory-description { color: var(--wd-muted); max-width: 680px; margin-bottom: 28px; }
.wd-idiom-search { max-width: 680px; margin-bottom: 28px; }
.wd-idiom-search label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
.wd-idiom-search-row { display: flex; gap: 10px; }
.wd-idiom-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.wd-idiom-filters a:hover { border-color: var(--wd-indigo); text-decoration: none; }
.wd-idiom-search input[type='search'] { flex: 1; min-width: 0; width: 100%; min-height: 52px; background: white; color: var(--wd-ink); border: 2px solid var(--wd-ink); border-radius: 999px; padding: 12px 20px; font: inherit; }
.wd-idiom-filters a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 1px solid #c9cfe3; border-radius: 999px; background: white; color: var(--wd-ink); font-weight: 600; font-size: .875rem; }
.wd-idiom-filters a[aria-current] { color: white; background: var(--wd-ink); border-color: var(--wd-ink); }
.wd-idiom-results-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 20px; font-size: .875rem; color: var(--wd-muted); }
.wd-idiom-results-heading p { margin: 0; }
.wd-idiom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wd-idiom-card { display: flex; flex-direction: column; gap: 12px; background: white; color: var(--wd-ink); border: 1px solid var(--wd-border); border-radius: 22px; padding: 28px; min-width: 0; }
.wd-idiom-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wd-idiom-card .wd-idiom-label { color: #8a6100; }
.wd-idiom-card h2 { font-size: 1.5rem; margin: 0; }
.wd-idiom-card h2 a { color: inherit; }
.wd-idiom-card p { margin: 0; }
.wd-idiom-card-link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .9375rem; align-self: start; }
.wd-idiom-tone-dark { color: white; background: var(--wd-ink); border-color: var(--wd-ink); }
.wd-idiom-tone-dark :is(.wd-idiom-label, .wd-idiom-card-link) { color: var(--wd-amber); }
.wd-idiom-tone-amber { background: var(--wd-amber); border-color: var(--wd-amber); }
.wd-idiom-tone-amber :is(.wd-idiom-label, .wd-idiom-card-link) { color: var(--wd-ink); }
.wd-idiom-empty { background: white; padding: 28px; border: 1px solid var(--wd-border); border-radius: 20px; }
.wd-idiom-empty h2 { font-size: 1.375rem; }
.wd-idiom-pagination { margin-top: 40px; }
.wd-idiom-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; }
.wd-idiom-pagination ul.page-numbers { border: 0; background: transparent; }
.wd-idiom-hero { background: var(--wd-ink); color: white; border-radius: 28px; padding: clamp(28px, 4vw, 44px); margin-bottom: 32px; }
.wd-idiom-hero .wd-idiom-eyebrow { color: var(--wd-amber); }
.wd-idiom-hero h1 { margin: 12px 0; }
.wd-idiom-lesson-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.wd-idiom-main, .wd-idiom-sidebar { min-width: 0; }
.wd-idiom-panel { background: white; border: 1px solid var(--wd-border); border-radius: 22px; padding: 28px; margin-bottom: 20px; }
.wd-idiom-panel h2 { font-size: 1.375rem; margin-bottom: 16px; }
.wd-idiom-rich { overflow-wrap: anywhere; }
.wd-idiom-rich > :first-child { margin-top: 0; }
.wd-idiom-rich > :last-child { margin-bottom: 0; }
.wd-idiom-rich img { max-width: 100%; height: auto; border-radius: 12px; }
.wd-idiom-rich table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.wd-idiom-rich :is(th,td) { border: 1px solid var(--wd-border); padding: 12px; }
.wd-idiom-rich th { background: var(--wd-background); }
.wd-idiom-example { border-inline-start: 4px solid var(--wd-amber); padding: 6px 0 6px 16px; margin-block: 12px; }
.wd-idiom-example p:last-child { margin-bottom: 0; }
.wd-idiom-detail-label { font-family: var(--bs-font-sans-serif); color: var(--wd-muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 20px 0 10px; }
.wd-idiom-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-idiom-pill { display: inline-block; padding: 6px 14px; border: 1px solid var(--wd-border); border-radius: 999px; background: var(--wd-background); color: var(--wd-ink); font-size: .9375rem; font-weight: 600; }
a.wd-idiom-pill:hover { color: var(--wd-indigo); border-color: var(--wd-indigo); text-decoration: none; }
.wd-idiom-tip { background: #fff6e0; border-radius: 14px; padding: 16px 20px; }
.wd-idiom-sidebar .wd-idiom-panel { padding: 24px; }
.wd-idiom-sidebar h2 { font-size: 1.25rem; }
.wd-idiom-related { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; color: var(--wd-ink); border-bottom: 1px solid var(--wd-border); font-weight: 600; font-size: .9375rem; }
.wd-idiom-related:last-child { border-bottom: 0; padding-bottom: 0; }
.wd-idiom-related:hover { color: var(--wd-indigo); }
.wd-idiom-share-icons { display: flex; gap: 10px; }
.wd-idiom-share-icons :is(a,button) { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: var(--wd-background); color: var(--wd-ink); border: 1px solid var(--wd-border); border-radius: 12px; font-size: 18px; cursor: pointer; }
.wd-idiom-share-icons [hidden] { display: none; }
.wd-idiom-share-icons :is(a,button):hover { background: var(--wd-ink); color: var(--wd-amber); text-decoration: none; }
.wd-idiom-share-status { font-size: .8125rem; margin: 12px 0 0; color: var(--wd-muted); overflow-wrap: anywhere; }
.wd-idiom-share-status:empty { display: none; }
.wd-idiom-signup > p { color: var(--wd-muted); font-size: .875rem; }
.wd-idiom-signup label { display: block; font-size: .8125rem; font-weight: 600; }
.wd-idiom-signup input[type='email'] { width: 100%; max-width: 100%; min-height: 46px; padding: 10px 16px; border: 2px solid var(--wd-ink); border-radius: 999px; background: white; color: var(--wd-ink); font-size: 1rem; margin-top: 8px; }
.wd-idiom-signup input[type='submit'] { width: 100%; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--wd-ink); color: white; font-size: .875rem; font-weight: 600; cursor: pointer; }
.wd-idiom-signup .wpcf7-form-control-wrap { display: block; }
.wd-idiom-signup .wpcf7-not-valid-tip { color: #b42318; font-size: .75rem; }
.wd-idiom-signup .wpcf7-response-output { margin: 16px 0 0; padding: 10px; border-radius: 10px; font-size: .8125rem; overflow-wrap: anywhere; }
.wd-idiom-adjacent-label { display: block; font-size: .75rem; color: var(--wd-muted); font-weight: 400; margin-bottom: 6px; }
.wd-idiom-edit { font-size: .875rem; }
@media (max-width: 991.98px) {
  .wd-idiom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-idiom-lesson-grid { grid-template-columns: 1fr; }
  .wd-idiom-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
}
@media (max-width: 575.98px) {
  .wd-idiom-grid, .wd-idiom-sidebar { grid-template-columns: 1fr; }
  .wd-idiom-card, .wd-idiom-panel { padding: 24px; }
  .wd-idiom-search-row { flex-wrap: wrap; }
  .wd-idiom-search input[type='search'] { flex-basis: 100%; }
}
/* The reference cards show the meaning and first example. */
.wd-idiom-card { overflow-wrap: anywhere; }
.wd-idiom-card .wd-idiom-detail-label { display: block; margin: 0 0 4px; }
.wd-idiom-tone-dark .wd-idiom-detail-label { color: #c9cfe3; }
.wd-idiom-tone-amber .wd-idiom-detail-label { color: var(--wd-ink); }
.wd-idiom-practice + .wd-idiom-practice { margin-top: 24px; }
.wd-idiom-practice details { background: var(--wd-background); border-radius: 12px; padding: 12px 16px; margin-top: 12px; }
.wd-idiom-practice summary { cursor: pointer; font-weight: 600; }
.wd-idiom-practice details > div { margin-top: 12px; }
.wd-idiom-rich { overflow-x: auto; }
.wd-idiom-rich pre { max-width: 100%; overflow-x: auto; }
