/*
Theme Name: Alma Custom
Theme URI: https://www.alma.co.rs/
Author: ChatGPT
Description: Custom responsive WordPress theme for Izdavačka kuća Alma, with book catalogue, authors, libraries, news, filters, and sample importer.
Version: 3.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: alma-custom
*/

:root {
  --alma-blue: #27348b;
  --alma-blue-deep: #16206d;
  --alma-blue-soft: #e9eef9;
  --alma-sky: #dfe8f7;
  --alma-ink: #171923;
  --alma-muted: #647085;
  --alma-paper: #fffdf8;
  --alma-line: #dce2ee;
  --alma-accent: #b4493f;
  --alma-gold: #d5a64c;
  --alma-shadow: 0 22px 60px rgba(22, 32, 109, .13);
  --alma-radius: 22px;
  --alma-serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --alma-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--alma-ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.96) 0 8%, transparent 9%),
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.55) 0 9%, transparent 10%),
    linear-gradient(135deg, #c9d6ea 0%, #eef3fb 45%, #d8e5f5 100%);
  font-family: var(--alma-sans);
  line-height: 1.65;
}

a { color: var(--alma-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--alma-accent); }

img { max-width: 100%; height: auto; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

.alma-page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto 34px;
  background: rgba(255, 253, 248, .96);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--alma-shadow);
  border-radius: 32px;
  overflow: clip;
}

.alma-top-rule,
.alma-bottom-rule {
  height: 11px;
  background:
    linear-gradient(90deg, var(--alma-blue-deep), var(--alma-blue), #5266bb, var(--alma-blue));
}

.site-header {
  position: relative;
  background:
    linear-gradient(180deg, rgba(233,238,249,.95), rgba(255,253,248,.98)),
    repeating-linear-gradient(-5deg, rgba(39,52,139,.06) 0 1px, transparent 1px 9px);
}

.alma-brand-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  padding: clamp(18px, 4vw, 36px) clamp(18px, 5vw, 56px) clamp(14px, 3vw, 28px);
}

.site-branding {
  display: flex;
  align-items: end;
  gap: 16px;
  text-decoration: none;
}

.alma-apple {
  width: 50px;
  height: 50px;
  border-radius: 45% 55% 52% 48%;
  background: radial-gradient(circle at 35% 28%, #f9e5df 0 12%, #c94d46 13% 58%, #8b242f 59% 100%);
  position: relative;
  box-shadow: inset -7px -8px 15px rgba(0,0,0,.16);
  flex: 0 0 auto;
}

.alma-apple::before {
  content: "";
  position: absolute;
  width: 10px; height: 22px;
  border-radius: 8px;
  background: #563a20;
  left: 27px; top: -13px;
  transform: rotate(20deg);
}

.alma-apple::after {
  content: "";
  position: absolute;
  width: 20px; height: 12px;
  border-radius: 80% 20% 80% 20%;
  background: #547b44;
  left: 33px; top: -9px;
  transform: rotate(-20deg);
}

.site-title {
  margin: 0;
  font-family: var(--alma-serif);
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: .82;
  color: var(--alma-blue-deep);
  letter-spacing: .02em;
  font-weight: 400;
}

.site-description {
  margin: .4rem 0 0;
  color: var(--alma-muted);
  font-size: .93rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.alma-header-search form,
.search-form {
  display: flex;
  gap: 10px;
}

.alma-header-search label,
.search-form label { flex: 1; }

.alma-header-search input[type="search"],
.search-form input[type="search"],
.alma-filter input,
.alma-filter select {
  width: 100%;
  border: 1px solid var(--alma-line);
  border-radius: 999px;
  background: #fff;
  padding: 13px 17px;
  color: var(--alma-ink);
  font: inherit;
  box-shadow: 0 8px 20px rgba(23,25,35,.04);
}

.alma-header-search button,
.search-submit,
.alma-button,
button.alma-button {
  border: 0;
  border-radius: 999px;
  background: var(--alma-blue);
  color: #fff;
  padding: 13px 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 9px 18px rgba(39,52,139,.22);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.alma-header-search button:hover,
.search-submit:hover,
.alma-button:hover {
  background: var(--alma-blue-deep);
  color: #fff;
}

.main-navigation {
  border-top: 1px solid rgba(39,52,139,.14);
  border-bottom: 1px solid rgba(39,52,139,.14);
  background: rgba(255,255,255,.75);
  padding: 0 clamp(16px, 4vw, 48px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--alma-line);
  background: #fff;
  color: var(--alma-blue-deep);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 12px 0;
  font-weight: 700;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: block;
  padding: 15px 11px;
  text-decoration: none;
  color: var(--alma-blue-deep);
  font-weight: 750;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .88rem;
  border-radius: 14px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--alma-blue-soft);
  color: var(--alma-accent);
}

.site-main {
  padding: clamp(22px, 4vw, 48px);
}

.alma-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--alma-radius);
  background:
    linear-gradient(135deg, rgba(39,52,139,.97), rgba(40,60,155,.88)),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.3), transparent 32%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.alma-hero::after {
  content: "А";
  position: absolute;
  right: -20px; bottom: -75px;
  font-family: var(--alma-serif);
  font-size: 18rem;
  line-height: 1;
  color: rgba(255,255,255,.06);
}

.alma-eyebrow {
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  opacity: .84;
  font-weight: 800;
}

.alma-hero h1,
.page-title,
.entry-title {
  font-family: var(--alma-serif);
  color: var(--alma-blue-deep);
  line-height: 1.08;
}

.alma-hero h1 {
  color: #fff;
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  font-weight: 400;
}

.alma-hero p {
  margin: 0;
  max-width: 62ch;
  font-size: 1.08rem;
  color: rgba(255,255,255,.88);
}

.alma-hero-card {
  background: rgba(255,255,255,.95);
  color: var(--alma-ink);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,.16);
}

.alma-hero-card h2 {
  margin: 0 0 14px;
  color: var(--alma-blue-deep);
  font-family: var(--alma-serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.alma-home-grid {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.45fr);
  gap: clamp(22px, 4vw, 42px);
}

.alma-section-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--alma-blue-deep);
  font-family: var(--alma-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 20px;
}

.alma-section-title::before {
  content: "";
  width: 12px; height: 36px;
  border-radius: 999px;
  background: var(--alma-accent);
  flex: 0 0 auto;
}

.alma-book-list {
  display: grid;
  gap: 18px;
}

.alma-book-strip {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--alma-line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(39,52,139,.06);
}

.alma-cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #edf1f8, #fff);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(23,25,35,.1);
}

.alma-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alma-cover-placeholder {
  font-family: var(--alma-serif);
  font-size: 2.4rem;
  color: var(--alma-blue);
}

