<?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_309daf81-7f1c-4cfd-967b-b4d5aa858a2f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_309daf81-7f1c-4cfd-967b-b4d5aa858a2f"
      id="F_5105c75e-d4b0-463e-896f-8b8399532602">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_309daf81-7f1c-4cfd-967b-b4d5aa858a2f"
      id="F_48a2c33b-acc6-422a-8a88-f27b0faa48e5">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_309daf81-7f1c-4cfd-967b-b4d5aa858a2f"
      id="F_da63fb22-7632-4528-a9d8-9b8e674e95e6">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_309daf81-7f1c-4cfd-967b-b4d5aa858a2f"
      id="F_bebe90b1-231c-446c-832d-b42a3d4844e5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_309daf81-7f1c-4cfd-967b-b4d5aa858a2f"
      id="F_fdc3999e-2892-4250-9c04-9fead90085fa">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_309daf81-7f1c-4cfd-967b-b4d5aa858a2f"
      id="F_0169e5c5-9903-4884-acb8-c0bb096d7bb2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_309daf81-7f1c-4cfd-967b-b4d5aa858a2f"
      id="F_737339c6-0942-4ecc-9ff7-0b370803d829">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_309daf81-7f1c-4cfd-967b-b4d5aa858a2f"
      id="F_758f142c-e81f-4f9f-8fc6-8c270b360bde">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_309daf81-7f1c-4cfd-967b-b4d5aa858a2f"
      id="F_e465c1b2-2514-4506-99e2-a95549007662">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_309daf81-7f1c-4cfd-967b-b4d5aa858a2f"
      id="F_cb43ac52-8350-4c08-bef2-37cea46deada">&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;402,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_309daf81-7f1c-4cfd-967b-b4d5aa858a2f"
      decimals="-3"
      id="F_46dd9985-ba2d-4f13-ba63-ca8241dcf52a"
      unitRef="U_USD">402000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
