<?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_f07395ef-1773-4520-a33c-91b73cbdfcc9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-18</startDate>
            <endDate>2025-11-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_f07395ef-1773-4520-a33c-91b73cbdfcc9"
      id="F_bdce6fb8-51e4-4dd9-a600-7489d466eecb">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f07395ef-1773-4520-a33c-91b73cbdfcc9"
      id="F_6244b955-64bd-4dd2-85f9-6c158558946f">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_f07395ef-1773-4520-a33c-91b73cbdfcc9"
      id="F_2c6b7bbe-365b-4b1b-a5e6-5f206d2c4c24">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_f07395ef-1773-4520-a33c-91b73cbdfcc9"
      id="F_65858f60-0c31-4e14-b496-899cae09ff62">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f07395ef-1773-4520-a33c-91b73cbdfcc9"
      id="F_cb33205e-8581-412e-a016-8a6b8ed6461e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_f07395ef-1773-4520-a33c-91b73cbdfcc9"
      id="F_ee0cb0f0-3aa6-4be3-b2e4-617d328a3f85">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f07395ef-1773-4520-a33c-91b73cbdfcc9"
      id="F_06370ae6-7d81-488d-8c00-be6dcb172471">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_f07395ef-1773-4520-a33c-91b73cbdfcc9"
      id="F_2b0098d5-4777-4838-9a62-fbee412fec3b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f07395ef-1773-4520-a33c-91b73cbdfcc9"
      id="F_ff2b02d5-3d48-4f05-a690-dba48a9e8976">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f07395ef-1773-4520-a33c-91b73cbdfcc9"
      id="F_d01ca491-cdb2-4210-b742-19b60500cf25">&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;1,763,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_f07395ef-1773-4520-a33c-91b73cbdfcc9"
      decimals="0"
      id="F_bdd7f7e9-1bd8-4cbe-8ada-bcea3987e3ef"
      unitRef="U_USD">1763000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
