/* Shared shell styles for the Vue article pages and the server-rendered article HTML. */
@font-face {
  font-family: 'GatherQuill MDI';
  src: url('/assets/materialdesignicons-webfont-Dp5v-WZN.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #172033;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background: #f5f7fb;
}

.app-header {
  height: 72px;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-container {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  align-items: center;
  margin: 0 auto;
  padding: 0 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #172033;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: contain;
}

.brand-name {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.article-header-spacer {
  flex: 1;
}

.article-shell-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.article-shell-nav > a,
.article-shell-nav > .v-btn:not(.chrome-store-button) {
  display: inline-flex;
  min-width: 64px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #273244;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.0071428571em;
  line-height: normal;
  text-indent: 0.0071428571em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.article-shell-nav > a:hover,
.article-shell-nav > .v-btn:not(.chrome-store-button):hover {
  background: rgba(23, 32, 51, 0.06);
}

/* These three links are all active RouterLinks on the home route. Keep their
   active surface when the same navigation is rendered on an article page. */
.article-shell-nav > a[href$="/#features"],
.article-shell-nav > a[href$="/#workflow"],
.article-shell-nav > a[href$="/#screenshots"],
.article-shell-nav > .v-btn[href$="/#features"],
.article-shell-nav > .v-btn[href$="/#workflow"],
.article-shell-nav > .v-btn[href$="/#screenshots"] {
  background: rgba(23, 32, 51, 0.12);
}

.chrome-store-button {
  background: #2563eb !important;
  margin-left: 6px;
  color: #fff !important;
  text-transform: none;
  letter-spacing: 0;
}

.chrome-store-button .v-btn__content,
.chrome-store-button .v-icon {
  color: #fff !important;
}

.chrome-store-link {
  display: inline-flex;
  flex-shrink: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-indent: 0.0071428571em;
  text-decoration: none;
  white-space: nowrap;
}

.chrome-store-link::before {
  content: '\F02AF';
  display: inline-block;
  flex: none;
  width: 20.57px;
  margin-left: -4px;
  margin-right: 8px;
  font-family: 'GatherQuill MDI';
  font-size: 20.57px;
  line-height: 1;
}

.article-shell-nav > a:not(.v-btn)[href$="/login"]::before {
  content: '\F0013';
  display: inline-block;
  flex: none;
  width: 20.57px;
  margin-left: -4px;
  margin-right: 8px;
  font-family: 'GatherQuill MDI';
  font-size: 20.57px;
  line-height: 1;
}

.article-mobile-menu {
  display: none;
}

.public-article-page {
  min-height: 100vh;
  padding: 82px 10px 10px;
  background: #fff;
  color: #273244;
}

/* The standalone response keeps its header in document flow. In the Vue app,
   v-main starts under the app bar, so it keeps the 82px offset above. */
.app-header + .public-article-page {
  padding-top: 32px;
}

.article-content {
  width: min(760px, 100%);
  margin: 0 auto 100px;
  padding: 10px;
}

.article-content h1 {
  margin: 0 0 14px;
  color: #172033;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.article-content time {
  color: #7b8493;
  font-size: 14px;
}

.article-body {
  margin-top: 38px;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.article-body a {
  color: #2563eb;
}

.article-body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid #93b4f8;
  background: #f5f8ff;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.article-message {
  padding: 48px 20px;
  color: #667085;
  text-align: center;
}

.app-footer {
  border-top: 1px solid rgba(23, 32, 51, 0.08);
  background: #fff;
  padding: 24px 16px 16px;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #172033;
  font-size: 18px;
  text-decoration: none;
}

.footer-icon {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
}

.footer-description {
  margin: 4px 0 0;
  color: #64748b;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: #475569;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  color: #2563eb;
}

.footer-divider {
  height: 1px;
  margin: 12px 0;
  background: #e5e7eb;
}

.copyright {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 959px) {
  .article-shell-nav {
    display: none;
  }

  .article-mobile-menu {
    display: block;
    margin-left: auto;
  }

  .chrome-store-link {
    display: none;
  }

  .article-mobile-menu summary {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    cursor: pointer;
    list-style: none;
    color: #273244;
    font-size: 24px;
  }

  .article-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .article-mobile-menu nav {
    position: absolute;
    z-index: 10;
    top: calc(100% - 4px);
    right: 16px;
    display: grid;
    min-width: 240px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  }

  .article-mobile-menu nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    color: #273244;
    text-decoration: none;
  }
}

@media (max-width: 600px) {
  .article-mobile-menu summary {
    width: 44px;
    height: 44px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 19px;
  }

  .public-article-page {
    min-height: 0;
    padding: 28px 12px 32px;
  }

  .article-content {
    margin: 0 auto 48px;
    padding: 8px;
  }

  .article-content h1 {
    font-size: clamp(29px, 8.5vw, 40px);
    overflow-wrap: anywhere;
  }

  .article-content time {
    font-size: 12px;
  }

  .article-body {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.75;
  }

  .article-body h2 {
    font-size: 24px;
    line-height: 1.3;
  }

  .article-body img,
  .article-body video,
  .article-body iframe {
    max-width: 100%;
    height: auto;
  }

  .article-body pre {
    max-width: 100%;
    overflow-x: auto;
  }

  .article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .article-body blockquote {
    margin: 16px 0;
    padding: 10px 12px;
  }

  .article-message {
    padding: 56px 12px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
