<?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_5eea652f-7e2b-426d-be02-4bf8e5b10155">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-11</startDate>
            <endDate>2026-06-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_5eea652f-7e2b-426d-be02-4bf8e5b10155"
      id="F_0d0f4f18-58e3-42ac-bbc1-376831384b28">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5eea652f-7e2b-426d-be02-4bf8e5b10155"
      id="F_155deba1-5714-48a7-8392-6a5342bce33a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5eea652f-7e2b-426d-be02-4bf8e5b10155"
      id="F_6716b328-4c39-4858-9d55-b0fa9097629e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_5eea652f-7e2b-426d-be02-4bf8e5b10155"
      id="F_b267b002-6b08-4461-9a82-9f15e0c897b5">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5eea652f-7e2b-426d-be02-4bf8e5b10155"
      id="F_a17ca542-0493-4eca-a945-3e380b709946">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_5eea652f-7e2b-426d-be02-4bf8e5b10155"
      id="F_5b8d3ac6-c1ab-49cd-8384-a5733f8036a9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5eea652f-7e2b-426d-be02-4bf8e5b10155"
      id="F_4724c80d-bee2-4c87-962c-26f76294c43f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_5eea652f-7e2b-426d-be02-4bf8e5b10155"
      id="F_d6534819-ceab-4449-9287-876c5600a28c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5eea652f-7e2b-426d-be02-4bf8e5b10155"
      id="F_5fbb0e67-a4b6-4bed-ba7c-757fbfc2b2bc">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5eea652f-7e2b-426d-be02-4bf8e5b10155"
      id="F_96a96e6b-ff62-4644-ab83-407c51f29114">&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;934,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_5eea652f-7e2b-426d-be02-4bf8e5b10155"
      decimals="-3"
      id="F_e2f25a0c-8dfd-4b8d-a4b9-b75a9c5d5039"
      unitRef="U_USD">934000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
