/* sn-archive-page v2 (mu-plugin): the /archive/ index. Values from the approved design, archive-design/Main.dc.html
   (desktop) and Phone.dc.html (phones). Loaded only when v2 renders (v2.php). Buttons are sn-buttons' own
   (.sn-ap a.sn-ap-solid / .sn-ap-outline), resized here to the design's 36px (44px on phones). */

/* ---------- Page frame: no sidebar on the archive index (as lib/css/directory.css on the directory) ---------- */
body.sn-ap-v2 #sidebar { display: none; }
body.sn-ap-v2 #primary-left { width: 100% !important; float: none; margin-right: 0; position: relative; }
body.sn-ap-v2 #primary-left article,
body.sn-ap-v2 #primary-left .post-content { position: static; }
body.sn-ap-v2 #primary-left article .post-content { border-bottom: 0; }
body.sn-ap-v2 .breadcrumbs { margin: 0 0 14px; font-size: 14px !important; line-height: 21px !important; }

.sn-ap2 { font-size: 15px; line-height: 1.55; color: #333; }
.sn-ap2 a { color: #3B5998; }
.sn-ap2 a:hover { color: #222; }
.sn-ap2 ul, .sn-ap2 li { list-style: none; margin: 0; padding: 0; }
.sn-ap2 li:before, .sn-ap2 li:after { content: none; }
.sn-ap2 img { max-width: none; }

/* "In shops now": right of the breadcrumb row on desktop. */
.sn-ap2 p.sn-ap2-shops { margin: 0; font-size: 14px; line-height: 21px; color: #222; }
.sn-ap2-sep { color: #666; margin: 0 5px; }
/* Subscribers: a green tick, bold "Subscription active" and My account instead of the In shops line. */
.sn-ap2 p.sn-ap2-shops-sub { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.sn-ap2 p.sn-ap2-shops-sub b { font-weight: 700; }
.sn-ap2-sep-sub { margin: 0 3px; }
.sn-ap2-tick { flex: 0 0 auto; display: block; }
@media only screen and (min-width: 769px) {
	.sn-ap2 p.sn-ap2-shops { position: absolute; top: 0; right: 0; max-width: 60%; text-align: right; }
}

/* ---------- Welcome text and offer box ---------- */
.sn-ap2-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 56px; }
.sn-ap2-welcome { flex: 1 1 520px; max-width: 700px; min-width: 0; }
.sn-ap2 h2.sn-ap2-title { margin: 0 0 10px; font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 28px; line-height: 1.3; color: #222; }
.sn-ap2 .sn-ap2-words p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: #333; }
.sn-ap2 .sn-ap2-words p.sn-ap2-sign { margin: 0; font-family: 'Roboto Slab', serif; font-size: 16px; color: #222; }

.sn-ap2-offer { flex: 0 1 420px; min-width: 0; margin-top: 8px; border: 1px solid #ddd; }
.sn-ap2-offer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 14px 18px; }
.sn-ap2-offer-text { flex: 1 1 320px; min-width: 0; }
.sn-ap2 .sn-ap2-offer h2 { margin: 0 0 6px; font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 17px; line-height: 1.4; color: #222; }
.sn-ap2 .sn-ap2-offer h2.sn-ap2-active { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.sn-ap2 .sn-ap2-offer-text p { margin: 0; font-size: 14px; line-height: 1.5; color: #333; }
.sn-ap2-offer-buy { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sn-ap2 p.sn-ap2-price { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.55; color: #222; white-space: nowrap; }
.sn-ap2 p.sn-ap2-price span { font-size: 13px; font-weight: 400; color: #666; }
.sn-ap2-offer-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sn-ap2 a.sn-ap2-logout { font-size: 14px; }
.sn-ap2-offer-login { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 18px; border-top: 1px solid #ddd; background: #fafafa; }
.sn-ap2 .sn-ap2-offer-login p { margin: 0; font-size: 14px; color: #333; }
.sn-ap2-offer-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* The site's buttons (sn-buttons), at the design's sizes. "html body .sn-ap.sn-ap2" outranks sn-buttons' "html body .sn-ap". */
html body .sn-ap.sn-ap2 a.sn-ap-solid { min-height: 36px !important; padding: 0 18px !important; }
html body .sn-ap.sn-ap2 a.sn-ap-outline { min-height: 36px !important; padding: 0 14px !important; gap: 8px; }
html body .sn-ap.sn-ap2 a.sn-ap-outline svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---------- Year timeline ---------- */
.sn-ap2-tl { margin: 28px 0 0; }
.sn-ap2-p-year .sn-ap2-tl { margin-top: 0; }
.sn-ap2 .sn-ap2-yt:focus { outline: none; }

/* Two states of one component: the overview (/archive/) and the year view (class is-year). */
.sn-ap2.is-year .sn-ap2-ov, .sn-ap2:not(.is-year) .sn-ap2-yo { display: none !important; }
.sn-ap2 a.sn-ap2-back { font-size: 14px; }
/* The year view: every issue of the year, five across (three at 768px, two at 580px). */
.sn-ap2-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 18px; }
.sn-ap2-grid > li.sn-ap2-in { animation: sn-ap2-in .4s ease both; }
/* Subscribers' "Read issue" under each cover: the card is a column and the button sits at the bottom of the row. */
.sn-ap2-grid > li.sn-ap2-has-read { display: flex; flex-direction: column; }
.sn-ap2-grid > li.sn-ap2-has-read > a:first-child { margin-bottom: 10px; }
html body .sn-ap.sn-ap2 .sn-ap2-grid a.sn-ap2-read { margin-top: auto; align-self: flex-start; }
.sn-ap2-tl-bar { display: flex; align-items: flex-start; gap: 8px; }
.sn-ap2 button.sn-ap2-tl-end { flex: 0 0 36px; width: 36px; height: 40px; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: #222; cursor: pointer; box-shadow: none; }
.sn-ap2 button.sn-ap2-tl-end[hidden] { display: none; }
.sn-ap2 button.sn-ap2-tl-end:disabled { color: #bbb; cursor: default; }
.sn-ap2-tl-scroll { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.sn-ap2-tl-track { position: relative; min-width: 860px; min-width: max(860px, calc(var(--n) * 43px)); display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding-bottom: 18px; }
.sn-ap2-tl-line { position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: #ddd; }
.sn-ap2-tl-fill { position: absolute; left: 0; bottom: 8px; height: 2px; width: calc(100% * (var(--at) + .5) / var(--n)); background: #222; transition: width .45s cubic-bezier(.22,.9,.24,1); }
.sn-ap2-tl-marker { position: absolute; top: 0; height: 40px; left: calc(100% * var(--at) / var(--n)); width: calc(100% / var(--n)); background: #222; border-radius: 4px; transition: left .45s cubic-bezier(.22,.9,.24,1); }
.sn-ap2-tl-caret { position: absolute; top: 40px; left: calc(100% * (var(--at) + .5) / var(--n)); width: 0; height: 0; margin-left: -7px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 7px solid #222; transition: left .45s cubic-bezier(.22,.9,.24,1); }
.sn-ap2 a.sn-ap2-tl-year { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; font-size: 14px; line-height: 1; color: #333; text-decoration: none; transition: color .25s; }
.sn-ap2 a.sn-ap2-tl-year:hover { color: #3B5998; }
.sn-ap2 a.sn-ap2-tl-year[aria-current="true"], .sn-ap2 a.sn-ap2-tl-year[aria-current="true"]:hover { color: #fff; }
.sn-ap2 a.sn-ap2-tl-year:after { content: ""; position: absolute; left: 50%; top: 43px; width: 1px; height: 5px; background: #999; }
.sn-ap2 a.sn-ap2-tl-year:focus-visible, .sn-ap2 button:focus-visible, .sn-ap2-card a:focus-visible, .sn-ap2-years a:focus-visible { outline: 2px solid #3B5998; outline-offset: 2px; }
.sn-ap2 a.sn-ap2-tl-year:focus-visible { outline-offset: -2px; border-radius: 4px; }

/* Heading of the chosen year. */
.sn-ap2-yh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin: 14px 0 16px; padding-bottom: 7px; border-bottom: 1px solid #ddd; }
.sn-ap2 .sn-ap2-yh .sn-ap2-yt { margin: 0; font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 22px; line-height: 1.4; color: #222; }
.sn-ap2-ycount { margin-left: 8px; font-family: Arial, sans-serif; font-size: 14px; color: #666; } /* The site's body font (the design's Roboto stands in for it). */
.sn-ap2 a.sn-ap2-yall { font-size: 14px; }

/* ---------- Cover cards (year row and month row) ---------- */
.sn-ap2-card { min-width: 0; }
.sn-ap2-card > a { display: block; color: #222; text-decoration: none; }
.sn-ap2-card > a:hover { color: #222; }
.sn-ap2-cover { display: block; position: relative; }
.sn-ap2-cover img, .sn-ap2-noimg { display: block; width: 100%; height: auto; aspect-ratio: 300 / 424; box-sizing: border-box; border: 3px solid #fff; box-shadow: 0 0 5px 1px rgba(34,34,34,.14); }
.sn-ap2-noimg { background: #ececec; }
.sn-ap2-name { display: block; margin: 8px 0 2px; font-family: 'Roboto Slab', serif; font-size: 16px; line-height: 1.3; color: #222; }
.sn-ap2-card > a:hover .sn-ap2-name { color: #3B5998; }
.sn-ap2-lead { display: block; font-size: 13px; line-height: 1.4; color: #555; overflow-wrap: break-word; }
.sn-ap2-cards .sn-ap2-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
/* Month row and the year view: the cover story stops after three lines. */
.sn-ap2-month .sn-ap2-lead, .sn-ap2-grid .sn-ap2-lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Year row: five covers, then the "See all" tile. Without JS it scrolls sideways; with JS (desktop) it slides by five. */
.sn-ap2-row { position: relative; }
.sn-ap2-clip { margin: -6px; padding: 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 6px; }
.sn-ap2-cards { display: flex; gap: 18px; }
.sn-ap2-cards > li { flex: 0 0 calc((100% - 72px) / 5); scroll-snap-align: start; }
.sn-ap2-alltile > a { display: flex; align-items: center; justify-content: center; aspect-ratio: 300 / 424; box-sizing: border-box; padding: 18px; border: 1px solid #ccc; text-align: center; font-family: 'Roboto Slab', serif; font-size: 17px; line-height: 1.35; color: #222; }
.sn-ap2-alltile > a:hover { border-color: #222; color: #222; }
.sn-ap2-arw { position: absolute; top: 0; width: calc((100% - 72px) / 5); aspect-ratio: 300 / 424; pointer-events: none; }
.sn-ap2-arw[hidden] { display: none; }
.sn-ap2-arw-prev { left: 0; }
.sn-ap2-arw-next { right: 0; }
.sn-ap2 .sn-ap2-arw button { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 4px; background: #222; color: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.35); cursor: pointer; pointer-events: auto; }
.sn-ap2 .sn-ap2-arw button:hover { background: #444; }
.sn-ap2-arw-prev button { left: -16px; }
.sn-ap2-arw-next button { right: -16px; }
html body .sn-ap.sn-ap2 a.sn-ap2-yall-btn { display: none !important; }

/* Loading: five grey placeholders the size of a card, then the covers fade up one after another. */
@keyframes sn-ap2-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sn-ap2-pulse { 0% { opacity: 1; } 50% { opacity: .45; } 100% { opacity: 1; } }
.sn-ap2-cards > li.sn-ap2-in { animation: sn-ap2-in .4s ease both; }
.sn-ap2-sk > span { display: block; background: #ececec; animation: sn-ap2-pulse 1.1s ease-in-out infinite; }
.sn-ap2-sk > span:nth-child(1) { aspect-ratio: 300 / 424; }
.sn-ap2-sk > span:nth-child(2) { width: 70%; height: 16px; margin: 11px 0 6px; }
.sn-ap2-sk > span:nth-child(3) { width: 90%; height: 12px; margin: 0 0 22px; }

/* Dragging the marker along the years (mouse and pen, desktop; archive-v2.js). It follows the pointer at once. */
@media only screen and (min-width: 769px) {
	/* A hand on the marker (the chosen year), which is the part you drag; a pointer on every other year (owner, 2026-11-28). */
	.sn-ap2.sn-ap2-js .sn-ap2-tl-track, .sn-ap2.sn-ap2-js .sn-ap2-tl-track a.sn-ap2-tl-year { -webkit-user-select: none; user-select: none; }
	.sn-ap2.sn-ap2-js .sn-ap2-tl-track a.sn-ap2-tl-year { cursor: pointer; }
	.sn-ap2.sn-ap2-js .sn-ap2-tl-track a.sn-ap2-tl-year[aria-current="true"] { cursor: grab; }
	.sn-ap2.sn-ap2-js .sn-ap2-tl-track.is-drag, .sn-ap2.sn-ap2-js .sn-ap2-tl-track.is-drag a.sn-ap2-tl-year { cursor: grabbing; }
	.sn-ap2-tl-track.is-drag .sn-ap2-tl-marker, .sn-ap2-tl-track.is-drag .sn-ap2-tl-caret, .sn-ap2-tl-track.is-drag .sn-ap2-tl-fill, .sn-ap2-tl-track.is-drag a.sn-ap2-tl-year { transition: none; }
}
@media only screen and (min-width: 769px) {
	.sn-ap2.sn-ap2-js .sn-ap2-clip { overflow: hidden; scroll-snap-type: none; }
	.sn-ap2.sn-ap2-js .sn-ap2-cards { transform: translateX(calc(var(--off) * -1 * (100% + 18px) / 5)); transition: transform .5s cubic-bezier(.22,.9,.24,1); }
}

/* "<Month> in earlier years" and "Browse by year". */
.sn-ap2 h2.sn-ap2-h { margin: 30px 0 16px; padding-bottom: 7px; border-bottom: 1px solid #ddd; font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 19px; line-height: 1.4; color: #222; }
.sn-ap2-month { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 18px; }
.sn-ap2-ago { position: absolute; left: 3px; bottom: 3px; display: flex; align-items: baseline; gap: 6px; padding: 5px 10px 6px; background: #222; color: #fff; font-size: 13px; line-height: 1; }
.sn-ap2-ago-n { font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 26px; }
/* "In shops now" on the newest issue's cover: a red band along the bottom edge, inside the white border
   (#d2141b, the masthead red darkened for 4.5:1 with white text; owner, 2026-11-28). */
.sn-ap2-now { position: absolute; left: 3px; right: 3px; bottom: 3px; display: flex; align-items: center; justify-content: center; height: 30px; background: #d2141b; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; text-align: center; }
.sn-ap2 p.sn-ap2-shops b { font-weight: 700; }

/* Years: a square stack of two sheets stepped down-right behind the newest cover. */
.sn-ap2-years { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 18px; }
.sn-ap2 ul.sn-ap2-years { padding-top: 4px; }
.sn-ap2-years li { min-width: 0; }
.sn-ap2-years a { display: block; color: #222; text-decoration: none; }
.sn-ap2-years a:hover { color: #222; }
.sn-ap2-stack { display: block; position: relative; z-index: 0; margin: 0 22px 8px 14px; }
.sn-ap2-stack:before, .sn-ap2-stack:after { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 0; box-sizing: border-box; background: #fff; border: 1px solid #d9d9d9; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.sn-ap2-stack:before { transform: translate(8px, 8px); }
.sn-ap2-stack:after { transform: translate(4px, 4px); }
.sn-ap2-stack img, .sn-ap2-stack .sn-ap2-noimg { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 300 / 424; box-sizing: border-box; border: 3px solid #fff; box-shadow: 0 0 0 1px #d9d9d9, 0 1px 3px rgba(0,0,0,.18); }
.sn-ap2-yl { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 14px 0; }
.sn-ap2-yl-name { font-family: 'Roboto Slab', serif; font-size: 24px; line-height: 1.3; }
.sn-ap2-years a:hover .sn-ap2-yl-name { color: #3B5998; }
.sn-ap2-yl-count { font-size: 13px; color: #666; white-space: nowrap; }

/* ---------- Tablets and phones (the theme's 768px and 580px) ---------- */
@media only screen and (max-width: 768px) {
	body.sn-ap-v2 .breadcrumbs { margin-bottom: 12px; }
	.sn-ap2-top { display: block; }
	.sn-ap2-welcome { max-width: none; }
	.sn-ap2 h2.sn-ap2-title { font-size: 24px; }
	.sn-ap2-offer { margin-top: 20px; }
	.sn-ap2-offer-main { display: block; padding: 16px; }
	.sn-ap2 .sn-ap2-offer-text p { margin-bottom: 14px; }
	.sn-ap2-offer-buy { gap: 12px; }
	.sn-ap2-offer-acts { gap: 18px; }
	.sn-ap2-offer-login { display: block; padding: 14px 16px 16px; }
	.sn-ap2 .sn-ap2-offer-login p { margin: 0 0 10px; }
	.sn-ap2-offer-btns { flex-wrap: nowrap; }
	.sn-ap2-offer-btns a.sn-gl-link { flex: 1 1 auto; }
	html body .sn-ap.sn-ap2 a.sn-ap-solid { min-height: 44px !important; padding: 0 22px !important; font-size: 15px !important; }
	html body .sn-ap.sn-ap2 a.sn-ap-outline { min-height: 44px !important; padding: 0 16px !important; font-size: 15px !important; }
	html body .sn-ap.sn-ap2 .sn-ap2-offer-btns a.sn-gl-link { padding: 0 12px !important; }
	.sn-ap2 a.sn-ap2-logout { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
	.sn-ap2 p.sn-ap2-shops { margin: 16px 0 0; }
	.sn-ap2 p.sn-ap2-shops-sub { justify-content: flex-start; }

	/* Timeline: one row that scrolls sideways; no end arrows. */
	.sn-ap2-tl { margin-top: 20px; }
	.sn-ap2-p-year .sn-ap2-tl { margin-top: 16px; }
	.sn-ap2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
	.sn-ap2 button.sn-ap2-tl-end { display: none; }
	.sn-ap2-tl-scroll { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.sn-ap2-tl-scroll::-webkit-scrollbar { display: none; }
	.sn-ap2-tl-track { min-width: 0; width: calc(var(--n) * 64px); grid-template-columns: repeat(var(--n), 64px); }
	.sn-ap2 a.sn-ap2-tl-year { height: 44px; font-size: 15px; scroll-snap-align: start; }
	.sn-ap2-tl-marker { height: 44px; }
	.sn-ap2-tl-caret { top: 44px; }
	.sn-ap2 a.sn-ap2-tl-year:after { top: 47px; }
	.sn-ap2-tl-track { padding-bottom: 20px; }

	/* Year row and month row: native sideways swipe, three covers and a peek. */
	.sn-ap2-clip, .sn-ap2-month { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.sn-ap2-clip::-webkit-scrollbar, .sn-ap2-month::-webkit-scrollbar { display: none; }
	.sn-ap2-cards { gap: 14px; }
	.sn-ap2-cards > li { flex-basis: 28%; }
	.sn-ap2-cards > li.sn-ap2-alltile { display: none; }
	.sn-ap2-arw { display: none !important; }
	html body .sn-ap.sn-ap2 a.sn-ap2-yall-btn { display: flex !important; width: 100%; margin: 20px 0 0; }
	.sn-ap2-month { display: flex; gap: 14px; margin: -6px; padding: 6px; scroll-padding: 0 6px; }
	.sn-ap2-month > li { flex: 0 0 28%; scroll-snap-align: start; }
	.sn-ap2 h2.sn-ap2-h { margin-top: 28px; font-size: 18px; }

	/* Years: three across, the count under the year. */
	.sn-ap2-years { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
	.sn-ap2 ul.sn-ap2-years { padding: 4px 4px 0; }
	.sn-ap2-stack { margin: 0 8px 6px 0; }
	.sn-ap2-stack:before { transform: translate(6px, 6px); }
	.sn-ap2-stack:after { transform: translate(3px, 3px); }
	.sn-ap2-yl { display: block; margin: 8px 0 0; }
	.sn-ap2-yl-name { display: block; font-size: 17px; }
	.sn-ap2-yl-count { display: block; }
}
@media only screen and (max-width: 580px) {
	.sn-ap2-cards > li, .sn-ap2-month > li { flex-basis: 40%; }
	.sn-ap2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sn-ap2-ago-n { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.sn-ap2-tl-fill, .sn-ap2-tl-marker, .sn-ap2-tl-caret, .sn-ap2 a.sn-ap2-tl-year, .sn-ap2.sn-ap2-js .sn-ap2-cards { transition: none; }
	.sn-ap2-cards > li.sn-ap2-in, .sn-ap2-grid > li.sn-ap2-in, .sn-ap2-sk > span { animation: none; }
}
