/*============================================================================
  #Override Stylesheet
  #Add Custom Styles Here
==============================================================================*/
/* WGS, 30 October 2026: library card styling moved here from the library banner text,
   where saving in the page editor stripped it. Source: themes/site-library/library-overrides.css.
   The grid layout rules live in sections/products.liquid. */
/* ==========================================================================
   WGS: My Courses and Recommended Courses (library) cards.
   Premier 6.5.3 site theme, overrides.css.
   Brand values from the WGS Brand Guide (Figma): button = "Button / CTA Medium"
   (gold #b19b64, Montserrat Bold 16, 12/24 padding, 8px radius, 1.5px border),
   card radius 16px as on the sales pages. 23 October 2026.
   Both sections use Premier's .panel--inline card, so one set of rules covers both.
   ========================================================================== */
/* Card: grid, image and text 50/50. One column on phones. */
:is(#section-products, #section-library_offers) .panel--inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto auto 1fr;
  /* empty top and bottom rows centre the text block */
  column-gap: 40px;
  row-gap: 24px;
  width: 100%;
  margin: 0 0 32px;
  padding: 24px;
  background: #ffffff;
  border: 1.5px solid #e8e8e7;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 15, 14, 0.06), 0 8px 24px rgba(16, 15, 14, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease; }

:is(#section-products, #section-library_offers) .panel--inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(16, 15, 14, 0.08), 0 16px 32px rgba(16, 15, 14, 0.12); }

:is(#section-products, #section-library_offers) .panel--inline .panel__cell {
  display: block;
  width: auto;
  min-width: 0;
  padding: 0;
  vertical-align: initial;
  background: none; }

/* Course image: left column, both rows, same 16:9 frame on every card */
:is(#section-products, #section-library_offers) .panel--inline .panel__cell:first-child {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center; }

:is(#section-products, #section-library_offers) .panel--inline .panel__cell:first-child a {
  display: block; }

:is(#section-products, #section-library_offers) .panel--inline img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f4f4; }

/* Title and description: right column, top */
:is(#section-products, #section-library_offers) .panel--inline .panel__cell:nth-child(2) {
  grid-column: 2;
  grid-row: 2; }

:is(#section-products, #section-library_offers) .panel--inline h4 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none; }

:is(#section-products, #section-library_offers) .panel--inline h4 a {
  color: #100f0e;
  text-decoration: none; }

:is(#section-products, #section-library_offers) .panel--inline h4 a:hover {
  color: #5e512f; }

:is(#section-products, #section-library_offers) .panel--inline p {
  margin: 12px 0 0;
  color: #2f2e2c;
  font-size: 16px;
  line-height: 1.6; }

/* Button: right column, under the text. Figma "Button / CTA Medium" */
:is(#section-products, #section-library_offers) .panel--inline .panel__cell:last-child {
  grid-column: 2;
  grid-row: 3;
  text-align: left; }

#section-products #sections_products_settings_btn_text.btn,
#section-library_offers .panel--inline .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 12px 24px;
  background: #b19b64;
  border: 1.5px solid #b19b64;
  border-radius: 8px;
  box-shadow: none;
  color: #100f0e;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }

#section-products #sections_products_settings_btn_text.btn:hover,
#section-library_offers .panel--inline .btn:hover {
  background: #100f0e;
  border-color: #100f0e;
  color: #ffffff;
  filter: none; }

#section-products #sections_products_settings_btn_text.btn:focus-visible,
#section-library_offers .panel--inline .btn:focus-visible {
  outline: 3px solid #5e512f;
  outline-offset: 3px; }

/* Section headings (My Products, Recommended Courses) */
:is(#section-products, #section-library_offers) .heading__title {
  color: #100f0e;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em; }

/* Tablets and phones: one column (image, text, button) */
@media (max-width: 767px) {
  :is(#section-products, #section-library_offers) .panel--inline {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 16px;
    padding: 16px;
    margin-bottom: 24px; }

  :is(#section-products, #section-library_offers) .panel--inline .panel__cell:first-child,
  :is(#section-products, #section-library_offers) .panel--inline .panel__cell:nth-child(2),
  :is(#section-products, #section-library_offers) .panel--inline .panel__cell:last-child {
    grid-column: 1;
    grid-row: auto;
    align-self: stretch; }

  :is(#section-products, #section-library_offers) .panel--inline h4 {
    font-size: 20px; }

  #section-products #sections_products_settings_btn_text.btn,
  #section-library_offers .panel--inline .btn {
    width: 100%; }

  :is(#section-products, #section-library_offers) .heading__title {
    font-size: 24px; } }
/* WGS, 10 November 2026: header menu links 16px, to match the course pages (Christy's call).
   The theme's only size setting is the site-wide base font (18px), which also sets body text. */
#section-header .header-menu a {
  font-size: 16px; }
