* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f3f3f3;
  color: #0b0b0b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.page {
  width: calc(100% - 24px);
  margin: 12px;
  min-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
}

.site-header {
  margin-bottom: 1px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-title {
  margin: 0;
  padding-top: 16px;
  line-height: 1;
}

.header-title a {
  color: inherit;
  text-decoration: none;
}

.header-icon {
  height: 60px;
  width: auto;
}

.site-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -1.1px;
}

.site-header h1 span {
  color: transparent;
  -webkit-text-stroke: 1.2px #0b0b0b;
  text-stroke: 1.2px #0b0b0b;
}

/* Single column layout across all screens */
.layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.box {
  border: 1px solid #111;
  background: transparent;
}

.left-panel {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-panel {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bottom-box {
  height: 44px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #1a3570, #2d6bc4, #048feb, #2d6bc4, #1a3570);
}

.bottom-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(160, 230, 215, 0.2) 35%,
    rgba(220, 248, 242, 0.65) 50%,
    rgba(160, 230, 215, 0.2) 65%,
    transparent 100%
  );
  animation: bar-sweep 7s ease-in-out infinite alternate;
}

@keyframes bar-sweep {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

.left-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Stacks work list and photo vertically to prevent overflow */
.left-columns {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.left-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #111;
  background: #e8e8e8;
}

.photo figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
  text-align: center;
}

.shortcuts-footer {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
  color: #555;
}

.block {
  flex-shrink: 0;
}

.block h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.block p {
  margin: 0;
  line-height: 1.5;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin: 0 0 4px;
}

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

a {
  color: #2961f6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

a:visited {
  color: #040998;
}

a:hover {
  color: #003cff;
}

h2 a {
  color: inherit;
  text-decoration: none;
}

/* Borjgali row & shimmer styles */
.borjgali-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 1rem;
}

.shimmer-container {
  position: relative;
  width: 100%;
  max-width: var(--icon-size, 60px); 
  aspect-ratio: 1 / 1;
  height: auto;
  flex: 1 1 0;
  min-width: 0;
}

.shimmer-image {
  width: 100%;
  height: 100%;
  display: block;
}

.shimmer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  
  -webkit-mask-image: url('borjgal.png');
  mask-image: url('borjgal.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  background: linear-gradient(
    var(--shimmer-angle, 110deg),
    transparent 30%,
    var(--shimmer-color, rgba(255, 255, 255, 0.7)) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: shimmer var(--shimmer-speed, 2.5s) infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}