/* CSS Variables for theming */
:root {
  /* Light theme - GitHub-inspired color palette */
  --background: #f6f8fa;
  --foreground: #1f2328;
  --card: #ffffff;
  --card-foreground: #1f2328;
  --primary: #0969da;
  --primary-foreground: #ffffff;
  --secondary: #eaeef2;
  --secondary-foreground: #1f2328;
  --muted: #f6f8fa;
  --muted-foreground: #656d76;
  --border: #d0d7de;
  --radius: 6px;
}

body.dark {
  --background: #0d1117;
  --foreground: #e6edf3;
  --card: #161b22;
  --card-foreground: #e6edf3;
  --primary: #58a6ff;
  --primary-foreground: #0d1117;
  --secondary: #21262d;
  --secondary-foreground: #e6edf3;
  --muted: #21262d;
  --muted-foreground: #7d8590;
  --border: #30363d;
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  background-color: var(--card);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

@media (min-width: 1024px) {
  .header-avatar {
    display: none;
  }
}

.header-username {
  font-weight: 600;
}

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background-color: var(--secondary);
}

body.light .icon-moon {
  display: none;
}

body.dark .icon-sun {
  display: none;
}

/* Main content layout */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .main-content {
    flex-direction: row;
  }
}

/* Sidebar */
.sidebar {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .sidebar {
    width: 296px;
  }
}

.sidebar-avatar {
  margin-bottom: 1rem;
}

.sidebar-avatar img {
  width: 100%;
  max-width: 296px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.sidebar-name h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.sidebar-name .username {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--muted-foreground);
}

.sidebar-bio {
  margin: 1rem 0;
}

.follow-btn-link {
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}

.follow-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--secondary);
  color: var(--foreground);
  cursor: pointer;
}

.follow-btn:hover {
  background-color: var(--muted);
}

.sidebar-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.sidebar-stats strong {
  color: var(--foreground);
}

.sidebar-info {
  list-style: none;
  font-size: 0.875rem;
}

.sidebar-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  padding: 0.25rem 0;
}

.sidebar-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Responsive styles for smaller screens */
@media (max-width: 1023px) {
  /* Make avatar and name horizontal layout */
  .sidebar-avatar {
    margin-bottom: 0;
    display: inline-block;
    vertical-align: middle;
  }

  .sidebar-avatar img {
    width: 64px;
    max-width: 64px;
    height: 64px;
  }

  .sidebar-name {
    display: inline-block;
    vertical-align: middle;
    margin-left: 1rem;
  }

  .sidebar-name h1 {
    font-size: 1.25rem;
    margin-bottom: 0;
  }

  .sidebar-name .username {
    font-size: 1rem;
  }

  /* Hide follow button and stats on small screens */
  .follow-btn,
  .sidebar-stats {
    display: none !important;
  }

  /* Make contacts horizontal */
  .sidebar-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .sidebar-info li {
    padding: 0;
  }

  /* Hide highlights and organizations sections */
  .sidebar-section {
    display: none !important;
  }
}

.sidebar-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--secondary);
  color: var(--muted-foreground);
}

.orgs {
  display: flex;
  gap: 0.5rem;
}

.org-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background-color: rgba(9, 105, 218, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

/* Content area */
.content-area {
  flex: 1;
  min-width: 0;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.tab:hover {
  color: var(--foreground);
}

.tab.active {
  color: var(--foreground);
  border-bottom-color: var(--primary);
}

.counter {
  margin-left: 0.25rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--secondary);
  color: var(--muted-foreground);
  border-radius: 9999px;
}

/* Tab content */
.tab-content {
  display: block;
}

.tab-content.active {
  display: block;
}

/* Profile README Header */
.profile-readme-header {
  padding-bottom: 1.5rem;
  font-size: 0.875rem;
}

.profile-readme-path {
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.profile-readme-path strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  padding: 1rem;
}

/* Links */
.link {
  color: var(--primary);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted-foreground);
}

/* Section titles */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.section-title:first-child {
  margin-top: 0;
}

