/* Antiques Roadshow Appraisal Glossary Styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #fff; }
a { color: #1a5d8c; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
header { background: linear-gradient(135deg, #2c3e50, #1a5d8c); color: white; padding: 1.5rem 0; position: sticky; top: 0; z-index: 100; }
header h1 { margin: 0 0 0.25rem; font-size: 1.8rem; }
.tagline { margin: 0 0 1rem; opacity: 0.9; font-size: 1rem; }
nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
nav a { color: white; font-weight: 500; padding: 0.25rem 0.5rem; border-radius: 4px; transition: background 0.2s; }
nav a:hover, nav a:focus { background: rgba(255,255,255,0.1); }
#menuToggle { display: none; background: none; border: 1px solid white; color: white; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; }
main { padding: 1.5rem 0; }
h2, h3 { color: #2c3e50; margin-top: 0; }
h4 { margin: 0 0 0.5rem 0; font-size: 1.1rem; color: #34495e; }
.search-container { position: relative; max-width: 400px; }
#termSearch { width: 100%; padding: 0.75rem 2.5rem 0.75rem 1rem; border: 2px solid #ddd; border-radius: 4px 4px 0 0; font-size: 1rem; }
#termSearch:focus { outline: none; border-color: #1a5d8c; }
#clearSearch { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 1.25rem; cursor: pointer; color: #666; }
.search-hint { font-size: 0.875rem; color: #666; margin: 0.5rem 0 1rem; }
.category-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 1rem; }
.category-tabs button { background: none; border: none; padding: 0.75rem 1.5rem; font-weight: 500; color: #666; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; }
.category-tabs button[aria-selected="true"] { border-bottom-color: #1a5d8c; color: #1a5d8c; }
.category-tabs button:hover { background: #f8f9fa; }
.category-panel { display: none; }
.category-panel.active { display: block; }
.terms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin: 1rem 0; }
.term-card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.25rem; background: #fafafa; transition: transform 0.2s, box-shadow 0.2s; }
.term-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.term-card h4 { margin-top: 0; color: #2c3e50; font-size: 1.2rem; }
.term-title { font-weight: 600; color: #1a5d8c; margin: 0.25rem 0;
.term-desc { font-size: 0.9rem; color: #555; margin: 0.5rem 0;
.condition-examples, .valuation-factors { background: #fff; border-radius: 4px; padding: 0.75rem; margin: 0.75rem 0;
.factors-title { font-weight: 600; margin: 0 0 0.5rem; color: #2c3e50; font-size: 0.9rem;
.factors-list { margin: 0; padding: 0 0 0 1rem; }
.factors-list li { margin: 0.25rem 0; font-size: 0.9rem; }
.bookmark-btn { background: #1a5d8c; color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; font-size: 0.9rem; margin-top: 0.5rem; transition: background 0.2s; }
.bookmark-btn:hover { background: #143655; }
.no-bookmarks { text-align: center; color: #666; padding: 2rem; font-style: italic; }
.secondary-btn { background: none; border: 2px solid #1a5d8c; color: #1a5d8c; padding: 0.75rem 1.5rem; border-radius: 4px; cursor: pointer; margin-top: 1rem; font-weight: 500; transition: all 0.2s; }
.secondary-btn:hover { background: #1a5d8c; color: white; }
#guide-section { background: #f8f9fa; padding: 2rem 1rem; margin: 2rem 0; border-radius: 8px; }
#guide-section h2 { color: #2c3e50; margin-top: 0; }
#guide-section h3 { font-size: 1.25rem; color: #34495e; margin-top: 1.5rem; }
.example-box { background: white; border-left: 4px solid #1a5d8c; padding: 1rem; margin: 1rem 0; border-radius: 0 4px 4px 0; font-size: 0.95rem; }
footer { background: #2c3e50; color: white; padding: 1.5rem 0; margin-top: 2rem; }
.footer-content { text-align: center; font-size: 0.875rem; }
.footer-content a { color: #bdc3c7; margin: 0 0.5rem; }
@media (max-width: 768px) { 
#menuToggle { display: block; }
#navMenu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #2c3e50; padding: 1rem; flex-direction: column; gap: 0.5rem; }
#navMenu.show { display: flex; }
nav ul { flex-direction: column; flex-wrap: nowrap; }
.category-tabs { flex-direction: column; border-bottom: none; border-right: none; border-left: none; border-bottom: 1px solid #eee; }
.terms-grid { grid-template-columns: 1fr; }
header h1 { font-size: 1.5rem; }
.tagline { font-size: 0.9rem; }
}
@media (max-width: 480px) { 
.container { padding: 0 0.5rem; }
.term-card { padding: 1rem; }
#termSearch { padding: 0.5rem 2rem 0.5rem 0.75rem; font-size: 0.9rem; }
#clearSearch { font-size: 1rem; right: 0.25rem; top: 45%; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
