/* cortendesk.com: everything beyond the home page, in the home page's
   palette. The inner pages (install, features, FAQ) keep their markup from
   the previous design; these rules restyle its classes. */

/* ---- Inner pages ---------------------------------------------------------- */

body:not(.page-home) main section { padding: 72px 0; }
body:not(.page-home) main section.tight { padding: 52px 0; }
body:not(.page-home) main > section:first-child { padding-top: 120px; }
body:not(.page-home) h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -2px; max-width: 22ch; }
body:not(.page-home) h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; letter-spacing: -1.2px; margin-bottom: 14px; }
body:not(.page-home) h3 { font-size: 18px; letter-spacing: -0.3px; margin-bottom: 8px; }
body:not(.page-home) main p { color: var(--muted); }
/* Links in the running text of the install, features and FAQ pages. */
body:is(.page-install, .page-features, .page-faq, .page-alternative, .page-sponsor) main a:not(.button):not(.btn):not(.text-link):not(.sponsor-logo):not(.sponsor-row-open) { color: var(--orange-bright); }
body:is(.page-install, .page-features, .page-faq, .page-alternative) main a:not(.button):not(.btn):hover { text-decoration: underline; }
.post-meta a { color: var(--orange-bright); }

.section-head { max-width: 68ch; margin-bottom: 36px; }
.section-head p { font-size: 17px; margin-top: 10px; }
body:not(.page-home) .eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 15px;
  font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase; font-weight: 650; color: #afbdce;
}
body:not(.page-home) .eyebrow::before { content: ""; width: 29px; height: 2px; background: var(--orange); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 650; font-size: 14px;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: linear-gradient(160deg, #ff9650, #ed601d); border-color: #ffa065; color: #fff; box-shadow: inset 0 1px 0 #ffbc8266, 0 6px 24px #ed601d20; }
.btn-ghost { border-color: #465264; background: #0a111acc; color: var(--text); }
.btn-ghost:hover { border-color: #8797ab; background: #152131; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }

.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, var(--surface), #0e1720);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card p { font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0d1621; box-shadow: 0 30px 80px #00000055; }
.frame img { display: block; width: 100%; height: auto; }
.frame-bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #101a25; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3747; display: block; }

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 10px;
  background: #121c27; padding: 16px 20px; margin: 22px 0; color: var(--muted);
}
.callout strong { color: var(--text); }
.callout.muted { border-left-color: #5b6b7f; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.steps { margin: 0 0 24px; padding-left: 24px; color: var(--muted); max-width: 70ch; }
.steps li { margin-bottom: 10px; line-height: 1.6; }
.steps li::marker { color: var(--orange); font-weight: 700; }
.steps code { overflow-wrap: anywhere; }
.cta { text-align: center; }
.cta p { margin: 0 auto 22px; max-width: 56ch; }
.cta .hero-actions { justify-content: center; }

body:not(.page-home) main code, .prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em;
  background: #182433; border: 1px solid #263445; border-radius: 5px; padding: 1px 6px; color: #ffd2b0;
}
body:not(.page-home) main pre, .prose pre {
  position: relative; background: #0a1119; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; overflow-x: auto; margin: 18px 0; line-height: 1.55;
}
body:not(.page-home) main pre code, .prose pre code { background: none; border: 0; padding: 0; color: #dfe7f2; font-size: 13.5px; }
.code-copy {
  position: absolute; top: 9px; right: 9px; font-size: 11px; padding: 4px 10px; border-radius: 6px;
  border: 1px solid #34465b; background: #132030; color: #c3ccd9; opacity: 0; transition: opacity .15s;
}
pre:hover .code-copy, .code-copy:focus { opacity: 1; }

/* FAQ entries */
body:not(.page-home) details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 16px 20px; margin-bottom: 12px; }
body:not(.page-home) summary { cursor: pointer; font-weight: 650; color: var(--text); }
body:not(.page-home) details[open] summary { margin-bottom: 10px; }

/* ---- Blog ----------------------------------------------------------------- */

.blog-index { padding-top: 120px; }
.blog-index h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -2px; }
.blog-index .updates-grid [hidden] { display: none; }
.updates-grid > .update-card[hidden] { display: none; }

/* A post and its sidebar; below 950px the sidebar follows the post. */
.post-layout { display: grid; grid-template-columns: minmax(0, 820px) 300px; justify-content: space-between; gap: 56px; align-items: start; padding: 120px 0 80px; }
.post-page { min-width: 0; }
.post-header { margin-bottom: 30px; }
.post-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.post-back .icon { transform: rotate(180deg); width: 15px; height: 15px; }
.post-back:hover { color: var(--text); }
.post-page .post-category { display: block; color: var(--orange); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.post-page h1 { max-width: none; margin-bottom: 14px; }
.post-lede { font-size: 19px; line-height: 1.5; color: #c3ccd9 !important; }
.post-meta { margin-top: 16px !important; font-size: 13px; }
.post-cover { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 40px; background: #0d1621; }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.post-cover .release-art-title { font-size: clamp(34px, 6vw, 60px); bottom: 26px; left: 30px; }
.post-cover .release-art-title small { font-size: 11px; }

.prose { font-size: 17px; line-height: 1.75; color: #c9d2de; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; letter-spacing: -0.8px; line-height: 1.2; margin-top: 1.8em; color: var(--text); }
.prose h3 { font-size: 20px; margin-top: 1.5em; color: var(--text); }
.prose p { color: #c9d2de !important; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--orange); color: var(--muted); }
.prose a { color: var(--orange-bright); text-decoration: underline; text-underline-offset: 3px; }
.post-footer { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }


/* ---- Small screens -------------------------------------------------------- */

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  body:not(.page-home) main section { padding: 52px 0; }
  body:not(.page-home) main > section:first-child, .blog-index, .post-layout { padding-top: 96px; }
  .prose { font-size: 16px; }
  .post-lede { font-size: 17px; }
  .post-cover .release-art-title { left: 18px; bottom: 16px; }
}

/* "All posts" under the home updates: a link where the design had a button. */
a.load-more { width: fit-content; margin-inline: auto; }

/* Blog index: equal columns (the wide first column is for the home page's
   featured card), tabs as links, and the pager. */
.blog-index .updates-grid { grid-template-columns: repeat(3, 1fr); }
.update-tabs a { font-size: 12px; padding: 8px 16px; border-radius: 4px; color: #95a7bc; white-space: nowrap; transition: background .2s, color .2s; }
.update-tabs a:hover { color: #fff; background: #223145; }
.update-tabs a.selected { background: var(--orange); box-shadow: 0 2px 12px #f8793626; color: #fff; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 40px; }
.pager-link { display: inline-flex; align-items: center; gap: 10px; justify-self: start; border: 1px solid #344459; padding: 11px 18px; border-radius: 7px; font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s; }
.pager-link:last-child { justify-self: end; }
.pager-link:empty { border: 0; padding: 0; }
a.pager-link:hover { border-color: #8797ab; background: #152131; }
.pager-link .icon { width: 16px; height: 16px; }
.pager-link .icon.flip { transform: rotate(180deg); }
.pager-count { color: var(--muted); font-size: 13px; }
@media (max-width: 950px) { .blog-index .updates-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .blog-index .updates-grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-count { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .update-tabs a { font-size: 11px; padding: 7px 8px; }
}

/* Stats strip icons glow in their own colour. */
.project-strip > a > .icon { filter: drop-shadow(0 0 4px #f8793699) drop-shadow(0 0 12px #f8793655); }
.project-strip > a > .icon.docker-blue { filter: drop-shadow(0 0 4px #3297f799) drop-shadow(0 0 12px #3297f755); }

/* One content width everywhere: the hero's (94.4% of the window, at most
   1359px), which lines the header, the hero copy and every section up on the
   same edges. Phones: 16px each side. Posts keep their narrower column. */
.wrap, .hero > .wrap, .site-header .header-inner { width: min(94.4%, 1359px); }
@media (max-width: 700px) {
  .wrap, .hero > .wrap, .site-header .header-inner { width: calc(100% - 32px); }
}


/* ---- RustDesk Server Pro comparison -------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cmp-summary h3 { color: var(--text); }
/* Features: jump links under the heading. */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { padding: 7px 14px; border: 1px solid #34465b; border-radius: 999px; background: #0d1621; color: #c3ccd9; font-size: 13px; font-weight: 600; transition: border-color .2s, color .2s; }
.jump a:hover { border-color: var(--orange); color: var(--text); }
/* Features: the web client drawn as a window of capability tiles. */
.wc-window { border: 1px solid #f8793655; border-radius: 16px; background: #0a1119; overflow: hidden; box-shadow: 0 30px 80px #00000066; }
.wc-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #101a25; }
.wc-bar span { width: 10px; height: 10px; border-radius: 50%; background: #34465b; }
.wc-bar b { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--green); }
.wc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.wc-tile { display: grid; gap: 4px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface2); color: var(--orange-bright); }
.wc-tile b { color: var(--text); font-size: 14px; font-weight: 650; }
.wc-tile small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.wc-wide { grid-column: 1 / -1; min-height: 120px; align-content: end; background: radial-gradient(90% 120% at 100% 0%, #4395ff26, transparent 60%), linear-gradient(160deg, #15263a, var(--surface2)); }
.wc-wide .icon { width: 30px; height: 30px; }
@media (max-width: 640px) { .wc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Card with an icon tile. */
.card-feature { position: relative; overflow: hidden; transition: border-color .2s; }
.card-feature::after { content: ""; position: absolute; inset: -40% auto auto -20%; width: 70%; height: 90%; background: radial-gradient(closest-side, #f8793614, transparent); pointer-events: none; }
.card-feature:hover { border-color: #795039; }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; border: 1px solid #f8793655; background: linear-gradient(145deg, #f879362e, #f879360d); color: var(--orange-bright); }
.card-icon .icon { width: 24px; height: 24px; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), #0e1720); }
.cmp-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 14px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.cmp-table thead th { border-top: 0; font-size: 13px; letter-spacing: .4px; color: var(--muted); font-weight: 650; background: #101a25; }
.cmp-table thead th:nth-child(2) { color: var(--orange-bright); }
.cmp-table th[scope="row"] { font-weight: 500; color: var(--text); width: 40%; }
.cmp-table td { width: 30%; }
.cmp-group th { padding-top: 22px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 650; color: #afbdce; background: #0d1620; }
.cmp { display: grid; grid-template-columns: 20px 1fr; column-gap: 8px; align-items: start; color: var(--text); }
.cmp > .icon, .cmp > i { width: 18px; height: 18px; margin-top: 2px; }
.cmp-yes > .icon { color: var(--green); }
.cmp-no > .icon { color: #ef6a6a; }
.cmp-part > i { display: block; width: 12px; height: 12px; margin: 5px 3px 0; border-radius: 50%; border: 2px solid var(--orange); background: linear-gradient(90deg, var(--orange) 50%, transparent 50%); }
.cmp small { grid-column: 2; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cmp-info { display: block; }
.cmp-info small { font-size: 14px; color: var(--text); }
.cmp-source { font-size: 13px; margin-top: 16px; }
.cmp-list { margin: 18px 0; padding-left: 20px; color: var(--muted); display: grid; gap: 10px; }
.cmp-list li::marker { color: var(--green); }
.fix-table { min-width: 0; }
.fix-table .fix-num { width: 90px; white-space: nowrap; font-weight: 650; }
.fix-table .fix-num a { color: var(--orange-bright); }
.fix-table .fix-up { width: 230px; color: var(--muted); font-size: 14px; }
.fix-table .fix-what { width: auto; color: var(--text); }
.fix-table thead th:nth-child(2) { color: var(--muted); }
.fix-table .fix-when { width: 130px; white-space: nowrap; font-size: 13px; color: var(--muted); }
.fix-table .fix-when time, .fix-table .fix-when a { display: block; }
.fix-table .fix-when a { color: var(--orange-bright); margin-top: 2px; }
@media (max-width: 700px) {
  .fix-table tr:not(.cmp-group) { grid-template-columns: auto 1fr; align-items: baseline; }
  .fix-table td::before { content: none; }
  .fix-table td.fix-up::before { content: "rustdesk-server "; display: inline; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 400; }
  .fix-table td.fix-what { grid-column: 1 / -1; }
  .fix-table td.fix-when { grid-column: 1 / -1; display: flex; gap: 10px; width: auto; }
  .fix-table .fix-when time, .fix-table .fix-when a { display: inline; margin-top: 0; }
  .fix-table .fix-when a { margin-left: 10px; }
}
/* Bundled in CortenDesk: the container drawn as a box of layers. */
.bundle { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 44px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(120% 90% at 0% 0%, #f8793622, transparent 55%), linear-gradient(180deg, var(--surface), #0d1620); }
.bundle-art { position: relative; }
.bundle-box { border: 1px solid #f8793655; border-radius: 16px; background: #0a1119; padding: 16px; display: grid; gap: 10px; box-shadow: 0 30px 80px #00000066, inset 0 1px 0 #ffffff0d; }
.bundle-lid { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; border-bottom: 1px dashed #34465b; color: var(--orange-bright); }
.bundle .bundle-lid code { color: #c3ccd9; font-size: 13px; background: none; border: 0; padding: 0; }
.bundle-layer { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface2); color: var(--muted); }
.bundle-layer b { display: block; color: var(--text); font-weight: 650; font-size: 15px; }
.bundle-layer small { display: block; font-size: 13px; line-height: 1.4; }
.bundle-server { border-color: #f8793688; background: linear-gradient(90deg, #f8793618, var(--surface2)); color: var(--orange-bright); }
.bundle-server small { color: var(--muted); }
.bundle-foot { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.bundle-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #f8793655; border-radius: 999px; background: #f879361a; color: var(--orange-bright); font-size: 13px; font-weight: 650; margin-bottom: 16px; }
.bundle-badge .icon { width: 18px; height: 18px; }
.bundle-copy h2 { margin-bottom: 14px; }
@media (max-width: 900px) {
  .bundle { grid-template-columns: 1fr; gap: 32px; padding: 24px; }
}
.fix-ref { margin-left: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--orange); }
.cmp-missing li::marker { color: var(--orange); }
/* Phones: each feature on its own line, the two answers side by side under it. */
@media (max-width: 700px) {
  .cmp-table { min-width: 0; font-size: 14px; }
  .cmp-table thead { display: none; }
  .cmp-table tbody, .cmp-table tr { display: block; }
  .cmp-table tr:not(.cmp-group) { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding: 12px 14px; gap: 8px 14px; }
  .cmp-table tr:not(.cmp-group) > * { display: block; width: auto; padding: 0; border: 0; }
  .cmp-table th[scope="row"] { grid-column: 1 / -1; }
  .cmp-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 650; color: var(--muted); }
  .cmp-table td:first-of-type::before { color: var(--orange-bright); }
  .cmp-group th { display: block; padding: 18px 14px 10px; }
  .cmp-scroll > .cmp-table > tbody:first-of-type > .cmp-group > th { border-top: 0; }
}

/* ---- Blog sidebar and search --------------------------------------------- */
.blog-sidebar { display: grid; gap: 18px; padding-top: 6px; }
.sidebar-box { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), #0e1720); padding: 20px; }
.sidebar-box h2 { font-size: 11px !important; letter-spacing: 1.6px !important; text-transform: uppercase; font-weight: 700; color: #afbdce; line-height: 1.4 !important; margin: 0 0 14px !important; }
.blog-search { position: relative; display: flex; }
.blog-search input { width: 100%; min-height: 44px; padding: 0 46px 0 14px; border: 1px solid #344459; border-radius: 8px; background: #0a111a; color: var(--text); font: inherit; font-size: 14px; }
.blog-search input::placeholder { color: #7d8ca0; }
.blog-search input:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px #f8793626; }
.blog-search input::-webkit-search-cancel-button { filter: invert(.6); }
.blog-search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 38px; display: grid; place-items: center; background: none; color: var(--muted); border-radius: 6px; }
.blog-search button:hover { color: var(--orange-bright); background: #152131; }
.blog-search .icon { width: 18px; height: 18px; }
.sidebar-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sidebar-recent a { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.sidebar-recent img { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.sidebar-recent strong { display: block; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--text); transition: color .2s; }
.sidebar-recent a:hover strong { color: var(--orange-bright); }
.sidebar-recent time { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li + li { border-top: 1px solid var(--line); }
.sidebar-links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; color: #ccd3df; transition: color .2s; }
.sidebar-links li:first-child a { padding-top: 0; }
.sidebar-links li:last-child a { padding-bottom: 0; }
.sidebar-links a:hover { color: var(--orange-bright); }
.sidebar-links span { margin-left: auto; font-size: 12px; color: var(--muted); background: #172331; border-radius: 10px; padding: 1px 8px; }
.sidebar-links .icon { width: 17px; height: 17px; color: var(--orange); }
.sidebar-cta p { font-size: 14px; margin: 0 0 16px !important; }
.sidebar-cta .btn { width: 100%; }
.sidebar-cta .btn .icon { width: 18px; height: 18px; }
.blog-index .blog-search { width: 280px; flex-shrink: 0; }
.search-summary { font-size: 14px; margin: -4px 0 18px; }
.search-summary a { color: var(--orange-bright); }
@media (max-width: 950px) {
  .post-layout { grid-template-columns: minmax(0, 820px); justify-content: center; }
  .blog-sidebar { grid-template-columns: repeat(2, 1fr); padding-top: 24px; border-top: 1px solid var(--line); }
  .blog-sidebar > .sidebar-box:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-index .updates-controls { flex-wrap: wrap; }
  .blog-index .blog-search { width: 100%; }
}

/* The stack diagram has its own light background: show it as a card rather
   than blending it into the section. */
.deploy-visual > img { mix-blend-mode: normal; border-radius: var(--radius); border: 1px solid #e2dacb; box-shadow: 0 18px 50px #5b45301a; }

/* Header: the sponsor link carries a red heart. */
.main-nav a.nav-sponsor { display: inline-flex; align-items: center; gap: .35em; }
.main-nav a.nav-sponsor .icon { width: 1.15em; height: 1.15em; color: #f0525a; fill: #f0525a33; }

/* ---- Sponsor page --------------------------------------------------------- */
.sponsor-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.sponsor-tier { display: flex; flex-direction: column; }
.sponsor-tier h3 { color: var(--text); }
.sponsor-tier.featured { border-color: #f8793680; box-shadow: 0 0 0 1px #f8793633, 0 18px 50px #ed601d1a; }
.sponsor-price { margin: 4px 0 16px !important; font-size: 15px; }
.sponsor-price strong { font-size: 34px; letter-spacing: -1px; color: var(--text); margin-right: 4px; }
.sponsor-tier ul { margin: 0 0 22px; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 8px; flex: 1; }
.sponsor-tier li::marker { color: var(--orange); }
.sponsor-tier .btn { width: 100%; }
.page-sponsor .hero-actions .btn .icon { width: 18px; height: 18px; }
/* One row per tier, logos running sideways. Tiles share the dark of the
   logos that bring their own background, so those don't read as boxes. */
.sponsor-rows { border-top: 1px solid var(--line); }
.sponsor-row { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sponsor-row-tier { font-size: 15px; font-weight: 650; }
.sponsor-row-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sponsor-logo { display: flex; align-items: center; justify-content: center; width: 200px; height: 110px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #080b14; color: var(--text); font-weight: 650; text-align: center; transition: border-color .2s; }
.sponsor-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor-row-partner .sponsor-logo { width: 280px; height: 150px; font-size: 18px; }
.sponsor-logo:hover { border-color: #8797ab; text-decoration: none; }
.sponsor-mark { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.2; }
.sponsor-logo .sponsor-mark img { width: 44px; height: 44px; margin-bottom: 5px; }
.sponsor-mark-name { color: #fff; font-size: 17px; font-weight: 650; }
.sponsor-mark-tag { color: #fff; font-size: 12px; font-weight: 400; opacity: .5; }
.sponsor-row-open { font-size: 14px; color: var(--muted); }
.sponsor-row-open:hover { color: var(--orange-bright); }
@media (max-width: 600px) { .sponsor-row { grid-template-columns: 1fr; gap: 12px; } }
.sponsor-subhead { margin-top: 28px; }
.sponsor-names { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sponsor-fine { font-size: 13px; margin-top: 22px; opacity: .6; }
.footer-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-partners img { max-height: 32px; width: auto; }
@media (max-width: 950px) { .sponsor-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sponsor-tiers { grid-template-columns: 1fr; } }

/* ---- Footer: brand and tagline on the left, link columns on the right, a
   bar of small print and the uptime badge underneath. -------------------- */
.site-footer { padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand .brand { font-size: 22px; gap: 10px; }
.footer-tagline { margin-top: 16px; font-size: 16px; font-weight: 600; color: var(--text); max-width: 30ch; line-height: 1.4; }
.footer-about { margin-top: 8px; font-size: 14px; color: #8fa0b6; max-width: 36ch; line-height: 1.55; }
.footer-sponsor { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 14px; border: 1px solid #344459; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text); transition: border-color .2s, background .2s; }
.footer-sponsor:hover { border-color: #8797ab; background: #152131; }
.footer-sponsor .icon { width: 16px; height: 16px; color: #f0525a; fill: #f0525a33; }
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.site-footer .footer-col h2 { margin: 0 0 4px; font-size: 11px; line-height: 1.4; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; color: #afbdce; }
.footer-col a { color: #a1b2c9; width: fit-content; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-partners { margin-top: 40px; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #222e3c; font-size: 12px; color: #71849d; }
.footer-bar .footer-status { margin-left: auto; line-height: 0; }
.footer-status img { display: block; height: 26px; width: auto; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .footer-bar { display: block; margin-top: 36px; }
  .footer-bar p + p { margin-top: 6px; }
  .footer-bar .footer-status { display: inline-block; margin-top: 16px; }
}

/* FAQ: long commands wrap inside their card */
.page-faq .card code { overflow-wrap: anywhere; }

/* Cookie consent: small card, lower left */
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 50; width: min(340px, calc(100vw - 32px)); padding: 14px 16px; background: #111b26f5; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px #0008; backdrop-filter: blur(12px); font-size: 13px; line-height: 1.5; color: var(--muted); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.consent.visible { opacity: 1; transform: none; }
.consent p { margin: 0; }
.consent-actions { display: flex; gap: 8px; margin-top: 12px; }
.consent-actions button { height: 32px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s; }
.consent-allow { background: var(--orange); color: #111; }
.consent-allow:hover { background: var(--orange-bright); }
.consent-decline { background: transparent; border: 1px solid var(--line); color: #ccd3df; }
.consent-decline:hover { border-color: #3a4a5e; }
.cookie-settings { background: none; padding: 0; color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cookie-settings:hover { color: var(--text); }
.footer-bar p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bar p a:hover { color: var(--text); }
@media (max-width: 600px) { .consent { left: 16px; right: 16px; bottom: 16px; width: auto; } }
