<?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_8b0f0e05-add7-42c1-b28a-7d823f9c09d7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_8b0f0e05-add7-42c1-b28a-7d823f9c09d7"
      id="F_1ef0ad12-5909-4894-bdb1-a058a86c3440">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_8b0f0e05-add7-42c1-b28a-7d823f9c09d7"
      id="F_5be2aac4-5155-4704-a9f3-e6d5f3419c39">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_8b0f0e05-add7-42c1-b28a-7d823f9c09d7"
      id="F_0ae5bc48-87d9-4fef-a9de-f7e1c9c691c4">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8b0f0e05-add7-42c1-b28a-7d823f9c09d7"
      id="F_565ccf62-ea45-4e94-9d9b-534af14c7f74">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8b0f0e05-add7-42c1-b28a-7d823f9c09d7"
      id="F_158c80d2-6dac-4650-8e31-6f971e8216ce">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8b0f0e05-add7-42c1-b28a-7d823f9c09d7"
      id="F_9cce5cf8-2ed9-4b20-a28e-925706b22eca">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_8b0f0e05-add7-42c1-b28a-7d823f9c09d7"
      id="F_26441b9b-7f8c-409a-b043-b3ac5505d862">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_8b0f0e05-add7-42c1-b28a-7d823f9c09d7"
      id="F_26120cf6-9909-413e-8c79-1902c910cae4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8b0f0e05-add7-42c1-b28a-7d823f9c09d7"
      id="F_31ccb8ca-b871-4893-8c88-7d5bdb90501e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_8b0f0e05-add7-42c1-b28a-7d823f9c09d7"
      id="F_2b7887c2-cab5-4dd0-9d05-20744c2fcdb6">&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;1,237,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_8b0f0e05-add7-42c1-b28a-7d823f9c09d7"
      decimals="-3"
      id="F_fa6fba50-bd52-4764-a225-d3ed2d031128"
      unitRef="U_USD">1237000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
