/**
 * Maroon & Gold School - Additional / modular styles
 * Loaded after style.css
 */

/* Search form override for WordPress default */
.search-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}

.search-form .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--mgs-gray-light);
  border-right: none;
  border-radius: var(--mgs-border-radius) 0 0 var(--mgs-border-radius);
  font-family: inherit;
}

.search-form .search-field:focus {
  outline: none;
  border-color: var(--mgs-primary);
}

.search-form .search-submit {
  padding: 0.75rem 1.25rem;
  background: var(--mgs-primary);
  color: var(--mgs-white);
  border: 2px solid var(--mgs-primary);
  border-radius: 0 var(--mgs-border-radius) var(--mgs-border-radius) 0;
  cursor: pointer;
  font-weight: 600;
}

.search-form .search-submit:hover {
  background: var(--mgs-primary-dark);
}

/* Alignwide / fullwidth helpers for classic content */
.alignwide {
  margin-left: calc(50% - 50vw + 1rem);
  margin-right: calc(50% - 50vw + 1rem);
  max-width: 100vw;
  width: 100vw;
}

@media (min-width: 1200px) {
  .alignwide {
    margin-left: -100px;
    margin-right: -100px;
    max-width: calc(100% + 200px);
    width: auto;
  }
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mgs-gray-light);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.8125rem;
  color: var(--mgs-gray);
  margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
  font-weight: 600;
  color: var(--mgs-primary);
}

/* Comments area basic styling */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mgs-gray-light);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--mgs-gray-light);
}

.comment-author {
  font-weight: 600;
}

.comment-metadata {
  font-size: 0.8125rem;
  color: var(--mgs-gray);
  margin-bottom: 0.75rem;
}

/* Ensure sticky header doesn't cover content when anchored */
html {
  scroll-padding-top: calc(var(--mgs-header-height) + 1rem);
}