/* =======================================================================
   HERO (size page) — matches global pattern
   ======================================================================= */

	/* --- Headings & paragraph styles --- */
	.hero-title-ttl {
	  font-size: clamp(1.8rem, 4vw, 2.5rem);
	  line-height: 1.2;
	  margin: 0 0 1rem;
	  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
	}

	.hero-paragraph-ttl {
	  font-size: clamp(0.75rem, 4vw, 1.1rem);
	  line-height: 1.25;
	  margin: 0 0 1.25rem;
	  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
	}
	
	/* --- Inline links within hero text --- */
	.inline-link-hero {
	  font-weight: 700;
	  text-decoration: none;
	  border-bottom: 2px solid transparent;
	  transition: border-color .2s ease-in-out, color .2s ease-in-out;
	}
	.inline-link-hero:hover {
	  color: #e6a71e;
	  border-color: #e6a71e;
	}
	
	/* --- Use-case list (right-aligned) --- */
	.hero-usecases {
	  list-style: disc inside;          /* bullets stay inside the text box */
	  margin: 0.75rem 0 0;
	  padding: 0;
	  color: #fff;
	  text-shadow: 0 1px 4px rgba(0,0,0,.6);
	  font-size: 0.95rem;
	  line-height: 1.4;
	  text-align: right;                /* right-justify text and bullets */
	}
	.hero-usecases li {
	  margin: 0.25rem 0;
	}
	
	/* =======================================================================
	   DESKTOP layout (≥768px)
	   ======================================================================= */
	@media (min-width: 768px) {
	
	  /* Right-aligned hero copy (matches global pattern) */
	  .hero-content {
		text-align: right;
	  }
	
	  .hero-content .hero-body {
		margin-left: auto;
		padding-right: 48px;            /* gap from right edge */
	  }
	
	  .hero-content h1 {
		max-width: 75%;
		margin-left: auto;
	  }
	
	  .hero-content p,
	  .hero-content .hero-usecases {
		max-width: 50%;
		margin-left: auto;              /* push block to right */
		list-style-position: inside;    /* keep bullets within right-aligned block */
		text-align: right;
	  }
	
	  .inline-link-hero {
		color: #fff;
	  }
	}
	
	/* =======================================================================
	   MOBILE layout (≤767px)
	   ======================================================================= */
	@media (max-width: 767px) {
	  /* Swap to mobile hero image */
	  .hero-image {
		content: url('/assets/images/direct-thermal-labels/direct-thermal-labels-hero-mobile.jpg');
		width: 100%;
		max-width: 90%;
		height: auto;
		display: block;
		margin: 0 auto 1rem;
		border: 10px solid #e0e0e0;
	  }
	
	  /* Centre all hero text content */
	  .hero-content {
		text-align: center !important;
		color: #333 !important;
		text-shadow: none !important;
	  }
	
	  .hero-content h1,
	  .hero-content p {
		width: 90%;
		margin: 0 auto 1.25rem;
		color: #333 !important;
	  }
	
	  /* Use-cases list – clean readable alignment */
	  .hero-content .hero-usecases {
		width: 90%;
		margin: 0.5rem auto 0;
		text-align: center !important;
		color: #333 !important;
		text-shadow: none !important;
		list-style-position: inside;
	  }
	
	  /* Inline links inside hero paragraph */
	  .inline-link-hero {
		color: #003366;
		border-bottom: 2px solid transparent;
	  }
	
	  /* CTA buttons — stack neatly with spacing */
	  .cta-button {
		display: block;
		width: 90%;
		margin: 0.5rem auto;
	  }
	}

/* =======================================================================
   TYPOGRAPHY — Page-level heading scale
   ======================================================================= */
.product-container .product-text h1 {
  font-size: clamp(2.2rem, 3.6vw, 2.9rem);
  line-height: 1.2;
}
.product-container .product-text h2,
#build-spec .product-text h2,
#specs .product-text h2,
#faq-section .product-text h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
}
.product-container .product-text h3 { 
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}
/* ==================== END TYPOGRAPHY ==================== */



