﻿.brand-mark img,
.brand-inline-mark img,
.logo-tool img {
  object-fit: contain;
}

.creator-badge {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(176, 131, 55, 0.18));
}

.profile-name-badge {
  width: 24px;
  height: 24px;
  margin-left: 8px;
  vertical-align: middle;
}

.profile-crown-badge {
  width: 34px;
  height: 34px;
  margin-left: 12px;
  transform: translateY(2px);
}

.hero-logo-panel {
  position: relative;
  width: min(360px, 86vw);
  display: grid;
  justify-items: center;
  gap: 12px;
}

.hero-logo-panel img {
  width: clamp(160px, 24vw, 280px);
  height: auto;
  object-fit: contain;
}

.societext-spin-minute {
  animation: societext-spin-minute 60s linear infinite;
  transform-origin: center center;
}

.societext-static-glb {
  animation: none !important;
}

@keyframes societext-spin-minute {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

.hero-logo-panel strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.hero-logo-panel span {
  color: var(--ochre);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.thread-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.thread-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(23, 29, 34, 0.06);
}

.thread-card-actions,
.essay-card-actions,
.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.thread-card .meta-row,
.essay-meta-bar,
.reader-grid,
.reader-comments {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.thread-card.is-hidden,
.essay-row-card.is-hidden {
  display: none;
}

.essay-row-card {
  position: relative;
}

.essay-rank-chip,
.essay-tone-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(176, 131, 55, 0.12);
  color: var(--ochre);
  font-size: 0.78rem;
  font-weight: 800;
}

.essay-tone-chip.polemico {
  background: rgba(155, 79, 56, 0.14);
  color: var(--terracotta);
}

.essay-tone-chip.bueno {
  background: rgba(43, 72, 112, 0.12);
  color: var(--blue);
}

.essay-detail-shell,
.debate-detail-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px);
}

.essay-reader-layout,
.debate-layout,
.publish-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
}

.reader-panel,
.debate-panel,
.side-stack > section,
.publish-side section,
.publish-main {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(23, 29, 34, 0.06);
}

.reader-panel,
.debate-panel,
.publish-main,
.publish-side section {
  padding: 24px;
}

.essay-reader-title,
.debate-title,
.publish-title {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  line-height: 0.94;
}

.essay-reader-copy p,
.debate-body p {
  margin: 0 0 1.2em;
  color: #31383f;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.14rem;
  line-height: 1.82;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.star-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #d6cabb;
  font-size: 1.45rem;
  cursor: pointer;
}

.star-button.is-active {
  color: var(--ochre);
}

.reaction-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.reaction-grid button {
  justify-content: space-between;
}

.comment-card {
  max-width: 92%;
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.comment-card strong {
  display: block;
  margin-bottom: 6px;
}

.comment-card small {
  color: var(--muted);
}

.comment-form textarea,
.publish-main textarea,
.publish-main input,
.publish-main select,
.login-form input {
  width: 100%;
}

.publish-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.publish-main {
  padding: 0;
  overflow: hidden;
}

.publish-main header {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 22px 0;
}

.publish-main .wide-field {
  padding: 18px 22px 0;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
}

.editor-toolbar button,
.editor-toolbar select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
}

.editor-canvas {
  min-height: 420px;
  padding: 22px;
  outline: 0;
}

.editor-canvas:empty::before {
  content: attr(data-placeholder);
  color: #9aa2aa;
}

.editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.publish-path-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.path-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(176, 131, 55, 0.08);
  color: #48515a;
  font-size: 0.88rem;
}

.path-pill strong {
  color: var(--ink);
}

.publish-context {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 244, 236, 0.9), rgba(255, 255, 255, 0.96));
  padding: 16px 18px;
  color: #52606d;
}

.side-stack,
.publish-side {
  display: grid;
  gap: 16px;
}

.check-list,
.bullet-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.check-list span,
.bullet-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3a4249;
}

