:root {
  --primary: #c89132;
  --dark: #1e293b;
  --dark-navy: #0f172a;
  --royal-blue: #34457f;
  --surface: #f8fafc;
  --surface-soft: #f1f5f9;
  --surface-muted: #e2e8f0;
  --outline: #cbd5e1;
  --border: #cbd5e1;
  --text-variant: #475569;
  --muted: #64748b;
  --accent-bg: rgba(15, 23, 42, 0.05);
  --shadow-soft: 0 20px 25px -5px rgba(15, 23, 42, 0.06);
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --paper-width: 215.9mm;
  --paper-height: 330.2mm;
  --label-columns: 7;
  --label-width: 25.4mm;
  --label-height: 38.1mm;
  --label-gap: 0mm;
  --label-radius: 0;
}

/* GLOBAL */
body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
.font-headline {
  font-family: 'Manrope', sans-serif;
}

.small-note {
  color: var(--muted);
  font-size: 0.85rem;
}

/* HEADER / NAVBAR */
.glass-header {
  background: var(--royal-blue);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
  z-index: 1000;
}

.glass-header nav a {
  color: var(--surface);
}

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar-brand:hover .logo-img {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-link-active {
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary);
}

.custom-toggler {
    border: 1px solid var(--outline);
    background: #fff;
    color: var(--dark-navy);
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    cursor: pointer;
    z-index: 2000;
}

.custom-toggler:focus {
    outline: none;
    box-shadow: none;
}

#navbarMenu {
    position: relative;
    z-index: 1500;
}

@media (max-width: 991.98px){
    #navbarMenu{
        border-top: 1px solid rgba(0,0,0,.08);
        padding-top: 1rem;
    }
    #navbarMenu nav a{
        padding: .5rem 0;
    }
}

