/* AtoB ištekliai: editorial ruda, kreminė, juoda */
.atob-ist {
	--atob-cream: #F4F3EF;
	--atob-paper: #FBFBFB;
	--atob-sand: #ECEBE6;
	--atob-brown: #523F31;
	--atob-ink: #0D0D0D;
	--atob-graphite: #303030;
	--atob-champagne: #D9C3A5;
	--atob-serif: "Playfair Display", Georgia, serif;
	--atob-sans: "Montserrat", -apple-system, "Segoe UI", sans-serif;

	background: var(--atob-cream);
	color: var(--atob-ink);
	font-family: var(--atob-sans);
	padding: clamp(40px, 6vw, 88px) clamp(16px, 5vw, 64px) 96px;
	box-sizing: border-box;
}
.atob-ist *, .atob-ist *::before, .atob-ist *::after { box-sizing: border-box; }
.atob-ist em { font-style: italic; color: var(--atob-brown); }

/* Antraštė */
.atob-ist__hero { max-width: 1200px; margin: 0 auto 40px; }
.atob-ist__kicker, .atob-card__label {
	font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--atob-brown);
}
.atob-ist__title {
	font-family: var(--atob-serif); font-weight: 500; font-size: clamp(44px, 7vw, 96px); line-height: .98;
	margin: 12px 0 18px; letter-spacing: -.01em; color: var(--atob-ink);
}
.atob-ist__intro { max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--atob-graphite); margin: 0; }

/* Filtrai: viena eilutė */
.atob-ist__intro strong { color: var(--atob-ink); font-weight: 700; }
.atob-ist__filters {
	max-width: 1200px; margin: 0 auto 20px; display: grid; gap: 10px;
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
}
.atob-ist__search, .atob-ist__select {
	width: 100%; padding: 12px 18px; border: 1px solid rgba(82, 63, 49, .2); border-radius: 999px;
	background-color: var(--atob-paper); font: 500 14px var(--atob-sans); color: var(--atob-ink); margin: 0;
}
.atob-ist__select {
	appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23523F31' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 18px center;
}
.atob-ist__select.is-set { background-color: var(--atob-brown); color: var(--atob-paper); border-color: var(--atob-brown);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23FBFBFB' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); }
.atob-ist__search:focus, .atob-ist__select:focus { outline: 2px solid var(--atob-brown); outline-offset: 2px; }
.atob-ist__count { max-width: 1200px; margin: 0 auto 18px; font-size: 13px; color: var(--atob-graphite); }
.atob-ist__empty { max-width: 1200px; margin: 24px auto; font-family: var(--atob-serif); font-size: 22px; }

/* Kortelės */
.atob-ist__grid {
	max-width: 1200px; margin: 0 auto; display: grid; gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.atob-card {
	display: flex; flex-direction: column; text-decoration: none; color: inherit;
	background: var(--atob-paper); border-radius: 4px; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.atob-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(13, 13, 13, .35); }
.atob-card[hidden] { display: none; }
.atob-card__cover { aspect-ratio: 16 / 10; background: var(--atob-brown); overflow: hidden; }
.atob-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.atob-card:hover .atob-card__cover img { transform: scale(1.03); }
.atob-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.atob-card__title { font-family: var(--atob-serif); font-weight: 500; font-size: 19px; line-height: 1.15; margin: 0; color: var(--atob-ink); }
.atob-card__excerpt {
	font-size: 13px; line-height: 1.5; color: var(--atob-graphite); margin: 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.atob-card__meta { margin-top: auto; padding-top: 6px; font-size: 11px; color: var(--atob-brown); display: flex; align-items: center; gap: 4px; }
.atob-card__arrow { margin-left: auto; font-size: 18px; transition: transform .2s; }
.atob-card:hover .atob-card__arrow { transform: translateX(4px); }

/* Vieno ištekliaus puslapis */
.atob-ist__back { display: inline-block; max-width: 1100px; font-size: 13px; color: var(--atob-brown); text-decoration: none; margin-bottom: 28px; }
.atob-ist--single > .atob-ist__back { display: block; margin-left: auto; margin-right: auto; }
.atob-single { max-width: 1100px; margin: 0 auto; }
.atob-single__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: 48px; }
.atob-single__title { font-family: var(--atob-serif); font-weight: 500; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; margin: 12px 0 16px; }
.atob-single__lead { font-size: 17px; line-height: 1.6; color: var(--atob-graphite); margin: 0 0 24px; }
.atob-single__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; }
.atob-single__facts span { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--atob-brown); margin-bottom: 2px; font-weight: 600; }
.atob-single__cover { border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; }
.atob-single__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.atob-single__content { max-width: 720px; font-size: 17px; line-height: 1.75; color: var(--atob-graphite); }
.atob-single__content h2 { font-family: var(--atob-serif); font-weight: 500; font-size: 32px; line-height: 1.2; color: var(--atob-ink); margin: 48px 0 14px; }
.atob-single__content h3 { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--atob-ink); margin: 32px 0 8px; }
.atob-single__content ol, .atob-single__content ul { padding-left: 22px; }
.atob-single__content li { margin-bottom: 8px; }
.atob-single__content blockquote {
	margin: 32px 0; padding: 24px 28px; background: var(--atob-sand); border-left: 3px solid var(--atob-brown);
	font-family: var(--atob-serif); font-style: italic; font-size: 19px; color: var(--atob-ink);
}
.atob-single__content pre, .atob-copy__text {
	background: var(--atob-ink); color: var(--atob-cream); padding: 22px 24px; border-radius: 4px;
	white-space: pre-wrap; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; margin: 0;
}
.atob-single__content code { background: var(--atob-sand); padding: 2px 6px; border-radius: 3px; font-size: .9em; }
.atob-single__content pre code { background: none; padding: 0; }

