/* Agency Notes. One stylesheet for the index, a note and a resource page; the markup comes from notes_components.py.
   Majali's own tokens and idioms throughout (styles.css): a violet hero with a gold script line over a light caps title,
   arches, hairlines, a small gold diamond under headings, round buttons, sand and ivory bands, a violet closing band.
   Sections: base, hero, marquee, series, library, tags and cards, closing band, a note, materials, previous/next,
   right-to-left, motion, print. */

/* ---- base ---- */
.notes-page { background: var(--ivory); color: var(--ink-2); min-height: 75vh; }
.notes-page [hidden] { display: none !important; }
.notes-page svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notes-page :focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.notes-page h2 .script { margin-bottom: .2em; font-size: .62em; line-height: 1.15; text-transform: none; letter-spacing: 0; color: var(--gold-ink); }
.notes-page .dia--gold { background: var(--gold-ink); }
.notes-head { margin-bottom: clamp(32px, 4vw, 56px); text-align: center; }
.notes-head h2 { font-size: clamp(30px, 3.6vw, 48px); }
.notes-head .dia { margin: 22px auto 0; }
.notes-empty { padding-block: 72px; text-align: center; font-size: 19px; }
.notes-btn-ghost { border: 1px solid rgb(245 239 232 / .5); background: transparent; color: var(--ivory); }
.notes-btn-ghost:hover { border-color: var(--ivory); background: rgb(245 239 232 / .12); }
.notes-btn-line { height: 54px; border: 1px solid var(--violet); background: transparent; color: var(--violet); }
.notes-btn-line:hover { background: var(--violet); color: var(--ivory); }

/* ---- hero ---- */
.notes-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vh, 96px) var(--pad); background: var(--violet); color: var(--ivory); text-align: center; }
.notes-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(46% 70% at 78% 50%, rgb(210 181 116 / .14), transparent 72%); pointer-events: none; }
.notes-hero__copy { position: relative; z-index: 2; max-width: 900px; margin-inline: auto; }
.notes-hero .script { font-size: clamp(26px, 3vw, 42px); line-height: 1.1; color: var(--gold); text-wrap: balance; }
.notes-hero h1 { margin-top: .04em; font-weight: 300; font-size: clamp(40px, 7.2vw, 96px); line-height: 1.04; letter-spacing: .05em; text-transform: uppercase; color: #fff; text-wrap: balance; }
.notes-hero__lead { margin: 22px auto 0; max-width: 42ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--text-light); text-wrap: pretty; }
.notes-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.notes-hero--wall { display: flex; align-items: stretch; min-height: clamp(620px, calc(100svh - var(--nav-h)), 900px); padding: 0; text-align: start; }
.notes-hero--wall .notes-hero__wrap { position: relative; z-index: 2; display: flex; align-items: center; padding-block: clamp(48px, 7vh, 88px); pointer-events: none; }
.notes-hero--wall .notes-hero__copy { max-width: 44%; margin: 0; pointer-events: auto; }
.notes-hero--wall h1 { font-size: clamp(40px, 5.4vw, 82px); }
.notes-hero--wall .notes-hero__lead { margin: 22px 0 0; }
.notes-hero--wall .notes-hero__cta { justify-content: flex-start; }

