/* An editorial workbench: printed rules, an offset mirror and one focused writing surface. */
.page-flagship-mirror main {
  max-inline-size: 68rem;
  padding-inline: clamp(12px, 3.5vw, 36px);
}
.fm-shell {
  --fm-dark: #112c2e;
  --fm-mint: #adf3d5;
  --fm-warm: #fff5df;
  --fm-paper: #fdf9ef;
  --fm-line: #adbdb1;
  --fm-ink: #192e2c;
  --fm-soft: #45615b;
  --fm-accent: #174c42;
  --fm-serif: var(--display);
  color: var(--fm-ink);
  margin-block: 1rem 3rem;
}
html[data-dark] .fm-shell {
  --fm-paper: #202b2c;
  --fm-line: #647b72;
  --fm-ink: #f1f8ef;
  --fm-soft: #c1d3c9;
  --fm-accent: #adf3d5;
}
.fm-shell a { color: var(--fm-accent); }
.fm-shell :focus-visible { outline-color: var(--fm-accent); }
.fm-shell h1, .fm-shell h2, .fm-shell h3 { margin-block: 0 .35em; color: inherit; text-wrap: balance; }
.fm-shell p { margin-block: .4em 1em; }
.fm-hero {
  position: relative;
  isolation: isolate;
  background: var(--fm-dark);
  color: var(--fm-warm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 3fr 1fr;
  padding: 0 clamp(17px, 4.8vw, 64px) clamp(24px, 5vw, 60px);
}
.fm-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, transparent calc(50% - .5px), #eaffee26 50%, transparent calc(50% + .5px));
}
.fm-hero :focus-visible { outline-color: var(--fm-mint); }
.fm-nav {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  gap: 4px clamp(12px, 3vw, 34px);
  flex-wrap: wrap;
  padding-block: 13px;
  margin-block-end: clamp(24px, 4.5vw, 63px);
  border-block-end: 1px solid #bfeadd7a;
  align-items: center;
  font-size: .83rem;
}
.fm-nav a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--fm-mint); text-decoration: none; }
.fm-nav a:is(:hover,[aria-current]) { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.fm-hero-copy { z-index: 1; max-inline-size: 46rem; position: relative; }
.fm-kicker { font-size: .82rem; font-weight: 780; letter-spacing: .095em; text-transform: uppercase; }
:dir(rtl) .fm-kicker { letter-spacing: 0; }
.fm-hero .fm-kicker { color: var(--fm-mint); margin-block: 0 .8em; }
.fm-hero h1 {
  font-family: var(--fm-serif);
  font-size: clamp(2.55rem, 8.5vw, 6.15rem);
  font-weight: 650;
  line-height: .91;
  letter-spacing: -.038em;
  overflow-wrap: anywhere;
}
:dir(rtl) .fm-hero h1 { line-height: 1.32; letter-spacing: 0; }
.fm-hero-copy > p:not(.fm-kicker) { font-size: clamp(.93rem, 2.3vw, 1.17rem); max-inline-size: 36rem; }
.fm-hero .fm-button-invert { background: var(--fm-mint); color: var(--fm-dark); border-color: var(--fm-mint); }
.fm-art {
  pointer-events: none;
  align-self: center;
  justify-self: center;
  position: relative;
  inline-size: min(22vw, 15.5rem);
  aspect-ratio: 4 / 5;
  margin-inline: 12px;
}
.fm-art i { position: absolute; inset-block: 0; inline-size: 52%; border: 1px solid #adf3d5; border-radius: 96% 4% 0 0 / 56% 2% 0 0; }
.fm-art i:nth-child(1) { inset-inline-start: 0; background: #adf3d515; }
.fm-art i:nth-child(2) { inset-inline-start: 12%; background: #adf3d520; }
.fm-art i:nth-child(3) { inset-inline-end: 12%; background: #adf3d537; transform: scaleX(-1); }
.fm-art i:nth-child(4) { inset-inline-end: 0; background: #adf3d555; transform: scaleX(-1); }
.fm-library-body, .fm-atlas, .fm-assessment-body { background: var(--fm-paper); padding: clamp(16px, 4vw, 54px); }
.fm-library-topic { margin-block: 1rem clamp(31px, 6vw, 67px); }
.fm-library-topic h2, .fm-atlas-domain > h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font: 640 clamp(1.8rem, 5vw, 3.65rem)/1.05 var(--fm-serif);
  border-block-end: 2px solid var(--fm-ink);
  padding-block-end: .13em;
}
:dir(rtl) :is(.fm-library-topic h2,.fm-atlas-domain > h2) { line-height: 1.6; }
.fm-library-topic h2 span { font: 700 .87rem var(--body); color: var(--fm-soft); }
.fm-filters { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) auto; align-items: end; gap: 9px 17px; margin-block-end: 2rem; }
.fm-filters label, .fm-disclosure label, .fm-atlas label { display: grid; font-size: .87rem; font-weight: 730; gap: .3rem; }
.fm-filters :is(input,select), .fm-disclosure input[type=text], .fm-atlas select, .fm-status input {
  inline-size: 100%;
  min-block-size: 44px;
  border: 1px solid var(--fm-line);
  background: var(--fm-paper);
  color: var(--fm-ink);
  border-radius: 0;
  padding: .5rem .65rem;
  font: inherit;
}
.fm-filters output { font-size: .87rem; padding-block-end: .65rem; }
.fm-ledger { list-style: none; margin: 0; padding: 0; }
.fm-ledger li {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  position: relative; border-block-end: 1px solid var(--fm-line); padding-block: .74rem;
}
.fm-ledger-link { display: grid; flex: 1; gap: .13em; color: var(--fm-ink); text-decoration: none; }
.fm-ledger-link strong { font-size: clamp(.96rem, 2.5vw, 1.21rem); text-decoration-thickness: 1px; }
.fm-ledger-link:hover strong { text-decoration-line: underline; }
.fm-ledger-link span { font-size: .9rem; color: var(--fm-soft); }
.fm-library-end { display: grid; justify-items: end; gap: .18em; color: var(--fm-soft); font-size: .79rem; text-align: end; }
.fm-arrow { font-size: 1.5rem; line-height: 1; }
:dir(rtl) .fm-arrow { transform: rotate(180deg); }
.fm-old { border-inline-start: 2px solid; color: var(--fm-soft); padding-inline-start: 1rem; }
.fm-old p { margin-block: .18rem; font-size: .89rem; }
.fm-assessment-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .45fr); align-items: start; gap: clamp(20px, 4.2vw, 52px); }
.fm-exercise h2 { font: 660 clamp(1.8rem, 3.8vw, 3rem)/1.13 var(--fm-serif); }
:dir(rtl) .fm-exercise h2 { line-height: 1.7; }
.fm-exercise h3 { font-weight: 760; }
.fm-exercise [tabindex="-1"], .fm-atlas [tabindex="-1"] { scroll-margin-block-start: 1rem; }
.fm-theory { border-inline-start: 1px solid var(--fm-line); padding-inline-start: clamp(12px, 3vw, 35px); font-size: .88rem; }
.fm-theory h2 { font: 650 clamp(1.5rem, 3vw, 2.2rem)/1.1 var(--fm-serif); }
.fm-theory h3 { font-size: 1.07rem; margin-block-start: 1.2rem; }
.fm-theory ul { padding-inline-start: 1.05em; }
.fm-theory li { margin-block: .4em; }
.fm-method p { margin-block: .55em .9em; }
.fm-button {
  display: inline-flex; align-items: center; justify-content: center;
  font: 720 .86rem/1.4 var(--body); padding: .48rem .65rem; min-block-size: 44px;
  background: var(--fm-paper); color: var(--fm-accent);
  border: 1px solid var(--fm-accent); border-radius: 0;
  cursor: pointer; text-decoration: none; text-align: center; overflow-wrap: anywhere;
}
.fm-button:hover:not(:disabled) { color: var(--fm-paper); background: var(--fm-accent); }
.fm-button-primary { background: var(--fm-accent); color: var(--fm-paper); }
.fm-shell .fm-button-primary:hover:not(:disabled) { background: var(--fm-ink); color: var(--fm-paper); }
.fm-shell .fm-button-invert:hover { color: var(--fm-dark); background: var(--fm-warm); }
.fm-button:disabled { opacity: .53; cursor: default; }
.fm-actions, .fm-delete-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-block: .8rem; }
.fm-remember { display: flex; align-items: center; gap: .62rem; min-block-size: 44px; font-size: .9rem; }
.fm-remember input { inline-size: 21px; block-size: 21px; accent-color: var(--fm-accent); }
.fm-disclosure { border-block-start: 1px solid var(--fm-line); margin-block: 1rem; }
.fm-disclosure summary { min-block-size: 44px; padding-block: .55rem; font-size: .9rem; font-weight: 760; cursor: pointer; }
.fm-disclosure p { font-size: .9rem; }
.fm-question-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .88rem; margin-block-end: .9rem; color: var(--fm-soft); }
.fm-question-progress progress { max-inline-size: 54%; inline-size: 14rem; block-size: .55rem; accent-color: var(--fm-accent); }
.fm-scenario { padding-inline-start: .75rem; border-inline-start: 2px solid var(--fm-accent); }
.fm-choices { margin-block: 1.15rem; }
.fm-choices label:not(.fm-range-label) {
  display: flex; align-items: center; gap: .62rem; min-block-size: 48px;
  cursor: pointer; padding: .45rem .6rem; border: 1px solid var(--fm-line); margin-block: .4rem;
  font-size: .9rem;
}
.fm-choices label:hover, .fm-choices label:has(:checked) { border-color: var(--fm-accent); }
.fm-choices label:has(:checked) { background: color-mix(in srgb, var(--fm-accent) 12%, var(--fm-paper)); }
.fm-choices label:has(:focus-visible) { outline: 2px solid var(--fm-accent); outline-offset: 1px; }
.fm-choices input[type=radio] { accent-color: var(--fm-accent); min-inline-size: 16px; min-block-size: 16px; flex: none; }
.fm-choice-dot { display: none; }
.fm-tokens { display: flex; gap: 4px; align-items: flex-end; flex: none; block-size: 1.7rem; }
.fm-tokens i { inline-size: 7px; block-size: 50%; background: var(--fm-accent); }
.fm-tokens.fm-pattern-1 i { block-size: 37.5%; }
.fm-tokens.fm-pattern-1 i:last-child { block-size: 75%; }
.fm-tokens.fm-pattern-2 i { block-size: 25%; }
.fm-tokens.fm-pattern-2 i:last-child { block-size: 100%; }
.fm-confidence, .fm-calibration { border-block-start: 1px solid var(--fm-line); padding-block-start: .65rem; margin-block: .8rem 1rem; }
.fm-confidence .fm-button { display: flex; margin-block-start: .25rem; }
.fm-range-label { display: block; font-size: .87rem; margin-block-end: .7rem; }
.fm-slider input { inline-size: 75%; accent-color: var(--fm-accent); min-block-size: 44px; vertical-align: middle; }
.fm-slider output { font-size: 1.25rem; font-weight: 800; padding-inline-start: .75rem; }
.fm-rank ol { padding-inline-start: 1.45em; }
.fm-rank li { padding-block: .3rem; border-block-start: 1px solid var(--fm-line); }
.fm-rank li div { display: inline-flex; gap: .24rem; margin-inline-start: .55rem; }
.fm-rank button { min-inline-size: 44px; }
.fm-profile { display: grid; gap: .7rem 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 1rem; }
.fm-axis { border-block-start: 2px solid var(--fm-accent); padding-block: .46rem .12rem; }
.fm-axis h3 { font-size: .92rem; margin: 0; }
.fm-axis .fm-band { font: 680 clamp(1.08rem, 2.9vw, 1.6rem)/1.18 var(--fm-serif); margin-block: .55em; }
.fm-meter { border-block-start: 1px solid var(--fm-accent); position: relative; margin-block: .8rem .45rem; }
.fm-meter span {
  position: absolute; inline-size: .7rem; block-size: .7rem; inset-block-start: -.38rem; inset-inline-start: clamp(0px, var(--fm-mean), calc(100% - .7rem));
  border-radius: 100%; background: var(--fm-accent); transform-origin: center; animation: fm-pin .55s ease-out both;
}
@keyframes fm-pin { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
.fm-poles, .fm-meta { font-size: .78rem; color: var(--fm-soft); overflow-wrap: anywhere; }
.fm-poles { display: flex; justify-content: space-between; gap: 4px; }
.fm-poles span { inline-size: 46%; }
.fm-poles span:last-child { text-align: end; }
.fm-comparison, .fm-answer-list { font-size: .9rem; }
.fm-comparison div, .fm-answer-list div { border-block-start: 1px solid var(--fm-line); display: grid; gap: .48rem; padding-block: .55rem; }
.fm-comparison div { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1fr); }
.fm-answer-list div { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
.fm-answer-list dd, .fm-comparison dd { margin-inline: 0; display: grid; }
.fm-answer-list dd span, .fm-comparison dd span { color: var(--fm-soft); font-size: .8rem; }
.fm-reflection, .fm-friend { border-inline-start: 3px solid var(--fm-accent); padding-inline-start: .85rem; margin-block: 1rem; }
.fm-reflection h3, .fm-friend h3 { font-size: 1rem; }
.fm-friend ul { padding-inline-start: 1.1em; }
.fm-status:empty { display: none; }
.fm-atlas-domain { margin-block: 1.2rem 2rem; }
.fm-attempts summary { min-block-size: 44px; padding-block: .6rem; cursor: pointer; border-block-end: 1px solid var(--fm-line); }
.fm-attempts summary time { margin-inline-start: .65rem; font-size: .81rem; color: var(--fm-soft); }
.fm-attempts[open] { margin-block-end: 1.5rem; }
.fm-attempts[open] summary { margin-block-end: .8rem; }
.fm-atlas-history { margin-block: 1rem; }
.fm-attempts select { max-inline-size: 20rem; }
@media (max-width: 46rem) {
  .fm-assessment-body { grid-template-columns: 1fr; }
  .fm-theory { border-inline-start: 0; border-block-start: 2px solid var(--fm-line); padding-inline-start: 0; padding-block-start: 1rem; }
}
@media (max-width: 33rem) {
  .fm-hero { grid-template-columns: 1fr; }
  .fm-art { position: absolute; inset-inline-end: -10%; inset-block-end: 0; inline-size: 37%; opacity: .6; z-index: -1; }
  .fm-nav { margin-block-end: 1.45rem; }
  .fm-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .fm-filters label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 24rem) {
  .fm-profile { grid-template-columns: 1fr; }
  .fm-ledger-link span { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-meter span { animation: none; }
}

.fm-shell { --fm-dark:#2c202d; --fm-mint:#f9cebc; --fm-warm:#fff4df; --fm-line:#c3aba6; --fm-accent:#773d4f; }
html[data-dark] .fm-shell { --fm-line:#8d757b; --fm-accent:#f9cebc; }
.fm-hero .fm-art { opacity:.82; }
.fm-hero-copy h1 { letter-spacing:-.033em; }
:is(.lang-ar,.lang-ur) .fm-hero-copy h1 { letter-spacing:0; }