.alma-book-strip h3,
.alma-card h3,
.alma-news-card h3 {
  margin: 0 0 .35rem;
  line-height: 1.18;
}

.alma-book-strip h3 a,
.alma-card h3 a,
.alma-news-card h3 a {
  text-decoration: none;
  color: var(--alma-blue-deep);
}

.alma-meta {
  color: var(--alma-muted);
  font-size: .93rem;
}

.alma-price {
  display: inline-flex;
  margin-top: .7rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: var(--alma-blue-soft);
  color: var(--alma-blue-deep);
  font-weight: 800;
  font-size: .85rem;
}

.alma-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
}

.alma-news-card,
.alma-card,
.alma-filter,
.alma-content-card {
  border: 1px solid var(--alma-line);
  border-radius: var(--alma-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(39,52,139,.07);
}

.alma-news-card {
  padding: clamp(20px, 3vw, 30px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.alma-news-card time {
  color: var(--alma-accent);
  font-weight: 800;
  font-size: .83rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.alma-news-card .alma-button {
  margin-top: auto;
  align-self: flex-start;
}

.alma-archive-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.alma-filter {
  padding: 18px;
  position: sticky;
  top: 20px;
}

.alma-filter h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-family: var(--alma-serif);
  color: var(--alma-blue-deep);
}

.alma-filter .field {
  margin-bottom: 13px;
}

.alma-filter label {
  display: block;
  margin: 0 0 6px;
  font-size: .85rem;
  font-weight: 800;
  color: var(--alma-blue-deep);
}

.alma-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.alma-reset {
  color: var(--alma-muted);
  display: inline-flex;
  align-items: center;
  padding: 10px 6px;
}

.alma-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.alma-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.alma-card .alma-cover {
  border-radius: 0;
  box-shadow: none;
  background: var(--alma-blue-soft);
}

.alma-card-body {
  padding: 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.alma-card .alma-button {
  margin-top: auto;
  align-self: flex-start;
}

.alma-single-book {
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.alma-single-book .alma-cover {
  border-radius: 18px;
}

.alma-book-facts {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 9px;
}

.alma-book-facts li {
  border-bottom: 1px dashed var(--alma-line);
  padding-bottom: 8px;
}

.alma-book-facts strong {
  color: var(--alma-blue-deep);
}

.alma-book-sections {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.alma-content-card {
  padding: clamp(20px, 3vw, 30px);
}

.alma-content-card h2 {
  margin: 0 0 12px;
  font-family: var(--alma-serif);
  color: var(--alma-blue-deep);
  font-weight: 400;
}

.alma-library-cloud,
.alma-initials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.alma-library-cloud a,
.alma-initials a,
.alma-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--alma-blue-soft);
  color: var(--alma-blue-deep);
  text-decoration: none;
  font-weight: 750;
  font-size: .9rem;
}

.alma-initial-group {
  margin: 24px 0;
  padding-top: 14px;
  border-top: 1px solid var(--alma-line);
}

.alma-initial {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--alma-blue);
  color: #fff;
  font-family: var(--alma-serif);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.alma-author-list {
  columns: 3 220px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.alma-author-list li {
  break-inside: avoid;
  margin: 0 0 8px;
}

.entry-content {
  max-width: 78ch;
}

.entry-content h2,
.entry-content h3 {
  color: var(--alma-blue-deep);
  font-family: var(--alma-serif);
  font-weight: 400;
}

.site-footer {
  background: var(--alma-blue-deep);
  color: rgba(255,255,255,.82);
  padding: clamp(24px, 4vw, 42px) clamp(20px, 5vw, 56px);
}

.site-footer a { color: #fff; }

.alma-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.alma-footer-title {
  font-family: var(--alma-serif);
  font-size: 2rem;
  color: #fff;
}

@media (max-width: 860px) {
  .alma-brand-row,
  .alma-hero,
  .alma-home-grid,
  .alma-archive-layout,
  .alma-single-book,
  .alma-footer-grid {
    grid-template-columns: 1fr;
  }

  .alma-header-search form,
  .search-form {
    flex-direction: column;
  }

  .menu-toggle { display: inline-flex; }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    padding-bottom: 14px;
  }

  .main-navigation.toggled ul { display: flex; }

  .main-navigation a { padding: 11px 10px; }

  .alma-news-grid { grid-template-columns: 1fr; }

  .alma-filter { position: static; }
}

@media (max-width: 560px) {
  .alma-page-shell {
    width: min(100% - 18px, 1240px);
    margin-top: 9px;
    border-radius: 22px;
  }
  .site-main { padding: 18px; }
  .alma-book-strip { grid-template-columns: 76px 1fr; }
  .alma-book-grid { grid-template-columns: 1fr; }
}

/* v1.1 refinements: full-width modern layout, library cards, and related shelves */
body {
  background: #fff;
}

.alma-page-shell {
  width: 100%;
  margin: 0;
  background: #fff;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.site-header {
  border-bottom: 1px solid var(--alma-line);
}

.alma-brand-row,
.main-navigation,
.site-main,
.alma-footer-grid {
  width: min(1480px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.main-navigation {
  padding-left: 0;
  padding-right: 0;
}

.site-main {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  padding-left: 0;
  padding-right: 0;
}

.alma-top-rule,
.alma-bottom-rule {
  height: 8px;
}

.alma-wide-intro {
  max-width: 900px;
  margin-bottom: 28px;
}

.alma-wide-intro p {
  color: var(--alma-muted);
  font-size: 1.06rem;
}

.alma-library-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 18px;
}

.alma-library-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 136px;
  padding: 20px;
  border: 1px solid var(--alma-line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(246,248,253,.96)),
    radial-gradient(circle at top right, rgba(39,52,139,.14), transparent 36%);
  text-decoration: none;
  color: var(--alma-ink);
  box-shadow: 0 14px 34px rgba(39,52,139,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.alma-library-card:hover {
  transform: translateY(-3px);
  border-color: rgba(39,52,139,.34);
  box-shadow: 0 22px 46px rgba(39,52,139,.12);
  color: var(--alma-ink);
}

.alma-library-icon {
  grid-row: span 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--alma-blue);
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 10px 20px rgba(39,52,139,.2);
}

.alma-library-title {
  display: block;
  color: var(--alma-blue-deep);
  font-family: var(--alma-serif);
  font-size: 1.28rem;
  line-height: 1.15;
}

.alma-library-count {
  display: inline-flex;
  align-self: start;
  color: var(--alma-accent);
  font-weight: 800;
  font-size: .86rem;
}

.alma-library-desc {
  color: var(--alma-muted);
  font-size: .92rem;
}

.alma-book-visual {
  position: sticky;
  top: 20px;
}

.alma-related-wrap {
  display: grid;
  gap: 34px;
  margin-top: 42px;
}

.alma-related-block {
  padding-top: 4px;
}

.alma-related-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
  border-top: 1px solid var(--alma-line);
  padding-top: 22px;
}

.alma-related-heading h2,
.alma-related-block.alma-content-card h2 {
  margin: 0;
  color: var(--alma-blue-deep);
  font-family: var(--alma-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
}

.alma-related-heading span {
  color: var(--alma-muted);
  font-size: .9rem;
}

.alma-book-slider-wrap {
  position: relative;
}

.alma-book-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 320px);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
}

.alma-slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 12px;
}

.alma-slider-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--alma-line);
  background: #fff;
  color: var(--alma-blue-deep);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(39,52,139,.09);
}

.alma-slider-button:hover {
  background: var(--alma-blue);
  color: #fff;
}

.alma-slider-button:disabled {
  opacity: .38;
  cursor: default;
}

.alma-slider-button:disabled:hover {
  background: #fff;
  color: var(--alma-blue-deep);
}

.alma-book-carousel .alma-card {
  scroll-snap-align: start;
}

.alma-book-carousel::-webkit-scrollbar {
  height: 10px;
}

.alma-book-carousel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--alma-blue-soft);
  border: 2px solid #fff;
}

