<?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_45ee3bf9-a221-4c89-b131-572b5d9c5802">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_45ee3bf9-a221-4c89-b131-572b5d9c5802"
      id="F_d4893eea-b91c-4e77-931c-2e6727c55155">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_45ee3bf9-a221-4c89-b131-572b5d9c5802"
      id="F_6c322208-26f6-4114-97db-6a479999bec4">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_45ee3bf9-a221-4c89-b131-572b5d9c5802"
      id="F_58acbec7-4166-475f-8bfc-dd1c7d4853a7">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_45ee3bf9-a221-4c89-b131-572b5d9c5802"
      id="F_8290a25a-cd8c-4af6-bf91-d6d26fe0605f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_45ee3bf9-a221-4c89-b131-572b5d9c5802"
      id="F_98b56ca8-827b-4ae9-b849-182d2e44b2a6">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_45ee3bf9-a221-4c89-b131-572b5d9c5802"
      id="F_51fa0388-8aee-4363-b3df-932978e6d52e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_45ee3bf9-a221-4c89-b131-572b5d9c5802"
      id="F_4e264e75-ca32-4f6b-8ff6-5fa358784d49">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_45ee3bf9-a221-4c89-b131-572b5d9c5802"
      id="F_c439d160-e945-483b-89fd-7a15a7998350">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_45ee3bf9-a221-4c89-b131-572b5d9c5802"
      id="F_d5ab25e2-1496-439c-b4fd-bcf09b44798c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_45ee3bf9-a221-4c89-b131-572b5d9c5802"
      id="F_798bdac9-1d2e-4b90-81cb-a4b461194017">&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;6,943,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_45ee3bf9-a221-4c89-b131-572b5d9c5802"
      decimals="-3"
      id="F_3de813e9-90d9-4c7d-98d0-fb32ac3e69ef"
      unitRef="U_USD">6943000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