/* =======================================================================
   POPULAR CONFIGURATIONS — Grid & card visuals
   ======================================================================= */
/* Desktop 4 columns (unchanged) */
@media (min-width: 1024px) {
  .chooser-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet 3 columns */
@media (min-width: 700px) and (max-width: 1023.98px) {
  .chooser-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile 2 columns */
@media (max-width: 699.98px) {
  .chooser-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Card structure with image header */
.chooser-grid .chooser-card {
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: box-shadow .2s ease, transform .02s;
}
.chooser-grid .chooser-card .card-image {
  width: 100%;
  aspect-ratio: 525 / 194;      /* 2.7:1 ratio */
  flex-shrink: 0;
  overflow: hidden;             /* ensure hover zoom stays inside */
}
.chooser-grid .chooser-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px 14px 0 0;
}
.chooser-grid .chooser-card .card-body { padding: 0.75rem 1rem 1rem; }

/* === Chooser cards with read-more buttons (e.g. size pages) === */
.chooser-card:has(.labels-read-more-button) {
  display: flex;
  flex-direction: column;             /* Stack image and body vertically */
  justify-content: space-between;     /* Push body down if short */
}

/* Flex layout only inside these card bodies */
.chooser-card:has(.labels-read-more-button) .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Align button at bottom, but only for this type of card */
.chooser-card:has(.labels-read-more-button) .labels-read-more-button {
  margin-top: auto;                   /* Push to bottom */
  align-self: start;                  /* Keep it aligned left */
}

/* Hover zoom (respect reduced motion) */
@media (hover: hover) and (pointer: fine) {
  .chooser-grid .chooser-card .card-image img { 
    transform-origin: center center; 
    transition: transform .25s ease; 
    will-change: transform; 
  }
  .chooser-grid .chooser-card:hover .card-image img,
  .chooser-grid .chooser-card:focus-within .card-image img { transform: scale(1.06); }
  .chooser-grid .chooser-card:hover,
  .chooser-grid .chooser-card:focus-within { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
}
@media (prefers-reduced-motion: reduce) {
  .chooser-grid .chooser-card,
  .chooser-grid .chooser-card .card-image img { transition: none !important; }
}

#pop-configs .product-container::before {
  background-image: none !important;
}
/* ==================== END POPULAR CONFIGS ==================== */



/* =======================================================================
   SPEC BUILDER — Options grid, cards, states
   ======================================================================= */
#build-spec .options {
  display: grid;
  gap: 1rem 1.25rem;
}
/* Desktop: 4 columns */
@media (min-width: 1024px) {
  #build-spec .options { grid-template-columns: repeat(4, minmax(240px, 1fr)); }
}
/* Tablet: 3 columns */
@media (min-width: 700px) and (max-width: 1023.98px) {
  #build-spec .options { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
}
/* Mobile: 2 columns */
@media (max-width: 699.98px) {
  #build-spec .options { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}

/* Generic chooser card structure */
#build-spec .chooser-card {
  min-height: 150px;
  display: flex;
  align-items: flex-start;
}
#build-spec .chooser-card > div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

/* Selected state */
label.chooser-card.selected {
  outline: 2px solid #2f6fed;
  box-shadow: 0 0 0 3px rgba(47,111,237,.15);
}

/* CTA highlight */
.cta-button.cta-highlight {
  border-color: #4169E1 !important;
  background: #4169E1 !important;
  color: #fff !important;
  cursor: pointer;
}
.cta-button.cta-highlight:hover {
  background: #fff !important;
  border-color: #4169E1 !important;
  color: #4169E1 !important;
}

/* Spec summary box */
.spec-box {
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.spec-box .spec-string { margin: 0; font-weight: 600; }

/* Divider between option blocks */
.spec-divider {
  border: 0;
  border-top: 2px solid #ccc;
  margin: 1.5rem 0;
}

/* Adhesive row grid mirrors general options (explicit for clarity) */
#opt-adhesive .options { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 1024px) {
  #opt-adhesive .options { grid-template-columns: repeat(4, minmax(260px, 1fr)); }
}
@media (min-width: 700px) and (max-width: 1023.98px) {
  #opt-adhesive .options { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
}
@media (max-width: 699.98px) {
  #opt-adhesive .options { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}
#opt-adhesive .chooser-card {
  min-height: 140px;
  display: flex;
  align-items: flex-start;
}
#opt-adhesive .chooser-card > div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

#build-spec .product-container::before {
  background-image: none !important;
}

