<?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_f1578232-e90b-4ffa-97e5-8d5cff6210fc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-07</startDate>
            <endDate>2026-08-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f1578232-e90b-4ffa-97e5-8d5cff6210fc"
      id="F_ffee8cad-fdd0-4008-8c5d-ab233f938f6b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f1578232-e90b-4ffa-97e5-8d5cff6210fc"
      id="F_c963eb1c-c77f-4029-a3f3-ae8f700cc6c7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f1578232-e90b-4ffa-97e5-8d5cff6210fc"
      id="F_92c4c160-b3bc-4da8-aaf3-685178d0cb13">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f1578232-e90b-4ffa-97e5-8d5cff6210fc"
      id="F_e7b4a97f-bc1c-44f9-bdfd-8a99802f9ac1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f1578232-e90b-4ffa-97e5-8d5cff6210fc"
      id="F_16129f47-104f-43a7-a252-bcb81d9c2e57">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f1578232-e90b-4ffa-97e5-8d5cff6210fc"
      id="F_3565eb06-1b24-4466-822d-dc3337ed4a0b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f1578232-e90b-4ffa-97e5-8d5cff6210fc"
      id="F_9d256c84-8615-4495-ba05-0fb40997281e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f1578232-e90b-4ffa-97e5-8d5cff6210fc"
      id="F_ccf06cc5-85cb-4bc0-a8a7-5737808155f5">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f1578232-e90b-4ffa-97e5-8d5cff6210fc"
      id="F_928c800e-3c38-42af-b4f0-e83b7ac4bf86">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f1578232-e90b-4ffa-97e5-8d5cff6210fc"
      id="F_6064c656-f369-4057-8327-05cb3e11c7cb">&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;1,682,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_f1578232-e90b-4ffa-97e5-8d5cff6210fc"
      decimals="-3"
      id="F_26cc1909-5e05-42de-8e92-0d692e966e27"
      unitRef="U_USD">1682000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
