<?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_6f1fb2ec-0d01-4967-96f4-1f77647d5366">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-21</startDate>
            <endDate>2025-11-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_6f1fb2ec-0d01-4967-96f4-1f77647d5366"
      id="F_20ef5826-5b61-475c-a555-7e026dbbcb56">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6f1fb2ec-0d01-4967-96f4-1f77647d5366"
      id="F_6e978d64-3efe-4434-b2fa-04b51a77b955">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6f1fb2ec-0d01-4967-96f4-1f77647d5366"
      id="F_5acb3a5f-149a-4c4d-bd10-b0756aa37c37">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_6f1fb2ec-0d01-4967-96f4-1f77647d5366"
      id="F_c12ca988-ff4a-4e47-86cf-5157a42c1323">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_6f1fb2ec-0d01-4967-96f4-1f77647d5366"
      id="F_7bce9552-10ab-43a9-9e07-1f5c3642d30a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6f1fb2ec-0d01-4967-96f4-1f77647d5366"
      id="F_49956b1c-b682-4f49-9c6f-5d388a1865c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6f1fb2ec-0d01-4967-96f4-1f77647d5366"
      id="F_e124bfbe-fb26-4e8a-99ea-e46f0b980837">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6f1fb2ec-0d01-4967-96f4-1f77647d5366"
      id="F_353c9538-7192-4448-b69d-d90dcc69a10c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6f1fb2ec-0d01-4967-96f4-1f77647d5366"
      id="F_fc385316-8611-421d-9e68-a2edd685e4ec">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_6f1fb2ec-0d01-4967-96f4-1f77647d5366"
      id="F_29a16610-65dd-4feb-a8d7-3382a5ef50d5">&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;305,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_6f1fb2ec-0d01-4967-96f4-1f77647d5366"
      decimals="0"
      id="F_f8166e75-3c3e-4feb-9e64-1cb50d9541a2"
      unitRef="U_USD">305000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
