@import "./brand-logo.css";
/* WerkzeugWahl: shared foundation for the portal and database model pages. */
:root {
  --ink: #1e3028;
  --green: #20553d;
  --green2: #173f2e;
  --lime: #d9ec9c;
  --paper: #f7f8f4;
  --white: #fff;
  --surface: #edf2e9;
  --line: #d8e0d5;
  --muted: #56665b;
  --on-dark: #dce8df;
  --warning: #805620;
  --warning-bg: #fff4e2;
  --danger: #a53028;
  --danger-bg: #fff0ed;
  --focus: #356f50;
  --font-sans: Arial, Helvetica, sans-serif;
  --text-display: clamp(2.5rem, 4.4vw, 3.75rem);
  --text-hero: clamp(2rem, 3.5vw, 3rem);
  --text-title: clamp(1.625rem, 2.6vw, 2.125rem);
  --text-card: 1.25rem;
  --text-lead: 1.125rem;
  --text-body: 1rem;
  --text-small: .875rem;
  --text-label: .8125rem;
  --text-eyebrow: .75rem;
  --gutter: clamp(20px, 3vw, 40px);
  --content-width: 1248px;
  --page-width: calc(var(--content-width) + 2 * var(--gutter));
  --section-space: clamp(40px, 5vw, 64px);
  --radius: 12px;
  --control-radius: 8px;
  --shadow: 0 8px 24px #1e30280a;
  --background: var(--paper);
  --foreground: var(--ink);
  --card: var(--white);
  --card-foreground: var(--ink);
  --popover: var(--white);
  --popover-foreground: var(--ink);
  --primary: var(--green);
  --primary-foreground: var(--white);
  --secondary: var(--surface);
  --secondary-foreground: var(--ink);
  --muted-foreground: var(--muted);
  --accent: var(--lime);
  --accent-foreground: var(--ink);
  --destructive: var(--danger);
  --border: var(--line);
  --input: var(--line);
  --ring: var(--focus);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: var(--text-body); line-height: 1.65; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { border-radius: var(--control-radius); }
button:disabled { cursor: default; }
input:not([type=checkbox]):not([type=radio]), select, textarea { border-radius: var(--control-radius); }
input[type=checkbox], input[type=radio] { accent-color: var(--green); }
img { max-width: 100%; }
svg { flex-shrink: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 700; color: inherit; }
h1 { font-size: var(--text-hero); line-height: 1.12; letter-spacing: -.035em; margin: 16px 0 24px; }
h2 { font-size: var(--text-title); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 20px; }
h3 { font-size: var(--text-card); line-height: 1.3; letter-spacing: -.015em; margin: 0 0 12px; }
h4 { font-size: var(--text-body); line-height: 1.4; }
h1 em, h2 em { font-style: normal; color: var(--green); }
p { margin-top: 0; }
.eyebrow { font-size: var(--text-eyebrow); line-height: 1.5; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--green); margin: 0 0 12px; }
.small-note, .note { font-size: var(--text-label); line-height: 1.65; color: var(--muted); }
.page-lead, .lead { font-size: var(--text-lead); line-height: 1.7; max-width: 70ch; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: var(--text-label); line-height: 1.6; padding: 0 0 28px; }
.breadcrumb a:hover { color: var(--green); text-decoration: underline; }
.ww-button, .button, .header-cta { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; border: 1px solid var(--green); border-radius: var(--control-radius); padding: 12px 18px; background: var(--green); color: var(--white); font-size: var(--text-small); font-weight: 700; line-height: 1.4; text-align: center; cursor: pointer; }
.ww-button:hover, .button:hover, .header-cta:hover { background: var(--green2); color: var(--white); }
.ww-button.secondary { background: var(--white); color: var(--green); border-color: var(--line); }
.ww-button.secondary:hover { background: var(--surface); border-color: var(--green); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 0; color: var(--green); font-size: var(--text-small); font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.text-button { border: 0; background: transparent; color: var(--green); text-decoration: underline; padding: 10px 12px; min-height: 44px; font-size: var(--text-small); }
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 999; background: var(--lime); color: var(--ink); padding: 12px 18px; border-radius: var(--control-radius); }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { height: 80px; display: flex; align-items: center; gap: 24px; padding: 0 max(var(--gutter), calc((100vw - var(--content-width)) / 2)); border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 40; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; text-decoration: none; }
.site-header .nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--control-radius); font-size: var(--text-small); font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a[aria-current=page] { color: var(--green); background: var(--surface); }
.site-header .header-cta { min-height: 44px; padding: 10px 14px; white-space: nowrap; }
.header-cta svg { width: 16px; height: 16px; }
.nav .nav-my-projects { display: none; }
.menu-button, .runtime-menu { display: none; }
.menu-button { width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--white); }
.site-footer { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 36px; padding: 48px max(var(--gutter), calc((100vw - var(--content-width)) / 2)) 24px; border-top: 1px solid var(--line); background: var(--white); font-size: var(--text-small); }
.footer-brand p { margin: 20px 0 0; color: var(--muted); }
.site-footer > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.site-footer strong { margin-bottom: 8px; font-size: var(--text-small); }
.site-footer a:not(.brand), .footer-link-button { color: var(--muted); }
.site-footer a:hover, .footer-link-button:hover { color: var(--green); text-decoration: underline; }
.footer-link-button { border: 0; background: none; padding: 0; text-align: left; font: inherit; }
.copyright { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: var(--text-label); }
@media (max-width: 1100px) {
  .site-header { height: 72px; gap: 12px; }
  .site-header > .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; padding: 16px var(--gutter); background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); align-items: stretch; flex-direction: column; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .site-header > .nav.open { display: flex; }
  .nav a { white-space: normal; }
  .nav .nav-my-projects { display: flex; }
  .site-header .header-cta { margin-left: auto; }
  .menu-button { display: flex; }
  .runtime-menu { display: block; }
  .runtime-menu summary { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--control-radius); list-style: none; font-size: var(--text-small); font-weight: 700; }
  .runtime-menu summary::-webkit-details-marker { display: none; }
  .runtime-menu .nav { position: absolute; top: 72px; left: 0; right: 0; padding: 16px var(--gutter); background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
}
@media (max-width: 760px) {
  .site-footer { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px 24px; }
}
@media (max-width: 560px) {
  .site-header > .header-cta { display: none; }
  .menu-button, .runtime-menu { margin-left: auto; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > div:not(.footer-brand) { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .skip-link { display: none !important; }
  body { color: #000; background: #fff; }
}

/* Shared actions for saved model choices. */
.save-model-button { min-height: 44px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); color: var(--green); font-size: var(--text-small); font-weight: 700; }
.save-model-button:hover, .save-model-button[aria-pressed=true] { background: var(--surface); border-color: var(--green); }
.save-model-button[hidden] { display: none; }
