<?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_9f8ac876-096e-44fd-a8c2-ee7c033c42fe">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_9f8ac876-096e-44fd-a8c2-ee7c033c42fe"
      id="F_4e993566-bf5e-4b13-8f41-cab631057d29">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_9f8ac876-096e-44fd-a8c2-ee7c033c42fe"
      id="F_afa760bb-7513-4dff-aba5-06eb02de79d0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9f8ac876-096e-44fd-a8c2-ee7c033c42fe"
      id="F_809a7bcc-8903-4295-92da-b4839ca85d6c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9f8ac876-096e-44fd-a8c2-ee7c033c42fe"
      id="F_60a4e8aa-2c61-4869-b1eb-39795241902d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9f8ac876-096e-44fd-a8c2-ee7c033c42fe"
      id="F_b0edc971-8155-4f17-b6ec-93b3bd7a7390">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_9f8ac876-096e-44fd-a8c2-ee7c033c42fe"
      id="F_2962be1d-9ad1-4a2b-840c-9fc4d78f5dff">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9f8ac876-096e-44fd-a8c2-ee7c033c42fe"
      id="F_64fcfce8-f81b-4b92-ab60-ff20c9ba4046">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9f8ac876-096e-44fd-a8c2-ee7c033c42fe"
      id="F_520ac35f-f143-4414-b8ee-64aa72f343c5">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9f8ac876-096e-44fd-a8c2-ee7c033c42fe"
      id="F_4a59aab1-79b2-4790-83fa-a014ee51e79b">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_9f8ac876-096e-44fd-a8c2-ee7c033c42fe"
      id="F_076689fb-b510-495a-beed-de5a94821e14">&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;10,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_9f8ac876-096e-44fd-a8c2-ee7c033c42fe"
      decimals="-3"
      id="F_21af86d2-183e-4258-8931-74ddd7ead32e"
      unitRef="U_USD">10500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
