/* guideline.css — Submission guidelines (/guideline, views/guideline.php).
 * Plain CSS; relies on the global CSS variables defined in views/layout.php.
 * Loaded via Page::$extraCss. */

  .page-hero {
    background: linear-gradient(135deg, var(--deep) 0%, var(--mid) 60%, #005f8e 100%);
    padding: 124px 40px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
  }

  .page-hero-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
  }

  .page-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative;
  }

  .page-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
  }

  .layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
  }

  .sidebar {
    position: sticky;
    top: 80px;
  }

  .sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
  }

  .sidebar-title {
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-link {
    display: block;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all 0.15s;
  }

  .sidebar-link:last-child {
    border-bottom: none;
  }

  .sidebar-link:hover {
    background: var(--light);
    color: var(--deep);
    padding-left: 22px;
  }

  .sidebar-link.active {
    color: var(--teal);
    font-weight: 700;
    background: var(--light);
    border-left: 3px solid var(--teal);
  }

  .dl-card {
    background: var(--deep);
    border-radius: 14px;
    padding: 20px;
    margin-top: 16px;
  }

  .dl-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
  }

  .dl-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
    transition: opacity 0.2s;
  }

  .dl-btn:last-child {
    margin-bottom: 0;
  }

  .dl-btn:hover {
    opacity: 0.8;
  }

  .dl-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }

  .main {
    min-width: 0;
  }

  .section-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 20px;
  }

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

  .block-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .block-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--deep);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }

  .block-body {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.75;
  }

  .block-body p {
    margin-bottom: 12px;
  }

  .block-body p:last-child {
    margin-bottom: 0;
  }

  .criteria-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }

  .criteria-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    background: var(--light);
    border-radius: 10px;
    border: 1px solid #c5e3f5;
  }

  .criteria-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .criteria-text {
    font-size: 14px;
    color: var(--text);
  }

  .criteria-text strong {
    color: var(--deep);
    display: block;
    margin-bottom: 2px;
  }

  .themes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

  .theme-pill {
    padding: 10px 14px;
    background: var(--light);
    border: 1px solid #c5e3f5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--deep);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .theme-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
  }

  .timeline {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
  }

  .tl-row {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
  }

  .tl-row:last-child {
    border-bottom: none;
  }

  .tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
    margin-top: 4px;
  }

  .tl-date {
    font-size: 14px;
    font-weight: 700;
    color: var(--deep);
    min-width: 180px;
  }

  .tl-label {
    font-size: 14px;
    color: var(--muted);
  }

  .tl-badge {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
  }

  .tl-badge.closed {
    background: #fee2e2;
    color: #991b1b;
  }

  .tl-badge.open {
    background: #dcfce7;
    color: #166534;
  }

  .format-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    counter-reset: fmt;
  }

  .format-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    counter-increment: fmt;
  }

  .format-item::before {
    content: counter(fmt);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--deep);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .format-item-text {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.5;
  }

  .format-item-text span {
    color: var(--muted);
    font-size: 12px;
    display: block;
  }

  .prizes-row {
    display: flex;
    gap: 14px;
    margin-top: 16px;
  }

  .prize-card {
    flex: 1;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    border: 1px solid var(--border);
  }

  .prize-card.gold {
    background: linear-gradient(135deg, #fef9e7, #fef3c7);
    border-color: #f59e0b;
  }

  .prize-card.silver {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-color: #94a3b8;
  }

  .prize-card.bronze {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: #f97316;
  }

  .prize-medal {
    font-size: 32px;
    margin-bottom: 6px;
  }

  .prize-place {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
  }

  .prize-amount {
    font-size: 20px;
    font-weight: 900;
    color: var(--deep);
  }

  .pres-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
  }

  .pres-card {
    background: #fff;
    border: 1px solid #dde8f0;
    border-radius: 12px;
    overflow: hidden;
  }

  .pres-header {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
  }

  .pres-header.oral {
    background: #0a2540;
  }

  .pres-header.poster {
    background: #00b4d8;
  }

  .pres-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .pres-rule {
    font-size: 14px;
    color: #0a1628;
    padding: 8px 0;
    border-bottom: 1px solid #f0f4f8;
    display: flex;
    gap: 12px;
    align-items: center;
    line-height: 20px;
  }

  .pres-rule:last-child {
    border-bottom: none;
  }

  .pres-rule::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00b4d8;
    flex-shrink: 0;
  }

  .submit-cta {
    background: linear-gradient(135deg, var(--deep), var(--mid));
    border-radius: 16px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }

  .submit-cta h3 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
  }

  .submit-cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
  }

  .btn-cta {
    padding: 14px 32px;
    background: #fff;
    color: var(--deep);
    font-size: 16px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
  }

  .btn-cta:hover {
    opacity: 0.85;
  }

  @media (max-width: 800px) {
    .layout {
      grid-template-columns: 1fr;
    }

    .sidebar {
      position: static;
    }

    .themes-grid,
    .pres-grid {
      grid-template-columns: 1fr;
    }

    .prizes-row {
      flex-direction: column;
    }

    .page-hero {
      padding: 100px 20px 40px;
    }
  }
