/* Thornhill Corporation — Document links: full-screen document, like a PDF opened in the browser */
body.viewing { margin: 0; overflow: hidden; background: #525659; }
.doc-frame { position: fixed; inset: 0; background: #525659; }
.doc-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #525659; }
.doc-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #e8eaed; font-family: var(--font-body); text-align: center; padding: 24px; }
.doc-loading p { margin: 0; color: #e8eaed; }
.doc-loading a { color: #8ab4f8; font-weight: 700; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #8ab4f8; animation: spin .8s linear infinite; }

/* Public documents page */
.docs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; padding-bottom: 110px; }
.pub-doc { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.pub-doc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-lg); }
.pub-doc .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .78rem; }
.pub-doc .ic svg { width: 22px; height: 22px; }
.pub-doc .ic.google { background: var(--accent-soft); color: var(--accent); }
.pub-doc .ic.pdf { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.pub-doc h3 { font-size: 1.15rem; margin: 0; overflow-wrap: anywhere; }
.pub-doc p { margin: 0; font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pub-doc .go { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.pub-doc .go svg { width: 16px; height: 16px; transition: transform .2s; }
.pub-doc:hover .go svg { transform: translateX(4px); }
.docs-tools { display: flex; gap: 12px; margin-bottom: 24px; }
.docs-tools .search { flex: 1; max-width: 420px; position: relative; }
.docs-tools .search input { padding-left: 42px; border-radius: 999px; background: var(--surface); }
.docs-tools .search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-3); }
.docs-list .empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.docs-list .empty-state strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 4px; }

.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; }
