/* Better To Best Research Hub - Optimized Styles */
body{font-family:Arial,sans-serif;line-height:1.6;max-width:800px;margin:0 auto;padding:20px;color:#333;background:#fff}h1,h2,h3{color:#222;margin-top:1.2em;margin-bottom:.6em}h1{font-size:1.8em}h2{font-size:1.5em}h3{font-size:1.3em}dt{font-weight:700;margin-top:1em;color:#222}dd{margin-left:20px;margin-bottom:.5em}a{color:#0066cc;text-decoration:none;transition:color .2s ease}a:hover{text-decoration:underline;color:#0052a3}header{text-align:center;border-bottom:1px solid #ddd;padding-bottom:20px;margin-bottom:30px}section{margin-bottom:40px}ul{list-style-type:disc;padding-left:20px}ul li{margin-bottom:.3em}pre{background:#f4f4f4;padding:10px;overflow:auto;border-radius:4px;font-size:.9em}.paper-item{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid #eee}.paper-item:last-child{border-bottom:none}.paper-item h3{margin-bottom:8px;color:#0066cc}.paper-item h3 a{color:#0066cc}.paper-item h3 a:hover{color:#0052a3}.paper-item p{margin:8px 0;color:#555}

/* Performance optimizations */
*{box-sizing:border-box}
img{max-width:100%;height:auto;}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Mobile optimizations */
@media (max-width:768px){body{padding:15px;font-size:16px}h1{font-size:1.6em}h2{font-size:1.4em}h3{font-size:1.2em}.paper-item{margin-bottom:25px}section{margin-bottom:30px}}

/* Print optimizations */
@media print{body{max-width:none;padding:0;color:#000}a{color:#000;text-decoration:underline}header{border-bottom:2px solid #000}}

/* Research Paper Badge Styling */
.paper-type-badge {
    background: #1e40af;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header mark + geometry construction tooltip */
.btb-mark-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    margin-bottom: 0.25em;
}
.btb-mark-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    border-radius: 50%;
}
.btb-mark-button:focus-visible {
    outline: 2px solid #26364f;
    outline-offset: 3px;
}
.btb-mark-button img {
    width: 56px;
    height: 56px;
    display: block;
    transition: transform .2s ease;
}
.btb-mark-button:hover img {
    transform: scale(1.05);
}
header h1 {
    margin-top: 0.2em;
}
.btb-geometry-note {
    max-width: 560px;
    margin: 0 auto 1.5em;
    padding: 0.9em 1.1em;
    background: #f4f6f8;
    border: 1px solid #dbe2e8;
    border-radius: 6px;
    font-size: 0.92em;
    color: #444;
    text-align: left;
    display: none;
}
.btb-geometry-note[data-open="true"] {
    display: block;
}
.btb-geometry-note h2 {
    margin: 0 0 0.4em;
    font-size: 1em;
    color: #26364f;
}
.btb-geometry-note p {
    margin: 0 0 0.6em;
}
.btb-geometry-note table {
    width: 100%;
    font-size: 0.88em;
    border-collapse: collapse;
}
.btb-geometry-note td {
    padding: 2px 0;
}
.btb-geometry-note td:last-child {
    text-align: right;
    color: #222;
}
.btb-geometry-note td:first-child {
    color: #666;
}
