/* A printed example and its two editable outputs. Sample pages are HTML,
   so their proportions and labels hold up without a screenshot or app chrome. */
.office-showcase { padding-block: clamp(39px, 6.2vw, 84px); border-bottom: 1px solid var(--rule); }
.office-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .53fr);
  align-items: end;
  gap: 14px clamp(19px, 5vw, 63px);
  margin-bottom: clamp(23px, 3.6vw, 44px);
}
.office-opening .eyebrow { color: var(--lavender-ink); }
.office-opening h2 { margin: 0; font-size: clamp(2.28rem, 5.2vw, 4.75rem); line-height:.99; letter-spacing: -.034em; }
.office-intro-copy p { max-width: 42ch; margin: 0; color: var(--body); font-size: clamp(1rem, 1.5vw, 1.1rem); }
.office-intro-copy .text-link { margin-top: 3px; font-size: .89rem; }
.office-spread { display: grid; grid-template-columns: minmax(0, .64fr) minmax(0, 1fr) minmax(0, 1.18fr); align-items: start; gap: clamp(13px, 2.5vw, 35px); }
.office-original {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  align-self: start;
  min-width: 0;
  min-height: 302px;
  margin: 0;
  padding: 10px;
  border-block: 1px solid var(--rule-strong);
}
.office-original figcaption { width: 100%; text-align: center; color: var(--body); font-size: .82rem; line-height: 1.34; }
.office-original figcaption b, .office-original figcaption span { display: block; }
.office-original figcaption b { margin-bottom: 4px; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.office-scan-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 11px; margin: 8px 0 0; padding: 0; list-style: none; }
.office-scan-key li { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-ink); font-size: .73rem; font-weight: 720; }
.office-scan-key li::before { content: ""; width: .62rem; height: .54rem; flex: 0 0 auto; border: 1px solid currentColor; }
.office-scan-key li + li { color: var(--green-ink); }
.office-scan-key li + li::before { border-style: dashed; }
.office-branch { min-width: 0; }
.office-branch-word { --office-ink: var(--blue-ink); --office-tint: var(--blue); }
.office-branch-slides { --office-ink: var(--peach-ink); --office-tint: var(--peach); }
.office-specimen { margin: 0; }
.office-specimen figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 11px;
  padding-block: 7px;
  border-top: 1px solid var(--office-ink);
  color: var(--office-ink);
  font-size: .75rem;
  font-weight: 740;
  letter-spacing: .065em;
  line-height: 1.4;
  text-transform: uppercase;
}
.office-specimen figcaption small { color: var(--body); font: 680 .75rem ui-monospace, Menlo, monospace; text-transform: lowercase; }
.office-proof {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 12px;
  min-height: 270px;
  padding: clamp(10px, 1.45vw, 19px);
  border-bottom: 1px solid var(--rule);
  background: var(--office-tint);
  background: color-mix(in srgb, var(--office-tint) 67%, var(--surface));
}
.office-proof > p { margin: 0; color: var(--office-ink); font-size: .75rem; font-weight: 680; line-height: 1.35; text-align: center; }
.office-branch h3, .office-mode h3 {
  margin: 14px 0 0;
  font-size: clamp(1.45rem, 2.75vw, 2.45rem);
  line-height: 1.06;
  letter-spacing: -.044em;
  text-wrap: balance;
}
.office-branch > p, .office-mode header > p:last-child { margin: 9px 0 0; color: var(--body); font-size: .96rem; }
.office-branch .text-link { margin-top: 4px; color: var(--office-ink); }

