/* Lothars WEB – Farbschema Cabernet/Grau
   Farben zentral in :root ändern. Pro Bereich (folder.json "theme") wechselt nur die Akzentfarbe. */

:root {
    --cc-gray: #eeeeee;
    --cc-gray-dark: #dadada;   /* Mischton Gray/Stone für Flächen */
    --cc-stone: #b7b7b7;
    --cc-slate: #797671;
    --cc-ink: #232323;
    --cc-wine: #6a1e2a;
    --cc-wine-tint: #d7cace;   /* Cabernet stark aufgehellt */

    --cc-wine-deep: #541722;   /* abgeleitet: dunkler für Hover */
    --cc-paper: #f8f7f7;       /* abgeleitet: Fläche der Inhaltskästen */
    --cc-text: #2a2a2a;
    --cc-muted: #5d5b57;

    --accent: var(--cc-wine);
    --accent-tint: var(--cc-wine-tint);
    --accent-deep: var(--cc-wine-deep);

    --radius: 6px;
    --maxw: 1180px;
    --gutter: max(18px, calc((100% - var(--maxw)) / 2));
    --font: system-ui, -apple-system, "Segoe UI", Ubuntu, "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Akzentfarben der Bereiche (nur Inhaltsfläche und Bereichsmenü) */
.theme-rose  { --accent: #8a3a48; --accent-tint: #ead9dd; --accent-deep: #6f2e3a; }
.theme-slate { --accent: #57544f; --accent-tint: #dcdbd8; --accent-deep: #46443f; }
.theme-ink   { --accent: #2f2f2f; --accent-tint: #d9d9d9; --accent-deep: #232323; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5;
    color: var(--cc-text); background: var(--cc-gray);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.topbar :focus-visible, .mainnav :focus-visible { outline-color: #fff; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--cc-ink); padding: .5rem 1rem; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------ Kopfbalken */
.topbar {
    background: var(--cc-ink); color: var(--cc-gray);
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 8px var(--gutter); min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; background: var(--cc-gray); }
.brand-title { font-size: 1.55rem; font-weight: 500; letter-spacing: .01em; line-height: 1.1; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.util { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; font-size: .95rem; }
.util li + li::before { content: "|"; margin: 0 .65em; color: var(--cc-slate); }
.util a, .linklike { color: var(--cc-gray); text-decoration: none; }
.util a:hover, .linklike:hover { color: #fff; text-decoration: underline; }
.util a.cur { font-weight: 700; color: #fff; }
.util .who { color: var(--cc-wine-tint); }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
form.inline { display: inline; margin: 0; }

.search { display: flex; }
.search input {
    width: 190px; padding: .45rem .7rem; border: 1px solid var(--cc-stone); border-right: 0;
    border-radius: 6px 0 0 6px; font: inherit; background: #fff; color: var(--cc-ink);
}
.search button {
    background: var(--cc-wine); color: #fff; border: 1px solid var(--cc-wine); border-radius: 0 6px 6px 0;
    padding: 0 .85rem; cursor: pointer; display: flex; align-items: center;
}
.search button:hover { background: var(--cc-wine-deep); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--cc-slate); border-radius: 6px; padding: .5rem .55rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cc-gray); margin: 4px 0; }

/* -------------------------------------------------------- Hauptmenü (Wein) */
.mainnav { background: var(--cc-wine); padding: 0 var(--gutter); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.mainnav a {
    display: block; padding: .8rem 1.15rem; color: #f6eef0; text-decoration: none;
    border-bottom: 3px solid transparent; font-size: 1.02rem;
}
.mainnav a:hover { background: var(--cc-wine-deep); color: #fff; }
.mainnav li.active a { border-bottom-color: var(--cc-wine-tint); color: #fff; font-weight: 600; }

/* ------------------------------------------------- Bereichsmenü (schmal) */
.subnav {
    background: var(--cc-gray-dark); border-bottom: 1px solid var(--cc-stone);
    padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: stretch; font-size: .93rem;
}
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.subnav li { position: relative; }
.subnav a {
    display: block; padding: .5rem .85rem; color: var(--cc-ink); text-decoration: none;
    border-bottom: 2px solid transparent;
}
.subnav a:hover { background: var(--cc-gray); color: var(--accent-deep); }
.subnav li.active > a { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.subnav li.has-sub > a::after { content: " ▾"; font-size: .75em; color: var(--cc-slate); }
.subnav li > ul {
    display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 230px; flex-direction: column;
    background: #fff; border: 1px solid var(--cc-stone); box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.subnav li:hover > ul, .subnav li:focus-within > ul { display: flex; }
.subnav li > ul a { border-bottom: 0; padding: .5rem .9rem; }
.subnav li > ul li.active > a { background: var(--accent-tint); }
.subnav li > ul > li > ul { left: 100%; top: 0; }
.lock { font-size: .8em; opacity: .75; }

/* ---------------------------------------------------------------- Inhalt */
.content { max-width: calc(var(--maxw) + 36px); margin: 22px auto 40px; padding: 0 18px; }
.crumbs { font-size: .88rem; color: var(--cc-muted); margin: 0 0 10px; }
.crumbs a { color: var(--cc-muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--accent); }
.crumbs .sep { margin: 0 .45em; color: var(--cc-slate); }

.panel {
    background: var(--cc-paper); border: 1px solid var(--cc-stone); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.panel.narrow { max-width: 620px; margin-inline: auto; }
.panel-head {
    background: var(--accent); color: #fff; padding: .7rem 1.4rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.panel-head h1 { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.panel-head .btn { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.panel-head .btn:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.panel-body { padding: 1.4rem 1.6rem 1.8rem; }
.panel-body > h2 { color: var(--accent); }
.lead { font-size: 1.08rem; color: var(--cc-text); margin-top: 0; }
.muted { color: var(--cc-muted); }
.small { font-size: .88rem; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; }

.notice { background: var(--accent-tint); border-left: 4px solid var(--accent); padding: .55rem .85rem; border-radius: 3px; margin: 0 0 1rem; }
.notice.small { padding: .35rem .7rem; }
.error { background: #f3d9d9; border: 1px solid #c98a8a; color: #6e1414; padding: .55rem .85rem; border-radius: 4px; margin: 0 0 1rem; }

/* Buttons und Formulare */
.btn {
    display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 5px;
    padding: .55rem 1.15rem; font: inherit; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-small { padding: .3rem .75rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-tint); color: var(--accent-deep); }
input[type=text], input[type=password], input[type=search], input[type=date], select {
    font: inherit; padding: .5rem .65rem; border: 1px solid var(--cc-stone); border-radius: 4px; background: #fff; color: var(--cc-ink);
}
label { display: block; font-weight: 600; font-size: .92rem; margin: .8rem 0 .25rem; }
.stack input { width: 100%; max-width: 420px; }
.stack .btn { margin-top: 1rem; }

/* --------------------------------------------------------------- Startseite */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; padding: 1rem 0 1.6rem; }
.hero-logo { width: min(320px, 62vw); height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18)); }
.hero.compact { flex-direction: row; justify-content: center; gap: 1.6rem; padding: .4rem 0 1.4rem; text-align: left; }
.hero.compact .hero-logo { width: 110px; }
.hero.compact .hero-text h1 { margin: 0; }
.hero-text { max-width: 62ch; }
.hero-text h1 { color: var(--cc-wine); margin: 0 0 .5rem; }
.hero-text p { margin: .5rem 0; }
.login-card {
    background: var(--cc-paper); border: 1px solid var(--cc-stone); border-radius: 8px; padding: 1.3rem 1.5rem 1.4rem;
    width: min(100%, 360px); text-align: left; box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.login-card h2 { margin: 0 0 .4rem; color: var(--cc-wine); font-size: 1.2rem; }
.login-card input { width: 100%; }
.login-card .btn { width: 100%; margin-top: 1.1rem; padding: .65rem; }
.hint { font-size: .8rem; color: var(--cc-muted); margin: .9rem 0 0; }

/* --------------------------------------------------------- Karten und Listen */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.cards.sections { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-top: .5rem; }
.card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cc-stone); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: var(--cc-text); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transform: translateY(-2px); color: var(--cc-text); }
.card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--accent-tint); overflow: hidden; }
.card-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img.ph { display: flex; align-items: center; justify-content: center; }
.card-img.ph > .ph-logo { width: 34%; height: auto; object-fit: contain; opacity: .45; }
.card-body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem 1rem 1.05rem; }
.card-title { font-weight: 600; font-size: 1.08rem; color: var(--accent); line-height: 1.25; }
.card-desc { font-size: .92rem; color: var(--cc-text); }
.card-meta { font-size: .82rem; color: var(--cc-muted); }
.card-warn { font-size: .8rem; color: #8a1c1c; }
.badge {
    display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .02em; background: var(--cc-gray-dark); color: var(--cc-ink);
    padding: .12rem .5rem; border-radius: 999px; margin-left: .35rem; vertical-align: middle;
}
.card-img .badge { position: absolute; top: 8px; margin: 0; background: rgba(35, 35, 35, .82); color: #fff; }
.card-img .badge-pres { left: 8px; }
.card-img .badge-lock { right: 8px; }
.st-active { background: #dfe9df; color: #254a29; }
.st-expired, .st-revoked, .st-unknown { background: #f1d9d9; color: #6e1414; }

.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--cc-stone); border-radius: var(--radius); background: #fff; }
.rows li + li { border-top: 1px solid var(--cc-gray-dark); }
.rows a { display: flex; align-items: center; gap: .9rem; padding: .75rem 1rem; text-decoration: none; color: var(--cc-text); }
.rows a:hover { background: var(--accent-tint); }
.row-icon { font-size: 1.25rem; width: 1.6rem; text-align: center; }
.row-main { flex: 1; display: flex; flex-direction: column; }
.row-title { font-weight: 600; color: var(--accent); }
.row-desc { font-size: .9rem; color: var(--cc-muted); }

/* ------------------------------------------------------------ Markdown-Text */
.md { max-width: 86ch; line-height: 1.68; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md h2 { color: var(--accent); font-size: 1.4rem; margin: 2rem 0 .7rem; padding-bottom: .25rem; border-bottom: 2px solid var(--accent-tint); }
.md h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; color: var(--cc-ink); }
.md h4 { font-size: 1rem; margin: 1.2rem 0 .4rem; color: var(--cc-muted); text-transform: uppercase; letter-spacing: .03em; }
.md p, .md ul, .md ol { margin: .7rem 0; }
.md li { margin: .2rem 0; }
.md li.task { list-style: none; margin-left: -1.3rem; }
.md li.task input { margin-right: .5rem; }
.md hr { border: 0; border-top: 1px solid var(--cc-stone); margin: 1.6rem 0; }
.md code { background: #e9e7e7; padding: .1rem .35rem; border-radius: 3px; font-size: .92em; font-family: ui-monospace, "Ubuntu Mono", Menlo, Consolas, monospace; }
.md pre { background: #2b2b2b; color: #eeeeee; padding: .9rem 1.1rem; border-radius: 5px; overflow: auto; line-height: 1.45; }
.md pre code { background: none; padding: 0; color: inherit; font-size: .9rem; }
.md table { border-collapse: collapse; margin: 1.1rem 0; display: block; overflow-x: auto; max-width: 100%; }
.md th { background: var(--accent-tint); color: var(--cc-ink); text-align: left; }
.md th, .md td { padding: .5rem .8rem; border: 1px solid var(--cc-stone); }
.md tbody tr:nth-child(even) { background: rgba(0, 0, 0, .03); }
.md blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 4px solid var(--cc-slate); background: rgba(0, 0, 0, .04); border-radius: 0 4px 4px 0; }
.md blockquote > :first-child { margin-top: 0; }
.md blockquote > :last-child { margin-bottom: 0; }
.md .callout-info { border-left-color: var(--accent); background: var(--accent-tint); }
.md .callout-tip { border-left-color: #4f6f52; background: #dfe9df; }
.md .callout-warn { border-left-color: #8a1c1c; background: #f1d9d9; }
.md img { border-radius: 4px; cursor: zoom-in; }
.md figure { margin: 1.3rem 0; }
.md figure img { display: block; }
.md figcaption { font-size: .88rem; color: var(--cc-muted); margin-top: .35rem; }
.md .footnotes { font-size: .88rem; color: var(--cc-muted); margin-top: 2rem; }
.md .footnotes ol { padding-left: 1.3rem; }
.md sup.fnref a { text-decoration: none; }
.md .intro { margin-bottom: 1.6rem; }

/* Inhaltsverzeichnis: links neben dem Text, beim Scrollen mitlaufend */
.page-grid { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.toc-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.toc { background: var(--accent-tint); border-radius: 5px; padding: .7rem .5rem .7rem 1rem; font-size: .92rem; }
.toc summary { font-weight: 700; list-style: none; cursor: pointer; padding-right: .5rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc ul { list-style: none; margin: .45rem 0 0; padding: 0; }
.toc li { margin: 0; }
.toc li.l3 { padding-left: 1rem; }
.toc li.l4 { padding-left: 2rem; }
.toc a {
    display: block; padding: .22rem .5rem .22rem .6rem; text-decoration: none; color: var(--cc-text);
    border-left: 3px solid transparent; border-radius: 0 3px 3px 0; line-height: 1.3;
}
.toc a:hover { text-decoration: none; background: rgba(255, 255, 255, .55); color: var(--accent-deep); }
.toc a.current { border-left-color: var(--accent); color: var(--accent); font-weight: 600; background: rgba(255, 255, 255, .7); }
.md :is(h2, h3, h4) { scroll-margin-top: 16px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (min-width: 901px) { .toc summary { pointer-events: none; cursor: default; } }
/* Sticky braucht, dass .panel keinen Scrollcontainer bildet: overflow: clip statt hidden */
.panel.has-toc { overflow: visible; overflow: clip; }
.panel.has-toc .panel-head { border-radius: var(--radius) var(--radius) 0 0; }
.tags { margin: .6rem 0 0; }
.tag { display: inline-block; background: var(--accent-tint); color: var(--accent-deep); border-radius: 999px; padding: .08rem .7rem; font-size: .8rem; margin: 0 .3rem .3rem 0; }

/* ------------------------------------------------------------------ Rezepte */
.recipe-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.8rem; margin-bottom: 1.6rem; align-items: start; }
.recipe-top:not(:has(.recipe-hero)) { grid-template-columns: 1fr; }
.recipe-hero { margin: 0; }
.recipe-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.facts { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin: 1rem 0 0; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cc-muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 1.05rem; }
.recipe .md h2 { font-size: 1.25rem; }

/* ------------------------------------------------------------- Präsentation */
.pres-wrap { position: relative; aspect-ratio: 16 / 9; min-height: 360px; background: #111; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--cc-stone); }
.pres-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

/* ------------------------------------------------------------------- Suche */
.search-big { display: flex; gap: .6rem; margin-bottom: 1rem; }
.search-big input { flex: 1; max-width: 480px; }
.results { list-style: none; margin: 0; padding: 0; }
.results li { padding: .8rem 0; border-bottom: 1px solid var(--cc-gray-dark); }
.r-title { font-size: 1.1rem; font-weight: 600; }
.r-path { display: block; font-size: .8rem; color: var(--cc-muted); margin: .1rem 0; }
.r-snip { display: block; font-size: .93rem; }
mark { background: #f1dfa6; color: inherit; padding: 0 .1em; border-radius: 2px; }

/* ----------------------------------------------------------------- Verwaltung */
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 2px solid var(--accent-tint); margin: 0 0 1rem; }
.tabs a { padding: .5rem 1rem; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; color: var(--cc-text); }
.tabs a:hover { background: var(--accent-tint); }
.tabs a.active { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem 1rem; margin: 1rem 0; }
.filters label { margin: 0; font-weight: 600; font-size: .82rem; }
.filters label select, .filters label input { display: block; margin-top: .2rem; }
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.data th { text-align: left; background: var(--cc-gray-dark); padding: .5rem .7rem; border-bottom: 2px solid var(--cc-stone); }
.data td { padding: .45rem .7rem; border-bottom: 1px solid var(--cc-gray-dark); vertical-align: top; }
.data tr.ev-login_fail td, .data tr.ev-lockout td, .data tr.ev-share_denied td { color: #8a1c1c; }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.checklist { padding-left: 1.2rem; }
.checklist.warn li { color: #7a1a1a; }
.hash { display: block; background: #2b2b2b; color: #eee; padding: .8rem 1rem; border-radius: 5px; word-break: break-all; user-select: all; }

/* --------------------------------------------------------------- Lightbox */
.lightbox {
    position: fixed; inset: 0; background: rgba(20, 20, 20, .9); display: none; align-items: center; justify-content: center;
    z-index: 100; cursor: zoom-out; padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 3px; box-shadow: 0 8px 40px rgba(0, 0, 0, .6); }

.footer { text-align: center; color: var(--cc-muted); font-size: .85rem; padding: 0 18px 28px; }
.footer .sep { margin: 0 .5em; }

/* ------------------------------------------------------------ Schmale Bildschirme */
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    body:not(.nav-open) .topbar-right,
    body:not(.nav-open) .mainnav,
    body:not(.nav-open) .subnav { display: none; }
    .topbar-right { width: 100%; margin-left: 0; justify-content: space-between; padding-bottom: 6px; }
    .mainnav ul { justify-content: flex-start; flex-direction: column; }
    .mainnav a { border-bottom: 0; border-left: 4px solid transparent; }
    .mainnav li.active a { border-left-color: var(--cc-wine-tint); }
    .subnav { flex-direction: column; }
    .subnav ul { flex-direction: column; }
    .subnav li > ul { display: flex; position: static; box-shadow: none; border: 0; background: transparent; padding-left: 1rem; min-width: 0; }
    .subnav li > ul > li > ul { left: auto; }
    .subnav a { border-bottom: 0; }
    .subnav li.has-sub > a::after { content: ""; }
    .recipe-top { grid-template-columns: 1fr; }
    .page-grid { grid-template-columns: 1fr; gap: 1rem; }
    .toc-side { position: static; max-height: none; overflow: visible; }
    .toc summary { padding: .1rem 0; }
    .toc summary::after { content: " ▾"; font-weight: 400; }
    .toc[open] summary::after { content: " ▴"; }
    .toc nav { max-height: 50vh; overflow-y: auto; }
    .panel-body { padding: 1.1rem 1rem 1.4rem; }
    .search input { width: 140px; }
    .brand-title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* ------------------------------------------------------------------ Drucken */
@media print {
    body { background: #fff; color: #000; font-size: 11pt; }
    .topbar, .mainnav, .subnav, .footer, .noprint, .crumbs, .lightbox, .skip { display: none !important; }
    .content { margin: 0; padding: 0; max-width: none; }
    .panel { border: 0; box-shadow: none; background: none; }
    .panel-head { background: none; color: #000; padding: 0 0 .4rem; border-bottom: 2px solid #000; }
    .panel-body { padding: .8rem 0; }
    .page-grid { display: block; }
    .md { max-width: none; }
    .md a { color: #000; text-decoration: none; }
    .recipe-top { grid-template-columns: 1fr 1fr; }
    .recipe-hero img { aspect-ratio: 4 / 3; }
    .md h2 { color: #000; border-bottom: 1px solid #999; break-after: avoid; }
    .md img, .md table, .md pre { break-inside: avoid; }
    .tag { border: 1px solid #999; background: none; }
}
