/* Contents block: single column, light card (matches .rome-faq). */
.rome-toc{box-sizing:border-box;width:100%;margin:24px 0;padding:0;border:0;border-radius:12px;background:#f6f6f6;color:#333;overflow:hidden}
.rome-toc>summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;list-style:none;position:relative;min-height:60px;padding:14px 20px;cursor:pointer;font-family:inherit}
.rome-toc>summary::-webkit-details-marker{display:none}
.rome-toc__title{font-size:15px;font-weight:600;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:#111}
.rome-toc__meta{font-size:14px;font-weight:400;line-height:1.3;color:#666}
.rome-toc__toggle{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:14px;line-height:1;color:#555}
.rome-toc__toggle::before{content:attr(data-show)}
.rome-toc[open] .rome-toc__toggle::before{content:attr(data-hide)}
.rome-toc__toggle::after{content:'';flex:none;width:32px;height:32px;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat;transition:transform .2s ease,background-color .2s ease}
.rome-toc[open] .rome-toc__toggle::after{transform:rotate(180deg)}
.rome-toc>summary:hover .rome-toc__toggle::after{background-color:#ffe500}
.rome-toc nav{max-width:680px;padding:0 20px 18px}

/* The list rules repeat the class to outrank the theme's generic `.content .content-wrap ol li` styles. */
nav.rome-toc__nav.rome-toc__nav ol{list-style:none;margin:0;padding:0;counter-reset:rome-toc;column-count:auto}
nav.rome-toc__nav.rome-toc__nav>ol>li{counter-increment:rome-toc;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:baseline;margin:0;padding:5px 0;font-size:inherit;font-weight:400;line-height:inherit;position:static;break-inside:avoid}
nav.rome-toc__nav.rome-toc__nav>ol>li::before{content:counter(rome-toc);display:block;position:static;width:auto;padding:0 12px 0 0;border-radius:0;background:none;color:#999;font-size:14px;font-weight:600;line-height:inherit;text-align:right;font-variant-numeric:tabular-nums}
nav.rome-toc__nav.rome-toc__nav>ol>li:hover::before,nav.rome-toc__nav.rome-toc__nav>ol>li.is-active::before{color:#111}
nav.rome-toc__nav.rome-toc__nav ol li a{display:inline;min-height:0;padding:0;color:#333;font-size:17px;font-weight:400;line-height:1.5;text-decoration:none;transition:color .15s ease}
nav.rome-toc__nav.rome-toc__nav ol li a:hover{color:#111;text-decoration:underline;text-decoration-color:#ffe500;text-decoration-thickness:3px;text-underline-offset:4px}
nav.rome-toc__nav.rome-toc__nav ol ol{grid-column:2;margin:6px 0 2px;padding:0 0 0 14px;border-left:2px solid #e2e2e2;counter-reset:none}
nav.rome-toc__nav.rome-toc__nav ol ol li{display:block;margin:0;padding:3px 0;font-size:inherit;line-height:inherit;position:static}
nav.rome-toc__nav.rome-toc__nav ol ol li::before{content:none;display:none}
nav.rome-toc__nav.rome-toc__nav ol ol li a{color:#666;font-size:16px}
nav.rome-toc__nav.rome-toc__nav li.is-active>a{color:#111;font-weight:500;box-shadow:inset 3px 0 0 #ffe500;padding-left:8px;margin-left:-8px}

.rome-toc :focus-visible,.rome-toc-panel :focus-visible,.rome-toc-open:focus-visible{outline:2px solid #2271b1;outline-offset:3px}
.rome-toc-target{scroll-margin-top:60px}
.rome-toc-open{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom,0px));left:16px;z-index:900;background:#ffe500;color:#111;border:0;border-radius:99px;padding:12px 18px;font-size:14px;min-height:44px;cursor:pointer;box-shadow:0 2px 12px #0004}.rome-toc-open[hidden]{display:none}
.rome-toc-panel{box-sizing:border-box;border:0;border-radius:12px;padding:52px 24px 24px;max-width:600px;width:90vw;max-height:85dvh;overflow:auto;background:#fff;color:#333}.rome-toc-panel::backdrop{background:#0008}.rome-toc-close{position:absolute;top:6px;right:10px;width:44px;height:44px;background:none;border:0;font-size:28px;cursor:pointer}
@media(min-width:1025px){.rome-toc-open{left:auto;right:0;top:40%;bottom:auto;writing-mode:vertical-rl;border-radius:10px 0 0 10px;padding:18px 12px}}
@media(max-width:1024px){nav.rome-toc__nav.rome-toc__nav>ol>li{padding:7px 0}nav.rome-toc__nav.rome-toc__nav ol ol li{padding:6px 0}.rome-toc-panel{width:100%;max-width:none;max-height:90dvh;margin:auto 0 0;border-radius:16px 16px 0 0}}
@media(max-width:480px){.rome-toc>summary{padding:12px 16px}.rome-toc__toggle::before{content:none}.rome-toc__meta{order:3;flex-basis:100%;font-size:13px}.rome-toc nav{padding:0 16px 14px}nav.rome-toc__nav.rome-toc__nav ol li a{font-size:16px}nav.rome-toc__nav.rome-toc__nav ol ol li a{font-size:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.rome-toc__toggle::after{transition:none}}
