/* /word/ — Rectoly for Word's page (2026-12-01; lib/pages/word.js). Loaded after rectoly.css on that page only
   (WORD_CSS_VERSION in lib/pages/word.js: raise it with any change here), so the other pages and their CSS_VERSION
   are untouched. Everything else on the page is the site's own: the hero, the feature cards, the connect cards, the
   setup card, the principles, the FAQ. The drawing in the hero is a page of a manuscript and the pane, in HTML. */

/* The hero: the words, and the drawing. */
.hero-word { grid-template-columns: 1fr 1.05fr; }
.hero-word .hero-content { max-width: 560px; }
.hero-word h1 { font-size: clamp(40px, 4.6vw, 56px); line-height: 1.08; }
.hero-word p { max-width: 500px; margin-bottom: 32px; }
.hero-word .hero-note { font-size: 14px; line-height: 1.6; margin: 24px 0 0; color: var(--text-dim); }
.word-app { display: flex; align-items: center; gap: 12px; margin: -8px 0 18px; font-size: 15px; font-weight: 600; color: #fff; }
.word-app img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }

/* The drawing: a page of the manuscript, and the pane beside it. */
/* The pane is 210 px, or as wide as its four tabs where their names are longer (Greek, Ukrainian, Malayalam…): the
   real pane scrolls them, the drawing shows them whole. */
.word-mock {
  display: grid; grid-template-columns: 1fr auto; width: 100%; max-width: 600px;
  border-radius: 16px; overflow: hidden; background: #e9ebef;
  border: 8px solid #0d0f14;
  box-shadow: 0 0 0 1px var(--border-hover), 0 40px 100px rgba(0,0,0,0.55), 0 0 120px var(--accent-glow);
  font-family: Georgia, 'Times New Roman', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  text-align: start;
}
.wm-doc { margin-block: 22px; margin-inline: 22px 0; padding: 30px 26px; background: #fff; color: #1d2129; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.wm-heading { font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 700; color: #1d2129; margin: 0 0 12px; }
.wm-text { font-size: 14px; line-height: 1.75; color: #1d2129; margin: 0 0 12px; }
.wm-text--dim { color: #5b6270; }
/* The quote's content control: Word draws its box around it while the cursor is in it. */
.wm-quote { padding: 1px 2px; border: 1px solid #8ea7cf; border-radius: 2px; background: rgba(66,111,182,0.06); }
.wm-quote-link { color: #2b5bb5; text-decoration: underline; text-underline-offset: 2px; }
.wm-line { display: block; height: 8px; margin: 10px 0 0; border-radius: 4px; background: #e6e8ec; }
.wm-line--short { width: 62%; }

.wm-pane {
  width: min-content; min-width: 210px; max-width: 280px;
  padding: 14px 12px 16px; background: #f7f8fa; border-inline-start: 1px solid #d9dde3;
  font-family: 'Inter', system-ui, sans-serif; color: #1d2129;
}
.wm-pane-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.wm-pane-head img { width: 18px; height: 18px; border-radius: 4px; }
.wm-tabs { display: flex; gap: 2px; margin: 0 0 12px; border-bottom: 1px solid #d9dde3; }
.wm-tab { padding: 5px 6px 6px; font-size: 11px; color: #5b6270; white-space: nowrap; }
.wm-tab--on { color: #1d2129; font-weight: 600; box-shadow: inset 0 -2px 0 #2b5bb5; }
.wm-paper { font-size: 11px; font-weight: 600; color: #5b6270; margin: 10px 0 6px; }
.wm-mark { padding: 8px 9px; margin: 0 0 6px; background: #fff; border: 1px solid #e1e4e9; border-inline-start: 3px solid #f2c94c; border-radius: 6px; }
.wm-mark-text { font-size: 11.5px; line-height: 1.5; color: #1d2129; margin: 0 0 6px; }
.wm-mark-foot { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: #5b6270; }
.wm-insert { padding: 2px 8px; border-radius: 4px; background: #2b5bb5; color: #fff; font-weight: 600; }
.wm-insert--done { background: transparent; color: #2b7a3d; padding: 2px 0; }

/* #install: Word on the web and Word for Mac side by side, then Windows and iPad folded away, then the note on
   updates. #start and #support: the site's setup card, under a heading. */
.word-install .section-head,
.word-start .section-head,
.word-support .section-head { margin-bottom: 40px; }
.word-install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1040px; margin: 0 auto; }
.word-install-card { position: relative; }
.word-install-card .setup-notes { margin-top: 18px; }
.word-install-tag {
  display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600;
  color: var(--warm); background: var(--warm-dim); border: 1px solid rgba(229,161,66,0.18);
}
/* The manifest's download, inside a step: a small button. */
.word-download {
  display: inline-block; margin: 0 0 2px; margin-inline-end: 4px; padding: 3px 12px; max-width: 100%; border-radius: 100px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.word-download:hover { background: var(--accent-bright); }
.word-more { max-width: 1040px; margin: 20px auto 0; padding: 20px 32px; }
.word-more summary { cursor: pointer; font-size: 17px; font-weight: 600; color: var(--text); }
.word-more[open] summary { margin-bottom: 16px; }
.word-updates { max-width: 1040px; margin: 24px auto 0; }
.word-support .section-head a { color: var(--accent-bright); }
.word-trouble li { margin-bottom: 14px; }
/* Right to left (ar, he, ur): the shared setup cards are set from the left (rectoly.css .setup-*), as on /quotes/; two
   icons point somewhere (back to the paragraph, the outline's tree). */
:is(.word-install, .word-start, .word-support) .setup-card { text-align: start; }
[dir="rtl"] :is(.word-install, .word-start, .word-support) :is(.setup-steps, .setup-notes) { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .word-mirror svg { transform: scaleX(-1); }
/* Paths, file names and the drawing's citation are written left to right in every language: kept so inside Arabic,
   Hebrew and Urdu (else "~/Library/…" and "\\YOUR-PC\…" come out turned around), the citation on one line. */
[dir="rtl"] [data-product="word"] code { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .wm-quote-link { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
/* The trademark line at the foot of the page, as on /quotes/. */
.word-trademarks { max-width: 760px; margin: 0 auto; padding: 40px 24px 56px; text-align: center; font-size: 12px; line-height: 1.7; color: var(--text-dim); }

@media (max-width: 900px) {
  .hero-word { grid-template-columns: 1fr; padding-bottom: 72px; }
  .word-install-grid { grid-template-columns: 1fr; }
  .word-mock { margin: 0 auto; }
}
@media (max-width: 768px) {
  .hero-word h1 { font-size: 36px; }
  .word-app { justify-content: center; }
  .word-more { padding: 18px 20px; }
  .hero-word .hero-note { margin-top: 20px; }
}
/* A phone: the page above the pane. */
@media (max-width: 560px) {
  .word-mock { grid-template-columns: 1fr; border-width: 5px; border-radius: 14px; }
  .wm-doc { margin: 14px; padding: 22px 18px; }
  .wm-pane { width: auto; max-width: none; border-inline-start: none; border-top: 1px solid #d9dde3; }
  /* A long name on the download button may take two lines on a phone. */
  .word-download { white-space: normal; }
}
