@import 'tailwindcss';
@import 'fumadocs-ui/css/neutral.css';
@import 'fumadocs-ui/css/preset.css';

:root {
  --portal-ink: #18221d;
  --portal-paper: #fbfaf7;
  --portal-accent: #b5422e;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-fd-foreground);
}

.docs-project-frame { display: contents; }

/* SAP Horizon-inspired colors and typography for the My SAP Tower project. */
.sap-tower-theme {
  /* SAP 72 when supplied by the host; system fallbacks keep the UI deterministic offline. */
  --font-sans: "72", "72full", "Segoe UI", Arial, "Helvetica Neue", sans-serif;
  --default-font-family: var(--font-sans);
  --radius-sm: .25rem;
  --radius-md: .375rem;
  --radius-lg: .5rem;
  --radius-xl: .625rem;
  --radius-2xl: .75rem;
  --color-fd-background: #f5f6f7;
  --color-fd-foreground: #1d2d3e;
  --color-fd-muted: #eef1f3;
  --color-fd-muted-foreground: #52677d;
  --color-fd-popover: #fff;
  --color-fd-popover-foreground: #1d2d3e;
  --color-fd-card: #fff;
  --color-fd-card-foreground: #1d2d3e;
  --color-fd-border: #d9dfe3;
  --color-fd-primary: #0070f2;
  --color-fd-primary-foreground: #fff;
  --color-fd-secondary: #edf1f5;
  --color-fd-secondary-foreground: #1d2d3e;
  --color-fd-accent: #e5f2ff;
  --color-fd-accent-foreground: #0057d2;
  --color-fd-ring: #0070f2;
  color: var(--color-fd-foreground);
  color-scheme: light;
  font-family: var(--font-sans);
}

.dark .sap-tower-theme {
  --color-fd-background: #1c2228;
  --color-fd-foreground: #f5f6f7;
  --color-fd-muted: #252c33;
  --color-fd-muted-foreground: #b4c0cc;
  --color-fd-popover: #293139;
  --color-fd-popover-foreground: #f5f6f7;
  --color-fd-card: #232a31;
  --color-fd-card-foreground: #f5f6f7;
  --color-fd-border: #3a424a;
  --color-fd-primary: #91c8f6;
  --color-fd-primary-foreground: #14202b;
  --color-fd-secondary: #303941;
  --color-fd-secondary-foreground: #f5f6f7;
  --color-fd-accent: #233b4e;
  --color-fd-accent-foreground: #c2e4ff;
  --color-fd-ring: #91c8f6;
  color-scheme: dark;
}

.sap-tower-theme #nd-docs-layout {
  background: var(--color-fd-background);
  font-family: var(--font-sans);
}

/* Horizon shell: compact, quiet separators, blue focus and selection states. */
.sap-tower-theme #nd-sidebar,
.sap-tower-theme #nd-subnav {
  font-size: .875rem;
}

.sap-tower-theme #nd-sidebar {
  border-color: var(--color-fd-border);
  background: var(--color-fd-card);
}

.sap-tower-theme #nd-sidebar a,
.sap-tower-theme #nd-sidebar button,
.sap-tower-theme #nd-subnav a,
.sap-tower-theme #nd-subnav button {
  font-family: var(--font-sans);
}

.sap-tower-theme #nd-sidebar :is(a, button)[data-active="true"] {
  border-radius: .25rem;
  color: var(--color-fd-primary);
  font-weight: 700;
  background: color-mix(in srgb, var(--color-fd-accent) 72%, transparent);
}

.sap-tower-theme #nd-sidebar [data-active="true"]::before {
  width: 2px;
  border-radius: 0;
}

.sap-tower-theme #nd-subnav {
  border-color: var(--color-fd-border);
  background: var(--color-fd-card);
  color: var(--color-fd-foreground);
  box-shadow: 0 1px 2px rgb(20 44 68 / 7%);
  backdrop-filter: blur(12px);
}

.sap-tower-theme #nd-sidebar {
  box-shadow: 1px 0 2px rgb(20 44 68 / 4%);
}

