<?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_a018a279-39cf-47d3-b64b-bec5b5dc47e0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a018a279-39cf-47d3-b64b-bec5b5dc47e0"
      id="F_dc8e8c07-ba7d-43e8-ab2e-a95baab86337">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a018a279-39cf-47d3-b64b-bec5b5dc47e0"
      id="F_58e22035-f8e6-4fd3-a160-9d1504311c5a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a018a279-39cf-47d3-b64b-bec5b5dc47e0"
      id="F_3ad683d5-e40c-473d-8636-fb0442aaf659">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a018a279-39cf-47d3-b64b-bec5b5dc47e0"
      id="F_8e2af074-0461-4292-a186-53db048c0fda">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a018a279-39cf-47d3-b64b-bec5b5dc47e0"
      id="F_c737918d-c677-4a50-9180-1e75f0539e7b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a018a279-39cf-47d3-b64b-bec5b5dc47e0"
      id="F_cd8c0ba6-495f-4c50-9523-d10e822233ba">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a018a279-39cf-47d3-b64b-bec5b5dc47e0"
      id="F_05e7e4fc-b4a4-4e71-a98c-e8e917a7cbe6">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a018a279-39cf-47d3-b64b-bec5b5dc47e0"
      id="F_5898ba6c-86b4-41dc-b247-30a3c8237832">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a018a279-39cf-47d3-b64b-bec5b5dc47e0"
      id="F_813907ac-d381-42be-8a0d-5a5794f06985">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_a018a279-39cf-47d3-b64b-bec5b5dc47e0"
      id="F_27e05269-e940-4a44-8dc3-6f380b7874ba">&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;26,225,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_a018a279-39cf-47d3-b64b-bec5b5dc47e0"
      decimals="-3"
      id="F_081bb582-95f1-43ef-a71d-e4ed124d02f8"
      unitRef="U_USD">26225000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
