<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0"
      id="F_5fbb164a-d843-410f-9b25-3be4ad470477">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0"
      id="F_70e0c115-bec9-4be9-a069-362962231cae">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0"
      id="F_0e380942-a148-4fea-ba12-cbc6f2522ea0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0"
      id="F_33811c56-3bc6-4846-98dc-d6335a0cde7a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0"
      id="F_2bd1a9c9-181d-46de-bfbc-44e94dfc5ee3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0"
      id="F_274b90f4-b9ea-4530-a0f5-fd6aef984539">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0"
      id="F_35fff3ac-5bff-47ba-9cf1-f454c6b6658e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0"
      id="F_d73cbc8e-3415-46d0-ab8f-62e16db8f7e3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0"
      id="F_e9ac4efd-7b26-4524-b599-cf3d40ce3fd1">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0"
      id="F_044ae89f-8c18-48b0-b44f-aa946783a324">&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;2,418,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_d5901c73-6f95-4528-a42a-2c9a6ed0a8d0"
      decimals="-3"
      id="F_bdc5c74d-645d-4588-b2b1-97aafa3648e8"
      unitRef="U_USD">2418000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
