/* Glue for the shipped app. derlan.css is the design system, kept identical
   to docs/ui/derlan.css. This file adds no colour and no token: it loads
   the fonts from this origin, wires existing tokens, and holds the few
   layout values that the mockups write inline but that a media query
   has to change between the desktop and the phone mockup. */

/* Fonts: variable files, self-hosted. The family names match --sans and
   --mono in derlan.css. Licences sit next to the files. */
@font-face{font-family:"Instrument Sans";font-style:normal;font-display:swap;font-weight:400 700;
  src:url(fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Sans";font-style:normal;font-display:swap;font-weight:400 700;
  src:url(fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-display:swap;font-weight:100 800;
  src:url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-display:swap;font-weight:100 800;
  src:url(fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* The page fills the window so the status line sits at the bottom. */
html,body{height:100%}
body{margin:0}
.page{min-height:100%}

/* The scope's hue. derlan.css reads --scope in the top bar and the scope
   chip. Private is named too, because the boundary page shows one scope's
   hue inside a page that belongs to another. */
[data-hue="private"]{--scope:var(--scope-private)}
[data-hue="work"]{--scope:var(--scope-work)}
[data-hue="guest"]{--scope:var(--scope-guest)}

/* In a keyboard list, the ⏎ hint shows on the selected row only. */
[data-nav] a.row:not(.sel) [data-sel-only]{visibility:hidden}

/* A real text field inside a .input box. The mockups draw the box as a
   label; the field takes the box's look, and the box shows the focus
   ring, with the same outline derlan.css gives .focus. */
.d .input input{flex:1 1 0;min-width:0;border:0;padding:0;background:transparent;font:inherit;color:var(--text);outline:0}
.d .input input::placeholder{color:var(--text-3);opacity:1}
.input:focus-within{outline:2px solid var(--accent);outline-offset:2px}

/* The Tasks page's columns, bands and the capture box: Tasks.dc.html's
   values. */
.side{flex:1 1 200px;max-width:240px;display:flex;flex-direction:column;gap:20px}
.main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:24px}
.band{display:flex;flex-direction:column;gap:8px}
.band-h{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.two{display:flex;flex-direction:column;min-width:200px}
.capture{height:44px;font-size:15px}

/* The top bar's search box: the mockups' .palette button, made a field
   the way .input holds one. */
.palette input{border:0;padding:0;background:transparent;font:inherit;color:var(--text);outline:0}
.palette input::placeholder{color:var(--text-3);opacity:1}
.palette:focus-within{outline:2px solid var(--accent);outline-offset:2px}

/* A text area in the .input box. The design has none, so this is .input
   grown to fit, with its own values and spacing tokens only. */
.input.area{height:auto;align-items:flex-start;padding-top:var(--s2);padding-bottom:var(--s2)}
.d .input textarea{flex:1 1 0;min-width:0;border:0;padding:0;background:transparent;font:inherit;color:var(--text);outline:0;resize:vertical}
.d .input textarea::placeholder{color:var(--text-3);opacity:1}

/* Markdown the owner wrote or accepted, rendered by goldmark. Only
   tokens and values from derlan.css. */
.md>*{margin:0}
.md>*+*{margin-top:var(--s2)}
.md h1,.md h2,.md h3,.md h4,.md h5,.md h6{font-size:var(--t-lg);line-height:1.3;font-weight:600}
.md ul,.md ol{padding-left:var(--s5)}
.md code{font-family:var(--mono)}
.md pre{background:var(--raised);border:1px solid var(--line);border-radius:var(--r2);padding:var(--s2) var(--s3);overflow-x:auto}
.md table{border-collapse:collapse;display:block;overflow-x:auto}
.md th,.md td{border-bottom:1px solid var(--line);padding:var(--s1) var(--s3) var(--s1) 0;text-align:left}
.md th{font-weight:600}
.md blockquote{border-left:2px solid var(--line-2);padding-left:var(--s3);color:var(--text-2)}

/* The phone's tab bar. Off on a desktop, where the top bar's nav holds
   the same links. */
.tabs{display:none}

/* Phone: CatalogMobile.dc.html's values. Capture comes first and is big
   enough that the phone does not zoom in on it; the project list follows
   the tasks. */
@media (max-width:700px){
  .d{font-size:15px}
  .topbar{gap:8px;padding:10px 16px;border-top-width:3px}
  .topbar .scope{height:44px}
  .body{padding:16px}
  .main{gap:18px}
  .side{max-width:none;order:1}
  .capture{height:52px;font-size:16px}
  .capture .lands{display:none}

  /* There are no keys on a phone: nothing that only names one is shown. */
  .topbar .nav,.topbar .palette,.statusline,.keyhint,.scope .kbd,.input .kbd,.btn .kbd,.row .kbd{display:none}

  /* The tab bar stays at the bottom of the screen however long the page. */
  .tabs{display:flex;position:sticky;bottom:0;margin-top:auto;padding-bottom:8px;border-top:1px solid var(--line);background:var(--surface)}
  .tabs a{flex:1 1 0;min-height:52px;display:flex;align-items:center;justify-content:center;color:var(--text-2);text-decoration:none}
  .tabs a.on{margin-top:-1px;border-top:2px solid var(--accent);color:var(--text);font-weight:600}

  /* A task row is two lines: its number and title, then where it is
     filed, its state and its age. On one line the title has no room.
     The title's width leaves the first line to the number (44px) and
     the gap beside it, so everything after wraps. */
  .main a.row{flex-wrap:wrap;row-gap:var(--s1);min-height:52px;padding:12px}
  .main a.row .cur{display:none}
  .main a.row .clip{flex-basis:calc(100% - 44px - var(--s3))}
  .main a.row>:last-child{margin-left:auto}
}

/* A select's open list is drawn by the browser, in its own colours
   unless told: here, the theme's surface and text, so the options read
   in the dark theme as in the light. */
.input select option { background: var(--raised); color: var(--text); }
