/* Free Tools Factory: site styles on top of the Factory theme. Orange #C2410C, ink #1C1F23. */
:root { --ft-ink: #1C1F23; --ft-brand: #C2410C; --ft-muted: #5F6670; --ft-line: rgba(28,31,35,.13); --ft-soft: #F7F5F2; }

.factory-header { border-bottom: 1px solid var(--ft-line); }
.factory-header .wp-block-site-title { font-weight: 700; letter-spacing: -.02em; }
.factory-header .wp-block-site-title a { text-decoration: none; color: var(--ft-ink); }
.factory-header .wp-block-site-title a::before { content: ""; display: inline-block; width: .7em; height: .7em; background: var(--ft-brand); margin-right: .45em; border-radius: 2px; vertical-align: .02em; }

.ft-eyebrow { margin-top: 3rem !important; margin-bottom: .8rem !important; }
.ft-eyebrow span { font-family: var(--wp--preset--font-family--jetbrains-mono, monospace); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ft-brand); }
.ft-lede { font-size: 1.2rem; line-height: 1.55; color: var(--ft-muted); }
.ft-updated { font-size: .85rem; color: var(--ft-muted); }
h1.wp-block-heading, .wp-block-post-title { letter-spacing: -.025em; }
.wp-block-post-content h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.6rem; margin-bottom: .4rem; }

/* Tools */
.wp-block-post-content > .ft-tool { width: 100%; max-width: 100% !important; margin: 1.8rem auto 2.4rem !important; }
.ft-tool-box { width: 100%; box-sizing: border-box; background: var(--ft-soft); border: 1px solid var(--ft-line); border-radius: 8px; padding: 1rem; }
.ft-np-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.ft-btn { font: inherit; font-weight: 600; font-size: .92rem; border: 0; border-radius: 6px; padding: .55rem 1rem; background: var(--ft-brand); color: #fff; cursor: pointer; }
.ft-btn:hover { background: #9A3412; }
.ft-btn:focus-visible, .ft-uc-char:focus-visible, .ft-np-list button:focus-visible { outline: 3px solid #FDBA74; outline-offset: 2px; }
.ft-btn-quiet { background: #fff; color: var(--ft-ink); border: 1px solid var(--ft-line); }
.ft-btn-quiet:hover { background: #fff; border-color: var(--ft-ink); }
.ft-status { font-size: .85rem; color: var(--ft-muted); margin: 0 0 0 auto; }

.ft-np { display: grid; grid-template-columns: 14rem 1fr; gap: .8rem; min-height: 26rem; }
.ft-np-list { list-style: none; margin: 0; padding: 0; overflow: auto; max-height: 30rem; }
.ft-np-list li { margin: 0 0 .3rem; }
.ft-np-list button { width: 100%; text-align: left; font: inherit; font-size: .92rem; background: #fff; border: 1px solid var(--ft-line); border-radius: 6px; padding: .5rem .7rem; cursor: pointer; color: var(--ft-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-np-list button.is-active { border-color: var(--ft-brand); box-shadow: inset 4px 0 0 var(--ft-brand); }
.ft-np-text { width: 100%; min-height: 26rem; resize: vertical; font: 1rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 1rem; border: 1px solid var(--ft-line); border-radius: 6px; background: #fff; color: var(--ft-ink); box-sizing: border-box; }
@media (max-width: 700px) { .ft-np { grid-template-columns: 1fr; } .ft-np-list { display: flex; gap: .4rem; overflow-x: auto; max-height: none; } .ft-np-list li { flex: 0 0 11rem; } }

.ft-board { position: relative; width: 100%; box-sizing: border-box; min-height: 420px; border-radius: 6px; background: #fff radial-gradient(rgba(28,31,35,.10) 1px, transparent 1px) 0 0 / 18px 18px; border: 1px solid var(--ft-line); overflow: hidden; }
.ft-sticky { position: absolute; width: 210px; border-radius: 4px; box-shadow: 0 6px 16px rgba(28,31,35,.16); display: flex; flex-direction: column; }
.ft-sticky.is-dragging { box-shadow: 0 12px 28px rgba(28,31,35,.25); z-index: 5; }
.ft-sticky-head { height: 28px; cursor: grab; display: flex; justify-content: space-between; align-items: center; padding: 0 6px; touch-action: none; border-radius: 4px 4px 0 0; background: rgba(0,0,0,.06); }
.ft-sticky-color { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(28,31,35,.4); background: transparent; cursor: pointer; padding: 0; }
.ft-sticky-close { border: 0; background: transparent; font-size: 1.2rem; line-height: 1; cursor: pointer; color: rgba(28,31,35,.7); padding: 0 4px; }
.ft-sticky-text { border: 0; background: transparent; resize: vertical; min-height: 150px; padding: .6rem .7rem; font-size: .98rem; line-height: 1.5; font-family: inherit; color: var(--ft-ink); }
.ft-sticky-text:focus { outline: none; }
.ft-c-yellow { background: #FFF1A8; } .ft-c-blue { background: #CFE3FF; } .ft-c-green { background: #D2F2D8; } .ft-c-pink { background: #FFD6E5; } .ft-c-white { background: #FFFFFF; }

.ft-uc-controls { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .4rem; }
.ft-uc-search { flex: 1 1 18rem; font: inherit; padding: .6rem .8rem; border: 1px solid var(--ft-line); border-radius: 6px; background: #fff; }
.ft-uc-group { font: inherit; padding: .6rem .8rem; border: 1px solid var(--ft-line); border-radius: 6px; background: #fff; }
.ft-uc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr)); gap: .35rem; max-height: 26rem; overflow-y: auto; padding: .2rem; }
.ft-uc-char { font-size: 1.45rem; line-height: 1; height: 3rem; border: 1px solid var(--ft-line); border-radius: 6px; background: #fff; cursor: pointer; color: var(--ft-ink); }
.ft-uc-char:hover { border-color: var(--ft-brand); background: #FFF4EC; }
.ft-uc-info { display: flex; gap: 1rem; align-items: flex-start; margin-top: .9rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--ft-line); border-radius: 6px; font-size: .92rem; }
.ft-uc-info p { margin: 0 0 .3rem; }
.ft-uc-big { font-size: 3rem; line-height: 1; min-width: 3.5rem; text-align: center; }
.ft-uc-name { font-weight: 700; }

/* Footer */
.ft-footer { background: var(--ft-ink); color: #D7DADE; margin-top: 4rem; }
.ft-footer a { color: #fff; text-decoration: none; }
.ft-footer a:hover { color: #FDBA74; }
.ft-footer-inner { max-width: 70rem; margin: 0 auto; padding: 3rem 1.5rem 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.ft-footer-name { font-weight: 700; font-size: 1.2rem; color: #fff; margin: 0 0 .4rem; }
.ft-footer-brand p { margin: 0 0 .4rem; }
.ft-footer-label { font-family: var(--wp--preset--font-family--jetbrains-mono, monospace); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #FDBA74; margin: 0 0 .7rem; }
.ft-footer ul { list-style: none; margin: 0; padding: 0; }
.ft-footer li { margin: 0 0 .45rem; }
.ft-footer-base { max-width: 70rem; margin: 0 auto; padding: 1rem 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
@media (max-width: 781px) { .ft-footer-inner { grid-template-columns: 1fr 1fr; } .ft-footer-brand { grid-column: 1 / -1; } }
footer.wp-block-template-part { margin-top: 0; }
