/* Podhouse website. Near black with orange, the menu in a centred capsule. Manrope for text and headings, IBM Plex Mono for commands, Heebo
   for Hebrew. Logical properties throughout (margin-inline, inset-inline) so
   the Hebrew pages mirror under dir="rtl" without a second stylesheet. */

:root {
  --bg: #09090b;
  --bg-soft: #0f0f11;
  --surface: #141416;
  --surface-2: #1c1c20;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #f29a5c;
  --accent-strong: #ea6a12;
  --accent-soft: rgba(234, 106, 18, 0.13);
  --logo-gradient: linear-gradient(135deg, #ffb057 0%, #ff6a00 100%);
  --teal: #ffb057;
  --text: #f4f4f5;
  --text-2: #c7c7cf;
  --muted: #8c8c96;
  --radius: 16px;
  --font: Manrope, Heebo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root:lang(he) { --font: Heebo, Manrope, system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); padding: 0.08em 0.4em; border-radius: 6px; }
pre { background: #0a0f1a; color: var(--text-2); border: 1px solid var(--line); padding: 1rem 1.1rem; border-radius: 12px; overflow-x: auto; direction: ltr; text-align: left; }
pre code { background: none; padding: 0; color: inherit; font-size: 0.86rem; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
:lang(he) h1, :lang(he) h2, :lang(he) h3 { font-weight: 700; letter-spacing: 0; }
[hidden] { display: none !important; }

.wrap { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.8rem; border-radius: 8px; z-index: 60; }

/* A section's short label: sentence case, in the accent colour. */
.eyebrow, .mono-label { margin: 0 0 0.6rem; font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.muted { color: var(--muted); font-size: 0.92rem; }
.note { background: var(--accent-soft); border-inline-start: 3px solid var(--accent-strong); padding: 0.6rem 0.9rem; border-radius: 10px; color: var(--text-2); font-size: 0.93rem; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(9, 9, 11, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1.6rem; height: 66px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--text); font-size: 1.08rem; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 0.2rem; font-size: 0.94rem; }
.nav a { color: var(--text-2); padding: 0.4rem 0.75rem; border-radius: 9px; white-space: nowrap; font-weight: 600; }
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.top-end { margin-inline-start: auto; display: flex; gap: 1rem; align-items: center; font-size: 0.93rem; }
.lang, .gh { color: var(--text-2); white-space: nowrap; }
.lang:hover, .gh:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; font-weight: 700; font-size: 0.92rem; border-radius: 10px; background: var(--accent-strong); color: #140800; white-space: nowrap; }
.nav-cta:hover { filter: brightness(1.08); text-decoration: none; }

/* ----------------------------------------------------------------- bands */
.band { padding: 56px 0; }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 22px; }
.band-head h2 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 1.9rem); }
.band-side { margin: 0.35rem 0 0; font-size: 0.98rem; color: var(--muted); max-width: 680px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); font-weight: 700; font-size: 0.93rem; white-space: nowrap; }
.btn-ghost::after { content: "→"; color: var(--accent); }
[dir="rtl"] .btn-ghost::after { content: "←"; }
.btn-ghost.no-arrow::after { content: none; }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 64px 0 40px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; }
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.1rem); line-height: 1.08; margin: 0; text-wrap: balance; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin: 1.1rem 0 1.5rem; }
.lead { color: var(--text-2); font-size: 1.08rem; line-height: 1.65; max-width: 640px; }
.install-meta { margin: 0.8rem 0 0; font-size: 0.88rem; color: var(--muted); }
.terminal { display: flex; align-items: baseline; font-family: var(--mono); font-size: 0.86rem; color: var(--text); overflow-x: auto; white-space: nowrap; text-align: left; padding: 0.85rem 1rem; }
.terminal code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prompt { color: var(--accent); user-select: none; margin-inline-end: 0.6ch; }
.install { display: flex; align-items: stretch; background: #0c0c0e; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; direction: ltr; max-width: 680px; }
.install .terminal { flex: 1; min-width: 0; }
.copy { border: 0; margin: 5px; border-radius: 9px; background: var(--accent-strong); color: #140800; font: 700 0.9rem var(--font); padding: 0 1.1rem; cursor: pointer; }
.copy:hover { filter: brightness(1.1); }

/* ------------------------------------------- pieces of the dashboard */
/* The same shapes as dashboard/public/css/homebox.css: stat boxes, grouped
   app tiles with a memory bar, panels with a coloured edge. */
.preview { background: #0d0d0f; border: 1px solid var(--line-strong); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.preview-bar { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8rem; }
.preview-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a30; }
.preview-bar span { margin-inline-start: 6px; }
.preview-note { margin: 0; color: var(--muted); font-size: 0.78rem; }
.dstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dstat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.dstat span { display: block; color: var(--muted); font-size: 0.78rem; }
.dstat b { display: block; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dstat.is-good { border-inline-start: 4px solid #3ecf8e; }
.dstat.is-waiting b { color: var(--accent); }
.dgroup { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-width: 0; }
.dgroup-label { font-size: 0.84rem; color: var(--text-2); margin: 0 2px 8px; }
.dgroup-label span { color: var(--muted); font-size: 0.72rem; border: 1px solid var(--line); border-radius: 99px; padding: 0 6px; margin-inline-start: 4px; }
.dtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dlist { display: flex; flex-direction: column; gap: 6px; }
.dtile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 7px; color: var(--text); min-width: 0; }
a.dtile:hover { border-color: rgba(234, 106, 18, 0.45); text-decoration: none; }
.dtile-head { display: flex; align-items: center; gap: 9px; font-size: 0.92rem; min-width: 0; }
.dtile-head .app-icon { width: 30px; height: 30px; padding: 5px; border-radius: 8px; background: #1f1f24; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.dtile-head b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtile.is-row .dtile-head b { flex: none; }
.dtile-tag { flex: 1; min-width: 0; text-align: end; color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; flex: none; }
.dtile-use { display: flex; justify-content: space-between; gap: 6px; font-size: 0.76rem; color: var(--muted); }
.dtile-use b { color: var(--text); }
.dbar { height: 4px; border-radius: 2px; background: #0c0c0e; margin-top: -3px; }
.dbar i { display: block; height: 100%; border-radius: 2px; background: var(--accent-strong); }
.dgroups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dpanels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dpanel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.dpanel.is-good { border-inline-start: 4px solid #3ecf8e; }
.dpanel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; margin-bottom: 8px; }
.dpanel-head h3 { margin: 0; font-size: 1.02rem; letter-spacing: 0; }
.dpanel-head small { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; white-space: nowrap; }
.dpanel-answer { margin: 4px 0 0; font-size: 1.2rem; font-weight: 700; color: #6fe0a8; }
.dpanel-body { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.prow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.prow:first-of-type { border-top: 0; }
.prow .app-icon { width: 32px; height: 32px; padding: 6px; border-radius: 9px; background: #1f1f24; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.prow-main { flex: 1; min-width: 0; font-size: 0.92rem; }
.prow-line { color: var(--muted); font-family: var(--mono); font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.prow-line.is-prose { font-family: var(--font); font-size: 0.8rem; }
.pbtn { border: 1px solid var(--line-strong); border-radius: 8px; padding: 3px 10px; font-size: 0.78rem; font-weight: 700; }
.kind { font-size: 0.7rem; font-weight: 700; border-radius: 5px; padding: 1px 7px; margin-inline-start: 6px; vertical-align: 1px; }
.kind.v { background: #3a2a10; color: #f2b45c; }
.kind.r { background: #0f2e22; color: #6fe0a8; }

/* ------------------------------------------------------------------ apps */
.app-grid.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.app-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); min-width: 0; transition: background 0.15s, border-color 0.15s; }
.app-card:hover { text-decoration: none; background: var(--surface-2); border-color: var(--line-strong); }
/* Icons sit on a light plate: several logos are dark marks that vanish on navy. */
.app-card .app-icon { width: 42px; height: 42px; flex: none; padding: 7px; border-radius: 12px; background: #1f1f24; box-shadow: inset 0 0 0 1px var(--line); }
/* Dark logos keep their shape on the dark tile. */
.app-icon { filter: drop-shadow(0 0 0.7px rgba(255, 255, 255, 0.5)); }
.app-icon { object-fit: contain; }
.app-emoji { display: grid; place-items: center; font-size: 1.3rem; line-height: 1; }
.app-text { display: flex; flex-direction: column; min-width: 0; }
.app-title { font-weight: 700; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-tag { font-size: 0.85rem; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-tag code { font-size: 0.8em; }

.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin: 0 0 0.7rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0; }

.filters { display: flex; flex-direction: column; gap: 0.8rem; margin: 2rem 0 1.6rem; }
.search { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); border-radius: 12px; padding: 0.8rem 1.1rem; font: 1rem var(--font); }
.search::placeholder { color: var(--muted); }
.search:focus { outline: 2px solid var(--accent-strong); outline-offset: 1px; }
/* Category tiles, the same as the dashboard Apps screen. */
.cat-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tile { flex: 1 1 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; cursor: pointer; text-align: start; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; }
.cat-tile svg { width: 20px; height: 20px; fill: none; stroke: var(--text-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.cat-name { font-weight: 700; font-size: 0.9rem; }
.cat-count { font-size: 0.76rem; color: var(--muted); white-space: nowrap; }
.cat-tile:hover { border-color: var(--line-strong); }
.cat-tile[aria-pressed="true"] { border-color: var(--accent-strong); background: var(--accent-soft); }
.cat-tile[aria-pressed="true"] svg { stroke: var(--accent); }
/* The full catalog lays apps out as store cards: icon on top, then name and line. */
.app-grid.store { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.app-grid.store .app-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; min-height: 160px; }
.app-grid.store .app-card .app-icon { width: 48px; height: 48px; padding: 8px; }
.app-grid.store .app-title { font-size: 1.02rem; white-space: normal; }
.app-card:hover { border-color: rgba(234, 106, 18, 0.4); }
.empty { color: var(--muted); }

.app-page { max-width: 880px; }
.app-head { display: flex; gap: 1.2rem; align-items: center; margin: 1rem 0 1.2rem; }
.app-head .app-icon { width: 76px; height: 76px; flex: none; padding: 12px; border-radius: 20px; background: #1f1f24; box-shadow: inset 0 0 0 1px var(--line); }
.app-head .app-emoji { font-size: 2rem; background: var(--surface-2); }
.app-head h1 { margin: 0; }
.app-head .lead { margin: 0.35rem 0 0; }
.desc { font-size: 1.04rem; color: var(--text-2); line-height: 1.75; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.6rem 0 0.5rem; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 1rem; display: flex; flex-direction: column; }
.facts span { font-size: 0.8rem; color: var(--muted); }
.facts code { background: none; padding: 0; }
.app-page h2 { font-size: 1.4rem; margin: 2.6rem 0 0.8rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: start; padding: 0.75rem 0.95rem; border-bottom: 1px solid var(--line); font-size: 0.93rem; vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 0.85rem; background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
.tips { padding-inline-start: 1.2rem; color: var(--text-2); text-align: left; }
.tips li { margin-bottom: 0.55rem; }
.tips li::marker { color: var(--accent); }
.source-link { margin-top: 2.6rem; font-size: 0.93rem; }

/* A card for one app (Radarr) links to its row on the module page: land below the sticky header and mark the row. */
tr[id^="svc-"] { scroll-margin-top: 96px; }
tr[id^="svc-"]:target td { background: var(--accent-soft); }

/* ---------------------------------------------------------------- guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.guide-card { display: flex; flex-direction: column; gap: 0.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; color: var(--text); transition: background 0.15s, border-color 0.15s; }
.guide-card:hover { text-decoration: none; background: var(--surface-2); border-color: var(--line-strong); }
.guide-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.guide-glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(234, 106, 18, 0.25); }
.guide-glyph svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.guide-card:hover .guide-glyph { background: rgba(234, 106, 18, 0.2); }
.guide-card .mono-label { margin: 0; font-size: 0.8rem; color: var(--muted); }
.guide-title { font-weight: 800; font-size: 1.08rem; }
.guide-sum { color: var(--muted); font-size: 0.93rem; }

.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin: 2.6rem 0 0.8rem; }
.prose h3 { font-size: 1.15rem; margin: 1.9rem 0 0.5rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ol, .prose ul { padding-inline-start: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose .install { margin: 1.1rem 0; max-width: none; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--accent-strong); border-radius: 12px; padding: 0.9rem 1.05rem; margin: 1.3rem 0; }
.prose .callout.warn { border-inline-start-color: #f59e0b; }
.prose .callout p { margin: 0.2rem 0; }
.store-head { text-align: center; max-width: 760px; margin: 0 auto; }
.store-head .lead { margin-inline: auto; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.2rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-weight: 700; }

/* ------------------------------------------------------------- changelog */
.releases { list-style: none; padding: 0; margin: 2rem 0 0; }
.release { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.release-head { display: flex; align-items: baseline; gap: 0.9rem; }
.release-head h2 { font-size: 1.1rem; margin: 0; font-family: var(--mono); letter-spacing: 0; color: var(--accent); }
.release-head time { color: var(--muted); font-size: 0.88rem; }
.release-body { text-align: left; }
.release-body p { color: var(--text-2); margin: 0.5rem 0 0; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 1.8rem 0; color: var(--muted); font-size: 0.9rem; }
.foot p { margin: 0; }
.foot a { color: var(--text-2); }

@media (max-width: 980px) {
  .top-in { flex-wrap: wrap; height: auto; padding: 0.6rem 0; row-gap: 0.4rem; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .dpanels, .dgroups { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 2.5rem); }
  .gh { display: none; }
  .top-end { gap: 0.7rem; }
  .hero h1 { font-size: 2rem; }
  .dpanel-head small { display: none; }
  .nav-cta { height: 34px; }
  .band { padding: 40px 0; }
  .hero { padding: 36px 0 24px; }
  .install { flex-direction: column; }
  .copy { padding: 0.65rem; }
  .dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtiles { grid-template-columns: minmax(0, 1fr); }
  .app-grid.tiles { grid-template-columns: 1fr; }
  .page { padding: 44px 0 64px; }
}
