<?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_eb72e11a-16b9-4605-a50c-cf026033ce48">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_eb72e11a-16b9-4605-a50c-cf026033ce48"
      id="F_82e4160b-3e55-4390-a617-c363397090f2">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_eb72e11a-16b9-4605-a50c-cf026033ce48"
      id="F_1ccb70f9-503b-4dd2-b10b-aa725d5420cd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_eb72e11a-16b9-4605-a50c-cf026033ce48"
      id="F_b7868257-22d5-4e17-8ec2-27a1c43e06ff">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_eb72e11a-16b9-4605-a50c-cf026033ce48"
      id="F_1e6e4bdc-ce8a-4934-ac92-acf59deb0b71">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_eb72e11a-16b9-4605-a50c-cf026033ce48"
      id="F_a3876ac2-7ebd-4895-a3a0-a5738143fa2e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eb72e11a-16b9-4605-a50c-cf026033ce48"
      id="F_41081ca8-064c-4791-9fcc-52b8dc4dfe93">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_eb72e11a-16b9-4605-a50c-cf026033ce48"
      id="F_95411633-f042-42fd-9390-725bf84b91cf">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_eb72e11a-16b9-4605-a50c-cf026033ce48"
      id="F_94e24064-a4b8-448e-882a-b1aae6c4a60e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_eb72e11a-16b9-4605-a50c-cf026033ce48"
      id="F_08d73726-2493-4092-9c09-babe079ea81e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_eb72e11a-16b9-4605-a50c-cf026033ce48"
      id="F_13a2e5d0-dc6c-4926-99ea-97deb72ab051">&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;5,145,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_eb72e11a-16b9-4605-a50c-cf026033ce48"
      decimals="-3"
      id="F_81ce632b-302d-4865-b22d-d44b9484e3c7"
      unitRef="U_USD">5145000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
