<?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_947fe2df-c355-4349-a041-468f591b296e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_947fe2df-c355-4349-a041-468f591b296e"
      id="F_a9221304-9112-48a3-ac46-6d73e2f8f965">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_947fe2df-c355-4349-a041-468f591b296e"
      id="F_6bc1570d-0dfe-436b-bf9d-85013f17885d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_947fe2df-c355-4349-a041-468f591b296e"
      id="F_30213a4f-49db-4a35-86bc-a88975c2c43b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_947fe2df-c355-4349-a041-468f591b296e"
      id="F_7b3ca5f0-2f28-4858-9238-b4abf21d4ece">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_947fe2df-c355-4349-a041-468f591b296e"
      id="F_7425d440-c0ec-4c0b-b11f-d4bbf1497b40">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_947fe2df-c355-4349-a041-468f591b296e"
      id="F_3aef4fa3-6ec4-42ba-ae8e-675b1e977760">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_947fe2df-c355-4349-a041-468f591b296e"
      id="F_b3c5a4f9-9065-4f62-b040-9279411f8d1a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_947fe2df-c355-4349-a041-468f591b296e"
      id="F_e4769b4b-cb5f-4f46-bbe4-cd97964cfaf9">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_947fe2df-c355-4349-a041-468f591b296e"
      id="F_9fd27fe0-f712-4b2b-a669-b47e73c784d7">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_947fe2df-c355-4349-a041-468f591b296e"
      id="F_34970197-5eee-4113-9e4d-d7cd9a8d5186">&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;3,720,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_947fe2df-c355-4349-a041-468f591b296e"
      decimals="-3"
      id="F_93a16c6c-d8f8-4bd0-bf53-c9c0b91b6913"
      unitRef="U_USD">3720000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
