/* Glossary and "How JefurryAxis differs": reference pages built to be read by
   people and lifted by answer engines — definitions first, one idea per
   block. Cards lift on hover, so none of them wears glass (DESIGN §81, §83). */

.rp-tldr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.rp-tldr > div { padding: 18px 18px 20px; background: #0f2231; border: 1px solid #2d5a70; border-radius: 16px; }
.rp-tldr b { display: block; font: 600 11px 'Space Grotesk', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #6dddff; margin-bottom: 8px; }
.rp-tldr p { color: #dbe3ef !important; font-size: 14px !important; line-height: 1.6 !important; margin: 0 !important; }

.rp-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.rp-jump a { font-size: 12.5px; color: #9fd8ea; background: #0e2333; border: 1px solid #2d5a70; border-radius: 999px; padding: 6px 13px; text-decoration: none; transition: border-color .2s ease; }
.rp-jump a:hover { border-color: #6dddff; }

/* comparison tables */
.rp-table-wrap { margin-top: 26px; overflow-x: auto; border: 1px solid #263749; border-radius: 16px; }
.rp-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13.5px; }
.rp-table th { text-align: left; padding: 14px 16px; background: #111d2b; color: #dbe3ef; font: 600 12px 'Space Grotesk', sans-serif; letter-spacing: .06em; border-bottom: 1px solid #263749; }
.rp-table td { padding: 13px 16px; color: #aebacd; line-height: 1.55; border-bottom: 1px solid #1c2c3f; vertical-align: top; }
.rp-table tr:last-child td { border-bottom: 0; }
.rp-table td:first-child { color: #e2e4f6; font-weight: 600; white-space: nowrap; }
.rp-table .rp-us { background: #0f2231; color: #dbe3ef; }
.rp-table th.rp-us { color: #6dddff; }
.rp-table .y { color: #6dddff; font-weight: 700; }
.rp-table .p { color: #d9c88f; }
.rp-table .n { color: #56687d; }
.rp-note { color: #7f8fa3 !important; font-size: 12.5px !important; margin-top: 12px !important; }

/* glossary terms */
.gl-group { margin-top: 30px; }
.gl-group > h3 { font: 600 12px 'Space Grotesk', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #6dddff; margin-bottom: 12px; }
.gl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gl-term { padding: 20px 22px 20px; background: #111d2b; border: 1px solid #263749; border-radius: 16px; scroll-margin-top: 120px; transition: border-color .25s ease; }
.gl-term:hover, .gl-term:target { border-color: #3f5c78; }
.gl-term h3 { font: 600 18px/1.3 'Space Grotesk', sans-serif; color: #e2e4f6; letter-spacing: -.01em; }
.gl-term h3 small { display: block; font: 400 12px 'Manrope', sans-serif; color: #7f8fa3; letter-spacing: 0; margin-top: 4px; }
.engine-section .gl-term p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; max-width: none; }
.engine-section .gl-term .gl-def { color: #dbe3ef; }
.engine-section .gl-term .gl-axis { color: #9aa8bc; padding-top: 10px; border-top: 1px solid #1c2c3f; }
.gl-axis b { color: #6dddff; font-weight: 600; }
.gl-term a { color: #6dddff; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* the four approaches */
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.ap-card { padding: 22px 24px 24px; background: #111d2b; border: 1px solid #263749; border-radius: 18px; transition: border-color .25s ease, transform .25s ease; }
.ap-card:hover { border-color: #3f5c78; transform: translateY(-3px); }
.ap-tag { font: 600 10.5px 'Space Grotesk', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #7f8fa3; }
.ap-card h3 { font: 600 19px/1.35 'Space Grotesk', sans-serif; color: #e2e4f6; margin: 8px 0 12px; }
.ap-card dl { margin: 0; display: grid; gap: 10px; }
.ap-card dt { font: 600 11px 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.ap-card dd { margin: 3px 0 0; color: #aebacd; font-size: 13.5px; line-height: 1.65; }
.ap-card .ap-good { color: #6dddff; }
.ap-card .ap-gap { color: #d08c73; }

/* what we do differently */
.df-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.df-card { padding: 22px 22px 22px; background: #0f2231; border: 1px solid #2d5a70; border-radius: 18px; display: flex; flex-direction: column; }
.df-card.df-wide { grid-column: 1 / -1; }
.df-card span { font: 600 11px 'Space Grotesk', sans-serif; color: #6dddff; letter-spacing: .12em; }
.df-card h3 { font: 600 17px/1.35 'Space Grotesk', sans-serif; color: #e2e4f6; margin: 8px 0 8px; }
.engine-section .df-card p { font-size: 13.5px; line-height: 1.65; margin: 0 0 12px; color: #aebacd; max-width: none; }
.df-card a { margin-top: auto; color: #6dddff; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.fit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.fit { padding: 20px 22px; background: #111d2b; border: 1px solid #263749; border-radius: 16px; }
.fit h3 { font: 600 16px 'Space Grotesk', sans-serif; color: #e2e4f6; margin-bottom: 10px; }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fit li { position: relative; padding-left: 20px; color: #aebacd; font-size: 13.5px; line-height: 1.6; }
.fit-yes li::before { content: '\2713'; position: absolute; left: 0; color: #6dddff; }
.fit-no li::before { content: '\2715'; position: absolute; left: 0; color: #b0757f; }

@media (max-width: 1000px) {
  .rp-tldr { grid-template-columns: 1fr 1fr; }
  .df-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .rp-tldr, .gl-list, .ap-grid, .df-grid, .fit-row { grid-template-columns: 1fr; }
}
