@font-face{font-family:IRANYekanXFaNum;src:url('../../../../assets/fonts/IRANYekanXFaNum/woff2/IRANYekanXFaNum-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:IRANYekanXFaNum;src:url('../../../../assets/fonts/IRANYekanXFaNum/woff2/IRANYekanXFaNum-Medium.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:IRANYekanXFaNum;src:url('../../../../assets/fonts/IRANYekanXFaNum/woff2/IRANYekanXFaNum-DemiBold.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:IRANYekanXFaNum;src:url('../../../../assets/fonts/IRANYekanXFaNum/woff2/IRANYekanXFaNum-Bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:IRANYekanXFaNum;src:url('../../../../assets/fonts/IRANYekanXFaNum/woff2/IRANYekanXFaNum-ExtraBold.woff2') format('woff2');font-style:normal;font-weight:800;font-display:swap}
:root{color-scheme:light;--ink:#353535;--muted:#777;--blue:#0b66a9;--line:#e6e8eb;--soft:#f0f9ff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font:0.875rem/2 IRANYekanXFaNum,Tahoma,sans-serif}img{max-width:100%;height:auto}p{margin:0 0 1rem}h1,h2,h3{line-height:1.7;margin:0;font-weight:500}h1{font-size:clamp(1.5rem,3vw,2.35rem)}h2{font-size:1.25rem}bdi{unicode-bidi:isolate}button,input{font:inherit}::selection{background:#dceefa;color:#074b7b}.tool-wrap{width:min(1180px,calc(100% - 48px));margin-inline:auto}
.tool-header{background:#fff}.tool-header .tool-wrap{display:flex;justify-content:center;align-items:center;gap:1rem; padding: 2rem 0 1rem 0;}.tool-header img{width:205px;display:block}.tool-byline{direction:rtl;color:var(--muted);font-size:0.75rem}
.tool-intro{padding-block:64px 48px;text-align:center}.eyebrow{display:block;color:var(--blue);font-size:0.75rem;margin-bottom:10px}.tool-intro p{max-width:800px;margin:0 auto;color:#666;line-height:2.2}.model-tags{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:24px;direction:ltr}.model-tags span{border:1px solid var(--line);font-weight:600!important;padding:3px 14px;border-radius:6px;font:12px/1.8 Arial,sans-serif;letter-spacing:.04em;color:#666}
.converter-section{padding:40px 0 48px;background:var(--soft);scroll-margin-top:20px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:46px}.section-heading p{font-size:0.75rem;color:var(--muted);margin:0}.section-heading .eyebrow{margin-bottom:4px}.converter-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.5fr);gap:24px;align-items:start}.model-column{min-width:0;display:grid;gap:24px}.color-system{position:relative;min-width:0;margin:0;border:1px solid #ddd;border-radius:12px;background:#fff;padding:20px 18px 18px}.color-system .color-system-title{position:absolute;top:0;left:18px;transform:translateY(-50%);background:#fff;width:auto;max-width:calc(100% - 36px);padding:4px 8px;margin:0;color:#555;font:600 13px/1.5 Arial,IRANYekanXFaNum,sans-serif;letter-spacing:.035em}.color-system>div{margin-bottom:12px}.color-system>div:last-child{margin-bottom:0}.color-system .d-flex.align-items-center{gap:7px}.d-flex{display:flex}.align-items-center{align-items:center}.flex-fill{flex:1 1 0;min-width:0}.w-100{width:100%!important}.p-0{padding:0}.mb-0{margin-bottom:0!important}.mt-2{margin-top:12px}.row{display:flex;flex-wrap:wrap;margin-inline:-5px}.col-4{width:33.333333%;padding-inline:5px;min-width:0}.color-system label{display:block;font:12px/1.5 Arial,sans-serif;color:#353535;margin-bottom:4px}
.main .custom-input{min-width:0;width:49px;height:36px;border:1px solid #dce1e6;border-radius:6px;background:#fff;padding:4px;text-align:center;color:#454545;font:13px/1.5 Arial,sans-serif;transition:border-color .2s,box-shadow .2s}.main .custom-input:focus{outline:none;border-color:#5a9ecb;box-shadow:0 0 0 3px #0b66a914}.main .custom-input:disabled{background:var(--soft);border-color:#eceef0;color:#454545;opacity:1}.main .c-name{flex:0 0 64px!important;font:14px/1.5 Arial,sans-serif;padding-right:2px;white-space:nowrap}.main #spBlack{font-size:9px}.main .percent{display:flex;align-items:center;padding:0 4px;font:11px/1.4 Arial,sans-serif;color:#999;white-space:nowrap}.main .sq{font:18px/36px Arial,sans-serif;color:#999;padding-right:9px}.main #hex{font:14px/1.5 Arial,sans-serif;letter-spacing:2px;height:36px;text-transform:uppercase}.preview-column .color-system:first-child{padding-bottom:20px}.main #tdcp{width:100%;height:100px;background:#fff;border:1px solid var(--line);border-radius:8px;transition:background-color .12s}.preview-note{font-size:.7rem;color:#888;line-height:1.8;margin:0;padding:0 4px;text-align:justify}
.main input[type=range]{appearance:none;-webkit-appearance:none;width:100%;min-width:0;height:20px;background:transparent;cursor:pointer;vertical-align:middle;margin:0}.main input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:#e3e8ed}.main input[type=range]::-moz-range-track{height:4px;border-radius:4px;background:#e3e8ed}.main input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:13px;height:13px;border:2px solid var(--blue);border-radius:50%;background:#fff;margin-top:-4.5px}.main input[type=range]::-moz-range-thumb{width:10px;height:10px;border:2px solid var(--blue);border-radius:50%;background:#fff}.main input[type=range]:focus-visible{outline:2px solid #8bb8d6;outline-offset:3px;border-radius:4px}
.main #clrC,.main #clrM,.main #clrY,.main #clrK,.main #clrR,.main #clrG,.main #clrB{width:17px;height:17px;flex:0 0 17px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #e0e4e8;margin-left:4px}
.guide-heading{text-align:center;padding-block:64px 30px}.guide-heading p{color:var(--muted);margin-top:10px; margin-bottom: 0;}.model-guide{padding:48px 0}.model-guide--muted{background:#f0f9ff}.guide-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:64px;align-items:center}.guide-copy{min-width:0}.guide-copy h2{font-family:Arial,sans-serif;direction:ltr;text-align:right;font-size:1.7rem;color:#45515a;margin-bottom:16px}.guide-copy p{line-height:2.2;margin:0;color:#666;text-align:justify}.guide-visual{display:grid;place-items:center}.guide-visual img{max-width:260px;max-height:230px;object-fit:contain;width:100%;height:auto}@media(min-width:651px){.model-guide:nth-of-type(even) .guide-grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}.model-guide:nth-of-type(even) .guide-visual{order:-1}}.dir-rtl{direction:rtl}.dir-ltr{direction:ltr}
.tool-footer{padding:32px 0;border-top:0 solid var(--line);background:#454545;text-align:center}.tool-footer img{width:160px;display:block;margin:0 auto 12px;opacity:.7;filter:grayscale(1)}.tool-footer p{font-size:.7rem;color:#888;margin-bottom:8px}.tool-footer small{font:12px/1.5 Arial,sans-serif;color:#999}.skip-link{position:absolute;top:-100px;left:16px;background:#fff;border:1px solid var(--blue);padding:8px 16px;z-index:10}.skip-link:focus{top:10px}
@media(max-width:1050px){.converter-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.preview-column{grid-column:1/-1;grid-template-columns:1fr 1fr;align-items:start}.preview-note{grid-column:1/-1}.main #tdcp{height:88px}.section-heading{display:block}.section-heading p{margin-top:10px}.guide-grid{gap:32px}}
@media(max-width:650px){.tool-wrap{width:calc(100% - 32px)}.tool-header .tool-wrap{min-height:82px}.tool-header img{width:175px}.tool-byline{font-size:.6rem}.tool-intro{padding-block:40px 32px}.tool-intro p{font-size:.8rem}.converter-section{padding-block:28px 32px}.section-heading h2{font-size:1.1rem}.converter-grid{grid-template-columns:1fr;gap:24px}.model-column{gap:24px}.preview-column{grid-column:auto;grid-template-columns:1fr}.preview-note{grid-column:auto}.color-system{padding:18px 16px}.main .c-name{flex-basis:70px!important}.main #tdcp{height:140px}.guide-heading{padding-block:40px 16px}.guide-heading h2{font-size:1.1rem}.guide-grid{grid-template-columns:1fr;gap:28px}.model-guide{padding-block:32px}.guide-visual{order:-1}.guide-visual img{max-width:200px;max-height:190px}.guide-copy h2{font-size:1.4rem}.guide-copy p{font-size:.8rem}.tool-footer{padding-block:28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

.tool-badge{display:inline-flex;align-items:center;padding:4px 14px;border:1px solid #d8e8f3;border-radius:999px;background:#edf5fb;color:var(--blue);font-size:.7rem;line-height:1.9;margin-bottom:14px}

/* Consistent vertical spacing for all converter content sections. */
.main > section { padding-block: 64px; }
@media (width < 767px) {
  .main > section { padding-block: 54px; }
}

.main > section h2 { font-weight: 600; }

.color-system .color-system-title { border: 1px solid var(--line); border-radius: 5px; background: #454545; color: #EEE; }

.section-heading { justify-content: center; text-align: center; }
.section-heading .tool-badge { margin-bottom: 14px; }

#tdRGB .color-system input.custom-input { background-color: #fff; }

.guide-copy p + p { margin-top: 1rem; }

.tool-intro h1 { font-weight: 600; }

.main input.custom-input, .main #hex { font-weight: 600; }

/* Channel colors for CMYK and RGB slider handles. */
#slider_c { --channel-color: #00ffff; }
#slider_m { --channel-color: #ff00ff; }
#slider_y { --channel-color: #ffff00; }
#slider_k { --channel-color: #000000; }
#slider_r { --channel-color: #ff0000; }
#slider_g { --channel-color: #00ff00; }
#slider_b { --channel-color: #0000ff; }
.main input[type=range]::-webkit-slider-thumb { background-color: var(--channel-color, var(--blue)); border-color: var(--channel-color, var(--blue)); }
.main input[type=range]::-moz-range-thumb { background-color: var(--channel-color, var(--blue)); border-color: var(--channel-color, var(--blue)); }

.footer-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 18px; direction: ltr; }
.footer-logos a { display: flex; align-items: center; justify-content: center; }
.tool-footer .footer-logos img { display: block; width: 7.5rem; height: auto; max-width: 100%; max-height: none; margin: 0; filter: brightness(0) invert(1); opacity: .4; }

.tool-footer { padding-block: 64px; }
@media (width < 767px) {
  .tool-footer { padding-block: 54px; }
}

.tool-intro .tool-subtitle { color: #777; font-size: clamp(1rem,2vw,1.125rem); margin: 0 auto 16px; }

.tool-header .tool-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.tool-header .tool-wrap > img { grid-column: 2; grid-row: 1; }
.tool-home-link { grid-column: 3; grid-row: 1; justify-self: end; display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 7px; align-self: flex-start; color: #777; text-decoration: none; font-size: 12px; white-space: nowrap; transition: color .25s ease; }
.tool-home-link svg { flex-shrink: 0; }
.tool-home-link:hover { color: var(--blue); }
.tool-home-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.home-label-short { display: none; }
@media (max-width: 479px) {
  .tool-header img { width: 140px; }
  .tool-header .tool-wrap { gap: 5px; }
  .tool-home-link { font-size: 11px; gap: 4px; }
  .tool-home-link svg { width: 14px; height: 14px; }
  .home-label-full { display: none; }
  .home-label-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .tool-home-link { transition: none; } }





.color-usage-notes { background: #fff; }
.notes-heading { text-align: center; margin-bottom: 28px; }
.notes-heading > p { max-width: 720px; margin: 12px auto 0; color: #777; }
.color-notes-list { max-width: 900px; margin: 0 auto; padding: 0; }
.color-notes-list .page-faq { border-bottom: 1px solid #eee; padding: 0.75rem 0; }
.color-notes-list .page-faq:last-of-type { border-bottom: 0; }
.color-notes-list summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-weight: 400; color: #3d3d3d; margin-bottom: 0; }
.color-notes-list summary::after { content: ''; order: -1; box-sizing: border-box; flex: 0 0 8px; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.color-notes-list summary::-webkit-details-marker { display: none; }
.color-notes-list summary::before { content: ''; order: 1; margin-inline-start: auto; flex: 0 0 .4375rem; width: .4375rem; height: .4375rem; color: #777; border-right: .09375rem solid currentColor; border-bottom: .09375rem solid currentColor; transform: rotate(45deg); transition: transform .25s ease; }
.color-notes-list .page-faq[open] > summary { margin-bottom: .5rem; font-weight: 600; }
.color-notes-list .page-faq[open] > summary::before { transform: rotate(225deg); }
.color-notes-list .page-faq.is-closing > summary::before { transform: rotate(45deg); }
.color-notes-list .page-faq p { margin: 0 0 .25rem; line-height: 2; color: #666; }
.color-notes-list .page-faq p:last-of-type { margin-bottom: 0; }
.color-notes-list summary:focus-visible { outline: 2px solid #e5a927; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .color-notes-list summary::before { transition: none; } }

/* Two equal color segments on either side of the main heading. */
.tool-intro .tool-title { display: flex; align-items: center; justify-content: center; gap: 24px; direction: rtl; }
.tool-title > span { flex: 0 0 auto; }
.tool-title::before, .tool-title::after { content: ''; display: block; flex: 0 1 150px; width: 150px; min-width: 8px; height: 4px; }
.tool-title::before { background: linear-gradient(to right, #00ffff 0 50%, #ff00ff 50% 100%); }
.tool-title::after { background: linear-gradient(to right, #ffff00 0 50%, #000 50% 100%); }
@media (max-width: 650px) { .tool-intro .tool-title { gap: 12px; } }

/* RTL return arrow: fixed direction and clear curved shape. */
.tool-home-link{display:inline-flex;flex-direction:row;direction:rtl;align-items:center;gap:8px;color:#555}
.tool-home-link .home-return-icon{display:block;flex:0 0 20px;width:20px;height:20px;transform:none}

.tool-intro h1 { font-weight: 800; }

.color-system label { font-family: IRANYekanXFaNum, Tahoma, sans-serif; }
.color-system #panel-title-3,.color-system #panel-title-4{font-size:14px}
.color-system[aria-labelledby="panel-title-3"] label,.color-system[aria-labelledby="panel-title-4"] label{font-size:14px}

/* Keep HSV/HSL labels to the physical left of their inputs in RTL pages. */
.main .cylindrical-field{display:flex;direction:ltr;align-items:center;gap:6px}
.main .cylindrical-field>label{flex:0 0 auto;margin:0}
.main .cylindrical-field>div{display:flex;direction:ltr;align-items:center;min-width:0}

.opacity-controls{display:flex;direction:ltr;align-items:center;gap:6px}
.main .opacity-controls>label{margin:0;flex:0 0 auto}
.main .opacity-controls input[type=range]{flex:1;min-width:30px}
.transparency-grid{border-radius:8px;background-color:#fff;background-image:conic-gradient(#ddd 25%,transparent 0 50%,#ddd 0 75%,transparent 0);background-size:16px 16px}
.main .opacity-system #rgba-output{font-size:12px}

.opacity-outputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.main .opacity-outputs .custom-input{font-size:11px;letter-spacing:0}

.main input.custom-input{min-width:65px}

.main input.custom-input[readonly],.main .opacity-system #rgba-output,.main .opacity-outputs input.custom-input{font-size:14px}

.opacity-outputs{grid-template-columns:minmax(0,1fr) auto}
.main .opacity-outputs #hex-alpha-output{width:auto!important}

.main .opacity-outputs #hex-alpha-output{width:calc(11ch + 18px)!important;font-family:Arial,sans-serif}

.main .opacity-outputs #hex-alpha-output{padding-left:0.5rem;padding-right:0.5rem}

@media(width < 840px){.opacity-outputs{grid-template-columns:minmax(0,1fr)}}

@media(width < 840px){.main .opacity-outputs #hex-alpha-output{width:100%!important}}
