<?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_7a4678b7-8de7-4be0-925a-da3ed97a3655">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7a4678b7-8de7-4be0-925a-da3ed97a3655"
      id="F_67ffdb97-baa8-426f-9c4d-8174bf743c07">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_7a4678b7-8de7-4be0-925a-da3ed97a3655"
      id="F_00527b1f-f156-4985-ab4c-efcaca2168dd">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7a4678b7-8de7-4be0-925a-da3ed97a3655"
      id="F_df657631-3e78-4631-af69-461244701d51">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_7a4678b7-8de7-4be0-925a-da3ed97a3655"
      id="F_a7873a11-4cca-42fa-a4bc-d5ae29a8f0e0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7a4678b7-8de7-4be0-925a-da3ed97a3655"
      id="F_5de349af-1ea4-4db3-8a13-8ca87624f544">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7a4678b7-8de7-4be0-925a-da3ed97a3655"
      id="F_a54b9ca7-2905-4bae-911f-299befe41b80">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7a4678b7-8de7-4be0-925a-da3ed97a3655"
      id="F_10cc2f06-8d36-48b9-9895-27f474464f7c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_7a4678b7-8de7-4be0-925a-da3ed97a3655"
      id="F_067b53a0-3883-494a-82c7-f9cb1c9ca491">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_7a4678b7-8de7-4be0-925a-da3ed97a3655"
      id="F_5a27cfc7-550b-4d51-8382-a617d95ebdea">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_7a4678b7-8de7-4be0-925a-da3ed97a3655"
      id="F_6383156c-967d-4273-a0cf-16ad4a0551d6">&lt;p style="tab-size:26.66px;font-size:12pt;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;546,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_7a4678b7-8de7-4be0-925a-da3ed97a3655"
      decimals="-3"
      id="F_44a73748-20a1-4e98-ae03-cd1d8fa56ff9"
      unitRef="U_USD">546000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
