<?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_7634456c-09ce-4f05-a824-09087c9e8bb9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7634456c-09ce-4f05-a824-09087c9e8bb9"
      id="F_166c3348-7a45-4f01-aa4f-0108f1b88430">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7634456c-09ce-4f05-a824-09087c9e8bb9"
      id="F_e543b77c-596e-4ca5-ae4f-18147196611d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_7634456c-09ce-4f05-a824-09087c9e8bb9"
      id="F_a9aa5613-338e-4289-b86c-c1243dcab528">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_7634456c-09ce-4f05-a824-09087c9e8bb9"
      id="F_125fc8f9-55c8-4069-9539-f221d5d4e9ce">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7634456c-09ce-4f05-a824-09087c9e8bb9"
      id="F_05cf8d50-332c-46c8-8ffc-57b85904d1d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7634456c-09ce-4f05-a824-09087c9e8bb9"
      id="F_59c898e9-474a-400d-97f3-8134c66b7101">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7634456c-09ce-4f05-a824-09087c9e8bb9"
      id="F_75480acd-6a90-4e72-bf10-1a5c12280613">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_7634456c-09ce-4f05-a824-09087c9e8bb9"
      id="F_e82569d9-a114-4617-89b3-b64c1cb19547">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_7634456c-09ce-4f05-a824-09087c9e8bb9"
      id="F_bf34fa90-c419-40dd-9a41-ee8755a753b0">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7634456c-09ce-4f05-a824-09087c9e8bb9"
      id="F_91c4e7b5-d25d-45dd-a0a3-c491c2f8d4b8">&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;26,524,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_7634456c-09ce-4f05-a824-09087c9e8bb9"
      decimals="0"
      id="F_25eb7857-2393-4444-8e0f-54e30ef7030e"
      unitRef="U_USD">26524000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