/* ---- marquee: three columns of arched photographs, the middle one the other way ---- */
.notes-marquee { position: absolute; inset-block: 0; inset-inline-end: 0; z-index: 1; width: 52%; }
.notes-marquee__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); height: 100%; padding-inline: clamp(10px, 1.2vw, 18px); overflow: hidden; overflow: clip;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 13%, #000 87%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 13%, #000 87%, transparent); }
.notes-marquee__col { container-type: inline-size; min-width: 0; }
.notes-marquee__track { display: flex; flex-direction: column; animation: notes-scroll var(--dur) linear var(--delay) infinite; will-change: transform; }
.notes-marquee__col[data-way="down"] .notes-marquee__track { animation-direction: reverse; }
.notes-marquee__track ul { display: grid; gap: clamp(10px, 1.2vw, 18px); margin: 0; padding: 0 0 clamp(10px, 1.2vw, 18px); list-style: none; }
@keyframes notes-scroll { to { transform: translateY(-50%); } }
.notes-marquee:hover .notes-marquee__track, .notes-marquee:has(.note-tile:focus-visible) .notes-marquee__track, .notes-marquee[data-paused] .notes-marquee__track, .notes-marquee[data-offscreen] .notes-marquee__track { animation-play-state: paused; }
.note-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 14px 14px; border-radius: 50cqw 50cqw 14px 14px; background: var(--lavender-2); color: var(--ivory); text-decoration: none; border: 1.5px solid rgb(210 181 116 / .85); box-shadow: 0 0 0 5px rgb(210 181 116 / .13), 0 26px 40px -26px rgb(8 2 20 / .85); transition: box-shadow .4s, border-color .4s; }
.note-tile.is-square { aspect-ratio: 1 / 1; }
.note-tile.is-tall { aspect-ratio: 5 / 6; }
.note-tile:hover { border-color: var(--gold); box-shadow: 0 0 0 5px rgb(210 181 116 / .32), 0 26px 40px -26px rgb(8 2 20 / .85); }
.note-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.note-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.note-tile:hover img { transform: scale(1.06); }
.note-tile::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(to top, rgb(44 17 72 / .94), rgb(44 17 72 / .72) 55%, transparent); pointer-events: none; }
.note-tile .note-tag { position: absolute; z-index: 2; top: clamp(14px, 15cqw, 40px); inset-inline: 0; width: max-content; max-width: 84%; margin-inline: auto; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.note-tile__title { position: relative; z-index: 1; padding: 0 clamp(12px, 8cqw, 20px) clamp(14px, 9cqw, 22px); text-align: center; font-size: clamp(13px, 1.12vw, 15.5px); font-weight: 500; line-height: 1.35; text-wrap: balance; }
.notes-marquee__pause { position: absolute; z-index: 3; inset-block-end: 22px; inset-inline-end: 22px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgb(210 181 116 / .55); border-radius: 50%; background: rgb(54 24 86 / .82); color: var(--gold); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.notes-marquee__pause:hover { border-color: var(--gold); background: var(--gold); color: var(--violet); }
.notes-marquee__pause svg { width: 18px; height: 18px; stroke-width: 1.8; }
.notes-marquee__pause .i-play { display: none; fill: currentColor; stroke-width: 1.2; }
.notes-marquee[data-paused] .notes-marquee__pause .i-play { display: block; }
.notes-marquee[data-paused] .notes-marquee__pause .i-pause { display: none; }

/* ---- series: tinted cards ---- */
.notes-series { padding: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); background: var(--ivory); }
.notes-series__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.series-card { display: flex; flex: 1 1 320px; flex-direction: column; max-width: 384px; overflow: hidden; border-radius: 18px; }
.series-card--violet { background: var(--violet); color: var(--text-light); --ink-on: var(--ivory); --rule: rgb(245 239 232 / .18); --accent: var(--gold); }
.series-card--gold { background: var(--gold); color: var(--violet-ink); --ink-on: var(--violet-deep); --rule: rgb(30 12 51 / .2); --accent: var(--violet); }
.series-card--lavender { background: var(--lavender); color: var(--violet-ink); --ink-on: var(--violet-deep); --rule: rgb(30 12 51 / .18); --accent: var(--violet); }
.series-card__top { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 28px 28px 26px; color: inherit; text-decoration: none; }
.series-card__arch { display: block; width: 78px; height: 96px; overflow: hidden; border-radius: 39px 39px 8px 8px; box-shadow: 0 0 0 3px var(--accent); }
.series-card__arch:empty { display: none; }
.series-card__arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.series-card__name { margin-top: 6px; font-family: var(--font-display); font-size: clamp(26px, 2.3vw, 32px); font-weight: 500; line-height: 1.12; color: var(--ink-on); }
.series-card__lead { font-size: 16px; line-height: 1.6; }
.series-card__top + .series-card__go { min-height: 92px; }
.series-card__go { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-top: 1px solid var(--rule); color: var(--ink-on); text-decoration: none; transition: background-color .3s; }
.series-card__go small { display: block; font-size: 12.5px; opacity: .75; }
.series-card__go b { font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.series-card__go svg { flex: none; width: 20px; height: 20px; transition: transform .3s; }
.series-card__go:hover { background: rgb(255 255 255 / .1); }
.series-card__go:hover svg { transform: translateX(4px); }
.series-card a:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

/* ---- the library: topic tabs, a series select, search, the featured note, the cards ---- */
.notes-library { padding: clamp(64px, 8vw, 112px) 0; background: var(--ivory-2); }
/* one row: the topic tabs, the filters, the search icon. Where it is too narrow the tabs scroll; under 900px the filters drop to a row of their own. */
.notes-library__tabrow { display: flex; align-items: center; gap: 16px; min-width: 0; }
.notes-library__filters { display: flex; flex: none; gap: 12px; }
/* the pill is solid; the tabs scroll inside it and, where more lie beyond an edge, fade into its violet (never the pill itself) */
.notes-library__tabs { flex: 0 1 auto; min-width: 0; overflow: hidden; border-radius: 999px; background: var(--violet); }
.notes-library__scroll { --fade: 40px; display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.notes-library__scroll::-webkit-scrollbar { display: none; }
.notes-library__scroll.fade-end { mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent); }
.notes-library__scroll.fade-start { mask-image: linear-gradient(to right, transparent, #000 var(--fade)); }
.notes-library__scroll.fade-start.fade-end { mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
[dir="rtl"] .notes-library__scroll.fade-end { mask-image: linear-gradient(to left, #000 calc(100% - var(--fade)), transparent); }
[dir="rtl"] .notes-library__scroll.fade-start { mask-image: linear-gradient(to left, transparent, #000 var(--fade)); }
[dir="rtl"] .notes-library__scroll.fade-start.fade-end { mask-image: linear-gradient(to left, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
.notes-library__tabs button { flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--text-light); font-size: 15px; white-space: nowrap; cursor: pointer; transition: background-color .3s, color .3s; }
.notes-library__tabs button:hover { color: #fff; }
.notes-library__tabs button.is-on { background: var(--ivory); color: var(--violet); font-weight: 500; }
.notes-library__tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* a filter that is one choice of a few: a pill and a panel in the style of the site's menus. notes.js builds them from the
   select, which stays the value; the pill turns violet while a choice is made, as the search icon does while a search is on */
.notes-menu { position: relative; }
.notes-menu__button { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 150px; max-width: 230px; height: 56px; padding-block: 0; padding-inline: 22px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15.5px; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s; }
.notes-menu__button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notes-menu__button svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease), stroke .3s; }
.notes-menu__button:hover, .notes-menu__button[aria-expanded="true"] { border-color: var(--gold); }
.notes-menu__button[aria-expanded="true"] svg { transform: rotate(180deg); }
.notes-menu__button.is-set { border-color: var(--violet); background: var(--violet); color: var(--ivory); }
.notes-menu__button.is-set svg { stroke: var(--gold); }
.notes-menu__button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.notes-menu__list { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 30; width: max-content; min-width: 100%; max-width: min(340px, 90vw); max-height: min(340px, 60vh); margin: 0; padding: 6px; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -22px rgb(12 4 28 / .45); animation: menu-in .2s var(--ease) both; }
.notes-menu__list.is-leaving { animation: menu-out .16s ease both; pointer-events: none; }
.notes-menu__list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 10px; color: var(--ink); font-size: 15.5px; cursor: pointer; transition: background-color .2s; }
.notes-menu__list li:hover, .notes-menu__list li:focus-visible { background: var(--ivory-2); outline: none; }
.notes-menu__list li[aria-selected="true"] { color: var(--violet); font-weight: 500; }
.notes-menu__list li i { flex: none; width: 7px; height: 7px; background: var(--gold-ink); opacity: 0; transform: rotate(45deg); }
.notes-menu__list li[aria-selected="true"] i { opacity: 1; }
/* the search icon, and the panel it opens (Ctrl or Cmd + K) */
.notes-search { display: grid; flex: none; place-items: center; width: 56px; height: 56px; margin-inline-start: auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--violet); cursor: pointer; transition: border-color .3s, background-color .3s, color .3s; }
.notes-search svg { width: 22px; height: 22px; stroke-width: 1.8; }
.notes-search:hover, .notes-search.is-set { border-color: var(--gold); }
.notes-search.is-set { background: var(--violet); color: var(--gold); }
.notes-search:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.note-palette { width: min(640px, calc(100vw - 32px)); max-height: min(78vh, 640px); margin: 11vh auto auto; padding: 0; overflow: hidden; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 40px 90px -28px rgb(20 6 40 / .6); }
.note-palette[open] { display: flex; flex-direction: column; animation: palette-in .22s ease both; }
.note-palette::backdrop { background: rgb(28 10 52 / .58); backdrop-filter: blur(3px); }
@keyframes palette-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.note-palette__field { display: flex; flex: none; align-items: center; gap: 14px; height: 68px; padding: 0 16px 0 22px; border-bottom: 1px solid var(--line); }
.note-palette__field > svg { flex: none; width: 22px; height: 22px; color: var(--violet); stroke-width: 1.8; }
.note-palette__field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 17px; }
.note-palette .note-palette__field input:focus-visible { outline: 0; }
.note-palette__field input::placeholder { color: var(--muted); }
.note-palette__field input::-webkit-search-cancel-button { display: none; }
.note-palette__esc, .note-palette__keys kbd { display: inline-block; padding: 3px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--ivory-2); color: var(--ink-2); font: inherit; font-size: 12px; line-height: 1.4; }
.note-palette__esc { cursor: pointer; }
.note-palette__esc:hover { border-color: var(--gold); }
.note-palette__list { flex: 1 1 auto; min-height: 0; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.note-palette__list a, .note-palette__list button { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: start; text-decoration: none; cursor: pointer; }
.note-palette__list [aria-selected="true"] > * { background: var(--ivory-2); }
.note-palette__title { font-size: 16px; font-weight: 500; line-height: 1.35; }
.note-palette__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.note-palette__list .note-palette__all > * { flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; font-size: 14.5px; font-weight: 500; color: var(--violet); }
.note-palette__all svg { flex: none; width: 18px; height: 18px; }
[dir="rtl"] .note-palette__all svg { transform: scaleX(-1); }
.note-palette__none { margin: 0; padding: 32px 24px; text-align: center; color: var(--muted); }
.note-palette__keys { display: flex; flex: none; gap: 18px; margin: 0; padding: 11px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.note-palette__keys span { display: inline-flex; align-items: center; gap: 6px; }
.note-palette__keys kbd { padding: 1px 6px; font-size: 11.5px; }
.notes-library__term { margin-inline-start: 14px; color: var(--ink); font-weight: 500; }
.notes-library__count { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; margin: 28px 0 22px; font-size: 14px; color: var(--muted); }
.notes-library__clear { padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; cursor: pointer; }
.notes-library__clear:hover { color: var(--gold-deep); }
.notes-library__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; margin: 0; padding: 0; list-style: none; }
.notes-library__bar + .note-feature, .notes-library__box > .note-feature:first-child { margin-top: 0; }
.notes-library__bar:not([hidden]) + .note-feature { margin-top: 32px; }
.notes-library__bar[hidden] ~ .notes-library__grid { margin-top: 0; }
.notes-library__none { padding: 40px 0; text-align: center; }
.notes-library__more { margin-top: 48px; text-align: center; }
.note-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 8px; overflow: hidden; border-radius: 24px; background: var(--violet); color: var(--text-light); }
.note-feature__copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(28px, 4.2vw, 60px); }
.note-feature h3 { font-size: clamp(28px, 3vw, 42px); font-weight: 500; line-height: 1.15; color: #fff; text-wrap: balance; }
.note-feature p { max-width: 46ch; font-size: 16.5px; line-height: 1.65; }
.note-feature__go { display: inline-flex; align-items: center; align-self: flex-start; gap: 14px; color: var(--ivory); font-weight: 500; text-decoration: none; }
.note-feature__go:hover { color: var(--gold); }
.note-feature__go:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 999px; }
.note-feature__art { position: relative; min-height: 340px; background: var(--lavender-2); color: var(--violet); }
.note-feature__art svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: 2.4; }
.note-feature__art .c1 { fill: var(--gold); }
.note-feature__art .c2 { fill: var(--lavender); }
.note-feature__art .ink { fill: currentColor; stroke: none; }

/* ---- the tag and the round button, shared by the cards, the marquee and the files ---- */
.note-tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.note-tag--lav { background: var(--lavender-2); color: var(--violet); }
.note-tag--lav2 { background: var(--lavender); color: var(--violet); }
.note-tag--gold { background: #F3EAD6; color: var(--gold-deep); }
.note-tag--sand { background: var(--ivory-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.note-round { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ivory-2); color: var(--violet); transition: background-color .35s, color .35s; }
.note-round svg { width: 17px; height: 17px; stroke-width: 1.8; }
.note-round--gold { width: 44px; height: 44px; background: var(--gold); color: var(--violet-ink); }

/* ---- a card ---- */
.note-card { display: flex; }
.note-card > a { display: flex; flex-direction: column; gap: 10px; width: 100%; color: var(--ink); text-decoration: none; }
.note-card > a:focus-visible { outline-offset: 6px; border-radius: 14px; }
.note-card__cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--lavender-2); }
/* a card without a photograph carries a drawing in its topic's tint: a Word page, a setup guide, a reference */
.note-card__cover--lav { background: var(--lavender-2); }
.note-card__cover--lav2 { background: var(--lavender); }
.note-card__cover--gold { background: #F3EAD6; }
.note-card__cover--sand { background: #E9E0D2; }
.note-card__cover--art svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--violet); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; color: var(--violet); transition: transform .9s var(--ease); }
.note-card__cover--art .sheet { fill: #fff; }
.note-card__cover--art .back { fill: rgba(255, 255, 255, .55); }
.note-card__cover--art .c1 { fill: var(--gold); }
.note-card__cover--art .c2 { fill: var(--lavender); }
.note-card__cover--art .ink { fill: currentColor; stroke: none; }
.note-card > a:hover .note-card__cover--art svg { transform: scale(1.05); }
.note-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.note-card > a:hover .note-card__cover img { transform: scale(1.05); }
.note-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.note-card__time { font-size: 13px; color: var(--muted); }
.note-card__title { font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--ink); text-wrap: balance; transition: color .3s; }
.note-card > a:hover .note-card__title { color: var(--gold-deep); }
.note-card__summary { display: -webkit-box; overflow: hidden; font-size: 15px; line-height: 1.6; color: var(--ink-2); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.note-card__by { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.note-mark { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--lavender-2), var(--lavender)); }
.note-mark i { width: 8px; height: 8px; background: var(--gold-ink); transform: rotate(45deg); }
.note-card__belongs { flex: 1; min-width: 0; overflow: hidden; font-size: 13.5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.note-card > a:hover .note-round { background: var(--violet); color: var(--ivory); }

/* ---- the closing band (the home page's contact band) ---- */
.notes-cta { background: var(--violet); color: var(--ivory); padding: clamp(64px, 8vw, 104px) 0; }
.notes-cta__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; }
.notes-cta h2 { max-width: 20ch; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.08; color: var(--ivory); }
.notes-cta .dia { width: 10px; height: 10px; margin-top: 26px; background: var(--gold); }
.notes-cta p { max-width: 46ch; margin-top: 22px; font-size: 19px; color: var(--text-light); }

/* ---- a note ---- */
.note-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px clamp(40px, 7vw, 104px); align-items: end; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(44px, 5vw, 72px); }
.note-top:not(.note-top--cover) { grid-template-columns: minmax(0, 1fr); }
.note-crumbs { margin-bottom: clamp(28px, 4vw, 52px); font-size: 13.5px; color: var(--muted); }
.note-crumbs a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.note-crumbs span { border-bottom: 1px solid var(--line); }
.note-crumbs svg { width: 16px; height: 16px; transform: scaleX(-1); transition: transform .3s; }
[dir="rtl"] .note-crumbs svg { transform: none; }
.note-crumbs a:hover { color: var(--gold-deep); }
.note-crumbs a:hover svg { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .note-crumbs a:hover svg { transform: translateX(4px); }
.note-top .script { font-size: clamp(24px, 2.6vw, 32px); color: var(--gold-ink); text-decoration: none; }
.note-top a.script:hover { color: var(--gold-deep); }
.note-top h1 { margin: 6px 0 0; font-weight: 300; font-size: clamp(30px, 3.9vw, 52px); line-height: 1.12; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.note-top .dia { margin-top: 28px; background: var(--gold-ink); }
.note-top__lead { max-width: 52ch; margin-top: 22px; font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.note-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.note-author { color: var(--violet); font-weight: 500; }
.note-author::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 10px; background: var(--gold-ink); transform: rotate(45deg); vertical-align: middle; }
.note-byline time { direction: ltr; unicode-bidi: isolate; }
.note-arch { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 4 / 5; }
.note-arch::before { content: ""; position: absolute; inset: -14px -14px 0; border: 1px solid var(--gold); border-bottom: 0; border-radius: 999px 999px 0 0; }
.note-arch img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 0 0; background: var(--lavender-2); }
.note-read { display: grid; grid-template-columns: 232px minmax(0, 700px); gap: clamp(40px, 6vw, 88px); justify-content: center; max-width: 1200px; margin-inline: auto; padding: clamp(8px, 2vw, 24px) var(--pad) clamp(56px, 7vw, 96px); }
.note-aside { position: sticky; top: 100px; align-self: start; }
/* A lesson with a short video: the video opens the side column and scrolls away; the contents stay pinned below it. */
.note-read--reel .note-aside { position: static; align-self: stretch; }
.note-read--reel .note-aside__pin { position: sticky; top: 100px; }
.note-reel { display: grid; gap: 12px; margin: 0 0 40px; }
.note-reel video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border: 1.5px solid rgb(210 181 116 / .85); border-radius: 14px; background: var(--violet); box-shadow: 0 0 0 5px rgb(210 181 116 / .13), 0 26px 40px -26px rgb(8 2 20 / .55); }
.note-reel figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.note-reel time, .note-reel__lang { font-weight: 400; color: var(--muted); }
.note-toc summary { margin-bottom: 14px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); cursor: pointer; }
.note-toc ol { margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--line); }
.note-toc a { display: block; margin-inline-start: -1px; padding: 7px 0; padding-inline: 16px 0; border-inline-start: 1px solid transparent; font-size: 14.5px; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .3s, border-color .3s; }
.note-toc a:hover { color: var(--ink); }
.note-toc a[aria-current=true] { border-inline-start-color: var(--gold-ink); color: var(--ink); font-weight: 500; }
.note-tools { display: grid; justify-items: start; gap: 2px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.note-tools button { padding: 6px 0; border: 0; background: none; color: var(--ink-2); font-size: 14px; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; }
.note-tools button:hover { color: var(--gold-deep); }
.note-tools span { font-size: 12px; color: var(--gold-deep); }
.note-body { min-width: 0; font-size: 18px; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.note-body > p, .note-body > ul, .note-body > ol { margin: 0 0 22px; }
.note-body h2 { position: relative; margin: 56px 0 18px; font-size: clamp(24px, 2.3vw, 30px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; text-transform: none; color: var(--ink); text-wrap: balance; scroll-margin-top: 100px; }
.note-body h2:first-child { margin-top: 0; }
.note-body h2::before { content: ""; position: absolute; inset-inline-start: -32px; top: .6em; width: 8px; height: 8px; background: var(--gold-ink); transform: rotate(45deg); }
.note-body h3 { margin: 32px 0 14px; font-size: 22px; line-height: 1.4; scroll-margin-top: 100px; }
.note-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .3s; }
.note-body a:hover { color: var(--gold-deep); }
.note-body strong { font-weight: 500; color: var(--ink); }
.note-body ul { padding: 0; list-style: none; }
.note-body ul li { position: relative; margin-bottom: 8px; padding-inline-start: 26px; }
.note-body ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .8em; width: 6px; height: 6px; background: var(--gold-ink); transform: rotate(45deg); }
.note-body ol { padding-inline-start: 25px; }
.note-body ol li { margin-bottom: 8px; }
.note-body blockquote { margin: 28px 0; padding: 18px 24px; border-inline-start: 3px solid var(--gold); background: var(--cream); color: var(--violet); }
.note-body code { padding: 2px 5px; border-radius: 4px; background: var(--lavender-2); font-size: .8em; }
.note-body pre { overflow: auto; padding: 20px; background: var(--cream); }
.note-body code, .note-body pre { direction: ltr; unicode-bidi: isolate; }
.note-table { max-width: 100%; margin: 28px 0 32px; overflow-x: auto; }
.note-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; overflow-wrap: normal; word-break: normal; }
.note-table th { padding: 0 16px 12px 0; padding-inline: 0 16px; border-bottom: 1px solid var(--ink); text-align: start; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); }
.note-table td { padding: 13px 16px 13px 0; padding-inline: 0 16px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.note-table td:first-child { color: var(--ink); font-weight: 500; }

/* ---- working materials: Word files download, guides and references open ---- */
.note-materials { margin-top: 64px; padding: 34px clamp(20px, 3vw, 38px) 8px; background: var(--ivory-2); border-top: 2px solid var(--gold); font-size: 16px; line-height: 1.5; }
.note-materials h2 { margin: 0 0 16px; font-size: 26px; }
.note-materials h2::before { display: none; }
.note-materials ul, .note-materials li { margin: 0; padding: 0; list-style: none; }
.note-body .note-materials ul li { margin: 0; padding-inline-start: 0; }
.note-body .note-materials ul li::before { content: none; }
.note-body .note-materials a { text-decoration: none; }
.note-materials ul { border-top: 1px solid var(--line); }
.note-materials li { border-bottom: 1px solid var(--line); }
.note-file { position: relative; display: flex; align-items: center; gap: 18px; padding: 17px 0; color: var(--ink); text-decoration: none; }
.note-file::before { content: ""; position: absolute; inset-inline-start: -22px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--gold-ink); opacity: 0; transform: translateX(-8px) rotate(45deg); transition: opacity .3s, transform .4s var(--ease); }
[dir="rtl"] .note-file::before { transform: translateX(8px) rotate(45deg); }
.note-file:hover::before { opacity: 1; transform: rotate(45deg); }
.note-file__kind { flex: none; min-width: 60px; padding: 3px 12px; border: 1px solid var(--gold); border-radius: 999px; font-size: 12.5px; letter-spacing: .04em; text-align: center; color: var(--gold-deep); }
.note-file__title { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; line-height: 1.35; transition: color .3s, transform .4s var(--ease); }
.note-file__size { flex: none; font-size: 13px; color: var(--muted); }
.note-file:hover .note-file__title { color: var(--gold-deep); transform: translateX(6px); }
[dir="rtl"] .note-file:hover .note-file__title { transform: translateX(-6px); }
.note-file .note-round { background: var(--ivory); }
.note-file:hover .note-round { background: var(--violet); color: var(--ivory); }
.note-file--page { padding: 15px 0; }
.note-file--page svg { flex: none; width: 20px; height: 20px; color: var(--gold-deep); transition: transform .35s; }
.note-file--page:hover svg { transform: translateX(4px); }
[dir="rtl"] .note-file--page svg { transform: scaleX(-1); }
[dir="rtl"] .note-file--page:hover svg { transform: scaleX(-1) translateX(4px); }
.note-file:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }

