* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a365d;
    --secondary: #2d3748;
    --accent: #38b2ac;
    --light: #f7fafc;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-600: #718096;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Code block colors — same as other sites */
    --background-color: #E1EFEF;
    --arduino-color-1: #00979D;
    --arduino-color-2: #62AEB2;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-100);
}

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    border-radius: 0;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

/* Sidebar */
.sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin: 0.75rem 0;
}

.sidebar a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: block;
    padding: 0.5rem 0;
}

.sidebar a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.sidebar a.active {
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--accent);
    padding-left: 6px;
    transform: none;
}

.sidebar.sidebar-empty {
    display: none;
}

.sidebar-empty ~ .main-content {
    grid-column: 1 / -1;
}

/* Main Content */
.main-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.content-wrapper {
    padding: 3rem;
}

/* Page Header */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.meta-info {
    background: #f9f9f9;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent);
    border-radius: 4px;
}

.meta-info div {
    margin-bottom: 0.5rem;
}

.meta-info div:last-child {
    margin-bottom: 0;
}

.meta-label {
    font-weight: 600;
    color: var(--gray-600);
}

.meta-value {
    color: var(--gray-900);
}

/* Sections */
.section {
    margin-bottom: 4rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Headings */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2rem 0 1rem 0;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem 0;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 1.25rem 0 0.5rem 0;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 1rem 0 0.5rem 0;
}

/* Paragraphs and Text */
p {
    margin-bottom: 1rem;
}

strong, b {
    font-weight: 600;
}

/* Product Image Gallery */
.image-main-container {
    background: white;
    padding: 16px 16px 12px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    margin: 1.5rem 0;
}

.image-main-wrapper {
    display: none;
    width: 100%;
    height: 340px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    position: relative;
    border: 1px solid var(--gray-200);
    transition: border-color 0.2s;
}

.image-main-wrapper.show {
    display: flex;
    animation: gallery-fadein 0.25s ease;
    border-color: transparent;
}

.image-main-wrapper.show:hover {
    border-color: #667eea;
}

