.nc-quotes-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 14px 30px;
}

.nc-quotes-header{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 8px 0 18px;
}

.nc-quotes-header-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.nc-quotes-header-left > div:last-child{
  min-width: 0;
}

.nc-quotes-header-right{
  flex: 0 1 auto;
  width: auto;
}

.nc-quotes-avatar{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.08);
  flex: 0 0 48px;
}

.nc-quotes-avatar--placeholder{
  background: rgba(0,0,0,0.06);
}

.nc-quotes-title{
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
  word-break: break-word;
}

.nc-quotes-subtitle{
  font-size: 0.95rem;
  opacity: 0.7;
  margin-top: 2px;
}

.nc-quotes-pageform{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nc-quotes-search{
  width: 400px;
  max-width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  outline: none;
  background: #fff;
}

.nc-quotes-search:focus{
  border-color: rgba(232,85,78,0.45);
  box-shadow: 0 0 0 3px rgba(232,85,78,0.10);
}

.nc-btn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nc-btn:hover{
  background: rgba(0,0,0,0.02);
}

.nc-btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

/* Masonry via CSS columns */
.nc-quotes-grid{
  column-count: 3;
  column-gap: 14px;
}

@media (max-width: 980px){
  .nc-quotes-grid{
    column-count: 2;
  }
}

@media (max-width: 640px){
  .nc-quotes-grid{
    column-count: 1;
    column-gap: 0;
  }
}

.nc-quote-card{
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.03);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.08s ease, box-shadow 0.12s ease;
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.nc-quote-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.nc-quote-text{
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 650;
  margin-bottom: 10px;
}

.nc-quote-author{
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--nc-brand, #e8554e);
}

.nc-quote-source{
  font-size: 0.88rem;
  opacity: 0.75;
  margin-bottom: 10px;
  line-height: 1.5;
}

.nc-quote-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.nc-quote-chips--center{
  justify-content: center;
}

.nc-chip{
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.7);
}

.nc-quote-actions{
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.nc-iconbtn{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  cursor: pointer;
  font-weight: 750;
  font-size: 0.85rem;
}

.nc-iconbtn:hover{
  background: rgba(0,0,0,0.02);
}

/* Pagination */
.nc-pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px;
  flex-wrap: wrap;
}

.nc-pagebtn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
}

.nc-pagebtn--disabled{
  opacity: 0.5;
}

.nc-pageinfo{
  font-weight: 750;
  opacity: 0.75;
}

/* Quote detail */
.nc-quote-detail-wrap{
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 14px 30px;
}

.nc-quote-detail-card{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background:
    radial-gradient(circle at 30% 20%, rgba(232,85,78,0.20), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,0.10), transparent 50%),
    #0b0b0c;
  padding: 28px 18px 0;
  color: #fff;
}

.nc-quote-detail-quote{
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 900;
  line-height: 1.22;
  text-align: center;
  max-width: 840px;
  margin: 0 auto 16px;
}

.nc-quote-detail-author{
  text-align: center;
  font-weight: 850;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.88);
}

.nc-quote-detail-source{
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 16px;
}

.nc-quote-detail-actions{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.nc-quote-detail-back{
  text-align: center;
  margin: 12px 0 18px;
}

.nc-quote-detail-back a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 800;
}

.nc-brandbar{
  margin-top: 18px;
  background: rgba(0,0,0,0.55);
  padding: 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.nc-brandbar-logo{
  font-weight: 1000;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.nc-brandbar-tagline{
  font-weight: 800;
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: right;
}

div.nc-quote-chips{
  display: none;
}

/* Quotes landing page */
.nc-quotes-landing-card{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  margin-bottom: 18px;
}

.nc-quotes-landing-label{
  font-weight: 900;
  margin-bottom: 10px;
}

.nc-quotes-landing-form{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.nc-quotes-landing-hint{
  margin-top: 10px;
  font-size: 0.92rem;
  opacity: 0.75;
  line-height: 1.45;
}

.nc-quotes-browse-title{
  font-weight: 900;
  margin: 12px 0 10px;
}

.nc-quotes-browse-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 980px){
  .nc-quotes-browse-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .nc-quotes-browse-grid{
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.nc-browse-item{
  display: block;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(0,0,0,0.02);
  transition: transform 0.08s ease, background 0.12s ease;
}

.nc-browse-item:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,0.03);
}

.nc-browse-name{
  font-weight: 900;
}

.nc-browse-meta{
  margin-top: 2px;
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.45;
}

.nc-quotes-empty{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 18px 16px;
  background: rgba(0,0,0,0.02);
  opacity: 0.8;
}

/* Mobile refinements */
@media (max-width: 640px){

  .nc-quotes-wrap{
    padding: 12px 12px 24px;
  }

  .nc-quotes-header{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 8px 0 14px;
  }

  .nc-quotes-header-left{
    width: 100%;
    align-items: flex-start;
    gap: 10px;
  }

  .nc-quotes-header-left > div:last-child{
    min-width: 0;
    flex: 1 1 auto;
  }

  .nc-quotes-header-right{
    width: 100%;
  }

  .nc-quotes-avatar{
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .nc-quotes-title{
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .nc-quotes-subtitle{
    font-size: 0.92rem;
  }

  .nc-quotes-pageform,
  .nc-quotes-landing-form{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    width: 100%;
    align-items: stretch;
  }

  .nc-quotes-pageform input[type="hidden"]{
    display: none;
  }

  .nc-quotes-search{
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nc-btn{
    white-space: nowrap;
  }

  .nc-quotes-pageform a.nc-btn{
    grid-column: 1 / -1;
    text-align: center;
  }

  .nc-quotes-landing-card{
    padding: 14px;
    border-radius: 16px;
  }

  .nc-quote-card{
    padding: 14px 14px 12px;
    border-radius: 16px;
    margin-bottom: 12px;
  }

  .nc-quote-text{
    font-size: 1rem;
    line-height: 1.38;
  }

  .nc-quote-actions{
    flex-wrap: wrap;
  }

  .nc-pagination{
    gap: 8px;
  }

  .nc-pagebtn{
    padding: 9px 10px;
  }

  .nc-pageinfo{
    font-size: 0.92rem;
    text-align: center;
  }

  .nc-quote-detail-wrap{
    padding: 12px 12px 24px;
  }

  .nc-quote-detail-card{
    border-radius: 18px;
    padding: 22px 14px 0;
  }

  .nc-quote-detail-quote{
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.25;
  }

  .nc-brandbar{
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nc-brandbar-tagline{
    text-align: left;
  }
}


@media (max-width: 640px){

  /* subject quotes page search can stay side-by-side */
  .nc-quotes-pageform{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    width: 100%;
    align-items: stretch;
  }

  /* landing page should stack */
  .nc-quotes-landing-form{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }

  .nc-quotes-search{
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nc-quotes-landing-form .nc-btn{
    width: 100%;
  }
}

.nc-quote-detail-actions .nc-btn{
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.nc-quote-detail-actions .nc-btn:hover{
  background: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}