/* sn-archive-page (mu-plugin): /archive/ index and small additions to the year pages. Values match sn-issue-page/issue-page.css. */
.sn-ap { color: #444; }
.sn-ap h2.sn-ap-title { font-size: 26px; line-height: 1.3; margin: 0 0 4px; }
.sn-ap-welcome { margin: 8px 0 0; }
.sn-ap-welcome p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: #333; }
.sn-ap-welcome p.sn-ap-sign { margin-top: -4px; font-family: 'Roboto Slab', serif; font-size: 16px; color: #222; }
.sn-ap-intro { margin: 0 0 20px; font-size: 14px; color: #666; }
.sn-ap h3.sn-ap-h { clear: both; font-size: 18px; margin: 28px 0 14px; padding-bottom: 6px; border-bottom: 1px solid #ddd; }
.sn-ap h3.sn-ap-h a { color: inherit; }

/* Latest issue: cover left, summary right, as on an issue page. */
.sn-ap-latest:after { content: ""; display: table; clear: both; }
.sn-ap-cover { float: left; width: 38%; }
.sn-ap-cover img, .sn-ap-card img { display: block; width: 100%; height: auto; box-sizing: border-box; border: 3px solid #fff; box-shadow: 0 0 5px 1px rgba(34,34,34,.1); }
.sn-ap-caption { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #666; }
.sn-ap-summary { float: right; width: 58%; }
.sn-ap-summary h3.sn-ap-name { font-size: 24px; line-height: 1.25; margin: 0 0 4px; }
.sn-ap-summary h3.sn-ap-name a { color: #222; text-decoration: none; }
.sn-ap-summary h3.sn-ap-name a:hover { color: #3B5998; }
.sn-ap-meta { margin: 0 0 14px; font-size: 13px; color: #666; }

.sn-ap-buy { border: 1px solid #ddd; margin: 0 0 18px; }
.sn-ap-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 14px; }
.sn-ap-offer + .sn-ap-offer { border-top: 1px solid #ddd; }
.sn-ap-offer-text { flex: 1 1 200px; margin: 0; font-size: 14px; line-height: 1.45; }
.sn-ap-offer-text b { font-family: 'Roboto Slab', serif; font-size: 16px; color: #222; }
.sn-ap-offer .sn-ap-price { margin: 0; font-size: 18px; font-weight: bold; color: #222; white-space: nowrap; }
.sn-ap-offer .sn-ap-price small { font-size: 13px; font-weight: normal; color: #666; }
.sn-ap-offer form.cart { margin: 0; }
.sn-ap a.sn-ap-solid, .sn-ap button.sn-ap-solid, .sn-ap a.sn-ap-outline { display: inline-block; font-family: Arial, sans-serif; cursor: pointer; height: 28px; line-height: 28px; padding: 0 14px; font-size: 14px; font-weight: normal; text-decoration: none; border-radius: 0; box-sizing: border-box; white-space: nowrap; }
.sn-ap a.sn-ap-solid, .sn-ap button.sn-ap-solid { color: #fff; background: #222; border: none; }
.sn-ap a.sn-ap-solid:hover, .sn-ap button.sn-ap-solid:hover { background: #3B5998; color: #fff; }
.sn-ap a.sn-ap-outline { line-height: 26px; color: #222; background: #fff; border: 1px solid #222; }
.sn-ap a.sn-ap-outline:hover { background: #222; color: #fff; }
.sn-ap-login { margin: 0; padding: 8px 14px; font-size: 13px; color: #666; border-top: 1px solid #ddd; background: #fafafa; }

.sn-ap-contents h4 { margin: 12px 0 4px; font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; text-transform: uppercase; letter-spacing: .03em; color: #222; }
.sn-ap-contents h4:first-child { margin-top: 0; }
.sn-ap-contents ul { list-style: none; margin: 0; padding: 0; }
.sn-ap-contents li { margin: 0; padding: 3px 0; font-size: 14px; line-height: 1.4; }
.sn-ap-more { margin: 10px 0 0; font-size: 13px; }

/* Search every issue. */
.sn-ap-find p { margin: 0 0 8px; font-size: 14px; }
.sn-ap-find-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sn-ap-find input[type=search], .sn-ap-find select { height: 34px; margin: 0; padding: 0 8px; border: 1px solid #ccc; border-radius: 0; background: #fff; color: #222; font-size: 15px; font-family: Arial, sans-serif; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.sn-ap-find input[type=search] { flex: 1 1 220px; min-width: 0; }
.sn-ap-find select { flex: 0 0 auto; padding-right: 26px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23222'/%3E%3C/svg%3E") no-repeat right 9px center; }
.sn-ap-find button { flex: 0 0 auto; height: 34px; margin: 0; padding: 0 18px; border: none; border-radius: 0; background: #222; color: #fff; font-size: 14px; font-family: Arial, sans-serif; cursor: pointer; }
.sn-ap-find button:hover { background: #3B5998; }

/* Cover cards: recent issues, this month in earlier years, years. */
ul.sn-ap-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
ul.sn-ap-grid li { margin: 0; padding: 0; list-style: none; min-width: 0; }
.sn-ap-card a.sn-ap-card-link { display: block; color: #222; text-decoration: none; }
.sn-ap-card-name { display: block; margin: 8px 0 2px; font-family: 'Roboto Slab', serif; font-size: 16px; font-weight: normal; line-height: 1.3; color: #222; }
.sn-ap-card a.sn-ap-card-link:hover .sn-ap-card-name { color: #3B5998; }
.sn-ap-card-lead { display: block; font-size: 13px; line-height: 1.4; color: #555; overflow-wrap: break-word; }
ul.sn-ap-years { grid-template-columns: repeat(5, minmax(0, 1fr)); }
ul.sn-ap-years .sn-ap-card-name { font-size: 18px; }
/* Years: a small stack of covers, as on the old archive page (theme .archive_stack: two sheets turned 3 degrees). */
.sn-ap-stack { display: block; position: relative; z-index: 0; }
.sn-ap-stack:before, .sn-ap-stack:after { content: ""; position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box; background: #fff; border: 3px solid #fff; box-shadow: 1px 1px 4px rgba(0,0,0,.25); }
.sn-ap-stack:before { transform: rotate(-3deg); }
.sn-ap-stack:after { top: 3px; left: -2px; transform: rotate(3deg); }
.sn-ap-stack img { position: relative; box-shadow: 1px 1px 4px rgba(0,0,0,.25); }
ul.sn-ap-years { gap: 24px 22px; padding: 4px 4px 0; }
.sn-ap-caption .sn-credit { color: #444; }
.sn-ap-card-count { display: block; font-size: 13px; color: #666; }
.sn-ap-end { margin-top: 28px; }

/* Year pages. */
.sn-ap-yearbar { margin: 0 0 20px; }
.sn-ap-yearnav { margin: 0 0 12px; font-size: 14px; }
.sn-ap-yearnav a { white-space: nowrap; }
/* Names and cover stories run to different heights: each row of cards is as tall as its tallest card, and the
   button sits at the bottom of every card, so the buttons in a row line up (owner's request, 2026-11-22). */
#primary-left ul.products { display: flex; flex-wrap: wrap; align-items: stretch; column-gap: 1.6%; }
#primary-left ul.products:before, #primary-left ul.products:after { display: none; }
#primary-left ul.products li.product { display: flex; flex-direction: column; float: none; margin-right: 0; }
#primary-left ul.products li.product > a.woocommerce-LoopProduct-link { flex: 1 1 auto; }
#primary-left ul.products li.product > a.button { align-self: flex-start; float: none !important; margin-top: 6px; }
ul.products li.product .sn-ap-lead { display: block; margin: 0 0 6px; font-size: 13px; line-height: 1.4; color: #555; overflow-wrap: break-word; }

@media only screen and (max-width: 580px) {
	/* Phones: the site's own rule already spaces two cards with margins. */
	#primary-left ul.products { column-gap: 0; }
}
@media only screen and (max-width: 768px) {
	ul.sn-ap-years { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sn-ap a.sn-ap-solid, .sn-ap button.sn-ap-solid, .sn-ap a.sn-ap-outline { height: 40px; line-height: 40px; }
	.sn-ap a.sn-ap-outline { line-height: 38px; }
	.sn-ap-find input[type=search], .sn-ap-find select, .sn-ap-find button { height: 40px; font-size: 16px; }
}
/* Phones: name, cover, offers, then contents, so the price is on the first screen. */
@media only screen and (max-width: 580px) {
	.sn-ap h2.sn-ap-title { font-size: 22px; }
	.sn-ap-latest { display: flex; flex-direction: column; }
	.sn-ap-summary { display: contents; }
	.sn-ap-cover, .sn-ap-summary { float: none; width: auto; }
	.sn-ap-summary h3.sn-ap-name { order: 1; font-size: 21px; }
	.sn-ap-meta { order: 2; margin-bottom: 10px; }
	.sn-ap-cover { order: 3; width: 100%; max-width: 240px; margin: 0 auto 14px; }
	.sn-ap-buy { order: 4; }
	.sn-ap-contents { order: 5; }
	ul.sn-ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
	ul.sn-ap-years { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
	.sn-ap-find select { flex: 1 1 auto; }
}
@media only screen and (max-width: 360px) {
	.sn-ap-offer { padding: 10px; }
	.sn-ap-find button { flex: 1 1 100%; }
}
