/* The language selector shares the navigator's paper and ink colors. */
.reader-controls {
  grid-template-columns: minmax(0,7.5rem) minmax(7rem,11.75rem) minmax(0,7.5rem) minmax(6rem,7rem);
}
.language-picker {
  display: inline-grid;
  align-content: center;
  position: relative;
  min-width: 0;
  color: #263d3e;
}
.language-picker select {
  appearance: none;
  width: 100%;
  min-height: 44px;
  border: 1px solid #ae9980;
  border-radius: 2px;
  padding: 15px 25px 2px 10px;
  background: #fcf8ef;
  color: inherit;
  font: 400 16px/1.3 Text, Georgia, serif;
  cursor: pointer;
}
.language-picker::after {
  content: '';
  position: absolute;
  inset-inline-end: 10px;
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.language-label {
  position: absolute;
  inset-inline-start: 10px;
  top: 3px;
  color: #715648;
  font: 600 10px/1.25 Sans, sans-serif;
  pointer-events: none;
}
html[lang|="ar"] {
  --arabic-type: Arabic, "Noto Naskh Arabic", Tahoma, serif;
}
html[lang|="ar"] :is(body,.page,.page *, .reader-controls *, .controls *, .editor-dialog *) {
  font-family: var(--arabic-type);
  letter-spacing: normal;
}
html[lang|="ar"] :is(.page, .reader-controls) { direction: rtl; }
html[lang|="ar"] .translation-repeat { display:none; }
html[lang|="ar"] :is(.intro h2,.chapter h2,.contents h2,.map-page h2,.map-key h2,.kitchen-guide h2,.recipe h2,.keepsake h2) {
  line-height: 1.3;
  letter-spacing: 0;
}
html[lang|="ar"] :is(.cover,.photo-page,.chapter-art,.photo-gallery,.photo-tile,.table-window,.yemen-map) { direction:ltr; }
html[lang|="ar"] :is(.cover h1,.cover .place,.cover-author,.photo-label,.gallery-caption) { direction:rtl; }
html[lang|="ar"] .cover h1 { line-height:1.34; }
html[lang|="ar"] :is(.overline,.contents-section,.photo-label,.equipment-label,.intro-mark) { font-size:15px; }
html[lang|="ar"] .recipe .heading { font-size:1.03em; margin-bottom:5px; }
html[lang|="ar"] .recipe-body { line-height:1.52; font-size:max(var(--size,16px),17px); }
html[lang|="ar"] .recipe .subtitle { font-size:20px; font-style:normal; margin-top:2px; }
html[lang|="ar"] .equipment-list { font-size:16px; line-height:1.48; }
html[lang|="ar"] .recipe .split .method { padding-left:0; border-left:0; padding-inline-start:24px; border-inline-start:1px solid var(--line); }
html[lang|="ar"] .recipe .heading-rule::before { left:auto; right:0; }
html[lang|="ar"] .recipe > .family-credit { font-size:19px; font-style:normal; line-height:1.5; }
html[lang|="ar"] .contents .toc-row { font-size:17px; line-height:1.35; }
html[lang|="ar"] .toc-number { font-size:13px; }
html[lang|="ar"] .toc-equipment { font-size:16px; }
html[lang|="ar"] .equipment-tile h3 { font-size:24px; line-height:1.28; }
html[lang|="ar"] .equipment-tile p { font-size:16px; line-height:1.45; }
html[lang|="ar"] :is(.map-key,.map-page) h2 { max-width:100%; }
html[lang|="ar"] .yemen-map text { direction:rtl; unicode-bidi:isolate; text-anchor:end; letter-spacing:0; }
html[lang|="ar"] .map-entry p { font-size:19px; }
html[lang|="ar"] .map-recipe-links { font-size:16px; }
html[lang|="ar"] .map-page figcaption { font-size:13px; }
html[lang|="ar"] .map-entry .rada-inline { margin-left:0; margin-inline-start:13px; }
html[lang|="ar"] #back-cover .jacket-copy h2 { line-height:1.35; }
html[lang|="ar"] #back-cover .jacket-description { text-align:start; line-height:1.62; }
html[lang|="ar"] .sign { text-align:start; }
html[lang|="ar"] .language-picker select { padding:14px 10px 0 25px; font:400 19px/1.2 var(--arabic-type); }
html[lang|="ar"] .language-label { font-size:12px; line-height:1.1; top:2px; }
html[lang|="ar"] .reader-controls :is(button,.reader-index p) { font-size:19px; }
html[lang|="ar"] .reader-index a { font-size:14px; }
html[lang|="ar"] .left .folio { left:auto; right:55px; }
html[lang|="ar"] .right .folio { right:auto; left:55px; }

@media screen and (min-width:1081px) {
  html[lang|="ar"] .leaf .page:is(.recipe,.intro,.contents,.kitchen-guide,.map-key) { height:auto;min-height:var(--h); }
  html[lang|="ar"] .leaf .page.recipe { padding-bottom:98px; }
  html[lang|="ar"] .leaf .photo-page { height:auto; min-height:var(--h); }
  html[lang|="ar"] .leaf .photo-page .photo-area { bottom:auto; height:940px; }
  html[lang|="ar"] .leaf .page:is(.contents,.kitchen-guide,.map-key) { padding-bottom:64px; }
  html[lang|="ar"] .leaf .page:is(.intro,.chapter) .window,
  html[lang|="ar"] .chapter .chapter-window { right:auto;left:64px; }
}
@media screen and (max-width:1080px) {
  html[lang|="ar"] .leaf .recipe .split .method { border:0; padding:0; }
  html[lang|="ar"] .left .folio { right:23px; }
  html[lang|="ar"] .right .folio { left:23px; }
  html[lang|="ar"] .leaf .recipe .recipe-body {font-size:18px;line-height:1.58;}
}
@media (max-width:550px) {
  .reader-controls { grid-template-columns:minmax(0,1fr) minmax(5.2rem,1.3fr) minmax(0,.9fr) minmax(4.7rem,1fr); gap:5px; }
  .reader-controls button {padding-inline:3px;font-size:15px;}
  .reader-index div {gap:7px;}
  .reader-index p {font-size:14px;}
  .language-picker select {padding-inline-start:7px;padding-inline-end:17px;}
  .language-label {inset-inline-start:7px;}
  .language-picker::after {inset-inline-end:7px;}
}
@media (prefers-reduced-motion: no-preference) {
  html[lang|="ar"] .turn-forward .page:last-child { animation-name:turn-from-left;transform-origin:right center; }
  html[lang|="ar"] .turn-back .page:first-child { animation-name:turn-from-right;transform-origin:left center; }
}
