/* GMR Document Library: public page */
.gdl { --gdl-blue: #0076BC; --gdl-blue-dark: #0061AA; --gdl-ink: #1f2937; --gdl-muted: #6b7280; --gdl-line: #e3e8ef; --gdl-soft: #f4f7fb;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--gdl-ink); max-width: 1200px; margin: 0 auto; padding: 8px 0 48px; line-height: 1.5; }
.gdl *, .gdl *::before, .gdl *::after { box-sizing: border-box; }
.gdl--notice { padding: 40px 20px; text-align: center; color: var(--gdl-muted); font-size: 17px; }
.gdl p { margin: 0; }
.gdl ul { list-style: none; margin: 0; padding: 0; }

/* toolbar */
.gdl__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 22px; }
.gdl__search { position: relative; display: flex; align-items: center; flex: 1 1 280px; max-width: 420px; }
.gdl__search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--gdl-muted); pointer-events: none; }
.gdl .gdl__search input { width: 100%; height: 46px; margin: 0; padding: 0 16px 0 42px; border: 1px solid #cfd8e3; border-radius: 999px; background: #fff; font: inherit; font-size: 16px; color: var(--gdl-ink); box-shadow: 0 1px 2px rgba(16,24,40,.04); -webkit-appearance: none; appearance: none; }
.gdl .gdl__search input:focus { outline: none; border-color: var(--gdl-blue); box-shadow: 0 0 0 3px rgba(0,118,188,.18); }
.gdl .gdl__search input::-webkit-search-cancel-button { -webkit-appearance: searchfield-cancel-button; }
.gdl__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.gdl__summary { font-size: 14px; color: var(--gdl-muted); margin-right: 6px; }
.gdl .gdl__btn { appearance: none; -webkit-appearance: none; border: 1px solid #cfd8e3; background: #fff; color: var(--gdl-blue-dark); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s; }
.gdl .gdl__btn:hover { background: var(--gdl-soft); border-color: #b9c6d6; }
.gdl .gdl__btn:focus-visible { outline: 3px solid rgba(0,118,188,.35); outline-offset: 1px; }

/* layout */
.gdl__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1024px) { .gdl__layout { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; } .gdl__index { position: sticky; top: 110px; } }
.gdl__index { background: var(--gdl-soft); border-radius: 14px; padding: 18px 18px 14px; }
.gdl__index-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gdl-muted); margin: 0 0 8px; }
.gdl__index > ul > li + li { border-top: 1px solid rgba(0,0,0,.05); }
.gdl__index a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 6px; color: var(--gdl-ink); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 8px; transition: background .15s, color .15s; }
.gdl__index a:hover, .gdl__index a.is-active { color: var(--gdl-blue); background: #fff; }
.gdl__index ul ul { padding: 0 0 6px 16px; }
.gdl__index ul ul a { font-size: 14px; font-weight: 400; padding: 6px 6px; color: #475467; }
.gdl__index-count { font-size: 12px; font-weight: 600; color: var(--gdl-muted); background: #fff; border-radius: 999px; padding: 2px 8px; min-width: 26px; text-align: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.gdl__index a:hover .gdl__index-count, .gdl__index a.is-active .gdl__index-count { background: var(--gdl-soft); }
@media (max-width: 1023px) { .gdl__index { display: none; } }

/* categories */
.gdl__main > .gdl-cat + .gdl-cat { margin-top: 14px; }
.gdl-cat { background: #fff; border: 1px solid var(--gdl-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); overflow: hidden; }
.gdl-cat[open] { box-shadow: 0 6px 24px -12px rgba(16,24,40,.25); }
.gdl-cat__head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; user-select: none; }
.gdl-cat__head::-webkit-details-marker { display: none; }
.gdl-cat__head::marker { content: ''; }
.gdl-cat__head:hover { background: #fafcfe; }
.gdl-cat__head:focus-visible { outline: 3px solid rgba(0,118,188,.35); outline-offset: -3px; }
.gdl-cat__chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gdl-soft); color: var(--gdl-blue); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s ease, background .15s; }
.gdl-cat__chev svg { width: 16px; height: 16px; }
.gdl-cat[open] > .gdl-cat__head .gdl-cat__chev { transform: rotate(90deg); background: var(--gdl-blue); color: #fff; }
.gdl-cat__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gdl .gdl-cat__name { margin: 0; font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--gdl-blue); }
.gdl-cat__desc { font-size: 14px; color: var(--gdl-muted); }
.gdl-cat__count { flex: none; font-size: 13px; font-weight: 600; color: var(--gdl-blue-dark); background: var(--gdl-soft); border-radius: 999px; padding: 4px 11px; min-width: 32px; text-align: center; }
.gdl-cat__body { border-top: 1px solid var(--gdl-line); }
.gdl-cat__empty { padding: 18px 20px; color: var(--gdl-muted); font-size: 14px; }

/* subcategories */
.gdl-cat--sub { border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--gdl-line); }
.gdl-cat--sub[open] { box-shadow: none; }
.gdl-cat--sub > .gdl-cat__head { padding: 14px 20px 14px 28px; background: #fbfcfe; }
.gdl-cat--sub > .gdl-cat__head:hover { background: var(--gdl-soft); }
.gdl-cat--sub .gdl-cat__chev { width: 24px; height: 24px; }
.gdl-cat--sub .gdl-cat__chev svg { width: 13px; height: 13px; }
.gdl .gdl-cat--sub .gdl-cat__name { font-size: 16px; color: var(--gdl-ink); }
.gdl-cat--sub .gdl-cat__count { font-size: 12px; padding: 3px 9px; }
.gdl-cat--sub > .gdl-cat__body { border-top: 1px solid var(--gdl-line); }
.gdl-cat--sub .gdl-doc { padding-left: 28px; }

/* documents */
.gdl-doc { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--gdl-line); transition: background .15s; }
.gdl-list > .gdl-doc:first-child { border-top: 0; }
.gdl-doc:hover { background: #fafcfe; }
.gdl-doc[hidden] { display: none; }
.gdl-doc__body { min-width: 0; }
.gdl .gdl-doc__title { display: inline-block; font-size: 17px; font-weight: 500; color: var(--gdl-ink); text-decoration: none; line-height: 1.3; overflow-wrap: anywhere; }
.gdl .gdl-doc__title:hover { color: var(--gdl-blue); text-decoration: underline; text-underline-offset: 3px; }
.gdl-doc__desc { font-size: 14px; color: #4b5563; margin-top: 2px; }
.gdl-doc__meta { font-size: 13px; color: var(--gdl-muted); margin-top: 4px; }
.gdl-doc__meta span + span::before { content: '\00b7'; margin: 0 7px; }
.gdl .gdl-doc__dl { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid #cfd8e3; color: var(--gdl-blue-dark); background: #fff; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.gdl .gdl-doc__dl:hover { background: var(--gdl-blue); border-color: var(--gdl-blue); color: #fff; }
.gdl .gdl-doc__dl svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .gdl-doc { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; } .gdl-doc__dl span { display: none; } .gdl .gdl-doc__dl { padding: 9px; } .gdl__actions { width: 100%; justify-content: space-between; } .gdl__summary { flex-basis: 100%; margin: 0; }
  .gdl-cat__head { padding: 14px 14px; gap: 10px; } .gdl .gdl-cat__name { font-size: 18px; } .gdl-cat--sub > .gdl-cat__head { padding-left: 18px; } .gdl-cat--sub .gdl-doc { padding-left: 18px; } }

/* icon tiles (same markup as the ER admin) */
.gdl-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 11px; color: #fff; background: #6b7280; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.gdl-ico svg { width: 26px; height: 26px; margin-top: -8px; }
.gdl-ico b { position: absolute; left: 0; right: 0; bottom: 6px; font: 800 9px/1 Arial, sans-serif; letter-spacing: .03em; text-align: center; }
@media (max-width: 600px) { .gdl-ico { width: 40px; height: 40px; border-radius: 9px; } .gdl-ico svg { width: 22px; height: 22px; margin-top: -7px; } .gdl-ico b { font-size: 8px; bottom: 5px; } }
.gdl-ico--pdf { background: #d93025; } .gdl-ico--word { background: #2b579a; } .gdl-ico--excel { background: #217346; }
.gdl-ico--powerpoint { background: #d24726; } .gdl-ico--image { background: #7c3aed; } .gdl-ico--archive { background: #b45309; }
.gdl-ico--video { background: #db2777; } .gdl-ico--audio { background: #0e7490; } .gdl-ico--text { background: #4b5563; }
.gdl-ico--code { background: #4f46e5; } .gdl-ico--file { background: #6b7280; }

/* search states */
.gdl__none { padding: 36px 20px; text-align: center; color: var(--gdl-muted); font-size: 16px; background: var(--gdl-soft); border-radius: 14px; }
.gdl__none[hidden] { display: none; }
.gdl-cat[hidden] { display: none; }
.gdl.is-searching .gdl-cat__chev { opacity: .5; }
.gdl-doc mark { background: #fff2b3; color: inherit; padding: 0 1px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .gdl-cat__chev { transition: none; } }
