/* desk-page.css: the prose pages of the research desk (/desktop, /validation).

   The register (/research) and the catalogue (/articles) set the house
   typography: Cormorant Garamond for the display, the desk's warm text
   tokens, hairlines that read as paper stock, emerald for the one live
   colour. A prose page that extends the public shell used to fall back to
   the shell's cold defaults and a bold sans title (the /desktop page, founder
   2026-09-06: "out of styling"). These rules are the register's own,
   lifted so a page that wears .research-desk reads as the same room.
   Load AFTER research-desk.css; every colour here is a desk token. */

.dp-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 48px 96px; }

.dp-crumbs { font-size: .72rem; letter-spacing: .04em; color: var(--text-tertiary);
             margin: 0 0 22px; }
.dp-crumbs a { color: var(--text-tertiary); text-decoration: none; }
.dp-crumbs a:hover { color: #3fae7f; }
.dp-crumbs span { margin: 0 8px; opacity: .6; }

.dp-h1 { font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
         font-size: 3.05rem; font-weight: 600; color: var(--paper-cream, #fbfaf6);
         line-height: 1.1; margin: 0 0 16px; text-wrap: balance; }
.dp-lede { font-size: 1.06rem; line-height: 1.66; color: var(--text-secondary);
           margin: 0 0 34px; max-width: 66ch; }
.dp-lede b, .dp-lede strong { color: var(--text-primary); font-weight: 600; }

.dp-wrap a { color: #3fae7f; text-decoration: underline; text-underline-offset: 3px;
             text-decoration-color: rgba(63,174,127,.4); }
.dp-wrap a:hover { text-decoration-color: #3fae7f; }

/* a section is a band: small-caps eyebrow, the display face, a rule */
.dp-section { margin-top: 54px; scroll-margin-top: 24px; }
.dp-section:first-of-type { margin-top: 26px; }
.dp-sechead { border-bottom: 1px solid var(--border-primary); padding-bottom: 14px; margin-bottom: 18px; }
.dp-eyebrow { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
              color: var(--text-tertiary); margin: 0 0 6px; }
.dp-h2 { font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
         font-size: 1.9rem; font-weight: 600; color: var(--paper-cream, #fbfaf6);
         line-height: 1.15; margin: 0; }

.dp-p { font-size: .98rem; line-height: 1.66; color: var(--text-secondary);
        margin: 0 0 14px; max-width: 68ch; }
.dp-p b, .dp-p strong { color: var(--text-primary); font-weight: 600; }
.dp-p code, .dp-wrap code { font-size: .88em; color: var(--text-primary);
                            background: rgba(255,255,255,.04); padding: 1px 5px; border-radius: 4px; }

/* one line of a ledger: the term, then what it means */
.dp-rows { margin: 4px 0 0; }
.dp-row { display: grid; grid-template-columns: 17rem minmax(0, 1fr); column-gap: 24px;
          padding: 13px 2px; border-bottom: 1px solid var(--border-primary); }
.dp-term { font-size: .97rem; font-weight: 500; color: var(--text-primary); line-height: 1.4; }
.dp-desc { font-size: .92rem; line-height: 1.6; color: var(--text-secondary); max-width: 68ch; }

/* a table on the desk: hairlines, no box */
.dp-table-wrap { overflow-x: auto; margin: 6px 0 4px; }
.dp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dp-table th, .dp-table td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0;
                             border-bottom: 1px solid var(--border-primary); color: var(--text-secondary); line-height: 1.5; }
.dp-table th { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.dp-table td.k { font-weight: 500; color: var(--text-primary); white-space: nowrap; }

/* the one action on the page */
.dp-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 0 6px; }
.dp-btn { display: inline-block; padding: 11px 20px; border-radius: 6px; background: #3fae7f;
          color: #06110c !important; font-weight: 600; font-size: .95rem; text-decoration: none !important;
          border: 0; cursor: pointer; transition: transform .2s; }
.dp-btn:hover { transform: translateY(-1px); }
.dp-btn:disabled { opacity: .6; cursor: default; transform: none; }
.dp-meta { color: var(--text-tertiary); font-size: .86rem; line-height: 1.5; }

.dp-note { border-left: 2px solid #c9a227; padding: 8px 14px; margin: 16px 0;
           color: var(--text-secondary); font-size: .9rem; line-height: 1.55; max-width: 68ch; }

.dp-wrap pre { background: rgba(0,0,0,.28); border: 1px solid var(--border-primary); border-radius: 6px;
               padding: 12px 14px; overflow-x: auto; font-size: .82rem; line-height: 1.5;
               color: var(--text-secondary); margin: 8px 0 14px; }
.dp-wrap details { margin: 10px 0 6px; }
.dp-wrap summary { cursor: pointer; color: var(--text-secondary); font-size: .92rem; }
.dp-wrap summary:hover { color: #3fae7f; }

/* the contact form, in the register's own input language */
.dp-form { max-width: 68ch; margin-top: 8px; }
.dp-field { margin: 0 0 16px; }
.dp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.dp-label { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
            color: var(--text-tertiary); margin: 0 0 6px; }
.dp-input, .dp-select, .dp-textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: .93rem; color: var(--text-primary);
  background: rgba(255,255,255,.03); border: 1px solid var(--border-primary); border-radius: 8px;
  outline: none; transition: border-color .14s ease; }
.dp-input::placeholder, .dp-textarea::placeholder { color: var(--text-tertiary); }
.dp-input:focus, .dp-select:focus, .dp-textarea:focus { border-color: #3fae7f; }
.dp-select { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239C968A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.dp-select option { background: #14181f; color: #F2EFE8; }
.dp-textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.dp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dp-fine { font-size: .8rem; color: var(--text-tertiary); line-height: 1.55; margin: 6px 0 14px; max-width: 68ch; }
.dp-msg { font-size: .92rem; line-height: 1.55; margin: 14px 0 0; }
.dp-msg.bad { color: #f0a4a0; }
.dp-msg.ok { color: #7fd6ab; }
.dp-received { border: 1px solid var(--border-primary); border-radius: 8px; padding: 18px 20px; max-width: 68ch; }
.dp-received h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; font-weight: 600;
                  color: var(--paper-cream, #fbfaf6); margin: 0 0 8px; }
.dp-sig { margin-top: 26px; color: var(--text-tertiary); font-size: .9rem; }

@media (max-width: 760px) {
  .dp-wrap { padding: 28px 20px 72px; }
  .dp-h1 { font-size: 2.3rem; }
  .dp-row { grid-template-columns: 1fr; row-gap: 4px; }
  .dp-grid2 { grid-template-columns: 1fr; }
}
