.site-nav .desktop-links { display: none; }
#siteMessagesLink[hidden] { display: none; }
.library-home .top-nav > a { white-space: nowrap; }
.library-home .site-menu-panel .menu-group { border-top: 1px solid #e5e9e3; }
.library-home .site-menu-panel .menu-group > summary { font-weight: 700; }
.library-home .site-menu-panel .menu-group a { display: block; padding-left: 25px; }
.library-home .content-section { scroll-margin-top: 24px; margin-top: 70px; border-top: 1px solid #cdd3cb; padding-top: 38px; }
.library-home .content-section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 15px; }
.library-home .content-section p { color: #546766; line-height: 1.65; max-width: 760px; }
.library-home .content-section .section-card { background: #fff; border: 1px solid #e1e4dc; padding: 24px; }
.library-home .content-section .contact-link { display: inline-block; margin-top: 8px; padding: 12px 18px; background: #173735; color: #fff; text-decoration: none; font-weight: 700; }
.library-home .content-section .contact-link:hover { background: #a77642; }
.library-home .contact-form { display: grid; gap: 9px; max-width: 620px; }
.library-home .contact-form label { margin-top: 8px; font-weight: 700; color: #25433d; }
.library-home .contact-form input, .library-home .contact-form textarea { width: 100%; border: 1px solid #b8c6bc; border-radius: 0; padding: 11px 12px; font: inherit; color: #173033; background: #fff; }
.library-home .contact-form textarea { resize: vertical; }
.library-home .contact-form button { border: 0; cursor: pointer; justify-self: start; }
.library-home .contact-form button:disabled { opacity: .65; cursor: wait; }
.library-home .contact-form #contactStatus { margin: 4px 0 0; min-height: 1.5em; }
.account-overlay { width: min(1180px, calc(100vw - 28px)); height: min(92vh, 950px); max-width: none; max-height: none; padding: 0; border: 0; background: #f6f3eb; box-shadow: 0 24px 70px #061a1a88; }
.account-overlay::backdrop { background: #071b1bb8; }
.account-overlay-bar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 8px 16px; background: #122829; color: white; }
.account-overlay-bar strong { font: 600 1.2rem 'Playfair Display', serif; }
.account-overlay-bar button { min-width: 42px; min-height: 42px; border: 1px solid #a6bbb2; background: transparent; color: white; font-size: 1.5rem; cursor: pointer; }
.account-overlay iframe { display: block; width: 100%; height: calc(100% - 56px); border: 0; }
.embedded-account header .brand, .embedded-account header .return { display: none; }
.embedded-account header { position: static; min-height: 55px; padding-block: 6px; }
.site-message { margin: 18px 0; padding: 20px; background: #fff; border: 1px solid #dce2da; }
.site-message h2 { margin-top: 0; }
.site-message p { margin: 8px 0; }
.site-message small { color: #61716e; }
.site-message .site-message-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; margin: 18px 0; }
.site-message button { padding: 9px 14px; border: 1px solid #173735; background: #173735; color: #fff; cursor: pointer; }
.site-message button + button { margin-left: 8px; }
.site-message .site-message-delete { background: #fff; color: #173735; }
@media (max-width: 1024px) {
  .account-overlay { width: 100vw; height: 100dvh; max-height: none; margin: 0; }
  .embedded-account .layout { grid-template-columns: 1fr; }
}

@media (min-width: 1025px) {
  .embedded-account header { display: none; }
  .embedded-account main { max-width: none; }
  .site-nav .desktop-links { display: flex; }
  .site-nav .site-menu { display: none; }

  .account-page main { max-width: 1240px; }
  .account-page header { padding-inline: max(20px, calc((100vw - 1240px) / 2)); }
  .account-page .layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .account-page.account-ready #signedIn {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
  }
  .account-page.account-ready .header-menu-button { display: none; }
  .account-page.account-ready .profile-drawer {
    position: sticky;
    top: 118px;
    align-self: start;
    width: auto;
    max-height: calc(100dvh - 134px);
    padding: 0 20px 0 0;
    box-shadow: none;
    border-right: 1px solid #dce2da;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .account-page.account-ready .profile-drawer .drawer-top { display: none; }
  .account-page.account-ready .profile-content { min-width: 0; padding-top: 0; }
}
