.oft-more h2, .oft-steps-wrap h2 { font-size: clamp(26px, 2.6vw, 34px); }
.oft-more .oft-container, .oft-steps-wrap .oft-container { display: flex; flex-direction: column; gap: 28px; }
.oft-mini-card figure { flex: none; }
.oft-card .oft-card__title { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.oft-card .oft-card__title a { text-decoration: none; color: inherit; }
.oft-card .oft-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.rounded-shortcode { overflow: hidden; }

/* Heading scale: smaller top sizes, balanced line breaks so single words don't wrap alone */
.oft-main :is(h1, h2, h3) { text-wrap: balance; }
body .oft-hero h1 { font-size: clamp(40px, 4vw, 58px); line-height: 1.05; letter-spacing: -0.03em; }
.oft-hero .oft-split > .oft-hero__text { flex: 1.15 1 460px; }
body .oft-pagehead h1 { font-size: clamp(38px, 4.2vw, 56px); }
.oft-head h2, .oft-split .oft-stack h2, .oft-contact h2 { font-size: clamp(28px, 2.8vw, 40px); }
.oft-head__text { max-width: 820px; }

/* Tools use the full width of their frame, not the 760px text column */
.oft-tool-frame .is-layout-constrained > * { max-width: none; }

/* Header on phones: hide the button so the logo and menu share one row */
@media (max-width: 600px) {
	body .oft-header .wp-block-buttons.oft-header__cta { display: none; }
	body .oft-header .oft-header__inner { flex-wrap: nowrap; }
}

/* Box Gen: use the theme violet instead of the old orange override in the page content */
body .pib { --pib-accent: #6D28D9 !important; }
.oft-tool-frame > .wp-block-post-content > .wp-block-group:only-child { padding-left: 0 !important; padding-right: 0 !important; }

/* RGB565 Converter (WPCode snippet 60): match the theme */
body .converter-container { max-width: none; padding: 0; }
body .converter-container h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 8px; }
body .converter-container .controls { background: #F6F5FA; border: 1px solid #E1DEEC; border-radius: 14px; }
body .converter-container .btn, body .crop-modal .btn { background: #6D28D9; border-radius: 10px; font-family: inherit; }
body .converter-container .btn:hover:not(:disabled), body .crop-modal .btn:hover:not(:disabled) { background: #5B21B6; }
body .converter-container .btn-secondary, body .crop-modal .btn-secondary { background: #EFEBFA; color: #14111F; }
body .converter-container .btn-secondary:hover, body .crop-modal .btn-secondary:hover { background: #E1DEEC; }
body .converter-container select, body .converter-container input[type="number"] { border-color: #D3CEE3; font-family: inherit; }
body .converter-container .card { border-color: #E1DEEC; border-radius: 14px; }
body .converter-container .filename { color: #4F4A60; }
body .crop-modal { border-radius: 16px; font-family: inherit; color: #14111F; }
body .crop-viewport { border-color: #6D28D9; }
body .converter-container :focus-visible, body .crop-modal :focus-visible { outline: 3px solid #6D28D9; outline-offset: 2px; }

/* Home: tools carousel (front-page.html, carousel.js) */
.oft-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.oft-carousel__nav { display: flex; gap: 8px; }
.oft-carousel__nav[hidden] { display: none; }
.oft-carousel__btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 999px; border: 1px solid var(--oft-line-strong); background: #FFFFFF; color: var(--oft-ink); cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.oft-carousel__btn:hover:not(:disabled) { background: var(--oft-tint); border-color: var(--oft-accent); color: var(--oft-accent); }
.oft-carousel__btn:focus-visible { outline: 3px solid var(--oft-accent); outline-offset: 2px; }
.oft-carousel__btn:disabled { opacity: 0.4; cursor: default; }
body .oft-section .oft-container > .oft-carousel { margin: -6px; }
.oft-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px - 2 * 20px) / 3); gap: 20px; padding: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 6px; scrollbar-width: thin; scrollbar-color: var(--oft-line-strong) transparent; }
.oft-carousel > .oft-card { scroll-snap-align: start; min-width: 0; }
@media (max-width: 1000px) { .oft-carousel { grid-auto-columns: calc((100% - 12px - 20px) / 2); } }
@media (max-width: 640px) { .oft-carousel { grid-auto-columns: 84%; gap: 16px; } }
@media (prefers-reduced-motion: no-preference) { .oft-carousel { scroll-behavior: smooth; } }