@keyframes gallery-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.image-main-wrapper::after {
    content: "Click to zoom";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.image-main-wrapper:hover {
    border-color: #667eea;
}

.image-main-wrapper:hover::after {
    opacity: 1;
}

.image-main-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-thumbnail-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.image-thumbnail-wrapper {
    border-radius: 6px;
    border: 2px solid transparent;
    overflow: hidden;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.image-thumbnail-wrapper.active {
    border-color: #667eea;
    box-shadow: 0 0 0 1px #667eea;
}

.image-thumbnail-wrapper:not(.active):hover {
    border-color: #a5b4fc;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.image-thumbnail {
    width: 100%;
    height: 56px;
    object-fit: contain;
    display: block;
    padding: 4px;
    background: #fafafa;
    transition: none;
}

/* Quick Specs */
.quick-specs {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-label {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-weight: 500;
    color: var(--gray-900);
    font-size: 1.1rem;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th {
    background: var(--gray-100);
    color: var(--gray-900);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
}

.data-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: var(--gray-100);
    color: var(--gray-900);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
}

table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

table tr:last-child td {
    border-bottom: none;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
    transition: padding-left 0.2s ease;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:hover {
    padding-left: 0.5rem;
}

.feature-list li::before {
    content: "";
    width: 12px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 0.7rem;
    border-radius: 1px;
}

ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

ul li {
    margin-bottom: 0.5rem;
}

/* Info Boxes */
.info-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box.warning {
    background: #fef3c7;
    border-color: #fbbf24;
}

.info-box.note {
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* Code */
.code, .code-container {
	-webkit-touch-callout: auto !important;
	-webkit-user-select: auto !important;
	-khtml-user-select: auto !important;
	-moz-user-select: auto !important;
	-ms-user-select: auto !important;
	user-select: text !important;
}

.code-container{
	position: relative;
	width: 100%;
	margin: 5px 0px 20px 0px;
}

.code-copy-button{
	position: absolute;
	top: 2px;
	right: 0px;
	width: 36px;
	height: 36px;
	line-height: 36px;
	border: 2px solid var(--arduino-color-1);
	cursor: pointer;
	text-align: center;
	font-size: 0.75rem;
	font-family: 'Inter', sans-serif;
	color: white;
	background-color: var(--arduino-color-2);
	z-index: 5;
}

.code-copy-button:hover{
	background-color: var(--arduino-color-1);
}

.code-copy-toast{
	visibility: hidden;
	position: absolute;
	top: calc(2px + 25px + 4px + 10px);
	right: 0px;
	padding: 5px;
	text-align: center;
	z-index: 1;
	color: white;
	background-color: #333;
}

.code-copy-toast:after{
	position: absolute;
	top: -8px;
	right: 11px;
	width: 0;
	height: 0;
	border-bottom: solid 8px #333;
	border-left: solid 8px transparent;
	border-right: solid 8px transparent;
	margin-left: -8px;
	content:'';
}

.code-copy-toast.show{
	visibility: visible;
	-webkit-animation: fadein 1s, fadeout 1s 2.5s;
	animation: fadein 1s, fadeout 1s 2.5s;
}

@-webkit-keyframes fadein{from{opacity: 0;} to{opacity: 1;}}
@keyframes fadein{from{opacity: 0;} to{opacity: 1;}}
@-webkit-keyframes fadeout{from{opacity: 1;}  to{opacity: 0;}}
@keyframes fadeout{from{opacity: 1;} to{opacity: 0;}}

.code{
	width: 100%;
	max-height: 600px;
	padding: 0;
	margin: 0px;
	line-height: 1.5;
	overflow-y: auto;
	overflow-x: auto;
	white-space: pre;
	font-family: "Courier New", Courier, monospace;
	color: black;
	background-color: var(--background-color);
}

.line-code::before{
	width: 35px;
	padding-right: 5px;
	border-right: 5px solid var(--arduino-color-2);
	display: inline-block;
	content: var(--num);
	text-align: right;
	color: white;
	background-color: var(--arduino-color-1);
}

.line-code-first::before{
	padding-top: 5px;
}
.line-code-last::before{
	padding-bottom: 5px;
}
.line-code-first{padding-top: 10px;}

.code-inline{
	font-family: "Courier New", Courier, monospace;
	color: black;
	background-color: var(--background-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn.secondary {
    background: var(--accent);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

/* Buy Links */
.buy-links {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.buy-links li {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.2s;
}

.buy-links li:hover {
    background: var(--white);
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.buy-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.buy-links a::before {
    content: "🛒";
    font-size: 1.25rem;
}

.buy-links a:hover {
    color: var(--accent);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Reading progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 0%;
    z-index: 200;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s;
    z-index: 100;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Pinout */
.pinout-container {
    text-align: center;
    margin: 3rem 0;
}

.pinout-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Table row striping */
table tr:nth-child(even) td,
.data-table tr:nth-child(even) td {
    background: var(--gray-100);
}

/* Image zoom modal */
#modal_container {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#modal_container.open {
    display: flex;
}

#modal_close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
}

#modal_close:hover {
    color: #ccc;
}

#modal_image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

/* ── Home page ────────────────────────────────────────────────────────────── */
.home-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2b6cb0 60%, var(--accent) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}
.home-hero-content {
    max-width: 760px;
    margin: 0 auto;
}
.home-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    margin: 0 0 1rem;
    line-height: 1.2;
}
.home-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}
.home-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.hero-stat span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.hero-stat {
    font-size: 0.9rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.home-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-primary {
    background: white;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}
.home-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
.section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-card-img {
    height: 160px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.category-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 1rem;
}
.category-card-body {
    padding: 1.25rem;
    border-top: 1px solid var(--gray-200);
}
.category-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.35rem;
}
.category-card-body p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.category-card-no-img {
    height: 160px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 3rem;
}
    line-height: 1.4;
}

/* ── Listing pages (Boards / Components) ─────────────────────────────────── */
.listing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}
.listing-hero {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2.5rem;
}
.listing-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.5rem;
}
.listing-hero p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin: 0;
}
.listing-section {
    margin-bottom: 3.5rem;
}
.listing-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}
.listing-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-200);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}
.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.board-card {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.board-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.board-card-img {
    height: 130px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.board-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}
.board-card-no-img {
    color: var(--gray-300);
    font-size: 2.5rem;
}
.board-card-body {
    padding: 0.9rem;
    border-top: 1px solid var(--gray-200);
    flex: 1;
}
.board-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}
.board-card-body h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.35;
}

/* ── About page ───────────────────────────────────────────────────────────── */
.about-content {
    max-width: 760px;
}
.about-section {
    margin-bottom: 2.5rem;
}
.about-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.about-section p {
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.about-list {
    list-style: none;
    padding: 0;
}
.about-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--gray-800);
    line-height: 1.6;
    border-bottom: 1px solid var(--gray-200);
}
.about-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.about-section a {
    color: var(--accent);
    text-decoration: none;
}
.about-section a:hover {
    text-decoration: underline;
}

/* Print styles */
@media print {
    header nav,
    .sidebar,
    .breadcrumb,
    .btn-group,
    .back-to-top,
    .progress-bar,
    .buy-links {
        display: none !important;
    }

    .container {
        display: block;
    }

    .main-content {
        box-shadow: none;
        border-radius: 0;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: inherit;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .code-copy-button,
    .code-copy-toast {
        display: none !important;
    }
}
