/* Purpose: Display the three sandbox shields and direct links on the shared directory homepage. */
:root:not([data-view="sahara"]) {
  color: #242927; background: #f5f2eb; font: 16px/normal system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root:not([data-view="sahara"]) body { display: block; padding: 0; }
:root:not([data-view="sahara"]) main { display: block; margin: 0; }
[data-view="directory"] .sahara, [data-view="sahara"] .directory { display: none; }
.directory { display: block; max-width: 72rem; margin: auto; padding: clamp(2rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem); }
.directory header { padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.directory header a { font-size: 1rem; }
.directory h1 { margin: 0; font-family: inherit; font-weight: 700; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.05; letter-spacing: -.06em; }
.directory a { color: inherit; }
.directory a:focus-visible { outline: 3px solid #00696e; outline-offset: 5px; }
.directory .workspace { font-weight: 600; text-underline-offset: .25em; }
.directory nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem; margin-top: clamp(2rem, 5vw, 4rem); }
.sandbox { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; padding: clamp(1.4rem, 4vw, 3rem) 1rem; border: 1px solid #d5cfc2;
  border-radius: .75rem; background: #fffdfa; text-align: center; text-decoration: none; }
.sandbox img { display: block; width: min(11rem, 100%); height: auto; }
.sandbox span { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 650; }
.sandbox:hover, .sandbox:focus-visible { background: white; border-color: #726d61; }
.sandbox:hover span, .sandbox:focus-visible span { text-decoration: underline; text-underline-offset: .25em; }
/* Give the native no-script postcard its own page margins beneath the directory. */
:root:not([data-view]) .sahara { margin-inline: 5vw; }
:root:not([data-view]) header.sahara { padding-block: 1rem; }
