--- --- /* ============================================ Gemara Documentation Site Styles https://openssf.org/brand-guidelines/ ============================================ */ /* ============================================ Base Reset & Box Sizing ============================================ */ * { box-sizing: border-box; } html, body { margin: 0; padding: 0; } .wrapper { max-width: 1600px; margin: 0 auto; padding: 0 1rem; } @media screen and (min-width: 1000px) { .wrapper { padding: 0 2rem; } } @media screen and (min-width: 1200px) { .wrapper { padding: 0 3rem; } } /* ============================================ CSS Variables for Theming ============================================ */ :root { /* OpenSSF Brand Colors */ --openssf-purple: #45208c; --openssf-purple-dark: #170D34; --openssf-purple-light: #604693; --openssf-purple-lighter: #7253ED; --openssf-green: #04ee5f; --openssf-green-light: #2fff7a; /* Neutral Colors */ --color-bg-primary: #ffffff; --color-bg-secondary: #f6f8fa; --color-bg-tertiary: #f0f2f5; --color-border: #d0d7de; --color-border-light: #e7ecf0; --color-text-primary: #24292f; --color-text-secondary: #57606a; --color-text-tertiary: #6e7781; /* Shadows */ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08); --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12); /* Spacing */ --spacing-xs: 0.25rem; --spacing-sm: 0.5rem; --spacing-md: 1rem; --spacing-lg: 1.5rem; --spacing-xl: 2rem; --spacing-xxl: 3rem; /* Border Radius */ --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-super: 50px; } /* ============================================ Dark Mode Theme Variables ============================================ */ [data-theme="dark"] { /* OpenSSF Brand Colors - adjusted for dark mode */ --openssf-purple: #a78bfa; --openssf-purple-dark: #c4b5fd; --openssf-purple-light: #8b5cf6; --openssf-purple-lighter: #a78bfa; --openssf-green: #34d399; --openssf-green-light: #6ee7b7; /* Neutral Colors - dark mode (warmer, less harsh) */ --color-bg-primary: #1a1b23; --color-bg-secondary: #252732; --color-bg-tertiary: #2f3142; --color-border: #3d4054; --color-border-light: #2f3142; --color-text-primary: #e2e8f0; --color-text-secondary: #94a3b8; --color-text-tertiary: #64748b; /* Shadows - adjusted for dark mode */ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.5); } /* ============================================ Custom Font Definitions ============================================ */ @font-face { font-family: "Cairo"; src: url("{{ '/assets/fonts/Cairo/static/Cairo-Regular.ttf' | relative_url }}") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: "Cairo"; src: url("{{ '/assets/fonts/Cairo/static/Cairo-Medium.ttf' | relative_url }}") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; } @font-face { font-family: "Cairo"; src: url("{{ '/assets/fonts/Cairo/static/Cairo-SemiBold.ttf' | relative_url }}") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; } @font-face { font-family: "Cairo"; src: url("{{ '/assets/fonts/Cairo/static/Cairo-Bold.ttf' | relative_url }}") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; } @font-face { font-family: "IBMPlexSans"; src: url("{{ '/assets/fonts/IBMPlexSans/IBMPlexSans-Regular.ttf' | relative_url }}") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: "IBMPlexSans"; src: url("{{ '/assets/fonts/IBMPlexSans/IBMPlexSans-Bold.ttf' | relative_url }}") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; } @font-face { font-family: "IBMPlexSans"; src: url("{{ '/assets/fonts/IBMPlexSans/IBMPlexSans-Medium.ttf' | relative_url }}") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; } /* ============================================ Typography ============================================ */ body { font-family: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--color-text-primary); background-color: var(--color-bg-primary); line-height: 1.6; font-size: 16px; transition: background-color 0.3s ease, color 0.3s ease; } h1, h2, h3, h4, h5, h6 { font-family: "IBMPlexSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-weight: 600; line-height: 1.25; margin-top: var(--spacing-xl); margin-bottom: var(--spacing-md); color: var(--openssf-purple-dark); break-after: avoid-page; } h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: var(--spacing-xl); } h2 { font-size: 2rem; margin-top: var(--spacing-xxl); } h3 { font-size: 1.5rem; color: var(--openssf-purple); } h4 { font-size: 1.25rem; } h5, h6 { font-size: 1rem; color: var(--color-text-secondary); } /* ============================================ Text Styling ============================================ */ /* Increase weight so bold/strong are easier to identify. */ b, strong { font-weight: 700; color: var(--color-text-primary); } /* Emphasis */ em, i { font-style: italic; color: var(--color-text-secondary); } /* Avoid creating orphans at the bottom of the page when printing. */ h1, h2, h3, h4, h5, h6 { break-after: avoid-page; } /* Paragraphs */ p { margin-bottom: var(--spacing-md); color: var(--color-text-primary); } /* Status line styling - make entire status line larger */ .page-content h1 + p, .page-content > p:first-of-type { font-size: 1.25em; line-height: 1.6; margin-bottom: var(--spacing-lg); /* Ensure badges in status lines are appropriately sized */ .badge { font-size: 0.875rem; vertical-align: middle; margin-left: var(--spacing-sm); } } /* Lists */ ul, ol { margin-bottom: var(--spacing-md); padding-left: var(--spacing-xl); } li { margin-bottom: var(--spacing-sm); } /* Blockquotes */ blockquote { border-left: 4px solid var(--openssf-purple-light); padding: var(--spacing-md) var(--spacing-lg); margin: var(--spacing-lg) 0; background: var(--color-bg-secondary); border-radius: var(--radius-sm); color: var(--color-text-secondary); font-style: italic; } blockquote p:last-child { margin-bottom: 0; } /* Horizontal Rules */ hr { border: none; border-top: 2px solid var(--color-border-light); margin: var(--spacing-xxl) 0; } /* ============================================ Links ============================================ */ a { color: var(--openssf-purple); text-decoration: none; transition: color 0.2s ease, border-bottom 0.2s ease; border-bottom: 1px solid transparent; } a:hover { color: var(--openssf-purple-dark); border-bottom: 1px solid var(--openssf-purple-dark); } a:visited { color: var(--openssf-purple-light); } a:active { color: var(--openssf-green); } a:focus { outline: 3px solid var(--openssf-green); outline-offset: 2px; } /* External links indicator */ a[href^="http"]:not([href*="gemara"]):not([href*="openssf"]):not(.social-media-list a)::after { content: " ↗"; font-size: 0.85em; color: var(--color-text-tertiary); } /* ============================================ Header Layout ============================================ */ .site-header { border-bottom: 2px solid var(--openssf-purple); background: var(--color-bg-primary); box-shadow: var(--shadow-sm); padding: var(--spacing-lg) 0 var(--spacing-md) 0; transition: background-color 0.3s ease, border-color 0.3s ease; } .header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-md); flex-wrap: wrap; gap: var(--spacing-lg); position: relative; @media screen and (max-width: 768px) { flex-direction: column; align-items: flex-start; gap: var(--spacing-md); } } .site-logo { flex: 0 0 auto; a { display: block; border-bottom: none !important; &:hover { opacity: 0.85; border-bottom: none !important; } } img { display: block; height: 90px; width: auto; max-width: 100%; } @media screen and (max-width: 768px) { img { height: 70px; } } } .site-branding { flex: 1 1 auto; text-align: right; @media screen and (max-width: 768px) { text-align: left; } } .theme-toggle { flex: 0 0 auto; background: var(--color-bg-secondary); border: 2px solid var(--color-border); border-radius: 50%; padding: 0; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--openssf-purple); font-size: 1.25rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; &::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: var(--openssf-purple); opacity: 0.1; transform: translate(-50%, -50%); transition: width 0.4s ease, height 0.4s ease; } &:hover { background: var(--color-bg-tertiary); border-color: var(--openssf-purple); color: var(--openssf-purple); transform: translateY(-2px) scale(1.05); box-shadow: var(--shadow-md); &::before { width: 100%; height: 100%; } } &:active { transform: translateY(0) scale(0.98); box-shadow: var(--shadow-sm); } &:focus { outline: 3px solid var(--openssf-green); outline-offset: 3px; } &:focus:not(:focus-visible) { outline: none; } i { display: block; line-height: 1; position: relative; z-index: 1; transition: transform 0.3s ease, color 0.3s ease; } &:hover i { transform: rotate(15deg) scale(1.1); } @media screen and (max-width: 768px) { position: absolute; top: var(--spacing-md); right: var(--spacing-md); width: 40px; height: 40px; font-size: 1.1rem; z-index: 10; } @media screen and (max-width: 600px) { width: 36px; height: 36px; font-size: 1rem; } } .site-title { font-size: 3rem; font-weight: 400; margin: 0; padding: 0; line-height: 1.2; a { color: var(--openssf-purple-dark); text-decoration: none; border-bottom: none !important; transition: color 0.2s ease; &:hover { color: var(--openssf-purple); border-bottom: none !important; } &:visited { color: var(--openssf-purple-dark); } } @media screen and (max-width: 900px) { font-size: 3.00rem; } @media screen and (max-width: 600px) { font-size: 1.00rem; } } .site-tagline { font-size: 1.25rem; font-weight: 400; color: var(--color-text-secondary); line-height: 1.4; margin: var(--spacing-xs) 0 0 0; @media screen and (max-width: 900px) { font-size: 1.1rem; } @media screen and (max-width: 600px) { font-size: 1rem; } } /* ============================================ Navigation ============================================ */ .site-nav { padding-top: var(--spacing-md); .nav-trigger { display: none; } .menu-icon { display: none; } .trigger { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); align-items: center; } .page-link { color: var(--color-text-primary); font-weight: 500; font-size: 1rem; padding: var(--spacing-xs) var(--spacing-md); border-radius: var(--radius-sm); transition: all 0.2s ease; text-decoration: none; border-bottom: none !important; &:hover { background: var(--color-bg-secondary); color: var(--openssf-purple); border-bottom: none !important; } &:visited { color: var(--color-text-primary); } } @media screen and (max-width: 768px) { position: relative; label[for="nav-trigger"] { display: block; float: right; width: 36px; height: 36px; z-index: 2; cursor: pointer; } .menu-icon { display: block; float: right; width: 36px; height: 26px; line-height: 0; padding-top: 10px; text-align: center; > svg { fill: var(--openssf-purple); } } input ~ .trigger { display: none; } input:checked ~ .trigger { display: flex; flex-direction: column; align-items: flex-start; padding: var(--spacing-md) 0; width: 100%; } .page-link { display: block; width: 100%; padding: var(--spacing-sm) var(--spacing-md); } } } /* ============================================ Main Content Area ============================================ */ .main-wrapper { display: flex; gap: var(--spacing-xl); max-width: 1600px; margin: 0 auto; padding: 0 1rem; background-color: var(--color-bg-primary); transition: background-color 0.3s ease; @media screen and (min-width: 1000px) { padding: 0 2rem; } @media screen and (min-width: 1200px) { padding: 0 3rem; } @media screen and (max-width: 900px) { flex-direction: column; padding: 0 var(--spacing-md); } } .page-content { padding: var(--spacing-xl) 0; flex: 1; min-width: 0; /* Allows flex item to shrink below content size */ background-color: var(--color-bg-primary); transition: background-color 0.3s ease; } /* Constrain the readable text column on sidebar pages only (not the home layout). */ .main-wrapper .page-content > .wrapper { max-width: none; } .home, .page { max-width: 100%; } /* ============================================ Sidebar ============================================ */ .site-sidebar { width: 250px; flex-shrink: 0; padding: var(--spacing-xl) 0; position: sticky; top: var(--spacing-lg); align-self: flex-start; max-height: calc(100vh - var(--spacing-xxl)); overflow-y: auto; @media screen and (max-width: 900px) { width: 100%; position: relative; top: 0; max-height: none; padding: var(--spacing-lg) 0; border-bottom: 2px solid var(--color-border); margin-bottom: var(--spacing-lg); } } .sidebar-content { background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--spacing-md); box-shadow: var(--shadow-sm); } .sidebar-title { font-family: "IBMPlexSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--openssf-purple-dark); margin: 0 0 var(--spacing-md) 0; padding-bottom: var(--spacing-sm); border-bottom: 2px solid var(--openssf-purple-light); } .sidebar-nav { display: flex; flex-direction: column; gap: var(--spacing-sm); } .sidebar-link { display: block; padding: var(--spacing-sm) var(--spacing-md); color: var(--color-text-primary); text-decoration: none; border-radius: var(--radius-sm); transition: all 0.2s ease; border-bottom: none !important; &:hover { background: var(--color-bg-tertiary); color: var(--openssf-purple); border-bottom: none !important; } &:visited { color: var(--color-text-primary); } &:active { color: var(--openssf-purple) !important; background: var(--color-bg-tertiary) !important; } } .sidebar-details { margin: 0; padding: 0; summary { list-style: none; cursor: pointer; user-select: none; display: flex; justify-content: space-between; align-items: center; &::-webkit-details-marker { display: none; } &::after { content: "▶"; display: inline-block; margin-left: var(--spacing-xs); transition: transform 0.2s ease; font-size: 0.75em; color: var(--color-text-tertiary); flex-shrink: 0; } } &[open] summary::after { transform: rotate(90deg); } } .sidebar-summary { font-weight: 500; display: block; padding: var(--spacing-sm) var(--spacing-md); color: var(--color-text-primary); border-radius: var(--radius-sm); transition: all 0.2s ease; border-bottom: none !important; &:hover { background: var(--color-bg-tertiary); color: var(--openssf-purple); border-bottom: none !important; } } .sidebar-summary-link { color: inherit; text-decoration: none; border-bottom: none !important; flex: 1; &:hover { color: inherit; border-bottom: none !important; } &:visited { color: inherit; } } .sidebar-nested { display: flex; flex-direction: column; gap: var(--spacing-xs); margin-top: var(--spacing-xs); margin-left: var(--spacing-md); padding-left: var(--spacing-md); border-left: 2px solid var(--color-border-light); } .sidebar-nested-link { font-size: 0.9rem; padding: var(--spacing-xs) var(--spacing-sm); color: var(--color-text-secondary); &:hover { color: var(--openssf-purple); background: var(--color-bg-tertiary); } } .sidebar-details-nested { margin: 0; padding: 0; > .sidebar-summary { font-weight: 600; font-size: 0.9rem; padding: var(--spacing-xs) var(--spacing-sm); color: var(--color-text-primary); } > .sidebar-nested { margin-left: var(--spacing-sm); padding-left: var(--spacing-sm); } } /* ============================================ Logo and Title (Homepage) ============================================ */ .gemara-logo { float: right; max-width: 120px; height: auto; margin: 0 0 var(--spacing-md) var(--spacing-lg); @media screen and (max-width: 600px) { float: none; display: block; margin: var(--spacing-md) auto; max-width: 80px; } } .pronunciation { font-size: 0.5em; font-weight: 400; color: var(--color-text-secondary); font-style: italic; } /* ============================================ Gemara Layer Diagram (for model page) ============================================ */ .gemara-layer-diagram { background: transparent; padding: var(--spacing-xl); border-radius: var(--radius-md); max-width: 800px; display: flex; flex-direction: column; gap: var(--spacing-md); } .layer-banner { display: flex; align-items: center; padding: var(--spacing-sm) var(--spacing-xl); color: var(--color-text-primary); font-family: "IBMPlexSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; position: relative; .layer-number { font-size: 3rem; font-weight: 700; line-height: 1; margin-right: var(--spacing-lg); flex-shrink: 0; } .layer-content { flex: 1; text-align: center; .layer-title { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--spacing-xs); line-height: 1.2; } .layer-description { font-size: 1rem; font-weight: 400; line-height: 1.4; opacity: 0.95; } } } .layer-1 { background: #9b59b6; /* Purple - bottom */ border-radius: 0 0 50px 50px; } .layer-2 { background: #6c5ce7; /* Indigo */ } .layer-3 { background: #3498db; /* Blue */ border-radius: 50px 50px 0 0; } .layer-4 { background: #2ecc71; /* Green */ border-radius: 50px; } .layer-5 { background: #f1c40f; /* Yellow */ border-radius: 0 0 50px 50px; } .layer-6 { background: #f39c12; /* Orange */ } .layer-7 { background: #e74c3c; /* Red - top */ border-radius: 50px 50px 0 0; } @media screen and (max-width: 768px) { .gemara-layer-diagram { padding: var(--spacing-md); gap: var(--spacing-sm); } .layer-banner { padding: var(--spacing-md) var(--spacing-lg); .layer-number { font-size: 2rem; margin-right: var(--spacing-md); } .layer-content { .layer-title { font-size: 1.25rem; } .layer-description { font-size: 0.9rem; } } } .layer-4 { width: 85%; } } /* ============================================ Shared Card Base Styles ============================================ */ @mixin card-base { background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%); border: 2px solid var(--color-border); border-radius: var(--radius-md); padding: var(--spacing-xl); transition: all 0.3s ease; position: relative; display: block; text-decoration: none; color: inherit; &:hover { box-shadow: var(--shadow-md); border-color: var(--openssf-purple-light); transform: translateY(-2px); background: linear-gradient(180deg, var(--color-bg-primary) 0%, rgba(114, 83, 237, 0.05) 100%); } [data-theme="dark"] & { &:hover { background: linear-gradient(180deg, var(--color-bg-primary) 0%, rgba(167, 139, 250, 0.1) 100%); } } &:visited { color: inherit; } // Remove link styling from nested elements a { border-bottom: none !important; text-decoration: none; } // Ensure text colors are preserved p, h2, h3, h4 { color: inherit; } } .component-card, .layer-card { @include card-base; } /* ============================================ Grid Layouts (shared base) ============================================ */ .layer-grid, .component-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--spacing-xl); margin: var(--spacing-xxl) 0; // Apply card styles to direct children > div.component-card, > div.layer-card, > section, > a.component-card, > a.layer-card { @include card-base; } } /* ============================================ Component Grid Specific Styles ============================================ */ .component-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); h2 { color: var(--openssf-purple-dark); margin-top: 0; margin-bottom: var(--spacing-md); font-size: 1.75rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--spacing-sm); border-bottom: none !important; } } /* ============================================ Layer Grid Specific Styles ============================================ */ .layer-grid { h3 { color: var(--openssf-purple); margin-top: 0; font-size: 1.25rem; } h4 { color: var(--openssf-purple-dark); margin-top: var(--spacing-md); } } .layer-badge { display: inline-block; float: right; padding: var(--spacing-xs) var(--spacing-md); border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(114, 83, 237, 0.12); color: var(--openssf-purple-dark); border: 1px solid rgba(114, 83, 237, 0.25); margin-bottom: var(--spacing-xs); } [data-theme="dark"] .layer-badge { background: rgba(167, 139, 250, 0.15); color: var(--openssf-purple); border: 1px solid rgba(167, 139, 250, 0.3); } /* ============================================ Badge Styling (for components) ============================================ */ .badge { display: inline-block; padding: var(--spacing-xs) var(--spacing-md); border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.4; white-space: nowrap; vertical-align: baseline; } .badge-stable { background: rgba(4, 238, 95, 0.15); color: #006b3c; border: 1px solid rgba(4, 238, 95, 0.3); } [data-theme="dark"] .badge-stable { background: rgba(52, 211, 153, 0.2); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.4); } .badge-evolving { background: rgba(114, 83, 237, 0.15); color: var(--openssf-purple-dark); border: 1px solid rgba(114, 83, 237, 0.3); } [data-theme="dark"] .badge-evolving { background: rgba(167, 139, 250, 0.2); color: var(--openssf-purple); border: 1px solid rgba(167, 139, 250, 0.4); } .badge-active { background: rgba(69, 32, 140, 0.15); color: var(--openssf-purple-dark); border: 1px solid rgba(69, 32, 140, 0.3); } [data-theme="dark"] .badge-active { background: rgba(139, 92, 246, 0.2); color: var(--openssf-purple-light); border: 1px solid rgba(139, 92, 246, 0.4); } .badge-experimental { background: rgba(243, 156, 18, 0.15); color: #b45309; border: 1px solid rgba(243, 156, 18, 0.3); } [data-theme="dark"] .badge-experimental { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); } .badge-deprecated { background: rgba(231, 76, 60, 0.15); color: #c0392b; border: 1px solid rgba(231, 76, 60, 0.3); } [data-theme="dark"] .badge-deprecated { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); } /* ============================================ Component Content Styling ============================================ */ .component-description { font-size: 1rem; line-height: 1.6; color: var(--color-text-primary); margin-bottom: var(--spacing-md); font-weight: 500; } .component-content { font-size: 0.95rem; line-height: 1.6; color: var(--color-text-secondary); margin-bottom: 0; } /* ============================================ Code Blocks ============================================ */ /* Enhance code block styling */ pre, code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, "Monaco", monospace; } pre { background: var(--color-bg-tertiary); border: 1px solid var(--color-border); border-left: 3px solid var(--openssf-purple); border-radius: var(--radius-md); padding: var(--spacing-lg); overflow-x: auto; margin: var(--spacing-lg) 0; box-shadow: var(--shadow-sm); code { background: transparent; padding: 0; border: none; color: var(--color-text-primary); } } /* Inline code */ code { background: rgba(114, 83, 237, 0.1); color: var(--openssf-purple-dark); padding: 0.2em 0.4em; border-radius: var(--radius-sm); font-size: 0.9em; border: 1px solid rgba(114, 83, 237, 0.2); } /* Code block with language label */ pre[class*="language-"]::before, pre[class*="highlight"]::before { content: attr(data-lang); display: block; text-align: right; font-size: 0.75rem; color: var(--color-text-tertiary); margin-bottom: var(--spacing-sm); text-transform: uppercase; letter-spacing: 0.05em; } /* ============================================ Tables - OSPS Baseline Style ============================================ */ table { border-collapse: separate; border-spacing: 0; width: 100%; margin: var(--spacing-xl) 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); th, td { padding: var(--spacing-md) var(--spacing-lg); text-align: left; border-bottom: 1px solid var(--color-border-light); } th { background: linear-gradient(180deg, rgba(114, 83, 237, 0.15) 0%, rgba(114, 83, 237, 0.1) 100%); color: var(--openssf-purple-dark); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--openssf-purple-light); } th:last-child { min-width: 9rem; white-space: nowrap; } td:last-child { min-width: 9rem; } tbody tr { transition: background-color 0.2s ease; &:hover { background: var(--color-bg-secondary); } &:last-child td { border-bottom: none; } } tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.02); } } /* ============================================ Theme-aware Images (light/dark swap) ============================================ */ .theme-image { margin: var(--spacing-xl) 0; } .theme-image__img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg-secondary); box-shadow: var(--shadow-sm); } .theme-image__img--dark { display: none; } [data-theme="dark"] .theme-image__img--light { display: none; } [data-theme="dark"] .theme-image__img--dark { display: block; } .theme-image__caption { margin-top: var(--spacing-sm); color: var(--color-text-secondary); font-size: 0.95rem; text-align: center; } /* ============================================ Footer ============================================ */ .site-footer { border-top: 2px solid var(--openssf-purple); background: var(--color-bg-secondary); margin-top: var(--spacing-xxl); padding: var(--spacing-xxl) 0 var(--spacing-xl); .wrapper { color: var(--color-text-secondary); } .footer-col-wrapper { display: flex; flex-wrap: wrap; gap: var(--spacing-xl); margin-bottom: var(--spacing-lg); @media screen and (max-width: 600px) { flex-direction: column; } } .footer-col { flex: 1; min-width: 200px; } .contact-list { list-style: none; margin: 0; padding: 0; li { margin-bottom: var(--spacing-sm); } } .social-media-list { list-style: none; margin: var(--spacing-lg) 0; padding: 0; display: flex; justify-content: center; gap: var(--spacing-md); li { margin: 0; } a { display: flex; align-items: center; justify-content: center; text-decoration: none; width: 40px; height: 40px; i.fa-brands { font-size: 24px; color: var(--openssf-purple); } &:hover i.fa-brands { color: var(--openssf-purple-dark); } } } .footer-copyright { text-align: center; } a { color: var(--openssf-purple); &:hover { color: var(--openssf-purple-dark); } } p { color: var(--color-text-secondary); font-size: 0.9rem; line-height: 1.6; } } /* ============================================ Responsive Design ============================================ */ @media screen and (max-width: 900px) { h1 { font-size: 2rem; } h2 { font-size: 1.75rem; } h3 { font-size: 1.5rem; } } @media screen and (max-width: 600px) { :root { font-size: 14px; } .wrapper { padding: 0 0.75rem; } .main-wrapper { padding: 0 0.75rem; } .layer-grid, .component-grid { grid-template-columns: 1fr; } .site-title { font-size: 1.5rem; } table { font-size: 0.875rem; th, td { padding: var(--spacing-sm) var(--spacing-md); } } } /* ============================================ Print Styles ============================================ */ @media print { :root { --color-bg-primary: #ffffff; --color-bg-secondary: #ffffff; --color-text-primary: #000000; } .site-nav, .site-footer { display: none; } .site-header { border-bottom: 2px solid #000000; box-shadow: none; } a { color: #000000; text-decoration: underline; } a[href^="#"]:after, a[href^="/"]:after { content: ""; } pre { border: 1px solid #cccccc; page-break-inside: avoid; } h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } table { page-break-inside: avoid; } } /* ============================================ Accessibility Enhancements ============================================ */ /* Focus indicators */ button:focus, input:focus, textarea:focus, select:focus { outline: 3px solid var(--openssf-green); outline-offset: 2px; } /* Reduced motion for users who prefer it */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } /* High contrast mode */ @media (prefers-contrast: high) { :root { --color-border: #000000; --color-text-primary: #000000; --color-text-secondary: #000000; } }