/* ==========================================================================
   ARCHIVE AREA — category / tag / author / date / search / 404 / index
   Rebuild of the old Publisher 7.6.2 (travel-guides) archive look.
   Measurements: spec/archive.md (window 1354px, layout 1339px).
   ========================================================================== */

/* ---------- breadcrumb (bf-breadcrumb bc-top-style) : y 263 -> 292 ---------- */
.asa-bc { display: block; padding: 7px 0 0; }
.asa-bc-wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 17px; }
.asa-bc-items { margin: 0; padding: 0; list-style: none; font-size: 0; line-height: 0; }
.asa-bc-item { display: inline-block; font-size: 12px; line-height: 22px; }
.asa-bc-item::after {
	display: inline-block;
	content: "\f104";                       /* fa-angle-left */
	font-family: FontAwesome; font-style: normal; font-weight: 400;
	line-height: 22px; vertical-align: top;
	margin: 0 9px; color: #929292;
	-webkit-font-smoothing: antialiased;
}
.asa-bc-item:last-child::after { display: none; }
.asa-bc-item a, .asa-bc-item span { display: inline-block; color: #9e9e9e; }
.asa-bc-item span { vertical-align: top; transition: .4s; }
.asa-bc-item a:hover span { color: #1587cc; }

/* ---------- layout: margin-top 17 after the breadcrumb, 1240 wrap, gutters 17 ---------- */
.asa-layout { position: relative; max-width: 1240px; margin: 17px auto 0; padding: 0 17px; }
.asa-row { margin: 0 -17px 28.3333px; }
.asa-row::before, .asa-row::after { content: " "; display: table; }
.asa-row::after { clear: both; }
.asa-content-column, .asa-sidebar-column {
	position: relative; float: right; min-height: 1px; padding: 0 17px;
}
.asa-layout-2col .asa-content-column { width: 70%; }      /* 868 -> 834 inner */
.asa-layout-2col .asa-sidebar-column { width: 30%; }      /* 372 -> 338 inner, on the left */
.asa-layout-1col .asa-content-column { width: 100%; }
.asa-content-column > div:last-child { margin-bottom: 0; }

/* Tag pages (page-layout-3-col-0): every .container widened to 1280 (inner 1246) */
body.asa-wide .asa-layout,
body.asa-wide .asa-bc-wrap { max-width: 1280px; }
body.asa-wide .as-wrap,
body.asa-wide .as-container { max-width: 1280px; }
body.asa-wide .asa-row { margin-bottom: 0; }

/* ---------- title box (section.archive-title) ---------- */
.asa-title {
	position: relative;
	margin: 0 0 22.6667px;
	padding: 20px;
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
	box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .09);
}
.asa-title::after { content: " "; display: table; clear: both; }
.asa-pre-title {
	position: relative;
	margin: 0 0 17px;
	font-size: 14px; font-weight: 400;
	text-transform: capitalize;
}
.asa-pre-title::after {
	content: ""; display: inline-block;
	position: absolute; top: 100%; right: 0; left: auto;
	width: 100%; height: 3px;
	background: #444;
}
.asa-pre-title span {
	position: relative; z-index: 1;
	display: inline-block;
	padding: 0 10px;
	background: #444; color: #fff;
	line-height: 26px;
}
.asa-heading {
	position: relative;
	margin: 0 0 12px; padding: 0;
	font-size: 28px; line-height: 1.3; font-weight: 400;  /* 36.4px */
	color: #383838; text-transform: capitalize;
	pointer-events: none;
}
.asa-heading .asa-h-title { color: inherit; }
.asa-desc { margin-top: 12px; font-size: 14px; line-height: 1.7; color: #7b7b7b; }
.asa-desc p { margin: 0 0 10px; }
.asa-desc p:last-child { margin-bottom: 0; }
.asa-actions { float: left; width: 30px; }
.asa-rss { float: left; font-size: 20px; line-height: 34px; color: #f97410; }
.asa-rss:hover { color: #f97410; }

/* ---------- shared image holder (a.img-holder + ::before ratio) ---------- */
.asa-img {
	position: relative; display: block; width: 100%;
	overflow: hidden; line-height: 0; color: #444;
	background: #e9ebee;
	transition: none;
}
.asa-img::before { content: " "; display: block; width: 100%; padding-top: 58%; }
.asa-img > img,
.asa-img > .yt,
.asa-img > .ph {
	position: absolute; top: 0; right: 0; bottom: 0; left: 0;
	display: block; width: 100%; height: 100%; max-width: none; margin: 0;
	object-fit: cover; object-position: 50% 0;   /* background-position: center top */
}
.asa-img > .yt img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.asa-img > .yt b {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 54px; height: 38px; border-radius: 9px; background: rgba(0, 0, 0, .7);
	color: #fff; font-size: 18px; line-height: 38px; text-align: center; font-weight: 400;
}
/* No image: the old lazy-load placeholder (#e9ebee with a light band) */
.asa-img > .ph {
	background: #e9ebee linear-gradient(to right, #e9ebee 0, #f4f5f6 20%, #e9ebee 40%, #e9ebee 100%);
	font-size: 0; color: transparent;
}

/* ---------- cards: common ---------- */
.asa-item { position: relative; }
.asa-item-inner { background: #fff; padding: 20px; box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .09); }
.asa-item-inner::before, .asa-item-inner::after { content: " "; display: table; }
.asa-item-inner::after { clear: both; }
.asa-featured { position: relative; line-height: 0; margin: -20px -20px 20px; }
.asa-featured::before, .asa-featured::after { content: " "; display: table; }
.asa-featured::after { clear: both; }
.asa-item-title { margin: 0 0 6px; padding: 0; text-transform: capitalize; }
.asa-item-title a { color: inherit; text-transform: inherit; transition: .07s; }
.asa-item-title a:hover { color: #1587cc; }
.asa-summary {
	font-size: 14px; line-height: 23px; font-weight: 400;
	color: #696969; text-transform: none;
}

/* ---------- listing-mix-4-3 ---------- */
.asa-listing-mix::after, .asa-listing-grid::after, .asa-listing-classic::after, .asa-listing-blog::after { content: " "; display: table; clear: both; }
.asa-listing-classic { margin: 0 0 25px; }

/* classic-2 (first post): 834 x 467 image (56%), title 20/27 bold */
.asa-item-classic .asa-img::before { padding-top: 56%; }
.asa-item-classic .asa-item-title {
	font-size: 20px; line-height: 27px; font-weight: 700; color: #383838;
}

/* grid-1 (the rest): 2 columns, 399 inner, image 58%, title 19/26 */
.asa-item-grid {
	float: right; width: 50%;
	margin: 0 0 30px;
}
.asa-listing-grid > .asa-item-grid:nth-child(odd)  { clear: right; padding: 0 0 0 18px; }  /* right column */
.asa-listing-grid > .asa-item-grid:nth-child(even) { padding: 0 18px 0 0; }                /* left column */
.asa-item-grid .asa-item-inner { padding: 20px 20px 15px; }
.asa-item-grid .asa-item-title {
	font-size: 19px; line-height: 26px; font-weight: 400; color: #1d1d1d;
}

/* ---------- listing-blog-5 (tag pages) ---------- */
.asa-item-blog { margin: 0 0 30px; }
.asa-item-blog:last-child { margin-bottom: 0; }
.asa-item-blog.asa-sticky { background: #fffbdf; padding: 18px; border: 1px solid rgba(0, 0, 0, .07); }
.asa-item-blog .asa-featured { float: right; width: 300px; margin: -20px -20px -20px 20px; }
.asa-item-blog .asa-img::before { padding-top: 64%; }      /* 300 x 192 */
.asa-item-blog .asa-item-title {
	font-size: 20px; line-height: 30px; font-weight: 700; color: #383838;
}
.asa-item-blog:hover .asa-item-title a { color: #1587cc; }
.asa-item-blog .asa-summary { margin: 6px 0 0 -8px; padding: 0 300px 0 0; }
@media only screen and (max-width: 830px) {
	.asa-item-blog .asa-featured { float: none; width: calc(100% + 40px); margin: -20px -20px 20px; }
	.asa-item-blog .asa-summary { padding: 0; margin-left: 0; }
}

/* ---------- pagination (bs-numbered-pagination) ---------- */
.asa-pagination {
	margin: 20px 0 0;
	font-size: 18px; line-height: 1.7;
	font-weight: 400;
}
.asa-pagination .page-numbers {
	display: inline-block;
	height: 40px; min-width: 40px;
	margin: 0 0 0 1px;
	padding: 0 15px;
	border: 0;
	background: #fff; color: #1587cc;
	font-size: 12px; line-height: 40px;
	text-align: center; text-transform: uppercase;
	box-shadow: 0 3px 4px -1px rgba(0, 0, 0, .09);
	list-style: none;
}
.asa-pagination span.page-numbers { margin: 0 0 0 1px; }
.asa-pagination a.page-numbers { transition: .07s; }
.asa-pagination .page-numbers.current,
.asa-pagination a.page-numbers:hover { background: #1587cc; color: #fff; }
.asa-pagination .page-numbers.dots:hover { background: #fff; color: #1587cc; }
.asa-pagination .next .fa { margin: 0 4px 0 0; font-size: 15px; }
.asa-pagination .prev .fa { margin: 0 0 0 4px; font-size: 15px; }

/* ---------- search form (404 + no results) ---------- */
.asa-search-form { position: relative; }
.asa-search-form::after { content: " "; display: table; clear: both; }
.asa-search-form label { display: block; width: 100%; margin: 0; }
.asa-search-field {
	float: right; width: 100%; height: 34px;
	padding: 0 10px 0 30%;
	border: 1px solid #cbcbcb; border-radius: 0; outline: 0;
	background: #fff; color: #555;
	font-size: 12px; line-height: 20px; box-shadow: none;
	-webkit-appearance: none;
}
.asa-search-field:focus { border-color: #9e9e9e; }
.asa-search-submit {
	position: absolute; top: 0; left: 0; right: auto;
	height: 34px; margin: 0; padding: 0 7%;
	border: 0; border-radius: 0;
	background: #1587cc; color: #fff;
	font-size: 14px; line-height: 28px; text-transform: uppercase;
	cursor: pointer; transition: all .3s;
}
.asa-search-submit:hover { opacity: .9; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- no results ---------- */
.asa-no-results { background: #fff; padding: 20px; box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .09); }
.asa-no-results-title { margin: 0 0 10px; font-size: 20px; line-height: 27px; font-weight: 700; color: #383838; }
.asa-no-results p { margin: 0; }
.asa-no-results .asa-search-form { margin: 20px 0 30px; max-width: 400px; }

/* ---------- 404 (Publisher .error404 rules) ---------- */
.error404 .asa-content-column { float: none; margin: 10px auto 50px; max-width: 800px; }
.asa-404-row { margin-bottom: 5px; }
.asa-text-404 { margin: 0; font-size: 130px; line-height: 175px; font-weight: 700; color: #444; text-align: center; }
.asa-404-desc { text-align: center; }
.asa-title-404 { margin: 0 0 15px; font-size: 24px; line-height: 1.3; font-weight: bolder; color: #444; text-align: center; }
.asa-404-desc p { margin: 0; }
.asa-action-links { margin: 20px 0 10px; }
.asa-action-links a { display: inline-block; margin: 0 10px; color: #444; }
.asa-action-links a:hover { color: #1587cc; }
.asa-action-links .fa { margin: 0 0 0 5px; }
.asa-404-search { margin-top: 15px; padding-top: 25px; }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
	.asa-layout-2col .asa-content-column,
	.asa-layout-2col .asa-sidebar-column { float: none; width: 100%; }
	.asa-layout-2col .asa-sidebar-column { margin-top: 0; }   /* old: sidebar starts right under the pagination */
}
/* measured on the archive: gap breadcrumb -> box 20px <= 667; side gutter 15px <= 479 (breadcrumb keeps 17px) */
@media (max-width: 667px) {
	.asa-layout { margin-top: 20px; }
}
@media (max-width: 479px) {
	.asa-layout { padding: 0 15px; }
}
@media only screen and (max-width: 500px) {
	.asa-item-grid,
	.asa-listing-grid > .asa-item-grid:nth-child(odd),
	.asa-listing-grid > .asa-item-grid:nth-child(even) { float: none; width: 100%; padding: 0; }
}
body.asa-wide .asg-wrap { width: 1246px; }


/* ===== taste pass r11 ===== */
/* taste-4: equal-height cards, bolder titles, soft hover */
@media (min-width:621px){
	.asa-item-inner{border-radius:4px;overflow:hidden;transition:box-shadow .2s ease,transform .2s ease}
	.asa-item-inner:hover{box-shadow:0 10px 24px rgba(16,42,67,.10);transform:translateY(-2px)}
	.asa-listing-grid{display:flex;flex-wrap:wrap}
	.asa-listing-grid > .asa-item-grid{float:none;display:flex}
	.asa-item-grid .asa-item-inner{display:flex;flex-direction:column;width:100%}
	.asa-item-grid .asa-item-inner::before,.asa-item-grid .asa-item-inner::after{display:none}
	.asa-item-classic .asa-item-title{font-size:24px;line-height:1.6;color:#1b2a38;margin-bottom:8px}
	.asa-item-grid .asa-item-title{font-size:18px;line-height:1.65;font-weight:700;color:#1b2a38;margin-bottom:8px}
	.asa-item-blog .asa-item-title{color:#1b2a38;line-height:1.6}
	.asa-summary{font-size:14px;line-height:1.85;color:#6b7480}
}
/* taste-9a: readable breadcrumb, rounded outlined pagination */
@media (min-width:621px){
	.asa-bc-item,.asa-bc-item::after{font-size:13px}
	.asa-bc-item a,.asa-bc-item span{color:#7d8790}
	.asa-bc-item:last-child span{color:#4d5a66}
	.asa-pagination{margin-top:28px}
	.asa-pagination .page-numbers{height:40px;min-width:40px;margin:0 0 6px 6px;padding:0 14px;
		border:1px solid #e3e6ea;border-radius:4px;box-shadow:none;font-size:14px;line-height:38px;color:#3d4a56}
	.asa-pagination a.page-numbers:hover,.asa-pagination .page-numbers.current{border-color:#1587cc;background:#1587cc;color:#fff}
	.asa-pagination .page-numbers.dots{border-color:transparent;background:transparent}
}
/* taste-10b: brand-blue archive tab, consistent corners, nicer 404 */
@media (min-width:621px){
	.asa-title,.asa-no-results{border-radius:4px}
	.asa-pre-title span{background:#1587cc;border-radius:3px 3px 0 0}
	.asa-pre-title::after{height:2px;background:#1587cc}
	.asa-heading{font-size:30px;line-height:1.5;font-weight:700;color:#1b2a38}
	.asa-desc{font-size:15px;line-height:1.9;color:#5b6670}
	.asa-search-field{height:42px;border-color:#d9dde2;border-radius:4px;font-size:14px}
	.asa-search-field:focus{border-color:#1587cc}
	.asa-search-submit{height:42px;border-radius:4px 0 0 4px;font-size:14px;line-height:42px}
	.asa-text-404{font-size:120px;line-height:1.3;color:#1587cc}
	.asa-title-404{font-weight:700;color:#1b2a38}
	.asa-action-links a{padding:6px 14px;border:1px solid #e3e6ea;border-radius:4px;background:#fff}
	.asa-action-links a:hover{border-color:#1587cc}
}
/* ===== taste: mobile polish (archive) ===== */
@media (max-width:620px){
	.asa-title{padding:16px;margin-bottom:18px;border-radius:10px}
	.asa-pre-title{margin-bottom:12px}
	.asa-heading{font-size:24px;line-height:1.5;margin-bottom:4px}
	.asa-item-inner{border-radius:10px;overflow:hidden;box-shadow:0 2px 10px rgba(16,40,64,.08)}
	.asa-item-grid .asa-item-inner,.asa-item-inner{padding:16px}
	.asa-featured,.asa-item-blog .asa-featured{width:calc(100% + 32px);margin:-16px -16px 14px}
	.asa-img::before,.asa-item-classic .asa-img::before,.asa-item-blog .asa-img::before{padding-top:56.25%}   /* 16:9: no crop */
	.asa-item-grid{margin-bottom:18px}
	.asa-item-classic .asa-item-title,.asa-item-blog .asa-item-title{font-size:19px;line-height:1.6}
	.asa-item-grid .asa-item-title{font-size:18px;line-height:1.6}
	.asa-summary{font-size:15px;line-height:1.8}
	.asa-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-bottom:30px}
	.asa-pagination .page-numbers{height:44px;min-width:44px;margin:0;padding:0 14px;border-radius:8px;font-size:14px;line-height:44px}
	.asa-search-field{height:46px;font-size:16px}
	.asa-search-submit{height:46px}
}
