/* ==========================================================================
   Document rows (icon + title + type/size + View button).
   Standalone: does NOT need documents.css, .docs-section, or Bootstrap utilities.
   DBIM tokens only, so it follows data-theme / data-mode.
   ========================================================================== */

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  border: 1px solid var(--bright-gray);
  border-radius: 12px;
  background: var(--white);
}

.doc-row__icon {
  flex: 0 0 auto;
  font-size: 1.5rem;
  color: var(--rhythm);
}

.doc-row__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--black);
  overflow-wrap: anywhere;
}

.doc-row__meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 24px;
  color: var(--key);
}
.doc-row__type {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.doc-row__type .material-symbols-outlined { font-size: 2.25rem; }
.doc-row__size {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.doc-row__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--c4);
  color: var(--key);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.doc-row__btn:hover { background: var(--c3); color: var(--key); }
.doc-row__btn:focus-visible { outline: 2px solid var(--key); outline-offset: 2px; }
.doc-row__btn .material-symbols-outlined { font-size: 2.4rem; }

/* Dark / high-contrast mode: the key colour is near-black there */
[data-mode="dark"] .doc-row__meta,
[data-mode="dark"] .doc-row__btn,
[data-mode="dark"] .doc-row__btn:hover { color: var(--black); }
[data-mode="dark"] .doc-row__btn:focus-visible { outline-color: var(--black); }

@media (max-width: 767.5px) {
  .doc-row { flex-wrap: wrap; padding: 16px; }
  .doc-row__title { flex: 1 1 calc(100% - 48px); }
  .doc-row__meta { margin-right: auto; }
}


/* ============ Sitemap page ============ */

/* section headings */
.heading {
  color: var(--key);
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid color-mix(in srgb, var(--key) 25%, transparent);
}

.heading:first-child {
  margin-top: 1rem;
}

/* each sitemap block as a card */
.maincontent .doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.maincontent .doc-row2 {
  background: var(--no-key);
  border: 1px solid color-mix(in srgb, var(--key) 25%, transparent);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.maincontent .doc-row2:hover {
  border-color: var(--key);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--key) 15%, transparent);
}

/* top-level item (bullet list) */
.maincontent .doc-row2 > ul {
  margin: 0;
  padding-left: 1.5rem;
}

.maincontent .doc-row2 > ul > li::marker {
  color: var(--key);
}

.maincontent .doc-row2__title {
  margin: 0;
  font-weight: 600;
  font-size: 1.65rem;
}

.maincontent .doc-row2__title > a {
  color: var(--key);
  text-decoration: none;
}

.maincontent .doc-row2__title > a:hover {
  text-decoration: underline;
}

/* sub-links (roman numeral list) */
.maincontent .doc-row2 ol {
  margin: 1rem;
  padding-left: 1.5rem;
  font-weight: 400;
  font-size: 1.45rem;
}

.maincontent .doc-row2 ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.maincontent .doc-row2 ol li::marker {
  color: var(--key);
  font-weight: 600;
}

.maincontent .doc-row2 ol a {
  color: inherit;
  text-decoration: none;
}

.maincontent .doc-row2 ol a:hover {
  color: var(--key);
  text-decoration: underline;
}

.menu-cards {
    width: 100%;
    padding: 0;
}

.menu-card {
    border: 1px solid #c7d8da;
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 12px;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.menu-card:hover {
    background: #f1f8f8;
    border-color: #5D3E00;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.menu-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5D3E00;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.menu-title > span:first-child {
    font-size: 20px;
}

.menu-title a {
    color: #5D3E00;
    text-decoration: none;
}

.menu-title a:hover {
    text-decoration: underline;
}

.menu-subitems {
    margin: 12px 0 4px 30px;
    padding-left: 20px;
}

.menu-subitems li {
    padding-left: 2px;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.35;
    color: #222;
}

.menu-subitems a {
    color: #17202a;
    text-decoration: none;
}

.menu-subitems a:hover {
    color: #5D3E00;
    text-decoration: underline;
}

.notifications-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 25px 30px;
    box-sizing: border-box;
}

.notifications-page h2 {
    margin: 0 0 35px;
    text-align: center;
    color: #4b3b2a;
    font-size: 30px;
    font-weight: 600;
}

.select-year {
    margin: 0 0 22px;
    text-align: center;
    color: #4b3b2a;
    font-size: 21px;
    font-weight: 600;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    gap: 16px;
    justify-content: center;
}

.year-card {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    padding: 12px 15px;

    border: 1px solid #c6a678;
    border-radius: 9px;

    background: #fffdf9;

    color: #6b4a2f;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.year-card:hover {
    background: #f3e6d2;
    border-color: #a66f2e;
    color: #4b3b2a;
    box-shadow: 0 4px 10px rgba(75, 59, 42, 0.15);
    transform: translateY(-2px);
}

.year-card:focus-visible {
    outline: 2px solid #a66f2e;
    outline-offset: 2px;
}

/* Tablet */
@media (max-width: 900px) {
    .year-grid {
        grid-template-columns: repeat(2, 200px);
    }
}

/* Mobile */
@media (max-width: 500px) {
    .notifications-page {
        padding: 15px;
    }

    .year-grid {
        grid-template-columns: 1fr;
    }

    .year-card {
        width: 100%;
    }
}

.notifications-page .citizen-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.notifications-page .citizen-resource-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    min-width: 0;
    min-height: 175px;
    padding: 26px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5ded3;
    border-radius: 8px;
    color: #4b3b2a;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(75, 59, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.notifications-page .citizen-resource-card:hover {
    color: #4b3b2a;
    text-decoration: none;
    border-color: #a66f2e;
    box-shadow: 0 7px 18px rgba(75, 59, 42, 0.12);
    transform: translateY(-3px);
}

.notifications-page .citizen-resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f7efe4;
    color: #a66f2e;
    font-size: 27px;
}

.notifications-page .citizen-resource-title {
    display: block;
    width: 100%;
    padding-right: 16px;
    box-sizing: border-box;
    color: #4b3b2a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.notifications-page .citizen-resource-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #a66f2e;
    font-size: 20px;
}

.notifications-page .citizen-resource-card:focus-visible {
    outline: 3px solid #a66f2e;
    outline-offset: 3px;
}

@media (max-width: 992px) {
    .notifications-page .citizen-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 576px) {
    .notifications-page .citizen-resource-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .notifications-page .citizen-resource-card {
        min-height: 145px;
        padding: 22px;
        gap: 15px;
    }
}