<?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_5913e61a-b641-4e03-a7ee-933fbf1ee625">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_5913e61a-b641-4e03-a7ee-933fbf1ee625"
      id="F_d3aa24ca-6d3c-4aff-b6c5-c90e9c05b47d">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5913e61a-b641-4e03-a7ee-933fbf1ee625"
      id="F_0075686e-9c33-46ba-9a6d-e56387678650">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5913e61a-b641-4e03-a7ee-933fbf1ee625"
      id="F_7f12b075-3a06-44b0-8725-7ab204e5b5ee">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5913e61a-b641-4e03-a7ee-933fbf1ee625"
      id="F_9dbcccf9-ae01-4d39-8f13-b838439e5ff3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5913e61a-b641-4e03-a7ee-933fbf1ee625"
      id="F_751f1bc3-db61-40fd-b7e7-a03e1c0c7ed1">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5913e61a-b641-4e03-a7ee-933fbf1ee625"
      id="F_b328d81b-1fbf-4f21-8bb0-75350248ef7b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5913e61a-b641-4e03-a7ee-933fbf1ee625"
      id="F_34e74ed9-a346-48d7-bfaa-5c4e875830b0">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_5913e61a-b641-4e03-a7ee-933fbf1ee625"
      id="F_19af9b9f-ed56-4934-987e-59da67e405b7">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5913e61a-b641-4e03-a7ee-933fbf1ee625"
      id="F_48fdc096-e781-484a-9ed9-b5f40b7c23ba">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_5913e61a-b641-4e03-a7ee-933fbf1ee625"
      id="F_e5e37a72-3a92-4d36-8de6-ff9925dd8092">&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;4,059,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_5913e61a-b641-4e03-a7ee-933fbf1ee625"
      decimals="0"
      id="F_c1f9bbbe-b02e-4e1f-b667-d88391d30cde"
      unitRef="U_USD">4059000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