.check-dot,
.bullet-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.check-dot.is-done {
  border-color: var(--ochre);
  background: var(--ochre);
}

.bullet-check-list .bullet-dot.is-done {
  border-color: var(--ochre);
  background: var(--ochre);
}

.outline-preview {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.outline-preview div {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8e0d1, #f8f4ec);
}

.outline-preview div:nth-child(1) {
  width: 34%;
}

.outline-preview div:nth-child(2) {
  width: 76%;
}

.outline-preview div:nth-child(3) {
  width: 68%;
}

.dynamic-outline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.outline-empty {
  color: var(--muted);
  line-height: 1.6;
}

.outline-line {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(176, 131, 55, 0.08);
  color: #44505b;
  font-size: 0.92rem;
}

.draft-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(176, 131, 55, 0.12);
  color: var(--ochre);
  font-weight: 800;
}

.profile-photo {
  width: 196px;
  height: 196px;
}

.photo-editor .button.subtle {
  min-width: 176px;
}

.country-field {
  display: grid;
  gap: 8px;
}

.country-field span {
  font-weight: 700;
}

.location-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
}

.draft-library-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.draft-library-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 23, 34, 0.52);
}

.draft-library-panel {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  margin: 7vh auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 30px 90px rgba(17, 23, 34, 0.24);
}

.draft-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.draft-library-list {
  display: grid;
  gap: 12px;
}

.draft-library-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.draft-library-item p,
.draft-library-item small {
  margin: 4px 0 0;
  color: var(--muted);
}

.guided-tour-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0), rgba(251, 250, 246, 0), rgba(251, 250, 246, 0)),
    url("../menu/pagina.principal-scroll-2.png") center / cover no-repeat;
}

.guided-tour-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 72px;
}

.guided-tour-frame {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 80px rgba(23, 29, 34, 0.1);
  overflow: hidden;
}

.guided-tour-original {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 720px;
}

.guided-tour-sidebar {
  padding: 28px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 236, 0.9));
}

.guided-tour-sidebar h1 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.2rem;
}

.guided-tour-screen {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.guided-tour-screen img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.guided-tour-double-shell {
  display: grid;
  gap: 28px;
}

.writing-guide-screen {
  align-content: start;
}

.writing-guide-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.writing-guide-list div {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(176, 131, 55, 0.06);
}

.writing-guide-list p,
.writing-guide-closing {
  margin: 6px 0 0;
  color: #46515b;
  line-height: 1.7;
}

.tour-visual-frame {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.mini-visual-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #fffdf9, #f6f0e5);
}

.mini-visual-card {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.mini-visual-header span {
  color: var(--ochre);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mini-visual-header strong {
  display: block;
  margin-top: 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
}

.mini-visual-hero {
  min-height: 180px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(17,23,34,0.1)),
    url("../menu/pagina.principal-scroll-1.png") center / cover no-repeat;
}

.mini-visual-grid {
  display: grid;
  gap: 10px;
}

.mini-visual-grid div {
  height: 52px;
  border-radius: 12px;
  background: rgba(176, 131, 55, 0.12);
}

.mini-outline-block {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.94)),
    url("../menu/pagina-convocatoria.png") center / cover no-repeat;
}

.mini-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 23, 34, 0.14);
}

.mini-line.short {
  width: 58%;
}

.mini-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-steps span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(176, 131, 55, 0.12);
  color: var(--ochre);
  font-weight: 700;
}

.login-brand-large .brand-mark {
  width: 92px;
  height: 92px;
  border-radius: 24px;
}

.login-brand-large .brand-wordmark {
  font-size: 2rem;
}

.login-card-art {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}

.login-card-art img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cascade-hero {
  position: relative;
  overflow: hidden;
}

.hero-cascade-fade {
  display: none;
}

.cascade-hero.has-live-cascade::after,
.courtesy-menu.has-live-cascade {
  display: none;
}

.societext-3d-media {
  border-radius: inherit;
  overflow: hidden;
}

