<?php
$site_name_disp    = isset($site_name) && $site_name !== '' ? $site_name : 'Green Submissions';
$site_home_disp    = isset($site_home_url) && $site_home_url !== '' ? $site_home_url : (isset($site_url) ? $site_url : '#');
$site_tagline_disp = isset($site_tagline) ? $site_tagline : '';
?><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><?= htmlspecialchars($site_name_disp, ENT_QUOTES, 'UTF-8') ?> · Submissions</title>
  <link rel="stylesheet" href="styles.css">
  <?php if (function_exists('turnstile_enabled') && turnstile_enabled()): ?>
  <script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
  <?php endif; ?>
</head>
<body>
<header class="site-head">
  <div class="site-head__inner">
    <div class="masthead">
      <?php if ($site_tagline_disp !== ''): ?>
      <div class="masthead__kicker"><?= htmlspecialchars($site_tagline_disp, ENT_QUOTES, 'UTF-8') ?></div>
      <?php endif; ?>
      <a class="masthead__title" href="<?= htmlspecialchars($site_home_disp, ENT_QUOTES, 'UTF-8') ?>"><?= htmlspecialchars($site_name_disp, ENT_QUOTES, 'UTF-8') ?></a>
      <div class="masthead__rule">
        <span class="masthead__rule-line"></span>
        <span class="masthead__rule-mark">❦</span>
        <span class="masthead__rule-line"></span>
      </div>
      <div class="masthead__sub">Submissions Manager</div>
    </div>
  </div>
</header>
<main class="site-main">
