<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000070502</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000070502</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="c-2" id="f-14">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-2" id="f-15">424B3</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-2" id="f-16">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="c-2" id="f-17">0000070502</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="c-2" id="f-18">NATIONAL RURAL UTILITIES COOPERATIVE FINANCE CORPORATION</dei:EntityRegistrantName>
    <ffd:RegnFileNb contextRef="c-2" id="f-19">333-275151</ffd:RegnFileNb>
    <ffd:OfferingNote contextRef="c-1" id="f-20">None</ffd:OfferingNote>
    <ffd:OffsetTableNa contextRef="c-2" id="f-21">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="c-2" id="f-22">N/A</ffd:CombinedProspectusTableNa>
    <ffd:PrevslyPdFlg contextRef="c-1" id="f-1">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c-1" id="f-2">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-1" id="f-3">Medium-Term Notes, Series D</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="c-1" id="f-4">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd contextRef="c-1" decimals="2" id="f-5" unitRef="usd">5000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-1" decimals="5" id="f-6" unitRef="number">1.00000</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-1" decimals="2" id="f-7" unitRef="usd">5000000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-1" decimals="7" id="f-8" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-1" decimals="2" id="f-9" unitRef="usd">690.50</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-2" decimals="2" id="f-10" unitRef="usd">5000000</ffd:TtlOfferingAmt>
    <ffd:TtlPrevslyPdAmt contextRef="c-2" decimals="0" id="f-11" unitRef="usd">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlFeeAmt contextRef="c-2" decimals="2" id="f-12" unitRef="usd">690.50</ffd:TtlFeeAmt>
    <ffd:NetFeeAmt contextRef="c-2" decimals="2" id="f-13" unitRef="usd">690.50</ffd:NetFeeAmt>
</xbrl>