.office-sample {
  width: 100%;
  min-width: 0;
  padding: 13px;
  background: #fffdf8;
  border: 1px solid #c7c0b8;
  color: #292839;
  font: 550 .69rem/1.23 var(--font-sans);
  box-shadow: 0 7px 15px #28212e24;
}
.office-sample strong, .office-sample p { display: block; margin: 0; }
.office-sample strong { font-size: 1.05rem; font-weight: 790; letter-spacing: -.035em; }
.office-sample p { margin: 5px 0 9px; }
.office-sample table { width: 100%; border-collapse: collapse; }
.office-sample th, .office-sample td { padding: 3px 5px; border: 1px solid #c7c0b8; text-align: left; }
.office-sample th { background: #f0e9df; color: #40362b; font-weight: 750; }
.office-sample :is(th, td):first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.office-source-sample { max-width: 160px; min-height: 195px; background: #f8eee0; transform: rotate(-4deg); }
.office-source-sample strong { font-family: var(--font-serif); }
.office-scan-text { padding: 3px; background: #e6effa; outline: 1px solid #35659a; outline-offset: 2px; }
.office-scan-text p { margin: 4px 0 0; }
.office-scan-table { margin-top: 12px; outline: 1px dashed #3f785e; outline-offset: 2px; }
.office-doc-sample { max-width: 184px; min-height: 201px; border-top: 4px solid #3e6897; }
.office-doc-sample th { background: #dce9f8; color: #274971; }
.office-slide-sample {
  max-width: 395px;
  aspect-ratio: 16 / 9;
  padding: clamp(9px, 1.5vw, 19px);
  border-inline-start: 5px solid #a8603f;
  background: #fffaf3;
  box-shadow: 4px 4px 0 -1px #fffaf3, 5px 5px 0 -1px #c7b7ab, 8px 8px 0 -1px #fffaf3, 9px 9px 0 -1px #c7b7ab;
}
.office-slide-sample > strong { font-size: clamp(.99rem, 1.8vw, 1.5rem); }
.office-slide-sample table { max-width: 76%; }
.office-slide-sample th { background: #f5e1d3; color: #633c27; }
.office-note { margin: 16px 0 0; max-width: 88ch; color: var(--muted); font-size: .88rem; }
.office-note strong { color: var(--ink); }

.office-recognition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .81fr);
  align-items: start;
  gap: 12px clamp(18px, 5vw, 74px);
  border-top: 2px solid var(--accent);
  padding-block: clamp(16px, 2.8vw, 34px);
}
.office-recognition:focus-visible { outline-offset: -2px; }
.office-recognition .eyebrow { margin-bottom: 7px; color: var(--lavender-ink); }
.office-recognition h3 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.55rem); line-height: 1.08; letter-spacing: -.041em; }
.office-recognition header p:not(.eyebrow) { max-width: 52ch; margin: 8px 0 0; color: var(--body); }
.office-recognition dl { margin: 0; border-bottom: 1px solid var(--rule); }
.office-recognition dl > div { padding: 9px 0; border-top: 1px solid var(--rule); }
.office-recognition dt { color: var(--blue-ink); font-weight: 760; }
.office-recognition dl > div + div dt { color: var(--green-ink); }
.office-recognition dd { margin: 3px 0 0; color: var(--body); font-size: .93rem; line-height: 1.47; }

/* The format shortcuts land on the actual mode descriptions on Features. */
.office-modes {
  --mode-gap: clamp(14px, 3.5vw, 42px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--rule-strong);
}
.office-mode { min-width: 0; padding: clamp(14px, 2.6vw, 30px) 0; }
.office-mode-word { --office-ink: var(--blue-ink); padding-inline-end: var(--mode-gap); }
.office-mode-slides { --office-ink: var(--peach-ink); padding-inline-start: var(--mode-gap); border-inline-start: 1px solid var(--rule); }
.office-mode .eyebrow { margin-bottom: 8px; color: var(--office-ink); }
.office-mode h3 { margin-top: 0; }
.office-mode:focus-visible { outline-offset: -3px; }
.office-mode:target .eyebrow { text-decoration: underline; text-underline-offset: .2em; }
.office-mode dl { display: grid; margin: 16px 0 0; }
.office-mode dl div { display: grid; grid-template-columns: minmax(102px, .55fr) minmax(0, 1fr); gap: 3px 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.office-mode dt { color: var(--office-ink); font-weight: 740; line-height: 1.34; }
.office-mode dd { margin: 0; color: var(--body); font-size: .91rem; line-height: 1.45; }
.format-strip.standard-formats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(19px, 3vw, 35px); }

@media (max-width: 900px) {
  .office-spread { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-original {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, min(50%, 143px)) minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 13px 9px;
  }
  .office-original figcaption { text-align: start; overflow-wrap: anywhere; }
  .office-scan-key { justify-content: flex-start; }
  .office-source-sample { min-height: 145px; overflow-wrap: anywhere; }
}
@media (max-width: 740px) {
  .office-modes { grid-template-columns: minmax(0, 1fr); }
  .office-mode { padding-inline: 0; }
  .office-mode-slides { border-inline-start: 0; border-top: 1px solid var(--rule-strong); }
  .format-strip.standard-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 610px) {
  .office-opening, .office-spread, .office-recognition { grid-template-columns: minmax(0, 1fr); }
  .office-opening h2 br { display: none; }
  .office-proof { min-height: 0; }
  .office-branch + .office-branch { margin-top: 8px; }
}
@media (max-width: 385px) {
  .office-mode dl div { grid-template-columns: minmax(0, 1fr); }
  .office-slide-sample table { max-width: none; }
}
@media (forced-colors: active) {
  .office-proof { border: 1px solid CanvasText; }
}
