<?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_6b64b0c4-3e3e-4196-a307-1179bb561d3f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_6b64b0c4-3e3e-4196-a307-1179bb561d3f"
      id="F_a3949264-8880-449e-bb03-86af7e2408e8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_6b64b0c4-3e3e-4196-a307-1179bb561d3f"
      id="F_c4d9248a-b466-4b44-936b-216fd87fc39f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6b64b0c4-3e3e-4196-a307-1179bb561d3f"
      id="F_dbcc29b1-f8e4-4474-9d81-1cfff10840a8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6b64b0c4-3e3e-4196-a307-1179bb561d3f"
      id="F_61ee8f01-3716-47e6-b217-6decd0e612d0">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_6b64b0c4-3e3e-4196-a307-1179bb561d3f"
      id="F_bcd914b0-175c-4969-8241-6c2ae456e5bf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6b64b0c4-3e3e-4196-a307-1179bb561d3f"
      id="F_6a363972-9953-445a-8ace-f929277b274f">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_6b64b0c4-3e3e-4196-a307-1179bb561d3f"
      id="F_587e3b86-3c2a-427b-8673-9cc571fe802b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6b64b0c4-3e3e-4196-a307-1179bb561d3f"
      id="F_17c625c6-8f44-40b4-9750-eab8a70d210e">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_6b64b0c4-3e3e-4196-a307-1179bb561d3f"
      id="F_04a6b5ac-bec6-436a-94c3-6de7c7ac0cac">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6b64b0c4-3e3e-4196-a307-1179bb561d3f"
      id="F_5c98777d-f8ca-472e-a59c-39d0bc7e700b">&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;500,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_6b64b0c4-3e3e-4196-a307-1179bb561d3f"
      decimals="0"
      id="F_43815062-84d2-4fb6-b5f1-ae0cbd842d84"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