.alma-book-facts li a {
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 860px) {
  .alma-brand-row,
  .main-navigation,
  .site-main,
  .alma-footer-grid {
    width: min(100% - 28px, 1480px);
  }
  .alma-book-visual { position: static; }
  .alma-related-heading { align-items: start; flex-direction: column; }
  .alma-book-carousel { grid-auto-columns: minmax(260px, 82vw); }
}

/* v1.3 polish: tighter shelves, editorial pages, configurable apple mark, modern footer */
.site-title {
  font-size: clamp(2.3rem, 5.6vw, 4.75rem);
}
.site-description {
  text-transform: none;
  letter-spacing: .045em;
  font-size: 1rem;
}
.alma-apple.has-image {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(22, 32, 109, .16);
  padding: 6px;
}
.alma-apple.has-image::before,
.alma-apple.has-image::after { display: none; }
.alma-apple.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.alma-book-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.alma-card-body {
  padding: 20px;
}

.alma-book-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin: 22px 0;
}
.alma-book-facts li {
  border: 1px solid var(--alma-line);
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff, #f8faff);
  min-height: 64px;
}
.alma-book-facts strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .055em;
  margin-bottom: 2px;
}

.alma-related-wrap {
  gap: 42px;
}
.alma-related-heading {
  padding-top: 28px;
  margin-bottom: 18px;
}
.alma-related-heading span {
  display: none;
}
.alma-book-carousel {
  grid-auto-columns: minmax(300px, 330px);
  gap: 32px;
  padding: 4px 4px 22px;
}
.alma-related-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}
.alma-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(39, 52, 139, .18);
  border-radius: 999px;
  padding: 11px 18px;
  background: #fff;
  color: var(--alma-blue-deep);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(39,52,139,.08);
}
.alma-more-link:hover {
  background: var(--alma-blue);
  color: #fff;
}
.alma-slider-controls {
  margin-bottom: 16px;
}

.alma-page-plain,
.alma-editorial-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 68px) 0;
}
.alma-page-plain .entry-title,
.alma-editorial-page .entry-title {
  font-family: var(--alma-serif);
  color: var(--alma-blue-deep);
  font-weight: 400;
  font-size: clamp(2.15rem, 4vw, 4rem);
  margin-bottom: 18px;
}
.alma-page-plain .entry-content,
.alma-editorial-page .entry-content {
  max-width: 76ch;
  font-size: 1.08rem;
}
.alma-editorial-list {
  display: grid;
  gap: 30px;
  max-width: 1020px;
  margin: 0 auto;
}
.alma-editorial-item {
  padding: 0 0 30px;
  border-bottom: 1px solid var(--alma-line);
}
.alma-editorial-item time {
  color: var(--alma-accent);
  font-weight: 800;
  font-size: .84rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.alma-editorial-item h3 {
  margin: 8px 0 8px;
  font-family: var(--alma-serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
}
.alma-editorial-item h3 a {
  color: var(--alma-blue-deep);
  text-decoration: none;
}

.site-footer {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.12), transparent 28%),
    linear-gradient(135deg, var(--alma-blue-deep), #11194f 58%, #0d143f);
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: clamp(30px, 5vw, 46px);
}
.alma-footer-grid {
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: clamp(24px, 4vw, 60px);
}
.alma-footer-title {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: .95;
}
.alma-footer-tagline {
  color: rgba(255,255,255,.78);
  margin-top: 8px;
  font-size: 1.02rem;
}
.alma-footer-heading {
  color: #fff;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  margin: 0 0 12px;
}
.alma-footer-books {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.alma-footer-books a {
  text-decoration: none;
}
.alma-footer-books small {
  display: block;
  color: rgba(255,255,255,.62);
}
.alma-footer-contact p,
.alma-footer-about p {
  margin: 0 0 10px;
}
.alma-footer-bottom {
  width: min(1480px, calc(100% - 48px));
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.62);
  font-size: .9rem;
}

@media (max-width: 980px) {
  .alma-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .alma-footer-about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 860px) {
  .alma-book-facts {
    grid-template-columns: 1fr;
  }
  .alma-book-carousel {
    grid-auto-columns: minmax(280px, 82vw);
    gap: 22px;
  }
}
@media (max-width: 640px) {
  .alma-footer-grid {
    grid-template-columns: 1fr;
  }
  .alma-footer-bottom {
    width: min(100% - 28px, 1480px);
  }
}

/* v1.4 editorial content types and card archives */
.alma-section-header {
  max-width: 1120px;
  margin: 0 auto 28px;
  padding: clamp(28px, 4vw, 54px) 0 8px;
}
.alma-section-header .page-title {
  margin: 0 0 10px;
  font-family: var(--alma-serif);
  font-weight: 400;
  color: var(--alma-blue-deep);
  font-size: clamp(2.1rem, 4vw, 4rem);
}
.alma-section-header p:not(.alma-eyebrow) {
  max-width: 760px;
  color: var(--alma-muted);
  font-size: 1.08rem;
}
.alma-editorial-card-grid {
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 34px);
}
.alma-editorial-card p {
  color: #303342;
  line-height: 1.65;
  font-size: .98rem;
  text-transform: none;
  letter-spacing: normal;
}
.alma-more-editorial {
  max-width: 1180px;
  margin: clamp(34px, 6vw, 72px) auto 0;
}
.alma-more-editorial .alma-related-heading {
  border-top: 1px solid var(--alma-line);
}
.alma-editorial-page time {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--alma-accent);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
@media (max-width: 680px) {
  .alma-editorial-card-grid {
    grid-template-columns: 1fr;
  }
  .alma-more-editorial .alma-related-heading {
    align-items: flex-start;
  }
}

