/* ==========================================================================
   OpenPress — Responsive Utilities & Layout Layer
   ========================================================================== */

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar__widget {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 22px;
}

.sidebar__widget-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: column; }
}

/* ---- Loading state (initial page skeleton) ---- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease-apple), visibility 0.4s var(--ease-apple);
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.page-loader__mark {
  width: 34px; height: 34px;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---- Section divider helper ---- */
.divider {
  height: 1px;
  background: var(--color-divider);
  width: 100%;
  margin: 8px 0;
}

.section-tight { padding: 32px 0; }

@media print {
  .nav, .pillbar, .footer, .back-to-top, .ad-slot, .article-footer-share { display: none !important; }
  body { color: #000; background: #fff; }
}