/* === Accordion Header (flush with section width) === */
#build-spec .accordion-trigger {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* full width + offset to cancel container padding */
  width: calc(100% + 2rem);
  margin-left: -1rem;
  margin-right: -1rem;

  background: #fafafa;
  border: none;
  padding: 1.5rem 2rem 1.5rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: background 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
}

#build-spec .accordion-trigger:hover,
#build-spec .accordion-trigger:focus {
  background: #f5f5f5;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.03);
}

/* Accent label */
#build-spec .accordion-trigger .product-label {
  color: var(--accent-color, #ffc857);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

/* Heading + paragraph */
#build-spec .accordion-trigger h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.25rem 0;
  color: #222;
}

#build-spec .accordion-trigger p {
  margin: 0.25rem 2.5rem 0 0;
  color: #555;
  line-height: 1.4;
}

/* Arrow icon flush-right */
#build-spec .accordion-icon {
  position: absolute;
  top: 50%;
  right: 1.75rem; /* align with content padding */
  transform: translateY(-50%);
  transition: transform 0.25s ease;
  color: #666;
}

/* Rotate arrow on open */
#build-spec .accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: translateY(-50%) rotate(180deg);
}

/* Accordion body (no left border) */
#build-spec .accordion-content {
  padding: 0;
  animation: accordion-fade 0.25s ease;
}

@keyframes accordion-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==================== END SPEC BUILDER ==================== */



/* =======================================================================
   SPECS TABLE — Compact, single background, tidy first column
   ======================================================================= */
.product-text .spec-table {
  display: inline-table;       /* shrink-to-fit instead of 100% */
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.product-text .spec-table th,
.product-text .spec-table td {
  background: #f7f7f7; 
  border: 1px solid #e5e5e5;
  padding: 0.6rem 0.9rem;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.product-text .spec-table th { font-weight: 600; white-space: nowrap; }
/* Keep the first column narrow */
.product-text .spec-table th,
.product-text .spec-table td:first-child { width: 1%; }

#specs .product-container.single .product-text {
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
}
#specs .product-container::before {
  background-image: none !important;
}
/* ==================== END SPECS TABLE ==================== */


/* =======================================================================
   RELATED SIZES — CTA link area
   ======================================================================= */
.related-sizes-cta {
  display: flex;
  justify-content: center;      /* centre buttons horizontally */
  flex-wrap: wrap;              /* wrap on small screens */
  gap: 1rem;                    /* even space between buttons */
  margin-top: 2rem;             /* breathing room above */
  text-align: center;
}

/* Neutral button styling to suit light background */
.related-sizes-cta .cta-button {
  background: #0070d2;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.4rem;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.related-sizes-cta .cta-button:hover {
  background: #005fb8;
  transform: translateY(-2px);
}

/* Secondary/alt version */
.related-sizes-cta .cta-button.alt {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ccc;
}

.related-sizes-cta .cta-button.alt:hover {
  background: #eaeaea;
  transform: translateY(-2px);
}

#related-sizes .product-container::before {
  background-image: none !important;
}
/* ==================== END RELATED SIZES ==================== */

/* =======================================================================
   FAQ
   ======================================================================= */

#faq-section .product-container::before {
  background-image: none !important;
}

/* ==================== END of FAQ ==================== */

/* =======================================================================
   UTILITIES
   ======================================================================= */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.cta-button.dark { background: #111; color: #fff; border-color: #111; }
.cta-button[aria-disabled="true"] { opacity: .55; pointer-events: none; cursor: default; }
/* ==================== END UTILITIES ==================== */