.hero-logo-panel .societext-3d-media {
  width: clamp(160px, 24vw, 280px);
  height: clamp(160px, 24vw, 280px);
  position: relative;
  z-index: 2;
}

.brand-mark .societext-3d-media,
.brand-inline-mark .societext-3d-media,
.logo-tool .societext-3d-media {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.example-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.example-links .button {
  min-height: 42px;
}

.example-links .button small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.72;
}

model-viewer.societext-3d-media {
  width: 100%;
  height: 100%;
  min-width: 1px;
  min-height: 1px;
  background: transparent;
}

.footer-contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.footer-contact-copy h2 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.footer-contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(23, 29, 34, 0.06);
}

.footer-expanded {
  border-top: 1px solid var(--line);
}

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

.footer-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.is-locked-link,
[data-locked-link] {
  cursor: not-allowed;
}

[data-locked-link] {
  opacity: 0.72;
}

.thread-card-stats,
.essay-minutes-box {
  display: grid;
  gap: 10px;
  align-content: start;
}

.thread-card-stats span,
.essay-minutes-box {
  min-width: 88px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
}

.thread-card-stats strong,
.essay-minutes-box strong {
  display: block;
  font-size: 2rem;
  font-family: "Playfair Display", Georgia, serif;
}

.essay-card-shell,
.essay-card-topline,
.reader-author-strip,
.debate-head-grid,
.debate-message-card,
.debate-message-head,
.debate-compose-foot,
.debate-score-grid,
.debate-versus,
.comment-card-head,
.comment-vote-row,
.publish-path-meta,
.outline-list,
.draft-library-item {
  display: flex;
}

.essay-card-topline,
.publish-path-meta,
.debate-message-head,
.debate-compose-foot,
.comment-card-head,
.comment-vote-row {
  flex-wrap: wrap;
}

.essay-card-shell {
  gap: 22px;
  justify-content: space-between;
  align-items: flex-start;
}

.essay-card-copy h2,
.thread-card h2 {
  margin: 10px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.95;
}

.essay-card-copy p,
.essay-reader-summary,
.thread-card p,
.debate-message-body p {
  color: #4f5b67;
  line-height: 1.7;
}

.reader-author-strip {
  gap: 14px;
  align-items: center;
  margin: 18px 0 26px;
}

.reader-author-strip img,
.debate-message-card > img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.reader-author-strip strong,
.debate-message-head strong {
  display: block;
}

.reader-comments-list {
  display: grid;
}

.comment-card {
  max-width: 100%;
}

.comment-card p {
  margin: 0 0 10px;
  text-align: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.8;
}

