<?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_061e326e-6f1d-4669-8e8b-7cd523abea82">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-02</startDate>
            <endDate>2025-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_061e326e-6f1d-4669-8e8b-7cd523abea82"
      id="F_5ee1aa28-71d7-40cb-8850-9858bbecd9f3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_061e326e-6f1d-4669-8e8b-7cd523abea82"
      id="F_77750bcb-d73a-442c-928f-7fde56380fd2">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_061e326e-6f1d-4669-8e8b-7cd523abea82"
      id="F_38c8af11-6333-41a6-9443-ab20d66c7eb0">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_061e326e-6f1d-4669-8e8b-7cd523abea82"
      id="F_f61dc0c9-a49e-425f-8921-abe397713c65">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_061e326e-6f1d-4669-8e8b-7cd523abea82"
      id="F_6391a8b7-6817-410c-917a-cdc190e4f91d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_061e326e-6f1d-4669-8e8b-7cd523abea82"
      id="F_9a1cc85b-a928-4ba5-a0ec-ad19efe2dafc">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_061e326e-6f1d-4669-8e8b-7cd523abea82"
      id="F_bc24e15d-c779-4b07-abc1-385c0176bd69">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_061e326e-6f1d-4669-8e8b-7cd523abea82"
      id="F_65a82aac-ac83-495a-bea8-4bd95ca79404">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_061e326e-6f1d-4669-8e8b-7cd523abea82"
      id="F_ba71665a-d802-4dfb-a34f-e1c7175e1f22">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_061e326e-6f1d-4669-8e8b-7cd523abea82"
      id="F_75090e67-2358-435d-8cc2-60f9fa7666b7">&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;100,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_061e326e-6f1d-4669-8e8b-7cd523abea82"
      decimals="0"
      id="F_44302a7f-c649-454b-b269-b5e8537b86ad"
      unitRef="U_USD">100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