/* ---- previous and next: the back arrow leads on the previous side, the forward arrow ends the next ---- */
.note-next { display: grid; grid-template-columns: 1fr 1fr; max-width: 1200px; margin: 0 auto clamp(56px, 7vw, 96px); padding-inline: var(--pad); }
.note-next > a { display: flex; align-items: center; gap: 18px; padding: 30px 0; border-block: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.note-next__prev { padding-inline-end: 36px; }
.note-next__next { justify-content: flex-end; padding-inline-start: 36px; border-inline-start: 1px solid var(--line); text-align: end; }
.note-next > span + .note-next__next { border-inline-start: 0; }
.note-next__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.note-next small { font-size: 13.5px; color: var(--muted); }
.note-next strong { font-size: 19px; font-weight: 500; line-height: 1.35; transition: color .3s; }
.note-next a:hover strong { color: var(--gold-deep); }
.note-next a:hover .note-round { background: var(--violet); color: var(--ivory); }
.note-next__prev .note-round svg { transform: scaleX(-1); }
[dir="rtl"] .note-next__prev .note-round svg { transform: none; }
[dir="rtl"] .note-next__next .note-round svg { transform: scaleX(-1); }
.note-next a:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }

/* ---- smaller screens ---- */
@media (max-width: 900px) {
  .notes-library__tabrow { flex-wrap: wrap; row-gap: 14px; }
  .notes-library__tabs { flex: 1 1 0; }
  .notes-library__filters { order: 3; flex: 1 1 100%; }
}
@media (max-width: 1100px) {
  .notes-library__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .notes-hero--wall { flex-direction: column; min-height: 0; }
  .notes-hero--wall .notes-hero__wrap { padding-block: 48px 8px; }
  .notes-hero--wall .notes-hero__copy { max-width: none; }
  .notes-marquee { position: relative; inset: auto; width: 100%; height: clamp(440px, 70vw, 560px); margin-top: 28px; }
  .notes-marquee__cols { padding-inline: var(--pad); }
  .note-feature { grid-template-columns: 1fr; }
  .note-feature__art { min-height: 300px; }
  .note-top { grid-template-columns: 1fr; }
  .note-arch { max-width: 300px; }
  .note-read { grid-template-columns: minmax(0, 1fr); }
  .note-aside { position: static; margin-bottom: 8px; }
  .note-read--reel .note-aside__pin { position: static; }
  .note-reel { width: min(100%, 300px); margin-bottom: 28px; }
  .note-toc { padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
  .note-body h2::before { display: none; }
}
@media (max-width: 760px) {
  .notes-hero__cta .btn { flex: 1 1 100%; }
  .notes-field { flex: 1 1 0; min-width: 0; }
  .notes-menu__button { max-width: none; min-width: 0; }
  .note-palette { margin-top: 8vh; }
  .note-palette__keys { display: none; }
  .series-card { max-width: none; }
  .note-next { grid-template-columns: 1fr; }
  .note-next__prev { padding-inline-end: 0; }
  .note-next > span { display: none; }
  .note-next__next { justify-content: space-between; padding-inline-start: 0; border-inline-start: 0; border-top: 0; text-align: start; }
}
@media (max-width: 560px) {
  .notes-marquee__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes-marquee, .notes-marquee__cols { height: 500px; }
  .notes-marquee__col:nth-child(3) { display: none; }
  .notes-marquee__pause { inset-block-end: 14px; inset-inline-end: var(--pad); }
  .notes-library__grid { grid-template-columns: minmax(0, 1fr); }
  .note-file { gap: 12px; }
  .note-file__size { display: none; }
  .note-file::before { display: none; }
  .notes-cta .btn { width: 100%; }
}
@media (min-width: 1100px) { .notes-hero--wall .notes-hero__copy { padding-inline-end: 24px; } }

/* ---- right-to-left, motion ---- */
:lang(ar) .notes-hero h1, :lang(ar) .note-top h1 { font-weight: 400; letter-spacing: 0; }
:lang(ar) .note-top h1 { line-height: 1.4; }
:lang(ar) .note-body { line-height: 2; }
:lang(ar) .note-body h2 { letter-spacing: 0; line-height: 1.5; }
:lang(ar) .note-toc summary, :lang(ar) .note-table th { letter-spacing: 0; font-size: 14px; }
:lang(ar) .series-card__name { font-size: clamp(22px, 2vw, 26px); line-height: 1.4; }
:lang(ar) .note-tile__title, :lang(ar) .note-card__title { line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .notes-page *, .notes-page *::before { transition: none !important; }
  .notes-marquee__track { animation: none; }
  .note-palette[open] { animation: none; }
  .notes-marquee__track ul + ul, .notes-marquee__pause { display: none; }
  .notes-marquee__cols { overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(210 181 116 / .6) transparent; }
}

/* ---- motion: the arrivals of the landing and services pages. The script writes on, the words rise from behind their line,
   the diamond unfolds, the lead and the buttons settle; blocks further down wait for main.js (data-sv) and arrive once.
   Nothing moves under "reduce motion", and without script everything is simply there. ---- */
@keyframes notes-dia { from { scale: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .notes-hero .script, .note-top .script { animation: sv-write 1.3s .15s var(--ease) both; }
  [dir="rtl"] .notes-hero .script, [dir="rtl"] .note-top .script { animation-name: sv-write-rtl; }
  .notes-hero .w__i, .note-top .w__i { animation: sv-rise 1.1s var(--ease) both; }
  .notes-hero .w:nth-child(1) .w__i, .note-top .w:nth-child(1) .w__i { animation-delay: .38s; }
  .notes-hero .w:nth-child(2) .w__i, .note-top .w:nth-child(2) .w__i { animation-delay: .47s; }
  .notes-hero .w:nth-child(3) .w__i, .note-top .w:nth-child(3) .w__i { animation-delay: .56s; }
  .notes-hero .w:nth-child(4) .w__i, .note-top .w:nth-child(4) .w__i { animation-delay: .65s; }
  .notes-hero .w:nth-child(5) .w__i, .note-top .w:nth-child(5) .w__i { animation-delay: .74s; }
  .notes-hero .w:nth-child(n+6) .w__i, .note-top .w:nth-child(n+6) .w__i { animation-delay: .83s; }
  .notes-hero__lead, .note-top__lead { animation: sv-up 1s .85s var(--ease) both; }
  .notes-hero__cta, .note-byline { animation: sv-up 1s 1s var(--ease) both; }
  .note-crumbs { animation: sv-up .8s .05s var(--ease) both; }
  .note-top .dia { animation: notes-dia .7s .75s var(--ease) both; }
  .note-arch { animation: sv-up 1.2s .5s var(--ease) both; }
  .notes-marquee { animation: sv-up 1.3s .45s var(--ease) both; }
}
/* cards arrive left to right */
.series-card:nth-child(2), .note-card:nth-child(3n+2) { transition-delay: .1s; }
.series-card:nth-child(3), .note-card:nth-child(3n+3) { transition-delay: .2s; }
.notes-cta .sv-late { display: block; }

/* ---- print: the note alone ---- */
@media print {
  .nav, .footer, .to-top, .request, .note-palette, .note-aside, .notes-cta, .note-next, .note-crumbs { display: none !important; }
  .notes-page { background: white; min-height: 0; }
  .note-top { display: block; padding: 15px 0; }
  .note-arch { max-width: 240px; margin: 12px 0; }
  .note-read { display: block; padding: 0; }
  .note-body { max-width: none; font-size: 11pt; color: black; }
  .note-body h2::before { display: none; }
  .note-table { overflow: visible; }
  .note-table table { min-width: 0; font-size: 9pt; }
  .note-body h2 { break-after: avoid; }
  .note-body tr { break-inside: avoid; }
  .note-top h1 { font-size: 25pt; }
  .note-byline { color: black; }
  .wrap { max-width: none; padding: 0; }
}

/* ---- the contents list: no browser triangle; on a phone, where it starts closed, a chevron says it opens ---- */
.note-toc summary { list-style: none; }
.note-toc summary::-webkit-details-marker { display: none; }
@media (max-width: 700px) {
  .note-toc summary::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-start: 12px; border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s; }
  .note-toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
}

/* --- a template's page (kind "template"): the copy on the side, over a wall of the site's product illustrations, as on
   the home page's set-up section. The rows drift slowly, each its own way; under "reduce motion" they stand still. --- */
.note-wall { position: relative; height: clamp(560px, 46vw, 640px); overflow: hidden; background: var(--ivory); border-bottom: 1px solid var(--line-soft); }
.note-wall__images { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; overflow: hidden; }
.note-wall__row { display: flex; gap: 12px; width: max-content; }
.note-wall__row img { display: block; height: clamp(150px, 13vw, 188px); width: auto; border-radius: 10px; }
.note-wall__row:nth-child(1) { margin-inline-start: 22%; }
.note-wall__row:nth-child(2) { margin-inline-start: 6%; }
.note-wall__row:nth-child(3) { margin-inline-start: 30%; }
.note-wall__copy { position: absolute; z-index: 2; inset-inline-start: 0; top: 0; bottom: 0; width: min(860px, 60%); display: flex; flex-direction: column; justify-content: center; padding-inline: max(var(--pad), calc((100% - 1200px) / 2 + var(--pad))) 72px; background: linear-gradient(90deg, var(--ivory) 0%, var(--ivory) 58%, rgb(245 239 232 / .86) 80%, rgb(245 239 232 / 0) 100%); }
[dir="rtl"] .note-wall__copy { background: linear-gradient(270deg, var(--ivory) 0%, var(--ivory) 58%, rgb(245 239 232 / .86) 80%, rgb(245 239 232 / 0) 100%); }
.note-wall .note-crumbs { margin-bottom: 26px; }
.note-wall .script { font-size: clamp(24px, 2.6vw, 32px); color: var(--gold-ink); }
.note-wall h1 { margin: 6px 0 0; font-weight: 300; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
:lang(ar) .note-wall h1 { line-height: 1.35; letter-spacing: 0; text-transform: none; }
.note-wall .dia { margin-top: 26px; background: var(--gold-ink); }
.note-wall__download { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; font-size: 14.5px; color: var(--muted); }
@keyframes note-drift { to { transform: translateX(-50%); } }
@keyframes note-drift-rtl { to { transform: translateX(50%); } }
@keyframes note-rise { from { translate: 0 140%; } }
@keyframes note-up { from { opacity: 0; translate: 0 22px; } }
@keyframes note-wall-in { from { opacity: 0; translate: 0 26px; } }
@media (prefers-reduced-motion: no-preference) {
  .note-wall__row { animation: note-drift 150s linear infinite; }
  .note-wall__row:nth-child(2) { animation-duration: 190s; animation-direction: reverse; }
  .note-wall__row:nth-child(3) { animation-duration: 170s; }
  [dir="rtl"] .note-wall__row { animation-name: note-drift-rtl; }
  .note-wall__images { animation: note-wall-in 1.6s .1s var(--ease) both; }
  .note-wall .script { animation: sv-write 1.2s .15s var(--ease) both; }
  [dir="rtl"] .note-wall .script { animation-name: sv-write-rtl; }
  .note-wall h1 .w__i { animation: note-rise 1.05s .35s var(--ease) both; }
  .note-wall .note-top__lead { animation: note-up 1s .95s var(--ease) both; }
  .note-wall__download { animation: note-up 1s 1.1s var(--ease) both; }
}
@media (max-width: 860px) {
  .note-wall { height: auto; }
  .note-wall__copy { position: relative; width: auto; padding: 40px var(--pad) 32px; background: var(--ivory); }
  .note-wall__images { position: relative; height: 300px; }
  .note-wall__row img { height: 88px; }
}

/* the picture of a template's upload sheet, in its text */
.note-sheet { margin: 26px 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 44px 80px -44px rgb(48 40 79 / .42); font-family: Arial, Helvetica, sans-serif; font-size: 12.5px; color: var(--ink); }
.note-sheet__scroll { overflow-x: auto; }
.note-sheet__grid { display: grid; grid-template-columns: 30px repeat(var(--cols), minmax(max-content, 1fr)); min-width: max-content; }
.note-sheet__grid > span { min-height: 31px; padding: 7px 9px; border-inline-end: 1px solid #E3DEEC; border-bottom: 1px solid #E3DEEC; white-space: nowrap; }
.note-sheet__grid > .note-sheet__n { background: #F4F1F8; color: var(--muted); font-size: 11px; text-align: center; }
.note-sheet .is-required { background: var(--violet); color: #fff; font-weight: 700; }
.note-sheet .is-optional { background: var(--lavender-2); color: var(--ink); font-weight: 700; }
.note-sheet .is-band { background: var(--cream); }
.note-sheet__tabs { display: flex; gap: 2px; padding: 6px 10px 0; border-top: 1px solid #E3DEEC; background: #F4F1F8; font-size: 12px; }
.note-sheet__tabs span { padding: 6px 14px; border-radius: 6px 6px 0 0; color: var(--ink-2); }
.note-sheet__tabs .is-on { background: #fff; color: var(--violet); font-weight: 700; box-shadow: 0 -2px 0 var(--violet) inset; }

:lang(ar) .note-sheet { font-family: var(--font-body); font-size: 13.5px; }