/* CARDS / SECTIONS */
.main-generator-card,
.main-card {
  background: var(--surface-soft);
  border: 1px solid rgba(203, 213, 225, 0.45);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.card-banner {
  background: var(--royal-blue);
  color: #fff;
  text-align: center;
  padding: 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* FORMS */
.form-label-custom {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-variant);
  margin-bottom: 0.4rem;
  margin-left: 0.25rem;
}

.form-control-custom {
  background: #fff;
  border: none;
  border-bottom: 2px solid rgba(203, 213, 225, 0.4);
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-control-custom:focus {
  background: #fff;
  border-bottom-color: var(--primary);
  box-shadow: none;
  outline: none;
}

textarea,
input,
select {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--primary) !important;
}

/* BUTTONS */
.btn-generate,
.btn-main {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  transition: all 0.2s ease;
}

.btn-generate:hover,
.btn-main:hover {
  background: var(--dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-generate:disabled {
  background: var(--royal-blue) !important;
  color: #eee !important;
  border: 1px solid var(--outline);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-outline-main {
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
}

.btn-outline-main:hover {
  background: var(--primary);
  color: #fff;
}

/* ABOUT PAGE */
.about-hero {
  max-width: 720px;
  margin: 0 auto;
}

.about-card {
  background: var(--surface-soft);
  border: 1px solid rgba(203, 213, 225, 0.45);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-image-card {
  background: #ffffff;
  border: 1px solid var(--outline);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.06);
}

.about-feature-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: 0.75rem;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.04);
}

.about-feature-card h4 {
  color: var(--dark-navy);
}

.upcoming-feature-card {
  align-items: center;
  background: var(--surface-soft);
  border-color: var(--primary);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

.upcoming-feature-card > div {
  max-width: 720px;
}

.upcoming-feature-icon {
  color: var(--primary);
  font-size: 2.5rem;
}

.about-section-title {
  color: var(--dark-navy);
  font-weight: 800;
}

/* BLOG / LLE REVIEW PAGE */
.blog-feature {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.article-kicker {
  color: var(--primary);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topic-chip {
  background: var(--surface-soft);
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--text-variant);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
}

.coverage-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius-md);
  height: 100%;
  padding: 1.25rem;
}

.coverage-percent {
  align-items: center;
  background: var(--royal-blue);
  border-radius: 0.65rem;
  color: #ffffff;
  display: inline-flex;
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  margin-bottom: 1rem;
  min-width: 64px;
  padding: 0 0.75rem;
}

.coverage-card h3 {
  color: var(--dark-navy);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.coverage-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.review-questions {
  background: var(--surface-soft);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  padding: 0.9rem;
}

.review-questions strong {
  color: var(--dark-navy);
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.review-questions ul {
  color: var(--text-variant);
  font-size: 0.86rem;
  margin: 0;
  padding-left: 1.1rem;
}

.review-questions li + li {
  margin-top: 0.35rem;
}

.challenge-section {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  padding: 2rem;
  scroll-margin-top: 96px;
  box-shadow: var(--shadow-soft);
}

.challenge-section h2 {
  color: var(--dark-navy);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  margin: 0.35rem 0 1rem;
}

.challenge-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.25rem;
}

.challenge-list li {
  color: var(--dark-navy);
  padding-left: 0.25rem;
}

.challenge-list span {
  color: var(--muted);
  display: block;
  margin-top: 0.25rem;
}

.questionnaire-menu {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.subject-button-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.subject-open-btn {
  background: var(--surface-soft);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  color: var(--dark-navy);
  display: block;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.subject-open-btn:hover {
  border-color: var(--primary);
  color: var(--dark-navy);
  transform: translateY(-2px);
}

.subject-open-btn.is-opened {
  border-color: var(--primary);
  box-shadow: inset 4px 0 0 var(--primary);
}

.subject-open-btn strong,
.subject-open-btn span {
  display: block;
}

.subject-open-btn span {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.questionnaire-summary {
  background: var(--royal-blue);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 800;
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  position: sticky;
  top: 76px;
  z-index: 5;
}

.questionnaire-open-trigger {
  margin: 0.5rem 0 1rem;
}

.questionnaire-list {
  display: grid;
  gap: 1rem;
}

.question-card {
  background: var(--surface-soft);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.question-card h3 {
  color: var(--dark-navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.choice-list {
  display: grid;
  gap: 0.5rem;
}

.choice-btn {
  background: #ffffff;
  border: 1px solid var(--outline);
  border-radius: 0.65rem;
  color: var(--text-variant);
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
}

.choice-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--dark-navy);
}

.choice-btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.selected-choice {
  border-color: var(--primary);
  box-shadow: inset 4px 0 0 var(--primary);
}

.question-result {
  background: #ffffff;
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  color: var(--text-variant);
  margin: 0.85rem 0 0;
  padding: 0.75rem;
}

.review-note {
  background: var(--surface-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--text-variant);
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
}

.review-note .material-symbols-outlined {
  color: var(--primary);
  font-size: 2rem;
}

.article-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius-md);
  height: 100%;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.article-card h3 {
  color: var(--dark-navy);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0.6rem 0;
}

.article-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.article-icon {
  align-items: center;
  background: var(--accent-bg);
  border-radius: 0.75rem;
  color: var(--primary);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 44px;
}

.resource-list {
  display: grid;
  gap: 1rem;
}

.resource-item {
  background: #ffffff;
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.resource-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.resource-item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  list-style: none;
  padding: 1.25rem;
}

.resource-item summary::-webkit-details-marker {
  display: none;
}

.resource-item summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: -3px;
}

.resource-summary-copy,
.resource-summary-copy strong,
.resource-summary-copy > span:last-child {
  display: block;
}

.resource-summary-copy strong {
  color: var(--dark-navy);
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  margin: 0.35rem 0;
}

.resource-summary-copy > span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.resource-open-label {
  background: var(--royal-blue);
  border-radius: 0.6rem;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.65rem 0.85rem;
}

.close-text,
.resource-item[open] .open-text {
  display: none;
}

.resource-item[open] .close-text {
  display: inline;
}

.resource-content {
  border-top: 1px solid var(--outline);
  color: var(--text-variant);
  line-height: 1.75;
  padding: 1.5rem;
}

.resource-content h4 {
  color: var(--dark-navy);
  font-size: 1rem;
  font-weight: 800;
  margin: 1.25rem 0 0.4rem;
}

.resource-content li + li {
  margin-top: 0.5rem;
}

.call-number-example {
  background: var(--surface-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  color: var(--dark-navy);
  font-size: 1rem;
  font-weight: 800;
  padding: 1rem;
  width: max-content;
}

.apa-references {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
}

.apa-references h4 {
  margin-top: 0;
}

.apa-references p {
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  overflow-wrap: anywhere;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
}

.apa-references p:last-child {
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .resource-item summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

.roadmap-list {
  display: grid;
  gap: 0.75rem;
}

.roadmap-list div {
  background: #ffffff;
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.roadmap-list strong,
.roadmap-list span {
  display: block;
}

.roadmap-list span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.social-link{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.social-link i:hover{
    transform: translateY(-2px);
    color: var(--primary);
}

.social-link i{
    color: var(--royal-blue);
    transition: all 0.3s ease;
    font-size: 1.4rem; 
}

/* CONTACT BUTTON */
.btn-primary-custom{
    background: var(--primary);
    color:#fff;
    border:none;
    padding:12px 24px;
    border-radius:12px;
    font-weight:700;
    transition:.3s;
}

.btn-primary-custom:hover{
    background: var(--dark);
    color:#fff;
}

/* FORMAT BUTTON LC/DDC */

.format-switcher {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.format-btn {
  border: 1px solid var(--primary, #c89132);
  color: var(--primary, #c89132);
  background: #fff;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .65rem 1.25rem;
  transition: all .2s ease;
}

.format-btn.active-format,
.format-btn:hover {
  background: var(--primary, #c89132);
  color: #fff;
}

.format-help {
  font-size: .85rem;
  color: var(--muted, #64748b);
  margin-top: .65rem;
}

/* GENERATOR RESULTS */
.results-section {
  background: var(--surface-muted);
  border-radius: 1rem;
  padding: 2rem;
}

.results-header {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

.result-card {
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.copy-wrapper {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  border: none;
  background: var(--surface-soft);
  color: var(--text-variant);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary);
  color: #fff;
}

.copy-feedback {
  font-size: 10px;
  font-weight: 800;
  color: #10b981;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-feedback.show {
  opacity: 1;
}

.method-icon-circle {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cutter-option-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 50rem;
  padding: 0.35rem 0.45rem 0.35rem 0.9rem;
  width: fit-content;
}

.cutter-digit-select {
  width: 115px;
  border-radius: 50rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.cutter-digit-select:focus {
  box-shadow: none;
  border-color: #0d6efd;
}

/* CUTTER TABLE PAGE */
.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 2.5rem;
}

.letter-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--outline);
  background: #fff;
  color: var(--text-variant);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.letter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.letter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(200, 145, 50, 0.3);
}

.table-wrapper {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.scroll-area {
  max-height: 500px;
  overflow-y: auto;
}

.scroll-area::-webkit-scrollbar {
  width: 8px;
}

.scroll-area::-webkit-scrollbar-track {
  background: var(--surface-soft);
}

.scroll-area::-webkit-scrollbar-thumb {
  background: var(--outline);
  border-radius: 10px;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.table thead {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
  border-bottom: 2px solid var(--outline);
}

.table th {
  color: var(--text-variant);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 1rem 1.5rem;
}

.table td {
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--surface-soft);
  font-size: 0.95rem;
}

.code-cell {
  color: var(--primary);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}

/* BULK LABEL PAGE */
.preview-shell {
  background: #525252;
  padding: 1.8rem;
  border-radius: 1rem;
  overflow-x: auto;
}

.sheet {
  width: var(--paper-width);
  min-height: var(--paper-height);
  background: #fff;
  margin: 0 auto;
  padding: 10mm;
  display: grid;
  grid-template-columns: repeat(var(--label-columns), var(--label-width));
  grid-auto-rows: var(--label-height);
  gap: var(--label-gap);
  justify-content: center;
  align-content: start;
}

.spine-label {
  border: 1px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.1;
  font-weight: 700;
  padding-left: 3mm;
  padding-right: 1mm;
  box-sizing: border-box;
  overflow: hidden;
  white-space: pre-line;
  break-inside: avoid;
  page-break-inside: avoid;
  border-radius: var(--label-radius);
}

/* FOOTER */
footer {
  background: #34457f;
  color: #e8e8e8;
  padding: 4rem 0;
}

.footer-logo{
    width:150px;
    height:auto;
}

.footer-link{
    color:rgba(255,255,255,.8);
    text-decoration:none;
    transition:.3s;
}

.footer-link:hover{
    color:var(--primary);
}

.footer-divider{
    border-color:rgba(255, 255, 255, 0.678);
}

/* RESPONSIVE */
@media (max-width: 576px) {
  .cutter-option-group {
    width: 100%;
    justify-content: space-between;
  }

  .cutter-digit-select {
    width: 130px;
  }

  #toggleBtn {
    width: 100%;
  }
}

/* PRINT */
@media print {

  html,
  body {
    overflow: hidden !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    visibility: hidden !important;
  }

  #printArea,
  #printArea * {
    visibility: visible !important;
  }

  #printArea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden !important;
  }

  .preview-shell {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

.sheet {
    width: var(--paper-width, 215.9mm);
    height: var(--paper-height, 330.2mm);
    background: #fff;
    margin: 0 auto;
    padding: 0;
    display: grid;
    overflow: hidden;
    box-sizing: border-box;
}

  /* Hide all browser scrollbars */
  *::-webkit-scrollbar {
    display: none !important;
  }

  * {
    scrollbar-width: none !important;
  }

  @page {
    size: 8.5in 13in;
    margin: 0.2in;
  }
}