/* v1.6 official Alma logo and palette alignment */
:root {
  --alma-blue: #3156a4;
  --alma-blue-deep: #24205f;
  --alma-blue-soft: #eaf3fb;
  --alma-sky: #59c6d2;
  --alma-cyan-soft: #edf9fb;
  --alma-ink: #151735;
  --alma-muted: #5e6682;
  --alma-paper: #ffffff;
  --alma-line: #d8e3f2;
  --alma-accent: #3156a4;
  --alma-yellow: #fff12b;
  --alma-shadow: 0 22px 60px rgba(36, 32, 95, .12);
}

body { background: #fff; }

.alma-top-rule,
.alma-bottom-rule {
  background: linear-gradient(90deg, var(--alma-blue-deep), var(--alma-blue), var(--alma-sky), var(--alma-blue));
}

.site-header {
  background: radial-gradient(circle at 13% 0%, rgba(89, 198, 210, .20), transparent 30%), linear-gradient(180deg, #fff 0%, #f7fbfd 100%);
  border-bottom: 1px solid rgba(49, 86, 164, .16);
}

.alma-brand-row {
  align-items: center;
  padding-top: clamp(14px, 3vw, 28px);
  padding-bottom: clamp(12px, 2.4vw, 22px);
}

.site-branding {
  align-items: center;
  gap: 18px;
}

.alma-apple.has-image {
  width: clamp(72px, 9vw, 118px);
  height: clamp(66px, 8.4vw, 108px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.site-footer .alma-apple.has-image {
  width: 82px;
  height: 76px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .22));
}

.alma-apple.has-image img { object-fit: contain; }

.site-title {
  color: var(--alma-blue-deep);
  font-weight: 700;
  letter-spacing: .01em;
}

.site-description {
  color: var(--alma-blue);
  font-weight: 650;
}

.alma-header-search input[type="search"],
.search-form input[type="search"],
.alma-filter input,
.alma-filter select {
  border-color: rgba(49, 86, 164, .20);
  box-shadow: 0 10px 26px rgba(36, 32, 95, .07);
}

.alma-header-search input[type="search"]:focus,
.search-form input[type="search"]:focus,
.alma-filter input:focus,
.alma-filter select:focus {
  outline: 3px solid rgba(89, 198, 210, .28);
  border-color: var(--alma-sky);
}

.alma-header-search button,
.search-submit,
.alma-button,
button.alma-button {
  background: var(--alma-blue-deep);
  color: #fff;
  box-shadow: 0 12px 24px rgba(36, 32, 95, .24);
}

.alma-header-search button:hover,
.search-submit:hover,
.alma-button:hover {
  background: var(--alma-blue);
  color: #fff;
}

.main-navigation {
  background: rgba(255,255,255,.88);
  border-top-color: rgba(49, 86, 164, .14);
  border-bottom-color: rgba(49, 86, 164, .14);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: linear-gradient(135deg, rgba(89, 198, 210, .18), rgba(255, 241, 43, .18));
  color: var(--alma-blue-deep);
}

.alma-eyebrow,
.alma-card h3 a,
.alma-news-card h3 a,
.alma-editorial-item h3 a,
.alma-library-card h2 {
  color: var(--alma-blue-deep);
}

.alma-price {
  background: rgba(255, 241, 43, .42);
  color: var(--alma-blue-deep);
  border: 1px solid rgba(36, 32, 95, .10);
}

.alma-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 260px;
  padding: 24px;
  background: radial-gradient(circle at 30% 12%, rgba(89, 198, 210, .18), transparent 36%), linear-gradient(160deg, #fff, #eef7fb 54%, #e7edfb);
}

.alma-cover-placeholder img {
  width: min(78%, 210px);
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(36, 32, 95, .18));
}

.alma-card .alma-cover-placeholder img,
.alma-book-strip .alma-cover-placeholder img,
.alma-book-carousel .alma-cover-placeholder img {
  width: min(72%, 175px);
  max-height: 180px;
}

.site-footer {
  background: radial-gradient(circle at 12% 0%, rgba(89,198,210,.22), transparent 32%), radial-gradient(circle at 88% 18%, rgba(255,241,43,.11), transparent 26%), linear-gradient(135deg, #24205f 0%, #1d1954 54%, #12113a 100%);
}

.alma-footer-title,
.alma-footer-heading { color: #fff; }

.alma-footer-tagline,
.alma-footer-books small,
.alma-footer-contact p,
.alma-footer-about p,
.alma-footer-bottom { color: rgba(255,255,255,.74); }

.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--alma-yellow); }
.alma-footer-bottom { border-top-color: rgba(89,198,210,.28); }

@media (max-width: 760px) {
  .alma-brand-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .alma-apple.has-image {
    width: 78px;
    height: 72px;
  }
}

/* v1.7 logo vertical centering fixes */
.alma-apple.has-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.alma-apple.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

/* The official logo has stronger visual weight near the lower mark, so nudge
   placeholder uses slightly upward to look optically centered inside covers. */
.alma-cover-placeholder img {
  object-position: 50% 45%;
  transform: translateY(-8px);
}

.site-header .alma-apple.has-image img,
.site-footer .alma-apple.has-image img {
  transform: none;
  object-position: 50% 50%;
}

/* v1.8 placeholder and mobile menu refinements */
.alma-cover-placeholder {
  min-height: 0;
  box-sizing: border-box;
}

.alma-cover .alma-cover-placeholder,
.alma-card .alma-cover-placeholder,
.alma-book-strip .alma-cover-placeholder,
.alma-book-carousel .alma-cover-placeholder {
  min-height: 0;
  height: 100%;
}

.alma-cover-placeholder img {
  transform: none;
  object-position: 50% 50%;
}

.alma-card .alma-cover-placeholder img,
.alma-book-strip .alma-cover-placeholder img,
.alma-book-carousel .alma-cover-placeholder img {
  transform: translateY(-4px);
  object-position: 50% 48%;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.menu-toggle-icon {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}

.menu-toggle-icon span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .main-navigation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .menu-toggle {
    align-self: flex-end;
    margin-left: auto;
  }

  .main-navigation .menu,
  .main-navigation .menu-primary-container,
  .main-navigation div[class*="menu"] {
    width: 100%;
  }

  .main-navigation.toggled ul {
    align-items: stretch;
    text-align: right;
  }
}


/* v2.1 footer gradient polish for the official Alma logo */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(89, 198, 210, .34), transparent 34%),
    radial-gradient(circle at 78% 8%, rgba(255, 241, 43, .16), transparent 24%),
    linear-gradient(135deg, #eef9fd 0%, #59c6d2 0.2%, #3156a4 28%, #24205f 62%, #11143d 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.16), transparent 34%),
    radial-gradient(circle at 16% 22%, rgba(255,255,255,.28), transparent 22%);
  opacity: .8;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer .site-branding {
  align-items: center;
}

.site-footer .alma-apple.has-image {
  width: clamp(92px, 12vw, 136px);
  height: clamp(78px, 10vw, 116px);
  padding: 10px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 16%, rgba(255,255,255,.94), rgba(255,255,255,.66) 48%, rgba(255,255,255,.22) 100%);
  box-shadow:
    0 22px 46px rgba(8, 14, 48, .28),
    inset 0 0 0 1px rgba(255,255,255,.45);
  backdrop-filter: blur(4px);
}

