/* Free Translate (library/switches.json → translations; freetranslate_20261122/CONTRACT.md §7 in the translate repo), in the site's
   pills and panels (assets/edgepedia-head.css): the header's account control (assets/edgepedia-account.js) and, on an article that
   shows English, the control at the right of the date row (assets/edgepedia-translate.js). Logical properties throughout, so
   right-to-left pages mirror. */

/* the header: after the language button, the same pill */
.eph-acct { position: relative; margin-inline-start: -14px; }
.eph-acctb { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #1E1A17; font: inherit; font-size: 15px; font-weight: 600; line-height: normal; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(30,26,23,.14); background: rgba(255,255,255,.6); cursor: pointer; }
.eph-acctb:hover, .eph-acctb[aria-expanded="true"] { border-color: #F0A766; color: #B0501C; }
.eph-acctb:focus-visible { outline: 2px solid #F0A766; outline-offset: 3px; }
.eph-acctb .eph-acct-i { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -3px -6px; border-radius: 50%; background: #F3E2D2; color: #B0501C; font-size: 12.5px; font-weight: 700; text-transform: uppercase; }
.eph-acctp { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; width: 260px; padding: 14px; border-radius: 16px; border: 1px solid rgba(30,26,23,.14); background: #fff; box-shadow: 0 14px 40px rgba(30,26,23,.16); font-size: 14px; color: #1E1A17; }
.eph-acctp[hidden] { display: none; }
.eph-acctp .eph-acct-mail { margin: 0 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.eph-acctp .eph-acct-bal { margin: 0 0 12px; color: #7a6f64; }
.eph-acctp a, .eph-acctp button { display: block; width: 100%; margin-top: 6px; padding: 8px 12px; border-radius: 10px; border: 0; background: none; color: #1E1A17; font: inherit; font-size: 14.5px; font-weight: 500; text-align: start; text-decoration: none; cursor: pointer; }
.eph-acctp a:hover, .eph-acctp button:hover, .eph-acctp a:focus-visible, .eph-acctp button:focus-visible { background: #FBF1E7; color: #B0501C; outline: none; }
@media (max-width: 1023px) { .eph-acct { margin-inline-start: -16px; } .eph-acctb { padding: 7px 12px; font-size: 13.5px; } }
@media (max-width: 560px) { .eph-acct { order: 1; margin-inline-start: -4px; } }

/* the article's date row with the control at its right */
.ep-ftrow { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ep-ftrow > .tagline { margin-top: 0; }
.ep-ft { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; }   /* the row is always left to right (inside the English article): a physical margin keeps the control at its right end on a right-to-left page too (Amendment 6, item 19) */
.ep-ft-label { font-weight: 800; color: #1E1A17; white-space: nowrap; unicode-bidi: plaintext; }
.ep-ft-lang { position: relative; }
.ep-ft-langb, .ep-ft-go { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #1E1A17; font: inherit; font-size: 15px; font-weight: 700; line-height: normal; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(30,26,23,.18); background: #fff; cursor: pointer; }
.ep-ft-go[data-mode="standard"] { background: #1E1A17; border-color: #1E1A17; color: #fff; }
.ep-ft-langb:hover, .ep-ft-langb[aria-expanded="true"], .ep-ft-go:hover { border-color: #F0A766; color: #B0501C; }
.ep-ft-go[data-mode="standard"]:hover { background: #B0501C; border-color: #B0501C; color: #fff; }
.ep-ft-go[hidden] { display: none; }
.ep-ft-langb:disabled, .ep-ft-langb:disabled:hover { cursor: default; border-color: rgba(30,26,23,.1); color: #7a6f64; }
.ep-ft-go[aria-disabled="true"], .ep-ft-go[aria-disabled="true"]:hover { cursor: not-allowed; background: #f3f1ee; border-color: rgba(30,26,23,.1); color: #a39b92; }
.ep-ft-langb:focus-visible, .ep-ft-go:focus-visible { outline: 2px solid #F0A766; outline-offset: 3px; }
.ep-ft-langp { position: absolute; inset-inline-start: 0; top: calc(100% + 8px); z-index: 60; width: 248px; max-height: min(400px, 60vh); overflow: auto; padding: 8px; border-radius: 16px; border: 1px solid rgba(30,26,23,.14); background: #fff; box-shadow: 0 14px 40px rgba(30,26,23,.16); }
.ep-ft-langp[hidden] { display: none; }
.ep-ft-langq { display: block; width: 100%; margin: 0 0 6px; padding: 8px 12px; font: inherit; font-size: 14px; color: #1E1A17; border: 1px solid rgba(30,26,23,.18); border-radius: 999px; background: #fff; }
.ep-ft-langq:focus { outline: 2px solid #F0A766; outline-offset: 1px; }
.ep-ft-langl { list-style: none; margin: 0; padding: 0; }
.ep-ft-langl li[hidden] { display: none; }
.ep-ft-langl button { display: block; width: 100%; padding: 7px 12px; border: 0; border-radius: 10px; background: none; color: #1E1A17; font: inherit; font-size: 14.5px; font-weight: 500; text-align: start; cursor: pointer; }
.ep-ft-langl button:hover, .ep-ft-langl button:focus-visible { background: #FBF1E7; color: #B0501C; outline: none; }
.ep-ft-langl button[aria-current] { color: #B0501C; font-weight: 700; }
.ep-ft-lang0 { margin: 6px 12px; font-size: 13.5px; color: #7a6f64; }
.ep-ft-bar { position: relative; width: 260px; max-width: 100%; height: 38px; border-radius: 999px; border: 1px solid rgba(30,26,23,.18); background: #fff; overflow: hidden; }
.ep-ft-bar[hidden] { display: none; }
.ep-ft-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: #F3D3B5; transition: width .6s linear; }
.ep-ft-pct { position: relative; display: grid; place-items: center; height: 100%; font-weight: 700; color: #1E1A17; }
.ep-ft-msg { flex-basis: 100%; margin: 0; font-size: 13.5px; font-weight: 600; color: #B0501C; text-align: end; }
.ep-ft-msg[hidden] { display: none; }
.ep-ft-pl { display: block; color: #1E1A17; font-weight: 500; }   /* touch screens: the price of each offered mode, under the control */
.ep-ft-pl b { font-weight: 700; }
.ep-ft-orig { margin-top: 10px; font-size: 14px; font-weight: 600; }
.ep-ft-orig a { color: var(--violet, #4e43db); }
@media (max-width: 560px) {
  .ep-ft { margin-left: 0; flex-basis: 100%; }
  .ep-ft-label { flex-basis: 100%; }
  .ep-ft-langb, .ep-ft-go { padding: 8px 13px; font-size: 14px; }
  .ep-ft-msg { text-align: start; }
}

html[data-mobile="app"] .ep-ftrow { margin: 6px 0 14px; }   /* the phone reader hides the date row: the control stands alone above the title */

/* the out-of-credits modal */
.ep-ft-modal { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(440px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(30,26,23,.25); color: #1E1A17; font-family: Manrope, -apple-system, "Segoe UI", sans-serif; }
.ep-ft-modal::backdrop { background: rgba(20,21,31,.45); }
.ep-ft-modal p { margin: 0 0 18px; font-size: 17px; line-height: 1.5; font-weight: 600; }
.ep-ft-modal .ep-ft-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ep-ft-modal a, .ep-ft-modal button { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(30,26,23,.18); background: #fff; color: #1E1A17; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ep-ft-modal a { background: #1E1A17; border-color: #1E1A17; color: #fff; }
.ep-ft-modal a:hover { background: #B0501C; border-color: #B0501C; }
.ep-ft-modal button:hover { border-color: #F0A766; color: #B0501C; }