.sap-tower-theme :is(button, [role="button"], input, select, textarea):focus-visible {
  outline: 2px solid var(--color-fd-primary);
  outline-offset: 2px;
}

.sap-tower-theme #nd-page {
  color: var(--color-fd-foreground);
  font-size: 15px;
  line-height: 1.6;
}

.sap-tower-theme #nd-page :is(h1, h2, h3, h4) {
  color: var(--color-fd-foreground);
  font-family: var(--font-sans);
  letter-spacing: normal;
}

.sap-tower-theme #nd-page h2 {
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--color-fd-border);
  font-size: 1.35rem;
  font-weight: 700;
}

.sap-tower-theme #nd-page h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.sap-tower-theme #nd-page :is(blockquote, .callout, [data-callout]) {
  border-radius: .25rem;
  border-inline-start-color: var(--color-fd-primary);
  background: color-mix(in srgb, var(--color-fd-accent) 38%, var(--color-fd-card));
}

.sap-tower-theme #nd-page :is(.prose, [data-prose]) :is(ul, ol) > li::marker {
  color: var(--color-fd-muted-foreground);
}

.sap-tower-theme #nd-page h1 {
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 700;
}

.sap-tower-theme #nd-page :is(.prose, [data-prose]) a {
  color: var(--color-fd-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

.sap-tower-theme #nd-page :is(.prose, [data-prose]) a:hover {
  color: var(--color-fd-accent-foreground);
}

.sap-tower-theme #nd-page :is(.prose, [data-prose]) :is(input, select, textarea) {
  min-height: 2rem;
  border: 1px solid var(--color-fd-border);
  border-radius: .35rem;
  background: var(--color-fd-card);
  color: var(--color-fd-foreground);
  font: inherit;
}

.sap-tower-theme #nd-page :is(.prose, [data-prose]) table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-fd-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: .4rem;
  background: var(--color-fd-card);
  font-size: .94em;
}

.sap-tower-theme #nd-page :is(.prose, [data-prose]) th {
  background: var(--color-fd-muted);
  color: var(--color-fd-foreground);
  font-weight: 650;
}

.sap-tower-theme #nd-page :is(.prose, [data-prose]) :is(th, td) {
  border-color: var(--color-fd-border);
}

.sap-tower-theme #nd-page :is(.prose, [data-prose]) tr:hover td {
  background: color-mix(in srgb, var(--color-fd-accent) 48%, var(--color-fd-card));
}

.sap-tower-theme #nd-page :is(pre, code) {
  border-color: var(--color-fd-border);
  border-radius: .35rem;
}

.sap-tower-theme #nd-page pre {
  background: color-mix(in srgb, var(--color-fd-muted) 72%, var(--color-fd-background));
  font-size: .88em;
  line-height: 1.55;
}

/* Code cards wrap a tinted <pre>; tint the card too so the vertical padding matches
   the code area instead of showing white bands above and below the code. */
.sap-tower-theme #nd-page figure.shiki {
  background: color-mix(in srgb, var(--color-fd-muted) 72%, var(--color-fd-background));
}

.sap-tower-theme #nd-page figure.shiki pre {
  background: transparent;
}

.sap-tower-theme #nd-page :is(hr, [role="separator"]) {
  border-color: var(--color-fd-border);
}

.sap-tower-theme #nd-page :is([role="tablist"], [data-orientation]) [aria-selected="true"],
.sap-tower-theme #nd-page [role="tab"][data-state="active"] {
  color: var(--color-fd-primary);
}

.sap-tower-theme .brand-mark > span {
  border-radius: .25rem;
  background: #0070f2;
  font-family: var(--font-sans);
}

.dark .sap-tower-theme .brand-mark > span {
  background: #0070f2;
  color: white;
}

.project-index-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .75rem;
  border: 1px solid var(--color-fd-border);
  border-radius: .4rem;
  background: var(--color-fd-card);
  color: var(--color-fd-foreground);
  text-decoration: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.project-index-link:hover {
  border-color: var(--color-fd-primary);
  background: var(--color-fd-accent);
}

