<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2024"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2024/ffd-2024.xsd"
      xlink:type="simple"/>
    <context id="c_offering_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000831001</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-02</startDate>
            <endDate>2025-10-02</endDate>
        </period>
    </context>
    <context id="c_offering_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000831001</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-02</startDate>
            <endDate>2025-10-02</endDate>
        </period>
    </context>
    <context id="c_report">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000831001</identifier>
        </entity>
        <period>
            <startDate>2025-10-02</startDate>
            <endDate>2025-10-02</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <ffd:SubmissnTp contextRef="c_report" id="ixv-416">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c_report" id="ixv-417">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="c_report" id="ixv-418">0000831001</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb contextRef="c_report" id="ixv-419">333-270327</ffd:RegnFileNb>
    <ffd:FormTp contextRef="c_report" id="ixv-453">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c_report" id="ixv-454">Citigroup Inc</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="c_offering_1" id="ixv-455">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c_offering_1" id="ixv-456">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_1" id="ixv-457">Citigroup Global Markets Holdings Inc. Medium-Term Senior Notes, Series N</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="c_offering_1" id="ixv-458">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_1"
      decimals="0"
      id="ixv-459"
      unitRef="shares">435</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c_offering_1"
      decimals="INF"
      id="ixv-460"
      unitRef="USD">1000</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_1"
      decimals="INF"
      id="ixv-461"
      unitRef="USD">435000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="c_offering_1"
      decimals="INF"
      id="ixv-462"
      unitRef="pure">0.00013810</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="c_offering_1"
      decimals="INF"
      id="ixv-463"
      unitRef="USD">60.07</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="c_offering_2" id="ixv-464">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c_offering_2" id="ixv-465">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_2" id="ixv-466">Citigroup Inc. Guarantee of Medium-Term Senior Notes, Series N</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c_offering_2" id="ixv-467">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_2"
      decimals="0"
      id="ixv-468"
      unitRef="shares">0</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c_offering_2"
      decimals="INF"
      id="ixv-469"
      unitRef="USD">0.00</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_2"
      decimals="INF"
      id="ixv-470"
      unitRef="USD">0.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="c_offering_2"
      decimals="INF"
      id="ixv-471"
      unitRef="pure">0.00013810</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="c_offering_2"
      decimals="INF"
      id="ixv-472"
      unitRef="USD">0.00</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-473"
      unitRef="USD">435000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-474"
      unitRef="USD">60.07</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-475"
      unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-476"
      unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="ixv-477"
      unitRef="USD">60.07</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c_offering_1" id="ixv-478">The filing fee paid with this filing pursuant to Rule 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), was originally deferred in accordance with Rule 456(b) under the Securities Act.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c_offering_2" id="ixv-479">No separate consideration will be received for the guarantee, and pursuant to Rule 457(n) under the Securities Act, no separate registration fee is payable.</ffd:OfferingNote>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="c_report"
      decimals="INF"
      id="ixv-480"
      unitRef="USD">435000</ffd:NrrtvMaxAggtOfferingPric>
    <ffd:FnlPrspctsFlg contextRef="c_report" id="ixv-481">true</ffd:FnlPrspctsFlg>
</xbrl>
