/* Home and catalog layout for every journal. Fonts, colors, and photos stay with the skin. */
body.journal-surface.skin-housecat { --journal-ink: #2c2838; --journal-accent: #4c4560; --journal-gold: #e4c56a; --journal-paper: #f7f4ef; }
body.journal-surface.skin-big-dog { --journal-ink: #3b2416; --journal-accent: #6b3a1f; --journal-gold: #e1b84c; --journal-paper: #f6f1e8; }
body.journal-surface.skin-soil-season { --journal-ink: #2f3a28; --journal-accent: #3f5c32; --journal-gold: #e1b84c; --journal-paper: #f6f3ea; }
body.journal-surface.skin-coffee { --journal-ink: #2a1812; --journal-accent: #6b3a2a; --journal-gold: #e1b84c; --journal-paper: #f6efe8; }
body.journal-surface.skin-backyard-bird { --journal-ink: #14382d; --journal-accent: #276446; --journal-gold: #e9bd55; --journal-paper: #f3f7f2; }
body.journal-surface.skin-walking-shoe { --journal-ink: #183042; --journal-accent: #215a40; --journal-gold: #e1b84c; --journal-paper: #f7f7eb; }

body.journal-surface header {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: center !important;
  padding: 22px 28px 8px !important;
  background: transparent !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
body.journal-surface header strong {
  display: block !important;
  font-size: 29px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  white-space: normal !important;
  height: auto !important;
  overflow: visible !important;
  width: auto !important;
  max-width: none !important;
  transform: none !important;
}
body.journal-surface header nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px 16px !important;
  margin: 0 !important;
  height: auto !important;
  min-width: 0 !important;
  overflow: visible !important;
}
body.journal-surface header nav a {
  white-space: nowrap !important;
  padding: 0 !important;
}
body.journal-surface .site-subtitle {
  font-size: 18px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  max-width: 85ch !important;
  height: auto !important;
  overflow: visible !important;
}
body.journal-surface header > .site-subtitle { grid-column: 1 / -1 !important; }
body.journal-surface .mission-entry {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}
body.journal-surface .mission-entry .site-subtitle { flex: 1 1 16rem !important; grid-column: auto !important; }
body.journal-surface .factory-start {
  flex: none !important;
  animation: none !important;
  padding: 12px 24px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  border-radius: 999px !important;
  border: 2px solid #ffe783 !important;
  background: #f5cc37 !important;
  color: #172a35 !important;
}
body.journal-surface main,
body.journal-surface main#main {
  flex: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  background: transparent !important;
}
body.journal-surface main.launch-shell { padding: 0 !important; }
body.journal-surface .factory-entry {
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 26px 20px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
body.journal-surface .factory-entry > h1 {
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
}
body.journal-surface .factory-content-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: start !important;
  padding: 0 !important;
  border: 0 !important;
}
body.journal-surface .factory-content-column {
  background: var(--journal-paper, #f7f7eb) !important;
  color: var(--journal-ink, #183042) !important;
  border-top: 5px solid var(--journal-gold, #e1b84c) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  box-shadow: 0 10px 24px #102f2933 !important;
}
body.journal-surface .factory-content-column > h2 {
  font-size: 22px !important;
  line-height: 1.25 !important;
  margin: 0 0 14px !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  font-weight: 700 !important;
  color: var(--journal-ink, #183042) !important;
  transform: none !important;
}
body.journal-surface .factory-content-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.journal-surface .factory-content-card img {
  width: 100% !important;
  height: 165px !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 9px !important;
  display: block !important;
  margin: 0 !important;
}
body.journal-surface .factory-content-card p {
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 10px 0 !important;
  max-width: none !important;
  color: var(--journal-ink, #183042) !important;
}
body.journal-surface .factory-content-card .card-title {
  font-weight: 700 !important;
  margin: 10px 0 0 !important;
}
body.journal-surface .factory-content-card .card-excerpt {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  overflow: hidden !important;
  min-height: calc(1.6em * 2) !important;
  max-height: calc(1.6em * 3) !important;
  margin: 8px 0 10px !important;
}
body.journal-surface .factory-content-card > a:last-child {
  margin-top: auto !important;
}
body.journal-surface .journal-publication-date {
  font-size: 12px !important;
  line-height: 1.4 !important;
  margin: 0 0 10px !important;
  padding: 5px 10px !important;
  border-radius: 6px !important;
  width: fit-content !important;
  background: #fff !important;
  color: #425a4d !important;
}
body.journal-surface .factory-content-column a { font-weight: 700 !important; color: var(--journal-accent, #215a40) !important; }
body.journal-surface .factory-archive-link {
  font-size: 14px !important;
  display: inline-block !important;
  margin-top: 16px !important;
}
body.journal-surface .hero-credit {
  align-self: flex-start !important;
  margin: 0 0 14px 24px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #fff !important;
  background: #102d23b3 !important;
}
body.journal-surface .journal-return {
  display: block !important;
  max-width: 760px !important;
  margin: 16px auto 0 !important;
  padding: 0 20px !important;
}
body.journal-surface .launch-content > h1 {
  font-size: clamp(30px, 4vw, 48px) !important;
  line-height: 1.15 !important;
  margin: 12px 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body.journal-surface .launch-content p,
body.journal-surface .launch-category-copy p,
body.journal-surface .launch-product-copy p,
body.journal-surface .launch-retailer-copy p { max-width: none !important; }
body.journal-surface .launch-categories,
body.journal-surface .launch-products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
body.journal-surface .launch-lifestyle { height: 230px !important; }
body.journal-surface .launch-lifestyle img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
body.journal-surface footer.aps-final-footer {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: auto 0 0 !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  background: #fffffff2 !important;
  color: #183042 !important;
  border-top: 1px solid #aebdb5 !important;
  width: auto !important;
  max-width: none !important;
}
body.journal-surface footer.aps-final-footer a,
body.journal-surface .aps-journal-trigger {
  color: #165c38 !important;
  text-decoration: underline !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
}

.visitor-notice {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: #08110ecc; padding: 24px;
}
.visitor-notice[hidden] { display: none !important; }
.visitor-notice-card {
  width: min(680px, 100%); background: #fff; color: #1a1a1a;
  border: 8px solid #c40000; padding: 40px 28px; text-align: center;
}
.visitor-notice-card h2 {
  margin: 0 0 18px; color: #c40000; background: #ffe1e1;
  font-size: clamp(40px, 6vw, 68px); font-weight: 800; line-height: 1.05;
  padding: 12px 16px; animation: visitor-flash 0.9s steps(1, end) infinite;
}
.visitor-notice-card p { margin: 0 0 28px; font-size: 26px; line-height: 1.35; color: #1a1a1a; max-width: none; }
.visitor-notice-card button {
  background: #17354d; color: #fff; border: 0; border-radius: 8px;
  padding: 12px 28px; font: 700 18px/1.2 Inter, sans-serif; cursor: pointer;
}
@keyframes visitor-flash {
  0%, 49% { color: #c40000; background: #ffe1e1; }
  50%, 100% { color: #fff; background: #c40000; }
}
@media (prefers-reduced-motion: reduce) {
  .visitor-notice-card h2 { animation: none; }
}

@media (max-width: 900px) {
  body.journal-surface header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 6px !important;
    padding: 16px 16px 8px !important;
  }
  body.journal-surface header strong {
    display: block !important;
    box-sizing: border-box !important;
    font-size: 22px !important;
    line-height: 26px !important;
    height: 52px !important;
    overflow: hidden !important;
    white-space: normal !important;
  }
  body.journal-surface header nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    height: 24px !important;
    overflow: hidden !important;
  }
  body.journal-surface header nav a { font-size: 13px !important; line-height: 24px !important; padding: 0 !important; }
  body.journal-surface header .site-subtitle,
  body.journal-surface .mission-entry .site-subtitle {
    box-sizing: border-box !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 20px !important;
    height: 40px !important;
    overflow: hidden !important;
  }
}
@media (max-width: 700px) {
  body.journal-surface .factory-content-row,
  body.journal-surface .launch-categories,
  body.journal-surface .launch-products { grid-template-columns: 1fr !important; }
  body.journal-surface .factory-entry { padding: 24px 14px !important; }
  body.journal-surface .factory-entry > h1 { font-size: 25px !important; }
  body.journal-surface .factory-content-card img { height: 180px !important; }
  body.journal-surface footer.aps-final-footer {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
  }
  body.journal-surface .aps-footer-row { flex-wrap: wrap !important; white-space: normal !important; line-height: 1.6 !important; }
  body.journal-surface .aps-footer-copyright,
  body.journal-surface .aps-journal-trigger { white-space: normal !important; }
}
body.journal-surface .factory-size-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
body.journal-surface .factory-size-card {
  border: 1px solid #18304222;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
body.journal-surface .factory-size-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
body.journal-surface .factory-size-card dt { font-weight: 700; }
body.journal-surface .factory-size-card dd { margin: 0; }