.comment-card-head {
  justify-content: center;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.comment-vote-row {
  justify-content: center;
  gap: 12px;
}

.subtle-vote {
  min-width: 120px;
  justify-content: space-between;
}

.reaction-vote-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.debate-room-shell {
  display: grid;
}

.debate-head-grid {
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.debate-head-item {
  flex: 1 1 180px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.debate-head-item span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.debate-message-list {
  display: grid;
  gap: 14px;
}

.debate-message-card {
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
}

.debate-message-card.author-turn {
  background: rgba(245, 240, 230, 0.84);
}

.debate-message-body {
  flex: 1 1 auto;
}

.debate-message-head {
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.debate-vote-box {
  display: grid;
  gap: 10px;
  min-width: 148px;
}

.debate-compose {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.debate-compose-foot {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.debate-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.debate-score-grid span,
.debate-versus > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}

.debate-score-grid strong,
.debate-versus strong {
  display: block;
  font-size: 2rem;
  font-family: "Playfair Display", Georgia, serif;
}

.debate-versus {
  align-items: center;
  gap: 12px;
}

.versus-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.publish-context,
.path-pill,
.dynamic-outline,
.draft-library-panel,
.draft-library-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.publish-context {
  padding: 16px 18px;
  margin-bottom: 14px;
  font-size: 1.02rem;
  color: #4f5b67;
}

.publish-path-meta {
  gap: 10px;
}

.path-pill {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.bullet-check-list .bullet-dot.is-complete,
.check-list .check-dot.is-complete {
  background: var(--ochre);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.outline-list {
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
}

.outline-list li {
  line-height: 1.5;
  color: #4f5b67;
}

.draft-library-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.draft-library-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 27, 0.46);
}

.draft-library-panel {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: 22px;
  box-shadow: 0 28px 80px rgba(23, 29, 34, 0.18);
}

.draft-library-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.draft-library-list {
  display: grid;
  gap: 12px;
}

.draft-library-item {
  width: 100%;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  text-align: left;
}

.draft-library-item strong {
  font-size: 1.02rem;
}

.profile-public-code {
  display: inline-flex;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ochre);
}

.profile-crown-badge {
  width: 42px;
  height: 42px;
  margin-left: 10px;
  transform: translateY(3px);
}

.profile-side-card.is-emphasized {
  border-color: rgba(176, 131, 55, 0.44);
  box-shadow: 0 22px 60px rgba(176, 131, 55, 0.12);
}

.reader-panel .essay-reader-title {
  font-size: clamp(2.3rem, 4vw, 4.6rem);
}

.literature-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 46px);
}

.literature-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: 22px;
  align-items: stretch;
}

.literature-copy,
.literature-featured-author,
.literature-strip,
.literature-side .profile-side-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(23, 29, 34, 0.06);
}

.literature-copy {
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.76)),
    url("../menu/pagina.principal-scroll-1.png") left center / cover no-repeat;
}

.literature-copy h1 {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 5vw, 5.4rem);
}

.literature-featured-author {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.literature-featured-author img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.literature-featured-author > div {
  padding: 26px;
}

.literature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  margin-top: 22px;
}

.literature-main {
  display: grid;
  gap: 18px;
}

.literature-strip {
  padding: 22px;
}

.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.strip-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
}

.book-of-day {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
}

.book-of-day img,
.author-grid article img,
.book-grid article img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.book-of-day img {
  height: 240px;
}

.author-grid,
.book-grid,
.literature-request-board {
  display: grid;
  gap: 16px;
}

.author-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.author-grid article,
.book-grid article,
.literature-request-board article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.author-grid article img {
  height: 160px;
  margin-bottom: 12px;
}

.book-grid article img {
  height: 190px;
  margin-bottom: 12px;
}

.literature-side {
  display: grid;
  gap: 16px;
}

@media (max-width: 980px) {
  .essay-reader-layout,
  .debate-layout,
  .publish-workbench,
  .guided-tour-original {
    grid-template-columns: 1fr;
  }

  .publish-main header {
    grid-template-columns: 1fr;
  }

  .thread-card {
    grid-template-columns: 1fr;
  }

  .essay-card-shell,
  .debate-message-card,
  .debate-versus {
    flex-direction: column;
  }

  .reaction-vote-grid,
  .debate-score-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact-layout,
  .footer-grid,
  .literature-hero,
  .literature-layout,
  .literature-featured-author,
  .book-of-day,
  .author-grid,
  .book-grid {
    grid-template-columns: 1fr;
  }
}

.rotating-editorial-badge {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  vertical-align: middle;
  overflow: visible;
}

.search-results-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100;
  border: 1px solid rgba(151, 119, 64, 0.35);
  background: #fffdf7;
  box-shadow: 0 18px 48px rgba(20, 17, 12, 0.18);
  padding: 8px;
}

form[role="search"] { position: relative; }

.search-results-panel a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  color: #171510;
  text-decoration: none;
  border-bottom: 1px solid rgba(151, 119, 64, 0.16);
}

.search-results-panel a:last-child { border-bottom: 0; }
.search-results-panel span { font-family: var(--font-metadata); font-size: 0.68rem; text-transform: uppercase; }
