/* ── EasyShul docs site styles ─────────────────────────────────────────────── */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-header img { height: 32px; }
.site-header a {
  color: var(--text-heading);
  font-weight: 600;
  font-size: 1.05em;
}
.site-header a:hover { text-decoration: none; }
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 0.9em;
}
.site-nav a {
  color: var(--text-secondary);
  font-weight: 400;
}

.container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 64px;
  flex: 1;
}

h1 {
  color: var(--text-heading);
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 8px;
}
h2 {
  color: var(--text-heading);
  font-size: 1.4em;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}
h3 {
  color: var(--text-heading);
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}
.lead {
  color: var(--text-muted);
  font-size: 1.05em;
  margin-bottom: 24px;
  line-height: 1.55;
}
p, li { line-height: 1.6; color: var(--text-body); }
p { margin-bottom: 12px; }
ul, ol { padding-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 6px; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-input);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--text-strong);
}

.code-block {
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
  overflow-x: auto;
}
.code-block pre {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  line-height: 1.5;
  color: var(--text-strong);
  white-space: pre;
}
.code-block .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.78em;
  cursor: pointer;
  font-family: inherit;
}
.code-block .copy-btn:hover { background: var(--bg-hover); color: var(--text-strong); }
.code-block .copy-btn.copied { color: var(--success); border-color: var(--success); }

.org-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.org-input label {
  font-weight: 500;
  color: var(--text-strong);
}
.org-input input {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95em;
}
.org-input input:focus { background: var(--bg-input-focus); outline: 2px solid var(--accent); outline-offset: -2px; }
.org-input .hint { color: var(--text-muted); font-size: 0.85em; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .15s, box-shadow .15s;
}
.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  text-decoration: none;
}
.doc-card .icon { font-size: 1.6em; margin-bottom: 4px; }
.doc-card h2 {
  color: var(--text-heading);
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 4px;
}
.doc-card p {
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0;
}
.doc-card .arrow {
  color: var(--accent);
  font-size: 0.85em;
  font-weight: 500;
  margin-top: auto;
  padding-top: 10px;
}

.callout {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
  color: var(--text-body);
}
.callout strong { color: var(--text-heading); }
.callout.warn { background: rgba(201, 106, 20, 0.08); border-left-color: var(--orange); }

.preview-frame {
  background: var(--bg-page);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.92em;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}
th {
  color: var(--text-heading);
  font-weight: 600;
  background: var(--bg-muted);
}

.theme-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}
.theme-toggle button {
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.95em;
}
.theme-toggle button.active {
  background: var(--bg-surface);
  color: var(--text-strong);
}

.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.82em;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  background: var(--bg-surface);
}
