.home-author-rail {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.cover {
  --cover-gutter: clamp(.95rem, 3.5vw, 3.8rem);
  width: min(calc(100% - 2 * var(--gutter)), 1480px);
  margin: clamp(.72rem, 1.5vw, 1.35rem) auto;
  overflow: clip;
  border-radius: clamp(.6rem, 1.2vw, 1.15rem);
}

.cover .container-editorial { width: calc(100% - 2 * var(--cover-gutter)); }

@media (min-width: 821px) {
  .cover .cover-inner { min-height: clamp(19rem, 24vw, 26rem); padding-block: clamp(1.6rem, 2.4vw, 2.8rem); }
  .cover .cover-title { font-size: clamp(1.4rem, 1.1rem + 1.15vw, 2.1rem); }
  .cover .cover-copy { width: min(62%, 48rem); }
}

.home-author-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "heading track actions";
  align-items: center;
  gap: clamp(.8rem, 2.35vw, 2.4rem);
  padding-block: .68rem;
}

#home-author-heading {
  grid-area: heading;
  margin: 0;
  color: var(--ink);
  font: 550 var(--fs-card)/1.24 var(--display);
}

.home-author-actions,
.home-shelf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .8rem;
}

.home-author-actions { grid-area: actions; justify-content: end; }

.home-author-track,
.home-shelf-track {
  display: grid;
  grid-auto-flow: column;
  gap: .72rem;
  min-width: 0;
  margin: 0 -.28rem;
  padding: .28rem .28rem .45rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: .28rem;
  scroll-snap-type: x proximity;
  list-style: none;
}

.home-author-track {
  grid-area: track;
  grid-auto-columns: clamp(4.6rem, 6.5vw, 5.55rem);
  justify-content: safe center;
  scrollbar-width: none;
}

.home-author-track > li,
.home-shelf-track > li {
  min-width: 0;
  scroll-snap-align: start;
}

.home-author-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  height: 100%;
  /* Üstte pay: üzerine gelince büyüyen portre kaydırma alanında kırpılmasın */
  padding: .3rem .15rem .18rem;
  border-radius: .65rem;
  text-align: center;
}

.home-author-portrait {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 3.55rem;
  height: 3.55rem;
  padding: .16rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .34s cubic-bezier(.34, 1.56, .64, 1);
}

/* Bütün yazarlar aynı halkayla; fareyle üzerine gelince portre yaylı bir hareketle büyür.
   Klavye odağında da büyür ve halka vurgu rengini alır. */
.home-author-link:is(:hover, :focus-visible) .home-author-portrait { transform: scale(1.1); }
.home-author-link:focus-visible .home-author-portrait { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .home-author-portrait { transition: none; }
  .home-author-link:is(:hover, :focus-visible) .home-author-portrait { transform: none; }
}

.home-author-portrait img,
.home-author-initials {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Saydam PNG portrelerin arkası sade, yumuşak bir zemin (harf yok) */
.home-author-portrait img { object-fit: cover; background: var(--accent-cobalt-soft); }

.home-author-initials {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-cobalt-soft);
  font: 550 1rem/1 var(--display);
}

.home-author-name,
.home-shelf-title,
.home-shelf-caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.home-author-name {
  -webkit-line-clamp: 2;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.23;
}

.home-author-link:hover .home-author-name,
.home-shelf-pdf { color: var(--accent); }

.home-shelves {
  display: grid;
  gap: clamp(1.75rem, 4.4vw, 4.8rem);
  margin-block: clamp(2.1rem, 4.35vw, 4.2rem);
}
/* Ajandanın alt boşluğu zaten var; raf ajandadan sonra gelince üst boşluk ikiye katlanmasın */
.home-spread + .home-shelves { margin-top: 0; }

.home-shelf {
  min-width: 0;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

.home-shelf-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3rem .7rem;
  margin-bottom: .55rem;
}

.home-shelf-heading h2 {
  margin: 0;
  font: 550 var(--fs-section)/1.2 var(--display);
  letter-spacing: -.03em;
}

.home-shelf-track {
  grid-auto-columns: clamp(7.6rem, 26%, 10.6rem);
  gap: clamp(.7rem, 1.35vw, 1.1rem);
  padding-bottom: .72rem;
}

.home-shelf-link {
  display: block;
  height: 100%;
  border-radius: .6rem;
}

.home-shelf-title {
  color: var(--ink);
  -webkit-line-clamp: 2;
  margin-top: .34rem;
  font: 550 var(--fs-compact)/1.24 var(--display);
}

.home-shelf-caption {
  -webkit-line-clamp: 2;
  margin-top: .22rem;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.37;
}

.home-shelf-caption strong { margin-inline-end: .32rem; color: var(--accent); font-weight: 650; }

.home-shelf-pdf {
  min-height: 2.4rem;
  padding: .35rem .74rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  margin-top: .4rem;
}

.home-spread .dispatch p { max-width: 72ch; }

@media (min-width: 880px) {
  .home-shelves--paired { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-shelf--wide { grid-column: 1 / -1; }
}

@media (max-width: 730px) {
  .home-author-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "heading actions" "track track";
    gap: .35rem .7rem;
    padding-block: .45rem .52rem;
  }
  .home-author-actions { gap: .3rem .5rem; }
  .home-author-track { justify-content: start; gap: .43rem; }
  .home-author-portrait { width: 3.15rem; height: 3.15rem; }
  .home-shelf-track { grid-auto-columns: clamp(7.6rem, 29%, 10rem); }
}

/* Son gelişmeler ile Mevzuat ajandası arasındaki mobil uygulama bandı */
.app-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 38%);
  margin-block-start: clamp(1rem, 2.1vw, 2rem);
  border: 1px solid var(--line-hairline);
  border-radius: clamp(.6rem, 1.2vw, 1.15rem);
  background: var(--bg-surface);
}
.app-home-copy {
  align-self: center;
  padding: 1.35rem clamp(1.15rem, 3.05vw, 3rem);
}
.app-home h2 {
  margin: 0;
  font: 600 var(--fs-section)/1.2 var(--display);
  letter-spacing: -.026em;
}
.app-home p { margin: .4rem 0 0; color: var(--ink-secondary); font-size: .88rem; line-height: 1.5; }
.app-home .app-store-badges { margin-block-start: .95rem; }
.app-home-visual {
  display: grid;
  place-items: center;
  padding: .8rem 1rem;
  border-start-end-radius: inherit;
  border-end-end-radius: inherit;
  background: var(--accent-cobalt-soft);
}
.app-home-screen {
  width: min(100%, 12.75rem);
  overflow: hidden;
  border: 4px solid var(--brand-deep);
  border-radius: .95rem;
  box-shadow: 0 .45rem .85rem -.35rem rgb(16 35 69 / .42);
}
.app-home-screen img { display: block; width: 100%; height: auto; }

@media (max-width: 650px) {
  .app-home { grid-template-columns: minmax(0, 1fr); }
  .app-home-copy { padding: .95rem; }
  .app-home h2 { font-size: 1.19rem; }
  .app-home p { font-size: .81rem; }
  .app-home .app-store-badges { margin-block-start: .75rem; }
  .app-home-visual { display: none; }
}
