{% extends "main.html" %}

{# Hide the H1 and source-file link on the landing page #}
{% block extrahead %}
  {{ super() }}
  <style>
    .md-content__inner > h1:first-child { display: none; }
    .md-content__inner > .md-source-file { display: none; }
    /* Hide both sidebars on desktop so content centres */
    @media (min-width: 76.25em) {
      .md-sidebar--primary { display: none; }
      .md-sidebar--secondary { display: none; }
    }
    /* Centre the main content area when sidebars are hidden */
    .md-main__inner {
      display: block;
      max-width: 720px;
      margin: 0 auto;
      padding: 0 1rem;
    }
  </style>
{% endblock %}

{# Hide desktop sidebar but keep mobile drawer functional #}
{% block site_nav %}
  {{ super() }}
{% endblock %}

{# Render content directly #}
{% block content %}
  {{ page.content }}
{% endblock %}

{# Copyright-only footer — no prev/next pagination #}
{% block footer %}
<footer class="md-footer">
  <div class="md-footer-meta md-typeset">
    <div class="md-footer-meta__inner md-grid">
      <div class="md-copyright">
        {{ config.copyright }}
      </div>
    </div>
  </div>
</footer>
{% endblock %}