.section-title-simple {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

/* Overview tab */
.intro-section {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.intro-content {
  flex: 1;
}

.intro-text {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.sponsor-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background-color: rgba(219, 39, 119, 0.1);
  color: #db2777;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

body.dark .sponsor-btn {
  color: #f472b6;
}

.sponsor-btn:hover {
  background-color: rgba(219, 39, 119, 0.2);
  text-decoration: none;
}

.ukraine-flag {
  flex-shrink: 0;
}

.ukraine-flag img {
  width: 48px;
  height: 48px;
  transition: transform 0.2s;
}

.ukraine-flag:hover img {
  transform: scale(1.1);
}

/* Link list */
.link-list {
  list-style: none;
}

.link-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 0;
}

.link-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  flex-shrink: 0;
}

/* Contribution graph */
.contribution-graph {
  overflow-x: auto;
}

.graph-container {
  display: flex;
  gap: 2px;
  min-width: max-content;
}

.graph-week {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.graph-day {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background-color: var(--secondary);
}

.graph-day.level-1 {
  background-color: #9be9a8;
}

.graph-day.level-2 {
  background-color: #40c463;
}

.graph-day.level-3 {
  background-color: #30a14e;
}

.graph-day.level-4 {
  background-color: #216e39;
}

body.dark .graph-day.level-1 {
  background-color: #0e4429;
}

body.dark .graph-day.level-2 {
  background-color: #006d32;
}

body.dark .graph-day.level-3 {
  background-color: #26a641;
}

body.dark .graph-day.level-4 {
  background-color: #39d353;
}

.contribution-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
}

/* Courses tab */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-card {
  transition: border-color 0.2s;
}

.course-card:hover {
  border-color: var(--primary);
}

.course-header {
  margin-bottom: 0.5rem;
}

.course-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.course-name {
  font-size: 1.125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.free-badge {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

.course-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.topic {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  background-color: rgba(9, 105, 218, 0.1);
  color: var(--primary);
  font-weight: 500;
}

.course-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.star-icon {
  color: #eab308;
}

/* Projects tab */
.projects-filter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .projects-filter {
    flex-direction: row;
  }
}

.search-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  color: var(--foreground);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.2);
}

.filter-selects {
  display: flex;
  gap: 0.5rem;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  color: var(--foreground);
}

.projects-list {
  border-top: 1px solid var(--border);
}

.project-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.public-badge {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

.star-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--secondary);
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.star-btn:hover {
  background-color: var(--muted);
}

.star-btn.starred {
  background-color: var(--secondary);
  color: var(--foreground);
  border-color: var(--border);
}

.star-btn.starred:hover {
  background-color: var(--muted);
}

.project-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.meta-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted-foreground);
  text-decoration: none;
}

.meta-link:hover {
  color: var(--primary);
}

.updated {
  color: var(--muted-foreground);
}

/* CV tab */
.cv-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

/* Contact info */
.contact-info {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item i {
  font-size: 1.5rem;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Preview cards for courses/projects */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.preview-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--foreground);
  transition: border-color 0.2s, background-color 0.2s;
}

.preview-card:hover {
  border-color: var(--primary);
  background-color: var(--muted);
}

.preview-card-content {
  flex: 1;
}

.preview-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.preview-card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.4;
  margin: 0;
}

.preview-card-icon {
  font-size: 1rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.preview-card:hover .preview-card-icon {
  color: var(--primary);
  transform: translate(2px, -2px);
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--secondary);
  color: var(--foreground);
  cursor: pointer;
}

.download-btn:hover {
  background-color: var(--muted);
}

.experience-list,
.education-list,
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.experience-card,
.education-card,
.publication-card {
  padding: 1rem;
}

.experience-header,
.education-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .experience-header,
  .education-header {
    flex-direction: row;
    justify-content: space-between;
  }
}

.job-title,
.degree {
  font-weight: 600;
}

.company,
.school {
  color: var(--primary);
  font-weight: 500;
}

.experience-meta,
.education-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .experience-meta,
  .education-meta {
    text-align: right;
  }
}

.job-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.publication-header {
  margin-bottom: 0.5rem;
}

.publication-title {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.publication-info {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.publication-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.certifications-list {
  list-style: none;
}

.certifications-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
}

/* Utility classes */
section {
  margin-bottom: 2rem;
}

section:last-child {
  margin-bottom: 0;
}

.cv-intro {
  margin-bottom: 2rem;
}

.cv-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cv-intro h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.summary-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.summary-list li {
  padding-left: 1.5rem;
  position: relative;
}

.summary-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--foreground);
}

