﻿/* Component references: Raycast website CSS and GitHub Primer Button, Link,
   Card and Details. Source mapping and adaptations are recorded in DESIGN.md. */
:root { --component-radius: 6px; --component-border: rgba(255,255,255,.12); --component-surface: #202020; --component-hover: #303030; --component-text: #ededed; --component-secondary: #b1b1b1; --component-focus: #75baff; --component-primary: #fff; --component-primary-text: #171717; }
html[data-theme="light"] { --component-border: rgba(0,0,0,.16); --component-surface: #fff; --component-hover: #ececec; --component-text: #202020; --component-secondary: #555; --component-focus: #225fb3; --component-primary: #242424; --component-primary-text: #fff; }
/* Raycast uses compact, solid primary and outlined secondary buttons. */
.button, .btn, .toggle-btn, .icon-button, .palette-btn, .chip-run, .seg-btn {
  border-radius: var(--component-radius); font-weight: 500;
  transition: background-color .15s, border-color .15s, color .15s;
}
.button, .btn { min-height: 44px; border: 1px solid var(--component-border); background: var(--component-surface); color: var(--component-text); box-shadow: none; }
.button:hover, .btn:hover { background: var(--component-hover); border-color: var(--component-secondary); color: var(--component-text); }
.button-primary, .btn--primary, .is-recommended .platform-download { background: var(--component-primary); border-color: var(--component-primary); color: var(--component-primary-text); }
.button-primary:hover, .btn--primary:hover, .is-recommended .platform-download:hover { background: color-mix(in srgb,var(--component-primary) 85%,var(--component-surface)); border-color: var(--component-primary); color: var(--component-primary-text); }
.button-secondary, .btn--ghost { background: transparent; }
.button-small, .btn--sm { min-height: 40px; height: auto; }
.icon-button, .toggle-btn { min-width: 40px; min-height: 40px; border: 1px solid transparent; color: var(--component-secondary); background: transparent; }
.icon-button:hover, .toggle-btn:hover { background: var(--component-hover); border-color: var(--component-border); color: var(--component-text); }
:where(a,button,summary,input,select):focus-visible { outline: 2px solid var(--component-focus); outline-offset: 2px; }
/* Primer links signal navigation with color and a hover underline. */
.text-link, .platform-alt, .download-links a, .download-notice a, .release-link, .faq-list p a, .doc-list a, .docs-back a { color: var(--accent); text-decoration: none; }
.text-link:hover, .platform-alt:hover, .download-links a:hover, .download-notice a:hover, .release-link:hover, .faq-list p a:hover, .doc-list a:hover, .docs-back a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.desktop-nav a, .footer-groups a { color: var(--component-secondary); }
.desktop-nav a:hover, .footer-groups a:hover { color: var(--component-text); text-decoration: underline; text-underline-offset: 3px; }
/* Raycast card treatment: fine outline, flat surface and inset highlight. */
.platform-card, .faq-list details, .doc-try, .doc-widget, .workspace-frame, .feature-shot, .detail-gallery a { border: 1px solid var(--component-border); border-radius: 10px; background: var(--component-surface); box-shadow: inset 0 1px rgba(255,255,255,.05); }
html[data-theme="light"] :is(.platform-card,.faq-list details,.doc-try,.doc-widget,.workspace-frame,.feature-shot,.detail-gallery a) { box-shadow: none; }
.platform-card.is-recommended { border-color: var(--component-secondary); }
.faq-list summary { border-radius: 9px; }
.faq-list summary:hover { background: var(--component-hover); }
.faq-list details[open] summary { border-radius: 9px 9px 0 0; }
/* Primer-style navigation keeps selection distinct from keyboard focus. */
.preview-button, .os-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--component-secondary); background: transparent; }
.preview-button:hover, .os-tab:hover { background: var(--component-surface); color: var(--component-text); }
.preview-button.is-active, .os-tab.is-active { border-bottom-color: var(--component-text); color: var(--component-text); }
.page-docs .docs-toc a { border-radius: var(--component-radius); }
.page-docs .docs-toc a:hover, .page-docs .docs-toc a.is-active { background: var(--component-hover); color: var(--component-text); }
.page-docs .palette-btn, .palette-panel, .doc-try-row code, .seg, .fontw-field select { border: 1px solid var(--component-border); border-radius: var(--component-radius); background: var(--component-surface); }
.page-docs .seg-btn { min-height: 36px; border-radius: 0; }
.page-docs .seg-btn:hover { background: var(--component-hover); }
.page-docs .chip-run { min-height: 40px; border: 1px solid var(--component-border); border-radius: var(--component-radius); background: var(--component-surface); }
.page-docs .chip-run:hover { background: var(--component-hover); border-color: var(--component-secondary); }
@media (prefers-reduced-motion: reduce) { :where(a,button,summary) { transition: none; } }
@media (forced-colors: active) { :where(.button,.btn,.platform-card,.faq-list details,.preview-button,.chip-run) { border: 1px solid ButtonText; } }
