/* Group content through spacing and quiet surfaces rather than ruled boxes. */
.masthead-top,
.masthead-main,
.lang-switch,
.section-heading,
.about-section > .eyebrow,
.contact-section > .eyebrow,
.edition-digest,
.edition-digest a,
.work-card:nth-child(n+3),
.project-context,
.reading-grid article,
.principle,
.directory-group,
.directory-group:last-child,
.directory-grid a,
.contact-links > a,
.contact-method,
body > footer,
.social-links,
.nav-links,
.library-controls,
.resource,
.origin,
.library-policy,
.shelf-note,
.shelf-note dl div {
  border: 0;
}

.masthead-top { padding-bottom: 8px; }
.masthead-main { padding-bottom: 12px; }
.lang-switch { padding-left: 8px; }
.text-link { text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.cover-art,
.work-visual { border-radius: 14px; }
.cover-tag { border-radius: 7px; }
.edition-digest img { border-radius: 9px; }

.cover-sidebar {
  background: #e9ecf5;
  color: var(--ink);
  border-radius: 18px;
}
.cover-sidebar .eyebrow,
.sidebar-intro,
.sidebar-links a > span,
.sidebar-links small { color: #5a6379; }
.sidebar-links a,
.sidebar-all { border: 0; }
.sidebar-links a { padding-inline: 8px; border-radius: 8px; }
.sidebar-links a:hover { background: #f4f5fa; color: var(--blue); }
.cover-sidebar a:hover { color: var(--blue); }
.cover-sidebar a:focus-visible { outline-color: var(--blue); }
.sidebar-all { color: var(--blue); }

.ui-dossier {
  border: 0;
  border-radius: 18px;
  background: #eeefe8;
}
.dossier-links a { border: 0; padding-inline: 9px; border-radius: 8px; }
.dossier-links a:hover { background: #f7f8f2; }
.project-context { padding-top: 7px; }
.edition-digest { padding-top: 10px; }
.section-heading { padding-top: 10px; }
.principles { column-gap: 36px; }
.directory-group summary { border-radius: 10px; padding-inline: 10px; }
.directory-group summary:hover { background: #eeede7; }
.directory-group[open] { padding-bottom: 12px; }
.directory-grid a { border-radius: 8px; padding-inline: 9px; }
.directory-grid a:hover { background: #eeede7; }
.contact-links > a,
.contact-method { padding-inline: 10px; }
.contact-links > a:hover { background: #eeede7; border-radius: 8px; }
.social-links { padding-top: 4px; }

/* Inputs and selected filters remain visibly identifiable without hard rules. */
.search-field { border: 0; background: #eeede7; border-radius: 10px; padding-inline: 15px; }
.search-label input { border: 0; background: #eeede7; border-radius: 10px; padding-inline: 15px; }
.filters button { border: 0; border-radius: 8px; padding-inline: 13px; }
.filters button[aria-pressed=true] { background: #e7ebfa; color: #2445ba; }
.menu-button { border: 0; background: #eeede7; border-radius: 8px; }
.shelf-note { padding-left: 24px; }
.origin { padding-left: 0; }
.reuse { border-radius: 10px; }
.resource-grid { row-gap: 8px; }

@media (max-width: 760px) {
  .edition-digest a { border: 0; }
  .reading-grid article { border: 0; }
  .shelf-note { padding-left: 0; }
  .nav-links { border: 0; }
  .cover-art, .work-visual { border-radius: 12px; }
  .ui-dossier, .cover-sidebar { border-radius: 14px; }
}
