<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_981cb034-52cd-462b-8949-f9feecae4414">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_981cb034-52cd-462b-8949-f9feecae4414"
      id="F_8c0824c8-75e3-4154-89d0-364299773e68">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_981cb034-52cd-462b-8949-f9feecae4414"
      id="F_0a135492-5e82-42f0-8fc3-54e2a11ac68e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_981cb034-52cd-462b-8949-f9feecae4414"
      id="F_45d6a6c7-f218-4c01-ac33-c81ed7ceef8f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_981cb034-52cd-462b-8949-f9feecae4414"
      id="F_0050721c-f3e4-4279-ae34-8103873a80a4">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_981cb034-52cd-462b-8949-f9feecae4414"
      id="F_c3973e2b-f27e-4eed-bfe4-ca103adde623">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_981cb034-52cd-462b-8949-f9feecae4414"
      id="F_e458b7e6-f399-4c68-ab70-4e0061d47995">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_981cb034-52cd-462b-8949-f9feecae4414"
      id="F_b8961548-b6b4-4a8e-9ca6-456443ab4343">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_981cb034-52cd-462b-8949-f9feecae4414"
      id="F_86efc432-327d-49a3-b589-7baabe7a4d9e">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_981cb034-52cd-462b-8949-f9feecae4414"
      id="F_f2cb43a7-3636-46a7-b571-baf1873ba102">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_981cb034-52cd-462b-8949-f9feecae4414"
      id="F_693e687e-3201-406f-b941-0ca5ec029123">&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;75,622,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_981cb034-52cd-462b-8949-f9feecae4414"
      decimals="0"
      id="F_f60fea6f-b490-4ac7-af43-a5ee75d911a1"
      unitRef="U_USD">75622000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
