<?xml version="1.0" encoding="utf-8"?>
<xbrl
  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: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_467bae61-b8da-4c4c-9431-c0104096f3b4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-03</startDate>
            <endDate>2025-10-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_467bae61-b8da-4c4c-9431-c0104096f3b4"
      id="F_404127d4-04e1-4378-a231-b265c36a3830">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_467bae61-b8da-4c4c-9431-c0104096f3b4"
      id="F_ec9bc95e-8168-420b-ba4d-5c61d6a79218">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_467bae61-b8da-4c4c-9431-c0104096f3b4"
      id="F_593207e3-b697-4032-aae1-6c35ec840086">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_467bae61-b8da-4c4c-9431-c0104096f3b4"
      id="F_3b0ee540-0644-4d5c-bb2a-4818afb4685f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_467bae61-b8da-4c4c-9431-c0104096f3b4"
      id="F_07fcf895-4857-41f7-a2e2-4b479605cbe3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_467bae61-b8da-4c4c-9431-c0104096f3b4"
      id="F_dcd0767e-a18c-487e-b40a-d6c102aeda82">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_467bae61-b8da-4c4c-9431-c0104096f3b4"
      id="F_5601694a-16be-4026-8030-47978d4d69cc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_467bae61-b8da-4c4c-9431-c0104096f3b4"
      id="F_a05f18ca-9726-43e9-b1fe-d7ed1f0c84c8">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_467bae61-b8da-4c4c-9431-c0104096f3b4"
      id="F_a2dc3469-5ee2-4ebe-adf4-e846ed4033df">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_467bae61-b8da-4c4c-9431-c0104096f3b4"
      id="F_a076c317-aa0a-42a2-834f-863c1e4daf59">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;12,000,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_467bae61-b8da-4c4c-9431-c0104096f3b4"
      decimals="0"
      id="F_6733f111-af46-410f-b97b-aa410cdfb4fc"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
