<?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_487235ce-52f6-4d0b-ab35-285a08274f00">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_487235ce-52f6-4d0b-ab35-285a08274f00"
      id="F_bdf6bd84-e0bd-48c1-8cf3-8a51d966b5bc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_487235ce-52f6-4d0b-ab35-285a08274f00"
      id="F_a052f47e-3479-4a09-8307-a9ea9e1cc0aa">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_487235ce-52f6-4d0b-ab35-285a08274f00"
      id="F_4abc5eed-0323-4799-b5ec-cf1c85f28bd8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_487235ce-52f6-4d0b-ab35-285a08274f00"
      id="F_a49289ec-699f-4fa8-a70d-07099fcfcf69">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_487235ce-52f6-4d0b-ab35-285a08274f00"
      id="F_0e265271-d8bb-4a5f-b70f-f6ff770de991">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_487235ce-52f6-4d0b-ab35-285a08274f00"
      id="F_a46a07b3-8200-4d65-9bf6-f527f4dd761a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_487235ce-52f6-4d0b-ab35-285a08274f00"
      id="F_ca3c4fe3-18ff-4d7a-add1-3ed572227879">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_487235ce-52f6-4d0b-ab35-285a08274f00"
      id="F_796f0ac1-8d01-451c-9861-6e9cf93e2a14">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_487235ce-52f6-4d0b-ab35-285a08274f00"
      id="F_f4b203df-1c13-4e6b-9660-7f43cb71670b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_487235ce-52f6-4d0b-ab35-285a08274f00"
      id="F_2a4461a3-e660-4e4d-ba9f-63bb71765bb8">&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;5,000,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_487235ce-52f6-4d0b-ab35-285a08274f00"
      decimals="-6"
      id="F_b29b4a1a-325f-4f75-a7e7-0d8f2ae68189"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