.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.sub-roles {
  margin-top: 1rem;
}

.sub-role {
  margin-bottom: 1rem;
}

.sub-role:last-child {
  margin-bottom: 0;
}

.sub-role-header {
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sub-role-title {
  flex: 1;
  font-weight: 600;
}

.sub-role-period {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.sub-role-description {
  color: var(--foreground);
  line-height: 1.6;
}

.experience-summary-list {
  list-style: none;
  padding-left: 0;
}

.experience-summary-list li {
  padding: 0.5rem 0;
  display: flex;
  gap: 1rem;
}

.experience-summary-list .period {
  font-weight: 600;
  white-space: nowrap;
  min-width: 100px;
}

.experience-summary-list .details {
  flex: 1;
}

.experience-summary-list .company {
  font-weight: 500;
}

.experience-summary-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.experience-summary-compact .experience-card {
  padding: 0.75rem;
}

.experience-summary-compact .job-title {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.experience-summary-compact .company {
  font-size: 0.875rem;
}

.experience-summary-compact .experience-meta {
  font-size: 0.75rem;
}

.experience-summary-compact .tech-tags {
  margin-top: 0.5rem;
  gap: 0.375rem;
}

.experience-summary-compact .tech-tag {
  padding: 0.125rem 0.5rem;
  font-size: 0.7rem;
}

.competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.competition-item {
  padding: 0.75rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.competition-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

.competition-item a:hover {
  text-decoration: underline;
}

.competition-result {
  display: inline-block;
  margin-top: 0.375rem;
  padding: 0.125rem 0.5rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Print styles */
/* Print-only name header */
.print-only-name {
  display: none;
}

@media print {
  /* Show name header only in print */
  .print-only-name {
    display: block !important;
    text-align: center;
    margin-bottom: 0.5cm;
    border-bottom: 2px solid #333;
    padding-bottom: 0.3cm;
  }

  .print-only-name h1 {
    font-size: 18pt;
    font-weight: bold;
    margin: 0;
    color: #000;
  }

  /* Hide navigation elements */
  .header,
  .tabs,
  .cv-header,
  .theme-toggle,
  .sidebar {
    display: none !important;
  }

  /* Full width layout */
  .layout {
    display: block !important;
  }

  .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  /* Reset page margins */
  @page {
    margin: 1cm;
    size: A4;
  }

  body {
    background: white;
    color: black;
    font-size: 10pt;
    line-height: 1.4;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  /* Remove card styling */
  .card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0.5cm;
    background: transparent;
  }

  /* Section spacing */
  section {
    page-break-inside: avoid;
    margin-bottom: 0.5cm;
  }

  .section-title {
    font-size: 14pt;
    margin-bottom: 0.3cm;
    border-bottom: 1px solid #333;
    padding-bottom: 0.1cm;
  }

  /* Contact info */
  .contact-info {
    margin: 0.3cm 0;
    gap: 0.5cm;
  }

  .contact-item i {
    font-size: 10pt;
  }

  /* Experience cards */
  .experience-card,
  .education-card,
  .publication-card {
    padding: 0.2cm 0;
    border-bottom: 1px solid #ddd;
    page-break-inside: avoid;
  }

  /* Tech tags */
  .tech-tag {
    border: 1px solid #666;
    background: transparent;
    color: black;
    padding: 0.05cm 0.2cm;
    font-size: 8pt;
  }

  .tech-dot {
    background-color: #333;
  }

  /* Links */
  a {
    color: black;
    text-decoration: none;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #666;
  }

  /* Competitions grid */
  .competitions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2cm;
  }

  .competition-item {
    padding: 0.2cm;
    border: 1px solid #ddd;
  }

  /* Summary */
  .summary-list li {
    padding: 0.1cm 0 0.1cm 0.5cm;
  }

  /* Hide "Best printed with Chrome" text */
  .cv-intro + section ~ div:last-child {
    display: none;
  }

  /* Compact spacing */
  h2, h3 {
    margin-top: 0.3cm;
    margin-bottom: 0.2cm;
  }

  p {
    margin: 0.1cm 0;
  }
}
/* Protected links styles */
.protected-telegram,
.protected-email {
  cursor: pointer;
  color: var(--primary);
}

.protected-telegram:hover,
.protected-email:hover {
  text-decoration: underline;
}
