/*
 * GW Hook Sizes & Measurements — Section 4 styles
 * ════════════════════════════════════════════════
 * Loaded by the GW Hook Sizes plugin on hook reference pages only.
 * Enqueued after the Imagely parent theme and Garrenwood child theme,
 * so !important rules here win over both without touching style.css.
 *
 * Colors are hardcoded to the garrenwood palette rather than CSS variables
 * because --gw-accent in this theme resolves to #A9A9A9 (gray), not amber.
 *
 * Garrenwood palette reference:
 *   #111111   navy / near-black (headers, active states)
 *   #d6cfc2   rule / border
 *   #e8e3da   light rule
 *   #f6f4ef   note background
 *   #3d3c38   ink-soft (default text)
 *   #5a5850   muted text
 *   #1a1a18   ink (body)
 *   #c47d3a   warm brown accent (spec-line left border)
 *   #A9A9A9   section badge gray
 */


/* ── Manufactured size range note ─────────────────────────────────────────── */
/*
 * Styled to match .gw-spec-line: italic note with left accent stripe.
 * Uses #c47d3a to match the warm brown accent used on the spec-line border.
 */
.gw-entry .gw-manufactured-range {
  font-size: 14px !important;
  color: #5a5850;
  margin: 0 0 1.25rem !important;
  padding: 0.55rem 0.9rem !important;
  border-left: 4px solid #c47d3a !important;
  background: #f6f4ef !important;
  line-height: 1.6 !important;
  font-style: italic;
}

.gw-entry .gw-manufactured-range strong {
  font-style: normal;
  color: #3d3c38;
}


/* ── Pill container ────────────────────────────────────────────────────────── */
.gw-entry .gw-size-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
  margin: 0 0 0.6rem !important;
  padding: 0 !important;
  align-items: center !important;
  background: none !important;
  border: none !important;
  list-style: none !important;
}


/* ── Individual pill button ────────────────────────────────────────────────── */
/*
 * Every property is !important to override Imagely parent theme button styles,
 * which set large padding, border-radius, background, and text-transform.
 */
.gw-entry .gw-size-pill {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 0.1em !important;
  padding: 3px 13px !important;
  border: 1.5px solid #d6cfc2 !important;
  border-radius: 2em !important;
  background: transparent !important;
  color: #3d3c38 !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: 14px !important;
  font-weight: normal !important;
  letter-spacing: 0.02em !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-transform: none !important;
  text-decoration: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s !important;
  vertical-align: baseline !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
}

.gw-entry .gw-size-pill:focus-visible {
  outline: 2px solid #c47d3a !important;
  outline-offset: 2px !important;
}

/* Hover — unselected only */
.gw-entry .gw-size-pill:hover:not( .is-active ) {
  background: #f6f4ef !important;
  border-color: #A9A9A9 !important;
  color: #1a1a18 !important;
}

/* Active / selected pill — matches .gw-hook-type-tag black style */
.gw-entry .gw-size-pill.is-active {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
  font-weight: normal !important;
}

/* Catalog-only: dashed border signals no physical specimen */
.gw-entry .gw-size-pill.is-catalog-only {
  border-style: dashed !important;
}

/* Active catalog-only reverts to solid border */
.gw-entry .gw-size-pill.is-catalog-only.is-active {
  border-style: solid !important;
}

/* Asterisk superscript on catalog-only pills */
.gw-entry .gw-pill-asterisk {
  font-size: 0.7em !important;
  line-height: 1 !important;
  vertical-align: super !important;
}


/* ── Legend below pill row ─────────────────────────────────────────────────── */
.gw-entry .gw-pills-legend {
  font-size: 13px !important;
  color: #5a5850 !important;
  font-style: italic !important;
  margin: 0 0 1rem !important;
  line-height: 1.5 !important;
}


/* ── Measurement panels ────────────────────────────────────────────────────── */

/*
 * Reinforce the [hidden] attribute in case Imagely's parent theme CSS
 * or a reset strip removes the browser's default display:none for [hidden].
 */
.gw-entry .gw-size-panel[hidden] {
  display: none !important;
}

/* Single-size heading (shown when no pill nav is rendered) */
.gw-entry .gw-size-heading {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: 15px !important;
  font-weight: normal !important;
  color: #3d3c38 !important;
  margin: 0 0 0.5rem !important;
  border: none !important;
  padding: 0 !important;
}


/* ── Confidence row in multi-size measurements table ───────────────────────── */
/*
 * Visually subordinate — smaller, italic, separated by a dashed rule.
 * Placed at the bottom of each size's .gw-meas-table tbody.
 */
.gw-entry .gw-meas-confidence-row td {
  color: #5a5850 !important;
  font-size: 13px !important;
  font-style: italic !important;
  border-top: 1px dashed #e8e3da !important;
  background: transparent !important;
}


/* ── Empty / no-data state ─────────────────────────────────────────────────── */
.gw-entry .gw-meas-empty {
  font-style: italic !important;
  color: #5a5850 !important;
  font-size: 14px !important;
  margin: 0.5rem 0 !important;
}


/* ── Responsive: narrow viewports ─────────────────────────────────────────── */
@media ( max-width: 480px ) {
  .gw-entry .gw-size-pills { gap: 0.3rem !important; }
  .gw-entry .gw-size-pill  { font-size: 13px !important; padding: 2px 10px !important; }
  .gw-entry .gw-manufactured-range { font-size: 13px !important; }
}
