/* Parsa-mag as a magazine (magazine.php): no boxes around the articles, type and thin lines carry the page. Nothing
   moves or grows on hover: titles turn blue. */
.ptm { --ptm-ink: #14263a; --ptm-text: #4a5864; --ptm-muted: #66727e; --ptm-line: #e6ecf1; --ptm-tint: #f2f7fc; --ptm-soft: #e6f1fb; --ptm-edge: #d9e7f3; padding-bottom: 64px; color: var(--ptm-text); }
.ptm h1, .ptm h2, .ptm h3, .ptm h4, .ptm p, .ptm ul { margin: 0; padding: 0; }
.ptm .ptm-title { color: var(--ptm-ink); font-weight: 700; line-height: 1.65; }
.ptm .ptm-title a { color: inherit; text-decoration: none; transition: color .2s ease; }
.ptm article:hover .ptm-title a { color: var(--ps-primary); }
.ptm-pic { display: block; overflow: hidden; border-radius: 10px; background: #eef2f6; }
.ptm-pic img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ptm-cat { display: inline-block; color: var(--ps-primary); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.ptm-cat:hover { color: var(--ps-primary-dark); }
.ptm-excerpt { color: var(--ptm-text); font-size: 14px; line-height: 1.95; }
.ptm-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--ptm-muted); font-size: 12px; line-height: 1.7; }
.ptm-meta span { position: relative; }
.ptm-meta span::before { content: ""; position: absolute; top: 50%; inset-inline-start: -8px; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: currentColor; }

/* the masthead: the page's one tinted band */
.ptm-mast { padding: 14px 0 0; border-bottom: 1px solid var(--ptm-edge); background: var(--ptm-tint); text-align: center; }
.ptm-crumbs { text-align: start; color: var(--ptm-muted); font-size: 13px; }
.ptm-crumbs p { margin: 0; }
.ptm-crumbs a { color: inherit; text-decoration: none; }
.ptm-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ps-primary); font-size: 14px; font-weight: 700; line-height: 1.6; text-decoration: none; }
.ptm-eyebrow::before { content: ""; flex: none; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 0h4v5h5v4H9v5H5V9H0V5h5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 0h4v5h5v4H9v5H5V9H0V5h5z'/%3E%3C/svg%3E") center / contain no-repeat; }
a.ptm-eyebrow:hover { color: var(--ps-primary-dark); }
.ptm-mast .ptm-eyebrow { margin: 34px 0 0; }
.ptm .ptm-mast__name { margin-top: 8px; color: var(--ptm-ink); font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; line-height: 1.35; }
.ptm .ptm-mast__note { max-width: 680px; margin: 12px auto 0; color: var(--ptm-text); font-size: 15.5px; line-height: 1.9; }
.ptm .ptm-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin-top: 22px; color: var(--ptm-text); font-size: 13.5px; font-weight: 500; line-height: 1.6; list-style: none; }
.ptm-facts li { display: flex; align-items: center; gap: 7px; }
.ptm-facts svg { flex: none; color: var(--ps-primary); }
.ptm-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 14px 0; border-top: 1px solid var(--ptm-edge); }
.ptm-nav__list { display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; gap: 8px; scrollbar-width: none; }
.ptm-nav__list::-webkit-scrollbar { display: none; }
.ptm-nav__list a { flex: none; padding: 7px 15px; border: 1px solid var(--ptm-edge); border-radius: 8px; background: #fff; color: var(--ptm-ink); font-size: 13.5px; font-weight: 600; line-height: 1.6; text-decoration: none; white-space: nowrap; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.ptm-nav__list a:hover { border-color: var(--ps-primary); color: var(--ps-primary); }
.ptm-nav__list a.is-current { border-color: var(--ps-primary); background: var(--ps-primary); color: #fff; }
.ptm-search { position: relative; flex: none; width: 260px; margin: 0; }
.ptm-search input[type="search"] { width: 100%; height: 40px; padding-block: 0; padding-inline: 12px 40px; border: 1px solid var(--ptm-edge); border-radius: 8px; background: #fff; color: var(--ptm-ink); font-size: 13px; box-shadow: none; }
.ptm-search input[type="search"]:focus { border-color: var(--ps-primary); outline: 0; }
.ptm-search button { position: absolute; inset-block: 0; inset-inline-end: 0; display: flex; align-items: center; justify-content: center; width: 40px; padding: 0; border: 0; background: none; color: var(--ptm-muted); cursor: pointer; }
.ptm-search button:hover { color: var(--ps-primary); }

/* to a person: free consultation */
.ptm-consult { display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-radius: 12px; background: var(--ptm-soft); color: var(--ptm-ink); }
.ptm-consult__icon { display: flex; flex: none; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ps-primary); color: #fff; }
.ptm-consult__text { flex: 1 1 auto; min-width: 0; }
.ptm .ptm-consult__title { color: var(--ptm-ink); font-size: 18px; font-weight: 800; line-height: 1.6; }
.ptm .ptm-consult__note { margin-top: 2px; color: var(--ptm-text); font-size: 14px; line-height: 1.9; }
.ptm-consult__actions { display: flex; flex: none; flex-wrap: wrap; gap: 10px; }
.ptm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid var(--ps-primary); border-radius: 8px; background: var(--ps-primary); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.ptm-btn:hover { border-color: var(--ps-primary-dark); background: var(--ps-primary-dark); color: #fff; }
.ptm-btn--line { background: #fff; color: var(--ps-primary); }
.ptm-btn--line:hover { border-color: var(--ps-primary); background: #fff; color: var(--ps-primary-dark); }
.ptm-consult--band { margin-top: 56px; }

/* the lead: one big story, the newest beside it */
.ptm-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; margin-top: 32px; }
.ptm-lead__main .ptm-pic { border-radius: 12px; }
.ptm-lead__main { position: relative; min-width: 0; }
.ptm .ptm-lead__main .ptm-cat { position: absolute; top: 16px; inset-inline-start: 16px; padding: 4px 12px; border-radius: 6px; background: var(--ps-primary); color: #fff; line-height: 1.8; }
.ptm-lead__main .ptm-pic + .ptm-cat + .ptm-title { margin-top: 18px; }
.ptm .ptm-lead__main .ptm-title { margin-top: 6px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; line-height: 1.5; }
.ptm .ptm-lead__main .ptm-excerpt { margin-top: 10px; font-size: 15.5px; }
.ptm-lead__main .ptm-meta { margin-top: 12px; font-size: 12.5px; }
.ptm-lead__side { display: flex; flex-direction: column; padding-inline-start: 40px; border-inline-start: 1px solid var(--ptm-line); }
.ptm .ptm-side-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; color: var(--ptm-ink); font-size: 18px; font-weight: 800; }
.ptm-row { display: flex; flex: 1 1 0; align-items: center; gap: 16px; padding-block: 14px; border-top: 1px solid var(--ptm-line); }
.ptm-row .ptm-pic { flex: none; width: 124px; }
.ptm-row__text { min-width: 0; }
.ptm .ptm-row .ptm-title { display: -webkit-box; overflow: hidden; font-size: 15px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ptm-row .ptm-meta { margin-top: 6px; }

.ptm .ptm-side-h::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--ps-primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 0h4v5h5v4H9v5H5V9H0V5h5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 0h4v5h5v4H9v5H5V9H0V5h5z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* section titles */
.ptm-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ptm-head::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--ptm-line); }
.ptm .ptm-head h2 { display: flex; align-items: center; gap: 10px; color: var(--ptm-ink); font-size: 21px; font-weight: 800; line-height: 1.5; }
.ptm .ptm-head h2::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--ps-primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 0h4v5h5v4H9v5H5V9H0V5h5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 0h4v5h5v4H9v5H5V9H0V5h5z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* the issues: a subject, its newest article, and more of it */
.ptm-issues { margin-top: 56px; }
.ptm-issues__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ptm-issue { min-width: 0; padding-top: 14px; border-top: 3px solid var(--ps-primary); }
.ptm-issue__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ptm-issue__icon { display: flex; flex: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ptm-soft); color: var(--ps-primary); }
.ptm-issue__head { flex: 1 1 auto; min-width: 0; }
.ptm .ptm-issue__name { color: var(--ptm-ink); font-size: 19px; font-weight: 800; line-height: 1.5; }
.ptm .ptm-issue__note { color: var(--ptm-muted); font-size: 12.5px; line-height: 1.7; }
.ptm-all { flex: none; color: var(--ps-primary); font-size: 13px; font-weight: 600; text-decoration: none; line-height: 28px; }
.ptm-all::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(135deg); }
.ptm .ptm-issue__first .ptm-title { margin-top: 10px; font-size: 16px; }
.ptm-issue__list { margin-top: 8px !important; list-style: none; }
.ptm-issue__list li { padding-block: 10px; border-top: 1px solid var(--ptm-line); line-height: 1.7; }
.ptm-issue__list a { display: -webkit-box; overflow: hidden; color: var(--ptm-text); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: color .2s ease; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ptm-issue__list a:hover { color: var(--ps-primary); }

/* the editor's picks: the page's one dark band */
.ptm-picks { margin-top: 56px; }
.ptm-picks__box { padding: 30px 32px 32px; border-radius: 14px; background: #0a2540; }
.ptm .ptm-picks__box h2 { margin-bottom: 20px; color: #fff; font-size: 21px; font-weight: 800; line-height: 1.5; }
.ptm-picks__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ptm-pick { min-width: 0; }
.ptm-pick .ptm-pic { background: rgba(255,255,255,.08); }
.ptm .ptm-pick .ptm-title { display: -webkit-box; margin-top: 12px; overflow: hidden; color: #fff; font-size: 14.5px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ptm .ptm-pick:hover .ptm-title a { color: #7cc4f7; }
.ptm-pick .ptm-meta { margin-top: 6px; color: rgba(255,255,255,.72); }

/* the river: every article, newest first */
.ptm-river { margin-top: 56px; }
.ptm-river__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.ptm-card { position: relative; min-width: 0; }
.ptm .ptm-card .ptm-pic + .ptm-card__text .ptm-cat { position: absolute; top: 12px; inset-inline-start: 12px; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .94); line-height: 1.8; }
.ptm-card__text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 14px; }
.ptm .ptm-card .ptm-title { display: -webkit-box; overflow: hidden; font-size: 16.5px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ptm .ptm-card .ptm-excerpt { display: -webkit-box; overflow: hidden; font-size: 13.5px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ptm-card .ptm-meta { margin-top: 2px; }
.ptm .ps-pagination { margin-top: 44px; }
.ptm-empty { padding: 40px 0; color: var(--ptm-muted); font-size: 15px; text-align: center; }

@media (max-width: 1024px) {
	.ptm-lead { gap: 28px; }
	.ptm-lead__side { padding-inline-start: 28px; }
	.ptm-row .ptm-pic { width: 96px; }
	.ptm .ptm-row .ptm-title { font-size: 14px; }
	.ptm-issues__grid, .ptm-picks__grid { display: flex; gap: 16px; margin-inline: calc(var(--ps-gutter, 15px) * -1); padding-inline: var(--ps-gutter, 15px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
	.ptm-issues__grid::-webkit-scrollbar, .ptm-picks__grid::-webkit-scrollbar { display: none; }
	.ptm-issue { flex: 0 0 min(320px, 80vw); scroll-snap-align: start; }
	.ptm-pick { flex: 0 0 min(260px, 66vw); scroll-snap-align: start; }
	.ptm-picks__box { padding: 22px 16px; }
	.ptm-picks__grid { margin-inline: -16px; padding-inline: 16px; }
	.ptm-river__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 767px) {
	.ptm { padding-bottom: 40px; }
	.ptm .ptm-mast__name { margin-top: 20px; }
	.ptm .ptm-mast__note { font-size: 14px; }
	.ptm-mast .ptm-eyebrow { margin-top: 22px; }
	.ptm .ptm-facts { gap: 6px 18px; margin-top: 16px; font-size: 12.5px; }
	.ptm-nav { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 20px; padding: 12px 0 14px; }
	.ptm-search { width: 100%; }
	.ptm-nav__list { margin-inline: -15px; padding-inline: 15px; }
	.ptm-consult { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 18px; }
	.ptm-consult__actions { width: 100%; }
	.ptm-consult__actions .ptm-btn { flex: 1 1 auto; }
	.ptm-consult--band { margin-top: 36px; }
	.ptm .ptm-lead__main .ptm-cat { top: 12px; inset-inline-start: 12px; }
	.ptm-lead { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 20px; }
	.ptm-lead__side { padding-inline-start: 0; border-inline-start: 0; }
	.ptm-row { padding-block: 12px; }
	.ptm-issues, .ptm-picks, .ptm-river { margin-top: 36px; }
	.ptm-river__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.ptm-card { display: flex; align-items: flex-start; gap: 14px; padding-block: 14px; border-top: 1px solid var(--ptm-line); }
	.ptm-card .ptm-pic { flex: none; width: 112px; }
	.ptm-card__text { flex: 1 1 auto; min-width: 0; margin-top: 0; gap: 3px; }
	.ptm .ptm-card .ptm-title { font-size: 14.5px; -webkit-line-clamp: 3; }
	.ptm-card .ptm-excerpt { display: none !important; }
	.ptm .ptm-card .ptm-pic + .ptm-card__text .ptm-cat { position: static; padding: 0; background: none; }
}
