<?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_27f7f867-fd87-416b-9580-5c67caeade0c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_27f7f867-fd87-416b-9580-5c67caeade0c"
      id="F_4cfd1107-72eb-4f74-8bee-4c1d77556cfd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_27f7f867-fd87-416b-9580-5c67caeade0c"
      id="F_8dafdf3a-5699-43c8-979d-4180b6ed6772">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_27f7f867-fd87-416b-9580-5c67caeade0c"
      id="F_8338213f-3cf8-41a4-9310-75729633589f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_27f7f867-fd87-416b-9580-5c67caeade0c"
      id="F_ae0c73c5-4c10-4097-a46e-0376b3cf051c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_27f7f867-fd87-416b-9580-5c67caeade0c"
      id="F_e2a5bf04-f96e-4e48-b777-7142b7ae784a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_27f7f867-fd87-416b-9580-5c67caeade0c"
      id="F_8fb5bd31-c571-4b72-9316-55944c822266">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_27f7f867-fd87-416b-9580-5c67caeade0c"
      id="F_dfa84828-4ae5-492f-b0cb-37a3c23ee3ea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_27f7f867-fd87-416b-9580-5c67caeade0c"
      id="F_ecad3699-a79a-478c-9f18-74cf70459722">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_27f7f867-fd87-416b-9580-5c67caeade0c"
      id="F_1ca11472-a1c2-413e-8368-be6b038aa9ef">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_27f7f867-fd87-416b-9580-5c67caeade0c"
      id="F_19984c98-1dbe-4c11-aa1e-17281357083a">&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;125,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_27f7f867-fd87-416b-9580-5c67caeade0c"
      decimals="-3"
      id="F_32a50531-53a2-4761-8f94-f8e7ca33e7ec"
      unitRef="U_USD">125000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
