/* sn-issue-page version 2 (mu-plugin, option sn_ip_v2): issue pages. Loaded instead of issue-page.css,
   only when version 2 renders (body.sn-ip2-view). Sizes and colours from Issue.dc.html; buttons are
   sn-buttons' black and outlined styles at the design's 36px (44px on phones). Body text keeps the
   site's font; headings are the site's Roboto Slab. */

/* ---------- Full width: no sidebar (as lib/css/directory.css does on directory pages) ---------- */
body.sn-ip2-view #sidebar { display: none; }
body.sn-ip2-view #primary-left,
body.sn-ip2-view #primary-right { width: 100% !important; float: none; margin-left: 0; margin-right: 0; }
/* The theme's breadcrumb box prints nothing here (the trail is in .sn-ip2-crumbs). */
body.sn-ip2-view .breadcrumbs { display: none !important; }

.sn-ip2-top, .sn-ip2, .sn-ip2-prev { color: #333; }
.sn-ip2 *, .sn-ip2 *::before, .sn-ip2 *::after,
.sn-ip2-prev *, .sn-ip2-top * { box-sizing: border-box; }

/* ---------- Breadcrumb row ---------- */
.sn-ip2-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: #222; }
.sn-ip2-crumbs { margin: 0; min-width: 0; }
.sn-ip2-crumbs > span { display: inline; }
.sn-ip2-crumbs > span + span::before { content: "\203A"; color: #666; margin: 0 9px; }
.sn-ip2-crumbs a { color: #3B5998; text-decoration: none; }
.sn-ip2-crumbs a:hover, .sn-ip2-shops a:hover { color: #222; }
.sn-ip2-shops { margin: 0; }
.sn-ip2-shops a { color: #3B5998; }
.sn-ip2-dot { color: #666; margin: 0 5px; }
/* Subscribers: green tick + "Subscription active · My account" (owner, 2026-11-28). */
.sn-ip2-subline { display: flex; align-items: center; gap: 6px; }
.sn-ip2-subline b { font-weight: bold; color: #222; }
.sn-ip2-subline .sn-ip2-dot { margin: 0 3px; }
.sn-ip2-tick { display: block; flex: none; }

/* ---------- Two columns: cover 420px left, the rest right ---------- */
.sn-ip2 { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 48px; font-size: 15px; line-height: 1.55; }
.sn-ip2-left { flex: 0 1 420px; min-width: 0; }
.sn-ip2-right { flex: 999 1 480px; min-width: 0; }

/* Cover (theme's product-image.php) */
.sn-ip2 .sn-ip2-cover .woocommerce-block { float: none; width: auto; margin: 0 !important; padding: 0 !important; border: 0; }
.sn-ip2 .sn-ip2-cover a.woocommerce-main-image { display: block; }
.sn-ip2 .sn-ip2-cover img,
.sn-ip2 .sn-ip2-inside img { display: block; width: 100%; height: auto; max-width: 100%; border: 3px solid #fff; box-shadow: 0 0 5px 1px rgba(34, 34, 34, .14); }
.sn-ip2 .sn-ip-caption { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: #666; }
.sn-ip2 .sn-ip2-photo { margin: 0; font-size: 14px; line-height: 1.5; color: #333; }

/* See Inside: the spread at the column's width, outlined button on its bottom-right corner */
.sn-ip2 a.sn-ip2-inside { display: block; position: relative; margin: 22px 0 0; text-decoration: none; color: #222; }
.sn-ip2-inside-btn { position: absolute; right: 13px; bottom: 13px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: #fff; color: #222; border: 1px solid #222; border-radius: 4px; font-size: 14px; line-height: 1.2; white-space: nowrap; transition: background-color .15s ease; }
.sn-ip2 a.sn-ip2-inside:hover .sn-ip2-inside-btn { background: #f0f0f0; }
.sn-ip2 a.sn-ip2-inside:focus-visible { outline: 2px solid #3B5998; outline-offset: 2px; }
.sn-ip2-ico { display: block; flex: none; }

/* Title and "N pages" */
.sn-ip2 h1.product_title { margin: -6px 0 2px; padding: 0; font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 34px; line-height: 1.25; color: #222; }
.sn-ip2 .sn-ip-meta { margin: 0 0 18px; font-size: 14px; color: #666; }

/* ---------- Offer box (rows: words left, price over button right) ---------- */
.sn-ip2 .sn-ip-buy { border: 1px solid #ddd; margin: 0; }
.sn-ip2 .sn-ip-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 28px; padding: 16px 18px; }
.sn-ip2 .sn-ip-offer + .sn-ip-offer { border-top: 1px solid #ddd; }
.sn-ip2 .sn-ip-offer-text h2 { margin: 0 0 4px; font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 17px; line-height: 1.4; color: #222; }
.sn-ip2 .sn-ip-offer-text h2.sn-ip2-subhead { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.sn-ip2 .sn-ip-offer-text p { margin: 0; font-size: 15px; line-height: 1.5; }
.sn-ip2 .sn-ip-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sn-ip2 .sn-ip-offer p.price { margin: 0; font-size: 18px; font-weight: bold; line-height: 1.3; color: #222; white-space: nowrap; }
.sn-ip2 .sn-ip-offer p.price small { font-size: 13px; font-weight: normal; color: #666; }
.sn-ip2 .sn-ip-act form.cart { display: flex; justify-content: flex-end; margin: 0; padding: 0; float: none; }
.sn-ip2 .sn-ip-login { margin: 0; padding: 10px 18px; border-top: 1px solid #ddd; background: #fafafa; font-size: 14px; line-height: 1.5; color: #555; }

/* Buttons: sn-buttons' look, the design's size */
html body .sn-ip2 .sn-ip-act .button,
html body .sn-ip2 .sn-ip-act form.cart button {
	min-width: 108px;
	min-height: 36px !important;
	padding: 0 16px !important;
	gap: 8px;
}
html body .sn-ip2 a.button.sn-ip-outline { background: #fff !important; color: #222 !important; border-color: #222 !important; }
html body .sn-ip2 a.button.sn-ip-outline:hover { background: #f0f0f0 !important; color: #222 !important; border-color: #222 !important; }

/* ---------- "Is your name in it?" (only from an old ?find= link) ---------- */
.sn-ip2 .sn-ip-find { margin: 28px 0 0; }
.sn-ip2 .sn-ip-find h3 { margin: 0 0 4px; padding-bottom: 6px; border-bottom: 1px solid #ddd; font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 18px; line-height: 1.4; color: #222; }
.sn-ip2 .sn-ip-find-row { display: flex; gap: 8px; margin: 10px 0 0; }
.sn-ip2 .sn-ip-find input[type=text] { flex: 1 1 auto; min-width: 0; width: auto; height: 36px; margin: 0; padding: 0 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
html body .sn-ip2 .sn-ip-find input[type=submit] { min-height: 36px !important; }
.sn-ip2 .sn-ip-found { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.sn-ip2 .sn-ip-found p { margin: 0 0 6px; }
.sn-ip2 .sn-ip-found mark { background: #fff2a8; color: inherit; padding: 0 1px; }
.sn-ip2 .sn-ip-snip { padding-left: 10px; border-left: 2px solid #ddd; color: #444; }
.sn-ip2 .sn-ip-small { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #666; }

/* ---------- In this issue ---------- */
.sn-ip2 .sn-ip2-h { margin: 28px 0 16px; padding-bottom: 7px; border-bottom: 1px solid #ddd; font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 22px; line-height: 1.4; color: #222; }
/* Two columns, each section kept whole; any mix of sections balances itself. */
.sn-ip2 .sn-ip2-cols-2 { -webkit-columns: 2; columns: 2; -webkit-column-gap: 48px; column-gap: 48px; }
.sn-ip2 .sn-ip2-sec { padding-bottom: 18px; -webkit-column-break-inside: avoid; page-break-inside: avoid; break-inside: avoid; }
/* One long untitled/single section: let it run on into the second column, one line at a time. */
.sn-ip2 .sn-ip2-cols-split .sn-ip2-sec { -webkit-column-break-inside: auto; page-break-inside: auto; break-inside: auto; }
.sn-ip2 .sn-ip2-cols-split li { -webkit-column-break-inside: avoid; page-break-inside: avoid; break-inside: avoid; }
.sn-ip2 .sn-ip2-sec h3,
.sn-ip2 .sn-ip-credits h3 { margin: 0 0 4px; font-family: inherit; font-size: 14px; font-weight: bold; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; color: #222; }
.sn-ip2 .sn-ip2-sec ul { list-style: none; margin: 0; padding: 0; }
.sn-ip2 .sn-ip2-sec li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 4px 0; font-size: 15px; line-height: 1.55; }
.sn-ip2 .sn-ip2-sec li span { flex: 1 1 auto; min-width: 0; }
.sn-ip2 .sn-ip2-sec li i { flex: 0 0 auto; font-style: normal; color: #666; white-space: nowrap; }
/* Editors and contributors: full size, under a thin rule. */
.sn-ip2 .sn-ip-credits { margin: 4px 0 0; padding-top: 16px; border-top: 1px solid #ddd; }
.sn-ip2 .sn-ip2-contents > .sn-ip-credits:first-child { margin-top: 28px; }
.sn-ip2 .sn-ip-credits p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: #222; }
.sn-ip2 .sn-ip-credits p:last-child { margin-bottom: 0; }

/* ---------- Previous issues: archive-style cards ---------- */
.sn-ip2-prev { clear: both; margin: 40px 0 0; }
.sn-ip2-prev-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin: 0 0 16px; padding-bottom: 7px; border-bottom: 1px solid #ddd; }
.sn-ip2-prev-h h2 { margin: 0; font-family: 'Roboto Slab', serif; font-weight: 400; font-size: 19px; line-height: 1.4; color: #222; }
.sn-ip2-prev-h a { font-size: 14px; color: #3B5998; }
.sn-ip2-prev-h a:hover { color: #222; }
.sn-ip2-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 18px; }
.sn-ip2-cards li { min-width: 0; margin: 0; padding: 0; }
.sn-ip2-cards a { display: block; text-decoration: none; color: #222; }
.sn-ip2-cards img { display: block; width: 100%; height: auto; border: 3px solid #fff; box-shadow: 0 0 5px 1px rgba(34, 34, 34, .14); }
.sn-ip2-card-name { display: block; margin: 8px 0 2px; font-family: 'Roboto Slab', serif; font-size: 16px; line-height: 1.3; color: #222; }
.sn-ip2-card-lead { display: block; font-size: 13px; line-height: 1.4; color: #555; }
.sn-ip2-cards a:hover .sn-ip2-card-name { color: #3B5998; }

/* ---------- Phones and tablets: name, cover, offers, contents, See Inside ---------- */
@media only screen and (max-width: 768px) {
	.sn-ip2 { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.sn-ip2-left, .sn-ip2-right { display: contents; }
	.sn-ip2 h1.product_title { order: 1; margin: 0 0 2px; font-size: 28px; }
	.sn-ip2 .sn-ip-meta { order: 2; margin-bottom: 14px; }
	.sn-ip2 .sn-ip2-cover { order: 3; width: 100%; max-width: 320px; margin: 0 auto 18px; }
	.sn-ip2 .sn-ip-buy { order: 4; }
	.sn-ip2 .sn-ip-find { order: 5; }
	.sn-ip2 .sn-ip-found { order: 6; }
	.sn-ip2 .sn-ip2-contents { order: 7; }
	.sn-ip2 a.sn-ip2-inside { order: 8; width: 100%; max-width: 420px; margin: 28px auto 0; }
	.sn-ip2 .sn-ip2-cols-2 { -webkit-columns: auto; columns: auto; }

	html body .sn-ip2 .sn-ip-act .button,
	html body .sn-ip2 .sn-ip-act form.cart button,
	html body .sn-ip2 .sn-ip-find input[type=submit] { min-height: 44px !important; }
	.sn-ip2 .sn-ip-find input[type=text] { height: 44px; }
	.sn-ip2-inside-btn { height: 44px; }

	.sn-ip2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sn-ip2-cards li:nth-child(n+5) { display: none; }
}
@media only screen and (max-width: 480px) {
	/* Narrow phones: words first, then price and button side by side (as version 1). */
	.sn-ip2 .sn-ip-offer { grid-template-columns: minmax(0, 1fr); }
	.sn-ip2 .sn-ip-act { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Pop-up viewer for the cover and the See inside spread (issue-v2.js) ---------- */
html.sn-ip2-view-open { overflow: hidden; }
.sn-ip2 a.woocommerce-main-image, .sn-ip2 a.sn-ip2-inside { cursor: zoom-in; }
dialog.sn-ip2-view { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; color: #fff; }
dialog.sn-ip2-view::backdrop { background: rgba(0,0,0,.84); }
.sn-ip2-view-stage { position: absolute; top: 56px; right: 72px; bottom: 28px; left: 72px; display: flex; align-items: center; justify-content: center; }
.sn-ip2-view-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; box-sizing: border-box; border: 3px solid #fff; background: #fff; box-shadow: 0 2px 22px rgba(0,0,0,.5); }
dialog.sn-ip2-view p.sn-ip2-view-cap { position: absolute; top: 0; left: 72px; right: 72px; margin: 0; line-height: 56px; font-family: Arial, sans-serif; font-size: 14px; color: #fff; text-align: center; }
dialog.sn-ip2-view button { position: absolute; 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: none; cursor: pointer; }
dialog.sn-ip2-view button:hover { background: #444; }
dialog.sn-ip2-view button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
dialog.sn-ip2-view button.sn-ip2-view-x { top: 8px; right: 16px; }
dialog.sn-ip2-view button.sn-ip2-view-prev { top: 50%; left: 16px; margin-top: -20px; }
dialog.sn-ip2-view button.sn-ip2-view-next { top: 50%; right: 16px; margin-top: -20px; }
@media only screen and (max-width: 768px) {
	.sn-ip2-view-stage { top: 56px; right: 8px; bottom: 64px; left: 8px; }
	dialog.sn-ip2-view p.sn-ip2-view-cap { left: 12px; right: 64px; text-align: left; }
	dialog.sn-ip2-view button { width: 44px; height: 44px; }
	dialog.sn-ip2-view button.sn-ip2-view-x { top: 6px; right: 8px; }
	dialog.sn-ip2-view button.sn-ip2-view-prev { top: auto; bottom: 10px; left: 8px; margin-top: 0; }
	dialog.sn-ip2-view button.sn-ip2-view-next { top: auto; bottom: 10px; right: 8px; margin-top: 0; }
}