.project-index-link > svg:first-child { width: 1rem; height: 1rem; color: var(--color-fd-primary); }
.project-index-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: .1rem; }
.project-index-copy > span { color: var(--color-fd-muted-foreground); font-size: .7rem; }
.project-index-copy > strong { overflow: hidden; font-size: .85rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.project-index-arrow { width: .85rem; height: .85rem; color: var(--color-fd-muted-foreground); }

.sap-tower-theme .project-index-link {
  border-radius: .3rem;
  border-color: var(--color-fd-border);
  box-shadow: 0 1px 2px rgb(20 44 68 / 5%);
}

.sap-tower-theme .project-index-copy > span {
  color: var(--color-fd-muted-foreground);
}

.sap-tower-theme .project-index-copy > strong {
  font-weight: 700;
}

.sap-tower-theme .project-index-link:hover {
  border-color: var(--color-fd-primary);
  background: var(--color-fd-accent);
}

html > body[data-scroll-locked] {
  margin-right: 0px !important;
  --removed-body-scroll-bar-size: 0px !important;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-mark > span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--portal-accent);
  color: white;
  font-family: Georgia, serif;
  font-size: .72rem;
  letter-spacing: .08em;
}

/* Home */
.personal-home {
  flex: 1;
  padding: clamp(2rem, 6vw, 5rem) 0;
  background: var(--portal-paper);
  color: var(--portal-ink);
}
.dark .personal-home { background: var(--color-fd-background); color: var(--color-fd-foreground); }
.dark .home-featured-heading > a { color: #ed9e8f; }

.home-sections, .home-featured {
  width: min(1060px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.home-sections h1, .home-featured h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.home-sections h1 { margin-bottom: 1.5rem; font-size: clamp(2.5rem, 5vw, 4.25rem); }
.home-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.home-section-card {
  min-height: 12rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border-radius: .8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  color: white;
  text-decoration: none;
}
.home-section-card:hover { filter: brightness(1.08); }
.recipes-card { background: #a63f2c; }
.abap-card { background: #174d3a; }
.home-section-card > svg { width: 1.9rem; height: 1.9rem; }
.home-section-card h2 { font-family: Georgia, serif; font-size: 2rem; line-height: 1.15; }
.home-section-card p { color: #fff; line-height: 1.55; }
.home-featured { padding-top: 3rem; }
.home-featured h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.home-featured-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 1rem; }
.home-featured-heading > a { color: var(--portal-accent); font-weight: 700; white-space: nowrap; }

.article-cards {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.article-cards > .article-card {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  height: 100%;
  padding: 0 0 .75rem;
  overflow: hidden;
  align-self: stretch;
  text-decoration: none;
}
.article-card > h3 { display: block; min-width: 0; margin: 0; overflow: hidden; }
.article-card-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 8rem;
  aspect-ratio: auto;
  overflow: hidden;
  background: var(--color-fd-muted);
  color: var(--color-fd-muted-foreground);
}
.article-card-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.article-cards[data-size="large"] .article-card-media { height: 16rem; }
.article-card-media svg { width: 2.75rem; height: 2.75rem; }
.article-card-title { display: block; min-width: 0; padding: .65rem .8rem .2rem; overflow: hidden; font-size: .95rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.article-card > p { display: -webkit-box; min-height: 2.7em; margin: .2rem 0 0; padding-inline: .8rem; overflow: hidden; overflow-wrap: anywhere; font-size: .85rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

@media screen and (min-width: 42rem) {
  .article-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (min-width: 64rem) {
  .article-cards[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Recipe experience */
.recipe-route-shell { grid-area: main; width: 100%; min-width: 0; padding: 1.5rem clamp(.75rem, 3vw, 2rem) 5rem; background: #eef0ed; }
.recipe-document { width: 100%; }
.related-articles { margin-block: 2rem; }
.related-articles h2 { margin-bottom: .75rem; font-size: 1.125rem; font-weight: 650; }
.recipe-route-shell > .related-articles { width: min(210mm, 100%); margin-inline: auto; color: #18221d; }
.dark .recipe-route-shell > .related-articles { color: var(--color-fd-foreground); }
.dark .recipe-route-shell { background: var(--color-fd-background); }
.recipe-toolbar { width: min(210mm, 100%); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.recipe-tablist { padding: .3rem; display: flex; gap: .25rem; border: 1px solid #d7dcd7; border-radius: .65rem; background: white; }
.recipe-tablist button,
.recipe-print {
  min-height: 2.65rem;
  padding: .6rem .8rem;
  border-radius: .45rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #526059;
  font-size: .88rem;
  font-weight: 750;
  cursor: pointer;
}
.recipe-tablist button[aria-selected="true"] { background: #193e31; color: white; }
.recipe-tablist svg, .recipe-print svg { width: 1rem; height: 1rem; }
.recipe-print { border: 1px solid #cbd2cc; background: white; }
.recipe-tabpanel { width: 100%; }

.recipe-sheet,
.recipe-a4-panel {
  box-sizing: border-box;
  width: min(210mm, 100%);
  min-height: 297mm;
  margin: 0 auto;
  padding: 10mm;
  background: white;
  color: #17211c;
  box-shadow: 0 1.2rem 3rem rgba(26, 39, 32, .12);
  font-size: 12px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.recipe-sheet { --recipe-ink: #793628; --recipe-color: #dd7e6b; --recipe-tint: #f7e8e4; }
.recipe-theme-desserts { --recipe-ink: #724322; --recipe-color: #aa6c39; --recipe-tint: #f4ebe6; }
.recipe-theme-boissons { --recipe-ink: #35542a; --recipe-color: #b6d7a8; --recipe-tint: #eef5eb; }
.recipe-theme-entrees { --recipe-ink: #30545c; --recipe-color: #a2c4c9; --recipe-tint: #e5f0f1; }
.recipe-theme-fiches { --recipe-ink: #414951; --recipe-color: #a5acb1; --recipe-tint: #eef0f2; }

.recipe-sheet-header { padding-bottom: .65rem; border-bottom: 2px solid var(--recipe-color); text-align: center; break-after: avoid; }
.recipe-sheet-header h1,
.recipe-a4-panel h1 { margin: 0 0 .4em; font-family: Georgia, "Times New Roman", serif; font-size: 2.05rem; line-height: 1.14; font-weight: 700; }
.recipe-metadata { display: flex; justify-content: center; flex-wrap: wrap; gap: .35em 1.25em; }
.recipe-metadata dt { color: var(--recipe-ink); font-weight: 750; }
.recipe-tags { margin-top: .6em; display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; }
.recipe-tags span { padding: .1rem .45rem; border-radius: 999px; background: var(--recipe-tint); color: var(--recipe-ink); font-size: .75rem; font-weight: 650; }
.recipe-description { margin: 0 0 .9em; padding: .45em .65em; background: var(--recipe-tint); white-space: pre-line; }
.recipe-illustration { margin: .8em 0 0; break-inside: avoid; }
.recipe-illustration img { display: block; max-width: 100%; max-height: 65mm; width: auto; height: auto; object-fit: contain; margin-inline: auto; }
.recipe-sidebar .recipe-illustration img { max-height: 34mm; }

.recipe-sheet-grid { display: grid; gap: 3mm; align-items: start; margin-top: 4mm; }
.recipe-sheet-grid.has-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 32%); }
.recipe-method section + section { margin-top: .8em; }
.recipe-method h2,
.recipe-sidebar h2 { margin: 0 0 .35em; font-family: Georgia, serif; font-size: 1.12em; font-weight: 700; break-after: avoid; }
.recipe-method h2 { color: var(--recipe-ink); border-bottom: 1px solid var(--recipe-color); }
.recipe-method ol { padding-inline-start: 1.45em; list-style: decimal; }
.recipe-method li { margin: .2em 0; break-inside: avoid; }
.recipe-method li::marker { color: var(--recipe-ink); font-weight: 700; }
.recipe-method li small { display: block; color: #4d5b52; }

.recipe-sidebar { padding: 3mm; background: var(--recipe-tint); border-top: 3px solid var(--recipe-color); font-size: 10px; line-height: 1.4; }
.recipe-sidebar section + section { margin-top: .9em; }
.recipe-sidebar h2 { color: var(--recipe-ink); border-bottom: 1px solid var(--recipe-color); text-align: center; font-size: 10px; }
.recipe-sidebar h3 { margin: .55em 0 .2em; font-size: 10px; font-weight: 750; break-after: avoid; }
.recipe-sidebar ul { padding-inline-start: 1.1em; list-style: disc; }
.recipe-sidebar li { margin-block: .2em; }
.recipe-sidebar strong { font-variant-numeric: tabular-nums; }
.recipe-annotation { color: #414a44; font-size: .91em; }
small.recipe-annotation { display: block; }
.recipe-source-links { margin: .5rem 0 0; font-size: .9em; }

.reference-toolbar { justify-content: flex-end; }
.reference-body {
  max-width: none;
  --color-fd-foreground: #17211c;
  --color-fd-muted-foreground: #4d5b52;
  --color-fd-background: white;
  --color-fd-card: #f8f9f8;
  --color-fd-muted: #eef0ed;
  --color-fd-border: #d9ded9;
  color: #17211c;
}
.reference-body figure { margin: 5mm 0; break-inside: avoid; }
.reference-body img { width: auto; height: auto; margin-inline: auto; max-width: 100%; object-fit: contain; }
.reference-body table { width: 100%; }

.recipe-a4-panel > header { padding-bottom: 1rem; border-bottom: 2px solid #1f5b45; }
.recipe-a4-panel > header span { color: #1f5b45; font-size: .72rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.recipe-diagram { padding: 5mm 0 0; display: grid; place-items: center; }
.recipe-diagram > div { width: 100%; }
.recipe-diagram :is(svg, img) { display: block; max-width: 100% !important; max-height: 245mm; margin: auto; object-fit: contain; }
.recipe-table-panel { box-sizing: border-box; width: min(297mm, 100%); margin-inline: auto; padding: 10mm; background: white; color: #17211c; box-shadow: 0 1.2rem 3rem rgba(26, 39, 32, .12); font-size: 11px; line-height: 1.2; }
.dark .recipe-table-panel { background: var(--color-fd-background); color: var(--color-fd-foreground); }
.recipe-table-header h1 { margin: 0 0 .15rem; font-family: Georgia, serif; font-size: 1.1rem; line-height: 1.2; font-weight: 700; }
.recipe-table-header h1 small { font-family: Arial, sans-serif; font-size: .8em; font-weight: 400; }
.recipe-table-notice { margin: 1rem 0; padding: .6rem .8rem; border-left: 3px solid #478b4d; background: #f3f7f0; line-height: 1.5; }
.dark .recipe-table-notice { background: var(--color-fd-muted); color: var(--color-fd-muted-foreground); }
.recipe-table-section { margin-top: .75rem; break-inside: avoid; }
.recipe-table-section + .recipe-table-section { margin-top: 1.2rem; padding-top: .8rem; border-top: 3px solid #478b4d; }
.recipe-table-section h2 { margin: 0 0 .25rem; font-family: Georgia, serif; font-size: .95rem; font-weight: 700; }
.recipe-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.recipe-table-scroll:focus-visible { outline: 2px solid #286c35; outline-offset: 2px; }
.recipe-table-frame { display: inline-block; vertical-align: top; outline: 2px solid #2f7138; outline-offset: -2px; }
.recipe-flow-table { width: max-content; border: 2px solid #2f7138; border-collapse: collapse; table-layout: fixed; }
.recipe-flow-table th, .recipe-flow-table td { border: 1px solid #478b4d; padding: 2px 4px; vertical-align: middle; }
.recipe-flow-ingredient-column { width: 13rem; }
.recipe-flow-action-column { width: 6.5rem; }
.recipe-flow-table .recipe-flow-source { text-align: left; font-weight: 400; font-variant-numeric: tabular-nums; }
.recipe-flow-table .recipe-flow-pad { border: 0; padding: 0; background: transparent; }
.recipe-flow-table .recipe-flow-action { text-align: center; font-weight: 500; white-space: normal; overflow-wrap: anywhere; }
.recipe-flow-table .recipe-flow-action.is-optional { background: #f3f7f0; }
.dark .recipe-flow-table .recipe-flow-action.is-optional { background: var(--color-fd-muted); color: var(--color-fd-foreground); }
.recipe-prep-banner td { text-align: center; font-weight: 500; }
.recipe-table-context { margin-top: .8rem; line-height: 1.45; }
.recipe-table-context p { margin: .3rem 0; }
.recipe-table-context section { margin-top: .6rem; }
.recipe-table-context h2 { margin: 0 0 .2rem; font-size: .9rem; }
.recipe-table-context ul { margin: 0; padding-left: 1.2rem; }

@media screen and (max-width: 760px) {
  .home-section-grid { grid-template-columns: 1fr; }
  .home-featured-heading { align-items: start; flex-wrap: wrap; }
  .recipe-route-shell { padding-inline: 0; }
  .recipe-toolbar { padding-inline: .75rem; align-items: stretch; flex-direction: column; }
  .recipe-tablist { overflow-x: auto; }
  .recipe-tablist button { white-space: nowrap; }
  .recipe-print { justify-content: center; }
  .recipe-sheet, .recipe-a4-panel { min-height: 0; box-shadow: none; }
  .recipe-sheet, .recipe-a4-panel { padding: 5mm; }
  .recipe-sheet-grid.has-sidebar { grid-template-columns: minmax(0, 1fr); }
  .recipe-table-panel { padding: 5mm; box-shadow: none; }
  .recipe-route-shell > .related-articles { padding-inline: .75rem; }
}

@media print {
  @page { size: A4 portrait; margin: 10mm; }
  @page recipe-table { size: A4 landscape; margin: 10mm; }
  :root { color-scheme: only light !important; }
  html, body { margin: 0 !important; padding: 0 !important; background: white !important; }
  #nd-nav, #nd-subnav, #nd-sidebar, [data-sidebar-placeholder], [data-sidebar], .no-print { display: none !important; }
  #nd-docs-layout:has(.recipe-route-shell) { display: block !important; min-height: 0; overflow: visible; }
  .recipe-route-shell, .recipe-document, .recipe-tabpanel { width: 100%; margin: 0 !important; padding: 0 !important; background: white !important; }
  .recipe-sheet, .recipe-a4-panel {
    width: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 0;
    box-shadow: none !important;
    font-size: 9pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .recipe-sheet-header h1, .recipe-a4-panel h1 { font-size: 24pt; }
  .recipe-sheet-grid.has-sidebar { grid-template-columns: minmax(0, 1fr) 60mm; }
  .recipe-sidebar { font-size: 7.5pt; }
  .recipe-diagram { break-inside: avoid; }
  .recipe-diagram :is(svg, img) { max-height: 240mm; }
  .recipe-table-panel { page: recipe-table; width: 100%; padding: 0; margin: 0; background: white; color: #17211c; box-shadow: none; font-size: 7pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .recipe-table-section { margin-top: .4rem; }
  .recipe-table-section + .recipe-table-section { margin-top: .55rem; padding-top: .35rem; border-top-width: 2px; }
  .recipe-table-scroll { max-width: none; overflow: visible !important; }
  .recipe-table-frame { break-inside: avoid; }
  .recipe-flow-table { width: max-content; table-layout: fixed; }
  .recipe-flow-table th, .recipe-flow-table td { padding: .4mm .8mm; }
  .recipe-flow-table tr { break-inside: avoid; }
  .recipe-table-context { margin-top: .3rem; font-size: 6pt; line-height: 1.1; }
  .recipe-table-context section { margin-top: .15rem; break-inside: avoid; }
  .recipe-table-context h2 { margin-bottom: 0; }
}
