:root {
  --navy: #1d3041;
  --navy-dark: #142432;
  --red: #a21f25;
  --cream: #f4f1e8;
  --white: #ffffff;
  --text: #1d3041;
  --muted: #66737d;
  --border: #d9dee3;
  --background: #f5f6f7;
  --hover: #eef2f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.siteBar {
  background: var(--navy);
  border-bottom: 5px solid var(--red);
}

.siteBarInner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  color: var(--white);
}

.siteTitle {
  font-size: 24px;
  font-weight: 700;
}

.siteSubtitle {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.pageShell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  margin-bottom: 14px;
}

.backButton {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.backButton:hover {
  background: var(--hover);
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
}

.contentPanel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.panelHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.panelHeader h1 {
  margin: 0;
  font-size: 25px;
}

.panelHeader p {
  margin: 6px 0 0;
  color: var(--muted);
}

.searchInput {
  width: 260px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--white);
}

.searchInput:focus {
  outline: 2px solid rgba(29, 48, 65, 0.18);
  border-color: var(--navy);
}

.folderGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.folderCard {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.folderCard:hover {
  background: var(--hover);
  border-color: #c7d0d8;
}

.folderIcon {
  width: 42px;
  height: 32px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #d9ad57;
}

.folderIcon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 3px;
  width: 18px;
  height: 9px;
  border-radius: 4px 4px 0 0;
  background: #d9ad57;
}

.folderName {
  font-weight: 700;
}

.folderMeta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.yearSection {
  grid-column: 1 / -1;
}

.yearHeading {
  margin: 10px 0 0;
  padding: 14px 4px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 19px;
}

.fileList {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.fileRow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
}

.fileRow:hover {
  background: var(--hover);
}

.fileInfo {
  min-width: 0;
}

.fileName {
  font-weight: 700;
}

.fileMeta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.fileLink {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.fileLink:hover {
  text-decoration: underline;
}

.emptyState {
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
}

.fileActions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fileLink {
    display: inline-block;
    padding: 6px 12px;
    background: var(--navy);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.fileLink:hover {
    background: var(--navy-dark);
}

@media (max-width: 700px) {
  .pageShell {
    padding: 14px;
  }

  .panelHeader {
    flex-direction: column;
  }

  .searchInput {
    width: 100%;
  }

  .folderGrid {
    grid-template-columns: 1fr;
  }

  .fileRow {
    align-items: flex-start;
    flex-direction: column;
  }
}