.site-footer .alma-apple.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(8, 14, 48, .16));
}

@media (max-width: 760px) {
  .site-footer {
    background:
      radial-gradient(circle at 18% 0%, rgba(89, 198, 210, .34), transparent 38%),
      radial-gradient(circle at 100% 0%, rgba(255, 241, 43, .13), transparent 32%),
      linear-gradient(160deg, #3156a4 0%, #24205f 58%, #10133b 100%);
  }

  .site-footer .site-branding {
    justify-content: flex-start;
  }

  .site-footer .alma-apple.has-image {
    width: 104px;
    height: 88px;
    border-radius: 22px;
  }
}

/* v2.3 client calm-down pass */
.site-main {
  padding-top: clamp(30px, 4vw, 56px);
  padding-bottom: clamp(34px, 5vw, 70px);
}

.alma-hero,
.alma-hero-card {
  display: none;
}

.alma-home-grid-calm {
  grid-template-columns: minmax(270px, .58fr) minmax(0, 1.42fr);
  align-items: start;
}

.alma-section-title {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  color: var(--alma-blue);
}
.alma-section-title::before {
  background: var(--alma-sky);
  width: 8px;
  height: 28px;
}

.alma-book-strip-calm {
  border-radius: 0;
  box-shadow: none;
  border-color: rgba(49, 86, 164, .12);
  background: #fff;
  grid-template-columns: 82px 1fr;
  padding: 12px 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.alma-book-strip-calm .alma-cover,
.alma-single-book-calm .alma-cover,
.alma-small-cover-row .alma-cover {
  border-radius: 0;
}
.alma-book-strip-calm h3 {
  font-family: var(--alma-serif);
  font-size: 1.05rem;
  font-weight: 400;
  margin: .08rem 0 .25rem;
}
.alma-book-strip-calm h3 a {
  color: var(--alma-blue);
}
.alma-strip-author,
.alma-card-author {
  color: var(--alma-blue-deep);
  font-size: .93rem;
}
.alma-book-strip-calm .alma-meta {
  font-size: .88rem;
}
.alma-book-strip-calm .alma-price,
.alma-card .alma-price {
  display: none;
}

.alma-home-news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.alma-home-news-item {
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(49,86,164,.14);
}
.alma-home-news-image,
.alma-editorial-card-image,
.alma-single-news-image {
  display: block;
  margin: 0 0 14px;
  overflow: hidden;
}
.alma-home-news-image img,
.alma-editorial-card-image img,
.alma-single-news-image img {
  display: block;
  width: 100%;
  height: auto;
}
.alma-home-news-item h3 {
  text-align: center;
  margin: 0 0 12px;
  font-family: var(--alma-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.22;
}
.alma-home-news-item h3 a {
  color: #4f7bc7;
  text-decoration: none;
}
.alma-home-news-item p {
  margin: 0 0 8px;
  color: #22263b;
  font-family: var(--alma-serif);
  font-size: 1.03rem;
}
.alma-inline-date,
.alma-news-date-inline {
  color: var(--alma-muted);
  font-size: .9em;
}
.alma-text-more {
  color: #57bcca;
  text-decoration: none;
  font-weight: 650;
  font-size: .95rem;
  text-transform: lowercase;
}
.alma-text-more:hover {
  color: var(--alma-blue);
  text-decoration: underline;
}

.alma-library-card-grid-calm {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.alma-library-card-calm {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 96px;
  place-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  border: 1px solid rgba(49,86,164,.18);
}
.alma-library-card-calm:hover {
  transform: none;
  background: var(--alma-cyan-soft);
}
.alma-library-card-calm .alma-library-title {
  font-size: 1.18rem;
  color: var(--alma-blue);
}

.alma-single-book-calm {
  max-width: 980px;
  margin: 0 auto;
}
.alma-single-book-calm .alma-single-book {
  grid-template-columns: minmax(120px, 210px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 52px);
  align-items: start;
}
.alma-single-book-calm .entry-title {
  color: #4f7bc7;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  font-weight: 400;
  margin: 0 0 18px;
}
.alma-book-author-line {
  margin: 0 0 4px;
  font-family: var(--alma-serif);
  font-size: 1.22rem;
}
.alma-book-author-line a {
  color: var(--alma-blue-deep);
  text-decoration: none;
}
.alma-book-detail-line {
  margin: 0 0 11px;
  font-family: var(--alma-serif);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: #22263b;
}
.alma-book-sections-calm {
  display: block;
  max-width: 78ch;
  margin: clamp(34px, 6vw, 70px) auto 0;
}
.alma-book-text-section {
  padding: 34px 0;
  border-top: 2px dashed #79b8e6;
}
.alma-book-text-section h2,
.alma-other-author-books h2 {
  margin: 0 0 18px;
  color: #4f7bc7;
  font-size: 1.25rem;
  font-weight: 700;
}
.alma-book-text-section div {
  font-family: var(--alma-serif);
  font-size: 1.08rem;
  line-height: 1.8;
}
.alma-other-author-books {
  max-width: 78ch;
  margin: 0 auto;
  padding: 34px 0 0;
  border-top: 2px dashed #79b8e6;
}
.alma-small-cover-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 5vw, 54px);
}
.alma-small-cover-row a {
  display: block;
  width: 130px;
  text-decoration: none;
}
.alma-small-cover-row .alma-cover {
  box-shadow: none;
}
.alma-related-wrap {
  display: none;
}

.alma-card.alma-book-card-calm {
  border-radius: 0;
  box-shadow: none;
}
.alma-book-card-calm .alma-cover {
  border-radius: 0;
}
.alma-book-card-calm h3 {
  font-family: var(--alma-serif);
  font-weight: 400;
  font-size: 1.25rem;
}

.alma-editorial-card-calm {
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
}
.alma-editorial-card-calm time { display: none; }
.alma-editorial-card-calm h3 {
  text-align: center;
  font-family: var(--alma-serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}
.alma-editorial-card-calm h3 a { color: #4f7bc7; }
.alma-editorial-card-calm .alma-button { display: none; }
.alma-editorial-page.alma-news-single-calm,
.alma-editorial-page.alma-issue-single {
  max-width: 900px;
  font-family: var(--alma-serif);
}
.alma-editorial-page .entry-title {
  text-align: center;
  color: #4f7bc7;
  font-weight: 400;
}

.alma-author-profile {
  max-width: 1050px;
  margin: 0 auto;
}
.alma-author-profile-grid {
  display: grid;
  grid-template-columns: minmax(140px, 260px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: start;
}
.alma-author-photo img {
  display: block;
  width: 100%;
  border-radius: 0;
}
.alma-author-books-block {
  max-width: 1180px;
  margin: 42px auto 0;
}

.site-footer.alma-footer-calm {
  background:
    radial-gradient(circle at 10% 0%, rgba(89,198,210,.32), transparent 36%),
    linear-gradient(135deg, #3156a4 0%, #24205f 65%, #12143d 100%);
}
.alma-footer-grid-calm {
  grid-template-columns: auto minmax(280px, 1fr);
  align-items: center;
  max-width: 980px;
}
.alma-footer-contact-calm {
  font-family: var(--alma-serif);
  font-size: 1.05rem;
}
.alma-footer-contact-calm .alma-footer-heading {
  font-family: var(--alma-serif);
  font-size: 1.7rem;
  text-transform: none;
  letter-spacing: normal;
}

@media (max-width: 860px) {
  .alma-home-grid-calm,
  .alma-single-book-calm .alma-single-book,
  .alma-author-profile-grid,
  .alma-footer-grid-calm {
    grid-template-columns: 1fr;
  }
  .alma-home-news-item h3 { text-align: left; }
  .alma-single-book-calm .alma-book-visual { max-width: 220px; }
  .alma-footer-grid-calm { max-width: min(100% - 28px, 980px); }
}

/* v2.4 client polish: quiet editorial lists, PDF archive, contact page, compact footer */
.alma-editorial-line-list {
  max-width: min(100% - 48px, 1180px);
  margin: 0 auto clamp(42px, 7vw, 80px);
  display: grid;
  gap: clamp(24px, 4vw, 38px);
}

.alma-editorial-line {
  display: grid;
  grid-template-columns: minmax(120px, 210px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
  padding: 0 0 clamp(24px, 4vw, 36px);
  border-bottom: 1px solid rgba(49,86,164,.16);
  background: transparent;
  box-shadow: none;
}

.alma-editorial-line-image {
  display: block;
  overflow: hidden;
}

.alma-editorial-line-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.alma-editorial-line h3 {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--alma-serif);
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  line-height: 1.22;
  font-weight: 400;
}

.alma-editorial-line h3 a {
  color: #4f7bc7;
  text-decoration: none;
}

.alma-editorial-line h3 a:hover {
  color: var(--alma-blue-deep);
}

.alma-editorial-line p {
  margin: 0 0 8px;
  font-family: var(--alma-serif);
  font-size: 1.05rem;
  line-height: 1.68;
  color: #22263b;
}

.alma-pdf-issue-list {
  max-width: 920px;
  margin: 0 auto clamp(42px, 7vw, 80px);
  display: grid;
  gap: 14px;
}

.alma-pdf-issue-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(49,86,164,.16);
}

.alma-pdf-issue-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(49,86,164,.12), rgba(87,188,202,.12));
  color: var(--alma-blue);
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .82rem;
}

.alma-pdf-issue-row h3 {
  margin: 0 0 4px;
  font-family: var(--alma-serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
}

.alma-pdf-issue-row h3 a {
  color: #4f7bc7;
  text-decoration: none;
}

.alma-pdf-issue-row p {
  margin: 0;
  color: var(--alma-muted);
}

.alma-button-small {
  padding: .55rem .9rem;
  font-size: .9rem;
}

.alma-contact-page {
  max-width: 1080px;
  margin: 0 auto clamp(48px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.alma-contact-card {
  padding: clamp(22px, 3vw, 32px);
  background: #fff;
  border: 1px solid rgba(49,86,164,.16);
  box-shadow: 0 14px 34px rgba(39,52,139,.06);
}

.alma-contact-primary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, rgba(89,198,210,.12), rgba(49,86,164,.06));
}

.alma-contact-logo .alma-apple.has-image {
  width: 110px;
  height: auto;
}

.alma-contact-card h2,
.alma-contact-card h3 {
  margin: 0 0 10px;
  font-family: var(--alma-serif);
  color: var(--alma-blue-deep);
  font-weight: 400;
}

.alma-contact-card p {
  margin: 0 0 6px;
  font-size: 1.04rem;
}

.alma-contact-card a {
  color: var(--alma-blue);
  text-decoration: none;
}

.alma-contact-card a:hover {
  text-decoration: underline;
}

.site-footer.alma-footer-compact {
  padding: clamp(22px, 4vw, 36px) var(--alma-gutter) 0;
}

.alma-footer-grid-four {
  max-width: var(--alma-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
}

.alma-footer-col {
  min-width: 0;
}

.alma-footer-logo-col .site-branding {
  justify-content: flex-start;
  padding: 8px 10px;
}

.alma-footer-compact .alma-footer-heading {
  margin: 0 0 6px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.9);
}

.alma-footer-compact p {
  margin: 0 0 4px;
  color: rgba(255,255,255,.78);
  line-height: 1.48;
}

.alma-footer-compact .alma-footer-bottom {
  max-width: var(--alma-wide);
  margin: 18px auto 0;
  padding: 12px 0;
  font-size: .88rem;
}

@media (max-width: 840px) {
  .alma-editorial-line {
    grid-template-columns: 1fr;
  }
  .alma-editorial-line-image {
    max-width: 100%;
  }
  .alma-pdf-issue-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .alma-pdf-issue-action {
    grid-column: 2;
  }
  .alma-contact-page {
    grid-template-columns: 1fr;
  }
  .alma-contact-primary {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .alma-footer-grid-four {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .alma-footer-logo-col {
    grid-column: 1 / -1;
  }
  .alma-footer-logo-col .site-branding {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .alma-pdf-issue-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .alma-pdf-issue-icon {
    width: 54px;
    height: 54px;
  }
  .alma-pdf-issue-action {
    grid-column: auto;
  }
  .alma-footer-grid-four {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* v2.5 refinements: three contact cards, expandable book sections, page-based PDF repeater */
.alma-contact-page-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alma-contact-intro-full {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0 auto 10px;
  text-align: center;
  font-family: var(--alma-serif);
  font-size: 1.08rem;
  color: #22263b;
}

.alma-contact-page-three .alma-contact-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.alma-book-text-section .alma-text-more.alma-section-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  color: #4f7bc7;
  font: inherit;
  font-family: var(--alma-serif);
  cursor: pointer;
  text-decoration: none;
}

.alma-book-text-section .alma-text-more.alma-section-toggle:hover {
  color: var(--alma-blue-deep);
  text-decoration: underline;
}

.alma-section-pdf {
  margin-top: 14px;
}

.alma-book-text-section-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 220px);
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}

.alma-promotion-image {
  margin: 0;
}

.alma-promotion-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.alma-pdf-issue-repeater-list .alma-pdf-issue-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

@media (max-width: 840px) {
  .alma-contact-page-three,
  .alma-book-text-section-with-image {
    grid-template-columns: 1fr;
  }
  .alma-promotion-image {
    max-width: 260px;
  }
}


/* v2.6 fixes: wider editorial lists, stronger contact cards, author picker polish */
.alma-editorial-line-list {
  max-width: min(100% - 48px, 1180px);
}

.alma-editorial-line {
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
}

.alma-editorial-line-body {
  width: 100%;
}

.alma-contact-page-three {
  max-width: min(100% - 48px, 1120px);
  margin-left: auto;
  margin-right: auto;
}

.alma-contact-page-three .alma-contact-card {
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff, rgba(246,250,255,.96));
  border: 1px solid rgba(49,86,164,.18);
}

.alma-author-picker-field {
  grid-column: 1 / -1;
}

@media (max-width: 840px) {
  .alma-editorial-line-list,
  .alma-contact-page-three {
    max-width: min(100% - 28px, 100%);
  }
  .alma-editorial-line {
    grid-template-columns: 1fr;
  }
}

/* v2.7 fix: editorial archive rows must not use the older two-column grid. */
.alma-editorial-line-list {
  width: min(100% - 48px, 1120px);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.alma-editorial-line {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0 0 clamp(26px, 4vw, 40px);
  margin: 0 0 clamp(26px, 4vw, 40px);
  border-bottom: 1px solid rgba(49,86,164,.16);
  background: transparent;
  box-shadow: none;
}

.alma-editorial-line-image {
  display: block;
  width: min(100%, 520px);
  margin: 0 auto 18px;
  overflow: hidden;
}

.alma-editorial-line-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.alma-editorial-line-body {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.alma-editorial-line h3 {
  text-align: center;
}

@media (max-width: 840px) {
  .alma-editorial-line-list {
    width: min(100% - 28px, 100%);
  }

  .alma-editorial-line-image,
  .alma-editorial-line-body {
    max-width: 100%;
  }
}

/* v2.8 client feedback pass: calmer typography, PDF archives, compact footer */
.alma-brand-row {
  grid-template-columns: auto minmax(260px, 680px);
  justify-content: space-between;
  gap: clamp(26px, 5vw, 72px);
}
.alma-header-search {
  max-width: 680px;
  margin-left: auto;
  width: 100%;
}

.alma-home-grid-calm {
  position: relative;
  gap: clamp(34px, 5vw, 72px);
}
@media (min-width: 861px) {
  .alma-home-grid-calm > section:first-child {
    padding-right: clamp(22px, 3vw, 44px);
    border-right: 3px solid rgba(79,123,199,.38);
  }
}
.alma-section-title,
.alma-section-header .page-title,
.alma-cenovnik-header .page-title,
.alma-editorial-page .entry-title,
.alma-author-profile .entry-title,
.alma-contact-page + .entry-title {
  font-family: var(--alma-sans);
  font-weight: 750;
  letter-spacing: .01em;
}
.alma-section-title {
  text-transform: none;
}
.alma-book-strip-calm {
  grid-template-columns: 104px 1fr;
  gap: 16px;
}
.alma-book-strip-calm h3,
.alma-book-card-calm h3 {
  font-family: var(--alma-sans);
  font-weight: 650;
  font-size: 1.02rem;
}
.alma-strip-author,
.alma-card-author,
.alma-book-strip-calm .alma-meta {
  font-family: var(--alma-serif);
}
.alma-strip-author {
  color: #1f2450;
}
.alma-home-news-item h3,
.alma-editorial-line h3,
.alma-editorial-card-calm h3 {
  font-family: var(--alma-sans);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.alma-home-news-item h3 a,
.alma-editorial-line h3 a,
.alma-editorial-card-calm h3 a {
  color: var(--alma-blue);
}
.alma-home-news-item p,
.alma-editorial-line p {
  font-family: var(--alma-serif);
}
.alma-text-more,
.alma-section-toggle {
  font-family: var(--alma-sans) !important;
  font-weight: 750 !important;
}
.alma-inline-date,
.alma-news-date-inline,
.alma-editorial-card-calm time {
  display: none !important;
}

.single-alma_author .entry-title,
.alma-author-profile h1,
.alma-author-books-block h2,
.alma-author-books-block .alma-related-heading h2 {
  font-family: var(--alma-sans);
}
.alma-author-bio,
.alma-author-profile .entry-content {
  font-family: var(--alma-serif);
}

.site-footer.alma-footer-client_single {
  padding: clamp(20px, 3vw, 32px) var(--alma-gutter) 0;
}
.alma-footer-single {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--alma-serif);
  color: rgba(255,255,255,.84);
}
.alma-footer-single p {
  margin: 0 0 5px;
  line-height: 1.45;
}
.alma-footer-single-title {
  font-family: var(--alma-sans);
  font-weight: 750;
  color: #fff;
  letter-spacing: .02em;
}
.alma-footer-single a { color: #fff; }
.alma-social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.alma-social-links a {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.36);
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.alma-social-links a svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.alma-social-links a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.55);
  color: var(--alma-yellow);
}
.site-footer.alma-footer-client_single .alma-footer-bottom {
  max-width: 680px;
}

.alma-contact-page-client {
  max-width: 980px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: stretch;
}
.alma-contact-card-plain h2,
.alma-contact-card-plain h3 { display: none; }
.alma-contact-card-plain {
  font-family: var(--alma-serif);
  justify-content: center;
}
.alma-contact-social-card {
  text-align: center;
  align-items: center;
}
.alma-contact-social-card .alma-social-links a {
  color: var(--alma-blue);
  border-color: rgba(39,52,139,.18);
  background: linear-gradient(145deg, #ffffff, #eef4ff);
  box-shadow: 0 12px 28px rgba(22,32,109,.1);
}
.alma-contact-social-card .alma-social-links a:hover {
  background: linear-gradient(145deg, var(--alma-blue), var(--alma-blue-deep));
  border-color: transparent;
  color: #fff;
}

.alma-pdf-cover-grid {
  max-width: min(100% - 48px, 1100px);
  margin: 0 auto clamp(42px, 7vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(22px, 4vw, 42px);
}
.alma-pdf-cover-item {
  text-align: center;
}
.alma-pdf-cover-image {
  display: block;
  max-width: 220px;
  margin: 0 auto 14px;
  text-decoration: none;
}
.alma-pdf-cover-image img {
  display: block;
  width: 100%;
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(39,52,139,.11);
}
.alma-pdf-cover-item h3 {
  margin: 0 0 6px;
  font-family: var(--alma-sans);
  font-size: 1rem;
  line-height: 1.35;
}
.alma-pdf-cover-item h3 a,
.alma-pdf-text-link {
  color: var(--alma-blue);
  text-decoration: none;
}
.alma-pdf-text-link {
  font-family: var(--alma-sans);
  font-weight: 750;
}
.alma-novorecje-main-cover {
  max-width: 360px;
  margin: 0 auto clamp(28px, 5vw, 54px);
  text-align: center;
}
.alma-novorecje-main-cover img {
  display: block;
  width: 100%;
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(39,52,139,.11);
}
.alma-simple-pdf-list {
  max-width: 720px;
  margin: 0 auto clamp(42px, 7vw, 80px);
  font-family: var(--alma-serif);
}
.alma-simple-pdf-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(49,86,164,.14);
}
.alma-pdf-mini-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  flex: 0 0 auto;
  background: rgba(49,86,164,.1);
  color: var(--alma-blue);
  font-family: var(--alma-sans);
  font-size: .7rem;
  font-weight: 850;
}
.alma-simple-pdf-link a {
  color: var(--alma-blue);
  text-decoration: none;
}
.alma-simple-pdf-link a:hover { text-decoration: underline; }

.alma-cenovnik-header .alma-eyebrow { display: none; }
.alma-cenovnik-page {
  max-width: 920px;
}
.alma-cenovnik-intro {
  font-family: var(--alma-serif);
  margin-bottom: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(49,86,164,.14);
}
.alma-cenovnik-pdf {
  margin: 0 0 28px;
}
.alma-cenovnik-page .entry-content {
  font-family: var(--alma-serif);
}

@media (max-width: 860px) {
  .alma-brand-row {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .alma-header-search { max-width: 100%; }
  .alma-book-strip-calm {
    grid-template-columns: 96px 1fr;
  }
  .alma-contact-page-client {
    grid-template-columns: 1fr;
  }
}


/* v2.9 homepage cover size correction */
.alma-home-grid-calm .alma-book-strip-calm {
  grid-template-columns: clamp(122px, 9vw, 148px) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 24px);
  align-items: start;
}
.alma-home-grid-calm .alma-book-strip-calm .alma-cover {
  width: 100%;
  max-width: 148px;
  min-height: 0;
}
.alma-home-grid-calm .alma-book-strip-calm .alma-cover img,
.alma-home-grid-calm .alma-book-strip-calm .alma-cover-placeholder img {
  display: block;
}
@media (max-width: 680px) {
  .alma-home-grid-calm .alma-book-strip-calm {
    grid-template-columns: 118px minmax(0, 1fr);
  }
}
@media (max-width: 420px) {
  .alma-home-grid-calm .alma-book-strip-calm {
    grid-template-columns: 105px minmax(0, 1fr);
  }
}

.alma-price-table-wrap {
  margin: clamp(24px, 4vw, 42px) 0;
  overflow-x: auto;
}
.alma-price-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--alma-serif);
  background: #fff;
  border-top: 2px solid rgba(49,86,164,.28);
  border-bottom: 2px solid rgba(49,86,164,.18);
}
.alma-price-table th,
.alma-price-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(49,86,164,.14);
  text-align: left;
  vertical-align: top;
}
.alma-price-table th {
  font-family: var(--alma-sans);
  color: var(--alma-blue);
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(79,123,199,.06);
}
.alma-price-table td:first-child {
  font-weight: 650;
  color: var(--alma-blue-deep);
}
@media (max-width: 720px) {
  .alma-price-table th,
  .alma-price-table td {
    padding: 10px 11px;
    font-size: .92rem;
  }
}

/* v3.0 homepage book sidebar redesign: large cover above metadata */
.alma-home-grid-calm .alma-book-list {
  gap: clamp(30px, 4vw, 46px);
}
.alma-home-grid-calm .alma-book-strip-calm {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 14px;
  align-items: center;
  padding: 0 0 clamp(24px, 3vw, 34px);
  text-align: center;
}
.alma-home-grid-calm .alma-book-strip-calm > a {
  display: block;
  width: 80%;
  max-width: 360px;
  margin: 0 auto;
}
.alma-home-grid-calm .alma-book-strip-calm .alma-cover {
  width: 100%;
  max-width: none;
  min-height: 0;
}
.alma-home-grid-calm .alma-book-strip-calm > div {
  width: 90%;
  max-width: 360px;
  margin: 0 auto;
}
.alma-home-grid-calm .alma-book-strip-calm h3 {
  margin-top: .25rem;
}
@media (max-width: 860px) {
  .alma-home-grid-calm .alma-book-strip-calm > a,
  .alma-home-grid-calm .alma-book-strip-calm > div {
    width: min(82%, 340px);
  }
}
@media (max-width: 520px) {
  .alma-home-grid-calm .alma-book-strip-calm > a,
  .alma-home-grid-calm .alma-book-strip-calm > div {
    width: min(92%, 320px);
  }
}

/* v3.2 content width refinement: containers control width, not entry-content character limits */
.alma-page-plain,
.alma-editorial-page,
.alma-editorial-page.alma-news-single-calm,
.alma-editorial-page.alma-issue-single,
.alma-cenovnik-page,
.alma-contact-page-client {
  max-width: min(1120px, calc(100vw - 48px));
}

.entry-content,
.alma-page-plain .entry-content,
.alma-editorial-page .entry-content,
.alma-cenovnik-page .entry-content {
  width: 100%;
  max-width: none;
}

.alma-page-plain .entry-content,
.alma-editorial-page .entry-content,
.single-post .entry-content,
.page .entry-content {
  font-size: 1.08rem;
}

.alma-editorial-page.alma-news-single-calm .entry-content,
.alma-editorial-page.alma-issue-single .entry-content {
  margin-inline: auto;
}

@media (max-width: 720px) {
  .alma-page-plain,
  .alma-editorial-page,
  .alma-editorial-page.alma-news-single-calm,
  .alma-editorial-page.alma-issue-single,
  .alma-cenovnik-page,
  .alma-contact-page-client {
    max-width: calc(100vw - 28px);
  }

  .entry-content,
  .alma-page-plain .entry-content,
  .alma-editorial-page .entry-content,
  .alma-cenovnik-page .entry-content {
    max-width: 100%;
  }
}
