/* Apple theme (default), modelled on apple.com's dark product pages: black
   page, #161617 tiles, SF system type, blue pill buttons. Every rule is
   scoped under [data-theme="apple"] on <html>. Loaded after main.css. */

[data-theme="apple"] {
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --apple-link: #2997ff;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;

  /* Tokens used by main.css and the EV/Miles pages. Accent fills that carry
     text are overridden below to #0071e3 with white text, because the
     pages put --bg-primary (black here) on the accent. */
  --bg-primary: #000000;
  --bg-secondary: #161617;
  --bg-tertiary: #1d1d1f;
  --bg-elevated: #2c2c2e;
  --border-default: #424245;
  --border-muted: #2c2c2e;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #86868b;
  --accent-primary: var(--apple-link);
  --accent-secondary: var(--apple-link);
  --accent-success: #30d158;
  --accent-warning: #ff9f0a;
  --shadow-medium: none;
  --shadow-large: none;

  color-scheme: dark;
}

[data-theme="apple"] body {
  font-family: var(--apple-font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

[data-theme="apple"] h1,
[data-theme="apple"] h2,
[data-theme="apple"] h3 {
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="apple"] p {
  color: var(--text-primary);
}

[data-theme="apple"] a {
  color: var(--apple-link);
}

/* Global nav: dark, translucent, 44px */
[data-theme="apple"] .site-header {
  height: 44px;
}

[data-theme="apple"] .site-header::before {
  background-color: rgba(22, 22, 23, 0.8);
  border-bottom: 0;
  box-shadow: none;
}

[data-theme="apple"] .site-title,
[data-theme="apple"] .site-title:hover {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

[data-theme="apple"] .site-header .nav-link {
  height: 44px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="apple"] .site-header .nav-link:hover {
  color: #ffffff;
}

[data-theme="apple"] .theme-picker select {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="apple"] .theme-picker select option {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-theme="apple"] .theme-picker select:hover,
[data-theme="apple"] .theme-picker select:focus-visible {
  border-color: var(--border-default);
}

/* The window frame is Win95/Mac chrome; here the body is the page. */
[data-theme="apple"] .page-content {
  padding: 56px 0 80px;
}

[data-theme="apple"] .page-content > .container {
  max-width: 980px;
}

/* Hero: big centred headline */
[data-theme="apple"] .hero {
  margin-bottom: 64px;
}

[data-theme="apple"] .hero-title {
  font-size: 56px;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text-primary);
  margin-bottom: 16px;
}

[data-theme="apple"] .hero-subtitle {
  max-width: 720px;
  font-size: 21px;
  line-height: 1.38;
  letter-spacing: 0.011em;
  color: var(--text-secondary);
}

[data-theme="apple"] .section-title {
  padding-left: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  margin-bottom: 40px;
}

[data-theme="apple"] .section-title::before,
[data-theme="apple"] .post-content h2::before {
  display: none;
}

/* Tiles: #f5f5f7, rounded, no border, no hover lift */
[data-theme="apple"] .experience-item,
[data-theme="apple"] .blog-post-card,
[data-theme="apple"] .education-item,
[data-theme="apple"] .summary,
[data-theme="apple"] .card {
  background: var(--bg-secondary);
  border: 0;
  border-radius: 18px;
  padding: 40px;
  margin-bottom: 20px;
  box-shadow: none;
}

[data-theme="apple"] .experience-item:hover,
[data-theme="apple"] .blog-post-card:hover,
[data-theme="apple"] .card:hover {
  transform: none;
  box-shadow: var(--shadow-large);
}

[data-theme="apple"] .experience-item::before,
[data-theme="apple"] .blog-post-card::before,
[data-theme="apple"] .card::before {
  display: none;
}

[data-theme="apple"] .experience-title {
  font-size: 28px;
  line-height: 1.14;
  margin-bottom: 6px;
}

[data-theme="apple"] .company-name {
  font-size: 21px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

[data-theme="apple"] .duration,
[data-theme="apple"] .blog-post-meta,
[data-theme="apple"] .post-meta,
[data-theme="apple"] .gpa {
  font-family: var(--apple-font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.016em;
  color: var(--text-muted);
}

[data-theme="apple"] .category-tag,
[data-theme="apple"] .blog-post-category,
[data-theme="apple"] .post-category {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  padding: 3px 10px;
}

[data-theme="apple"] .description li {
  color: var(--text-primary);
  padding-left: 18px;
}

[data-theme="apple"] .description li::before,
[data-theme="apple"] .post-content ul li::before {
  content: "";
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

[data-theme="apple"] .skill-tag,
[data-theme="apple"] .post-tag,
[data-theme="apple"] .blog-tag {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  padding: 5px 12px;
}

[data-theme="apple"] .skill-tag:hover,
[data-theme="apple"] .post-tag:hover,
[data-theme="apple"] .blog-tag:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  transform: none;
}

/* Buttons: blue pills; secondary actions are plain links */
[data-theme="apple"] .blog-read-more {
  border: 0;
  border-radius: 980px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 400;
  background: var(--apple-blue);
  color: #ffffff;
}

[data-theme="apple"] .blog-read-more:hover {
  background: var(--apple-blue-hover);
  color: #ffffff;
  transform: none;
}

[data-theme="apple"] .back-to-blog,
[data-theme="apple"] .post-navigation .nav-link {
  border: 0;
  padding: 0;
  color: var(--apple-link);
  font-weight: 400;
  background: none;
}

[data-theme="apple"] .back-to-blog:hover,
[data-theme="apple"] .post-navigation .nav-link:hover {
  background: none;
  color: var(--apple-link);
  text-decoration: underline;
}

/* Blog */
[data-theme="apple"] .blog-grid {
  gap: 20px;
}

[data-theme="apple"] .blog-post-card {
  margin-bottom: 0;
}

[data-theme="apple"] .blog-post-title {
  font-size: 32px;
  line-height: 1.125;
}

[data-theme="apple"] .blog-post-title a,
[data-theme="apple"] .blog-post-title a:hover {
  color: var(--text-primary);
}

[data-theme="apple"] .blog-post-excerpt,
[data-theme="apple"] .post-excerpt {
  font-size: 19px;
  font-style: normal;
  color: var(--text-secondary);
}

/* Post */
[data-theme="apple"] .post {
  max-width: 692px;
  margin: 0 auto;
}

[data-theme="apple"] .post-header {
  border-bottom-color: var(--border-default);
}

[data-theme="apple"] .post-title {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.003em;
}

[data-theme="apple"] .post-content {
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.6;
}

[data-theme="apple"] .post-content h2 {
  padding-left: 0;
}

[data-theme="apple"] .post-content h3 {
  color: var(--text-primary);
}

[data-theme="apple"] .post-content a {
  color: var(--apple-link);
}

[data-theme="apple"] .post-content code {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
}

[data-theme="apple"] .post-content pre {
  background: var(--bg-secondary);
  border: 0;
  border-radius: 18px;
}

[data-theme="apple"] .post-content blockquote {
  background: none;
  border-left: 3px solid var(--border-default);
  border-radius: 0;
  font-style: normal;
}

[data-theme="apple"] .post-content img {
  box-shadow: none;
  border-radius: 18px;
}

[data-theme="apple"] .post-content table {
  background: none;
  border-radius: 0;
}

[data-theme="apple"] .post-content th {
  background: none;
  border-bottom-color: var(--text-primary);
}

[data-theme="apple"] .post-navigation {
  border-top-color: var(--border-default);
}

/* ---- Tool pages (EV, Miles) ----
   Tokens do most of the work; these match the pill buttons and tiles. */

[data-theme="apple"] .ev-card,
[data-theme="apple"] .mi-card {
  border: 0;
  border-radius: 18px;
}

[data-theme="apple"] .ev-hero h1,
[data-theme="apple"] .mi-hero h1 {
  font-size: 32px;
  font-weight: 600;
}

[data-theme="apple"] .ev-btn {
  border-radius: 980px;
  background: var(--apple-blue);
  color: #ffffff;
  font-weight: 400;
}

[data-theme="apple"] .ev-btn:hover {
  background: var(--apple-blue-hover);
  transform: none;
}

[data-theme="apple"] .ev-copy:hover {
  background: var(--bg-tertiary);
}

/* Accent fills: Apple blue with white text (the pages default to
   --bg-primary text on the accent, which is black in this theme). */
[data-theme="apple"] .ev-seg button.active,
[data-theme="apple"] .mi-wrap .mi-seg button.active,
[data-theme="apple"] .mi-wrap .mi-quick button:active {
  background: var(--apple-blue);
  color: #ffffff;
}

[data-theme="apple"] .ev-fulltank-banner.off {
  background: rgba(255, 69, 58, 0.12);
  border-color: #ff453a;
  color: #ff6961;
}

[data-theme="apple"] .ev-plan .val,
[data-theme="apple"] .ev-stat .val,
[data-theme="apple"] .ev-out .val,
[data-theme="apple"] .mi-num {
  font-family: var(--apple-font);
  letter-spacing: -0.01em;
}

/* Mobile */
@media (max-width: 768px) {
  [data-theme="apple"] .site-header .nav-link {
    height: auto;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
  }

  [data-theme="apple"] .menu-icon {
    color: rgba(255, 255, 255, 0.8);
  }

  [data-theme="apple"] .nav-trigger:checked ~ .nav-links {
    inset: 44px 0 0 0;
  }

  [data-theme="apple"] .page-content {
    padding: 40px 0 56px;
  }

  [data-theme="apple"] .hero-title {
    font-size: 40px;
  }

  [data-theme="apple"] .hero-subtitle {
    font-size: 19px;
  }

  [data-theme="apple"] .section-title {
    font-size: 32px;
  }

  [data-theme="apple"] .experience-item,
  [data-theme="apple"] .blog-post-card {
    padding: 28px 24px;
  }

  [data-theme="apple"] .experience-title {
    font-size: 24px;
  }

  [data-theme="apple"] .post-title {
    font-size: 32px;
  }

  [data-theme="apple"] .blog-post-title {
    font-size: 24px;
  }
}