/* Gavimo blokas */
.atob-get { max-width: 720px; margin: 56px 0 0; }
.atob-get__gate { background: var(--atob-brown); color: var(--atob-cream); padding: clamp(28px, 4vw, 44px); border-radius: 4px; }
.atob-get__title { font-family: var(--atob-serif); font-weight: 500; font-size: 34px; margin: 0 0 8px; color: var(--atob-paper); }
.atob-get__title em { color: var(--atob-champagne); }
.atob-get__gate p { margin: 0 0 20px; line-height: 1.6; }
.atob-get__form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.atob-get__form input[type="email"] {
	padding: 14px 18px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; min-width: 0;
	background: var(--atob-paper); color: var(--atob-ink);
}
.atob-get__form button, .atob-get__download, .atob-copy__btn {
	padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-block;
	font: 600 13px/1 var(--atob-sans); letter-spacing: .08em; text-transform: uppercase;
	background: var(--atob-champagne); color: var(--atob-ink); transition: opacity .2s;
}
.atob-get__form button:hover, .atob-get__download:hover, .atob-copy__btn:hover { opacity: .85; }
.atob-get__form button[disabled] { opacity: .6; cursor: wait; }
.atob-get__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.atob-get__consent { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; opacity: .85; display: flex; gap: 8px; align-items: flex-start; }
.atob-get__msg { grid-column: 1 / -1; margin: 0 !important; font-size: 13px; color: var(--atob-champagne); }
.atob-get__result { display: grid; gap: 16px; }
.atob-get__note { margin: 0; padding: 16px 20px; background: var(--atob-sand); border-left: 3px solid var(--atob-brown); font-size: 15px; line-height: 1.6; color: var(--atob-ink); }
.atob-get__download { background: var(--atob-brown); color: var(--atob-paper); justify-self: start; }
.atob-copy { position: relative; }
.atob-copy__title { font-family: var(--atob-serif); font-weight: 500; font-size: 22px; line-height: 1.3; margin: 20px 0 -4px; color: var(--atob-ink); }
.atob-copy__text { padding-top: 56px; }
.atob-copy__btn { position: absolute; top: 12px; right: 12px; padding: 9px 16px; font-size: 11px; }

/* Susiję */
.atob-ist__related { max-width: 1200px; margin: 96px auto 0; }
.atob-ist__related-title { font-family: var(--atob-serif); font-weight: 500; font-size: 36px; margin: 0 0 24px; }

@media (max-width: 760px) {
	.atob-single__head { grid-template-columns: 1fr; }
	.atob-single__cover { order: -1; }
	.atob-get__form { grid-template-columns: 1fr; }
	.atob-ist__filters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.atob-ist__search { grid-column: 1 / -1; }
	.atob-ist__select { font-size: 12px; padding: 11px 26px 11px 12px; background-position: right 10px center; text-overflow: ellipsis; }
}
@media (max-width: 600px) {
	.atob-ist__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.atob-card__body { padding: 10px 12px 12px; }
	.atob-card__title { font-size: 15px; }
	.atob-card__excerpt { display: none; }
}
